syzbot


KCSAN: data-race in pty_close / pty_flush_buffer (2)

Status: auto-obsoleted due to no activity on 2023/08/27 10:05
Subsystems: serial
[Documentation on labels]
First crash: 289d, last: 289d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pty_close / pty_flush_buffer serial 2 651d 685d 0/26 auto-closed as invalid on 2022/08/30 11:39

Sample crash report:
==================================================================
BUG: KCSAN: data-race in pty_close / pty_flush_buffer

write to 0xffff8881351201d9 of 1 bytes by task 7502 on cpu 1:
 pty_close+0x124/0x280 drivers/tty/pty.c:61
 tty_release+0x204/0x930 drivers/tty/tty_io.c:1762
 __fput+0x303/0x600 fs/file_table.c:384
 ____fput+0x15/0x20 fs/file_table.c:412
 task_work_run+0x135/0x1a0 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881351201d9 of 1 bytes by task 7505 on cpu 0:
 pty_flush_buffer+0x44/0xd0 drivers/tty/pty.c:212
 tty_driver_flush_buffer+0x3e/0x50 drivers/tty/tty_ioctl.c:97
 nci_uart_tty_open+0x66/0x80 net/nfc/nci/uart.c:163
 tty_ldisc_open drivers/tty/tty_ldisc.c:432 [inline]
 tty_set_ldisc+0x299/0x490 drivers/tty/tty_ldisc.c:557
 tiocsetd+0x52/0x60 drivers/tty/tty_io.c:2441
 tty_ioctl+0xa87/0xbc0 drivers/tty/tty_io.c:2722
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcf/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

value changed: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7505 Comm: syz-executor.0 Not tainted 6.5.0-rc2-syzkaller-00338-g295e1388de2d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/23 09:56 upstream 295e1388de2d 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pty_close / pty_flush_buffer
* Struck through repros no longer work on HEAD.