====================================================== WARNING: possible circular locking dependency detected 4.14.291-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.2/9529 is trying to acquire lock: ((&strp->work)){+.+.}, at: [] flush_work+0x88/0x770 kernel/workqueue.c:2887 but task is already holding lock: (sk_lock-AF_INET){+.+.}, at: [] lock_sock include/net/sock.h:1473 [inline] (sk_lock-AF_INET){+.+.}, at: [] kcm_attach net/kcm/kcmsock.c:1390 [inline] (sk_lock-AF_INET){+.+.}, at: [] kcm_attach_ioctl net/kcm/kcmsock.c:1490 [inline] (sk_lock-AF_INET){+.+.}, at: [] kcm_ioctl+0x328/0xfb0 net/kcm/kcmsock.c:1701 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (sk_lock-AF_INET){+.+.}: 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 -> #0 ((&strp->work)){+.+.}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 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 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(sk_lock-AF_INET); lock((&strp->work)); lock(sk_lock-AF_INET); lock((&strp->work)); *** DEADLOCK *** 1 lock held by syz-executor.2/9529: #0: (sk_lock-AF_INET){+.+.}, at: [] lock_sock include/net/sock.h:1473 [inline] #0: (sk_lock-AF_INET){+.+.}, at: [] kcm_attach net/kcm/kcmsock.c:1390 [inline] #0: (sk_lock-AF_INET){+.+.}, at: [] kcm_attach_ioctl net/kcm/kcmsock.c:1490 [inline] #0: (sk_lock-AF_INET){+.+.}, at: [] kcm_ioctl+0x328/0xfb0 net/kcm/kcmsock.c:1701 stack backtrace: CPU: 0 PID: 9529 Comm: syz-executor.2 Not tainted 4.14.291-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 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 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 RIP: 0033:0x7fe2875ff279 RSP: 002b:00007fe285f74168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe287711f80 RCX: 00007fe2875ff279 RDX: 0000000020000280 RSI: 00000000000089e0 RDI: 0000000000000005 RBP: 00007fe2876592e9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffd671531f R14: 00007fe285f74300 R15: 0000000000022000 audit: type=1326 audit(1661807259.257:2): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=9533 comm="syz-executor.1" exe="/root/syz-executor.1" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7f5da7308279 code=0x0 syz-executor.3 (9405) used greatest stack depth: 25120 bytes left EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue F2FS-fs (loop5): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop5): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop5): invalid crc value attempt to access beyond end of device loop5: rw=12288, want=8200, limit=8192 F2FS-fs (loop5): invalid crc value F2FS-fs (loop5): Failed to get valid F2FS checkpoint F2FS-fs (loop5): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop5): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop5): invalid crc value attempt to access beyond end of device loop5: rw=12288, want=8200, limit=8192 F2FS-fs (loop5): invalid crc value F2FS-fs (loop5): Failed to get valid F2FS checkpoint attempt to access beyond end of device loop5: rw=12288, want=8200, limit=8192 attempt to access beyond end of device loop5: rw=12288, want=8200, limit=8192 BTRFS info (device loop1): disabling disk space caching BTRFS info (device loop1): force zlib compression BTRFS info (device loop1): turning on flush-on-commit BTRFS info (device loop1): has skinny extents attempt to access beyond end of device loop5: rw=12288, want=8200, limit=8192 attempt to access beyond end of device loop5: rw=12288, want=8200, limit=8192 attempt to access beyond end of device loop5: rw=12288, want=8200, limit=8192 attempt to access beyond end of device loop5: rw=12288, want=8200, limit=8192 ====================================================== WARNING: the mand mount option is being deprecated and will be removed in v5.15! ====================================================== netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. Zero length message leads to an empty skb overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off. overlayfs: fs on 'file0' does not support file handles, falling back to index=off. attempt to access beyond end of device overlayfs: fs on './file0' does not support file handles, falling back to index=off. attempt to access beyond end of device loop1: rw=2049, want=86, limit=15 loop1: rw=2049, want=47, limit=15 Buffer I/O error on dev loop1, logical block 85, lost async page write attempt to access beyond end of device loop1: rw=2049, want=48, limit=15 attempt to access beyond end of device Buffer I/O error on dev loop1, logical block 47, lost async page write attempt to access beyond end of device loop1: rw=2049, want=90, limit=15 Buffer I/O error on dev loop1, logical block 89, lost async page write loop1: rw=2049, want=49, limit=15 attempt to access beyond end of device loop1: rw=2049, want=93, limit=15 Buffer I/O error on dev loop1, logical block 48, lost async page write Buffer I/O error on dev loop1, logical block 92, lost async page write attempt to access beyond end of device overlayfs: fs on 'file0' does not support file handles, falling back to index=off. loop1: rw=2049, want=50, limit=15 attempt to access beyond end of device Buffer I/O error on dev loop1, logical block 49, lost async page write loop1: rw=2049, want=97, limit=15 Buffer I/O error on dev loop1, logical block 96, lost async page write attempt to access beyond end of device overlayfs: fs on './file0' does not support file handles, falling back to index=off. loop1: rw=2049, want=52, limit=15 attempt to access beyond end of device Buffer I/O error on dev loop1, logical block 51, lost async page write loop1: rw=2049, want=101, limit=15 Buffer I/O error on dev loop1, logical block 100, lost async page write attempt to access beyond end of device attempt to access beyond end of device loop1: rw=2049, want=53, limit=15 Buffer I/O error on dev loop1, logical block 52, lost async page write loop1: rw=2049, want=104, limit=15 attempt to access beyond end of device loop1: rw=2049, want=54, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop1: rw=2049, want=55, limit=15 attempt to access beyond end of device loop1: rw=2049, want=107, limit=15 loop1: rw=2049, want=57, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop1: rw=2049, want=111, limit=15 loop1: rw=2049, want=58, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop1: rw=2049, want=114, limit=15 loop1: rw=2049, want=59, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop1: rw=2049, want=120, limit=15 attempt to access beyond end of device loop1: rw=2049, want=124, limit=15 loop1: rw=2049, want=61, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop1: rw=2049, want=126, limit=15 loop1: rw=2049, want=62, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop1: rw=2049, want=123, limit=15 loop1: rw=2049, want=63, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop1: rw=2049, want=65, limit=15 loop1: rw=2049, want=125, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop1: rw=2049, want=66, limit=15 loop1: rw=2049, want=127, limit=15 attempt to access beyond end of device loop1: rw=2049, want=67, limit=15 attempt to access beyond end of device loop1: rw=2049, want=69, limit=15 attempt to access beyond end of device loop1: rw=2049, want=70, limit=15 attempt to access beyond end of device loop1: rw=2049, want=72, limit=15 attempt to access beyond end of device loop1: rw=2049, want=73, limit=15 attempt to access beyond end of device loop1: rw=2049, want=75, limit=15 attempt to access beyond end of device loop1: rw=2049, want=76, limit=15 attempt to access beyond end of device loop1: rw=2049, want=77, limit=15 attempt to access beyond end of device loop1: rw=2049, want=79, limit=15 attempt to access beyond end of device loop1: rw=2049, want=80, limit=15 attempt to access beyond end of device loop1: rw=2049, want=81, limit=15 attempt to access beyond end of device loop1: rw=2049, want=83, limit=15 attempt to access beyond end of device loop1: rw=2049, want=84, limit=15 attempt to access beyond end of device loop1: rw=2049, want=85, limit=15 attempt to access beyond end of device loop1: rw=2049, want=87, limit=15 attempt to access beyond end of device loop1: rw=2049, want=88, limit=15 attempt to access beyond end of device loop1: rw=2049, want=89, limit=15 attempt to access beyond end of device loop1: rw=2049, want=91, limit=15 attempt to access beyond end of device loop1: rw=2049, want=92, limit=15 attempt to access beyond end of device loop1: rw=2049, want=94, limit=15 attempt to access beyond end of device loop1: rw=2049, want=95, limit=15 attempt to access beyond end of device loop1: rw=2049, want=96, limit=15 attempt to access beyond end of device loop1: rw=2049, want=98, limit=15 attempt to access beyond end of device loop1: rw=2049, want=99, limit=15 attempt to access beyond end of device loop1: rw=2049, want=100, limit=15 attempt to access beyond end of device loop1: rw=2049, want=102, limit=15 attempt to access beyond end of device loop1: rw=2049, want=103, limit=15 attempt to access beyond end of device loop1: rw=2049, want=105, limit=15 attempt to access beyond end of device loop1: rw=2049, want=106, limit=15 attempt to access beyond end of device loop1: rw=2049, want=108, limit=15 attempt to access beyond end of device loop1: rw=2049, want=109, limit=15 attempt to access beyond end of device loop1: rw=2049, want=110, limit=15 attempt to access beyond end of device loop1: rw=2049, want=112, limit=15 attempt to access beyond end of device loop1: rw=2049, want=113, limit=15 attempt to access beyond end of device loop1: rw=2049, want=115, limit=15 attempt to access beyond end of device loop1: rw=2049, want=116, limit=15 attempt to access beyond end of device loop1: rw=2049, want=117, limit=15 attempt to access beyond end of device loop1: rw=2049, want=118, limit=15 attempt to access beyond end of device loop1: rw=2049, want=119, limit=15 attempt to access beyond end of device loop1: rw=2049, want=121, limit=15 attempt to access beyond end of device loop1: rw=2049, want=122, limit=15 attempt to access beyond end of device loop1: rw=1, want=24, limit=15 attempt to access beyond end of device loop1: rw=1, want=25, limit=15 attempt to access beyond end of device loop1: rw=1, want=26, limit=15 attempt to access beyond end of device loop1: rw=1, want=27, limit=15 attempt to access beyond end of device loop1: rw=1, want=28, limit=15 attempt to access beyond end of device loop1: rw=1, want=29, limit=15 attempt to access beyond end of device attempt to access beyond end of device attempt to access beyond end of device loop1: rw=1, want=30, limit=15 loop5: rw=2049, want=33, limit=15 attempt to access beyond end of device loop5: rw=2049, want=66, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop1: rw=1, want=31, limit=15 loop5: rw=2049, want=34, limit=15 loop5: rw=2049, want=70, limit=15 attempt to access beyond end of device attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=35, limit=15 attempt to access beyond end of device loop1: rw=1, want=51, limit=15 loop5: rw=2049, want=74, limit=15 attempt to access beyond end of device loop5: rw=2049, want=37, limit=15 loop1: rw=1, want=56, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=77, limit=15 loop1: rw=1, want=60, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=38, limit=15 attempt to access beyond end of device loop5: rw=2049, want=80, limit=15 attempt to access beyond end of device loop1: rw=1, want=64, limit=15 loop5: rw=2049, want=39, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop1: rw=1, want=68, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=83, limit=15 attempt to access beyond end of device loop5: rw=2049, want=87, limit=15 loop1: rw=1, want=71, limit=15 loop5: rw=2049, want=40, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop1: rw=1, want=74, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=89, limit=15 loop1: rw=1, want=78, limit=15 loop5: rw=2049, want=41, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop1: rw=1, want=82, limit=15 loop5: rw=2049, want=93, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=43, limit=15 loop5: rw=2049, want=99, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=44, limit=15 loop5: rw=2049, want=102, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=46, limit=15 loop5: rw=2049, want=106, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=47, limit=15 loop5: rw=2049, want=109, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=49, limit=15 loop5: rw=2049, want=111, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=50, limit=15 loop5: rw=2049, want=115, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=51, limit=15 loop5: rw=2049, want=119, limit=15 attempt to access beyond end of device loop5: rw=2049, want=53, limit=15 attempt to access beyond end of device loop5: rw=2049, want=54, limit=15 attempt to access beyond end of device loop5: rw=2049, want=55, limit=15 attempt to access beyond end of device loop5: rw=2049, want=57, limit=15 attempt to access beyond end of device loop5: rw=2049, want=58, limit=15 attempt to access beyond end of device loop5: rw=2049, want=60, limit=15 attempt to access beyond end of device loop5: rw=2049, want=62, limit=15 attempt to access beyond end of device loop5: rw=2049, want=63, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=64, limit=15 loop1: rw=2049, want=80, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=65, limit=15 loop1: rw=2049, want=113, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=2049, want=67, limit=15 loop1: rw=2049, want=114, limit=15 attempt to access beyond end of device loop5: rw=2049, want=68, limit=15 attempt to access beyond end of device loop5: rw=2049, want=69, limit=15 attempt to access beyond end of device loop5: rw=2049, want=71, limit=15 attempt to access beyond end of device loop5: rw=2049, want=72, limit=15 attempt to access beyond end of device loop5: rw=2049, want=73, limit=15 attempt to access beyond end of device loop5: rw=2049, want=75, limit=15 attempt to access beyond end of device loop5: rw=2049, want=76, limit=15 attempt to access beyond end of device loop5: rw=2049, want=78, limit=15 attempt to access beyond end of device loop5: rw=2049, want=79, limit=15 attempt to access beyond end of device loop5: rw=2049, want=81, limit=15 attempt to access beyond end of device loop5: rw=2049, want=82, limit=15 attempt to access beyond end of device loop5: rw=2049, want=84, limit=15 attempt to access beyond end of device loop5: rw=2049, want=85, limit=15 attempt to access beyond end of device loop5: rw=2049, want=86, limit=15 attempt to access beyond end of device loop5: rw=2049, want=88, limit=15 attempt to access beyond end of device loop5: rw=2049, want=90, limit=15 attempt to access beyond end of device loop5: rw=2049, want=91, limit=15 attempt to access beyond end of device loop5: rw=2049, want=92, limit=15 attempt to access beyond end of device loop5: rw=2049, want=94, limit=15 attempt to access beyond end of device loop5: rw=2049, want=95, limit=15 attempt to access beyond end of device loop5: rw=2049, want=96, limit=15 attempt to access beyond end of device loop5: rw=2049, want=97, limit=15 attempt to access beyond end of device loop5: rw=2049, want=98, limit=15 attempt to access beyond end of device loop5: rw=2049, want=100, limit=15 attempt to access beyond end of device loop5: rw=2049, want=101, limit=15 attempt to access beyond end of device loop5: rw=2049, want=103, limit=15 attempt to access beyond end of device loop5: rw=2049, want=104, limit=15 attempt to access beyond end of device loop5: rw=2049, want=105, limit=15 attempt to access beyond end of device loop5: rw=2049, want=107, limit=15 attempt to access beyond end of device loop5: rw=2049, want=108, limit=15 attempt to access beyond end of device loop5: rw=2049, want=110, limit=15 attempt to access beyond end of device loop5: rw=2049, want=112, limit=15 attempt to access beyond end of device loop5: rw=2049, want=113, limit=15 attempt to access beyond end of device loop5: rw=2049, want=114, limit=15 attempt to access beyond end of device loop5: rw=2049, want=116, limit=15 attempt to access beyond end of device loop5: rw=2049, want=117, limit=15 attempt to access beyond end of device loop5: rw=2049, want=118, limit=15 attempt to access beyond end of device loop5: rw=2049, want=120, limit=15 attempt to access beyond end of device loop1: rw=2049, want=115, limit=15 attempt to access beyond end of device loop1: rw=2049, want=117, limit=15 attempt to access beyond end of device loop1: rw=2049, want=118, limit=15 attempt to access beyond end of device loop1: rw=2049, want=119, limit=15 attempt to access beyond end of device loop1: rw=2049, want=120, limit=15 attempt to access beyond end of device loop1: rw=2049, want=121, limit=15 attempt to access beyond end of device attempt to access beyond end of device loop5: rw=1, want=32, limit=15 loop1: rw=2049, want=122, limit=15 attempt to access beyond end of device loop5: rw=1, want=36, limit=15 attempt to access beyond end of device loop5: rw=1, want=42, limit=15 attempt to access beyond end of device loop5: rw=1, want=45, limit=15 attempt to access beyond end of device loop5: rw=1, want=48, limit=15 attempt to access beyond end of device loop5: rw=1, want=52, limit=15 attempt to access beyond end of device loop5: rw=1, want=56, limit=15 attempt to access beyond end of device loop5: rw=1, want=59, limit=15 attempt to access beyond end of device loop5: rw=1, want=61, limit=15 attempt to access beyond end of device loop1: rw=1, want=40, limit=15 REISERFS (device loop3): found reiserfs format "3.5" with standard journal TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. attempt to access beyond end of device REISERFS (device loop3): using ordered data mode loop5: rw=2049, want=32, limit=15