From: bugzilla-daemon@bugzilla.kernel.org
To: reiserfs-devel@vger.kernel.org
Subject: [Bug 34372] New: Error-valued pointer used in pointer arithmetic
Date: Wed, 4 May 2011 12:55:48 GMT [thread overview]
Message-ID: <bug-34372-695@https.bugzilla.kernel.org/> (raw)
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.
next reply other threads:[~2011-05-04 12:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-04 12:55 bugzilla-daemon [this message]
2014-06-25 15:47 ` [Bug 34372] Error-valued pointer used in pointer arithmetic bugzilla-daemon
2016-03-23 18:12 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-34372-695@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=reiserfs-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.