[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49C89ACE.9070102@cn.fujitsu.com>
Date: Tue, 24 Mar 2009 16:33:18 +0800
From: Li Zefan <lizf@...fujitsu.com>
To: Ingo Molnar <mingo@...e.hu>
CC: Jens Axboe <jens.axboe@...cle.com>,
Steven Rostedt <rostedt@...dmis.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/5] blktrace: fix off-by-one bug
>> - if (unlikely(what == 0 || what > ARRAY_SIZE(what2act)))
>> + if (unlikely(what == 0 || what >= ARRAY_SIZE(what2act)))
>
> ah, nice. How did you notice - did we miss "remap" events due to
> this bug?
>
By code review, but we can get NULL dereference bug if we receive an
"abort" event, this event may be generated only when using device-mapper.
We don't print out this event currently, neither does the userspace
blktrace, which should be fixed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists