syzbot


KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object (3)

Status: moderation: reported syz repro on 2023/12/08 00:00
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+f2d61c1b2357c03fb539@syzkaller.appspotmail.com
First crash: 897d, last: 197d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object (2) fs 6 1676d 1816d 0/28 auto-closed as invalid on 2020/06/16 20:23
upstream KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object fs 1 1824d 1823d 0/28 closed as invalid on 2019/11/19 15:04
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/09/26 17:42 23m retest repro upstream report log
2024/07/18 03:41 13m retest repro upstream report log
2024/05/09 02:15 11m retest repro upstream report log

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object

write to 0xffff888101eb9324 of 4 bytes by task 1815 on cpu 0:
 fsnotify_detach_connector_from_object+0x80/0x260 fs/notify/mark.c:253
 fsnotify_put_mark+0x198/0x3b0 fs/notify/mark.c:316
 __do_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:820 [inline]
 __se_sys_inotify_rm_watch+0xff/0x170 fs/notify/inotify/inotify_user.c:794
 __x64_sys_inotify_rm_watch+0x2d/0x40 fs/notify/inotify/inotify_user.c:794
 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 0xffff888101eb9324 of 4 bytes by task 2085 on cpu 1:
 fsnotify_event_needs_parent fs/notify/fsnotify.c:161 [inline]
 __fsnotify_parent+0x126/0x470 fs/notify/fsnotify.c:202
 fsnotify_parent include/linux/fsnotify.h:77 [inline]
 fsnotify_file include/linux/fsnotify.h:99 [inline]
 fsnotify_open include/linux/fsnotify.h:330 [inline]
 do_sys_openat2+0x23a/0x2a0 fs/open.c:1318
 do_sys_open fs/open.c:1329 [inline]
 __do_sys_openat fs/open.c:1345 [inline]
 __se_sys_openat fs/open.c:1340 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1340
 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: 0x00002008 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2085 Comm: syz-executor.3 Not tainted 6.0.0-rc7-syzkaller-00042-g46452d3786a8-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================
loop3: detected capacity change from 0 to 87
FAT-fs (loop3): bogus sectors per cluster 116
FAT-fs (loop3): Can't find a valid FAT filesystem

Crashes (978):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/28 06:21 upstream 46452d3786a8 75c78242 .config console log report syz [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/04/25 02:14 upstream e88c4cfcb7b8 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/04/24 15:14 upstream 9d1ddab261f3 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/04/22 16:47 upstream ed30a4a51bb1 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/04/20 14:15 upstream 13a2e429f644 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/04/17 02:51 upstream 96fca68c4fbf 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/04/13 20:49 upstream 7efd0a74039f c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/04/12 18:36 upstream 5939d45155bb c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/04/12 04:08 upstream 586b5dfb51b9 27de0a5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/04/06 21:22 upstream f2f80ac80987 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/25 02:48 upstream 5e74df2f8f15 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/22 08:37 upstream 8e938e398669 7a239ce7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/22 03:15 upstream ebc9bee8814d 7a239ce7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/21 09:40 upstream dba89d1b81df 6753db5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/19 20:51 upstream d95fcdf4961d e104824c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/11 23:18 upstream 045395d86acd 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/11 19:02 upstream e8f897f4afef 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/10 11:29 upstream 005f6f34bd47 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/10 03:06 upstream 09e5c48fea17 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/09 10:29 upstream 10d48d70e82d 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/08 23:44 upstream 10d48d70e82d 8e75c913 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/08 21:55 upstream 3aaa8ce7a335 8e75c913 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/07 04:11 upstream 67be068d31d4 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/06 11:41 upstream 5847c9777c30 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/06 07:49 upstream 29cd507cbec2 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/05 19:47 upstream 90d35da658da f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/05 09:29 upstream 90d35da658da 5fc53669 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/04 21:42 upstream 90d35da658da 3717835d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/04 09:07 upstream 90d35da658da 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/03 18:50 upstream 58c806d867bf 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/03 14:25 upstream 04b8076df253 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/02 18:03 upstream 5ad3cb0ed525 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/03/02 08:01 upstream 17ba56605bfd 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/29 01:13 upstream e326df53af00 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/28 15:55 upstream cf1182944c7c 55d6f11d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/28 07:38 upstream cf1182944c7c d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/27 22:01 upstream 45ec2f5f6ed3 d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/27 08:17 upstream 45ec2f5f6ed3 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/26 19:46 upstream d206a76d7d27 da36a36b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/26 02:43 upstream 70ff1fe626a1 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/25 19:27 upstream ab0a97cffa0b 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/25 01:18 upstream f2e367d6ad3b 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/24 09:58 upstream 603c04e27c3e 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/23 11:41 upstream ffd2cb6b718e 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/23 01:33 upstream 1c892cdd8fe0 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/21 14:28 upstream 9fc1ccccfd8d 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/21 01:48 upstream fca7526b7d89 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/19 04:51 upstream b401b621758e 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/18 09:26 upstream c02197fc9076 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2024/02/18 02:00 upstream ced590523156 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2023/12/02 11:25 upstream 815fb87b7530 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
2022/05/26 22:59 upstream 16477cdfefdb 3037caa9 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object
* Struck through repros no longer work on HEAD.