Messages in this thread | | | Date | Tue, 15 Mar 2022 16:33:20 +0800 | From | Gao Xiang <> | Subject | Re: [PATCH] fs: erofs: remember if kobject_init_and_add was done |
| |
On Tue, Mar 15, 2022 at 03:51:52PM +0800, Dongliang Mu wrote: > From: Dongliang Mu <mudongliangabcd@gmail.com> > > 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 remembering if kobject_init_and_add is successful. > > Note that I've tested the patch and the crash does not occur any more. > > Reported-by: syzkaller <syzkaller@googlegroups.com> > Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Thanks for the effort!
Fixes: 168e9a76200c ("erofs: add sysfs interface") Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Thanks, Gao Xiang
| |