mbox series

[SRU,K:master-next,v3,0/2] fix bio_split_to_limits() NULL pointer dereference

Message ID 20230601094006.171590-1-aleksandr.mikhalitsyn@canonical.com
Headers show
Series fix bio_split_to_limits() NULL pointer dereference | expand

Message

Aleksandr Mikhalitsyn June 1, 2023, 9:40 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2020901

[Impact]
System crash/hung as a consequence of null pointer dereference.

[Fix]
port appropriate patches from the upstream tree

[Test]
We have a stable reproducer on the LXD/LXC CI.

[Where problems could occur]
We've met this problem with Qemu VM (LVM storage).

Jens Axboe (2):
  block: handle bio_split_to_limits() NULL return
  pktcdvd: check for NULL returna fter calling bio_split_to_limits()

 block/blk-merge.c             | 4 +++-
 block/blk-mq.c                | 5 ++++-
 drivers/block/drbd/drbd_req.c | 2 ++
 drivers/block/pktcdvd.c       | 2 ++
 drivers/block/ps3vram.c       | 2 ++
 drivers/md/dm.c               | 2 ++
 drivers/md/md.c               | 2 ++
 drivers/nvme/host/multipath.c | 2 ++
 drivers/s390/block/dcssblk.c  | 2 ++
 9 files changed, 21 insertions(+), 2 deletions(-)

Comments

Roxana Nicolescu June 1, 2023, 9:46 a.m. UTC | #1
On 01/06/2023 11:40, Alexander Mikhalitsyn wrote:
> BugLink: https://bugs.launchpad.net/bugs/2020901
>
> [Impact]
> System crash/hung as a consequence of null pointer dereference.
>
> [Fix]
> port appropriate patches from the upstream tree
>
> [Test]
> We have a stable reproducer on the LXD/LXC CI.
>
> [Where problems could occur]
> We've met this problem with Qemu VM (LVM storage).
>
> Jens Axboe (2):
>    block: handle bio_split_to_limits() NULL return
>    pktcdvd: check for NULL returna fter calling bio_split_to_limits()
>
>   block/blk-merge.c             | 4 +++-
>   block/blk-mq.c                | 5 ++++-
>   drivers/block/drbd/drbd_req.c | 2 ++
>   drivers/block/pktcdvd.c       | 2 ++
>   drivers/block/ps3vram.c       | 2 ++
>   drivers/md/dm.c               | 2 ++
>   drivers/md/md.c               | 2 ++
>   drivers/nvme/host/multipath.c | 2 ++
>   drivers/s390/block/dcssblk.c  | 2 ++
>   9 files changed, 21 insertions(+), 2 deletions(-)
>
Acked-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
Andrea Righi June 1, 2023, 9:53 a.m. UTC | #2
On Thu, Jun 01, 2023 at 11:40:04AM +0200, Alexander Mikhalitsyn wrote:
> BugLink: https://bugs.launchpad.net/bugs/2020901
> 
> [Impact]
> System crash/hung as a consequence of null pointer dereference.
> 
> [Fix]
> port appropriate patches from the upstream tree
> 
> [Test]
> We have a stable reproducer on the LXD/LXC CI.
> 
> [Where problems could occur]
> We've met this problem with Qemu VM (LVM storage).

All good now, thanks!

Acked-by: Andrea Righi <andrea.righi@canonical.com>
Stefan Bader June 15, 2023, 12:39 p.m. UTC | #3
On 01.06.23 11:40, Alexander Mikhalitsyn wrote:
> BugLink: https://bugs.launchpad.net/bugs/2020901
> 
> [Impact]
> System crash/hung as a consequence of null pointer dereference.
> 
> [Fix]
> port appropriate patches from the upstream tree
> 
> [Test]
> We have a stable reproducer on the LXD/LXC CI.
> 
> [Where problems could occur]
> We've met this problem with Qemu VM (LVM storage).
> 
> Jens Axboe (2):
>    block: handle bio_split_to_limits() NULL return
>    pktcdvd: check for NULL returna fter calling bio_split_to_limits()
> 
>   block/blk-merge.c             | 4 +++-
>   block/blk-mq.c                | 5 ++++-
>   drivers/block/drbd/drbd_req.c | 2 ++
>   drivers/block/pktcdvd.c       | 2 ++
>   drivers/block/ps3vram.c       | 2 ++
>   drivers/md/dm.c               | 2 ++
>   drivers/md/md.c               | 2 ++
>   drivers/nvme/host/multipath.c | 2 ++
>   drivers/s390/block/dcssblk.c  | 2 ++
>   9 files changed, 21 insertions(+), 2 deletions(-)
> 

Applied to kinetic:linux/master-next. Thanks.

-Stefan