From: "Joe Jin" <lkmaillist@gmail.com>
To: kernel <linux@idccenter.cn>
Cc: "Nathan Scott" <nathans@sgi.com>,
jdi@l4x.org, linux-kernel@vger.kernel.org, rdunlap@xenotime.net,
wim.coekaerts@oracle.com
Subject: Re: XFS Bug null pointer dereference in xfs_free_ag_extent
Date: Mon, 31 Jul 2006 16:41:28 +0800 [thread overview]
Message-ID: <215036450607310141j4649c048t25ae45f2b7ed75@mail.gmail.com> (raw)
In-Reply-To: <44CDB135.8080401@idccenter.cn>
[-- Attachment #1: Type: text/plain, Size: 1837 bytes --]
At XFS have a debug option, but I wonder why why it was not opened,
and you may open the option with follow patch, rebuild kernel, you
maybe get more information of it.
And when I trace the code, I also found at some function should check
the return value, it also include the patch.
Hope help for you.
On 7/31/06, kernel <linux@idccenter.cn> wrote:
> I format the same partition and restart the testing server before each
> testing.
> I'vs tested on each format at least twenty times.
> With XFS and SAN, This crash happens on every bonnie++ testing.
>
> And I have tested such things on another mathine, results are same.
>
>
> Nathan Scott wrote:
> > On Mon, Jul 31, 2006 at 02:21:10PM +0800, kernel wrote:
> >
> >> Test again......very strange.
> >> I can easily reproduce it on the XFS with SAN(FLX380) connected with a
> >> qlogic 2400 FC card.
> >>
> >
> > Eggshellent... can you reproduce it with each of those changes
> > (below) backed out of your tree please? Else, git bisect is our
> > next best bet. Thanks!
> >
> >
> >>> Is this easily reproducible for you? I've not seen it before, and
> >>> the only possibly related recent changes I can think of are these:
> >>>
> >>> http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e63a3690013a475746ad2cea998ebb534d825704
> >>>
> >>> http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d210a28cd851082cec9b282443f8cc0e6fc09830
> >>>
> >>> Could you try reverting each of those to see if either is the cause?
> >>>
> >
> > cheers.
> >
> >
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
--
Regards,
Joe.Jin
[-- Attachment #2: xfs.patch --]
[-- Type: text/x-patch, Size: 1473 bytes --]
--- linux-2.6.18-rc3/fs/xfs/Kconfig 2006-07-30 14:15:36.000000000 +0800
+++ linux.new/fs/xfs/Kconfig 2006-07-31 16:22:32.000000000 +0800
@@ -17,6 +17,15 @@
system of your root partition is compiled as a module, you'll need
to use an initial ramdisk (initrd) to boot.
+config XFS_DEBUG
+ bool "XFS debugging"
+ depends on XFS_FS
+ help
+ If you are experiencing any problems with the XFS filesystem, say
+ Y here. This will result in additional debugging messages to be
+ written to the system log. Under normal circumstances, this
+ results in very little overhead.
+
config XFS_QUOTA
bool "XFS Quota support"
depends on XFS_FS
--- linux-2.6.18-rc3/fs/xfs/xfs_btree.c 2006-07-30 14:15:36.000000000 +0800
+++ linux.new/fs/xfs/xfs_btree.c 2006-07-31 15:39:43.000000000 +0800
@@ -586,6 +586,9 @@
* Allocate a new cursor.
*/
cur = kmem_zone_zalloc(xfs_btree_cur_zone, KM_SLEEP);
+ if(!cur)
+ return NULL;
+
/*
* Deduce the number of btree levels from the arguments.
*/
--- linux-2.6.18-rc3/fs/xfs/xfs_alloc.c 2006-07-30 14:15:36.000000000 +0800
+++ linux.new/fs/xfs/xfs_alloc.c 2006-07-31 16:09:04.000000000 +0800
@@ -649,6 +649,9 @@
*/
bno_cur = xfs_btree_init_cursor(args->mp, args->tp, args->agbp,
args->agno, XFS_BTNUM_BNO, NULL, 0);
+ if(!bno_cur)
+ return XFS_ERROR(ENOMEM);
+
/*
* Lookup bno and minlen in the btree (minlen is irrelevant, really).
* Look for the closest free block <= bno, it must contain bno
next prev parent reply other threads:[~2006-07-31 8:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-20 6:59 Jan Dittmer
2006-07-29 7:19 ` kernel
2006-07-29 7:49 ` Jan Dittmer
2006-07-29 8:10 ` kernel
2006-07-30 23:44 ` Nathan Scott
2006-07-31 1:30 ` kernel
2006-07-31 6:21 ` kernel
2006-07-31 6:55 ` Nathan Scott
2006-07-31 7:28 ` kernel
2006-07-31 8:41 ` Joe Jin [this message]
2006-07-31 9:53 ` Nathan Scott
2006-07-31 9:43 ` Nathan Scott
2006-07-31 10:04 ` kernel
[not found] ` <215036450607311849o43b1555br13ea2f3f20fb3b82@mail.gmail.com>
2006-08-01 8:12 ` Jan Dittmer
2006-08-02 1:26 ` Nathan Scott
2006-08-08 3:30 ` Nathan Scott
2006-07-31 6:58 ` Jan Dittmer
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=215036450607310141j4649c048t25ae45f2b7ed75@mail.gmail.com \
--to=lkmaillist@gmail.com \
--cc=jdi@l4x.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@idccenter.cn \
--cc=nathans@sgi.com \
--cc=rdunlap@xenotime.net \
--cc=wim.coekaerts@oracle.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®