Re: [PATCH] Fix kernel NULL pointer dereference in xen-blkfront

From: Jens Axboe
Date: Wed Mar 04 2009 - 05:16:51 EST


On Tue, Mar 03 2009, Jeremy Fitzhardinge wrote:
> Kris Shannon wrote:
>> When booting Xen Dom0 on a pre-release 3.2.1 hypervisor the system Oopses on a
>> "Unable to handle kernel NULL pointer dereference" in xenwatch.
>>
>> From the backtrace it looks like backend_changed is calling bdget_disk
>> with a NULL pointer. Checking for NULL and returning ENODEV instead
>> allows the kernel to boot.
>>
>
> Thanks, applied. (BTW, please cc: me and xen-devel for Xen-related
> reports.)
>
> Jens: could you pull this; I think this is probably -rc material. This
> crash just started happening, so I guess its a side-effect of some core
> kernel change.
>
> The following changes since commit c7241227f61ca6606a7fa3555391360d92bd8d9b:
> Jens Axboe (1):
> xen/blkfront: use blk_rq_map_sg to generate ring entries
>
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git xen/frontend/blkfront
>
> Kris Shannon (1):
> Fix kernel NULL pointer dereference in xen-blkfront
>
> drivers/block/xen-blkfront.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)

Sure, pulled.

--
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/