syzbot


KCSAN: data-race in list_lru_add / list_lru_count_node (12)

Status: auto-obsoleted due to no activity on 2024/09/03 00:07
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+55873bbba7a34bafdb95@syzkaller.appspotmail.com
First crash: 44d, last: 44d
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (3) mm 3 1326d 1353d 0/27 auto-closed as invalid on 2021/02/28 22:07
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (6) mm 15 967d 1101d 0/27 auto-closed as invalid on 2022/02/23 08:49
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (2) mm 1 1545d 1545d 0/27 auto-closed as invalid on 2020/07/25 12:43
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (9) mm 1 291d 275d 0/27 auto-obsoleted due to no activity on 2023/12/31 11:14
upstream KCSAN: data-race in list_lru_add / list_lru_count_node mm 1 1615d 1615d 0/27 auto-closed as invalid on 2020/06/18 13:43
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (4) mm 5 1214d 1227d 0/27 auto-closed as invalid on 2021/06/20 16:41
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (7) mm 1 790d 790d 0/27 auto-closed as invalid on 2022/08/18 15:43
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (5) mm 3 1145d 1166d 0/27 auto-closed as invalid on 2021/09/03 02:37
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (11) mm 1 82d 82d 0/27 auto-obsoleted due to no activity on 2024/07/27 08:53
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (8) mm 1 727d 727d 0/27 auto-obsoleted due to no activity on 2022/10/21 06:23
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (10) mm 2 159d 164d 0/27 auto-obsoleted due to no activity on 2024/05/11 04:16

Sample crash report:
misc raw-gadget: fail, usb_gadget_register_driver returned -16
==================================================================
BUG: KCSAN: data-race in list_lru_add / list_lru_count_node

read-write to 0xffff8881068d2760 of 8 bytes by task 3255 on cpu 1:
 list_lru_add+0x1f4/0x230 mm/list_lru.c:101
 list_lru_add_obj+0xbb/0xd0 mm/list_lru.c:116
 d_lru_add+0xa8/0xe0 fs/dcache.c:437
 retain_dentry fs/dcache.c:719 [inline]
 fast_dput+0x27a/0x2c0 fs/dcache.c:806
 dput+0x24/0xd0 fs/dcache.c:846
 __fput+0x41f/0x6f0 fs/file_table.c:430
 __fput_sync+0x44/0x60 fs/file_table.c:507
 __do_sys_close fs/open.c:1566 [inline]
 __se_sys_close+0x101/0x1b0 fs/open.c:1551
 __x64_sys_close+0x1f/0x30 fs/open.c:1551
 x64_sys_call+0x2630/0x2e00 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881068d2760 of 8 bytes by task 4334 on cpu 0:
 list_lru_count_node+0x2c/0x40 mm/list_lru.c:188
 list_lru_count include/linux/list_lru.h:165 [inline]
 shrink_dcache_sb+0x1a4/0x280 fs/dcache.c:1203
 reconfigure_super+0x2eb/0x5b0 fs/super.c:1061
 vfs_cmd_reconfigure fs/fsopen.c:263 [inline]
 vfs_fsconfig_locked fs/fsopen.c:292 [inline]
 __do_sys_fsconfig fs/fsopen.c:473 [inline]
 __se_sys_fsconfig+0x79b/0x9c0 fs/fsopen.c:345
 __x64_sys_fsconfig+0x67/0x80 fs/fsopen.c:345
 x64_sys_call+0x3af/0x2e00 arch/x86/include/generated/asm/syscalls_64.h:432
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000000 -> 0x0000000000000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4334 Comm: syz.2.169 Not tainted 6.11.0-rc1-syzkaller-00004-gdc1c8034e31b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/30 00:06 upstream dc1c8034e31b 5187fc86 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in list_lru_add / list_lru_count_node
* Struck through repros no longer work on HEAD.