./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3144946309 <...> Warning: Permanently added '10.128.10.31' (ECDSA) to the list of known hosts. execve("./syz-executor3144946309", ["./syz-executor3144946309"], 0x7ffca719b3c0 /* 10 vars */) = 0 brk(NULL) = 0x555556a3c000 brk(0x555556a3cc40) = 0x555556a3cc40 arch_prctl(ARCH_SET_FS, 0x555556a3c300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor3144946309", 4096) = 28 brk(0x555556a5dc40) = 0x555556a5dc40 brk(0x555556a5e000) = 0x555556a5e000 mprotect(0x7fcd09864000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 open("./file0", O_RDWR|O_CREAT|0x3c, 000) = 3 memfd_create("syzkaller", 0) = 4 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcd01200000 write(4, "\xb5\x84\x31\x7b\xb6\x84\x31\x7b\xb7\x84\x31\x7b\xb8\x84\x31\x7b\xb9\x84\x31\x7b\xba\x84\x31\x7b\xbb\x84\x31\x7b\xbc\x84\x31\x7b\xbd\x84\x31\x7b\xbe\x84\x31\x7b\xbf\x84\x31\x7b\xc0\x84\x31\x7b\xc1\x84\x31\x7b\xc2\x84\x31\x7b\xc3\x84\x31\x7b\xc4\x84\x31\x7b\xc5\x84\x31\x7b\xc6\x84\x31\x7b\xc7\x84\x31\x7b\xc8\x84\x31\x7b\xc9\x84\x31\x7b\xca\x84\x31\x7b\xcb\x84\x31\x7b\xcc\x84\x31\x7b\xcd\x84\x31\x7b"..., 65536) = 65536 munmap(0x7fcd01200000, 65536) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 5 ioctl(5, LOOP_SET_FD, 4) = 0 close(4) = 0 mkdir("./file0", 0777) = -1 EEXIST (File exists) mount("/dev/loop0", "./file0", "sysv", 0, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = -1 ENOTDIR (Not a directory) ioctl(5, LOOP_CLR_FD) = 0 close(5) = 0 syzkaller login: [ 56.607380][ T5297] loop0: detected capacity change from 0 to 128 [ 56.618473][ T5297] VFS: Found a Xenix FS (block size = 512) on device loop0 [ 56.632565][ T5297] syz-executor314: attempt to access beyond end of device [ 56.632565][ T5297] loop0: rw=0, sector=3245512, nr_sectors = 1 limit=128 [ 56.646909][ T5297] Buffer I/O error on dev loop0, logical block 3245512, async page read [ 56.655585][ T5297] syz-executor314: attempt to access beyond end of device [ 56.655585][ T5297] loop0: rw=0, sector=8767867, nr_sectors = 1 limit=128 [ 56.670593][ T5297] Buffer I/O error on dev loop0, logical block 8767867, async page read [ 56.679310][ T5297] syz-executor314: attempt to access beyond end of device [ 56.679310][ T5297] loop0: rw=0, sector=13269809, nr_sectors = 1 limit=128 [ 56.693341][ T5297] Buffer I/O error on dev loop0, logical block 13269809, async page read [ 56.701967][ T5297] syz-executor314: attempt to access beyond end of device [ 56.701967][ T5297] loop0: rw=0, sector=8073605, nr_sectors = 1 limit=128 [ 56.716024][ T5297] Buffer I/O error on dev loop0, logical block 8073605, async page read [ 56.724437][ T5297] syz-executor314: attempt to access beyond end of device [ 56.724437][ T5297] loop0: rw=0, sector=3245515, nr_sectors = 1 limit=128 [ 56.738707][ T5297] Buffer I/O error on dev loop0, logical block 3245515, async page read [ 56.747221][ T5297] syz-executor314: attempt to access beyond end of device [ 56.747221][ T5297] loop0: rw=0, sector=8768635, nr_sectors = 1 limit=128 [ 56.761224][ T5297] Buffer I/O error on dev loop0, logical block 8768635, async page read [ 56.769696][ T5297] syz-executor314: attempt to access beyond end of device [ 56.769696][ T5297] loop0: rw=0, sector=13466417, nr_sectors = 1 limit=128 [ 56.783742][ T5297] Buffer I/O error on dev loop0, logical block 13466417, async page read [ 56.792256][ T5297] syz-executor314: attempt to access beyond end of device [ 56.792256][ T5297] loop0: rw=0, sector=8073605, nr_sectors = 1 limit=128 [ 56.806699][ T5297] Buffer I/O error on dev loop0, logical block 8073605, async page read [ 56.815314][ T5297] BUG: sleeping function called from invalid context at fs/buffer.c:1331 [ 56.823976][ T5297] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5297, name: syz-executor314 [ 56.833602][ T5297] preempt_count: 1, expected: 0 [ 56.838473][ T5297] RCU nest depth: 0, expected: 0 [ 56.843487][ T5297] 3 locks held by syz-executor314/5297: [ 56.849048][ T5297] #0: ffff88802a7b3f20 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x3ab/0x18b0 [ 56.858983][ T5297] #1: ffff888076a08328 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: page_cache_ra_unbounded+0x153/0x5e0 [ 56.870311][ T5297] #2: ffffffff8cb64d98 (pointers_lock){.+.+}-{2:2}, at: get_block+0x16b/0x1580 [ 56.879427][ T5297] Preemption disabled at: [ 56.879446][ T5297] [<0000000000000000>] 0x0 [ 56.888240][ T5297] CPU: 1 PID: 5297 Comm: syz-executor314 Not tainted 6.1.0-rc6-next-20221125-syzkaller #0 [ 56.898122][ T5297] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 56.908173][ T5297] Call Trace: [ 56.911450][ T5297] [ 56.914391][ T5297] dump_stack_lvl+0xd1/0x138 [ 56.918989][ T5297] __might_resched.cold+0x222/0x26b [ 56.924280][ T5297] __bread_gfp+0x40/0x330 [ 56.928622][ T5297] get_branch+0x2cd/0x640 [ 56.932952][ T5297] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 56.938965][ T5297] get_block+0x188/0x1580 [ 56.943317][ T5297] ? find_held_lock+0x2d/0x110 [ 56.948112][ T5297] ? free_branches+0x3d0/0x3d0 [ 56.952932][ T5297] ? create_page_buffers+0x440/0x640 [ 56.958254][ T5297] ? lock_downgrade+0x6e0/0x6e0 [ 56.963161][ T5297] ? folio_flags.constprop.0+0x53/0x150 [ 56.968834][ T5297] ? create_empty_buffers+0x37d/0xf30 [ 56.974261][ T5297] ? do_raw_spin_unlock+0x175/0x230 [ 56.979490][ T5297] block_read_full_folio+0x35b/0x9d0 [ 56.984830][ T5297] ? free_branches+0x3d0/0x3d0 [ 56.989620][ T5297] ? create_page_buffers+0x640/0x640 [ 56.994955][ T5297] ? folio_add_lru+0x345/0x680 [ 56.999753][ T5297] ? sysv_bmap+0x30/0x30 [ 57.004022][ T5297] read_pages+0x9fb/0xd40 [ 57.008381][ T5297] ? folio_add_lru+0x37b/0x680 [ 57.013174][ T5297] ? folio_flags.constprop.0+0x150/0x150 [ 57.018931][ T5297] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 57.025063][ T5297] ? find_held_lock+0x2d/0x110 [ 57.029869][ T5297] page_cache_ra_unbounded+0x477/0x5e0 [ 57.035365][ T5297] page_cache_ra_order+0x6ec/0xa00 [ 57.040509][ T5297] ? blk_cgroup_congested+0x147/0x260 [ 57.045922][ T5297] ondemand_readahead+0x6b3/0x1000 [ 57.051070][ T5297] page_cache_sync_ra+0x1c9/0x200 [ 57.056130][ T5297] filemap_get_pages+0x2ca/0x16b0 [ 57.061198][ T5297] ? filemap_fault+0x23f0/0x23f0 [ 57.066180][ T5297] filemap_read+0x315/0xc00 [ 57.070725][ T5297] ? filemap_get_pages+0x16b0/0x16b0 [ 57.076035][ T5297] ? _raw_spin_unlock_irqrestore+0x54/0x70 [ 57.081896][ T5297] ? lockdep_hardirqs_on+0x7d/0x100 [ 57.087128][ T5297] ? _raw_spin_unlock_irqrestore+0x41/0x70 [ 57.092967][ T5297] ? __stack_depot_save+0x264/0x560 [ 57.098306][ T5297] generic_file_read_iter+0x3b4/0x5a0 [ 57.103834][ T5297] ? ima_file_check+0xb0/0x100 [ 57.108623][ T5297] ? path_openat+0x15f1/0x2a50 [ 57.113420][ T5297] ? iov_iter_kvec+0x49/0x1c0 [ 57.118132][ T5297] __kernel_read+0x2ca/0x7c0 [ 57.122760][ T5297] ? __ia32_sys_llseek+0x380/0x380 [ 57.127929][ T5297] ? find_held_lock+0x2d/0x110 [ 57.132731][ T5297] ? __kmem_cache_alloc_node+0x48/0x430 [ 57.138421][ T5297] integrity_kernel_read+0x7f/0xb0 [ 57.143560][ T5297] ? integrity_inode_free+0x310/0x310 [ 57.148959][ T5297] ? kasan_set_track+0x25/0x30 [ 57.153760][ T5297] ima_calc_file_hash_tfm+0x2aa/0x3b0 [ 57.159170][ T5297] ? calc_buffer_shash_tfm+0x2b0/0x2b0 [ 57.164754][ T5297] ? __stack_depot_save+0x3e/0x560 [ 57.169908][ T5297] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 57.175932][ T5297] ? _find_first_zero_bit+0x94/0xb0 [ 57.181183][ T5297] ? lock_release+0x810/0x810 [ 57.185908][ T5297] ? ima_alloc_tfm+0x214/0x2d0 [ 57.190704][ T5297] ima_calc_file_hash+0x195/0x4a0 [ 57.195762][ T5297] ima_collect_measurement+0x538/0x650 [ 57.201255][ T5297] ? ima_get_action+0xa0/0xa0 [ 57.205969][ T5297] ? ima_get_cache_status+0x1e0/0x1e0 [ 57.211381][ T5297] process_measurement+0xd23/0x18b0 [ 57.216622][ T5297] ? mmap_violation_check+0x1f0/0x1f0 [ 57.222026][ T5297] ? tomoyo_check_open_permission+0x1f6/0x3a0 [ 57.228131][ T5297] ? tomoyo_path_number_perm+0x570/0x570 [ 57.233849][ T5297] ? apparmor_file_open+0x1a9/0xb80 [ 57.239081][ T5297] ? hook_path_mknod+0x6b0/0x6b0 [ 57.244038][ T5297] ? lock_downgrade+0x6e0/0x6e0 [ 57.248928][ T5297] ? apparmor_path_chmod+0x30/0x30 [ 57.255453][ T5297] ? rwlock_bug.part.0+0x90/0x90 [ 57.260427][ T5297] ? apparmor_current_getsecid_subj+0x1f9/0x570 [ 57.266700][ T5297] ima_file_check+0xb0/0x100 [ 57.271316][ T5297] ? do_dentry_open+0xd1f/0x13f0 [ 57.276299][ T5297] ? process_measurement+0x18b0/0x18b0 [ 57.281938][ T5297] ? may_open+0x1f6/0x420 [ 57.286299][ T5297] path_openat+0x15f1/0x2a50 [ 57.290944][ T5297] ? ___slab_alloc+0x9df/0x1400 [ 57.295840][ T5297] ? path_lookupat+0x840/0x840 [ 57.300804][ T5297] do_filp_open+0x1ba/0x410 [ 57.305337][ T5297] ? may_open_dev+0xf0/0xf0 [ 57.309907][ T5297] ? find_held_lock+0x2d/0x110 [ 57.314714][ T5297] ? do_raw_spin_lock+0x124/0x2b0 [ 57.319762][ T5297] ? rwlock_bug.part.0+0x90/0x90 [ 57.324733][ T5297] ? _raw_spin_unlock+0x28/0x40 [ 57.329638][ T5297] ? alloc_fd+0x2d8/0x6d0 [ 57.334031][ T5297] do_sys_openat2+0x16d/0x4c0 [ 57.338755][ T5297] ? build_open_flags+0x6f0/0x6f0 [ 57.343830][ T5297] ? ptrace_notify+0xfe/0x140 [ 57.348544][ T5297] ? lock_downgrade+0x6e0/0x6e0 [ 57.353435][ T5297] __x64_sys_open+0x11d/0x1c0 [ 57.358146][ T5297] ? do_sys_open+0x150/0x150 [ 57.362774][ T5297] ? _raw_spin_unlock_irq+0x2e/0x50 [ 57.368040][ T5297] ? ptrace_notify+0xfe/0x140 [ 57.372763][ T5297] do_syscall_64+0x39/0xb0 [ 57.377213][ T5297] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 57.383139][ T5297] RIP: 0033:0x7fcd097ed769 [ 57.387575][ T5297] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48 [ 57.407212][ T5297] RSP: 002b:00007fff5d2c1498 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 57.415842][ T5297] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fcd097ed769 [ 57.423835][ T5297] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 [ 57.431821][ T5297] RBP: 00007fcd097ad000 R08: 0000000000009e07 R09: 0000000000000000 [ 57.439813][ T5297] R10: 00007fff5d2c1360 R11: 0000000000000246 R12: 00007fcd097ad090 [ 57.447798][ T5297] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 57.455801][ T5297] open("./file0", O_RDONLY) = 4 exit_group(0) = ? [ 57.460120][ T5297] syz-executor314: attempt to access beyond end of device [ 57.460120][ T5297] loop0: rw=0, sector=3245518, nr_sectors = 1 limit=128 [ 57.474168][ T5297] Buffer I/O error on dev loop0, logical block 3245518, async page read [ 57.482704][ T5297] syz-executor314: attempt to access beyond end of device [ 57.482704][ T5297] loop0: rw=0, sector=8769403, nr_sectors = 1 limit=128 [ 57.496659][ T5297] Buffer I/O error on dev loop0, logical block 8769403, async page read +++ exited with 0 +++ [ 57.506380][ T27] audit: type=1800 audit(1669708683.03