aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorJann Horn <[email protected]>2025-02-14 01:39:50 +0000
committerJens Axboe <[email protected]>2025-02-14 15:38:28 +0000
commit80e648042e512d5a767da251d44132553fe04ae0 (patch)
tree4516f9009fa27b77f790cb09c7a44dd6a955ab9e /net/unix/sysctl_net_unix.c
parentblock: cleanup and fix batch completion adding conditions (diff)
downloadkernel-80e648042e512d5a767da251d44132553fe04ae0.tar.gz
kernel-80e648042e512d5a767da251d44132553fe04ae0.zip
partitions: mac: fix handling of bogus partition table
Fix several issues in partition probing: - The bailout for a bad partoffset must use put_dev_sector(), since the preceding read_part_sector() succeeded. - If the partition table claims a silly sector size like 0xfff bytes (which results in partition table entries straddling sector boundaries), bail out instead of accessing out-of-bounds memory. - We must not assume that the partition table contains proper NUL termination - use strnlen() and strncmp() instead of strlen() and strcmp(). Cc: [email protected] Signed-off-by: Jann Horn <[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