Bug 194251

Summary: fs/inode.c find_inode_fast inode data structure NULL
Product: File System Reporter: Michael (michael_allen_bond)
Component: OtherAssignee: fs_other
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.10 Subsystem:
Regression: No Bisected commit-id:

Description Michael 2017-02-07 05:21:42 UTC
in find_inode_fast:
-->	        struct inode *inode = NULL;

repeat:
        hlist_for_each_entry(inode, head, i_hash) {
-->			if (inode->i_ino != ino)
                        continue;

	The data structure is initialized as NULL, is there any guarantee that the head of the list it points to after hlist_for_each_entry() won't be a null value?  The assignment seems to assume that the head will always have a struct available to assign to the pointer.

Based on static analysis tool