syzbot


KCSAN: data-race in __kernfs_remove / cleanup_glue_dir (9)

Status: moderation: reported on 2024/05/31 21:54
Subsystems: kernfs
[Documentation on labels]
Reported-by: syzbot+5093995590c9b888c585@syzkaller.appspotmail.com
First crash: 14d, last: 14d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __kernfs_remove / cleanup_glue_dir (8) kernfs 3 174d 184d 0/27 auto-obsoleted due to no activity on 2024/01/28 04:07
upstream KCSAN: data-race in __kernfs_remove / cleanup_glue_dir kernfs 2 1364d 1382d 0/27 auto-closed as invalid on 2020/10/24 11:06
upstream KCSAN: data-race in __kernfs_remove / cleanup_glue_dir (4) kernfs 1 1163d 1163d 0/27 auto-closed as invalid on 2021/05/13 08:58
upstream KCSAN: data-race in __kernfs_remove / cleanup_glue_dir (6) kernfs 3 793d 822d 0/27 auto-closed as invalid on 2022/05/18 10:42
upstream KCSAN: data-race in __kernfs_remove / cleanup_glue_dir (2) kernfs 2 1268d 1281d 0/27 auto-closed as invalid on 2021/01/28 08:27
upstream KCSAN: data-race in __kernfs_remove / cleanup_glue_dir (7) kernfs 1 711d 711d 0/27 auto-closed as invalid on 2022/08/08 13:27
upstream KCSAN: data-race in __kernfs_remove / cleanup_glue_dir (5) kernfs 1 968d 968d 0/27 auto-closed as invalid on 2021/11/24 14:49
upstream KCSAN: data-race in __kernfs_remove / cleanup_glue_dir (3) kernfs 1 1232d 1232d 0/27 auto-closed as invalid on 2021/03/05 09:25

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __kernfs_remove / cleanup_glue_dir

read-write to 0xffff888117392c78 of 8 bytes by task 4802 on cpu 1:
 kernfs_unlink_sibling fs/kernfs/dir.c:415 [inline]
 __kernfs_remove+0x2ff/0x480 fs/kernfs/dir.c:1492
 kernfs_remove+0x4e/0x70 fs/kernfs/dir.c:1528
 sysfs_remove_dir+0x7e/0xa0 fs/sysfs/dir.c:101
 __kobject_del+0x9d/0x1a0 lib/kobject.c:604
 kobject_del+0x2e/0x50 lib/kobject.c:627
 device_del+0x70f/0x780 drivers/base/core.c:3930
 device_unregister+0x15/0x40 drivers/base/core.c:3951
 wakeup_source_sysfs_remove+0x25/0x30 drivers/base/power/wakeup_stats.c:208
 wakeup_source_unregister+0xee/0x110 drivers/base/power/wakeup.c:244
 __ep_remov

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/31 21:53 upstream d8ec19857b09 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __kernfs_remove / cleanup_glue_dir
* Struck through repros no longer work on HEAD.