================================================================== BUG: KASAN: use-after-free in crc_itu_t+0xc4/0x108 lib/crc-itu-t.c:60 Read of size 1 at addr ffff0000fbdb0000 by task syz.0.397/8678 CPU: 0 UID: 0 PID: 8678 Comm: syz.0.397 Not tainted 6.11.0-rc3-syzkaller-g5c43d43bad35 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:119 print_address_description mm/kasan/report.c:377 [inline] print_report+0x198/0x538 mm/kasan/report.c:488 kasan_report+0xd8/0x138 mm/kasan/report.c:601 __asan_report_load1_noabort+0x20/0x2c mm/kasan/report_generic.c:378 crc_itu_t+0xc4/0x108 lib/crc-itu-t.c:60 udf_update_tag+0x74/0x54c fs/udf/misc.c:261 udf_write_aext+0x37c/0x668 fs/udf/inode.c:2146 udf_update_extents fs/udf/inode.c:1200 [inline] inode_getblk fs/udf/inode.c:897 [inline] udf_map_block+0x30ec/0x3efc fs/udf/inode.c:443 __udf_get_block+0xf8/0x39c fs/udf/inode.c:457 udf_get_block+0x84/0xb8 fs/udf/inode.c:481 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2235 udf_write_begin+0xf8/0x218 fs/udf/inode.c:256 generic_perform_write+0x2e8/0x8e0 mm/filemap.c:4019 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4121 udf_file_write_iter+0x25c/0x568 fs/udf/file.c:111 do_iter_readv_writev+0x4a4/0x6ec vfs_writev+0x410/0xb80 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2 fs/read_write.c:1122 [inline] __arm64_sys_pwritev2+0x1dc/0x2f0 fs/read_write.c:1122 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x4d9 pfn:0x13bdb0 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: 0xbfffffff(buddy) raw: 05ffc00000000000 fffffdffc3e9b008 fffffdffc37da408 0000000000000000 raw: 00000000000004d9 0000000000000004 00000000bfffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000fbdaff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000fbdaff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000fbdb0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000fbdb0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000fbdb0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8678 at fs/udf/inode.c:2047 __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 Modules linked in: CPU: 0 UID: 0 PID: 8678 Comm: syz.0.397 Tainted: G B 6.11.0-rc3-syzkaller-g5c43d43bad35 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 lr : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 sp : ffff800098c56d80 x29: ffff800098c56da0 x28: 1ffff0001318ae16 x27: dfff800000000000 x26: 0000000000000010 x25: 0000000000000200 x24: ffff800098c570b8 x23: ffff800098c56ff0 x22: 0000000000000040 x21: 1ffff0001318ae17 x20: ffff800098c570b0 x19: ffff0000db608e18 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800083014574 x15: 0000000000000001 x14: 0000000000000002 x13: 0000000000000001 x12: ffff0000daa50000 x11: 0000000000040000 x10: 000000000003ffff x9 : ffff800099be8000 x8 : 0000000000040000 x7 : 0000000000000000 x6 : ffff8000809c68b0 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000040 x2 : ffff800098c56ff0 x1 : 0000000000000200 x0 : 0000000000000010 Call trace: __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 udf_add_aext fs/udf/inode.c:2104 [inline] udf_insert_aext fs/udf/inode.c:2266 [inline] udf_update_extents fs/udf/inode.c:1182 [inline] inode_getblk fs/udf/inode.c:897 [inline] udf_map_block+0x2e4c/0x3efc fs/udf/inode.c:443 __udf_get_block+0xf8/0x39c fs/udf/inode.c:457 udf_get_block+0x84/0xb8 fs/udf/inode.c:481 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2235 udf_write_begin+0xf8/0x218 fs/udf/inode.c:256 generic_perform_write+0x2e8/0x8e0 mm/filemap.c:4019 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4121 udf_file_write_iter+0x25c/0x568 fs/udf/file.c:111 do_iter_readv_writev+0x4a4/0x6ec vfs_writev+0x410/0xb80 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2 fs/read_write.c:1122 [inline] __arm64_sys_pwritev2+0x1dc/0x2f0 fs/read_write.c:1122 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 42591 hardirqs last enabled at (42591): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline] hardirqs last enabled at (42591): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942 hardirqs last disabled at (42590): [] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416 softirqs last enabled at (40096): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (40096): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (40063): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8678 at fs/udf/inode.c:2047 __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 Modules linked in: CPU: 0 UID: 0 PID: 8678 Comm: syz.0.397 Tainted: G B W 6.11.0-rc3-syzkaller-g5c43d43bad35 #0 Tainted: [B]=BAD_PAGE, [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 lr : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 sp : ffff800098c56d80 x29: ffff800098c56da0 x28: 1ffff0001318ae16 x27: dfff800000000000 x26: 0000000000000020 x25: 0000000000000210 x24: ffff800098c570b8 x23: ffff800098c56ff0 x22: 0000000000000040 x21: 1ffff0001318ae17 x20: ffff800098c570b0 x19: ffff0000db608e18 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800083014574 x15: 0000000000000001 x14: 0000000000000002 x13: 0000000000000001 x12: ffff0000daa50000 x11: 0000000000040000 x10: 000000000003ffff x9 : ffff800099be8000 x8 : 0000000000040000 x7 : 0000000000000000 x6 : ffff8000809c68b0 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000040 x2 : ffff800098c56ff0 x1 : 0000000000000210 x0 : 0000000000000020 Call trace: __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 udf_add_aext fs/udf/inode.c:2104 [inline] udf_insert_aext fs/udf/inode.c:2266 [inline] udf_update_extents fs/udf/inode.c:1182 [inline] inode_getblk fs/udf/inode.c:897 [inline] udf_map_block+0x2e4c/0x3efc fs/udf/inode.c:443 __udf_get_block+0xf8/0x39c fs/udf/inode.c:457 udf_get_block+0x84/0xb8 fs/udf/inode.c:481 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2235 udf_write_begin+0xf8/0x218 fs/udf/inode.c:256 generic_perform_write+0x2e8/0x8e0 mm/filemap.c:4019 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4121 udf_file_write_iter+0x25c/0x568 fs/udf/file.c:111 do_iter_readv_writev+0x4a4/0x6ec vfs_writev+0x410/0xb80 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2 fs/read_write.c:1122 [inline] __arm64_sys_pwritev2+0x1dc/0x2f0 fs/read_write.c:1122 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 42591 hardirqs last enabled at (42591): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline] hardirqs last enabled at (42591): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942 hardirqs last disabled at (42590): [] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416 softirqs last enabled at (40096): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (40096): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (40063): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8678 at fs/udf/inode.c:2047 __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 Modules linked in: CPU: 0 UID: 0 PID: 8678 Comm: syz.0.397 Tainted: G B W 6.11.0-rc3-syzkaller-g5c43d43bad35 #0 Tainted: [B]=BAD_PAGE, [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 lr : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 sp : ffff800098c56d80 x29: ffff800098c56da0 x28: 1ffff0001318ae16 x27: dfff800000000000 x26: 0000000000000030 x25: 0000000000000220 x24: ffff800098c570b8 x23: ffff800098c56ff0 x22: 0000000000000040 x21: 1ffff0001318ae17 x20: ffff800098c570b0 x19: ffff0000db608e18 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800083014574 x15: 0000000000000001 x14: 0000000000000002 x13: 0000000000000001 x12: ffff0000daa50000 x11: 0000000000040000 x10: 000000000003ffff x9 : ffff800099be8000 x8 : 0000000000040000 x7 : 0000000000000000 x6 : ffff0000dd053488 x5 : ffff800098c570c8 x4 : 0000000000000001 x3 : 0000000000000040 x2 : ffff800098c56ff0 x1 : 0000000000000220 x0 : 0000000000000030 Call trace: __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 udf_add_aext fs/udf/inode.c:2104 [inline] udf_insert_aext fs/udf/inode.c:2266 [inline] udf_update_extents fs/udf/inode.c:1182 [inline] inode_getblk fs/udf/inode.c:897 [inline] udf_map_block+0x2e4c/0x3efc fs/udf/inode.c:443 __udf_get_block+0xf8/0x39c fs/udf/inode.c:457 udf_get_block+0x84/0xb8 fs/udf/inode.c:481 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2235 udf_write_begin+0xf8/0x218 fs/udf/inode.c:256 generic_perform_write+0x2e8/0x8e0 mm/filemap.c:4019 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4121 udf_file_write_iter+0x25c/0x568 fs/udf/file.c:111 do_iter_readv_writev+0x4a4/0x6ec vfs_writev+0x410/0xb80 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2 fs/read_write.c:1122 [inline] __arm64_sys_pwritev2+0x1dc/0x2f0 fs/read_write.c:1122 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 42591 hardirqs last enabled at (42591): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline] hardirqs last enabled at (42591): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942 hardirqs last disabled at (42590): [] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416 softirqs last enabled at (40096): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (40096): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (40063): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8678 at fs/udf/inode.c:2047 __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 Modules linked in: CPU: 0 UID: 0 PID: 8678 Comm: syz.0.397 Tainted: G B W 6.11.0-rc3-syzkaller-g5c43d43bad35 #0 Tainted: [B]=BAD_PAGE, [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 lr : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 sp : ffff800098c56d80 x29: ffff800098c56da0 x28: 1ffff0001318ae16 x27: dfff800000000000 x26: 0000000000000040 x25: 0000000000000230 x24: ffff800098c570b8 x23: ffff800098c56ff0 x22: 0000000000000040 x21: 1ffff0001318ae17 x20: ffff800098c570b0 x19: ffff0000db608e18 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800083014574 x15: 0000000000000001 x14: 0000000000000002 x13: 0000000000000001 x12: ffff0000daa50000 x11: 0000000000040000 x10: 000000000003ffff x9 : ffff800099be8000 x8 : 0000000000040000 x7 : 0000000000000000 x6 : ffff0000dd053488 x5 : ffff800098c570c8 x4 : 0000000000000001 x3 : 0000000000000040 x2 : ffff800098c56ff0 x1 : 0000000000000230 x0 : 0000000000000040 Call trace: __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 udf_add_aext fs/udf/inode.c:2104 [inline] udf_insert_aext fs/udf/inode.c:2266 [inline] udf_update_extents fs/udf/inode.c:1182 [inline] inode_getblk fs/udf/inode.c:897 [inline] udf_map_block+0x2e4c/0x3efc fs/udf/inode.c:443 __udf_get_block+0xf8/0x39c fs/udf/inode.c:457 udf_get_block+0x84/0xb8 fs/udf/inode.c:481 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2235 udf_write_begin+0xf8/0x218 fs/udf/inode.c:256 generic_perform_write+0x2e8/0x8e0 mm/filemap.c:4019 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4121 udf_file_write_iter+0x25c/0x568 fs/udf/file.c:111 do_iter_readv_writev+0x4a4/0x6ec vfs_writev+0x410/0xb80 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2 fs/read_write.c:1122 [inline] __arm64_sys_pwritev2+0x1dc/0x2f0 fs/read_write.c:1122 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 42591 hardirqs last enabled at (42591): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline] hardirqs last enabled at (42591): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942 hardirqs last disabled at (42590): [] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416 softirqs last enabled at (40096): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (40096): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (40063): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8678 at fs/udf/inode.c:2047 __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 Modules linked in: CPU: 0 UID: 0 PID: 8678 Comm: syz.0.397 Tainted: G B W 6.11.0-rc3-syzkaller-g5c43d43bad35 #0 Tainted: [B]=BAD_PAGE, [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 lr : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 sp : ffff800098c56d80 x29: ffff800098c56da0 x28: 1ffff0001318ae16 x27: dfff800000000000 x26: 0000000000000050 x25: 0000000000000240 x24: ffff800098c570b8 x23: ffff800098c56ff0 x22: 0000000000000040 x21: 1ffff0001318ae17 x20: ffff800098c570b0 x19: ffff0000db608e18 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800083014574 x15: 0000000000000001 x14: 0000000000000002 x13: 0000000000000001 x12: ffff0000daa50000 x11: 0000000000040000 x10: 000000000003ffff x9 : ffff800099be8000 x8 : 0000000000040000 x7 : 0000000000000000 x6 : ffff0000dd053488 x5 : ffff800098c570c8 x4 : 0000000000000001 x3 : 0000000000000040 x2 : ffff800098c56ff0 x1 : 0000000000000240 x0 : 0000000000000050 Call trace: __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 udf_add_aext fs/udf/inode.c:2104 [inline] udf_insert_aext fs/udf/inode.c:2266 [inline] udf_update_extents fs/udf/inode.c:1182 [inline] inode_getblk fs/udf/inode.c:897 [inline] udf_map_block+0x2e4c/0x3efc fs/udf/inode.c:443 __udf_get_block+0xf8/0x39c fs/udf/inode.c:457 udf_get_block+0x84/0xb8 fs/udf/inode.c:481 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2235 udf_write_begin+0xf8/0x218 fs/udf/inode.c:256 generic_perform_write+0x2e8/0x8e0 mm/filemap.c:4019 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4121 udf_file_write_iter+0x25c/0x568 fs/udf/file.c:111 do_iter_readv_writev+0x4a4/0x6ec vfs_writev+0x410/0xb80 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2 fs/read_write.c:1122 [inline] __arm64_sys_pwritev2+0x1dc/0x2f0 fs/read_write.c:1122 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 42591 hardirqs last enabled at (42591): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline] hardirqs last enabled at (42591): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942 hardirqs last disabled at (42590): [] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416 softirqs last enabled at (40096): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (40096): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (40063): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8678 at fs/udf/inode.c:2047 __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 Modules linked in: CPU: 0 UID: 0 PID: 8678 Comm: syz.0.397 Tainted: G B W 6.11.0-rc3-syzkaller-g5c43d43bad35 #0 Tainted: [B]=BAD_PAGE, [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 lr : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 sp : ffff800098c56d80 x29: ffff800098c56da0 x28: 1ffff0001318ae16 x27: dfff800000000000 x26: 0000000000000060 x25: 0000000000000250 x24: ffff800098c570b8 x23: ffff800098c56ff0 x22: 0000000000000040 x21: 1ffff0001318ae17 x20: ffff800098c570b0 x19: ffff0000db608e18 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800083014574 x15: 0000000000000001 x14: 0000000000000002 x13: 0000000000000001 x12: ffff0000daa50000 x11: 0000000000040000 x10: 000000000003ffff x9 : ffff800099be8000 x8 : 0000000000040000 x7 : 0000000000000000 x6 : ffff0000dd053488 x5 : ffff800098c570c8 x4 : 0000000000000001 x3 : 0000000000000040 x2 : ffff800098c56ff0 x1 : 0000000000000250 x0 : 0000000000000060 Call trace: __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 udf_add_aext fs/udf/inode.c:2104 [inline] udf_insert_aext fs/udf/inode.c:2266 [inline] udf_update_extents fs/udf/inode.c:1182 [inline] inode_getblk fs/udf/inode.c:897 [inline] udf_map_block+0x2e4c/0x3efc fs/udf/inode.c:443 __udf_get_block+0xf8/0x39c fs/udf/inode.c:457 udf_get_block+0x84/0xb8 fs/udf/inode.c:481 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2235 udf_write_begin+0xf8/0x218 fs/udf/inode.c:256 generic_perform_write+0x2e8/0x8e0 mm/filemap.c:4019 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4121 udf_file_write_iter+0x25c/0x568 fs/udf/file.c:111 do_iter_readv_writev+0x4a4/0x6ec vfs_writev+0x410/0xb80 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2 fs/read_write.c:1122 [inline] __arm64_sys_pwritev2+0x1dc/0x2f0 fs/read_write.c:1122 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 42591 hardirqs last enabled at (42591): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline] hardirqs last enabled at (42591): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942 hardirqs last disabled at (42590): [] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416 softirqs last enabled at (40096): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (40096): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (40063): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8678 at fs/udf/inode.c:2047 __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 Modules linked in: CPU: 0 UID: 0 PID: 8678 Comm: syz.0.397 Tainted: G B W 6.11.0-rc3-syzkaller-g5c43d43bad35 #0 Tainted: [B]=BAD_PAGE, [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 lr : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 sp : ffff800098c56d80 x29: ffff800098c56da0 x28: 1ffff0001318ae16 x27: dfff800000000000 x26: 0000000000000070 x25: 0000000000000260 x24: ffff800098c570b8 x23: ffff800098c56ff0 x22: 0000000000000040 x21: 1ffff0001318ae17 x20: ffff800098c570b0 x19: ffff0000db608e18 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800083014574 x15: 0000000000000001 x14: 0000000000000002 x13: 0000000000000001 x12: ffff0000daa50000 x11: 0000000000040000 x10: 000000000003ffff x9 : ffff800099be8000 x8 : 0000000000040000 x7 : 0000000000000000 x6 : ffff0000dd053488 x5 : ffff800098c570c8 x4 : 0000000000000001 x3 : 0000000000000040 x2 : ffff800098c56ff0 x1 : 0000000000000260 x0 : 0000000000000070 Call trace: __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 udf_add_aext fs/udf/inode.c:2104 [inline] udf_insert_aext fs/udf/inode.c:2266 [inline] udf_update_extents fs/udf/inode.c:1182 [inline] inode_getblk fs/udf/inode.c:897 [inline] udf_map_block+0x2e4c/0x3efc fs/udf/inode.c:443 __udf_get_block+0xf8/0x39c fs/udf/inode.c:457 udf_get_block+0x84/0xb8 fs/udf/inode.c:481 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2235 udf_write_begin+0xf8/0x218 fs/udf/inode.c:256 generic_perform_write+0x2e8/0x8e0 mm/filemap.c:4019 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4121 udf_file_write_iter+0x25c/0x568 fs/udf/file.c:111 do_iter_readv_writev+0x4a4/0x6ec vfs_writev+0x410/0xb80 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2 fs/read_write.c:1122 [inline] __arm64_sys_pwritev2+0x1dc/0x2f0 fs/read_write.c:1122 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 42591 hardirqs last enabled at (42591): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline] hardirqs last enabled at (42591): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942 hardirqs last disabled at (42590): [] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416 softirqs last enabled at (40096): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (40096): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (40063): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8678 at fs/udf/inode.c:2047 __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 Modules linked in: CPU: 0 UID: 0 PID: 8678 Comm: syz.0.397 Tainted: G B W 6.11.0-rc3-syzkaller-g5c43d43bad35 #0 Tainted: [B]=BAD_PAGE, [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 lr : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 sp : ffff800098c56d80 x29: ffff800098c56da0 x28: 1ffff0001318ae16 x27: dfff800000000000 x26: 0000000000000080 x25: 0000000000000270 x24: ffff800098c570b8 x23: ffff800098c56ff0 x22: 0000000000000040 x21: 1ffff0001318ae17 x20: ffff800098c570b0 x19: ffff0000db608e18 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800083014574 x15: 0000000000000001 x14: 0000000000000002 x13: 0000000000000001 x12: ffff0000daa50000 x11: 0000000000040000 x10: 000000000003ffff x9 : ffff800099be8000 x8 : 0000000000040000 x7 : 0000000000000000 x6 : ffff0000dd053488 x5 : ffff800098c570c8 x4 : 0000000000000001 x3 : 0000000000000040 x2 : ffff800098c56ff0 x1 : 0000000000000270 x0 : 0000000000000080 Call trace: __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 udf_add_aext fs/udf/inode.c:2104 [inline] udf_insert_aext fs/udf/inode.c:2266 [inline] udf_update_extents fs/udf/inode.c:1182 [inline] inode_getblk fs/udf/inode.c:897 [inline] udf_map_block+0x2e4c/0x3efc fs/udf/inode.c:443 __udf_get_block+0xf8/0x39c fs/udf/inode.c:457 udf_get_block+0x84/0xb8 fs/udf/inode.c:481 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2235 udf_write_begin+0xf8/0x218 fs/udf/inode.c:256 generic_perform_write+0x2e8/0x8e0 mm/filemap.c:4019 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4121 udf_file_write_iter+0x25c/0x568 fs/udf/file.c:111 do_iter_readv_writev+0x4a4/0x6ec vfs_writev+0x410/0xb80 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2 fs/read_write.c:1122 [inline] __arm64_sys_pwritev2+0x1dc/0x2f0 fs/read_write.c:1122 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 42591 hardirqs last enabled at (42591): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline] hardirqs last enabled at (42591): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942 hardirqs last disabled at (42590): [] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416 softirqs last enabled at (40096): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (40096): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (40063): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8678 at fs/udf/inode.c:2047 __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 Modules linked in: CPU: 0 UID: 0 PID: 8678 Comm: syz.0.397 Tainted: G B W 6.11.0-rc3-syzkaller-g5c43d43bad35 #0 Tainted: [B]=BAD_PAGE, [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 lr : __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 sp : ffff800098c56d80 x29: ffff800098c56da0 x28: 1ffff0001318ae16 x27: dfff800000000000 x26: 0000000000000090 x25: 0000000000000280 x24: ffff800098c570b8 x23: ffff800098c56ff0 x22: 0000000000000040 x21: 1ffff0001318ae17 x20: ffff800098c570b0 x19: ffff0000db608e18 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800083014574 x15: 0000000000000001 x14: 0000000000000002 x13: 0000000000000001 x12: ffff0000daa50000 x11: 0000000000040000 x10: 000000000003ffff x9 : ffff800099be8000 x8 : 0000000000040000 x7 : 0000000000000000 x6 : ffff0000dd053488 x5 : ffff800098c570c8 x4 : 0000000000000001 x3 : 0000000000000040 x2 : ffff800098c56ff0 x1 : 0000000000000280 x0 : 0000000000000090 Call trace: __udf_add_aext+0x488/0x614 fs/udf/inode.c:2046 udf_add_aext fs/udf/inode.c:2104 [inline] udf_insert_aext fs/udf/inode.c:2266 [inline] udf_update_extents fs/udf/inode.c:1182 [inline] inode_getblk fs/udf/inode.c:897 [inline] udf_map_block+0x2e4c/0x3efc fs/udf/inode.c:443 __udf_get_block+0xf8/0x39c fs/udf/inode.c:457 udf_get_block+0x84/0xb8 fs/udf/inode.c:481 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2235 udf_write_begin+0xf8/0x218 fs/udf/inode.c:256 generic_perform_write+0x2e8/0x8e0 mm/filemap.c:4019 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4121 udf_file_write_iter+0x25c/0x568 fs/udf/file.c:111 do_iter_readv_writev+0x4a4/0x6ec vfs_writev+0x410/0xb80 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2 fs/read_write.c:1122 [inline] __arm64_sys_pwritev2+0x1dc/0x2f0 fs/read_write.c:1122 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 42591 hardirqs last enabled at (42591): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline] hardirqs last enabled at (42591): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942 hardirqs last disabled at (42590): [] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416 softirqs last enabled at (40096): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (40096): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (40063): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- syz.0.397: attempt to access beyond end of device loop0: rw=2049, sector=2048, nr_sectors = 1 limit=2048 Buffer I/O error on dev loop0, logical block 2048, lost async page write syz.0.397: attempt to access beyond end of device loop0: rw=2049, sector=2048, nr_sectors = 1 limit=2048 Buffer I/O error on dev loop0, logical block 2048, lost async page write syz.0.397: attempt to access beyond end of device loop0: rw=2049, sector=2048, nr_sectors = 1 limit=2048 Buffer I/O error on dev loop0, logical block 2048, lost async page write syz.0.397: attempt to access beyond end of device loop0: rw=2049, sector=2048, nr_sectors = 1 limit=2048 Buffer I/O error on dev loop0, logical block 2048, lost async page write syz.0.397: attempt to access beyond end of device loop0: rw=2049, sector=2048, nr_sectors = 1 limit=2048 Buffer I/O error on dev loop0, logical block 2048, lost async page write syz.0.397: attempt to access beyond end of device loop0: rw=2049, sector=2049, nr_sectors = 1 limit=2048 Buffer I/O error on dev loop0, logical block 2049, lost async page write syz.0.397: attempt to access beyond end of device loop0: rw=2049, sector=2049, nr_sectors = 1 limit=2048 Buffer I/O error on dev loop0, logical block 2049, lost async page write syz.0.397: attempt to access beyond end of device loop0: rw=2049, sector=2049, nr_sectors = 1 limit=2048 Buffer I/O error on dev loop0, logical block 2049, lost async page write syz.0.397: attempt to access beyond end of device loop0: rw=2049, sector=2049, nr_sectors = 1 limit=2048 Buffer I/O error on dev loop0, logical block 2049, lost async page write syz.0.397: attempt to access beyond end of device loop0: rw=2049, sector=2049, nr_sectors = 1 limit=2048 Buffer I/O error on dev loop0, logical block 2049, lost async page write