IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready 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 4.19.157-syzkaller #0 Not tainted ------------------------------------------------------ IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready syz-executor.3/8146 is trying to acquire lock: 00000000525b88b6 (&qdisc_rx_lock){+.-.}, at: spin_lock include/linux/spinlock.h:329 [inline] 00000000525b88b6 (&qdisc_rx_lock){+.-.}, at: red_adaptative_timer+0x92/0x5c0 net/sched/sch_red.c:265 but task is already holding lock: 000000008b0daee6 ((&q->adapt_timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:168 [inline] 000000008b0daee6 ((&q->adapt_timer)){+.-.}, at: call_timer_fn+0xc9/0x700 kernel/time/timer.c:1328 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 ((&q->adapt_timer)){+.-.}: red_destroy+0x15/0x60 net/sched/sch_red.c:182 qdisc_destroy+0x180/0x790 net/sched/sch_generic.c:983 red_change+0x514/0x1080 net/sched/sch_red.c:236 qdisc_change net/sched/sch_api.c:1239 [inline] tc_modify_qdisc+0xf6a/0x1a80 net/sched/sch_api.c:1542 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115 __sys_sendmsg net/socket.c:2153 [inline] __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (&qdisc_rx_lock){+.-.}: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] red_adaptative_timer+0x92/0x5c0 net/sched/sch_red.c:265 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1703 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1716 __do_softirq+0x26c/0x9a0 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:544 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 __might_fault+0x41/0x1d0 mm/memory.c:4724 _copy_from_user+0x29/0x130 lib/usercopy.c:10 copy_from_user include/linux/uaccess.h:147 [inline] get_timespec64+0x75/0x120 kernel/time/time.c:862 __do_sys_nanosleep kernel/time/hrtimer.c:1771 [inline] __se_sys_nanosleep kernel/time/hrtimer.c:1766 [inline] __x64_sys_nanosleep+0xab/0x220 kernel/time/hrtimer.c:1766 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock((&q->adapt_timer)); lock(&qdisc_rx_lock); lock((&q->adapt_timer)); lock(&qdisc_rx_lock); *** DEADLOCK *** 1 lock held by syz-executor.3/8146: #0: 000000008b0daee6 ((&q->adapt_timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:168 [inline] #0: 000000008b0daee6 ((&q->adapt_timer)){+.-.}, at: call_timer_fn+0xc9/0x700 kernel/time/timer.c:1328 stack backtrace: CPU: 1 PID: 8146 Comm: syz-executor.3 Not tainted 4.19.157-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2fe lib/dump_stack.c:118 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1221 check_prev_add kernel/locking/lockdep.c:1865 [inline] check_prevs_add kernel/locking/lockdep.c:1978 [inline] validate_chain kernel/locking/lockdep.c:2419 [inline] __lock_acquire+0x30c9/0x3ff0 kernel/locking/lockdep.c:3415 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] red_adaptative_timer+0x92/0x5c0 net/sched/sch_red.c:265 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1703 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1716 __do_softirq+0x26c/0x9a0 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:544 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:__might_fault+0x41/0x1d0 mm/memory.c:4724 Code: ff df 65 48 8b 1c 25 80 df 01 00 48 8d bb 18 14 00 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 6b 01 00 00 48 8b 9b 18 14 00 00 <48> c7 c7 ff ff ff ff 48 89 de e8 80 49 d7 ff 48 83 fb ff 74 49 e8 RSP: 0018:ffff8880932dfdb0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: 00007ffffffff000 RCX: ffffffff81007d01 RDX: 1ffff110160666b3 RSI: ffffffff818d872f RDI: ffff8880b0333598 RBP: ffffffff88b39820 R08: 0000000000000000 R09: 0000000000000223 R10: 0000000000000007 R11: 0000000000000000 R12: 000000000000000a R13: ffff8880932dfe28 R14: 0000000000000000 R15: 0000000000000000 _copy_from_user+0x29/0x130 lib/usercopy.c:10 copy_from_user include/linux/uaccess.h:147 [inline] get_timespec64+0x75/0x120 kernel/time/time.c:862 __do_sys_nanosleep kernel/time/hrtimer.c:1771 [inline] __se_sys_nanosleep kernel/time/hrtimer.c:1766 [inline] __x64_sys_nanosleep+0xab/0x220 kernel/time/hrtimer.c:1766 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c381 Code: 75 14 b8 23 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 34 cf fb ff c3 48 83 ec 08 e8 0a 47 00 00 48 89 04 24 b8 23 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 47 00 00 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffc5f2a3590 EFLAGS: 00000293 ORIG_RAX: 0000000000000023 RAX: ffffffffffffffda RBX: 00000000016a4300 RCX: 000000000045c381 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffc5f2a35a0 RBP: 0000000000000041 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000004 R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000 ieee80211 phy12: Selected rate control algorithm 'minstrel_ht' IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 ieee80211 phy13: Selected rate control algorithm 'minstrel_ht' IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready