xt_TCPMSS: Only works on TCP SYN packets netlink: 8 bytes leftover after parsing attributes in process `syz-executor.3'. ====================================================== WARNING: possible circular locking dependency detected 4.14.291-syzkaller #0 Not tainted ------------------------------------------------------ kworker/u4:3/796 is trying to acquire lock: (sk_lock-AF_INET){+.+.}, at: [] do_strp_work net/strparser/strparser.c:415 [inline] (sk_lock-AF_INET){+.+.}, at: [] strp_work+0x3e/0x100 net/strparser/strparser.c:434 but task is already holding lock: ((&strp->work)){+.+.}, at: [] 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: -> #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 (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 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:3/796: #0: ("%s""kstrp"){+.+.}, at: [] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2088 #1: ((&strp->work)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2092 stack backtrace: CPU: 1 PID: 796 Comm: kworker/u4:3 Not tainted 4.14.291-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 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 Bluetooth: hci0 command 0x0401 tx timeout xt_TCPMSS: Only works on TCP SYN packets xt_TCPMSS: Only works on TCP SYN packets xt_TCPMSS: Only works on TCP SYN packets xt_TCPMSS: Only works on TCP SYN packets xt_TCPMSS: Only works on TCP SYN packets unregister_netdevice: waiting for ip6gre0 to become free. Usage count = -1 xt_TCPMSS: Only works on TCP SYN packets xt_TCPMSS: Only works on TCP SYN packets xt_TCPMSS: Only works on TCP SYN packets xt_TCPMSS: Only works on TCP SYN packets xt_TCPMSS: Only works on TCP SYN packets bridge0: port 2(bridge_slave_1) entered disabled state bridge0: port 1(bridge_slave_0) entered disabled state xt_TCPMSS: Only works on TCP SYN packets xt_TCPMSS: Only works on TCP SYN packets device bridge_slave_1 left promiscuous mode audit: type=1800 audit(1661567694.087:44): pid=12517 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="bus" dev="sda1" ino=13889 res=0 bridge0: port 2(bridge_slave_1) entered disabled state audit: type=1800 audit(1661567694.087:45): pid=12517 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="bus" dev="sda1" ino=13889 res=0 device bridge_slave_0 left promiscuous mode bridge0: port 1(bridge_slave_0) entered disabled state audit: type=1800 audit(1661567694.307:46): pid=12552 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="bus" dev="sda1" ino=14278 res=0 BFS-fs: bfs_fill_super(): loop2 is unclean, continuing BFS-fs: bfs_fill_super(): Inode 0x00000002 corrupted kauditd_printk_skb: 3 callbacks suppressed audit: type=1800 audit(1661567694.947:50): pid=12659 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="bus" dev="sda1" ino=14289 res=0 BFS-fs: bfs_fill_super(): loop2 is unclean, continuing BFS-fs: bfs_fill_super(): Inode 0x00000002 corrupted audit: type=1800 audit(1661567694.957:51): pid=12659 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="bus" dev="sda1" ino=14289 res=0 print_req_error: I/O error, dev loop2, sector 2 Buffer I/O error on dev loop2, logical block 2, async page read print_req_error: I/O error, dev loop2, sector 3 Buffer I/O error on dev loop2, logical block 3, async page read print_req_error: I/O error, dev loop2, sector 4 Buffer I/O error on dev loop2, logical block 4, async page read print_req_error: I/O error, dev loop2, sector 5 Buffer I/O error on dev loop2, logical block 5, async page read print_req_error: I/O error, dev loop2, sector 6 Buffer I/O error on dev loop2, logical block 6, async page read print_req_error: I/O error, dev loop2, sector 7 Buffer I/O error on dev loop2, logical block 7, async page read BFS-fs: bfs_fill_super(): loop2 is unclean, continuing BFS-fs: bfs_fill_super(): Inode 0x00000002 corrupted ISO 9660 Extensions: Microsoft Joliet Level 3 ISOFS: Interleaved files not (yet) supported. ISOFS: File unit size != 0 for ISO file (0). ISOFS: changing to secondary root Bluetooth: hci0 command 0x0401 tx timeout BFS-fs: bfs_fill_super(): loop2 is unclean, continuing BFS-fs: bfs_fill_super(): Inode 0x00000002 corrupted ISO 9660 Extensions: Microsoft Joliet Level 3 ISOFS: Interleaved files not (yet) supported. ISOFS: File unit size != 0 for ISO file (0). ISOFS: changing to secondary root EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1661567696.747:52): pid=12909 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir3208062960/syzkaller.EJScZQ/117/bus" dev="sda1" ino=14280 res=1 EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1661567696.877:53): pid=12924 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir3208062960/syzkaller.EJScZQ/118/bus" dev="sda1" ino=14299 res=1 audit: type=1804 audit(1661567696.947:54): pid=12937 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir3208062960/syzkaller.EJScZQ/119/bus" dev="sda1" ino=13878 res=1 EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1661567697.177:55): pid=12957 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir3208062960/syzkaller.EJScZQ/120/bus" dev="sda1" ino=14308 res=1 audit: type=1804 audit(1661567698.587:56): pid=13138 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir3208062960/syzkaller.EJScZQ/127/bus" dev="sda1" ino=14322 res=1 audit: type=1800 audit(1661567698.587:57): pid=13138 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=14322 res=0 audit: type=1804 audit(1661567699.797:58): pid=13175 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir3208062960/syzkaller.EJScZQ/128/bus" dev="sda1" ino=14343 res=1 audit: type=1800 audit(1661567699.797:59): pid=13175 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=14343 res=0 audit: type=1804 audit(1661567699.797:60): pid=13183 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir3340476508/syzkaller.iMaaMx/165/bus" dev="sda1" ino=14344 res=1 audit: type=1800 audit(1661567699.797:61): pid=13183 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="bus" dev="sda1" ino=14344 res=0 audit: type=1804 audit(1661567700.287:62): pid=13206 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir3208062960/syzkaller.EJScZQ/129/bus" dev="sda1" ino=14343 res=1 audit: type=1800 audit(1661567700.287:63): pid=13206 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=14343 res=0 audit: type=1804 audit(1661567700.497:64): pid=13212 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir3340476508/syzkaller.iMaaMx/166/bus" dev="sda1" ino=14344 res=1 audit: type=1800 audit(1661567700.497:65): pid=13212 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="bus" dev="sda1" ino=14344 res=0 audit: type=1804 audit(1661567701.157:66): pid=13235 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir3208062960/syzkaller.EJScZQ/130/bus" dev="sda1" ino=14330 res=1 audit: type=1800 audit(1661567701.157:67): pid=13235 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=14330 res=0 audit: type=1804 audit(1661567701.467:68): pid=13248 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir3340476508/syzkaller.iMaaMx/167/bus" dev="sda1" ino=14350 res=1