syzbot


KCSAN: data-race in n_tty_receive_signal_char / n_tty_write

Status: auto-obsoleted due to no activity on 2023/06/05 17:25
Subsystems: serial
[Documentation on labels]
First crash: 807d, last: 807d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_receive_signal_char / n_tty_write (2) serial 6 1 517d 517d 0/29 auto-obsoleted due to no activity on 2024/03/21 17:13

Sample crash report:
==================================================================
BUG: KCSAN: data-race in n_tty_receive_signal_char / n_tty_write

write to 0xffffc90001b31028 of 8 bytes by task 13171 on cpu 0:
 commit_echoes drivers/tty/n_tty.c:767 [inline]
 n_tty_receive_signal_char+0x2eb/0x3e0 drivers/tty/n_tty.c:1222
 n_tty_receive_buf_standard+0x672/0x2d40 drivers/tty/n_tty.c:1586
 __receive_buf drivers/tty/n_tty.c:1612 [inline]
 n_tty_receive_buf_common+0x84a/0xb50 drivers/tty/n_tty.c:1710
 n_tty_receive_buf+0x2f/0x40 drivers/tty/n_tty.c:1739
 tiocsti+0x168/0x1c0 drivers/tty/tty_io.c:2292
 tty_ioctl+0x40f/0xbc0 drivers/tty/tty_io.c:2691
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:856
 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 0xffffc90001b31028 of 8 bytes by task 13165 on cpu 1:
 process_echoes drivers/tty/n_tty.c:793 [inline]
 n_tty_write+0x156/0xa80 drivers/tty/n_tty.c:2335
 do_tty_write drivers/tty/tty_io.c:1018 [inline]
 file_tty_write+0x3a0/0x600 drivers/tty/tty_io.c:1089
 tty_write+0x28/0x30 drivers/tty/tty_io.c:1110
 call_write_iter include/linux/fs.h:1868 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x463/0x760 fs/read_write.c:584
 ksys_write+0xeb/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:646
 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: 0x0000000000000000 -> 0x0000000000000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 13165 Comm: syz-executor.4 Not tainted 6.3.0-syzkaller-12049-g58390c8ce1bd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/01 17:15 upstream 58390c8ce1bd 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_signal_char / n_tty_write
* Struck through repros no longer work on HEAD.