====================================================== WARNING: possible circular locking dependency detected 4.14.290-syzkaller #0 Not tainted ------------------------------------------------------ kworker/u4:2/26 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:2/26: #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: 26 Comm: kworker/u4:2 Not tainted 4.14.290-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 syz-executor.4 (11682) used greatest stack depth: 24832 bytes left ldm_validate_privheads(): Disk read failed. loop0: p2 < > p4 loop0: partition table partially beyond EOD, truncated loop0: p4 size 2097152 extends beyond EOD, truncated EXT4-fs (loop1): Unrecognized mount option "noöX=ƒHl" or missing value syz-executor.5 (11818) used greatest stack depth: 23496 bytes left loop_reread_partitions: partition scan of loop0 () failed (rc=-16) print_req_error: I/O error, dev loop0, sector 0 EXT4-fs (loop1): Unrecognized mount option "noöX=ƒHl" or missing value print_req_error: I/O error, dev loop0, sector 0 print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0p2, logical block 0, async page read print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0p2, logical block 0, async page read print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0p2, logical block 0, async page read print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0p2, logical block 0, async page read EXT4-fs (loop1): Unrecognized mount option "noöX=ƒHl" or missing value loop_reread_partitions: partition scan of loop0 () failed (rc=-16) EXT4-fs (loop1): Unrecognized mount option "noöX=ƒHl" or missing value print_req_error: I/O error, dev loop1, sector 0 Buffer I/O error on dev loop1, logical block 0, async page read print_req_error: I/O error, dev loop1, sector 4 Buffer I/O error on dev loop1, logical block 2, async page read print_req_error: I/O error, dev loop1, sector 6 Buffer I/O error on dev loop1, logical block 3, async page read print_req_error: I/O error, dev loop1, sector 0 Buffer I/O error on dev loop1, logical block 0, async page read Buffer I/O error on dev loop1, logical block 2, async page read Buffer I/O error on dev loop1, logical block 3, async page read EXT4-fs (loop1): Unrecognized mount option "noöX=ƒHl" or missing value ldm_validate_privheads(): Disk read failed. loop5: p2 < > p4 loop5: partition table partially beyond EOD, truncated ldm_validate_privheads(): Disk read failed. loop2: p2 < > p4 loop2: partition table partially beyond EOD, truncated loop5: p4 size 2097152 extends beyond EOD, truncated loop2: p4 size 2097152 extends beyond EOD, truncated loop_reread_partitions: partition scan of loop5 () failed (rc=-16) unregister_netdevice: waiting for ip6gre0 to become free. Usage count = -1 ldm_validate_privheads(): Disk read failed. loop2: p2 < > p4 loop2: partition table partially beyond EOD, truncated loop2: p4 size 2097152 extends beyond EOD, truncated kvm: emulating exchange as write EXT4-fs (loop1): VFS: Can't find ext4 filesystem ldm_validate_privheads(): Disk read failed. loop2: p2 < > p4 loop2: partition table partially beyond EOD, truncated loop2: p4 size 2097152 extends beyond EOD, truncated EXT4-fs (loop1): VFS: Can't find ext4 filesystem EXT4-fs (loop1): VFS: Can't find ext4 filesystem EXT4-fs (loop4): VFS: Can't find ext4 filesystem EXT4-fs (loop2): VFS: Can't find ext4 filesystem EXT4-fs (loop1): VFS: Can't find ext4 filesystem print_req_error: 146 callbacks suppressed print_req_error: I/O error, dev loop5, sector 0 print_req_error: I/O error, dev loop5, sector 0 print_req_error: I/O error, dev loop5, sector 0 buffer_io_error: 126 callbacks suppressed Buffer I/O error on dev loop5p4, logical block 0, async page read print_req_error: I/O error, dev loop5, sector 1 Buffer I/O error on dev loop5p4, logical block 1, async page read print_req_error: I/O error, dev loop5, sector 2 Buffer I/O error on dev loop5p4, logical block 2, async page read print_req_error: I/O error, dev loop5, sector 3 Buffer I/O error on dev loop5p4, logical block 3, async page read print_req_error: I/O error, dev loop5, sector 4 Buffer I/O error on dev loop5p4, logical block 4, async page read print_req_error: I/O error, dev loop5, sector 0 Buffer I/O error on dev loop5p2, logical block 0, async page read print_req_error: I/O error, dev loop5, sector 0 Buffer I/O error on dev loop5p2, logical block 0, async page read print_req_error: I/O error, dev loop5, sector 0 Buffer I/O error on dev loop5p2, logical block 0, async page read Buffer I/O error on dev loop5p2, logical block 0, async page read Buffer I/O error on dev loop5p2, logical block 0, async page read FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 1 FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 1 CPU: 1 PID: 12717 Comm: syz-executor.2 Not tainted 4.14.290-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 1 __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10a/0x149 lib/fault-inject.c:149 should_fail_alloc_page mm/page_alloc.c:2898 [inline] prepare_alloc_pages mm/page_alloc.c:4131 [inline] __alloc_pages_nodemask+0x22c/0x2720 mm/page_alloc.c:4179 alloc_pages_current+0x155/0x260 mm/mempolicy.c:2107 alloc_pages include/linux/gfp.h:520 [inline] skb_page_frag_refill+0x1bf/0x490 net/core/sock.c:2221 tun_build_skb drivers/net/tun.c:1309 [inline] tun_get_user+0x1e64/0x4710 drivers/net/tun.c:1481 tun_chr_write_iter+0xe8/0x1f0 drivers/net/tun.c:1625 call_write_iter include/linux/fs.h:1780 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7fa94f1c2d8f RSP: 002b:00007fa94db85130 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa94f322f80 RCX: 00007fa94f1c2d8f RDX: 0000000000000036 RSI: 0000000020000000 RDI: 00000000000000c8 RBP: 00007fa94db851d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000036 R11: 0000000000000293 R12: 0000000000000001 R13: 00007ffcb2012a0f R14: 00007fa94db85300 R15: 0000000000022000 CPU: 0 PID: 12732 Comm: syz-executor.1 Not tainted 4.14.290-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10a/0x149 lib/fault-inject.c:149 should_fail_alloc_page mm/page_alloc.c:2898 [inline] prepare_alloc_pages mm/page_alloc.c:4131 [inline] __alloc_pages_nodemask+0x22c/0x2720 mm/page_alloc.c:4179 alloc_pages_current+0x155/0x260 mm/mempolicy.c:2107 alloc_pages include/linux/gfp.h:520 [inline] skb_page_frag_refill+0x1bf/0x490 net/core/sock.c:2221 tun_build_skb drivers/net/tun.c:1309 [inline] tun_get_user+0x1e64/0x4710 drivers/net/tun.c:1481 tun_chr_write_iter+0xe8/0x1f0 drivers/net/tun.c:1625 call_write_iter include/linux/fs.h:1780 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f98f0defd8f RSP: 002b:00007f98ef7b2130 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f98f0f4ff80 RCX: 00007f98f0defd8f RDX: 0000000000000036 RSI: 0000000020000000 RDI: 00000000000000c8 RBP: 00007f98ef7b21d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000036 R11: 0000000000000293 R12: 0000000000000001 R13: 00007fff1d8627df R14: 00007f98ef7b2300 R15: 0000000000022000 CPU: 0 PID: 12718 Comm: syz-executor.4 Not tainted 4.14.290-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10a/0x149 lib/fault-inject.c:149 should_fail_alloc_page mm/page_alloc.c:2898 [inline] prepare_alloc_pages mm/page_alloc.c:4131 [inline] __alloc_pages_nodemask+0x22c/0x2720 mm/page_alloc.c:4179 alloc_pages_current+0x155/0x260 mm/mempolicy.c:2107 alloc_pages include/linux/gfp.h:520 [inline] skb_page_frag_refill+0x1bf/0x490 net/core/sock.c:2221 tun_build_skb drivers/net/tun.c:1309 [inline] tun_get_user+0x1e64/0x4710 drivers/net/tun.c:1481 tun_chr_write_iter+0xe8/0x1f0 drivers/net/tun.c:1625 call_write_iter include/linux/fs.h:1780 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f25b050fd8f RSP: 002b:00007f25aeed2130 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f25b066ff80 RCX: 00007f25b050fd8f RDX: 0000000000000036 RSI: 0000000020000000 RDI: 00000000000000c8 RBP: 00007f25aeed21d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000036 R11: 0000000000000293 R12: 0000000000000001 R13: 00007ffcb01a7fef R14: 00007f25aeed2300 R15: 0000000000022000 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 PID: 12767 Comm: syz-executor.2 Not tainted 4.14.290-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10a/0x149 lib/fault-inject.c:149 should_failslab+0xd6/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] kmem_cache_alloc+0x40/0x3c0 mm/slab.c:3550 __build_skb+0x2e/0x2d0 net/core/skbuff.c:281 build_skb+0x1a/0x160 net/core/skbuff.c:312 tun_build_skb drivers/net/tun.c:1370 [inline] tun_get_user+0x2482/0x4710 drivers/net/tun.c:1481 tun_chr_write_iter+0xe8/0x1f0 drivers/net/tun.c:1625 call_write_iter include/linux/fs.h:1780 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7fa94f1c2d8f RSP: 002b:00007fa94db85130 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa94f322f80 RCX: 00007fa94f1c2d8f RDX: 0000000000000036 RSI: 0000000020000000 RDI: 00000000000000c8 RBP: 00007fa94db851d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000036 R11: 0000000000000293 R12: 0000000000000001 R13: 00007ffcb2012a0f R14: 00007fa94db85300 R15: 0000000000022000 CPU: 1 PID: 12769 Comm: syz-executor.4 Not tainted 4.14.290-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10a/0x149 lib/fault-inject.c:149 should_failslab+0xd6/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] kmem_cache_alloc+0x40/0x3c0 mm/slab.c:3550 __build_skb+0x2e/0x2d0 net/core/skbuff.c:281 build_skb+0x1a/0x160 net/core/skbuff.c:312 tun_build_skb drivers/net/tun.c:1370 [inline] tun_get_user+0x2482/0x4710 drivers/net/tun.c:1481 tun_chr_write_iter+0xe8/0x1f0 drivers/net/tun.c:1625 call_write_iter include/linux/fs.h:1780 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582