======================================================
WARNING: possible circular locking dependency detected
4.14.281-syzkaller #0 Not tainted
------------------------------------------------------
kworker/u4:0/5 is trying to acquire lock:
 (sk_lock-AF_INET){+.+.}, at: [<ffffffff86825ace>] do_strp_work net/strparser/strparser.c:415 [inline]
 (sk_lock-AF_INET){+.+.}, at: [<ffffffff86825ace>] strp_work+0x3e/0x100 net/strparser/strparser.c:434

but task is already holding lock:
 ((&strp->work)){+.+.}, at: [<ffffffff81364fb6>] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2092

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:
8021q: adding VLAN 0 to HW filter on device batadv1

-> #1 ((&strp->work)){+.+.}:
       flush_work+0xad/0x770 kernel/workqueue.c:2890
       __cancel_work_timer+0x321/0x460 kernel/workqueue.c:2965
       strp_done+0x53/0xd0 net/strparser/strparser.c:519
       kcm_attach net/kcm/kcmsock.c:1429 [inline]
       kcm_attach_ioctl net/kcm/kcmsock.c:1490 [inline]
       kcm_ioctl+0x828/0xfb0 net/kcm/kcmsock.c:1701
       sock_do_ioctl net/socket.c:974 [inline]
       sock_ioctl+0x2cc/0x4c0 net/socket.c:1071
       vfs_ioctl fs/ioctl.c:46 [inline]
       file_ioctl fs/ioctl.c:500 [inline]
       do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684
       SYSC_ioctl fs/ioctl.c:701 [inline]
       SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
       do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
       entry_SYSCALL_64_after_hwframe+0x46/0xbb

-> #0
bond1: Enslaving batadv1 as a backup interface with an up link
 (sk_lock-AF_INET){+.+.}:
       lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
       lock_sock_nested+0xb7/0x100 net/core/sock.c:2813
       do_strp_work net/strparser/strparser.c:415 [inline]
       strp_work+0x3e/0x100 net/strparser/strparser.c:434
       process_one_work+0x793/0x14a0 kernel/workqueue.c:2117
       worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251
       kthread+0x30d/0x420 kernel/kthread.c:232
       ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
IPv6: ADDRCONF(NETDEV_UP): bond1: link is not ready

other info that might help us debug this:

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock((&strp->work));
                               lock(sk_lock-AF_INET);
                               lock((&strp->work));
  lock(sk_lock-AF_INET);

 *** DEADLOCK ***

2 locks held by kworker/u4:0/5:
 #0: 
bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond
 ("%s""kstrp"){+.+.}, at: [<ffffffff81364f80>] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2088
 #1: 
8021q: adding VLAN 0 to HW filter on device bond1
 ((&strp->work)){+.+.}, at: [<ffffffff81364fb6>] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2092

