syzbot


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

Status: upstream: reported on 2026/04/13 12:59
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+a12081a388b863499373@syzkaller.appspotmail.com
First crash: 3d21h, last: 3d21h
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
bb87b8dc-949e-4d03-a403-389a01b32619 assessment-kcsan Benign: ❌  Confident: ✅  KCSAN: data-race in serial8250_do_startup / serial8250_modem_status (4) 2026/04/11 07:01 2026/04/11 07:01 2026/04/11 07:03 38c8e24669882aabb2ec15315fbe22eb28592b44
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [serial?] KCSAN: data-race in serial8250_do_startup / serial8250_modem_status (4) 0 (1) 2026/04/13 12:59
Similar bugs (3)
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 74d 108d 0/29 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 174d 174d 0/29 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 235d 308d 0/29 auto-obsoleted due to no activity on 2025/10/18 03:59

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

write to 0xffffffff893ff4c6 of 1 bytes by task 7024 on cpu 1:
 serial8250_do_startup+0x1628/0x1d50 drivers/tty/serial/8250/8250_port.c:2334
 serial8250_startup+0x41/0x50 drivers/tty/serial/8250/8250_port.c:2354
 uart_port_startup drivers/tty/serial/serial_core.c:321 [inline]
 uart_startup+0x464/0xae0 drivers/tty/serial/serial_core.c:365
 uart_port_activate+0x67/0xc0 drivers/tty/serial/serial_core.c:1949
 tty_port_open+0x196/0x270 drivers/tty/tty_port.c:747
 uart_open+0x30/0x40 drivers/tty/serial/serial_core.c:1929
 tty_open+0x3d4/0xaf0 drivers/tty/tty_io.c:2137
 chrdev_open+0x2eb/0x3a0 fs/char_dev.c:411
 do_dentry_open+0x4ca/0xa90 fs/open.c:949
 vfs_open+0x37/0x1e0 fs/open.c:1081
 do_open fs/namei.c:4677 [inline]
 path_openat+0x1b70/0x2050 fs/namei.c:4836
 do_file_open+0x16c/0x290 fs/namei.c:4865
 do_sys_openat2+0x94/0x130 fs/open.c:1366
 do_sys_open fs/open.c:1372 [inline]
 __do_sys_openat fs/open.c:1388 [inline]
 __se_sys_openat fs/open.c:1383 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1383
 x64_sys_call+0x1e39/0x3020 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x12c/0x370 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffffffff893ff4c6 of 1 bytes by interrupt on cpu 0:
 serial8250_modem_status+0x6a/0x1e0 drivers/tty/serial/8250/8250_port.c:1742
 serial8250_handle_irq_locked+0x331/0x420 drivers/tty/serial/8250/8250_port.c:1822
 serial8250_handle_irq+0xad/0x280 drivers/tty/serial/8250/8250_port.c:1841
 serial8250_default_handle_irq+0x8e/0x170 drivers/tty/serial/8250/8250_port.c:1855
 serial8250_interrupt+0x63/0x130 drivers/tty/serial/8250/8250_core.c:86
 __handle_irq_event_percpu+0x9c/0x4d0 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+0x154/0x470 kernel/irq/chip.c:855
 generic_handle_irq_desc include/linux/irqdesc.h:186 [inline]
 handle_irq arch/x86/kernel/irq.c:262 [inline]
 call_irq_handler arch/x86/kernel/irq.c:-1 [inline]
 __common_interrupt+0x60/0xb0 arch/x86/kernel/irq.c:333
 common_interrupt+0x7e/0x90 arch/x86/kernel/irq.c:326
 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:688
 __skb_datagram_iter+0x194/0x680 net/core/datagram.c:415
 skb_copy_datagram_iter+0x3f/0x120 net/core/datagram.c:535
 skb_copy_datagram_msg include/linux/skbuff.h:4218 [inline]
 __unix_dgram_recvmsg+0x4b0/0x870 net/unix/af_unix.c:2615
 unix_dgram_recvmsg+0x81/0x90 net/unix/af_unix.c:2672
 sock_recvmsg_nosec+0xc2/0xf0 net/socket.c:1078
 ____sys_recvmsg+0x26f/0x280 net/socket.c:2810
 ___sys_recvmsg+0x11f/0x3b0 net/socket.c:2854
 do_recvmmsg+0x1ef/0x560 net/socket.c:2949
 __sys_recvmmsg net/socket.c:3023 [inline]
 __do_sys_recvmmsg net/socket.c:3046 [inline]
 __se_sys_recvmmsg net/socket.c:3039 [inline]
 __x64_sys_recvmmsg+0xe5/0x170 net/socket.c:3039
 x64_sys_call+0x80f/0x3020 arch/x86/include/generated/asm/syscalls_64.h:300
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x12c/0x370 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00 -> 0x05

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 6993 Comm: syz.3.814 Tainted: G        W           syzkaller #0 PREEMPT(full) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
==================================================================
EXT4-fs (loop7): error count since last fsck: 1
EXT4-fs (loop7): initial error at time 1775890841: ext4_free_branches:1023: inode 11
EXT4-fs (loop7): last error at time 1775890841: ext4_free_branches:1023: inode 11

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/04/11 07:00 upstream 7c6c4ed80b87 38c8e246 .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.