chnl_net:caif_netlink_parms(): no params data found ====================================================== WARNING: possible circular locking dependency detected 6.0.0-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.3/3700 is trying to acquire lock: ffffffff8c0c4728 (zonelist_update_seq.seqcount){....}-{0:0}, at: __alloc_pages+0x43d/0x510 mm/page_alloc.c:5562 but task is already holding lock: ffff88802c929498 (&base->lock){-.-.}-{2:2}, at: __mod_timer+0x60c/0xe30 kernel/time/timer.c:1096 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #4 (&base->lock){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 lock_timer_base+0x5a/0x1f0 kernel/time/timer.c:999 __mod_timer+0x398/0xe30 kernel/time/timer.c:1072 __queue_delayed_work+0x1a7/0x270 kernel/workqueue.c:1676 queue_delayed_work_on+0x105/0x120 kernel/workqueue.c:1701 psi_enqueue kernel/sched/stats.h:136 [inline] enqueue_task+0x1ec/0x3a0 kernel/sched/core.c:2062 activate_task kernel/sched/core.c:2091 [inline] wake_up_new_task+0x582/0xbf0 kernel/sched/core.c:4680 kernel_clone+0x1eb/0xab0 kernel/fork.c:2695 user_mode_thread+0xad/0xe0 kernel/fork.c:2740 rest_init+0x23/0x270 init/main.c:692 arch_call_rest_init+0xf/0x14 init/main.c:883 start_kernel+0x46e/0x48f init/main.c:1138 secondary_startup_64_no_verify+0xce/0xdb -> #3 (&rq->__lock){-.-.}-{2:2}: _raw_spin_lock_nested+0x30/0x40 kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:544 raw_spin_rq_lock kernel/sched/sched.h:1355 [inline] rq_lock kernel/sched/sched.h:1653 [inline] task_fork_fair+0x68/0x520 kernel/sched/fair.c:11440 sched_cgroup_fork+0x340/0x480 kernel/sched/core.c:4624 copy_process+0x4416/0x7090 kernel/fork.c:2371 kernel_clone+0xe7/0xab0 kernel/fork.c:2671 user_mode_thread+0xad/0xe0 kernel/fork.c:2740 rest_init+0x23/0x270 init/main.c:692 arch_call_rest_init+0xf/0x14 init/main.c:883 start_kernel+0x46e/0x48f init/main.c:1138 secondary_startup_64_no_verify+0xce/0xdb -> #2 (&p->pi_lock){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 try_to_wake_up+0xab/0x1e60 kernel/sched/core.c:4082 up+0x75/0xb0 kernel/locking/semaphore.c:191 __up_console_sem+0xa4/0xc0 kernel/printk/printk.c:263 __console_unlock kernel/printk/printk.c:2652 [inline] console_unlock+0x480/0x5a0 kernel/printk/printk.c:2863 vga_remove_vgacon drivers/pci/vgaarb.c:189 [inline] vga_remove_vgacon.cold+0x99/0x9e drivers/pci/vgaarb.c:170 aperture_remove_conflicting_pci_devices+0x59/0x200 drivers/video/aperture.c:336 bochs_pci_probe+0x101/0x880 drivers/gpu/drm/tiny/bochs.c:647 local_pci_probe+0xe1/0x1a0 drivers/pci/pci-driver.c:324 pci_call_probe drivers/pci/pci-driver.c:392 [inline] __pci_device_probe drivers/pci/pci-driver.c:417 [inline] pci_device_probe+0x298/0x740 drivers/pci/pci-driver.c:460 call_driver_probe drivers/base/dd.c:560 [inline] really_probe+0x249/0xb90 drivers/base/dd.c:639 __driver_probe_device+0x1df/0x4d0 drivers/base/dd.c:778 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:808 __driver_attach+0x1d0/0x550 drivers/base/dd.c:1190 bus_for_each_dev+0x147/0x1d0 drivers/base/bus.c:301 bus_add_driver+0x4c9/0x640 drivers/base/bus.c:618 driver_register+0x220/0x3a0 drivers/base/driver.c:246 drm_pci_register_driver_if_modeset include/drm/drm_module.h:69 [inline] bochs_pci_driver_init+0x71/0x80 drivers/gpu/drm/tiny/bochs.c:723 do_one_initcall+0xfe/0x650 init/main.c:1296 do_initcall_level init/main.c:1369 [inline] do_initcalls init/main.c:1385 [inline] do_basic_setup init/main.c:1404 [inline] kernel_init_freeable+0x6b1/0x73a init/main.c:1623 kernel_init+0x1a/0x1d0 init/main.c:1512 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 -> #1 ((console_sem).lock){-...}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 down_trylock+0xe/0x60 kernel/locking/semaphore.c:139 __down_trylock_console_sem+0x40/0x120 kernel/printk/printk.c:246 console_trylock kernel/printk/printk.c:2586 [inline] console_trylock_spinning kernel/printk/printk.c:1870 [inline] vprintk_emit+0x167/0x5f0 kernel/printk/printk.c:2270 vprintk+0x80/0x90 kernel/printk/printk_safe.c:50 _printk+0xba/0xed kernel/printk/printk.c:2292 build_zonelists+0x2e7/0x400 mm/page_alloc.c:6468 __build_all_zonelists+0x111/0x180 mm/page_alloc.c:6584 build_all_zonelists_init+0x2f/0x104 mm/page_alloc.c:6609 build_all_zonelists+0x11f/0x140 mm/page_alloc.c:6642 start_kernel+0xb9/0x48f init/main.c:960 secondary_startup_64_no_verify+0xce/0xdb -> #0 (zonelist_update_seq.seqcount){....}-{0:0}: check_prev_add kernel/locking/lockdep.c:3095 [inline] check_prevs_add kernel/locking/lockdep.c:3214 [inline] validate_chain kernel/locking/lockdep.c:3829 [inline] __lock_acquire+0x2a43/0x56d0 kernel/locking/lockdep.c:5053 lock_acquire kernel/locking/lockdep.c:5666 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631 seqcount_lockdep_reader_access include/linux/seqlock.h:102 [inline] read_seqbegin include/linux/seqlock.h:836 [inline] zonelist_iter_begin mm/page_alloc.c:4722 [inline] __alloc_pages_slowpath.constprop.0+0x1a5/0x2300 mm/page_alloc.c:5044 __alloc_pages+0x43d/0x510 mm/page_alloc.c:5562 alloc_pages+0x1a6/0x270 mm/mempolicy.c:2270 __stack_depot_save+0x3ba/0x500 lib/stackdepot.c:457 kasan_save_stack+0x2e/0x40 mm/kasan/common.c:39 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:437 [inline] __kasan_slab_alloc+0x90/0xc0 mm/kasan/common.c:470 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:727 [inline] slab_alloc_node mm/slub.c:3248 [inline] slab_alloc mm/slub.c:3256 [inline] __kmem_cache_alloc_lru mm/slub.c:3263 [inline] kmem_cache_alloc+0x267/0x3b0 mm/slub.c:3273 kmem_cache_zalloc include/linux/slab.h:723 [inline] fill_pool+0x264/0x5c0 lib/debugobjects.c:168 __debug_object_init+0x7a/0xd10 lib/debugobjects.c:562 debug_object_init lib/debugobjects.c:617 [inline] debug_object_activate+0x32c/0x3e0 lib/debugobjects.c:703 debug_timer_activate kernel/time/timer.c:782 [inline] __mod_timer+0x77d/0xe30 kernel/time/timer.c:1103 __queue_delayed_work+0x1a7/0x270 kernel/workqueue.c:1676 queue_delayed_work_on+0x105/0x120 kernel/workqueue.c:1701 queue_delayed_work include/linux/workqueue.h:518 [inline] wg_ratelimiter_init+0x198/0x2c0 drivers/net/wireguard/ratelimiter.c:191 wg_newlink+0x4f2/0x9a0 drivers/net/wireguard/device.c:367 rtnl_newlink_create net/core/rtnetlink.c:3363 [inline] __rtnl_newlink+0x1087/0x17e0 net/core/rtnetlink.c:3580 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3593 rtnetlink_rcv_msg+0x43a/0xca0 net/core/rtnetlink.c:6090 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2501 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:734 __sys_sendto+0x236/0x340 net/socket.c:2117 __do_compat_sys_socketcall+0x47f/0x660 net/compat.c:473 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 other info that might help us debug this: Chain exists of: zonelist_update_seq.seqcount --> &rq->__lock --> &base->lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&base->lock); lock(&rq->__lock); lock(&base->lock); lock(zonelist_update_seq.seqcount); *** DEADLOCK *** 3 locks held by syz-executor.3/3700: #0: ffffffff8d7b16a8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: ffffffff8d7b16a8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e5/0xca0 net/core/rtnetlink.c:6087 #1: ffffffff8ccb3788 (init_lock){+.+.}-{3:3}, at: wg_ratelimiter_init+0x17/0x2c0 drivers/net/wireguard/ratelimiter.c:160 #2: ffff88802c929498 (&base->lock){-.-.}-{2:2}, at: __mod_timer+0x60c/0xe30 kernel/time/timer.c:1096 stack backtrace: CPU: 1 PID: 3700 Comm: syz-executor.3 Not tainted 6.0.0-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 check_noncircular+0x25f/0x2e0 kernel/locking/lockdep.c:2175 check_prev_add kernel/locking/lockdep.c:3095 [inline] check_prevs_add kernel/locking/lockdep.c:3214 [inline] validate_chain kernel/locking/lockdep.c:3829 [inline] __lock_acquire+0x2a43/0x56d0 kernel/locking/lockdep.c:5053 lock_acquire kernel/locking/lockdep.c:5666 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631 seqcount_lockdep_reader_access include/linux/seqlock.h:102 [inline] read_seqbegin include/linux/seqlock.h:836 [inline] zonelist_iter_begin mm/page_alloc.c:4722 [inline] __alloc_pages_slowpath.constprop.0+0x1a5/0x2300 mm/page_alloc.c:5044 __alloc_pages+0x43d/0x510 mm/page_alloc.c:5562 alloc_pages+0x1a6/0x270 mm/mempolicy.c:2270 __stack_depot_save+0x3ba/0x500 lib/stackdepot.c:457 kasan_save_stack+0x2e/0x40 mm/kasan/common.c:39 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:437 [inline] __kasan_slab_alloc+0x90/0xc0 mm/kasan/common.c:470 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:727 [inline] slab_alloc_node mm/slub.c:3248 [inline] slab_alloc mm/slub.c:3256 [inline] __kmem_cache_alloc_lru mm/slub.c:3263 [inline] kmem_cache_alloc+0x267/0x3b0 mm/slub.c:3273 kmem_cache_zalloc include/linux/slab.h:723 [inline] fill_pool+0x264/0x5c0 lib/debugobjects.c:168 __debug_object_init+0x7a/0xd10 lib/debugobjects.c:562 debug_object_init lib/debugobjects.c:617 [inline] debug_object_activate+0x32c/0x3e0 lib/debugobjects.c:703 debug_timer_activate kernel/time/timer.c:782 [inline] __mod_timer+0x77d/0xe30 kernel/time/timer.c:1103 __queue_delayed_work+0x1a7/0x270 kernel/workqueue.c:1676 queue_delayed_work_on+0x105/0x120 kernel/workqueue.c:1701 queue_delayed_work include/linux/workqueue.h:518 [inline] wg_ratelimiter_init+0x198/0x2c0 drivers/net/wireguard/ratelimiter.c:191 wg_newlink+0x4f2/0x9a0 drivers/net/wireguard/device.c:367 rtnl_newlink_create net/core/rtnetlink.c:3363 [inline] __rtnl_newlink+0x1087/0x17e0 net/core/rtnetlink.c:3580 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3593 rtnetlink_rcv_msg+0x43a/0xca0 net/core/rtnetlink.c:6090 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2501 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:734 __sys_sendto+0x236/0x340 net/socket.c:2117 __do_compat_sys_socketcall+0x47f/0x660 net/compat.c:473 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7f0f549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000ffe848d0 EFLAGS: 00000286 ORIG_RAX: 0000000000000066 RAX: ffffffffffffffda RBX: 000000000000000b RCX: 00000000ffe848e4 RDX: 0000000000000000 RSI: 00000000f6f4a000 RDI: 00000000f7eb4288 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 bridge0: port 1(bridge_slave_0) entered blocking state bridge0: port 1(bridge_slave_0) entered disabled state device bridge_slave_0 entered promiscuous mode bridge0: port 2(bridge_slave_1) entered blocking state bridge0: port 2(bridge_slave_1) entered disabled state device bridge_slave_1 entered promiscuous mode bond0: (slave bond_slave_0): Enslaving as an active interface with an up link bond0: (slave bond_slave_1): Enslaving as an active interface with an up link team0: Port device team_slave_0 added team0: Port device team_slave_1 added batman_adv: batadv0: Adding interface: batadv_slave_0 batman_adv: batadv0: The MTU of interface batadv_slave_0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active batman_adv: batadv0: Adding interface: batadv_slave_1 batman_adv: batadv0: The MTU of interface batadv_slave_1 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active device hsr_slave_0 entered promiscuous mode device hsr_slave_1 entered promiscuous mode debugfs: Directory 'hsr0' with parent 'hsr' already present! Cannot create hsr debugfs directory netdevsim netdevsim3 netdevsim0: renamed from eth0 netdevsim netdevsim3 netdevsim1: renamed from eth1 netdevsim netdevsim3 netdevsim2: renamed from eth2 netdevsim netdevsim3 netdevsim3: renamed from eth3 8021q: adding VLAN 0 to HW filter on device bond0 8021q: adding VLAN 0 to HW filter on device team0 IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready 8021q: adding VLAN 0 to HW filter on device batadv0 device veth0_vlan entered promiscuous mode device veth1_vlan entered promiscuous mode device veth0_macvtap entered promiscuous mode device veth1_macvtap entered promiscuous mode batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: batadv0: Interface activated: batadv_slave_0 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: batadv0: Interface activated: batadv_slave_1 netdevsim netdevsim3 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim3 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim3 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim3 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 ---------------- Code disassembly (best guess): 0: 03 74 c0 01 add 0x1(%rax,%rax,8),%esi 4: 10 05 03 74 b8 01 adc %al,0x1b87403(%rip) # 0x1b8740d a: 10 06 adc %al,(%rsi) c: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 10: 10 07 adc %al,(%rdi) 12: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi 16: 10 08 adc %cl,(%rax) 18: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1c: 00 00 add %al,(%rax) 1e: 00 00 add %al,(%rax) 20: 00 51 52 add %dl,0x52(%rcx) 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 retq 2e: 90 nop 2f: 90 nop 30: 90 nop 31: 90 nop 32: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 39: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi