syzbot


KCSAN: data-race in generic_fillattr / shmem_mknod (2)

Status: moderation: reported on 2022/03/11 17:31
Reported-by: syzbot+84b1b4b190aa2c4bc25a@syzkaller.appspotmail.com
First crash: 386d, last: 1d23h
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / shmem_mknod 86 961d 1073d 0/24 auto-closed as invalid on 2020/07/21 10:58

Sample crash report:
udevd[11760]: inotify_add_watch(7, /dev/loop1p32, 10) failed: No such file or directory
==================================================================
BUG: KCSAN: data-race in generic_fillattr / shmem_mknod

read-write to 0xffff888103427408 of 8 bytes by task 11762 on cpu 0:
 shmem_mknod+0xd1/0x170 mm/shmem.c:2934
 shmem_create+0x2f/0x40 mm/shmem.c:2986
 lookup_open fs/namei.c:3413 [inline]
 open_last_lookups fs/namei.c:3481 [inline]
 path_openat+0xc6d/0x1b60 fs/namei.c:3711
 do_filp_open+0x105/0x220 fs/namei.c:3741
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1337
 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 0xffff888103427408 of 8 bytes by task 11760 on cpu 1:
 i_size_read include/linux/fs.h:864 [inline]
 generic_fillattr+0x220/0x2d0 fs/stat.c:57
 shmem_getattr+0x310/0x390 mm/shmem.c:1069
 vfs_getattr_nosec fs/stat.c:127 [inline]
 vfs_getattr fs/stat.c:164 [inline]
 vfs_statx+0x266/0x460 fs/stat.c:236
 vfs_fstatat fs/stat.c:270 [inline]
 __do_sys_newfstatat fs/stat.c:440 [inline]
 __se_sys_newfstatat+0x8a/0x290 fs/stat.c:434
 __x64_sys_newfstatat+0x51/0x60 fs/stat.c:434
 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: 0x0000000000002350 -> 0x0000000000002364

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11760 Comm: udevd Tainted: G        W          6.2.0-rc6-syzkaller-00003-g22b8077d0fce-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================

Crashes (352):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/01/31 16:15 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/30 11:27 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/28 16:36 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/26 02:56 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/25 11:48 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/23 20:53 upstream 7bf70dbb1882 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/23 14:42 upstream 2475bf0250de 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/20 23:52 upstream edc00350d205 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/18 11:09 upstream c1649ec55708 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/16 23:55 upstream d532dd102151 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/14 16:05 upstream 97ec4d559d93 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/13 16:41 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/11 13:59 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/11 03:24 upstream 40c18f363a08 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/10 09:30 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/09 22:35 upstream 1fe4fd6f5cad 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/09 07:32 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/06 19:17 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/05 12:48 upstream 512dee0c00ad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/04 08:48 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/03 10:43 upstream 69b41ac87e4a f0036e18 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2023/01/01 14:44 upstream e4cf7c25bae5 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/31 15:57 upstream c8451c141e07 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/30 00:21 upstream 2258c2dc850b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/24 20:20 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/21 18:27 upstream b6bb9676f216 4067838e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/20 21:46 upstream 6feb57c2fd7c d3e76707 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/20 17:16 upstream 6feb57c2fd7c c52b2efb .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/17 13:41 upstream 77856d911a8c 05494336 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/16 19:25 upstream 84e57d292203 05494336 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/14 16:11 upstream e2ca6ba6ba01 b18f0a64 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/12 16:07 upstream 830b3c68c1fb 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/11 05:18 upstream 296a7b7eb792 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/10 06:56 upstream 3ecc37918c80 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/09 16:06 upstream 0d1409e4ff08 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/09 03:37 upstream f3e8416619ce 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/08 18:54 upstream 479174d402bc 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/06 10:24 upstream bce9332220bd 045cbb84 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/05 16:18 upstream 76dcd734eca2 045cbb84 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/04 01:21 upstream c2bf05db6c78 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/12/01 19:28 upstream ef4d3ea40565 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/11/30 12:19 upstream 01f856ae6d0c 4c2a66e8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/11/30 06:16 upstream 01f856ae6d0c 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/03/11 07:22 upstream 79b00034e9dc 9e8eaa75 .config console log report info KCSAN: data-race in generic_fillattr / shmem_mknod
ci2-upstream-kcsan-gce 2022/01/12 12:19 upstream daadb3bd0e8d 44d1319a .config console log report info KCSAN: data-race in generic_fillattr / shmem_mknod
* Struck through repros no longer work on HEAD.