syzbot


KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark

Status: auto-closed as invalid on 2022/06/30 10:31
Reported-by: syzbot+97ac81fbea69845bf00a@syzkaller.appspotmail.com
First crash: 845d, last: 188d

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

write to 0xffff88810287a31c of 4 bytes by task 6157 on cpu 0:
 fsnotify_detach_connector_from_object fs/notify/mark.c:215 [inline]
 fsnotify_put_mark+0x2b9/0x6d0 fs/notify/mark.c:274
 __do_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:807 [inline]
 __se_sys_inotify_rm_watch+0xff/0x170 fs/notify/inotify/inotify_user.c:781
 __x64_sys_inotify_rm_watch+0x2d/0x40 fs/notify/inotify/inotify_user.c:781
 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+0x46/0xb0

read to 0xffff88810287a31c of 4 bytes by task 1825 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:1218
 do_sys_open fs/open.c:1229 [inline]
 __do_sys_openat fs/open.c:1245 [inline]
 __se_sys_openat fs/open.c:1240 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1240
 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+0x46/0xb0

value changed: 0x00002008 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1825 Comm: syz-executor.3 Not tainted 5.18.0-syzkaller-07496-gd7227785e384-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (774):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/26 10:30 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/25 16:18 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/25 12:06 upstream fdaf9a5840ac 647c0e27 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/25 01:46 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/24 15:49 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/24 01:43 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/23 16:46 upstream 4b0986a3613c 4c7657cb .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/22 20:03 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/22 10:01 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/21 21:50 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/20 20:16 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/20 07:02 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/19 17:14 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/19 10:38 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/19 00:10 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/18 16:17 upstream 210e04ff7681 50c53f39 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/18 08:34 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/16 06:25 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/15 17:57 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/15 07:29 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/14 15:16 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/14 03:11 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/13 13:24 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/13 00:18 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/11 16:58 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/11 05:36 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/09 21:06 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/09 10:03 upstream c5eb0a61238d 8b277b8e .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/09 08:48 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/09 05:21 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/09 01:37 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/08 22:55 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/08 18:11 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/08 12:25 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/08 11:19 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/08 08:21 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/07 21:52 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/07 03:11 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/06 19:02 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/06 17:54 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/06 04:50 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/05 10:15 upstream a7391ad35724 b3f09415 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/05 01:20 upstream a7391ad35724 dc9e5259 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/04 12:15 upstream 107c948d1d3e dc9e5259 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2022/05/04 03:10 upstream ef8e4d3c2ab1 dc9e5259 .config log report info KCSAN: data-race in __fsnotify_parent / fsnotify_put_mark
ci2-upstream-kcsan-gce 2021/01/17 06:57 upstream 54c6247d06f1 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2020/11/11 02:07 upstream eccc87672492 cca87986 .config log report info
ci2-upstream-kcsan-gce 2020/11/08 10:59 upstream 4429f14aeea9 cba33199 .config log report info
ci2-upstream-kcsan-gce 2020/08/07 20:53 upstream 86cfccb66937 28ac5c9e .config log report
* Struck through repros no longer work on HEAD.