Bug 34362 - Error-valued pointer dereferences
Summary: Error-valued pointer dereferences
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: ReiserFS (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: ReiseFS developers team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-04 12:46 UTC by Cindy Rubio
Modified: 2016-03-23 18:12 UTC (History)
3 users (show)

See Also:
Kernel Version: 2.6.38.3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Sample traces describing error-valued pointer dereferences (8.59 KB, text/plain)
2011-05-04 12:46 UTC, Cindy Rubio
Details

Description Cindy Rubio 2011-05-04 12:46:13 UTC
Created attachment 56552 [details]
Sample traces describing error-valued pointer dereferences

We have statically analyzed ReiserFS, VFS and the memory management module to find error-valued pointers that are dereferenced. We have found five potential error-valued pointer dereferences:

fs/inode.c:1436: Dereferencing variable iput#inode, which may contain one of the following error codes: ENOMEM* 

fs/reiserfs/super.c:249: Dereferencing variable finish_unfinished#inode, which may contain one of the following error codes: ENOMEM* 

fs/reiserfs/super.c:259: Dereferencing variable finish_unfinished#inode, which may contain one of the following error codes: ENOMEM* 

fs/reiserfs/super.c:279: Dereferencing variable finish_unfinished#inode, which may contain one of the following error codes: ENOMEM* 

fs/super.c:205: Dereferencing variable deactivate_super#s, which may contain one of the following error codes: ENOMEM* 


For each potential error-valued pointer dereference, our tool produces a complete sample trace and the corresponding slice. The complete sample trace illustrates how one error code may reach the program point at which the variable is dereferenced. The slice summarizes the complete sample trace by including only relevant program points at which the error code is transferred from variable to variable or returned by a function. Sample traces and slices are attached.

Note You need to log in before you can comment on or make changes to this bug.