Files
kernel_arpi/fs
Dongliang Mu 816e125540 UPSTREAM: 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.

Bug: 254441685
Link: https://lore.kernel.org/r/20220315132814.12332-1-dzm91@hust.edu.cn
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Fixes: 168e9a76200c ("erofs: add sysfs interface")
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
(cherry picked from commit a942da24abc5839c11a8fc2a4b7cb268ea94ba54)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I31de79f830b63fc4b1357e04036a0f3f3b12903e
2022-12-19 16:30:28 +00:00
..
2022-09-21 17:30:12 +02:00
2022-12-08 16:43:35 +00:00
2022-12-14 13:04:18 +01:00
2022-12-04 12:02:10 +00:00
2022-12-14 13:04:18 +01:00
2022-11-15 16:38:36 +00:00
2022-08-02 08:37:15 +02:00
2022-11-02 08:51:19 +01:00
2022-12-04 12:02:10 +00:00
2022-07-13 11:40:42 +02:00
2022-11-28 16:08:50 +00:00
2022-07-13 11:40:42 +02:00
2022-11-02 08:51:19 +01:00
2022-07-13 11:55:41 +02:00
2022-07-13 11:40:42 +02:00
2022-11-03 14:21:38 +09:00
2022-11-28 16:08:50 +00:00
2022-11-02 08:51:19 +01:00
2022-12-08 16:43:35 +00:00
2022-07-13 11:40:42 +02:00
2022-11-28 16:08:50 +00:00
2022-11-02 08:51:19 +01:00
2022-11-03 14:21:38 +09:00
2022-09-24 14:14:08 +02:00
2022-11-16 10:04:35 +00:00
2022-11-02 08:51:19 +01:00
2022-12-04 12:02:10 +00:00
2022-09-21 17:30:12 +02:00
2022-11-28 16:08:50 +00:00
2022-09-21 17:30:12 +02:00
2022-12-14 13:04:18 +01:00
2022-10-12 20:14:04 +02:00
2022-12-14 13:04:18 +01:00
2022-11-28 16:08:50 +00:00
2022-09-24 10:01:28 +02:00
2022-11-02 08:51:19 +01:00
2022-08-04 15:18:41 +02:00
2022-07-12 16:35:08 +02:00
2022-11-02 08:51:19 +01:00
2022-11-15 16:38:36 +00:00
2022-10-05 11:59:55 +02:00