syzbot


KCSAN: data-race in close_fd / do_select (2)

Status: auto-obsoleted due to no activity on 2023/08/19 13:19
Subsystems: fs
[Documentation on labels]
First crash: 303d, last: 293d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in close_fd / do_select fs 1 998d 998d 0/26 auto-closed as invalid on 2021/09/14 03:57

Sample crash report:
==================================================================
BUG: KCSAN: data-race in close_fd / do_select

write to 0xffff8881002daa80 of 8 bytes by task 3804 on cpu 0:
 instrument_write include/linux/instrumented.h:41 [inline]
 ___clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:44 [inline]
 __clear_open_fd fs/file.c:270 [inline]
 __put_unused_fd fs/file.c:571 [inline]
 pick_file fs/file.c:649 [inline]
 close_fd+0xf2/0x1b0 fs/file.c:660
 __do_sys_close fs/open.c:1536 [inline]
 __se_sys_close fs/open.c:1534 [inline]
 __x64_sys_close+0x1e/0x90 fs/open.c:1534
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881002daa80 of 8 bytes by task 3814 on cpu 1:
 max_select_fd fs/select.c:447 [inline]
 do_select+0x2a2/0xf90 fs/select.c:490
 core_sys_select+0x361/0x520 fs/select.c:681
 kern_select fs/select.c:722 [inline]
 __do_sys_select fs/select.c:729 [inline]
 __se_sys_select+0x1c7/0x200 fs/select.c:726
 __x64_sys_select+0x67/0x80 fs/select.c:726
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xfffffffffffffe07 -> 0xfffffffffff00007

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3814 Comm: syz-executor.5 Not tainted 6.5.0-rc1-syzkaller-00248-gb6e6cc1f78c7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/15 13:18 upstream b6e6cc1f78c7 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in close_fd / do_select
2023/07/05 07:55 upstream d528014517f2 80298b6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in close_fd / do_select
* Struck through repros no longer work on HEAD.