diff options
| author | Ming Lei <[email protected]> | 2025-02-17 03:16:26 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-02-17 16:04:07 +0000 |
| commit | dd8b0582e25e36bba483c60338741c0ba5bc426c (patch) | |
| tree | 563164a63e154846fc617dab5d3d3d87df394127 /net/unix/sysctl_net_unix.c | |
| parent | block/merge: remove unnecessary min() with UINT_MAX (diff) | |
| download | kernel-dd8b0582e25e36bba483c60338741c0ba5bc426c.tar.gz kernel-dd8b0582e25e36bba483c60338741c0ba5bc426c.zip | |
block: fix NULL pointer dereferenced within __blk_rq_map_sg
The block layer internal flush request may not have bio attached, so the
request iterator has to be initialized from valid req->bio, otherwise NULL
pointer dereferenced is triggered.
Cc: Christoph Hellwig <[email protected]>
Reported-and-tested-by: Cheyenne Wills <[email protected]>
Fixes: b7175e24d6ac ("block: add a dma mapping iterator")
Signed-off-by: Ming Lei <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
