overlayfs: unrecognized mount option "" or missing value ====================================================== WARNING: possible circular locking dependency detected 4.19.195-syzkaller #0 Not tainted ------------------------------------------------------ kworker/u4:6/9471 is trying to acquire lock: 000000002d02e547 ((wq_completion)"events"){+.+.}, at: flush_workqueue+0xe8/0x13e0 kernel/workqueue.c:2658 but task is already holding lock: 000000007bff8340 (pernet_ops_rwsem){++++}, at: cleanup_net+0xa8/0x8b0 net/core/net_namespace.c:520 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 (pernet_ops_rwsem){++++}: unregister_netdevice_notifier+0x7b/0x330 net/core/dev.c:1708 raw_release+0x58/0x820 net/can/raw.c:358 __sock_release+0xcd/0x2a0 net/socket.c:579 sock_close+0x15/0x20 net/socket.c:1140 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #2 (&sb->s_type->i_mutex_key#13){+.+.}: inode_lock include/linux/fs.h:748 [inline] __sock_release+0x86/0x2a0 net/socket.c:578 sock_close+0x15/0x20 net/socket.c:1140 __fput+0x2ce/0x890 fs/file_table.c:278 delayed_fput+0x56/0x70 fs/file_table.c:304 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 -> #1 ((delayed_fput_work).work){+.+.}: worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 -> #0 ((wq_completion)"events"){+.+.}: flush_workqueue+0x117/0x13e0 kernel/workqueue.c:2661 flush_scheduled_work include/linux/workqueue.h:599 [inline] tipc_exit_net+0x38/0x60 net/tipc/core.c:100 ops_exit_list+0xa5/0x150 net/core/net_namespace.c:153 overlayfs: unrecognized mount option "" or missing value cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:553 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 other info that might help us debug this: Chain exists of: (wq_completion)"events" --> &sb->s_type->i_mutex_key#13 --> pernet_ops_rwsem Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(pernet_ops_rwsem); lock(&sb->s_type->i_mutex_key#13); lock(pernet_ops_rwsem); lock((wq_completion)"events"); *** DEADLOCK *** 3 locks held by kworker/u4:6/9471: #0: 00000000cce45646 ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 0000000064a77de2 (net_cleanup_work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 #2: 000000007bff8340 (pernet_ops_rwsem){++++}, at: cleanup_net+0xa8/0x8b0 net/core/net_namespace.c:520 stack backtrace: CPU: 1 PID: 9471 Comm: kworker/u4:6 Not tainted 4.19.195-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1222 check_prev_add kernel/locking/lockdep.c:1866 [inline] check_prevs_add kernel/locking/lockdep.c:1979 [inline] validate_chain kernel/locking/lockdep.c:2420 [inline] __lock_acquire+0x30c9/0x3ff0 kernel/locking/lockdep.c:3416 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 flush_workqueue+0x117/0x13e0 kernel/workqueue.c:2661 flush_scheduled_work include/linux/workqueue.h:599 [inline] tipc_exit_net+0x38/0x60 net/tipc/core.c:100 ops_exit_list+0xa5/0x150 net/core/net_namespace.c:153 cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:553 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 connect: ipv4 mapped 9pnet: Insufficient options for proto=fd overlayfs: unrecognized mount option "" or missing value 9pnet: Insufficient options for proto=fd 9pnet: Unknown protocol version 9 9pnet: Unknown protocol version 9 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue team0: Device ipvlan2 is already an upper device of the team interface netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1624828720.264:9): pid=10312 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/14/bus" dev="sda1" ino=13983 res=1 nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. audit: type=1804 audit(1624828720.344:10): pid=10313 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir860807521/syzkaller.4C3YsX/14/bus" dev="sda1" ino=13984 res=1 F2FS-fs (loop5): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop5): Can't find valid F2FS filesystem in 2th superblock audit: type=1804 audit(1624828720.344:11): pid=10316 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/14/bus" dev="sda1" ino=13983 res=1 F2FS-fs (loop5): invalid crc value attempt to access beyond end of device loop5: rw=12288, want=8200, limit=8192 F2FS-fs (loop5): Failed to get valid F2FS checkpoint audit: type=1804 audit(1624828720.514:12): pid=10313 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir860807521/syzkaller.4C3YsX/14/bus" dev="sda1" ino=13984 res=1 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 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue SQUASHFS error: xz decompression failed, data probably corrupt attempt to access beyond end of device SQUASHFS error: squashfs_read_data failed to read block 0x106 loop5: rw=12288, want=8200, limit=8192 SQUASHFS error: Unable to read metadata cache entry [106] F2FS-fs (loop5): Failed to get valid F2FS checkpoint SQUASHFS error: Unable to read inode 0x11e SQUASHFS error: xz decompression failed, data probably corrupt EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue SQUASHFS error: squashfs_read_data failed to read block 0x106 SQUASHFS error: Unable to read metadata cache entry [106] SQUASHFS error: Unable to read inode 0x11e audit: type=1804 audit(1624828721.194:13): pid=10316 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/14/bus" dev="sda1" ino=13983 res=1 audit: type=1804 audit(1624828721.334:14): pid=10397 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/14/bus" dev="sda1" ino=13983 res=1 audit: type=1804 audit(1624828721.364:15): pid=10400 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/14/bus" dev="sda1" ino=13983 res=1 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1624828721.484:16): pid=10411 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/15/bus" dev="sda1" ino=13965 res=1 F2FS-fs (loop5): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop5): Can't find valid F2FS filesystem in 2th superblock EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue attempt to access beyond end of device audit: type=1804 audit(1624828721.554:17): pid=10419 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/15/bus" dev="sda1" ino=13965 res=1 loop5: rw=12288, want=8200, limit=8192 attempt to access beyond end of device loop5: rw=12288, want=8200, limit=8192 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. audit: type=1800 audit(1624828722.144:18): pid=10501 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=13933 res=0 wlan1: Trigger new scan to find an IBSS to join EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue 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 wlan1: Creating new IBSS network, BSSID 66:4b:47:d2:59:24 ieee802154 phy0 wpan0: encryption failed: -22 ieee802154 phy1 wpan1: encryption failed: -22 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue 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 EXT4-fs (loop2): 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 *** Guest State *** CR0: actual=0x0000000000000030, shadow=0x0000000060000010, gh_mask=fffffffffffffff7 CR4: actual=0x0000000000002040, shadow=0x0000000000000000, gh_mask=ffffffffffffe871 CR3 = 0x0000000000000000 RSP = 0x00000000000204cb RIP = 0x0000000000000000 RFLAGS=0x001a2203 DR7 = 0x0000000000000400 Sysenter RSP=0000000000000000 CS:RIP=0000:0000000000000000 CS: sel=0xf000, attr=0x0009b, limit=0x0000ffff, base=0x00000000ffff0000 DS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue SS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 ES: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue FS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 GS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 GDTR: limit=0x0000ffff, base=0x0000000000000000 LDTR: sel=0x0000, attr=0x00082, limit=0x0000ffff, base=0x0000000000000000 IDTR: limit=0x0000ffff, base=0x0000000000000000 TR: sel=0x0000, attr=0x0008b, limit=0x0000ffff, base=0x0000000000000000 EFER = 0x0000000000000000 PAT = 0x0007040600070406 DebugCtl = 0x0000000000000000 DebugExceptions = 0x0000000000000000 Interruptibility = 00000000 ActivityState = 00000000 *** Host State *** RIP = 0xffffffff811a98bf RSP = 0xffff8880443e78c0 CS=0010 SS=0018 DS=0000 ES=0000 FS=0000 GS=0000 TR=0040 FSBase=00007f44b756a700 GSBase=ffff8880ba100000 TRBase=fffffe0000034000 GDTBase=fffffe0000032000 IDTBase=fffffe0000000000 CR0=0000000080050033 CR3=000000009f9cc000 CR4=00000000001426e0 Sysenter RSP=fffffe0000034000 CS:RIP=0010:ffffffff88201290 EFER = 0x0000000000000d01 PAT = 0x0407050600070106 *** Control State *** kauditd_printk_skb: 11 callbacks suppressed audit: type=1804 audit(1624828726.444:30): pid=10768 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/18/bus" dev="sda1" ino=13962 res=1 PinBased=0000003f CPUBased=b5a06dfa SecondaryExec=000000e3 EntryControls=0000d1ff ExitControls=002fefff ExceptionBitmap=00060042 PFECmask=00000000 PFECmatch=00000000 VMEntry: intr_info=80000000 errcode=00000000 ilen=00000000 audit: type=1804 audit(1624828726.504:31): pid=10769 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/18/bus" dev="sda1" ino=13962 res=1 VMExit: intr_info=00000000 errcode=00000000 ilen=00000000 reason=80000021 qualification=0000000000000000 IDTVectoring: info=00000000 errcode=00000000 f2fs_msg: 22 callbacks suppressed F2FS-fs (loop5): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop5): Can't find valid F2FS filesystem in 2th superblock TSC Offset = 0xffffff949c7592de TPR Threshold = 0x00 EPT pointer = 0x00000000b537e01e F2FS-fs (loop5): invalid crc value attempt to access beyond end of device loop5: rw=12288, want=8200, limit=8192 Virtual processor ID = 0x0001 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): Failed to get valid F2FS checkpoint EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1624828727.804:32): pid=10869 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/19/bus" dev="sda1" ino=13962 res=1 audit: type=1804 audit(1624828727.874:33): pid=10871 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/19/bus" dev="sda1" ino=13962 res=1 F2FS-fs (loop5): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop5): Can't find valid F2FS filesystem in 2th superblock 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 EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1624828729.044:34): pid=10946 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/20/bus" dev="sda1" ino=13962 res=1 audit: type=1804 audit(1624828729.134:35): pid=10948 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir424284480/syzkaller.Vsm9c2/20/bus" dev="sda1" ino=13962 res=1 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