KCSAN: data-race in n_tty_read / n_tty_receive_buf_common

9 views
Skip to first unread message

syzbot

unread,
Dec 7, 2020, 6:56:12 AM12/7/20
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 4ef8451b Merge tag 'perf-tools-for-v5.10-2020-11-03' of gi..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=14387434500000
kernel config: https://syzkaller.appspot.com/x/.config?x=76dfc991796328d4
dashboard link: https://syzkaller.appspot.com/bug?extid=d6357a53bc36af61ff6f
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project.git 913f6005669cfb590c99865a90bc51ed0983d09d)
CC: [gre...@linuxfoundation.org jiri...@kernel.org linux-...@vger.kernel.org]

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d6357a...@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in n_tty_read / n_tty_receive_buf_common

write to 0xffff88810aa1f9f4 of 4 bytes by task 8169 on cpu 0:
tty_set_flow_change include/linux/tty.h:385 [inline]
n_tty_check_unthrottle drivers/tty/n_tty.c:295 [inline]
n_tty_read+0xaad/0x1220 drivers/tty/n_tty.c:2259
tty_read+0xe6/0x200 drivers/tty/tty_io.c:869
vfs_read+0x154/0x5c0 fs/read_write.c:494
ksys_read+0xce/0x180 fs/read_write.c:634
__do_sys_read fs/read_write.c:644 [inline]
__se_sys_read fs/read_write.c:642 [inline]
__x64_sys_read+0x3e/0x50 fs/read_write.c:642
do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88810aa1f9f4 of 4 bytes by task 21 on cpu 1:
__tty_set_flow_change include/linux/tty.h:380 [inline]
n_tty_check_throttle drivers/tty/n_tty.c:272 [inline]
n_tty_receive_buf_common+0x1db8/0x1df0 drivers/tty/n_tty.c:1761
n_tty_receive_buf2+0x2e/0x40 drivers/tty/n_tty.c:1777
tty_ldisc_receive_buf+0x61/0xf0 drivers/tty/tty_buffer.c:461
tty_port_default_receive_buf+0x54/0x80 drivers/tty/tty_port.c:38
receive_buf drivers/tty/tty_buffer.c:481 [inline]
flush_to_ldisc+0x1c5/0x2b0 drivers/tty/tty_buffer.c:533
process_one_work+0x3e1/0x950 kernel/workqueue.c:2272
worker_thread+0x635/0xb90 kernel/workqueue.c:2418
kthread+0x1fa/0x220 kernel/kthread.c:292
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 21 Comm: kworker/u4:1 Not tainted 5.10.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_unbound flush_to_ldisc
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 21, 2020, 6:57:09 AM12/21/20
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages