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: 637d, last: 9h51m
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 1417d 1557d 0/26 auto-closed as invalid on 2020/06/16 20:23
upstream KCSAN: data-race in __fsnotify_parent / fsnotify_detach_connector_from_object fs 1 1564d 1564d 0/26 closed as invalid on 2019/11/19 15:04

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 (935):
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/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
2024/02/17 11:41 upstream c1ca10ceffbb 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/16 12:24 upstream 4f5e5092fdbf 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/16 00:02 upstream 4f5e5092fdbf fd39cf6f .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/15 13:10 upstream 8d3dea210042 fd39cf6f .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/15 03:43 upstream 8d3dea210042 d9b1cdd5 .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/14 16:30 upstream 7e90b5c295ec d9b1cdd5 .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/13 14:46 upstream c664e16bb1ba e66542d7 .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/13 05:27 upstream 716f4aaa7b48 77b23aa1 .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/12 03:46 upstream 841c35169323 77b23aa1 .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/11 12:09 upstream 7521f258ea30 77b23aa1 .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/11 08:28 upstream a5b6244cf87c 77b23aa1 .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/10 00:43 upstream e6f39a90de92 77b23aa1 .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/09 15:46 upstream 1f719a2f3fa6 7f07e9b0 .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/07 23:53 upstream 547ab8fc4cb0 6404acf9 .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/07 15:10 upstream 6d280f4d760e 6404acf9 .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/06 09:39 upstream 99bd3cb0d12e 6404acf9 .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/05 11:54 upstream 54be6c6c5ae8 e23e8c20 .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/03 00:31 upstream 021533194476 60bf9982 .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/02 14:53 upstream 021533194476 d61103fc .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/02 06:40 upstream 5c24e4e9e708 d61103fc .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/01 05:11 upstream 6764c317b6bb 373b66cd .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/01/31 15:14 upstream 1bbb19b6eb1b 373b66cd .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/01/31 06:37 upstream 2a6526c4f389 7f400fcb .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/01/30 08:38 upstream 861c0981648f 991a98f4 .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/01/29 14:43 upstream 41bccc98fb79 991a98f4 .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/01/27 22:53 upstream cd2286fc5775 cc4a4020 .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/01/27 12:23 upstream 3a5879d495b2 cc4a4020 .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/01/26 14:52 upstream ecb1b8288dc7 cc4a4020 .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/01/25 14:19 upstream 6098d87eaf31 1e153dc8 .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/01/23 12:43 upstream 5d9248eed480 1c0ecc51 .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/01/23 03:20 upstream 5d9248eed480 9bd8dcda .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/01/22 10:05 upstream 6613476e225e 9bd8dcda .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/01/22 03:13 upstream 4fbbed787267 9bd8dcda .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/01/21 11:01 upstream 7a396820222d 9bd8dcda .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/01/20 22:53 upstream 125514880ddd 9bd8dcda .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/01/19 18:12 upstream 9d1694dc91ce 9bd8dcda .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/01/19 03:42 upstream 86c4d58a99ab 21772ce4 .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/01/18 14:53 upstream 296455ade1fd 239abf84 .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/01/17 10:29 upstream 052d534373b7 c9a1c95b .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.