stack backtrace:
CPU: 1 PID: 5 Comm: kworker/u4:0 Not tainted 4.14.281-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: kstrp strp_work
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1258
 check_prev_add kernel/locking/lockdep.c:1905 [inline]
 check_prevs_add kernel/locking/lockdep.c:2022 [inline]
 validate_chain kernel/locking/lockdep.c:2464 [inline]
 __lock_acquire+0x2e0e/0x3f20 kernel/locking/lockdep.c:3491
 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
 lock_sock_nested+0xb7/0x100 net/core/sock.c:2813
 do_strp_work net/strparser/strparser.c:415 [inline]
 strp_work+0x3e/0x100 net/strparser/strparser.c:434
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2117
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond
bond1 (unregistering): Released all slaves
IPv6: ADDRCONF(NETDEV_UP): bond1: link is not ready
bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond
8021q: adding VLAN 0 to HW filter on device bond1
bond1 (unregistering): Removing an active aggregator
bond1 (unregistering): Releasing backup interface batadv2
bond1 (unregistering): Released all slaves
bond1 (unregistering): Removing an active aggregator
bond1 (unregistering): Releasing backup interface batadv1
bond1 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv1
bond1: Enslaving batadv1 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv2
bond1: Enslaving batadv2 as a backup interface with an up link
bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond
IPv6: ADDRCONF(NETDEV_UP): bond1: link is not ready
8021q: adding VLAN 0 to HW filter on device bond1
bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond
IPv6: ADDRCONF(NETDEV_UP): bond1: link is not ready
8021q: adding VLAN 0 to HW filter on device bond1
IPv6: ADDRCONF(NETDEV_CHANGE): bond1: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): bond1: link becomes ready
bond1 (unregistering): Removing an active aggregator
bond1 (unregistering): Releasing backup interface batadv1
bond1 (unregistering): Released all slaves
bond1 (unregistering): Removing an active aggregator
bond1 (unregistering): Releasing backup interface batadv2
bond1 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv3
bond1: Enslaving batadv3 as a backup interface with an up link
bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond
IPv6: ADDRCONF(NETDEV_UP): bond1: link is not ready
8021q: adding VLAN 0 to HW filter on device bond1
IPv6: ADDRCONF(NETDEV_CHANGE): bond1: link becomes ready
bond1 (unregistering): Removing an active aggregator
bond1 (unregistering): Releasing backup interface batadv3
bond1 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv4
bond1: Enslaving batadv4 as a backup interface with an up link
bond1 (unregistering): Releasing backup interface batadv4
bond1 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv5
bond1: Enslaving batadv5 as a backup interface with an up link
bond1 (unregistering): Releasing backup interface batadv5
bond1 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv6
bond1: Enslaving batadv6 as a backup interface with an up link
bond1 (unregistering): Releasing backup interface batadv6
bond1 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv1
bond4: Enslaving batadv1 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv7
bond1: Enslaving batadv7 as a backup interface with an up link
bond4 (unregistering): Releasing backup interface batadv1
bond4 (unregistering): Released all slaves
bond1 (unregistering): Releasing backup interface batadv7
bond1 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv2
bond1: Enslaving batadv2 as a backup interface with an up link
bond1 (unregistering): Releasing backup interface batadv2
bond1 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv2
bond4: Enslaving batadv2 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv8
bond1: Enslaving batadv8 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv3
bond1: Enslaving batadv3 as a backup interface with an up link
bond1 (unregistering): Releasing backup interface batadv8
bond1 (unregistering): Released all slaves
bond4 (unregistering): Releasing backup interface batadv2
bond4 (unregistering): Released all slaves
bond1 (unregistering): Releasing backup interface batadv3
bond1 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv9
bond1: Enslaving batadv9 as a backup interface with an up link
bond1 (unregistering): Releasing backup interface batadv9
Zero length message leads to an empty skb
bond1 (unregistering): Released all slaves
audit: type=1804 audit(1653551690.082:13): pid=14469 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir4117672911/syzkaller.3BiM0A/116/file0" dev="sda1" ino=14190 res=1
8021q: adding VLAN 0 to HW filter on device batadv4
bond1: Enslaving batadv4 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv3
bond1: Enslaving batadv3 as a backup interface with an up link
bond1 (unregistering): Releasing backup interface batadv3
bond1 (unregistering): Released all slaves
bond1 (unregistering): Releasing backup interface batadv4
bond1 (unregistering): Released all slaves
audit: type=1804 audit(1653551690.442:14): pid=14614 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir4117672911/syzkaller.3BiM0A/117/file0" dev="sda1" ino=14174 res=1
audit: type=1804 audit(1653551690.492:15): pid=14642 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir4117672911/syzkaller.3BiM0A/118/file0" dev="sda1" ino=14174 res=1
audit: type=1804 audit(1653551690.542:16): pid=14682 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir4117672911/syzkaller.3BiM0A/119/file0" dev="sda1" ino=14174 res=1
8021q: adding VLAN 0 to HW filter on device batadv10
bond1: Enslaving batadv10 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv5
bond1: Enslaving batadv5 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv4
bond1: Enslaving batadv4 as a backup interface with an up link
bond1 (unregistering): Releasing backup interface batadv10
bond1 (unregistering): Released all slaves
bond1 (unregistering): Releasing backup interface batadv4
bond1 (unregistering): Released all slaves
bond1 (unregistering): Releasing backup interface batadv5
bond1 (unregistering): Released all slaves
audit: type=1804 audit(1653551690.812:17): pid=14840 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir4117672911/syzkaller.3BiM0A/120/file0" dev="sda1" ino=14174 res=1
audit: type=1804 audit(1653551690.902:18): pid=14844 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir4117672911/syzkaller.3BiM0A/121/file0" dev="sda1" ino=14185 res=1
8021q: adding VLAN 0 to HW filter on device batadv11
bond1: Enslaving batadv11 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv5
bond1: Enslaving batadv5 as a backup interface with an up link
bond1 (unregistering): Releasing backup interface batadv11
bond1 (unregistering): Released all slaves
bond1 (unregistering): Releasing backup interface batadv5
bond1 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv12
bond1: Enslaving batadv12 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv6
bond1: Enslaving batadv6 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv6
bond1: Enslaving batadv6 as a backup interface with an up link
bond1 (unregistering): Releasing backup interface batadv12
bond1 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv13
bond1: Enslaving batadv13 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv7
bond2: Enslaving batadv7 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv7
bond2: Enslaving batadv7 as a backup interface with an up link
bond1 (unregistering): Releasing backup interface batadv13
bond1 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv8
bond3: Enslaving batadv8 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv14
bond1: Enslaving batadv14 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv8
bond3: Enslaving batadv8 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv9
bond4: Enslaving batadv9 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv9
bond4: Enslaving batadv9 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv15
bond2: Enslaving batadv15 as a backup interface with an up link
bond4 (unregistering): Releasing backup interface batadv9
bond4 (unregistering): Released all slaves
8021q: adding VLAN 0 to HW filter on device batadv16
bond3: Enslaving batadv16 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv10
bond4: Enslaving batadv10 as a backup interface with an up link
8021q: adding VLAN 0 to HW filter on device batadv10
bond5: Enslaving batadv10 as a backup interface with an up link
bond4 (unregistering): Releasing backup interface batadv10
bond4 (unregistering): Released all slaves