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

0 views
Skip to first unread message

syzbot

unread,
Feb 13, 2024, 12:30:32 PMFeb 13
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6139f2a02fe0 Linux 5.15.148
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1406dc42180000
kernel config: https://syzkaller.appspot.com/x/.config?x=c170eb20d8be8542
dashboard link: https://syzkaller.appspot.com/bug?extid=203331b8c47767c94980
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/528e8fe56997/disk-6139f2a0.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/18abf1e442f9/vmlinux-6139f2a0.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0538a5d3b1f3/bzImage-6139f2a0.xz

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

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

and this task is already holding:
ffff8880167f8b38 (&f->f_owner.lock){...-}-{2:2}, at: send_sigurg+0x25/0x380 fs/fcntl.c:835
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+0x1137/0x18e0 drivers/hid/hid-input.c:1467
hid_process_event+0x433/0x580 drivers/hid/hid-core.c:1539
hid_input_field drivers/hid/hid-core.c:1583 [inline]
hid_report_raw_event+0xe9e/0x1640 drivers/hid/hid-core.c:1807
hid_input_report+0x419/0x4d0 drivers/hid/hid-core.c:1874
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:1421
expire_timers kernel/time/timer.c:1466 [inline]
__run_timers+0x67c/0x890 kernel/time/timer.c:1737
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1750
__do_softirq+0x3b3/0x93a kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x155/0x240 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5627
__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]
fast_dput fs/dcache.c:764 [inline]
dput+0x22e/0x420 fs/dcache.c:875
step_into+0x352/0xe90 fs/namei.c:1815
walk_component+0x359/0x610 fs/namei.c:1982
link_path_walk+0x642/0xd90
path_lookupat+0xa9/0x450 fs/namei.c:2454
filename_lookup+0x230/0x5c0 fs/namei.c:2484
user_path_at_empty+0x40/0x180 fs/namei.c:2883
user_path_at include/linux/namei.h:57 [inline]
vfs_statx+0x106/0x3b0 fs/stat.c:221
vfs_fstatat fs/stat.c:243 [inline]
__do_sys_newfstatat fs/stat.c:411 [inline]
__se_sys_newfstatat fs/stat.c:405 [inline]
__x64_sys_newfstatat+0x12c/0x1b0 fs/stat.c:405
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb

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:1576
kernel_wait+0xe5/0x230 kernel/exit.c:1766
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:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298

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-executor.4/25648:
#0: ffff88801f8b1aa0 (sk_lock-AF_INET6){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1668 [inline]
#0: ffff88801f8b1aa0 (sk_lock-AF_INET6){+.+.}-{0:0}, at: tcp_sendmsg+0x1e/0x40 net/ipv4/tcp.c:1454
#1: ffff8880167f8b38 (&f->f_owner.lock){...-}-{2:2}, at: send_sigurg+0x25/0x380 fs/fcntl.c:835

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+0x1137/0x18e0 drivers/hid/hid-input.c:1467
hid_process_event+0x433/0x580 drivers/hid/hid-core.c:1539
hid_input_field drivers/hid/hid-core.c:1583 [inline]
hid_report_raw_event+0xe9e/0x1640 drivers/hid/hid-core.c:1807
hid_input_report+0x419/0x4d0 drivers/hid/hid-core.c:1874
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:1421
expire_timers kernel/time/timer.c:1466 [inline]
__run_timers+0x67c/0x890 kernel/time/timer.c:1737
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1750
__do_softirq+0x3b3/0x93a kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x155/0x240 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5627
__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]
fast_dput fs/dcache.c:764 [inline]
dput+0x22e/0x420 fs/dcache.c:875
step_into+0x352/0xe90 fs/namei.c:1815
walk_component+0x359/0x610 fs/namei.c:1982
link_path_walk+0x642/0xd90
path_lookupat+0xa9/0x450 fs/namei.c:2454
filename_lookup+0x230/0x5c0 fs/namei.c:2484
user_path_at_empty+0x40/0x180 fs/namei.c:2883
user_path_at include/linux/namei.h:57 [inline]
vfs_statx+0x106/0x3b0 fs/stat.c:221
vfs_fstatat fs/stat.c:243 [inline]
__do_sys_newfstatat fs/stat.c:411 [inline]
__se_sys_newfstatat fs/stat.c:405 [inline]
__x64_sys_newfstatat+0x12c/0x1b0 fs/stat.c:405
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
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+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+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
}
... key at: [<ffffffff9172c840>] evdev_open.__key.23+0x0/0x20
-> (&new->fa_lock){....}-{2:2} {
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:891
sock_fasync+0x86/0xf0 net/socket.c:1361
__fput+0x715/0x890 fs/file_table.c:277
task_work_run+0x129/0x1a0 kernel/task_work.c:164
get_signal+0x143a/0x14e0 kernel/signal.c:2661
arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:867
handle_signal_work kernel/entry/common.c:148 [inline]
exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:172
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208
__syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301
do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x61/0xcb
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:1014 [inline]
kill_fasync+0x16a/0x490 fs/fcntl.c:1035
sock_wake_async+0x145/0x170
sk_wake_async+0x15d/0x250 include/net/sock.h:2452
af_alg_wmem_wakeup+0x218/0x300 crypto/af_alg.c:743
skcipher_recvmsg+0xdeb/0xe50 crypto/algif_skcipher.c:177
____sys_recvmsg+0x286/0x530
___sys_recvmsg+0x1ec/0x690 net/socket.c:2692
do_recvmmsg+0x36f/0x8f0 net/socket.c:2786
__sys_recvmmsg net/socket.c:2865 [inline]
__do_sys_recvmmsg net/socket.c:2888 [inline]
__se_sys_recvmmsg net/socket.c:2881 [inline]
__x64_sys_recvmmsg+0x195/0x240 net/socket.c:2881
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
}
... key at: [<ffffffff9142fd00>] 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:1014 [inline]
kill_fasync+0x16a/0x490 fs/fcntl.c:1035
__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+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb

