KCSAN: data-race in serial8250_do_startup / serial8250_modem_status (5)

Status: moderation: reported on 2026/10/20 17:18
Subsystems: serial
Labels: race:benign prio:low
[Documentation on labels]
Reported-by: syzbot+eebcc2b949c1c7663850@syzkaller.appspotmail.com
First crash: 36d, last: 5d17h
▶ ▼ ✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision
09cf9a86 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ KCSAN: data-race in serial8250_do_startup / serial8250_modem_status (5) 2026/10/22 00:01 2026/10/22 00:01 2026/10/22 00:43 42e06812
8efc447a assessment-kcsan Benign: ✅ ❓ KCSAN: data-race in serial8250_do_startup / serial8250_modem_status (5) 2026/10/20 17:18 2026/10/20 17:18 2026/10/20 18:21 61c200c7
▶ ▼ Discussions (1)
Title Replies (including bot) Last reply
[PATCH] serial: 8250: Lock saved status flag resets during startup 1 (1) 2026/11/11 08:41
▶ ▼ Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in serial8250_do_startup / serial8250_modem_status (3) serial 6 3 300d 333d 0/30 auto-obsoleted due to no activity on 2026/03/27 04:32
upstream KCSAN: data-race in serial8250_do_startup / serial8250_modem_status (2) serial 6 1 400d 400d 0/30 auto-obsoleted due to no activity on 2025/12/17 04:14
upstream KCSAN: data-race in serial8250_do_startup / serial8250_modem_status serial 6 5 460d 533d 0/30 auto-obsoleted due to no activity on 2025/10/18 03:59
upstream KCSAN: data-race in serial8250_do_startup / serial8250_modem_status (4) prio:low serial 6 2 193d 226d 0/30 auto-obsoleted due to no activity on 2026/07/11 16:47

Sample crash report:
==================================================================
BUG: KCSAN: data-race in serial8250_do_startup / serial8250_modem_status

write to 0xffffffff898c1216 of 1 bytes by task 11482 on cpu 1:
 serial8250_do_startup+0x11ef/0x19a0 drivers/tty/serial/8250/8250_port.c:2391
 serial8250_startup+0x41/0x50 drivers/tty/serial/8250/8250_port.c:2434
 uart_port_startup drivers/tty/serial/serial_core.c:326 [inline]
 uart_startup+0x49c/0xc00 drivers/tty/serial/serial_core.c:370
 uart_port_activate+0x67/0xd0 drivers/tty/serial/serial_core.c:1979
 tty_port_open+0x189/0x240 drivers/tty/tty_port.c:798
 uart_open+0x30/0x40 drivers/tty/serial/serial_core.c:1959
 tty_open+0x3ed/0xc30 drivers/tty/tty_io.c:2112
 chrdev_open+0x2eb/0x3a0 fs/char_dev.c:413
 do_dentry_open+0x4e0/0xab0 fs/open.c:1000
 vfs_open_consume+0x47/0x210 fs/open.c:1131
 do_open fs/namei.c:4851 [inline]
 path_openat+0xc16/0x11e0 fs/namei.c:5016
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read-write to 0xffffffff898c1216 of 1 bytes by interrupt on cpu 0:
 serial8250_modem_status+0x43/0x1e0 drivers/tty/serial/8250/8250_port.c:1779
 serial8250_handle_irq_locked+0x412/0x500 drivers/tty/serial/8250/8250_port.c:1870
 serial8250_handle_irq+0xb5/0x260 drivers/tty/serial/8250/8250_port.c:1889
 serial8250_default_handle_irq+0x65/0xd0 drivers/tty/serial/8250/8250_port.c:1907
 serial8250_interrupt+0x63/0x110 drivers/tty/serial/8250/8250_core.c:87
 __handle_irq_event_percpu+0x92/0x4a0 kernel/irq/handle.c:209
 handle_irq_event_percpu kernel/irq/handle.c:246 [inline]
 handle_irq_event+0x64/0xf0 kernel/irq/handle.c:263
 handle_edge_irq+0x155/0x440 kernel/irq/chip.c:859
 generic_handle_irq_desc include/linux/irqdesc.h:188 [inline]
 handle_irq arch/x86/kernel/irq.c:209 [inline]
 call_irq_handler arch/x86/kernel/irq.c:-1 [inline]
 __common_interrupt+0x60/0xb0 arch/x86/kernel/irq.c:280
 common_interrupt+0x7e/0x90 arch/x86/kernel/irq.c:273
 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:665
 check_access kernel/kcsan/core.c:756 [inline]
 __tsan_read4+0xb7/0x190 kernel/kcsan/core.c:1033
 in_32bit_syscall arch/x86/include/asm/compat.h:94 [inline]
 in_compat_syscall arch/x86/include/asm/compat.h:100 [inline]
 import_iovec+0x37/0x80 lib/iov_iter.c:1461
 copy_msghdr_from_user net/socket.c:2652 [inline]
 recvmsg_copy_msghdr net/socket.c:2902 [inline]
 ___sys_recvmsg+0x38b/0x3a0 net/socket.c:2974
 do_recvmmsg+0x1e4/0x550 net/socket.c:3073
 __sys_recvmmsg net/socket.c:3147 [inline]
 __do_sys_recvmmsg net/socket.c:3170 [inline]
 __se_sys_recvmmsg net/socket.c:3163 [inline]
 __x64_sys_recvmmsg+0xe5/0x170 net/socket.c:3163
 x64_sys_call+0x77f/0x2550 arch/x86/include/generated/asm/syscalls_64.h:300
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 11477 Comm: syz.5.2123 Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/20 19:13 upstream 65e4fd942f72 625aa117 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in serial8250_do_startup / serial8250_modem_status
2026/10/20 17:18 upstream f47d223627f8 df8746fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in serial8250_do_startup / serial8250_modem_status
* Struck through repros no longer work on HEAD.