mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nic Volanschi <nic.volanschi@free.fr>
To: tigran@veritas.com
Cc: linux-kernel@vger.kernel.org
Subject: PROBLEM: potential null-pointer dereference in fs/bfs/inode.c
Date: Thu, 03 Nov 2005 23:31:54 +0100	[thread overview]
Message-ID: <1131057113.5733.21.camel@localhost.localdomain> (raw)

Hi Tigran,

While looking into the BFS code of kernel 2.6.13, I noticed what seems
to be a potential null-pointer dereference bug in file fs/bfs/inode.c,
function bfs_fill_super(), within the following piece of code:

		inode = iget(s,i);
		if (BFS_I(inode)->i_dsk_ino == 0)
			info->si_freei++;

Is it correct that iget() may return a Null value, and in that case, we
have a null-pointer exception on the subsequent line?

Please let me know if you confirm or not this diagnostics.
Best regards,
Nic.


[1.] One line summary of the problem:    
 potential null-pointer dereference in fs/bfs/inode.c
[2.] Full description of the problem/report:
  see above
[3.] Keywords (i.e., modules, networking, kernel): 
 BFS file system
[4.] Kernel version (from /proc/version): 2.6.13
[5.] Most recent kernel version which did not have the bug:
[6.] Output of Oops.. message (if applicable) with symbolic information
     resolved (see Documentation/oops-tracing.txt)
[7.] A small shell script or example program which triggers the
     problem (if possible)
[8.] Environment
[8.1.] Software (add the output of the ver_linux script here)
[8.2.] Processor information (from /proc/cpuinfo): AMD athlon XP 2800+
[8.3.] Module information (from /proc/modules):
[8.4.] Loaded driver and hardware information (/proc/ioports,
/proc/iomem)
[8.5.] PCI information ('lspci -vvv' as root)
[8.6.] SCSI information (from /proc/scsi/scsi)
[8.7.] Other information that might be relevant to the problem
       (please look in /proc and include all information that you
       think to be relevant):
[X.] Other notes, patches, fixes, workarounds:



                 reply	other threads:[~2005-11-03 22:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1131057113.5733.21.camel@localhost.localdomain \
    --to=nic.volanschi@free.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tigran@veritas.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®