aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2025-02-17 03:16:26 +0000
committerJens Axboe <[email protected]>2025-02-17 16:04:07 +0000
commitdd8b0582e25e36bba483c60338741c0ba5bc426c (patch)
tree563164a63e154846fc617dab5d3d3d87df394127 /net/unix/sysctl_net_unix.c
parentblock/merge: remove unnecessary min() with UINT_MAX (diff)
downloadkernel-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