syzbot


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

Status: auto-obsoleted due to no activity on 2023/10/24 02:54
Subsystems: fs
[Documentation on labels]
First crash: 765d, last: 683d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in alloc_fd / do_select fs 6 1 927d 927d 0/29 auto-obsoleted due to no activity on 2023/04/12 06:33

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

write to 0xffff88814f074c60 of 8 bytes by task 15886 on cpu 0:
 instrument_write include/linux/instrumented.h:41 [inline]
 ___set_bit include/asm-generic/bitops/instrumented-non-atomic.h:28 [inline]
 __set_open_fd fs/file.c:262 [inline]
 alloc_fd+0x1d5/0x370 fs/file.c:538
 __get_unused_fd_flags fs/file.c:559 [inline]
 get_unused_fd_flags+0x44/0x50 fs/file.c:564
 __do_pipe_flags+0x66/0x190 fs/pipe.c:968
 do_pipe2+0x64/0x130 fs/pipe.c:1015
 __do_sys_pipe fs/pipe.c:1038 [inline]
 __se_sys_pipe fs/pipe.c:1036 [inline]
 __x64_sys_pipe+0x21/0x30 fs/pipe.c:1036
 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 0xffff88814f074c60 of 8 bytes by task 15884 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
 do_pselect fs/select.c:763 [inline]
 __do_sys_pselect6 fs/select.c:804 [inline]
 __se_sys_pselect6+0x213/0x280 fs/select.c:795
 __x64_sys_pselect6+0x78/0x90 fs/select.c:795
 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: 0x00000000000000ff -> 0x0000000000000fff

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 15884 Comm: syz-executor.2 Not tainted 6.6.0-rc2-syzkaller-00018-g2cf0f7156238 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/19 02:50 upstream 2cf0f7156238 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in alloc_fd / do_select
2023/08/22 10:59 upstream f7757129e3de 6b415825 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in alloc_fd / do_select
2023/07/20 07:04 upstream bfa3037d8280 4547cdf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in alloc_fd / do_select
2023/07/10 04:16 upstream 06c2afb862f9 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in alloc_fd / do_select
2023/06/28 20:11 upstream 6aeadf7896bf ca69c785 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in alloc_fd / do_select
* Struck through repros no longer work on HEAD.