overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. ====================================================== WARNING: possible circular locking dependency detected 4.19.211-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.4/17090 is trying to acquire lock: 00000000685dfff9 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] 00000000685dfff9 (sb_writers#3){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 but task is already holding lock: 000000001bd4510d (&iint->mutex){+.+.}, at: process_measurement+0x316/0x1440 security/integrity/ima/ima_main.c:224 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&iint->mutex){+.+.}: overlayfs: failed to resolve './file0': -2 process_measurement+0x316/0x1440 security/integrity/ima/ima_main.c:224 ima_file_check+0xb9/0x100 security/integrity/ima/ima_main.c:391 do_last fs/namei.c:3425 [inline] path_openat+0x7e4/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (sb_writers#3){.+.+}: percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:36 [inline] percpu_down_read include/linux/percpu-rwsem.h:59 [inline] __sb_start_write+0x6e/0x2a0 fs/super.c:1366 sb_start_write include/linux/fs.h:1579 [inline] mnt_want_write+0x3a/0xb0 fs/namespace.c:360 ovl_maybe_copy_up+0x11f/0x190 fs/overlayfs/copy_up.c:888 ovl_open+0xb4/0x260 fs/overlayfs/file.c:126 do_dentry_open+0x4aa/0x1160 fs/open.c:796 vfs_open fs/open.c:902 [inline] dentry_open+0x132/0x1d0 fs/open.c:918 ima_calc_file_hash+0x628/0x8a0 security/integrity/ima/ima_crypto.c:435 ima_collect_measurement+0x4c4/0x570 security/integrity/ima/ima_api.c:231 process_measurement+0xddd/0x1440 security/integrity/ima/ima_main.c:284 ima_file_check+0xb9/0x100 security/integrity/ima/ima_main.c:391 do_last fs/namei.c:3425 [inline] path_openat+0x7e4/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&iint->mutex); lock(sb_writers#3); lock(&iint->mutex); lock(sb_writers#3); *** DEADLOCK *** 1 lock held by syz-executor.4/17090: #0: 000000001bd4510d (&iint->mutex){+.+.}, at: process_measurement+0x316/0x1440 security/integrity/ima/ima_main.c:224 stack backtrace: CPU: 1 PID: 17090 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 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 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:36 [inline] percpu_down_read include/linux/percpu-rwsem.h:59 [inline] __sb_start_write+0x6e/0x2a0 fs/super.c:1366 sb_start_write include/linux/fs.h:1579 [inline] mnt_want_write+0x3a/0xb0 fs/namespace.c:360 ovl_maybe_copy_up+0x11f/0x190 fs/overlayfs/copy_up.c:888 ovl_open+0xb4/0x260 fs/overlayfs/file.c:126 do_dentry_open+0x4aa/0x1160 fs/open.c:796 vfs_open fs/open.c:902 [inline] dentry_open+0x132/0x1d0 fs/open.c:918 ima_calc_file_hash+0x628/0x8a0 security/integrity/ima/ima_crypto.c:435 ima_collect_measurement+0x4c4/0x570 security/integrity/ima/ima_api.c:231 process_measurement+0xddd/0x1440 security/integrity/ima/ima_main.c:284 ima_file_check+0xb9/0x100 security/integrity/ima/ima_main.c:391 do_last fs/namei.c:3425 [inline] path_openat+0x7e4/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 overlayfs: failed to resolve './file0': -2 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f525b79d5a9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f525a110168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f525b8bdf80 RCX: 00007f525b79d5a9 RDX: 0000000000000000 RSI: 000000000000000f RDI: 0000000020000140 RBP: 00007f525b7f8580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd6f1215f R14: 00007f525a110300 R15: 0000000000022000 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 17103 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0xf lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0x10 mm/slab_common.c:1590 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] __do_kmalloc mm/slab.c:3725 [inline] __kmalloc+0x2ab/0x3c0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] kzalloc include/linux/slab.h:709 [inline] kobject_get_path+0xbf/0x240 lib/kobject.c:171 kobject_uevent_env+0x25c/0x1480 lib/kobject_uevent.c:527 loop_set_fd drivers/block/loop.c:1005 [inline] lo_ioctl+0xff9/0x20e0 drivers/block/loop.c:1576 __blkdev_driver_ioctl block/ioctl.c:303 [inline] blkdev_ioctl+0x5cb/0x1a80 block/ioctl.c:601 block_ioctl+0xe9/0x130 fs/block_dev.c:1906 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc331286367 Code: 3c 1c 48 f7 d8 49 39 c4 72 b8 e8 f4 57 02 00 85 c0 78 bd 48 83 c4 08 4c 89 e0 5b 41 5c c3 0f 1f 44 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc32fbf8f28 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc331286367 RDX: 0000000000000004 RSI: 0000000000004c00 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000000 R09: 00007fc32fbf91d0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000200001c0 R14: 0000000000000000 R15: 00007fc3312d0a20 overlayfs: failed to resolve './file0': -2 hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: failed to resolve './file0': -2 overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: failed to resolve './file0': -2 audit: type=1800 audit(1665766119.161:79): pid=17252 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.4" name="file1" dev="sda1" ino=14126 res=0 hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. audit: type=1800 audit(1665766119.961:80): pid=17336 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file1" dev="sda1" ino=14029 res=0 overlayfs: failed to resolve './file1': -2 hfsplus: creator requires a 4 character value overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. audit: type=1800 audit(1665766120.251:81): pid=17390 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file1" dev="overlay" ino=14125 res=0 overlayfs: failed to resolve './file1': -2 hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: failed to resolve './file1': -2 overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: failed to resolve './file0': -2 overlayfs: failed to resolve './file0': -2 hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options hfsplus: creator requires a 4 character value overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: unable to parse mount options overlayfs: failed to resolve './file1': -2 overlayfs: failed to resolve './file1': -2 overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: failed to resolve './file0': -2 overlayfs: failed to resolve './file0': -2 hfsplus: creator requires a 4 character value overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: failed to resolve './file0': -2 hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. Bluetooth: hci3: command 0x0406 tx timeout Bluetooth: hci2: command 0x0406 tx timeout Bluetooth: hci0: command 0x0406 tx timeout Bluetooth: hci4: command 0x0406 tx timeout Bluetooth: hci5: command 0x0406 tx timeout overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. Bluetooth: hci1: command 0x0406 tx timeout overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: missing 'lowerdir' overlayfs: failed to resolve './file0': -2 overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: missing 'lowerdir' overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: failed to resolve './file0': -2 overlayfs: failed to resolve './file0': -2 audit: type=1800 audit(1665766122.691:82): pid=17689 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file1" dev="sda1" ino=14185 res=0 hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: missing 'lowerdir' overlayfs: missing 'lowerdir' audit: type=1800 audit(1665766122.901:83): pid=17714 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file1" dev="sda1" ino=14142 res=0 overlayfs: missing 'lowerdir' overlayfs: missing 'lowerdir' overlayfs: missing 'lowerdir' overlayfs: failed to resolve './file0': -2 hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: failed to resolve './file0': -2 audit: type=1800 audit(1665766123.081:84): pid=17755 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file1" dev="sda1" ino=14125 res=0 overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: missing 'lowerdir' overlayfs: failed to resolve './file1': -2 audit: type=1800 audit(1665766123.531:85): pid=17798 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file1" dev="sda1" ino=14094 res=0 overlayfs: failed to resolve './file0': -2 overlayfs: option "workdir=./bus" is useless in a non-upper mount, ignore overlayfs: at least 2 lowerdir are needed while upperdir nonexistent hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: failed to resolve './file1': -2 audit: type=1800 audit(1665766123.921:86): pid=17854 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file1" dev="sda1" ino=14127 res=0 overlayfs: option "workdir=./bus" is useless in a non-upper mount, ignore overlayfs: at least 2 lowerdir are needed while upperdir nonexistent hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: option "workdir=./bus" is useless in a non-upper mount, ignore overlayfs: at least 2 lowerdir are needed while upperdir nonexistent overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. hfsplus: creator requires a 4 character value audit: type=1800 audit(1665766124.341:87): pid=17904 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file1" dev="sda1" ino=14662 res=0 hfsplus: unable to parse mount options overlayfs: failed to resolve './file0': -2 audit: type=1800 audit(1665766124.481:88): pid=17937 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file1" dev="sda1" ino=14650 res=0 overlayfs: failed to resolve './file1': -2 overlayfs: missing 'lowerdir' overlayfs: option "workdir=./bus" is useless in a non-upper mount, ignore overlayfs: failed to resolve './file0': -2 overlayfs: missing 'lowerdir' audit: type=1800 audit(1665766124.581:89): pid=17947 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file1" dev="sda1" ino=14252 res=0 overlayfs: option "workdir=./bus" is useless in a non-upper mount, ignore overlayfs: failed to resolve './file0': -2 overlayfs: missing 'lowerdir' audit: type=1800 audit(1665766124.711:90): pid=17957 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file1" dev="sda1" ino=14661 res=0 overlayfs: failed to resolve './file0': -2 hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: failed to resolve './file1': -2 overlayfs: failed to resolve './file1': -2 overlayfs: failed to resolve './file0': -2 overlayfs: failed to resolve './file0': -2 hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: failed to resolve './file0': -2 overlayfs: missing 'lowerdir' overlayfs: option "workdir=./bus" is useless in a non-upper mount, ignore overlayfs: missing 'lowerdir' overlayfs: failed to resolve './file0': -2 hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: missing 'lowerdir' hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: missing 'workdir' overlayfs: missing 'workdir' overlayfs: failed to resolve './file0': -2 hfsplus: creator requires a 4 character value hfsplus: unable to parse mount options