-> (&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:835
sk_send_sigurg+0x6a/0xb0 net/core/sock.c:3117
tcp_check_urg net/ipv4/tcp_input.c:5609 [inline]
tcp_urg+0x2b8/0xb40 net/ipv4/tcp_input.c:5650
tcp_rcv_established+0xe33/0x1e20 net/ipv4/tcp_input.c:5984
tcp_v4_do_rcv+0x423/0x960 net/ipv4/tcp_ipv4.c:1727
tcp_v4_rcv+0x2740/0x2d80 net/ipv4/tcp_ipv4.c:2130
ip_protocol_deliver_rcu+0x381/0x730 net/ipv4/ip_input.c:204
ip_local_deliver_finish+0x1db/0x320 net/ipv4/ip_input.c:231
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:5485 [inline]
__netif_receive_skb+0x1c6/0x530 net/core/dev.c:5599
process_backlog+0x363/0x7f0 net/core/dev.c:6476
__napi_poll+0xc7/0x440 net/core/dev.c:7035
napi_poll net/core/dev.c:7102 [inline]
net_rx_action+0x617/0xda0 net/core/dev.c:7189
__do_softirq+0x3b3/0x93a kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x155/0x240 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
acpi_safe_halt drivers/acpi/processor_idle.c:109 [inline]
acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:570
acpi_idle_enter+0x352/0x4f0 drivers/acpi/processor_idle.c:705
cpuidle_enter_state+0x521/0xef0 drivers/cpuidle/cpuidle.c:237
cpuidle_enter+0x59/0x90 drivers/cpuidle/cpuidle.c:351
call_cpuidle kernel/sched/idle.c:158 [inline]
cpuidle_idle_call kernel/sched/idle.c:239 [inline]
do_idle+0x3e4/0x670 kernel/sched/idle.c:306
cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:403
start_secondary+0x371/0x500 arch/x86/kernel/smpboot.c:281
secondary_startup_64_no_verify+0xb1/0xbb
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_modown+0x38/0x340 fs/fcntl.c:91
__f_setown fs/fcntl.c:110 [inline]
f_setown+0x127/0x1d0 fs/fcntl.c:138
sock_ioctl+0x58d/0x770 net/socket.c:1200
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
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:796
kill_fasync_rcu fs/fcntl.c:1021 [inline]
kill_fasync+0x20c/0x490 fs/fcntl.c:1035
sock_wake_async+0x145/0x170
sk_wake_async+0x15d/0x250 include/net/sock.h:2452
af_alg_wmem_wakeup+0x218/0x300 crypto/af_alg.c:743
skcipher_recvmsg+0xdeb/0xe50 crypto/algif_skcipher.c:177
____sys_recvmsg+0x286/0x530
___sys_recvmsg+0x1ec/0x690 net/socket.c:2692
do_recvmmsg+0x36f/0x8f0 net/socket.c:2786
__sys_recvmmsg net/socket.c:2865 [inline]
__do_sys_recvmmsg net/socket.c:2888 [inline]
__se_sys_recvmmsg net/socket.c:2881 [inline]
__x64_sys_recvmmsg+0x195/0x240 net/socket.c:2881
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
}
... key at: [<ffffffff9142f080>] __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:796
kill_fasync_rcu fs/fcntl.c:1021 [inline]
kill_fasync+0x20c/0x490 fs/fcntl.c:1035
sock_wake_async+0x145/0x170
sk_wake_async+0x15d/0x250 include/net/sock.h:2452
af_alg_wmem_wakeup+0x218/0x300 crypto/af_alg.c:743
skcipher_recvmsg+0xdeb/0xe50 crypto/algif_skcipher.c:177
____sys_recvmsg+0x286/0x530
___sys_recvmsg+0x1ec/0x690 net/socket.c:2692
do_recvmmsg+0x36f/0x8f0 net/socket.c:2786
__sys_recvmmsg net/socket.c:2865 [inline]
__do_sys_recvmmsg net/socket.c:2888 [inline]
__se_sys_recvmmsg net/socket.c:2881 [inline]
__x64_sys_recvmmsg+0x195/0x240 net/socket.c:2881
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb


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:1576
kernel_wait+0xe5/0x230 kernel/exit.c:1766
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:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
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:1576
kernel_wait+0xe5/0x230 kernel/exit.c:1766
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:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
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:2337
kernel_clone+0x210/0x960 kernel/fork.c:2604
kernel_thread+0x168/0x1e0 kernel/fork.c:2656
rest_init+0x21/0x330 init/main.c:703
start_kernel+0x48c/0x535 init/main.c:1137
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:1576
kernel_wait+0xe5/0x230 kernel/exit.c:1766
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:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
}
... key at: [<ffffffff8c60a058>] 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:851
sk_send_sigurg+0x6a/0xb0 net/core/sock.c:3117
tcp_check_urg net/ipv4/tcp_input.c:5609 [inline]
tcp_urg+0x2b8/0xb40 net/ipv4/tcp_input.c:5650
tcp_rcv_established+0xe33/0x1e20 net/ipv4/tcp_input.c:5984
tcp_v6_do_rcv+0x4f2/0x10f0 net/ipv6/tcp_ipv6.c:1526
sk_backlog_rcv include/net/sock.h:1059 [inline]
__release_sock+0x198/0x4b0 net/core/sock.c:2713
release_sock+0x5d/0x1c0 net/core/sock.c:3254
sk_stream_wait_memory+0x709/0xe80 net/core/stream.c:145
tcp_sendmsg_locked+0x1468/0x3a90 net/ipv4/tcp.c:1417
tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1455
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
__sys_sendto+0x564/0x720 net/socket.c:2058
__do_sys_sendto net/socket.c:2070 [inline]
__se_sys_sendto net/socket.c:2066 [inline]
__x64_sys_sendto+0xda/0xf0 net/socket.c:2066
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb


stack backtrace:
CPU: 0 PID: 25648 Comm: syz-executor.4 Not tainted 5.15.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb 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:851
sk_send_sigurg+0x6a/0xb0 net/core/sock.c:3117
tcp_check_urg net/ipv4/tcp_input.c:5609 [inline]
tcp_urg+0x2b8/0xb40 net/ipv4/tcp_input.c:5650
tcp_rcv_established+0xe33/0x1e20 net/ipv4/tcp_input.c:5984
tcp_v6_do_rcv+0x4f2/0x10f0 net/ipv6/tcp_ipv6.c:1526
sk_backlog_rcv include/net/sock.h:1059 [inline]
__release_sock+0x198/0x4b0 net/core/sock.c:2713
release_sock+0x5d/0x1c0 net/core/sock.c:3254
sk_stream_wait_memory+0x709/0xe80 net/core/stream.c:145
tcp_sendmsg_locked+0x1468/0x3a90 net/ipv4/tcp.c:1417
tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1455
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
__sys_sendto+0x564/0x720 net/socket.c:2058
__do_sys_sendto net/socket.c:2070 [inline]
__se_sys_sendto net/socket.c:2066 [inline]
__x64_sys_sendto+0xda/0xf0 net/socket.c:2066
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f7853c9cda9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f785221d0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f7853dcaf80 RCX: 00007f7853c9cda9
RDX: 00000000d0d0c2ac RSI: 0000000020000080 RDI: 0000000000000006
RBP: 00007f7853ce947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f7853dcaf80 R15: 00007ffd1ffec608
</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
Reply all
Reply to author
Forward
0 new messages