syzbot


KCSAN: data-race in n_tty_receive_char / n_tty_write (2)

Status: auto-obsoleted due to no activity on 2022/12/30 17:18
Subsystems: serial
[Documentation on labels]
First crash: 654d, last: 513d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (4) serial 1 365d 365d 0/26 auto-obsoleted due to no activity on 2023/05/20 17:17
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (6) serial 27 22d 130d 0/26 moderation: reported on 2023/12/07 10:05
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (3) serial 5 424d 465d 0/26 auto-obsoleted due to no activity on 2023/03/30 21:01
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write serial 25 689d 953d 0/26 auto-closed as invalid on 2022/06/30 23:55
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (5) serial 3 290d 315d 0/26 auto-obsoleted due to no activity on 2023/08/03 17:30

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

write to 0xffffc9000114f028 of 8 bytes by task 12897 on cpu 1:
 commit_echoes drivers/tty/n_tty.c:768 [inline]
 n_tty_receive_char+0x4d0/0x6a0 drivers/tty/n_tty.c:1420
 n_tty_receive_buf_standard+0x3b3/0x3a30 drivers/tty/n_tty.c:1589
 __receive_buf drivers/tty/n_tty.c:1613 [inline]
 n_tty_receive_buf_common+0x72d/0xbf0 drivers/tty/n_tty.c:1711
 n_tty_receive_buf+0x2b/0x40 drivers/tty/n_tty.c:1740
 tiocsti+0x14b/0x1a0 drivers/tty/tty_io.c:2286
 tty_ioctl+0x244/0x940 drivers/tty/tty_io.c:2685
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffffc9000114f028 of 8 bytes by task 12894 on cpu 0:
 process_echoes drivers/tty/n_tty.c:794 [inline]
 n_tty_write+0x13e/0xb10 drivers/tty/n_tty.c:2336
 do_tty_write drivers/tty/tty_io.c:1018 [inline]
 file_tty_write+0x3b8/0x620 drivers/tty/tty_io.c:1089
 tty_write+0x24/0x30 drivers/tty/tty_io.c:1110
 call_write_iter include/linux/fs.h:2191 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x468/0x760 fs/read_write.c:584
 ksys_write+0xe8/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+0x3e/0x50 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000000000 -> 0x0000000000000003

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 12894 Comm: syz-executor.3 Not tainted 6.1.0-rc5-syzkaller-00241-gab290eaddc4c-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/19 03:23 upstream ab290eaddc4c 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2022/10/23 00:07 upstream 440b7895c990 c0b80a55 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2022/09/28 09:23 upstream 46452d3786a8 75c78242 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2022/09/22 20:25 upstream dc164f4fb00a 0042f2b4 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2022/09/20 15:33 upstream 521a547ced64 7c41a9ba .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2022/09/17 18:08 upstream a335366bad13 dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2022/09/11 14:05 upstream b96fbd602d35 356d8217 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2022/09/01 00:43 upstream c5e4d5e99162 51e54e30 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2022/08/15 20:39 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2022/08/04 10:55 upstream ff89dd08c0f0 1c9013ac .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2022/08/01 17:21 upstream 3d7cb6b04c3f fef302b1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2022/07/14 01:24 upstream 4a57a8400075 5d921b08 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2022/07/01 13:31 upstream a175eca0f3d7 1434eec0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
* Struck through repros no longer work on HEAD.