summaryrefslogtreecommitdiffstats
path: root/LICENSES
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-01-25 00:48:31 +0100
committerDarrick J. Wong <djwong@kernel.org>2022-01-31 22:20:58 +0100
commit29d650f7e3ab55283b89c9f5883d0c256ce478b5 (patch)
treef654fe14f1f0126503240a3048a2cae37283d1f0 /LICENSES
parentLinux 5.17-rc1 (diff)
downloadlinux-29d650f7e3ab55283b89c9f5883d0c256ce478b5.tar.xz
linux-29d650f7e3ab55283b89c9f5883d0c256ce478b5.zip
xfs: reject crazy array sizes being fed to XFS_IOC_GETBMAP*
Syzbot tripped over the following complaint from the kernel: WARNING: CPU: 2 PID: 15402 at mm/util.c:597 kvmalloc_node+0x11e/0x125 mm/util.c:597 While trying to run XFS_IOC_GETBMAP against the following structure: struct getbmap fubar = { .bmv_count = 0x22dae649, }; Obviously, this is a crazy huge value since the next thing that the ioctl would do is allocate 37GB of memory. This is enough to make kvmalloc mad, but isn't large enough to trip the validation functions. In other words, I'm fussing with checks that were **already sufficient** because that's easier than dealing with 644 internal bug reports. Yes, that's right, six hundred and forty-four. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Allison Henderson <allison.henderson@oracle.com> Reviewed-by: Catherine Hoang <catherine.hoang@oracle.com>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions