* [syzbot] [serial?] WARNING in register_console
@ 2026-08-04 3:17 syzbot
2026-08-06 4:47 ` syzbot
0 siblings, 1 reply; 3+ messages in thread
From: syzbot @ 2026-08-04 3:17 UTC (permalink / raw)
To: gregkh, jirislaby, linux-kernel, linux-serial, syzkaller-bugs
Hello,
syzbot found the following issue on:
HEAD commit: 075b74841bd0 Linux 7.2-rc6
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=16947db9580000
kernel config: https://syzkaller.appspot.com/x/.config?x=cb17729fb04b1e3a
dashboard link: https://syzkaller.appspot.com/bug?extid=1ebbc20f223b99446034
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/a0f4edd30437/disk-075b7484.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/07bfd5e330f0/vmlinux-075b7484.xz
kernel image: https://storage.googleapis.com/syzbot-assets/96d6ea3053f1/bzImage-075b7484.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+1ebbc20f223b99446034@syzkaller.appspotmail.com
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.5.580/9206
WARNING: kernel/printk/printk.c:3728 at printk_kthreads_check_locked+0x2a7/0x3f0 kernel/printk/printk.c:3802, CPU#1: syz.5.580/9206
Modules linked in:
CPU: 1 UID: 0 PID: 9206 Comm: syz.5.580 Not tainted syzkaller #0 PREEMPT_{RT,(full)}
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/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 f5 89 8a 00 eb 90 e8 be 16 21 00 eb 05 e8 b7 16 21 00 b0 01 88 05 0f a6 08 18 e9 e2 00 00 00 90 <0f> 0b 90 48 c7 c7 80 bd 6d 8b e8 fa a0 82 ff 48 8b 1d 73 a0 04 18
RSP: 0018:ffffc90005367a70 EFLAGS: 00010206
RAX: fffffffffffffffc RBX: 0000000000000001 RCX: 664c2998e3563700
RDX: ffffc90016660000 RSI: 000000000000051b RDI: 000000000000051c
RBP: ffffc90005367b70 R08: ffff88803f2dbfaf R09: 1ffff11007e5b7f5
R10: dffffc0000000000 R11: ffffed1007e5b7f6 R12: 0000000000000000
R13: dffffc0000000000 R14: 1ffff92000a6cf5c R15: dffffc0000000000
FS: 00007f51410156c0(0000) GS:ffff888125d3e000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb5f0865000 CR3: 0000000040d7c000 CR4: 00000000003526f0
Call Trace:
<TASK>
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:0x7f5142dde019
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:00007f5141015028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f5143066090 RCX: 00007f5142dde019
RDX: 0000000000000002 RSI: 0000200000000600 RDI: 0000000000000003
RBP: 00007f5142e7500c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5143066128 R14: 00007f5143066090 R15: 00007ffe01de2878
</TASK>
---
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 syzkaller@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [syzbot] [serial?] WARNING in register_console
2026-08-04 3:17 [syzbot] [serial?] WARNING in register_console syzbot
@ 2026-08-06 4:47 ` syzbot
2026-08-07 6:45 ` Jiri Slaby
0 siblings, 1 reply; 3+ messages in thread
From: syzbot @ 2026-08-06 4:47 UTC (permalink / raw)
To: gregkh, jirislaby, linux-kernel, linux-serial, syzkaller-bugs
syzbot has found a reproducer for the following issue on:
HEAD commit: 0d8395707651 Merge tag 'soc-fixes-7.2-2' of git://git.kern..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=10883c99580000
kernel config: https://syzkaller.appspot.com/x/.config?x=cb17729fb04b1e3a
dashboard link: https://syzkaller.appspot.com/bug?extid=1ebbc20f223b99446034
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15b1bbb9580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/14b35ca281d5/disk-0d839570.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/68c2ac2fdce0/vmlinux-0d839570.xz
kernel image: https://storage.googleapis.com/syzbot-assets/29bdd737b48f/bzImage-0d839570.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/cce97dbb2265/mount_0.gz
fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=11da8e49580000)
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+1ebbc20f223b99446034@syzkaller.appspotmail.com
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#0: syz.4.49/6392
WARNING: kernel/printk/printk.c:3728 at printk_kthreads_check_locked+0x2a7/0x3f0 kernel/printk/printk.c:3802, CPU#0: syz.4.49/6392
Modules linked in:
CPU: 0 UID: 0 PID: 6392 Comm: syz.4.49 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 c5 85 8a 00 eb 90 e8 7e 12 21 00 eb 05 e8 77 12 21 00 b0 01 88 05 2f a4 08 18 e9 e2 00 00 00 90 <0f> 0b 90 48 c7 c7 80 bd 6d 8b e8 1a 9f 82 ff 48 8b 1d 93 9e 04 18
RSP: 0018:ffffc9000509fa70 EFLAGS: 00010206
RAX: fffffffffffffffc RBX: 0000000000000001 RCX: 10959546c0351c00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000509fb70 R08: ffff888032eb2daf R09: 1ffff110065d65b5
R10: dffffc0000000000 R11: ffffed10065d65b6 R12: 0000000000000000
R13: dffffc0000000000 R14: 1ffff92000a13f5c R15: dffffc0000000000
FS: 00007f7f4a99d6c0(0000) GS:ffff888125c3e000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd99747f000 CR3: 000000003dd70000 CR4: 00000000003526f0
Call Trace:
<TASK>
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:0x7f7f4b35e0d9
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:00007f7f4a99d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f7f4b5e6090 RCX: 00007f7f4b35e0d9
RDX: 0000000000000002 RSI: 0000200000000600 RDI: 0000000000000004
RBP: 00007f7f4b3f5024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7f4b5e6128 R14: 00007f7f4b5e6090 R15: 00007ffcc0cedea8
</TASK>
---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [syzbot] [serial?] WARNING in register_console
2026-08-06 4:47 ` syzbot
@ 2026-08-07 6:45 ` Jiri Slaby
0 siblings, 0 replies; 3+ messages in thread
From: Jiri Slaby @ 2026-08-07 6:45 UTC (permalink / raw)
To: syzbot, gregkh, linux-kernel, linux-serial, syzkaller-bugs
On 06. 08. 26, 6:47, syzbot wrote:
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 0d8395707651 Merge tag 'soc-fixes-7.2-2' of git://git.kern..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=10883c99580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=cb17729fb04b1e3a
> dashboard link: https://syzkaller.appspot.com/bug?extid=1ebbc20f223b99446034
> compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15b1bbb9580000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/14b35ca281d5/disk-0d839570.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/68c2ac2fdce0/vmlinux-0d839570.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/29bdd737b48f/bzImage-0d839570.xz
> mounted in repro: https://storage.googleapis.com/syzbot-assets/cce97dbb2265/mount_0.gz
> fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=11da8e49580000)
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+1ebbc20f223b99446034@syzkaller.appspotmail.com
>
> printk: legacy console [ttyS0] enabled
> ------------[ cut here ]------------
> IS_ERR(kt)
Well, the creation of "pr/legacy" thread failed. Would be nice to see
what is actual PTR_ERR(kt).
> WARNING: kernel/printk/printk.c:3728 at legacy_kthread_create kernel/printk/printk.c:3728 [inline], CPU#0: syz.4.49/6392
> WARNING: kernel/printk/printk.c:3728 at printk_kthreads_check_locked+0x2a7/0x3f0 kernel/printk/printk.c:3802, CPU#0: syz.4.49/6392
> Modules linked in:
> CPU: 0 UID: 0 PID: 6392 Comm: syz.4.49 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 c5 85 8a 00 eb 90 e8 7e 12 21 00 eb 05 e8 77 12 21 00 b0 01 88 05 2f a4 08 18 e9 e2 00 00 00 90 <0f> 0b 90 48 c7 c7 80 bd 6d 8b e8 1a 9f 82 ff 48 8b 1d 93 9e 04 18
> RSP: 0018:ffffc9000509fa70 EFLAGS: 00010206
> RAX: fffffffffffffffc RBX: 0000000000000001 RCX: 10959546c0351c00
> RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
> RBP: ffffc9000509fb70 R08: ffff888032eb2daf R09: 1ffff110065d65b5
> R10: dffffc0000000000 R11: ffffed10065d65b6 R12: 0000000000000000
> R13: dffffc0000000000 R14: 1ffff92000a13f5c R15: dffffc0000000000
> FS: 00007f7f4a99d6c0(0000) GS:ffff888125c3e000(0000) knlGS:0000000000000000
> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 00007fd99747f000 CR3: 000000003dd70000 CR4: 00000000003526f0
> Call Trace:
> <TASK>
> register_console+0xc19/0xfc0 kernel/printk/printk.c:4221
> console_store+0x359/0x4f0 drivers/tty/serial/serial_core.c:2999
console_store() is serialized by a mutex. So this should not be a race.
I cannot reproduce using:
while :; do
echo 0 >/sys/class/tty/ttyS0/console
echo 1 > /sys/class/tty/ttyS0/console
done
That's what the reproducer suggests is the cause.
thanks,
--
js
suse labs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-07 6:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-04 3:17 [syzbot] [serial?] WARNING in register_console syzbot
2026-08-06 4:47 ` syzbot
2026-08-07 6:45 ` Jiri Slaby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox