[v5.15] possible deadlock in evdev_pass_values (4)

9 views
Skip to first unread message

syzbot

unread,
Jan 23, 2025, 4:20:21 PM1/23/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 003148680b79 Linux 5.15.177
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=125469f8580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f2c956168ff5b89
dashboard link: https://syzkaller.appspot.com/bug?extid=806557a798f28c6c8bf1
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/452e6089e1b8/disk-00314868.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/368807beca93/vmlinux-00314868.xz
kernel image: https://storage.googleapis.com/syzbot-assets/e98b52fba46c/bzImage-00314868.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+806557...@syzkaller.appspotmail.com

=====================================================
WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected
5.15.177-syzkaller #0 Not tainted
-----------------------------------------------------
syz.0.1330/9337 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire:
ffffffff8c80a058 (tasklist_lock){.+.+}-{2:2}, at: send_sigurg+0xc8/0x380 fs/fcntl.c:845

and this task is already holding:
ffff8880790ac8b8 (&f->f_owner.lock){...-}-{2:2}, at: send_sigurg+0x25/0x380 fs/fcntl.c:829
which would create a new lock dependency:
(&f->f_owner.lock){...-}-{2:2} -> (tasklist_lock){.+.+}-{2:2}

but this new dependency connects a SOFTIRQ-irq-safe lock:
(&client->buffer_lock){..-.}-{2:2}

... which became SOFTIRQ-irq-safe at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
spin_lock include/linux/spinlock.h:363 [inline]
evdev_pass_values+0xe7/0xb60 drivers/input/evdev.c:261
evdev_events+0x198/0x2c0 drivers/input/evdev.c:306
input_to_handler drivers/input/input.c:126 [inline]
input_pass_values+0x873/0x1200 drivers/input/input.c:156
input_handle_event+0xd3d/0x1600 drivers/input/input.c:426
input_event+0x9d/0xd0 drivers/input/input.c:457
hidinput_hid_event+0x1135/0x18e0 drivers/hid/hid-input.c:1467
hid_process_event+0x433/0x580 drivers/hid/hid-core.c:1538
hid_input_field drivers/hid/hid-core.c:1582 [inline]
hid_report_raw_event+0xe9e/0x1640 drivers/hid/hid-core.c:1806
hid_input_report+0x419/0x4d0 drivers/hid/hid-core.c:1873
hid_irq_in+0x45c/0x690 drivers/hid/usbhid/hid-core.c:284
__usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1674
dummy_timer+0x8ad/0x3200 drivers/usb/gadget/udc/dummy_hcd.c:1987
call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451
expire_timers kernel/time/timer.c:1496 [inline]
__run_timers+0x67c/0x890 kernel/time/timer.c:1767
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780
handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
__do_softirq kernel/softirq.c:592 [inline]
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
seqcount_lockdep_reader_access+0x1dc/0x220 include/linux/seqlock.h:106
nf_conntrack_get_ht include/net/netfilter/nf_conntrack.h:338 [inline]
gc_worker+0x30f/0x14b0 net/netfilter/nf_conntrack_core.c:1472
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

to a SOFTIRQ-irq-unsafe lock:
(tasklist_lock){.+.+}-{2:2}

... which became SOFTIRQ-irq-unsafe at:
...
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_read_lock include/linux/rwlock_api_smp.h:149 [inline]
_raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228
do_wait+0x2a7/0xaf0 kernel/exit.c:1578
kernel_wait+0xe5/0x230 kernel/exit.c:1768
call_usermodehelper_exec_sync kernel/umh.c:139 [inline]
call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

other info that might help us debug this:

Chain exists of:
&client->buffer_lock --> &f->f_owner.lock --> tasklist_lock

Possible interrupt unsafe locking scenario:

CPU0 CPU1
---- ----
lock(tasklist_lock);
local_irq_disable();
lock(&client->buffer_lock);
lock(&f->f_owner.lock);
<Interrupt>
lock(&client->buffer_lock);

*** DEADLOCK ***

2 locks held by syz.0.1330/9337:
#0: ffff8880253b6688 (&u->lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline]
#0: ffff8880253b6688 (&u->lock){+.+.}-{2:2}, at: queue_oob+0x4b9/0xad0 net/unix/af_unix.c:1984
#1: ffff8880790ac8b8 (&f->f_owner.lock){...-}-{2:2}, at: send_sigurg+0x25/0x380 fs/fcntl.c:829

the dependencies between SOFTIRQ-irq-safe lock and the holding lock:
-> (&client->buffer_lock){..-.}-{2:2} {
IN-SOFTIRQ-W at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
spin_lock include/linux/spinlock.h:363 [inline]
evdev_pass_values+0xe7/0xb60 drivers/input/evdev.c:261
evdev_events+0x198/0x2c0 drivers/input/evdev.c:306
input_to_handler drivers/input/input.c:126 [inline]
input_pass_values+0x873/0x1200 drivers/input/input.c:156
input_handle_event+0xd3d/0x1600 drivers/input/input.c:426
input_event+0x9d/0xd0 drivers/input/input.c:457
hidinput_hid_event+0x1135/0x18e0 drivers/hid/hid-input.c:1467
hid_process_event+0x433/0x580 drivers/hid/hid-core.c:1538
hid_input_field drivers/hid/hid-core.c:1582 [inline]
hid_report_raw_event+0xe9e/0x1640 drivers/hid/hid-core.c:1806
hid_input_report+0x419/0x4d0 drivers/hid/hid-core.c:1873
hid_irq_in+0x45c/0x690 drivers/hid/usbhid/hid-core.c:284
__usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1674
dummy_timer+0x8ad/0x3200 drivers/usb/gadget/udc/dummy_hcd.c:1987
call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451
expire_timers kernel/time/timer.c:1496 [inline]
__run_timers+0x67c/0x890 kernel/time/timer.c:1767
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780
handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
__do_softirq kernel/softirq.c:592 [inline]
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
seqcount_lockdep_reader_access+0x1dc/0x220 include/linux/seqlock.h:106
nf_conntrack_get_ht include/net/netfilter/nf_conntrack.h:338 [inline]
gc_worker+0x30f/0x14b0 net/netfilter/nf_conntrack_core.c:1472
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
INITIAL USE at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
spin_lock include/linux/spinlock.h:363 [inline]
evdev_pass_values+0xe7/0xb60 drivers/input/evdev.c:261
evdev_events+0x198/0x2c0 drivers/input/evdev.c:306
input_to_handler drivers/input/input.c:126 [inline]
input_pass_values+0x873/0x1200 drivers/input/input.c:156
input_handle_event+0xd3d/0x1600 drivers/input/input.c:426
input_event+0x9d/0xd0 drivers/input/input.c:457
hidinput_hid_event+0x1135/0x18e0 drivers/hid/hid-input.c:1467
hid_process_event+0x433/0x580 drivers/hid/hid-core.c:1538
hid_input_field drivers/hid/hid-core.c:1582 [inline]
hid_report_raw_event+0xe9e/0x1640 drivers/hid/hid-core.c:1806
hid_input_report+0x419/0x4d0 drivers/hid/hid-core.c:1873
hid_irq_in+0x45c/0x690 drivers/hid/usbhid/hid-core.c:284
__usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1674
dummy_timer+0x8ad/0x3200 drivers/usb/gadget/udc/dummy_hcd.c:1987
call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451
expire_timers kernel/time/timer.c:1496 [inline]
__run_timers+0x67c/0x890 kernel/time/timer.c:1767
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780
handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
__do_softirq kernel/softirq.c:592 [inline]
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
seqcount_lockdep_reader_access+0x1dc/0x220 include/linux/seqlock.h:106
nf_conntrack_get_ht include/net/netfilter/nf_conntrack.h:338 [inline]
gc_worker+0x30f/0x14b0 net/netfilter/nf_conntrack_core.c:1472
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
}
... key at: [<ffffffff96df5f40>] evdev_open.__key.23+0x0/0x20
-> (&new->fa_lock){...-}-{2:2} {
IN-SOFTIRQ-R at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline]
_raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236
kill_fasync_rcu fs/fcntl.c:1008 [inline]
kill_fasync+0x16a/0x490 fs/fcntl.c:1029
sock_wake_async+0x145/0x170
sk_wake_async+0x15d/0x250 include/net/sock.h:2468
sock_def_readable+0x181/0x240 net/core/sock.c:3097
tcp_data_queue+0x2146/0x6f20 net/ipv4/tcp_input.c:5151
tcp_rcv_established+0xe3e/0x1e20 net/ipv4/tcp_input.c:6050
tcp_v6_do_rcv+0x528/0x1120 net/ipv6/tcp_ipv6.c:1526
tcp_v6_rcv+0x2220/0x27b0 net/ipv6/tcp_ipv6.c:1765
ip6_protocol_deliver_rcu+0x93d/0x12d0 net/ipv6/ip6_input.c:425
ip6_input_finish+0xa2/0x130 net/ipv6/ip6_input.c:466
NF_HOOK+0x364/0x410 include/linux/netfilter.h:302
NF_HOOK+0x364/0x410 include/linux/netfilter.h:302
__netif_receive_skb_one_core net/core/dev.c:5493 [inline]
__netif_receive_skb+0x1c6/0x530 net/core/dev.c:5607
process_backlog+0x363/0x7f0 net/core/dev.c:6484
__napi_poll+0xc7/0x440 net/core/dev.c:7043
napi_poll net/core/dev.c:7110 [inline]
net_rx_action+0x617/0xda0 net/core/dev.c:7200
handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
__do_softirq kernel/softirq.c:592 [inline]
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0x52/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
INITIAL USE at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline]
_raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:316
fasync_remove_entry+0xfb/0x1d0 fs/fcntl.c:885
lease_modify+0x19c/0x380 fs/locks.c:1480
locks_remove_lease fs/locks.c:2711 [inline]
locks_remove_file+0x5d3/0x1040 fs/locks.c:2736
__fput+0x368/0x8e0 fs/file_table.c:272
task_work_run+0x129/0x1a0 kernel/task_work.c:188
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:181
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307
do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
INITIAL READ USE at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline]
_raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236
kill_fasync_rcu fs/fcntl.c:1008 [inline]
kill_fasync+0x16a/0x490 fs/fcntl.c:1029
lease_break_callback+0x22/0x30 fs/locks.c:613
__break_lease+0x4d1/0x13b0 fs/locks.c:1615
break_lease include/linux/fs.h:2652 [inline]
do_dentry_open+0x77a/0xfb0 fs/open.c:817
do_open fs/namei.c:3608 [inline]
path_openat+0x2705/0x2f20 fs/namei.c:3742
do_filp_open+0x21c/0x460 fs/namei.c:3769
do_sys_openat2+0x13b/0x4f0 fs/open.c:1253
do_sys_open fs/open.c:1269 [inline]
__do_sys_openat fs/open.c:1285 [inline]
__se_sys_openat fs/open.c:1280 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1280
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
}
... key at: [<ffffffff96afa980>] fasync_insert_entry.__key+0x0/0x20
... acquired at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline]
_raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236
kill_fasync_rcu fs/fcntl.c:1008 [inline]
kill_fasync+0x16a/0x490 fs/fcntl.c:1029
__pass_event drivers/input/evdev.c:240 [inline]
evdev_pass_values+0x5ad/0xb60 drivers/input/evdev.c:278
evdev_events+0x198/0x2c0 drivers/input/evdev.c:306
input_to_handler drivers/input/input.c:126 [inline]
input_pass_values+0x873/0x1200 drivers/input/input.c:156
input_handle_event+0xc9b/0x1600 drivers/input/input.c:415
input_inject_event+0x1fc/0x300 drivers/input/input.c:487
evdev_write+0x668/0x7c0 drivers/input/evdev.c:530
vfs_write+0x30c/0xe50 fs/read_write.c:592
ksys_write+0x1a2/0x2c0 fs/read_write.c:647
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0

-> (&f->f_owner.lock){...-}-{2:2} {
IN-SOFTIRQ-R at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline]
_raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236
send_sigurg+0x25/0x380 fs/fcntl.c:829
sk_send_sigurg+0x6a/0xb0 net/core/sock.c:3131
tcp_check_urg net/ipv4/tcp_input.c:5672 [inline]
tcp_urg+0x2b8/0xb40 net/ipv4/tcp_input.c:5713
tcp_rcv_established+0xe33/0x1e20 net/ipv4/tcp_input.c:6047
tcp_v6_do_rcv+0x528/0x1120 net/ipv6/tcp_ipv6.c:1526
tcp_v6_rcv+0x2220/0x27b0 net/ipv6/tcp_ipv6.c:1765
ip6_protocol_deliver_rcu+0x93d/0x12d0 net/ipv6/ip6_input.c:425
ip6_input_finish+0xa2/0x130 net/ipv6/ip6_input.c:466
NF_HOOK+0x364/0x410 include/linux/netfilter.h:302
NF_HOOK+0x364/0x410 include/linux/netfilter.h:302
__netif_receive_skb_one_core net/core/dev.c:5493 [inline]
__netif_receive_skb+0x1c6/0x530 net/core/dev.c:5607
process_backlog+0x363/0x7f0 net/core/dev.c:6484
__napi_poll+0xc7/0x440 net/core/dev.c:7043
napi_poll net/core/dev.c:7110 [inline]
net_rx_action+0x617/0xda0 net/core/dev.c:7200
handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
run_ksoftirqd+0xc6/0x120 kernel/softirq.c:925
smpboot_thread_fn+0x51b/0x9d0 kernel/smpboot.c:164
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
INITIAL USE at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline]
_raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:316
__f_setown+0x38/0x350 fs/fcntl.c:91
generic_add_lease fs/locks.c:1900 [inline]
generic_setlease+0xf12/0x1390 fs/locks.c:1980
vfs_setlease fs/locks.c:2070 [inline]
do_fcntl_add_lease fs/locks.c:2091 [inline]
fcntl_setlease+0x341/0x3f0 fs/locks.c:2113
do_fcntl+0x10a/0x1600 fs/fcntl.c:413
__do_sys_fcntl fs/fcntl.c:466 [inline]
__se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:451
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
INITIAL READ USE at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline]
_raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236
send_sigio+0x2f/0x330 fs/fcntl.c:790
kill_fasync_rcu fs/fcntl.c:1015 [inline]
kill_fasync+0x20c/0x490 fs/fcntl.c:1029
lease_break_callback+0x22/0x30 fs/locks.c:613
__break_lease+0x4d1/0x13b0 fs/locks.c:1615
break_lease include/linux/fs.h:2652 [inline]
do_dentry_open+0x77a/0xfb0 fs/open.c:817
do_open fs/namei.c:3608 [inline]
path_openat+0x2705/0x2f20 fs/namei.c:3742
do_filp_open+0x21c/0x460 fs/namei.c:3769
do_sys_openat2+0x13b/0x4f0 fs/open.c:1253
do_sys_open fs/open.c:1269 [inline]
__do_sys_openat fs/open.c:1285 [inline]
__se_sys_openat fs/open.c:1280 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1280
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
}
... key at: [<ffffffff96af9d00>] __alloc_file.__key+0x0/0x10
... acquired at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline]
_raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236
send_sigio+0x2f/0x330 fs/fcntl.c:790
kill_fasync_rcu fs/fcntl.c:1015 [inline]
kill_fasync+0x20c/0x490 fs/fcntl.c:1029
lease_break_callback+0x22/0x30 fs/locks.c:613
__break_lease+0x4d1/0x13b0 fs/locks.c:1615
break_lease include/linux/fs.h:2652 [inline]
do_dentry_open+0x77a/0xfb0 fs/open.c:817
do_open fs/namei.c:3608 [inline]
path_openat+0x2705/0x2f20 fs/namei.c:3742
do_filp_open+0x21c/0x460 fs/namei.c:3769
do_sys_openat2+0x13b/0x4f0 fs/open.c:1253
do_sys_open fs/open.c:1269 [inline]
__do_sys_openat fs/open.c:1285 [inline]
__se_sys_openat fs/open.c:1280 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1280
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0


the dependencies between the lock to be acquired
and SOFTIRQ-irq-unsafe lock:
-> (tasklist_lock){.+.+}-{2:2} {
HARDIRQ-ON-R at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_read_lock include/linux/rwlock_api_smp.h:149 [inline]
_raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228
do_wait+0x2a7/0xaf0 kernel/exit.c:1578
kernel_wait+0xe5/0x230 kernel/exit.c:1768
call_usermodehelper_exec_sync kernel/umh.c:139 [inline]
call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
SOFTIRQ-ON-R at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_read_lock include/linux/rwlock_api_smp.h:149 [inline]
_raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228
do_wait+0x2a7/0xaf0 kernel/exit.c:1578
kernel_wait+0xe5/0x230 kernel/exit.c:1768
call_usermodehelper_exec_sync kernel/umh.c:139 [inline]
call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
INITIAL USE at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline]
_raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:316
copy_process+0x22be/0x3ef0 kernel/fork.c:2336
kernel_clone+0x210/0x960 kernel/fork.c:2603
kernel_thread+0x168/0x1e0 kernel/fork.c:2655
rest_init+0x21/0x330 init/main.c:706
start_kernel+0x48c/0x540 init/main.c:1140
secondary_startup_64_no_verify+0xb1/0xbb
INITIAL READ USE at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_read_lock include/linux/rwlock_api_smp.h:149 [inline]
_raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228
do_wait+0x2a7/0xaf0 kernel/exit.c:1578
kernel_wait+0xe5/0x230 kernel/exit.c:1768
call_usermodehelper_exec_sync kernel/umh.c:139 [inline]
call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
}
... key at: [<ffffffff8c80a058>] tasklist_lock+0x18/0x40
... acquired at:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_read_lock include/linux/rwlock_api_smp.h:149 [inline]
_raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228
send_sigurg+0xc8/0x380 fs/fcntl.c:845
sk_send_sigurg+0x6a/0xb0 net/core/sock.c:3131
queue_oob+0x7fe/0xad0 net/unix/af_unix.c:2005
unix_stream_sendmsg+0xe0a/0x1070 net/unix/af_unix.c:2105
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2436
___sys_sendmsg+0x252/0x2e0 net/socket.c:2490
__sys_sendmmsg+0x2bf/0x560 net/socket.c:2576
__do_sys_sendmmsg net/socket.c:2605 [inline]
__se_sys_sendmmsg net/socket.c:2602 [inline]
__x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2602
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0


