Buffer I/O error on dev loop2, logical block 8073605, async page read audit: type=1800 audit(1675375271.877:62): pid=13763 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14400 res=0 BUG: sleeping function called from invalid context at fs/buffer.c:1319 in_atomic(): 1, irqs_disabled(): 0, pid: 13748, name: syz-executor.2 2 locks held by syz-executor.2/13748: #0: 0000000030cebcda (&iint->mutex){+.+.}, at: process_measurement+0x316/0x1440 security/integrity/ima/ima_main.c:224 #1: 00000000907afe6a (pointers_lock){.+.+}, at: get_block+0x171/0x1510 fs/sysv/itree.c:217 Preemption disabled at: [<0000000000000000>] (null) CPU: 1 PID: 13748 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6192 __getblk_gfp fs/buffer.c:1319 [inline] __bread_gfp+0x3f/0x300 fs/buffer.c:1366 sb_bread include/linux/buffer_head.h:309 [inline] get_branch+0x2cd/0x640 fs/sysv/itree.c:104 get_block+0x194/0x1510 fs/sysv/itree.c:218 block_read_full_page+0x288/0xd10 fs/buffer.c:2259 read_pages.isra.0+0x329/0x5d0 mm/readahead.c:133 __do_page_cache_readahead+0x5c6/0x6c0 mm/readahead.c:211 ra_submit mm/internal.h:66 [inline] ondemand_readahead.isra.0+0x575/0xd40 mm/readahead.c:493 page_cache_sync_readahead mm/readahead.c:528 [inline] page_cache_sync_readahead+0x275/0x520 mm/readahead.c:510 generic_file_buffered_read mm/filemap.c:2115 [inline] generic_file_read_iter+0x1497/0x2b60 mm/filemap.c:2385 call_read_iter include/linux/fs.h:1815 [inline] new_sync_read fs/read_write.c:406 [inline] __vfs_read+0x518/0x750 fs/read_write.c:418 integrity_kernel_read+0x147/0x1f0 security/integrity/iint.c:200 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:364 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:393 [inline] ima_calc_file_hash+0x4b2/0x8a0 security/integrity/ima/ima_crypto.c:450 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 RIP: 0033:0x7fe490e8a0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe48f3db168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fe490faa050 RCX: 00007fe490e8a0c9 RDX: 0000000000000025 RSI: 0000000000080000 RDI: 00000000200000c0 RBP: 00007fe490ee5ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffddf8ec6ff R14: 00007fe48f3db300 R15: 0000000000022000 attempt to access beyond end of device loop2: rw=0, want=3245519, limit=128 BTRFS info (device loop1): enabling inode map caching Buffer I/O error on dev loop2, logical block 3245518, async page read attempt to access beyond end of device loop2: rw=0, want=8769404, limit=128 Buffer I/O error on dev loop2, logical block 8769403, async page read attempt to access beyond end of device loop2: rw=0, want=3245513, limit=128 attempt to access beyond end of device loop2: rw=0, want=8767868, limit=128 attempt to access beyond end of device loop2: rw=0, want=13269810, limit=128 attempt to access beyond end of device BTRFS warning (device loop1): excessive commit interval 622039222 loop2: rw=0, want=8073606, limit=128 audit: type=1800 audit(1675375272.777:63): pid=13780 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14401 res=0 attempt to access beyond end of device BTRFS info (device loop1): force zlib compression, level 3 loop2: rw=0, want=3245516, limit=128 BTRFS info (device loop1): using free space tree BTRFS info (device loop1): has skinny extents attempt to access beyond end of device loop2: rw=0, want=8768636, limit=128 audit: type=1800 audit(1675375273.047:64): pid=13793 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="sda1" ino=14083 res=0 attempt to access beyond end of device loop2: rw=0, want=13466418, limit=128 attempt to access beyond end of device loop2: rw=0, want=8073606, limit=128 audit: type=1800 audit(1675375273.377:65): pid=13748 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed comm="syz-executor.2" name="/" dev="loop2" ino=2 res=0 BTRFS error (device loop1): open_ctree failed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. audit: type=1800 audit(1675375273.957:66): pid=13873 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14385 res=0 attempt to access beyond end of device netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. loop2: rw=0, want=3245513, limit=128 audit: type=1804 audit(1675375274.047:67): pid=13890 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir2714217643/syzkaller.oAyVRj/76/file0" dev="sda1" ino=14383 res=1 attempt to access beyond end of device netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. loop2: rw=0, want=8767868, limit=128 attempt to access beyond end of device attempt to access beyond end of device loop2: rw=0, want=13269810, limit=128 loop3: rw=0, want=3245513, limit=128 attempt to access beyond end of device attempt to access beyond end of device loop2: rw=0, want=8073606, limit=128 loop3: rw=0, want=8767868, limit=128 attempt to access beyond end of device attempt to access beyond end of device loop2: rw=0, want=3245516, limit=128 loop3: rw=0, want=13269810, limit=128 attempt to access beyond end of device attempt to access beyond end of device loop2: rw=0, want=8768636, limit=128 loop3: rw=0, want=8073606, limit=128 attempt to access beyond end of device attempt to access beyond end of device loop2: rw=0, want=13466418, limit=128 audit: type=1800 audit(1675375274.737:68): pid=13922 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14049 res=0 attempt to access beyond end of device loop2: rw=0, want=8073606, limit=128 loop3: rw=0, want=3245516, limit=128 BUG: sleeping function called from invalid context at fs/buffer.c:1319 in_atomic(): 1, irqs_disabled(): 0, pid: 13879, name: syz-executor.2 attempt to access beyond end of device 2 locks held by syz-executor.2/13879: #0: 00000000be2a0f76 (&iint->mutex){+.+.}, at: process_measurement+0x316/0x1440 security/integrity/ima/ima_main.c:224 #1: 00000000907afe6a (pointers_lock){.+.+}, at: get_block+0x171/0x1510 fs/sysv/itree.c:217 Preemption disabled at: [<0000000000000000>] (null) loop3: rw=0, want=8768636, limit=128 CPU: 0 PID: 13879 Comm: syz-executor.2 Tainted: G W 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6192 __getblk_gfp fs/buffer.c:1319 [inline] __bread_gfp+0x3f/0x300 fs/buffer.c:1366 sb_bread include/linux/buffer_head.h:309 [inline] get_branch+0x2cd/0x640 fs/sysv/itree.c:104 get_block+0x194/0x1510 fs/sysv/itree.c:218 attempt to access beyond end of device block_read_full_page+0x288/0xd10 fs/buffer.c:2259 loop3: rw=0, want=13466418, limit=128 attempt to access beyond end of device read_pages.isra.0+0x329/0x5d0 mm/readahead.c:133 __do_page_cache_readahead+0x5c6/0x6c0 mm/readahead.c:211 loop3: rw=0, want=8073606, limit=128 ra_submit mm/internal.h:66 [inline] ondemand_readahead.isra.0+0x575/0xd40 mm/readahead.c:493 page_cache_sync_readahead mm/readahead.c:528 [inline] page_cache_sync_readahead+0x275/0x520 mm/readahead.c:510 generic_file_buffered_read mm/filemap.c:2115 [inline] generic_file_read_iter+0x1497/0x2b60 mm/filemap.c:2385 call_read_iter include/linux/fs.h:1815 [inline] new_sync_read fs/read_write.c:406 [inline] __vfs_read+0x518/0x750 fs/read_write.c:418 integrity_kernel_read+0x147/0x1f0 security/integrity/iint.c:200 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:364 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:393 [inline] ima_calc_file_hash+0x4b2/0x8a0 security/integrity/ima/ima_crypto.c:450 attempt to access beyond end of device ima_collect_measurement+0x4c4/0x570 security/integrity/ima/ima_api.c:231 loop3: rw=0, want=3245519, limit=128 process_measurement+0xddd/0x1440 security/integrity/ima/ima_main.c:284 attempt to access beyond end of device loop3: rw=0, want=8769404, limit=128 attempt to access beyond end of device ima_file_check+0xb9/0x100 security/integrity/ima/ima_main.c:391 loop3: rw=0, want=3245513, limit=128 do_last fs/namei.c:3425 [inline] path_openat+0x7e4/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 attempt to access beyond end of device do_sys_open+0x3b3/0x520 fs/open.c:1085 loop3: rw=0, want=8767868, limit=128 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fe490e8a0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 attempt to access beyond end of device RSP: 002b:00007fe48f3db168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fe490faa050 RCX: 00007fe490e8a0c9 RDX: 0000000000000025 RSI: 0000000000080000 RDI: 00000000200000c0 RBP: 00007fe490ee5ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffddf8ec6ff R14: 00007fe48f3db300 R15: 0000000000022000 BTRFS info (device loop1): enabling inode map caching audit: type=1800 audit(1675375275.587:69): pid=13927 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.4" name="bus" dev="sda1" ino=14412 res=0 BTRFS warning (device loop1): excessive commit interval 622039222 BTRFS info (device loop1): force zlib compression, level 3 BTRFS info (device loop1): using free space tree loop3: rw=0, want=13269810, limit=128 attempt to access beyond end of device BTRFS info (device loop1): has skinny extents loop3: rw=0, want=8073606, limit=128 attempt to access beyond end of device loop2: rw=0, want=3245519, limit=128 attempt to access beyond end of device loop2: rw=0, want=8769404, limit=128 attempt to access beyond end of device loop2: rw=0, want=3245513, limit=128 attempt to access beyond end of device loop2: rw=0, want=8767868, limit=128 attempt to access beyond end of device loop2: rw=0, want=13269810, limit=128 attempt to access beyond end of device loop2: rw=0, want=8073606, limit=128 attempt to access beyond end of device attempt to access beyond end of device loop3: rw=0, want=3245516, limit=128 attempt to access beyond end of device loop2: rw=0, want=3245516, limit=128 loop3: rw=0, want=8768636, limit=128 attempt to access beyond end of device attempt to access beyond end of device loop2: rw=0, want=8768636, limit=128 attempt to access beyond end of device loop2: rw=0, want=13466418, limit=128 loop3: rw=0, want=13466418, limit=128 attempt to access beyond end of device loop2: rw=0, want=8073606, limit=128 audit: type=1800 audit(1675375276.047:70): pid=13879 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed comm="syz-executor.2" name="/" dev="loop2" ino=2 res=0 attempt to access beyond end of device loop3: rw=0, want=8073606, limit=128 audit: type=1800 audit(1675375276.107:71): pid=13904 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed comm="syz-executor.3" name="/" dev="loop3" ino=2 res=0 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. attempt to access beyond end of device loop3: rw=0, want=3245513, limit=128 audit: type=1800 audit(1675375276.417:72): pid=13982 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14375 res=0 buffer_io_error: 44 callbacks suppressed Buffer I/O error on dev loop3, logical block 3245512, async page read attempt to access beyond end of device loop2: rw=0, want=3245513, limit=128 Buffer I/O error on dev loop2, logical block 3245512, async page read attempt to access beyond end of device loop2: rw=0, want=8767868, limit=128 Buffer I/O error on dev loop2, logical block 8767867, async page read attempt to access beyond end of device loop2: rw=0, want=13269810, limit=128 Buffer I/O error on dev loop2, logical block 13269809, async page read attempt to access beyond end of device attempt to access beyond end of device loop3: rw=0, want=8767868, limit=128 loop2: rw=0, want=8073606, limit=128 Buffer I/O error on dev loop3, logical block 8767867, async page read Buffer I/O error on dev loop2, logical block 8073605, async page read attempt to access beyond end of device attempt to access beyond end of device loop3: rw=0, want=13269810, limit=128 loop2: rw=0, want=3245516, limit=128 Buffer I/O error on dev loop3, logical block 13269809, async page read Buffer I/O error on dev loop2, logical block 3245515, async page read attempt to access beyond end of device attempt to access beyond end of device loop3: rw=0, want=8073606, limit=128 Buffer I/O error on dev loop3, logical block 8073605, async page read attempt to access beyond end of device loop3: rw=0, want=3245516, limit=128 Buffer I/O error on dev loop3, logical block 3245515, async page read attempt to access beyond end of device loop3: rw=0, want=8768636, limit=128 attempt to access beyond end of device loop3: rw=0, want=13466418, limit=128 attempt to access beyond end of device loop3: rw=0, want=8073606, limit=128 loop2: rw=0, want=8768636, limit=128 BUG: sleeping function called from invalid context at fs/buffer.c:1319 in_atomic(): 1, irqs_disabled(): 0, pid: 13977, name: syz-executor.3 2 locks held by syz-executor.3/13977: #0: 00000000d0fd0fee (&iint->mutex){+.+.}, at: process_measurement+0x316/0x1440 security/integrity/ima/ima_main.c:224 #1: 00000000907afe6a (pointers_lock){.+.+}, at: get_block+0x171/0x1510 fs/sysv/itree.c:217 Preemption disabled at: [<0000000000000000>] (null) CPU: 1 PID: 13977 Comm: syz-executor.3 Tainted: G W 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6192 attempt to access beyond end of device __getblk_gfp fs/buffer.c:1319 [inline] __bread_gfp+0x3f/0x300 fs/buffer.c:1366 sb_bread include/linux/buffer_head.h:309 [inline] get_branch+0x2cd/0x640 fs/sysv/itree.c:104 get_block+0x194/0x1510 fs/sysv/itree.c:218 block_read_full_page+0x288/0xd10 fs/buffer.c:2259 read_pages.isra.0+0x329/0x5d0 mm/readahead.c:133 __do_page_cache_readahead+0x5c6/0x6c0 mm/readahead.c:211 ra_submit mm/internal.h:66 [inline] ondemand_readahead.isra.0+0x575/0xd40 mm/readahead.c:493 page_cache_sync_readahead mm/readahead.c:528 [inline] page_cache_sync_readahead+0x275/0x520 mm/readahead.c:510 generic_file_buffered_read mm/filemap.c:2115 [inline] generic_file_read_iter+0x1497/0x2b60 mm/filemap.c:2385 call_read_iter include/linux/fs.h:1815 [inline] new_sync_read fs/read_write.c:406 [inline] __vfs_read+0x518/0x750 fs/read_write.c:418 loop2: rw=0, want=13466418, limit=128 integrity_kernel_read+0x147/0x1f0 security/integrity/iint.c:200 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:364 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:393 [inline] ima_calc_file_hash+0x4b2/0x8a0 security/integrity/ima/ima_crypto.c:450 ima_collect_measurement+0x4c4/0x570 security/integrity/ima/ima_api.c:231 process_measurement+0xddd/0x1440 security/integrity/ima/ima_main.c:284 attempt to access beyond end of device loop2: rw=0, want=8073606, limit=128 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 RIP: 0033:0x7f45f17160c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f45efc88168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f45f1835f80 RCX: 00007f45f17160c9 RDX: 0000000000000025 RSI: 0000000000080000 RDI: 00000000200000c0 RBP: 00007f45f1771ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdf9ecff8f R14: 00007f45efc88300 R15: 0000000000022000 attempt to access beyond end of device BTRFS info (device loop1): enabling inode map caching loop2: rw=0, want=3245519, limit=128 attempt to access beyond end of device BTRFS warning (device loop1): excessive commit interval 622039222 BTRFS info (device loop1): force zlib compression, level 3 loop2: rw=0, want=8769404, limit=128 BTRFS info (device loop1): using free space tree attempt to access beyond end of device BTRFS info (device loop1): has skinny extents loop2: rw=0, want=3245513, limit=128 kauditd_printk_skb: 2 callbacks suppressed audit: type=1800 audit(1675375278.107:75): pid=14025 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="bus" dev="sda1" ino=14382 res=0 attempt to access beyond end of device loop2: rw=0, want=8767868, limit=128 BUG: sleeping function called from invalid context at fs/buffer.c:1319 in_atomic(): 1, irqs_disabled(): 0, pid: 13977, name: syz-executor.3 attempt to access beyond end of device 2 locks held by syz-executor.3/13977: #0: 00000000d0fd0fee (&iint->mutex){+.+.}, at: process_measurement+0x316/0x1440 security/integrity/ima/ima_main.c:224 #1: 00000000907afe6a (pointers_lock){.+.+}, at: get_block+0x171/0x1510 fs/sysv/itree.c:217 Preemption disabled at: [<0000000000000000>] (null) CPU: 1 PID: 13977 Comm: syz-executor.3 Tainted: G W 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6192 __getblk_gfp fs/buffer.c:1319 [inline] __bread_gfp+0x3f/0x300 fs/buffer.c:1366 sb_bread include/linux/buffer_head.h:309 [inline] get_branch+0x2cd/0x640 fs/sysv/itree.c:104 get_block+0x194/0x1510 fs/sysv/itree.c:218 block_read_full_page+0x288/0xd10 fs/buffer.c:2259 read_pages.isra.0+0x329/0x5d0 mm/readahead.c:133 __do_page_cache_readahead+0x5c6/0x6c0 mm/readahead.c:211 audit: type=1800 audit(1675375278.347:76): pid=14037 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14423 res=0 loop2: rw=0, want=13269810, limit=128 ra_submit mm/internal.h:66 [inline] ondemand_readahead.isra.0+0x575/0xd40 mm/readahead.c:493 page_cache_sync_readahead mm/readahead.c:528 [inline] page_cache_sync_readahead+0x275/0x520 mm/readahead.c:510 generic_file_buffered_read mm/filemap.c:2115 [inline] generic_file_read_iter+0x1497/0x2b60 mm/filemap.c:2385 call_read_iter include/linux/fs.h:1815 [inline] new_sync_read fs/read_write.c:406 [inline] __vfs_read+0x518/0x750 fs/read_write.c:418 attempt to access beyond end of device integrity_kernel_read+0x147/0x1f0 security/integrity/iint.c:200 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:364 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:393 [inline] ima_calc_file_hash+0x4b2/0x8a0 security/integrity/ima/ima_crypto.c:450 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 loop2: rw=0, want=8073606, limit=128 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 RIP: 0033:0x7f45f17160c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f45efc88168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f45f1835f80 RCX: 00007f45f17160c9 RDX: 0000000000000025 RSI: 0000000000080000 RDI: 00000000200000c0 RBP: 00007f45f1771ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 attempt to access beyond end of device R13: 00007ffdf9ecff8f R14: 00007f45efc88300 R15: 0000000000022000 attempt to access beyond end of device loop3: rw=0, want=3245519, limit=128 attempt to access beyond end of device loop2: rw=0, want=3245516, limit=128 loop3: rw=0, want=8769404, limit=128 attempt to access beyond end of device loop2: rw=0, want=8768636, limit=128 attempt to access beyond end of device loop2: rw=0, want=13466418, limit=128 attempt to access beyond end of device loop2: rw=0, want=8073606, limit=128 audit: type=1800 audit(1675375279.337:77): pid=14061 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.4" name="bus" dev="sda1" ino=13890 res=0 attempt to access beyond end of device loop3: rw=0, want=3245513, limit=128 attempt to access beyond end of device audit: type=1800 audit(1675375279.367:78): pid=13998 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed comm="syz-executor.2" name="/" dev="loop2" ino=2 res=0 loop3: rw=0, want=8767868, limit=128 attempt to access beyond end of device loop3: rw=0, want=13269810, limit=128 attempt to access beyond end of device audit: type=1800 audit(1675375279.507:79): pid=14071 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14360 res=0 loop3: rw=0, want=8073606, limit=128 attempt to access beyond end of device loop3: rw=0, want=3245516, limit=128 attempt to access beyond end of device loop3: rw=0, want=8768636, limit=128 attempt to access beyond end of device loop3: rw=0, want=13466418, limit=128 attempt to access beyond end of device loop3: rw=0, want=8073606, limit=128 audit: type=1800 audit(1675375280.678:80): pid=13977 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed comm="syz-executor.3" name="/" dev="loop3" ino=2 res=0 audit: type=1800 audit(1675375280.798:81): pid=14102 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14418 res=0 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. attempt to access beyond end of device loop3: rw=0, want=3245513, limit=128 attempt to access beyond end of device loop3: rw=0, want=8767868, limit=128 attempt to access beyond end of device netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. loop3: rw=0, want=13269810, limit=128 attempt to access beyond end of device netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. loop3: rw=0, want=8073606, limit=128 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. attempt to access beyond end of device loop3: rw=0, want=3245516, limit=128 buffer_io_error: 30 callbacks suppressed Buffer I/O error on dev loop3, logical block 3245515, async page read attempt to access beyond end of device loop3: rw=0, want=8768636, limit=128 Buffer I/O error on dev loop3, logical block 8768635, async page read attempt to access beyond end of device loop3: rw=0, want=13466418, limit=128 Buffer I/O error on dev loop3, logical block 13466417, async page read netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. attempt to access beyond end of device netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. loop3: rw=0, want=8073606, limit=128 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. Buffer I/O error on dev loop3, logical block 8073605, async page read BTRFS info (device loop1): enabling inode map caching BTRFS warning (device loop1): excessive commit interval 622039222 BUG: sleeping function called from invalid context at fs/buffer.c:1319 BTRFS info (device loop1): force zlib compression, level 3 BTRFS info (device loop1): using free space tree in_atomic(): 1, irqs_disabled(): 0, pid: 14125, name: syz-executor.3 2 locks held by syz-executor.3/14125: #0: 000000005103ba48 (&iint->mutex){+.+.}, at: process_measurement+0x316/0x1440 security/integrity/ima/ima_main.c:224 BTRFS info (device loop1): has skinny extents #1: 00000000907afe6a (pointers_lock){.+.+}, at: get_block+0x171/0x1510 fs/sysv/itree.c:217 Preemption disabled at: [<0000000000000000>] (null) CPU: 0 PID: 14125 Comm: syz-executor.3 Tainted: G W 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6192 __getblk_gfp fs/buffer.c:1319 [inline] __bread_gfp+0x3f/0x300 fs/buffer.c:1366 audit: type=1800 audit(1675375281.818:82): pid=14193 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14382 res=0 sb_bread include/linux/buffer_head.h:309 [inline] get_branch+0x2cd/0x640 fs/sysv/itree.c:104 get_block+0x194/0x1510 fs/sysv/itree.c:218 block_read_full_page+0x288/0xd10 fs/buffer.c:2259 read_pages.isra.0+0x329/0x5d0 mm/readahead.c:133 __do_page_cache_readahead+0x5c6/0x6c0 mm/readahead.c:211 ra_submit mm/internal.h:66 [inline] ondemand_readahead.isra.0+0x575/0xd40 mm/readahead.c:493 page_cache_sync_readahead mm/readahead.c:528 [inline] page_cache_sync_readahead+0x275/0x520 mm/readahead.c:510 generic_file_buffered_read mm/filemap.c:2115 [inline] generic_file_read_iter+0x1497/0x2b60 mm/filemap.c:2385 call_read_iter include/linux/fs.h:1815 [inline] new_sync_read fs/read_write.c:406 [inline] __vfs_read+0x518/0x750 fs/read_write.c:418