syzbot


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

Status: auto-obsoleted due to no activity on 2022/10/21 06:23
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 140d, last: 140d
similar bugs (7):
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) 3 739d 765d 0/24 auto-closed as invalid on 2021/02/28 22:07
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (6) 15 380d 514d 0/24 auto-closed as invalid on 2022/02/23 08:49
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (2) 1 957d 957d 0/24 auto-closed as invalid on 2020/07/25 12:43
upstream KCSAN: data-race in list_lru_add / list_lru_count_node 1 1028d 1028d 0/24 auto-closed as invalid on 2020/06/18 13:43
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (4) 5 627d 640d 0/24 auto-closed as invalid on 2021/06/20 16:41
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (7) 1 203d 203d 0/24 auto-closed as invalid on 2022/08/18 15:43
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (5) 3 558d 579d 0/24 auto-closed as invalid on 2021/09/03 02:37

Sample crash report:
==================================================================
BUG: KCSAN: data-race in list_lru_add / list_lru_count_node

read-write to 0xffff888103a228a0 of 8 bytes by task 5745 on cpu 0:
 list_lru_add+0x2a1/0x2d0 mm/list_lru.c:134
 d_lru_add+0xa5/0xe0 fs/dcache.c:431
 retain_dentry+0x153/0x190 fs/dcache.c:685
 dput+0x10e/0x1f0 fs/dcache.c:908
 done_path_create fs/namei.c:3833 [inline]
 do_symlinkat+0xed/0x330 fs/namei.c:4410
 __do_sys_symlinkat fs/namei.c:4424 [inline]
 __se_sys_symlinkat fs/namei.c:4421 [inline]
 __x64_sys_symlinkat+0x5e/0x70 fs/namei.c:4421
 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 0xffff888103a228a0 of 8 bytes by task 5743 on cpu 1:
 list_lru_count_node+0x28/0x30 mm/list_lru.c:201
 list_lru_count include/linux/list_lru.h:131 [inline]
 shrink_dcache_sb+0x1cd/0x2b0 fs/dcache.c:1322
 reconfigure_super+0x146/0x540 fs/super.c:917
 do_remount fs/namespace.c:2702 [inline]
 path_mount+0xa11/0xbb0 fs/namespace.c:3362
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568
 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: 0x0000000000000000 -> 0x0000000000000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5743 Comm: syz-executor.5 Not tainted 6.0.0-rc5-syzkaller-00025-g3245cb65fd91-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2022/09/16 06:13 upstream 3245cb65fd91 dd9a85ff .config console log report info [disk image] [vmlinux] KCSAN: data-race in list_lru_add / list_lru_count_node
* Struck through repros no longer work on HEAD.