| 0/0 |
2026/03/07 09:03 |
flow |
repro |
10m
Results: map[ReproOpts:{procs: 8, repeat: true, threaded: true, collide: true} ReproSyz:r0 = socket(0x2, 0x1, 0x0)
ioctl$SIOCBRADDBR(r0, 0x89a0, &"bridge0\x00")
r1 = openat(0xffffffffffffff9c, &"/dev/net/tun\x00", 0x2)
ioctl$TUNSETIFF(r1, 0x400454ca, &"tun0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x10")
ioctl$SIOCBRADDIF(r0, 0x89a2, &"bridge0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00")
ioctl$SIOCBRADDIF(r0, 0x89a2, &"bridge0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00")
ioctl$SIOCBRADDIF(r0, 0x89a2, &"bridge0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00")
ioctl$SIOCSIFHWADDR(r0, 0x8924, &"bridge0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\xaa\xaa\xaa\xaa\xaa\xaa")
ioctl$SIOCSIFFLAGS(r0, 0x8914, &"bridge0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x41\x00")
ioctl$SIOCSIFFLAGS(r0, 0x8914, &"tun0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x41\x00")
write(r1, &"\xff\xff\xff\xff\xff\xff\xaa\xaa\xaa\xaa\xaa\xaa\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 64)
write(r1, &"\xff\xff\xff\xff\xff\xff\xaa\xaa\xaa\xaa\xaa\xaa\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 64)
r2 = openat(0xffffffffffffff9c, &"/dev/console\x00", 0x2)
close(r2)
SyzkallerCommit:31e9c887f7dc24e04b3ca70d0d54fc34141844b0]
|
| 4/1 |
2026/03/07 09:10 |
agent |
crash-repro-finder |
2m
Model:
Results: map[ReproOpts:{procs: 8, repeat: true, threaded: true, collide: true}]
Instruction:
You are an expert in linux kernel fuzzing. Your goal is to write a syzkaller program to trigger a specific bug.
Print only the syz program that could be executed directly, without backticks.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt:
Bug Title: INFO: task hung in tty_release_struct
Original Crash Report:
INFO: task syz.1.47:6128 blocked for more than 143 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.47 state:D stack:26712 pid:6128 tgid:6109 ppid:5828 task_flags:0x400140 flags:0x00080002
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5260 [inline]
__schedule+0xfe4/0x5e10 kernel/sched/core.c:6867
__schedule_loop kernel/sched/core.c:6949 [inline]
schedule+0xdd/0x390 kernel/sched/core.c:6964
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:7021
__mutex_lock_common kernel/locking/mutex.c:692 [inline]
__mutex_lock+0xc9a/0x1b90 kernel/locking/mutex.c:776
tty_release_struct+0xad/0xe0 drivers/tty/tty_io.c:1691
tty_release+0xd7a/0x1300 drivers/tty/tty_io.c:1852
__fput+0x3ff/0xb40 fs/file_table.c:468
task_work_run+0x150/0x240 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:44 [inline]
exit_to_user_mode_loop+0x100/0x4b0 kernel/entry/common.c:75
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline]
syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline]
do_syscall_64+0x4ea/0xf80 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f263c39aeb9
RSP: 002b:00007f263d1ab028 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f263c616180 RCX: 00007f263c39aeb9
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000002
RBP: 00007f263c408c1f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f263c616218 R14: 00007f263c616180 R15: 00007ffcadf55148
</TASK>
INFO: task syz.3.48:6127 blocked for more than 143 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.48 state:D stack:28744 pid:6127 tgid:6122 ppid:5826 task_flags:0x400040 flags:0x00080002
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5260 [inline]
__schedule+0xfe4/0x5e10 kernel/sched/core.c:6867
__schedule_loop kernel/sched/core.c:6949 [inline]
schedule+0xdd/0x390 kernel/sched/core.c:6964
schedule_timeout+0x1b2/0x280 kernel/time/sleep_timeout.c:75
___down_common kernel/locking/semaphore.c:268 [inline]
__down_common+0x396/0x6c0 kernel/locking/semaphore.c:293
down+0x74/0xa0 kernel/locking/semaphore.c:100
console_lock+0x5b/0xa0 kernel/printk/printk.c:2843
class_console_lock_constructor include/linux/console.h:737 [inline]
con_install+0x99/0x620 drivers/tty/vt/vt.c:3647
tty_driver_install_tty drivers/tty/tty_io.c:1295 [inline]
tty_init_dev.part.0+0x9e/0x470 drivers/tty/tty_io.c:1407
tty_init_dev include/linux/err.h:78 [inline]
tty_open_by_driver drivers/tty/tty_io.c:2073 [inline]
tty_open+0xa63/0xfa0 drivers/tty/tty_io.c:2120
chrdev_open+0x234/0x6a0 fs/char_dev.c:414
do_dentry_open+0x73e/0x1570 fs/open.c:962
vfs_open+0x82/0x3f0 fs/open.c:1094
do_open fs/namei.c:4637 [inline]
path_openat+0x21dc/0x3120 fs/namei.c:4796
do_filp_open+0x1f7/0x420 fs/namei.c:4823
do_sys_openat2+0x12e/0x220 fs/open.c:1430
do_sys_open fs/open.c:1436 [inline]
__do_sys_openat fs/open.c:1452 [inline]
__se_sys_openat fs/open.c:1447 [inline]
__x64_sys_openat+0x12d/0x210 fs/open.c:1447
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd99a99aeb9
RSP: 002b:00007fd99b7d6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd99ac16090 RCX: 00007fd99a99aeb9
RDX: 0000000000000102 RSI: 0000200000000800 RDI: ffffffffffffff9c
RBP: 00007fd99aa08c1f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd99ac16128 R14: 00007fd99ac16090 R15: 00007fffb8c8a7d8
</TASK>
Showing all locks held in the system:
1 lock held by kthreadd/2:
1 lock held by kworker/R-kvfre/6:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2730 [inline]
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x6bb/0xf40 kernel/workqueue.c:3560
3 locks held by kworker/u8:0/12:
3 locks held by kworker/u8:1/13:
1 lock held by kworker/R-mm_pe/14:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x27/0x420 kernel/workqueue.c:2672
2 locks held by kworker/1:0/24:
1 lock held by khungtaskd/31:
#0: ffffffff8e5e3120 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#0: ffffffff8e5e3120 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline]
#0: ffffffff8e5e3120 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x3d/0x184 kernel/locking/lockdep.c:6775
1 lock held by kworker/R-write/33:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x27/0x420 kernel/workqueue.c:2672
2 locks held by kworker/u8:2/36:
3 locks held by kworker/1:1/43:
3 locks held by kworker/u8:3/50:
3 locks held by kworker/u8:4/60:
2 locks held by kworker/1:2/116:
4 locks held by kworker/u8:5/1092:
5 locks held by kworker/u8:6/2979:
3 locks held by kworker/R-ipv6_/3183:
#0: ffff888030be8948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x11ae/0x1840 kernel/workqueue.c:3232
#1: ffffc9000bc37c20 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x927/0x1840 kernel/workqueue.c:3233
#2: ffffffff903f5828 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline]
#2: ffffffff903f5828 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_verify_work+0x12/0x30 net/ipv6/addrconf.c:4734
1 lock held by kworker/R-bat_e/3408:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x27/0x420 kernel/workqueue.c:2672
4 locks held by kworker/u8:7/3441:
3 locks held by kworker/u8:8/3480:
4 locks held by kworker/u8:9/3504:
3 locks held by kworker/u8:10/3522:
3 locks held by kworker/u8:11/3532:
7 locks held by kworker/u9:1/5150:
#0: ffff88803199f948 ((wq_completion)hci3){+.+.}-{0:0}, at: process_one_work+0x11ae/0x1840 kernel/workqueue.c:3232
#1: ffffc9000f74fc98 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work+0x927/0x1840 kernel/workqueue.c:3233
#2: ffff888028360ec0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x18a/0x470 net/bluetooth/hci_sync.c:331
#3: ffff8880283600c0 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x141/0xb20 net/bluetooth/hci_sync.c:5703
#4: ffffffff9068e8e8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:2128 [inline]
#4: ffffffff9068e8e8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x119/0x360 net/bluetooth/hci_conn.c:1336
#5: ffff888034ac0338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x80/0x760 net/bluetooth/l2cap_core.c:1763
#6: ffffffff8e5ef8f8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock+0x19e/0x3c0 kernel/rcu/tree_exp.h:343
2 locks held by jbd2/sda1-8/5160:
1 lock held by kworker/R-ext4-/5161:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2730 [inline]
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x6bb/0xf40 kernel/workqueue.c:3560
2 locks held by klogd/5187:
3 locks held by udevd/5198:
3 locks held by dhcpcd/5492:
1 lock held by crond/5570:
2 locks held by getty/5588:
#0: ffff88814e2dd0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
#1: ffffc9000332e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x419/0x1500 drivers/tty/n_tty.c:2211
1 lock held by syz-executor/5814:
4 locks held by kworker/1:3/5830:
3 locks held by kworker/1:4/5833:
5 locks held by kworker/u9:4/5840:
#0: ffff888034ac4948 ((wq_completion)hci2){+.+.}-{0:0}, at: process_one_work+0x11ae/0x1840 kernel/workqueue.c:3232
#1: ffffc900041afc98 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work+0x927/0x1840 kernel/workqueue.c:3233
#2: ffff88807d27cec0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x18a/0x470 net/bluetooth/hci_sync.c:331
#3: ffff88807d27c0c0 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x141/0xb20 net/bluetooth/hci_sync.c:5703
#4: ffffffff9068e8e8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:2128 [inline]
#4: ffffffff9068e8e8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x119/0x360 net/bluetooth/hci_conn.c:1336
1 lock held by kworker/R-wg-cr/5856:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x27/0x420 kernel/workqueue.c:2672
1 lock held by kworker/R-wg-cr/5857:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2730 [inline]
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x6bb/0xf40 kernel/workqueue.c:3560
1 lock held by kworker/R-wg-cr/5858:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2730 [inline]
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x6bb/0xf40 kernel/workqueue.c:3560
1 lock held by kworker/R-wg-cr/5859:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2730 [inline]
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x6bb/0xf40 kernel/workqueue.c:3560
1 lock held by kworker/R-wg-cr/5860:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x27/0x420 kernel/workqueue.c:2672
1 lock held by kworker/R-wg-cr/5861:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2730 [inline]
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x6bb/0xf40 kernel/workqueue.c:3560
1 lock held by kworker/R-wg-cr/5862:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x27/0x420 kernel/workqueue.c:2672
1 lock held by kworker/R-wg-cr/5863:
1 lock held by kworker/R-wg-cr/5864:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2730 [inline]
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x6bb/0xf40 kernel/workqueue.c:3560
1 lock held by kworker/R-wg-cr/5866:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x27/0x420 kernel/workqueue.c:2672
1 lock held by kworker/R-wg-cr/5867:
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2730 [inline]
#0: ffffffff8e490a88 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x6bb/0xf40 kernel/workqueue.c:3560
6 locks held by kworker/0:3/5868:
2 locks held by kworker/0:4/5875:
3 locks held by kworker/1:5/5896:
#0: ffff88813fe16948 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_one_work+0x11ae/0x1840 kernel/workqueue.c:3232
#1: ffffc90004d0fc98 ((reg_check_chans).work){+.+.}-{0:0}, at: process_one_work+0x927/0x1840 kernel/workqueue.c:3233
#2: ffffffff903f5828 (rtnl_mutex){+.+.}-{4:4}, at: reg_check_chans_work+0x91/0x10e0 net/wireless/reg.c:2453
2 locks held by kworker/0:6/5919:
2 locks held by syz.0.33/6063:
1 lock held by syz.1.47/6128:
#0: ffffffff8f2d67a8 (tty_mutex){+.+.}-{4:4}, at: tty_release_struct+0xad/0xe0 drivers/tty/tty_io.c:1691
3 locks held by syz.2.49/6135:
6 locks held by syz.3.48/6123:
2 locks held by syz.3.48/6127:
#0: ffffffff8f2d67a8 (tty_mutex){+.+.}-{4:4}, at: tty_open_by_driver drivers/tty/tty_io.c:2037 [inline]
#0: ffffffff8f2d67a8 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x539/0xfa0 drivers/tty/tty_io.c:2120
#1: ffff88805bb981c0 (&tty->legacy_mutex){+.+.}-{4:4}, at: tty_init_dev.part.0+0x39/0x470 drivers/tty/tty_io.c:1406
2 locks held by kworker/1:7/6137:
3 locks held by syz-executor/6138:
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
nmi_cpu_backtrace.cold+0x12d/0x151 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x1d7/0x230 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:161 [inline]
__sys_info lib/sys_info.c:157 [inline]
sys_info+0x141/0x190 lib/sys_info.c:165
check_hung_uninterruptible_tasks kernel/hung_task.c:346 [inline]
watchdog+0xcc3/0xfe0 kernel/hung_task.c:515
kthread+0x3b3/0x730 kernel/kthread.c:463
ret_from_fork+0x754/0xaf0 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246
</TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 5868 Comm: kworker/0:3 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026
Workqueue: wg-kex-wg2 wg_packet_handshake_receive_worker
RIP: 0010:check_preemption_disabled+0x1a/0xe0 lib/smp_processor_id.c:16
Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 41 54 55 53 48 83 ec 08 65 8b 1d f5 b3 6f 08 65 f7 05 e6 b3 6f 08 ff ff ff 7f <74> 0f 48 83 c4 08 89 d8 5b 5d 41 5c e9 c5 13 03 00 9c 58 f6 c4 02
RSP: 0018:ffffc900000071d8 EFLAGS: 00000002
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff91afdf01
RDX: 0000000000000000 RSI: ffffffff8dd31d35 RDI: ffffffff8bfa3320
RBP: ffffffff81b6438e R08: 0000000000000001 R09: 0000000000000007
R10: 0000000000000200 R11: 00000000000587ce R12: ffff88805b980000
R13: ffffc900000072b8 R14: 0000000000000206 R15: ffffc900000072ec
FS: 0000000000000000(0000) GS:ffff8881245e3000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2f25e833a6 CR3: 00000000354f0000 CR4: 00000000003526f0
Call Trace:
<IRQ>
lockdep_recursion_inc kernel/locking/lockdep.c:465 [inline]
lock_release kernel/locking/lockdep.c:5888 [inline]
lock_release+0x9a/0x2e0 kernel/locking/lockdep.c:5875
rcu_lock_release include/linux/rcupdate.h:341 [inline]
rcu_read_unlock include/linux/rcupdate.h:897 [inline]
class_rcu_destructor include/linux/rcupdate.h:1195 [inline]
unwind_next_frame+0x3c3/0x1ea0 arch/x86/kernel/unwind_orc.c:495
arch_stack_walk+0x94/0xf0 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x8e/0xc0 kernel/stacktrace.c:122
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
unpoison_slab_object mm/kasan/common.c:340 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:366
kasan_slab_alloc include/linux/kasan.h:253 [inline]
slab_post_alloc_hook mm/slub.c:4953 [inline]
slab_alloc_node mm/slub.c:5263 [inline]
kmem_cache_alloc_noprof+0x2ad/0x780 mm/slub.c:5270
__skb_ext_alloc+0x1a/0x80 net/core/skbuff.c:7026
skb_ext_add+0x3dd/0x7e0 net/core/skbuff.c:7130
nf_bridge_alloc include/net/netfilter/br_netfilter.h:12 [inline]
br_nf_pre_routing_ipv6+0xc7/0x8b0 net/bridge/br_netfilter_ipv6.c:172
br_nf_pre_routing+0x93b/0x1510 net/bridge/br_netfilter_hooks.c:508
nf_hook_entry_hookfn include/linux/netfilter.h:158 [inline]
nf_hook_bridge_pre net/bridge/br_input.c:291 [inline]
br_handle_frame+0xcdd/0x1520 net/bridge/br_input.c:442
__netif_receive_skb_core.constprop.0+0x6d7/0x3460 net/core/dev.c:6039
__netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150
__netif_receive_skb+0x1f/0x120 net/core/dev.c:6265
process_backlog+0x37a/0x1580 net/core/dev.c:6617
__napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681
napi_poll net/core/dev.c:7744 [inline]
net_rx_action+0xa40/0xf20 net/core/dev.c:7896
handle_softirqs+0x1ea/0x910 kernel/softirq.c:622
do_softirq kernel/softirq.c:523 [inline]
do_softirq+0xac/0xe0 kernel/softirq.c:510
</IRQ>
<TASK>
__local_bh_enable_ip+0xf8/0x120 kernel/softirq.c:450
local_bh_enable include/linux/bottom_half.h:33 [inline]
fpregs_unlock arch/x86/include/asm/fpu/api.h:77 [inline]
kernel_fpu_end arch/x86/kernel/fpu/core.c:506 [inline]
kernel_fpu_end+0x64/0x80 arch/x86/kernel/fpu/core.c:499
blake2s_compress+0x78/0xf0 lib/crypto/x86/blake2s.h:42
blake2s_update+0xef/0x320 lib/crypto/blake2s.c:119
hmac.constprop.0+0x24a/0x480 drivers/net/wireguard/noise.c:324
kdf.constprop.0+0x14d/0x280 drivers/net/wireguard/noise.c:367
mix_dh+0xd2/0x130 drivers/net/wireguard/noise.c:413
wg_noise_handshake_consume_initiation+0x265/0x860 drivers/net/wireguard/noise.c:608
wg_receive_handshake_packet+0x7b2/0xc20 drivers/net/wireguard/receive.c:144
wg_packet_handshake_receive_worker+0x15e/0x370 drivers/net/wireguard/receive.c:213
process_one_work+0x9c2/0x1840 kernel/workqueue.c:3257
process_scheduled_works kernel/workqueue.c:3340 [inline]
worker_thread+0x5da/0xe40 kernel/workqueue.c:3421
kthread+0x3b3/0x730 kernel/kthread.c:463
ret_from_fork+0x754/0xaf0 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246
</TASK>
net_ratelimit: 18773 callbacks suppressed
bridge0: received packet on veth0_to_bridge with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
net_ratelimit: 17696 callbacks suppressed
bridge0: received packet on bridge_slave_0 with own address as source address (addr:aa:aa:aa:aa:aa:1b, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
bridge0: received packet on bridge_slave_0 with own address as source address (addr:aa:aa:aa:aa:aa:1b, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
bridge0: received packet on bridge_slave_0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
bridge0: received packet on bridge_slave_0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:2e:90:c3:9c:a7:d2, vlan:0)
The list of existing description files:
acpi_thermal_rel.txt
aio.txt
auto.txt
binfmt.txt
bpf.txt
bpf_prog.txt
bpf_trace.txt
cgroup.txt
damon.txt
dev_ashmem.txt
dev_bifrost.txt
dev_binder.txt
dev_binderfs.txt
dev_block.txt
dev_bsg.txt
dev_bus_usb.txt
dev_camx.txt
dev_cdrom.txt
dev_cec.txt
dev_char_usb.txt
dev_comedi.txt
dev_dma_heap.txt
dev_dri.txt
dev_dsp.txt
dev_dvb_demux.txt
dev_dvb_dvr.txt
dev_dvb_frontend.txt
dev_fb.txt
dev_floppy.txt
dev_hidraw.txt
dev_i2c.txt
dev_i915.txt
dev_img_rogue.txt
dev_infiniband_rdma.txt
dev_infiniband_rdma_cm.txt
dev_input.txt
dev_iommu.txt
dev_kvm.txt
dev_kvm_amd64.txt
dev_kvm_arm64.txt
dev_kvm_extra.txt
dev_kvm_riscv64.txt
dev_loop.txt
dev_mali.txt
dev_media.txt
dev_msm.txt
dev_msr.txt
dev_nbd.txt
dev_net_tun.txt
dev_panthor.txt
dev_ppp.txt
dev_ptmx.txt
dev_ptp.txt
dev_qat_adf_ctl.txt
dev_qrtr_tun.txt
dev_random.txt
dev_rfkill.txt
dev_rtc.txt
dev_sequencer.txt
dev_sg.txt
dev_snapshot.txt
dev_snd_control.txt
dev_snd_hw.txt
dev_snd_midi.txt
dev_snd_pcm.txt
dev_snd_seq.txt
dev_snd_timer.txt
dev_sr.txt
dev_sw_sync.txt
dev_tlk_device.txt
dev_trusty.txt
dev_udmabuf.txt
dev_uhid.txt
dev_uinput.txt
dev_usb_hiddev.txt
dev_usbmon.txt
dev_userio.txt
dev_vfio.txt
dev_vga_arbiter.txt
dev_vhci.txt
dev_video4linux.txt
dev_video4linux_vim2m.txt
dev_virtual_nci.txt
dev_vtpm.txt
fanotify.txt
filesystem.txt
fs_9p.txt
fs_fuse.txt
fs_incfs.txt
fs_ioctl.txt
fs_ioctl_autofs.txt
fs_ioctl_btrfs.txt
fs_ioctl_ext4.txt
fs_ioctl_f2fs.txt
fs_ioctl_fat.txt
fs_ioctl_fscrypt.txt
fs_ioctl_fsverity.txt
fs_ioctl_xfs.txt
futex.txt
hafnium.txt
inotify.txt
io_uring.txt
ipc.txt
key.txt
kfuzztest.txt
l2cap.txt
landlock.txt
lsm.txt
namespaces.txt
net_80211.txt
netfilter.txt
netfilter_arp.txt
netfilter_bridge.txt
netfilter_ipv4.txt
netfilter_ipv6.txt
netfilter_ipvs.txt
netfilter_targets.txt
pagemap_ioctl.txt
perf.txt
prctl.txt
quotactl.txt
seccomp.txt
security_apparmor.txt
security_selinux.txt
security_smack.txt
socket.txt
socket_alg.txt
socket_ax25.txt
socket_bluetooth.txt
socket_caif.txt
socket_can.txt
socket_ieee802154.txt
socket_inet.txt
socket_inet6.txt
socket_inet_dccp.txt
socket_inet_icmp.txt
socket_inet_igmp.txt
socket_inet_l2tp.txt
socket_inet_sctp.txt
socket_inet_tcp.txt
socket_inet_udp.txt
socket_ip_tunnel.txt
socket_isdn.txt
socket_kcm.txt
socket_key.txt
socket_llc.txt
socket_netlink.txt
socket_netlink_audit.txt
socket_netlink_crypto.txt
socket_netlink_generic.txt
socket_netlink_generic_80211.txt
socket_netlink_generic_batadv.txt
socket_netlink_generic_devlink.txt
socket_netlink_generic_ethtool.txt
socket_netlink_generic_fou.txt
socket_netlink_generic_gtp.txt
socket_netlink_generic_mptcp.txt
socket_netlink_generic_net_dm.txt
socket_netlink_generic_netlabel.txt
socket_netlink_generic_nfc.txt
socket_netlink_generic_seg6.txt
socket_netlink_generic_smc.txt
socket_netlink_generic_team.txt
socket_netlink_generic_wireguard.txt
socket_netlink_netfilter.txt
socket_netlink_netfilter_acct.txt
socket_netlink_netfilter_conntrack.txt
socket_netlink_netfilter_conntrack_exp.txt
socket_netlink_netfilter_conntrack_helper.txt
socket_netlink_netfilter_ipset.txt
socket_netlink_netfilter_log.txt
socket_netlink_netfilter_nft_compat.txt
socket_netlink_netfilter_nftables.txt
socket_netlink_netfilter_osf.txt
socket_netlink_netfilter_queue.txt
socket_netlink_netfilter_timeout.txt
socket_netlink_rdma.txt
socket_netlink_route.txt
socket_netlink_route_sched.txt
socket_netlink_route_sched_retired.txt
socket_netlink_sock_diag.txt
socket_netlink_xfrm.txt
socket_netrom.txt
socket_nfc.txt
socket_nvme_of_tcp.txt
socket_packet.txt
socket_phonet.txt
socket_pppox.txt
socket_qipcrtr.txt
socket_rds.txt
socket_rose.txt
socket_rxrpc.txt
socket_tipc.txt
socket_tipc_netlink.txt
socket_unix.txt
socket_vnet.txt
socket_x25.txt
socket_xdp.txt
sys.txt
uffd.txt
usbip.txt
vmw_vmci.txt
vnet.txt
vnet_mptcp.txt
vusb.txt
watch_queue.txt
xattr.txt
Reply: r0 = socket(0x2, 0x1, 0x0)
ioctl$SIOCBRADDBR(r0, 0x89a0, &"bridge0\x00")
r1 = openat(0xffffffffffffff9c, &"/dev/net/tun\x00", 0x2)
ioctl$TUNSETIFF(r1, 0x400454ca, &"tun0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x10")
ioctl$SIOCBRADDIF(r0, 0x89a2, &"bridge0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00")
ioctl$SIOCBRADDIF(r0, 0x89a2, &"bridge0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00")
ioctl$SIOCBRADDIF(r0, 0x89a2, &"bridge0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00")
ioctl$SIOCSIFHWADDR(r0, 0x8924, &"bridge0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\xaa\xaa\xaa\xaa\xaa\xaa")
ioctl$SIOCSIFFLAGS(r0, 0x8914, &"bridge0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x41\x00")
ioctl$SIOCSIFFLAGS(r0, 0x8914, &"tun0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x41\x00")
write(r1, &"\xff\xff\xff\xff\xff\xff\xaa\xaa\xaa\xaa\xaa\xaa\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 64)
write(r1, &"\xff\xff\xff\xff\xff\xff\xaa\xaa\xaa\xaa\xaa\xaa\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 64)
r2 = openat(0xffffffffffffff9c, &"/dev/console\x00", 0x2)
close(r2)
|
| 5/2 |
2026/03/07 09:10 |
llm |
crash-repro-finder |
2m
Model:
Tokens:
input: 12066
output: 36
thoughts: 17315
Thoughts: **Analysis and Strategy for Reproducing "task hung in tty_release_struct" Bug**
My goal is to craft a syzkaller program to reliably trigger the "task hung in tty_release_struct" bug, which appears to be a deadlock or resource starvation scenario. The crash reports indicate a task, likely the fuzzer itself, is blocked within the `tty_release_struct` function, waiting for a mutex. Further analysis reveals another task, possibly also fuzzer-generated, is blocked in `tty_open` because it's contending for `console_lock`. The hypothesis is that an excessive log flood, generated by a bridge driver's response to a specific network condition, is holding `console_lock` for an extended period, leading to this tty-related deadlock.
To reproduce this, I'll focus on three core components:
1. **TTY Operations:** I need to induce calls to `tty_open` and `tty_release`. This will involve a loop of opening and closing a TTY device. I plan to use `/dev/console` (or potentially `/dev/tty0`) to open and close.
2. **Network Setup:** The key to triggering the log flood lies in creating a network setup that will generate the specific log messages: "bridge0: received packet on ... with own address as source address". I will create a bridge device (e.g., "bridge0") and add a TUN/TAP interface (e.g., "tun0") to it. I'll inject Ethernet packets into the TUN interface. The crucial detail is to set the source MAC address of the injected packet to match the bridge's MAC address. This spoofed source MAC causes the bridge driver to generate the error message, and many such messages will trigger the log flood.
3. **Concurrency:** Because the TTY operations and network packet injection might execute in separate processes and the log flood causes the contention for console lock, I need to use `threaded = true` to the repro and repeat the program to make sure the tty-open and close threads will run with the flood of logs and trigger the contention.
The syzkaller program will first create the bridge, TUN interface, set up the bridge port, set the bridge's MAC, and bring interfaces up. Then it will inject packets into the TUN interface with the spoofed MAC. Concurrently, it will open and close a TTY device in a loop. I am aiming at a high rate of packet injection with the correct source MAC, combined with multiple TTY open/close operations. The high volume of logging caused by the packet injection is what should starve `console_lock`, creating a situation where the task in `tty_open` is blocked, and subsequently, `tty_release` gets blocked.
The final syzkaller program uses `ioctl` calls to create the bridge and tun device, and to control the interface's flags and MAC. The packet injection will be handled using a `write` call to the tun device, setting up Ethernet packets to be injected with spoofed MAC. The TTY loop involves opening and closing `/dev/console` repeatedly.
|