syzbot


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

Status: auto-closed as invalid on 2022/08/18 15:43
Subsystems: mm
[Documentation on labels]
First crash: 652d, last: 652d
Similar bugs (9)
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 1188d 1214d 0/26 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 828d 962d 0/26 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 1406d 1406d 0/26 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 152d 136d 0/26 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 1476d 1476d 0/26 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 1076d 1088d 0/26 auto-closed as invalid on 2021/06/20 16:41
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (5) mm 3 1007d 1028d 0/26 auto-closed as invalid on 2021/09/03 02:37
upstream KCSAN: data-race in list_lru_add / list_lru_count_node (8) mm 1 588d 588d 0/26 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 20d 25d 0/26 moderation: reported on 2024/04/01 12:23

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

read-write to 0xffff888103adb260 of 8 bytes by task 1777 on cpu 1:
 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
 do_unlinkat+0x288/0x510 fs/namei.c:4263
 __do_sys_unlink fs/namei.c:4308 [inline]
 __se_sys_unlink fs/namei.c:4306 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:4306
 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 0xffff888103adb260 of 8 bytes by task 19414 on cpu 0:
 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:888
 do_remount fs/namespace.c:2702 [inline]
 path_mount+0x984/0xb60 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: 0 PID: 19414 Comm: syz-executor.5 Not tainted 5.19.0-rc6-syzkaller-00115-g4a57a8400075-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/14 15:35 upstream 4a57a8400075 5d921b08 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in list_lru_add / list_lru_count_node
* Struck through repros no longer work on HEAD.