syzbot


KCSAN: data-race in cleanup_glue_dir / kernfs_link_sibling (2)

Status: auto-closed as invalid on 2022/10/02 08:38
Subsystems: kernfs
[Documentation on labels]
First crash: 621d, last: 621d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in cleanup_glue_dir / kernfs_link_sibling kernfs 1 1047d 1047d 0/26 auto-closed as invalid on 2021/08/01 14:53

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

read-write to 0xffff888131ecfac0 of 8 bytes by task 4342 on cpu 1:
 kernfs_link_sibling+0x20c/0x250 fs/kernfs/dir.c:381
 kernfs_add_one+0x2a3/0x3e0 fs/kernfs/dir.c:754
 kernfs_create_dir_ns+0xfc/0x140 fs/kernfs/dir.c:1020
 sysfs_create_dir_ns+0xa3/0x1a0 fs/sysfs/dir.c:59
 create_dir lib/kobject.c:63 [inline]
 kobject_add_internal+0x487/0x790 lib/kobject.c:223
 kobject_add_varg lib/kobject.c:358 [inline]
 kobject_add+0xd7/0x150 lib/kobject.c:410
 device_add+0x2f3/0xb20 drivers/base/core.c:3452
 wakeup_source_device_create drivers/base/power/wakeup_stats.c:161 [inline]
 wakeup_source_sysfs_add+0x134/0x1a0 drivers/base/power/wakeup_stats.c:181
 wakeup_source_register+0x102/0x240 drivers/base/power/wakeup.c:228
 ep_create_wakeup_source fs/eventpoll.c:1376 [inline]
 ep_modify+0x11e/0x3f0 fs/eventpoll.c:1584
 do_epoll_ctl+0x482/0x890 fs/eventpoll.c:2177
 __do_sys_epoll_ctl fs/eventpoll.c:2214 [inline]
 __se_sys_epoll_ctl fs/eventpoll.c:2205 [inline]
 __x64_sys_epoll_ctl+0xc2/0xf0 fs/eventpoll.c:2205
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888131ecfac0 of 8 bytes by task 4338 on cpu 0:
 kobject_has_children drivers/base/core.c:3152 [inline]
 cleanup_glue_dir+0xcb/0x140 drivers/base/core.c:3218
 device_del+0x850/0x8c0 drivers/base/core.c:3716
 device_unregister+0x11/0x30 drivers/base/core.c:3736
 wakeup_source_sysfs_remove+0x21/0x30 drivers/base/power/wakeup_stats.c:208
 wakeup_source_unregister+0xea/0x110 drivers/base/power/wakeup.c:249
 ep_remove+0x2b2/0x360 fs/eventpoll.c:723
 do_epoll_ctl+0x505/0x890 fs/eventpoll.c:2169
 __do_sys_epoll_ctl fs/eventpoll.c:2214 [inline]
 __se_sys_epoll_ctl fs/eventpoll.c:2205 [inline]
 __x64_sys_epoll_ctl+0xc2/0xf0 fs/eventpoll.c:2205
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000000001 -> 0x0000000000000002

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4338 Comm: syz-executor.0 Not tainted 6.0.0-rc2-syzkaller-00283-g10d4879f9ef0-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/28 08:38 upstream 10d4879f9ef0 07177916 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in cleanup_glue_dir / kernfs_link_sibling
* Struck through repros no longer work on HEAD.