aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorDongliang Mu <[email protected]>2022-03-15 21:28:14 +0800
committerGao Xiang <[email protected]>2022-03-17 00:09:02 +0800
commita942da24abc5839c11a8fc2a4b7cb268ea94ba54 (patch)
treed59244f6191e7e88eff52032abc6c9651aa7e20c /lib/test_fortify/write_overflow-memcpy.c
parent9f2731d6338a072b60ab1d9340847bde3306614b (diff)
fs: erofs: add sanity check for kobject in erofs_unregister_sysfs
Syzkaller hit 'WARNING: kobject bug in erofs_unregister_sysfs'. This bug is triggered by injecting fault in kobject_init_and_add of erofs_unregister_sysfs. Fix this by adding sanity check for kobject in erofs_unregister_sysfs Note that I've tested the patch and the crash does not occur any more. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dongliang Mu <[email protected]> Fixes: 168e9a76200c ("erofs: add sysfs interface") Reviewed-by: Gao Xiang <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions