[syzbot] [udf?] KASAN: use-after-free Read in udf_update_tag

9 views
Skip to first unread message

syzbot

unread,
Aug 21, 2024, 3:43:22 AMAug 21
to ja...@suse.com, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 5c43d43bad35 Merge branches 'for-next/acpi', 'for-next/mis..
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
console output: https://syzkaller.appspot.com/x/log.txt?x=12558bf3980000
kernel config: https://syzkaller.appspot.com/x/.config?x=c91f83ae59feaa1f
dashboard link: https://syzkaller.appspot.com/bug?extid=8743fca924afed42f93e
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/cc2dd4be620e/disk-5c43d43b.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/81d40d99ddbf/vmlinux-5c43d43b.xz
kernel image: https://storage.googleapis.com/syzbot-assets/bc6aed0f2bc5/Image-5c43d43b.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+8743fc...@syzkaller.appspotmail.com

==================================================================
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): [<ffff8000802b5d48>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline]
hardirqs last enabled at (42591): [<ffff8000802b5d48>] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942
hardirqs last disabled at (42590): [<ffff80008b3cafa4>] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416
softirqs last enabled at (40096): [<ffff8000801f6dfc>] softirq_handle_end kernel/softirq.c:400 [inline]
softirqs last enabled at (40096): [<ffff8000801f6dfc>] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582
softirqs last disabled at (40063): [<ffff800080020de8>] __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): [<ffff8000802b5d48>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline]
hardirqs last enabled at (42591): [<ffff8000802b5d48>] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942
hardirqs last disabled at (42590): [<ffff80008b3cafa4>] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416
softirqs last enabled at (40096): [<ffff8000801f6dfc>] softirq_handle_end kernel/softirq.c:400 [inline]
softirqs last enabled at (40096): [<ffff8000801f6dfc>] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582
softirqs last disabled at (40063): [<ffff800080020de8>] __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): [<ffff8000802b5d48>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline]
hardirqs last enabled at (42591): [<ffff8000802b5d48>] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942
hardirqs last disabled at (42590): [<ffff80008b3cafa4>] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416
softirqs last enabled at (40096): [<ffff8000801f6dfc>] softirq_handle_end kernel/softirq.c:400 [inline]
softirqs last enabled at (40096): [<ffff8000801f6dfc>] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582
softirqs last disabled at (40063): [<ffff800080020de8>] __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): [<ffff8000802b5d48>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline]
hardirqs last enabled at (42591): [<ffff8000802b5d48>] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942
hardirqs last disabled at (42590): [<ffff80008b3cafa4>] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416
softirqs last enabled at (40096): [<ffff8000801f6dfc>] softirq_handle_end kernel/softirq.c:400 [inline]
softirqs last enabled at (40096): [<ffff8000801f6dfc>] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582
softirqs last disabled at (40063): [<ffff800080020de8>] __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): [<ffff8000802b5d48>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline]
hardirqs last enabled at (42591): [<ffff8000802b5d48>] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942
hardirqs last disabled at (42590): [<ffff80008b3cafa4>] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416
softirqs last enabled at (40096): [<ffff8000801f6dfc>] softirq_handle_end kernel/softirq.c:400 [inline]
softirqs last enabled at (40096): [<ffff8000801f6dfc>] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582
softirqs last disabled at (40063): [<ffff800080020de8>] __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): [<ffff8000802b5d48>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline]
hardirqs last enabled at (42591): [<ffff8000802b5d48>] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942
hardirqs last disabled at (42590): [<ffff80008b3cafa4>] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416
softirqs last enabled at (40096): [<ffff8000801f6dfc>] softirq_handle_end kernel/softirq.c:400 [inline]
softirqs last enabled at (40096): [<ffff8000801f6dfc>] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582
softirqs last disabled at (40063): [<ffff800080020de8>] __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): [<ffff8000802b5d48>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline]
hardirqs last enabled at (42591): [<ffff8000802b5d48>] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942
hardirqs last disabled at (42590): [<ffff80008b3cafa4>] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416
softirqs last enabled at (40096): [<ffff8000801f6dfc>] softirq_handle_end kernel/softirq.c:400 [inline]
softirqs last enabled at (40096): [<ffff8000801f6dfc>] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582
softirqs last disabled at (40063): [<ffff800080020de8>] __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): [<ffff8000802b5d48>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline]
hardirqs last enabled at (42591): [<ffff8000802b5d48>] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942
hardirqs last disabled at (42590): [<ffff80008b3cafa4>] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416
softirqs last enabled at (40096): [<ffff8000801f6dfc>] softirq_handle_end kernel/softirq.c:400 [inline]
softirqs last enabled at (40096): [<ffff8000801f6dfc>] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582
softirqs last disabled at (40063): [<ffff800080020de8>] __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): [<ffff8000802b5d48>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline]
hardirqs last enabled at (42591): [<ffff8000802b5d48>] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942
hardirqs last disabled at (42590): [<ffff80008b3cafa4>] __schedule+0x2b4/0x2418 kernel/sched/core.c:6416
softirqs last enabled at (40096): [<ffff8000801f6dfc>] softirq_handle_end kernel/softirq.c:400 [inline]
softirqs last enabled at (40096): [<ffff8000801f6dfc>] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582
softirqs last disabled at (40063): [<ffff800080020de8>] __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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Sep 15, 2024, 3:21:21 PMSep 15
to ja...@suse.com, linux-...@vger.kernel.org, syzkall...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: d42f7708e27c Merge tag 'for-linus-6.11' of git://git.kerne..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=12725407980000
kernel config: https://syzkaller.appspot.com/x/.config?x=61d235cb8d15001c
dashboard link: https://syzkaller.appspot.com/bug?extid=8743fca924afed42f93e
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11725407980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=161797c7980000

Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/7bc7510fe41f/non_bootable_disk-d42f7708.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/27fdaed14a4f/vmlinux-d42f7708.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f65db4a0147a/bzImage-d42f7708.xz
mounted in repro #1: https://storage.googleapis.com/syzbot-assets/35d929f5e424/mount_0.gz
mounted in repro #2: https://storage.googleapis.com/syzbot-assets/5c402e34d952/mount_1.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+8743fc...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: use-after-free in crc_itu_t+0x1d5/0x2b0 lib/crc-itu-t.c:60
Read of size 1 at addr ffff88804575c000 by task syz-executor293/5222

CPU: 0 UID: 0 PID: 5222 Comm: syz-executor293 Not tainted 6.11.0-rc7-syzkaller-00151-gd42f7708e27c #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:93 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119
print_address_description mm/kasan/report.c:377 [inline]
print_report+0x169/0x550 mm/kasan/report.c:488
kasan_report+0x143/0x180 mm/kasan/report.c:601
crc_itu_t+0x1d5/0x2b0 lib/crc-itu-t.c:60
udf_update_tag+0x70/0x6a0 fs/udf/misc.c:261
udf_write_aext+0x4d8/0x7b0 fs/udf/inode.c:2146
extent_trunc+0x2f7/0x4a0 fs/udf/truncate.c:46
udf_truncate_extents+0x627/0x12d0 fs/udf/truncate.c:251
udf_setsize+0xe85/0x1280 fs/udf/inode.c:1289
udf_setattr+0x3c7/0x5d0 fs/udf/file.c:236
notify_change+0xbca/0xe90 fs/attr.c:503
do_truncate+0x220/0x310 fs/open.c:65
handle_truncate fs/namei.c:3381 [inline]
do_open fs/namei.c:3731 [inline]
path_openat+0x2ced/0x3470 fs/namei.c:3886
do_filp_open+0x235/0x490 fs/namei.c:3913
do_sys_openat2+0x13e/0x1d0 fs/open.c:1416
do_sys_open fs/open.c:1431 [inline]
__do_sys_creat fs/open.c:1507 [inline]
__se_sys_creat fs/open.c:1501 [inline]
__x64_sys_creat+0x123/0x170 fs/open.c:1501
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f27b96eed79
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 91 1a 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f27b965d218 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f27b9777728 RCX: 00007f27b96eed79
RDX: 00007f27b96c7596 RSI: 0000000000000004 RDI: 0000000020000240
RBP: 00007f27b9777720 R08: 00007ffdf39855a7 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f27b9743964
R13: 0031656c69662f2e R14: 00007f27b9742068 R15: 6f6f6c2f7665642f
</TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x1a pfn:0x4575c
flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
raw: 04fff00000000000 ffffea000115d748 ffffea00011567c8 0000000000000000
raw: 000000000000001a 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x148c48(GFP_NOFS|__GFP_NOFAIL|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 5220, tgid 5219 (syz-executor293), ts 100640669004, free_ts 100713641467
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1500
prep_new_page mm/page_alloc.c:1508 [inline]
get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3446
__alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4702
alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2263
alloc_pages_noprof mm/mempolicy.c:2343 [inline]
folio_alloc_noprof+0x128/0x180 mm/mempolicy.c:2350
filemap_alloc_folio_noprof+0xdf/0x500 mm/filemap.c:1008
__filemap_get_folio+0x44e/0xc10 mm/filemap.c:1950
grow_dev_folio fs/buffer.c:1047 [inline]
grow_buffers fs/buffer.c:1113 [inline]
__getblk_slow fs/buffer.c:1139 [inline]
bdev_getblk+0x1d8/0x550 fs/buffer.c:1441
__bread_gfp+0x86/0x400 fs/buffer.c:1495
sb_bread include/linux/buffer_head.h:347 [inline]
udf_read_tagged+0xa6/0xe00 fs/udf/misc.c:199
udf_read_inode fs/udf/inode.c:1352 [inline]
__udf_iget+0x408/0x3e60 fs/udf/inode.c:1939
udf_iget fs/udf/udfdecl.h:152 [inline]
udf_lookup+0x1e9/0x2b0 fs/udf/namei.c:127
lookup_open fs/namei.c:3556 [inline]
open_last_lookups fs/namei.c:3647 [inline]
path_openat+0x11cc/0x3470 fs/namei.c:3883
do_filp_open+0x235/0x490 fs/namei.c:3913
do_sys_openat2+0x13e/0x1d0 fs/open.c:1416
do_sys_open fs/open.c:1431 [inline]
__do_sys_open fs/open.c:1439 [inline]
__se_sys_open fs/open.c:1435 [inline]
__x64_sys_open+0x225/0x270 fs/open.c:1435
page last free pid 5221 tgid 5219 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1101 [inline]
free_unref_folios+0x103a/0x1b00 mm/page_alloc.c:2667
folios_put_refs+0x76e/0x860 mm/swap.c:1039
folio_batch_release include/linux/pagevec.h:101 [inline]
mapping_try_invalidate+0x3b1/0x4f0 mm/truncate.c:515
loop_set_status+0x1ab/0x900 drivers/block/loop.c:1264
lo_ioctl+0xcc2/0x1f60
blkdev_ioctl+0x580/0x6b0 block/ioctl.c:676
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:907 [inline]
__se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
ffff88804575bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88804575bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88804575c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff88804575c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff88804575c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages