reiserfs-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 34372] New: Error-valued pointer used in pointer arithmetic
@ 2011-05-04 12:55 bugzilla-daemon
  2014-06-25 15:47 ` [Bug 34372] " bugzilla-daemon
  2016-03-23 18:12 ` bugzilla-daemon
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla-daemon @ 2011-05-04 12:55 UTC (permalink / raw)
  To: reiserfs-devel

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: reiserfs-devel@vger.kernel.org
        ReportedBy: crubio@cs.wisc.edu
        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*

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-23 18:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-04 12:55 [Bug 34372] New: Error-valued pointer used in pointer arithmetic bugzilla-daemon
2014-06-25 15:47 ` [Bug 34372] " bugzilla-daemon
2016-03-23 18:12 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).