stack backtrace:
CPU: 0 PID: 9337 Comm: syz.0.1330 Not tainted 5.15.177-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
print_bad_irq_dependency kernel/locking/lockdep.c:2567 [inline]
check_irq_usage kernel/locking/lockdep.c:2806 [inline]
check_prev_add kernel/locking/lockdep.c:3057 [inline]
check_prevs_add kernel/locking/lockdep.c:3172 [inline]
validate_chain+0x4d01/0x5930 kernel/locking/lockdep.c:3788
__lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5012
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
__raw_read_lock include/linux/rwlock_api_smp.h:149 [inline]
_raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228
send_sigurg+0xc8/0x380 fs/fcntl.c:845
sk_send_sigurg+0x6a/0xb0 net/core/sock.c:3131
queue_oob+0x7fe/0xad0 net/unix/af_unix.c:2005
unix_stream_sendmsg+0xe0a/0x1070 net/unix/af_unix.c:2105
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2436
___sys_sendmsg+0x252/0x2e0 net/socket.c:2490
__sys_sendmmsg+0x2bf/0x560 net/socket.c:2576
__do_sys_sendmmsg net/socket.c:2605 [inline]
__se_sys_sendmmsg net/socket.c:2602 [inline]
__x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2602
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f7115699d29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7113503038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f71158b2fa0 RCX: 00007f7115699d29
RDX: 0000000000000001 RSI: 0000000020006c40 RDI: 0000000000000003
RBP: 00007f711571b2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000040015 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f71158b2fa0 R15: 00007ffe9ca51058
</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 syzk...@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

syzbot

unread,
May 14, 2025, 10:17:29 AM5/14/25
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages