printk: legacy console [ttyS0] enabled ------------[ cut here ]------------ IS_ERR(kt) WARNING: kernel/printk/printk.c:3728 at legacy_kthread_create kernel/printk/printk.c:3728 [inline], CPU#1: syz.2.3/5813 WARNING: kernel/printk/printk.c:3728 at printk_kthreads_check_locked+0x2a7/0x3f0 kernel/printk/printk.c:3802, CPU#1: syz.2.3/5813 Modules linked in: CPU: 1 UID: 0 PID: 5813 Comm: syz.2.3 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:legacy_kthread_create kernel/printk/printk.c:3728 [inline] RIP: 0010:printk_kthreads_check_locked+0x2a7/0x3f0 kernel/printk/printk.c:3802 Code: fe c1 38 c1 7c 9a 4c 89 f7 e8 75 87 8a 00 eb 90 e8 4e 11 21 00 eb 05 e8 47 11 21 00 b0 01 88 05 2f 34 08 18 e9 e2 00 00 00 90 <0f> 0b 90 48 c7 c7 80 bd 6d 8b e8 1a a9 82 ff 48 8b 1d 93 2e 04 18 RSP: 0018:ffffc90005e27a70 EFLAGS: 00010206 RAX: fffffffffffffffc RBX: 0000000000000001 RCX: 5c86c748d2b6c600 RDX: ffffc90010319000 RSI: 0000000000000b4d RDI: 0000000000000b4e RBP: ffffc90005e27b70 R08: ffff88802f8b382f R09: 1ffff11005f16705 R10: dffffc0000000000 R11: ffffed1005f16706 R12: 0000000000000000 R13: dffffc0000000000 R14: 1ffff92000bc4f5c R15: dffffc0000000000 FS: 00007fcc141256c0(0000) GS:ffff888125d46000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa06db00c00 CR3: 0000000033e74000 CR4: 00000000003526f0 Call Trace: register_console+0xc19/0xfc0 kernel/printk/printk.c:4221 console_store+0x359/0x4f0 drivers/tty/serial/serial_core.c:2999 kernfs_fop_write_iter+0x3a5/0x540 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61e/0xbb0 fs/read_write.c:687 ksys_write+0x156/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcc15eee0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcc14125028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fcc16176090 RCX: 00007fcc15eee0d9 RDX: 0000000000000002 RSI: 0000200000000c00 RDI: 0000000000000005 RBP: 00007fcc15f85024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fcc16176128 R14: 00007fcc16176090 R15: 00007ffcbb31eb18