New: Error-valued pointer used in pointer arithmetic
https://bugzilla.kernel.org/show_bug.cgi?id=34372
Summary: Error-valued pointer used in pointer arithmetic
Product: File System
Version: 2.5
Kernel Version: 2.6.38.3
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: ReiserFS
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: No
We have statically analyzed ReiserFS, VFS and the memory management module to find error-valued pointers that are used in pointer arithmetic. We have found one instance:
include/linux/reiserfs_fs.h:390: Using variable REISERFS_I#__mptr in pointer arithmetic, which may contain one of the following error codes: ENOMEM*
Here is a sample trace that illustrates how this might happen:
Complete sample trace
=====================include/linux/err.h:24: an unchecked error may be returned fs/reiserfs/inode.c:1515:"cabs2cil_" receives an error from function "ERR_PTR" fs/reiserfs/inode.c:1515:"tmp___11" receives an error from "cabs2cil_" fs/reiserfs/inode.c:1515:"tmp___11" may have an unchecked error fs/reiserfs/inode.c:1515:"tmp" receives an error from "tmp___11" fs/reiserfs/inode.c:1515:"tmp" may have an unchecked error fs/reiserfs/inode.c:1515:"tmp___7" receives an error from "tmp" fs/reiserfs/inode.c:1515:"tmp___7" may have an unchecked error fs/reiserfs/inode.c:1515: an unchecked error may be returned fs/reiserfs/super.c:239:"inode" receives an error from function "reiserfs_iget" fs/reiserfs/super.c:240:"inode" may have an unchecked error fs/reiserfs/super.c:249:"inode" may have an unchecked error fs/reiserfs/super.c:257:"inode" may have an unchecked error fs/reiserfs/super.c:259:"inode" may have an unchecked error fs/reiserfs/super.c:274:"inode" may have an unchecked error fs/reiserfs/super.c:287:"inode" may have an unchecked error fs/reiserfs/super.c:289:"inode" may have an unchecked error fs/reiserfs/super.c:290:"inode" may have an unchecked error fs/reiserfs/super.c:292:"inode" may have an unchecked error include/linux/reiserfs_fs.h:390:"__mptr" receives an error from "inode" include/linux/reiserfs_fs.h:390:"__mptr" may have an unchecked error include/linux/reiserfs_fs.h:390: Using variable REISERFS_I#__mptr in pointer arithmetic, which may contain one of the following error codes: ENOMEM*
Slice (summary of the above sample trace only including relevant program points)
=====include/linux/err.h:24: an unchecked error may be returned fs/reiserfs/inode.c:1515:"cabs2cil_" receives an error from function "ERR_PTR" fs/reiserfs/inode.c:1515:"tmp___11" receives an error from "cabs2cil_" fs/reiserfs/inode.c:1515:"tmp" receives an error from "tmp___11" fs/reiserfs/inode.c:1515:"tmp___7" receives an error from "tmp" fs/reiserfs/inode.c:1515: an unchecked error may be returned fs/reiserfs/super.c:239:"inode" receives an error from function "reiserfs_iget" fs/reiserfs/super.c:292:"inode" may have an unchecked error include/linux/reiserfs_fs.h:390:"__mptr" receives an error from "inode" include/linux/reiserfs_fs.h:390: Using variable REISERFS_I#__mptr in pointer arithmetic, which may contain one of the following error codes: ENOMEM*
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 34372] Error-valued pointer used in pointer arithmetic
https://bugzilla.kernel.org/show_bug.cgi?id=34372
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from [email protected] ---
This is bug is obsolete, please test against a newer kernel. Cheers Nick
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
[Bug 34372] Error-valued pointer used in pointer arithmetic
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=34372
Szőgyényi Gábor <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
Signature · 5 lines
You are receiving this mail because: You are the assignee for the bug.-- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html