macsec0: entered promiscuous mode BUG: sleeping function called from invalid context at kernel/locking/mutex.c:579 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 18329, name: syz.2.3968 preempt_count: 201, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz.2.3968/18329: #0: ffffffff8f51ed08 (rtnl_mutex){+.+.}-{4:4}, at: packet_mc_add+0x28/0xbb0 net/packet/af_packet.c:3736 #1: ffff8880322c2368 (&macsec_netdev_addr_lock_key/1){+...}-{3:3}, at: netif_addr_lock_bh include/linux/netdevice.h:4810 [inline] #1: ffff8880322c2368 (&macsec_netdev_addr_lock_key/1){+...}-{3:3}, at: dev_uc_add+0x67/0x120 net/core/dev_addr_lists.c:689 Preemption disabled at: [] local_bh_disable include/linux/bottom_half.h:20 [inline] [] netif_addr_lock_bh include/linux/netdevice.h:4809 [inline] [] dev_uc_add+0x56/0x120 net/core/dev_addr_lists.c:689 CPU: 1 UID: 0 PID: 18329 Comm: syz.2.3968 Not tainted 6.16.0-rc6-syzkaller-01646-g56613001dfc9 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 __might_resched+0x495/0x610 kernel/sched/core.c:8800 __mutex_lock_common kernel/locking/mutex.c:579 [inline] __mutex_lock+0x106/0xe80 kernel/locking/mutex.c:747 netdev_lock include/linux/netdevice.h:2758 [inline] netdev_lock_ops include/net/netdev_lock.h:42 [inline] dev_set_promiscuity+0x10e/0x260 net/core/dev_api.c:286 dev_change_rx_flags net/core/dev.c:9308 [inline] __dev_set_promiscuity+0x534/0x740 net/core/dev.c:9352 __dev_set_rx_mode+0x17c/0x260 net/core/dev.c:-1 dev_uc_add+0xc8/0x120 net/core/dev_addr_lists.c:693 packet_dev_mc net/packet/af_packet.c:3704 [inline] packet_mc_add+0x6f7/0xbb0 net/packet/af_packet.c:3774 packet_setsockopt+0xbf1/0x12c0 net/packet/af_packet.c:3859 do_sock_setsockopt+0x179/0x1b0 net/socket.c:2344 __sys_setsockopt net/socket.c:2369 [inline] __do_sys_setsockopt net/socket.c:2375 [inline] __se_sys_setsockopt net/socket.c:2372 [inline] __x64_sys_setsockopt+0x13f/0x1b0 net/socket.c:2372 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4494b8e9a9 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:00007f4495a3e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f4494db6080 RCX: 00007f4494b8e9a9 RDX: 0000000000000001 RSI: 0000000000000107 RDI: 000000000000000f RBP: 00007f4494c10d69 R08: 0000000000000010 R09: 0000000000000000 R10: 00002000000004c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4494db6080 R15: 00007fff5bf7da08 ============================= [ BUG: Invalid wait context ] 6.16.0-rc6-syzkaller-01646-g56613001dfc9 #0 Tainted: G W ----------------------------- syz.2.3968/18329 is trying to lock: ffff888030834d20 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2758 [inline] ffff888030834d20 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: netdev_lock_ops include/net/netdev_lock.h:42 [inline] ffff888030834d20 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: dev_set_promiscuity+0x10e/0x260 net/core/dev_api.c:286 other info that might help us debug this: context-{5:5} 2 locks held by syz.2.3968/18329: #0: ffffffff8f51ed08 (rtnl_mutex){+.+.}-{4:4}, at: packet_mc_add+0x28/0xbb0 net/packet/af_packet.c:3736 #1: ffff8880322c2368 (&macsec_netdev_addr_lock_key/1){+...}-{3:3}, at: netif_addr_lock_bh include/linux/netdevice.h:4810 [inline] #1: ffff8880322c2368 (&macsec_netdev_addr_lock_key/1){+...}-{3:3}, at: dev_uc_add+0x67/0x120 net/core/dev_addr_lists.c:689 stack backtrace: CPU: 1 UID: 0 PID: 18329 Comm: syz.2.3968 Tainted: G W 6.16.0-rc6-syzkaller-01646-g56613001dfc9 #0 PREEMPT(full) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4833 [inline] check_wait_context kernel/locking/lockdep.c:4905 [inline] __lock_acquire+0xbcb/0xd20 kernel/locking/lockdep.c:5190 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5871 __mutex_lock_common kernel/locking/mutex.c:602 [inline] __mutex_lock+0x182/0xe80 kernel/locking/mutex.c:747 netdev_lock include/linux/netdevice.h:2758 [inline] netdev_lock_ops include/net/netdev_lock.h:42 [inline] dev_set_promiscuity+0x10e/0x260 net/core/dev_api.c:286 dev_change_rx_flags net/core/dev.c:9308 [inline] __dev_set_promiscuity+0x534/0x740 net/core/dev.c:9352 __dev_set_rx_mode+0x17c/0x260 net/core/dev.c:-1 dev_uc_add+0xc8/0x120 net/core/dev_addr_lists.c:693 packet_dev_mc net/packet/af_packet.c:3704 [inline] packet_mc_add+0x6f7/0xbb0 net/packet/af_packet.c:3774 packet_setsockopt+0xbf1/0x12c0 net/packet/af_packet.c:3859 do_sock_setsockopt+0x179/0x1b0 net/socket.c:2344 __sys_setsockopt net/socket.c:2369 [inline] __do_sys_setsockopt net/socket.c:2375 [inline] __se_sys_setsockopt net/socket.c:2372 [inline] __x64_sys_setsockopt+0x13f/0x1b0 net/socket.c:2372 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4494b8e9a9 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:00007f4495a3e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f4494db6080 RCX: 00007f4494b8e9a9 RDX: 0000000000000001 RSI: 0000000000000107 RDI: 000000000000000f RBP: 00007f4494c10d69 R08: 0000000000000010 R09: 0000000000000000 R10: 00002000000004c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4494db6080 R15: 00007fff5bf7da08