wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 ====================================================== WARNING: possible circular locking dependency detected 6.7.0-rc8-syzkaller-00101-g0802e17d9aca #0 Not tainted ------------------------------------------------------ kworker/u4:1/12 is trying to acquire lock: ffff0000cc5beaf0 (&rs->rs_recv_lock){....}-{2:2}, at: rds_wake_sk_sleep+0x34/0xc8 net/rds/af_rds.c:109 but task is already holding lock: ffff0000d0071100 (&rm->m_rs_lock){..-.}-{2:2}, at: rds_send_remove_from_sock+0x134/0x78c net/rds/send.c:628 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&rm->m_rs_lock){..-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 rds_message_purge net/rds/message.c:138 [inline] rds_message_put+0x130/0xb30 net/rds/message.c:180 rds_loop_inc_free+0x20/0x30 net/rds/loop.c:115 rds_inc_put net/rds/recv.c:83 [inline] rds_clear_recv_queue+0x288/0x384 net/rds/recv.c:768 rds_release+0xbc/0x2d0 net/rds/af_rds.c:73 __sock_release net/socket.c:659 [inline] sock_close+0xa4/0x1e8 net/socket.c:1419 __fput+0x308/0x8e4 fs/file_table.c:394 __fput_sync+0x60/0x9c fs/file_table.c:475 __do_sys_close fs/open.c:1587 [inline] __se_sys_close fs/open.c:1572 [inline] __arm64_sys_close+0x150/0x1e0 fs/open.c:1572 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 -> #0 (&rs->rs_recv_lock){....}-{2:2}: check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3869 [inline] __lock_acquire+0x3384/0x763c kernel/locking/lockdep.c:5137 lock_acquire+0x23c/0x71c kernel/locking/lockdep.c:5754 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x6c/0x8c kernel/locking/spinlock.c:236 rds_wake_sk_sleep+0x34/0xc8 net/rds/af_rds.c:109 rds_send_remove_from_sock+0x1a4/0x78c net/rds/send.c:634 rds_send_path_drop_acked+0x390/0x3f0 net/rds/send.c:710 rds_tcp_write_space+0x1a8/0x598 net/rds/tcp_send.c:199 tcp_new_space net/ipv4/tcp_input.c:5633 [inline] tcp_check_space+0x150/0x888 net/ipv4/tcp_input.c:5652 tcp_data_snd_check net/ipv4/tcp_input.c:5661 [inline] tcp_rcv_established+0xe5c/0x1ff0 net/ipv4/tcp_input.c:6179 tcp_v4_do_rcv+0x3b0/0xe08 net/ipv4/tcp_ipv4.c:1906 sk_backlog_rcv include/net/sock.h:1121 [inline] __release_sock+0x1a8/0x408 net/core/sock.c:2968 release_sock+0x68/0x1b8 net/core/sock.c:3534 tcp_sock_set_cork+0x100/0x188 net/ipv4/tcp.c:3231 rds_tcp_xmit_path_complete+0x7c/0x8c net/rds/tcp_send.c:52 rds_send_xmit+0x197c/0x22a8 net/rds/send.c:422 rds_send_worker+0x84/0x36c net/rds/threads.c:200 process_one_work+0x694/0x1204 kernel/workqueue.c:2627 process_scheduled_works kernel/workqueue.c:2700 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2781 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&rm->m_rs_lock); lock(&rs->rs_recv_lock); lock(&rm->m_rs_lock); rlock(&rs->rs_recv_lock); *** DEADLOCK *** 5 locks held by kworker/u4:1/12: #0: ffff0000d2362938 ((wq_completion)krdsd){+.+.}-{0:0}, at: process_one_work+0x560/0x1204 kernel/workqueue.c:2600 #1: ffff800092fb7c20 ((work_completion)(&(&cp->cp_send_w)->work)){+.+.}-{0:0}, at: process_one_work+0x5a0/0x1204 kernel/workqueue.c:2602 #2: ffff0000e1b66330 (k-sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1720 [inline] #2: ffff0000e1b66330 (k-sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_sock_set_cork+0x38/0x188 net/ipv4/tcp.c:3229 #3: ffff0000e1b665b8 (k-clock-AF_INET){++.-}-{2:2}, at: rds_tcp_write_space+0x38/0x598 net/rds/tcp_send.c:185 #4: ffff0000d0071100 (&rm->m_rs_lock){..-.}-{2:2}, at: rds_send_remove_from_sock+0x134/0x78c net/rds/send.c:628 stack backtrace: CPU: 1 PID: 12 Comm: kworker/u4:1 Not tainted 6.7.0-rc8-syzkaller-00101-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: krdsd rds_send_worker Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 print_circular_bug+0x150/0x1b8 kernel/locking/lockdep.c:2060 check_noncircular+0x310/0x404 kernel/locking/lockdep.c:2187 check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3869 [inline] __lock_acquire+0x3384/0x763c kernel/locking/lockdep.c:5137 lock_acquire+0x23c/0x71c kernel/locking/lockdep.c:5754 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x6c/0x8c kernel/locking/spinlock.c:236 rds_wake_sk_sleep+0x34/0xc8 net/rds/af_rds.c:109 rds_send_remove_from_sock+0x1a4/0x78c net/rds/send.c:634 rds_send_path_drop_acked+0x390/0x3f0 net/rds/send.c:710 rds_tcp_write_space+0x1a8/0x598 net/rds/tcp_send.c:199 tcp_new_space net/ipv4/tcp_input.c:5633 [inline] tcp_check_space+0x150/0x888 net/ipv4/tcp_input.c:5652 tcp_data_snd_check net/ipv4/tcp_input.c:5661 [inline] tcp_rcv_established+0xe5c/0x1ff0 net/ipv4/tcp_input.c:6179 tcp_v4_do_rcv+0x3b0/0xe08 net/ipv4/tcp_ipv4.c:1906 sk_backlog_rcv include/net/sock.h:1121 [inline] __release_sock+0x1a8/0x408 net/core/sock.c:2968 release_sock+0x68/0x1b8 net/core/sock.c:3534 tcp_sock_set_cork+0x100/0x188 net/ipv4/tcp.c:3231 rds_tcp_xmit_path_complete+0x7c/0x8c net/rds/tcp_send.c:52 rds_send_xmit+0x197c/0x22a8 net/rds/send.c:422 rds_send_worker+0x84/0x36c net/rds/threads.c:200 process_one_work+0x694/0x1204 kernel/workqueue.c:2627 process_scheduled_works kernel/workqueue.c:2700 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2781 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857