syzbot


KASAN: out-of-bounds Read in leaf_insert_into_buf

Status: upstream: reported C repro on 2023/09/02 13:42
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+1d0e2d4c915a7e465985@syzkaller.appspotmail.com
First crash: 287d, last: 24d
Bug presence (1)
Date Name Commit Repro Result
2023/09/02 upstream (ToT) 0468be89b3fa C [report] KASAN: out-of-bounds Read in leaf_insert_into_buf
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: out-of-bounds Read in leaf_insert_into_buf origin:upstream C 1 18d 299d 0/3 upstream: reported C repro on 2023/08/21 01:29
upstream KASAN: use-after-free Read in leaf_insert_into_buf reiserfs 1 515d 511d 0/27 auto-obsoleted due to no activity on 2023/04/17 00:48
upstream KASAN: use-after-free Read in leaf_insert_into_buf (2) reiserfs 4 352d 382d 0/27 auto-obsoleted due to no activity on 2023/10/07 08:10
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2024/05/21 23:35 1h28m bisect fix linux-6.1.y job log (0) log
2024/04/17 20:03 1h54m bisect fix linux-6.1.y job log (0) log
2024/03/14 22:32 2h05m bisect fix linux-6.1.y job log (0) log
2024/02/09 17:10 2h46m bisect fix linux-6.1.y job log (0) log
2023/12/15 15:07 1h33m bisect fix linux-6.1.y job log (0) log
2023/11/14 15:28 1h36m bisect fix linux-6.1.y job log (0) log
2023/10/11 20:47 1h51m bisect fix linux-6.1.y job log (0) log

Sample crash report:
REISERFS (device loop0): Using r5 hash to sort names
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
==================================================================
BUG: KASAN: out-of-bounds in leaf_insert_into_buf+0x1f4/0x748 fs/reiserfs/lbalance.c:933
Read of size 18446744073709551384 at addr ffff0000e2a50000 by task syz-executor317/4222

CPU: 1 PID: 4222 Comm: syz-executor317 Not tainted 6.1.70-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Call trace:
 dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:284 [inline]
 print_report+0x174/0x4c0 mm/kasan/report.c:395
 kasan_report+0xd4/0x130 mm/kasan/report.c:495
 kasan_check_range+0x264/0x2a4 mm/kasan/generic.c:189
 memmove+0x48/0x90 mm/kasan/shadow.c:54
 leaf_insert_into_buf+0x1f4/0x748 fs/reiserfs/lbalance.c:933
 balance_leaf_new_nodes_insert fs/reiserfs/do_balan.c:1001 [inline]
 balance_leaf_new_nodes fs/reiserfs/do_balan.c:1243 [inline]
 balance_leaf+0x61f0/0xe860 fs/reiserfs/do_balan.c:1450
 do_balance+0x27c/0x788 fs/reiserfs/do_balan.c:1888
 reiserfs_insert_item+0x940/0xa84 fs/reiserfs/stree.c:2261
 indirect2direct+0x58c/0xa40 fs/reiserfs/tail_conversion.c:283
 maybe_indirect_to_direct fs/reiserfs/stree.c:1587 [inline]
 reiserfs_cut_from_item+0x854/0x1c98 fs/reiserfs/stree.c:1694
 reiserfs_do_truncate+0x89c/0x11c8 fs/reiserfs/stree.c:1973
 reiserfs_truncate_file+0x510/0xb1c fs/reiserfs/inode.c:2310
 reiserfs_truncate_failed_write fs/reiserfs/inode.c:2743 [inline]
 reiserfs_write_end+0x640/0x800 fs/reiserfs/inode.c:2958
 generic_perform_write+0x384/0x55c mm/filemap.c:3819
 __generic_file_write_iter+0x168/0x388 mm/filemap.c:3936
 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:3968
 call_write_iter include/linux/fs.h:2248 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x610/0x914 fs/read_write.c:584
 ksys_write+0x15c/0x26c fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __arm64_sys_write+0x7c/0x90 fs/read_write.c:646
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585

The buggy address belongs to the physical page:
page:00000000e6292fba refcount:3 mapcount:0 mapping:00000000ab1996da index:0x0 pfn:0x122a50
memcg:ffff0000c0938000
aops:reiserfs_address_space_operations ino:4 dentry name:""
flags: 0x5ffd0000000201f(locked|referenced|uptodate|dirty|lru|private|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffd0000000201f fffffc0006cba388 fffffc000318cb88 ffff0000e20890f8
raw: 0000000000000000 ffff0000e206b0e8 00000003ffffffff ffff0000c0938000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff0000e2a4ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff0000e2a4ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff0000e2a50000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                   ^
 ffff0000e2a50080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff0000e2a50100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x0, magic = 0x200, owner = 0xffff800012289b80, curr 0xffff0000d53f0000, list not empty
WARNING: CPU: 1 PID: 4222 at kernel/locking/rwsem.c:1292 __down_read_trylock kernel/locking/rwsem.c:1292 [inline]
WARNING: CPU: 1 PID: 4222 at kernel/locking/rwsem.c:1292 down_read_trylock+0x378/0x3bc kernel/locking/rwsem.c:1559
Modules linked in:
CPU: 1 PID: 4222 Comm: syz-executor317 Tainted: G    B              6.1.70-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __down_read_trylock kernel/locking/rwsem.c:1292 [inline]
pc : down_read_trylock+0x378/0x3bc kernel/locking/rwsem.c:1559
lr : __down_read_trylock kernel/locking/rwsem.c:1292 [inline]
lr : down_read_trylock+0x378/0x3bc kernel/locking/rwsem.c:1559
sp : ffff80001dbd5c20
x29: ffff80001dbd5c90 x28: 000000009600004f x27: 0000000094000000
x26: 1fffe0001bc7d6e8 x25: 0000000000000000 x24: ffff0000d53f0000
x23: ffff800012289b80 x22: 0000000000000200 x21: ffff0000de3eb730
x20: ffff0000de3eb6d8 x19: ffff80000885d084 x18: ffff80001dbd6d6c
x17: 0000000000000000 x16: ffff80001214740c x15: 0000000000000000
x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000ff0100 x10: 0000000000000000 x9 : 8f50b97fd5cb8600
x8 : 8f50b97fd5cb8600 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001dbd5518 x4 : ffff800015902b20 x3 : ffff80000858785c
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000
Call trace:
 __down_read_trylock kernel/locking/rwsem.c:1292 [inline]
 down_read_trylock+0x378/0x3bc kernel/locking/rwsem.c:1559
 mmap_read_trylock include/linux/mmap_lock.h:136 [inline]
 get_mmap_lock_carefully mm/memory.c:5284 [inline]
 lock_mm_and_find_vma+0x38/0x2e8 mm/memory.c:5346
 do_page_fault+0x2d0/0x890 arch/arm64/mm/fault.c:577
 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:803
 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:367
 el1h_64_sync_handler+0x60/0xac arch/arm64/kernel/entry-common.c:427
 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:580
 __memcpy+0x1e8/0x240 arch/arm64/lib/memcpy.S:220
 leaf_insert_into_buf+0x2ac/0x748 fs/reiserfs/lbalance.c:948
 balance_leaf_new_nodes_insert fs/reiserfs/do_balan.c:1001 [inline]
 balance_leaf_new_nodes fs/reiserfs/do_balan.c:1243 [inline]
 balance_leaf+0x61f0/0xe860 fs/reiserfs/do_balan.c:1450
 do_balance+0x27c/0x788 fs/reiserfs/do_balan.c:1888
 reiserfs_insert_item+0x940/0xa84 fs/reiserfs/stree.c:2261
 indirect2direct+0x58c/0xa40 fs/reiserfs/tail_conversion.c:283
 maybe_indirect_to_direct fs/reiserfs/stree.c:1587 [inline]
 reiserfs_cut_from_item+0x854/0x1c98 fs/reiserfs/stree.c:1694
 reiserfs_do_truncate+0x89c/0x11c8 fs/reiserfs/stree.c:1973
 reiserfs_truncate_file+0x510/0xb1c fs/reiserfs/inode.c:2310
 reiserfs_truncate_failed_write fs/reiserfs/inode.c:2743 [inline]
 reiserfs_write_end+0x640/0x800 fs/reiserfs/inode.c:2958
 generic_perform_write+0x384/0x55c mm/filemap.c:3819
 __generic_file_write_iter+0x168/0x388 mm/filemap.c:3936
 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:3968
 call_write_iter include/linux/fs.h:2248 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x610/0x914 fs/read_write.c:584
 ksys_write+0x15c/0x26c fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __arm64_sys_write+0x7c/0x90 fs/read_write.c:646
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 48167
hardirqs last  enabled at (48167): [<ffff8000122133c8>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline]
hardirqs last  enabled at (48167): [<ffff8000122133c8>] __schedule+0xff8/0x1c98 kernel/sched/core.c:6564
hardirqs last disabled at (48166): [<ffff800012212674>] __schedule+0x2a4/0x1c98 kernel/sched/core.c:6457
softirqs last  enabled at (47758): [<ffff800008033064>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (47756): [<ffff800008033030>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4222 at kernel/fork.c:790 __mmdrop+0x2f4/0x3d8 kernel/fork.c:790
Modules linked in:
CPU: 1 PID: 4222 Comm: syz-executor317 Tainted: G    B   W          6.1.70-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __mmdrop+0x2f4/0x3d8 kernel/fork.c:790
lr : __mmdrop+0x2f4/0x3d8 kernel/fork.c:790
sp : ffff80001dbd5840
x29: ffff80001dbd5840 x28: 1fffe000368729f7 x27: ffff800015821130
x26: dfff800000000000 x25: 0000000000000402 x24: ffff0001b4394fb8
x23: ffff0000d81d37b4 x22: dfff800000000000 x21: ffff0000d53f0000
x20: ffff0000d53f04e0 x19: ffff0000de3eb600 x18: 1fffe00036870376
x17: ffff80001581d000 x16: ffff800012145f4c x15: ffff0001b4381bbc
x14: ffff0001b4381bb8 x13: 1fffe00036870376 x12: 0000000000000001
x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff8000081a05f8
x8 : ffff0000d53f0000 x7 : 1fffe00036870377 x6 : ffff80000827c3a8
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80000826a0f4
x2 : 0000000000000001 x1 : 0000000000000004 x0 : ffff0000de3eb600
Call trace:
 __mmdrop+0x2f4/0x3d8 kernel/fork.c:790
 mmdrop include/linux/sched/mm.h:50 [inline]
 mmdrop_sched include/linux/sched/mm.h:78 [inline]
 finish_task_switch+0x568/0x624 kernel/sched/core.c:5149
 context_switch kernel/sched/core.c:5248 [inline]
 __schedule+0xee8/0x1c98 kernel/sched/core.c:6558
 preempt_schedule_irq+0x8c/0x1b8 kernel/sched/core.c:6870
 arm64_preempt_schedule_irq arch/arm64/kernel/entry-common.c:265 [inline]
 __el1_irq arch/arm64/kernel/entry-common.c:474 [inline]
 el1_interrupt+0x4c/0x68 arch/arm64/kernel/entry-common.c:486
 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491
 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:581
 __down_read_trylock kernel/locking/rwsem.c:1292 [inline]
 down_read_trylock+0x37c/0x3bc kernel/locking/rwsem.c:1559
 mmap_read_trylock include/linux/mmap_lock.h:136 [inline]
 get_mmap_lock_carefully mm/memory.c:5284 [inline]
 lock_mm_and_find_vma+0x38/0x2e8 mm/memory.c:5346
 do_page_fault+0x2d0/0x890 arch/arm64/mm/fault.c:577
 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:803
 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:367
 el1h_64_sync_handler+0x60/0xac arch/arm64/kernel/entry-common.c:427
 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:580
 __memcpy+0x1e8/0x240 arch/arm64/lib/memcpy.S:220
 leaf_insert_into_buf+0x2ac/0x748 fs/reiserfs/lbalance.c:948
 balance_leaf_new_nodes_insert fs/reiserfs/do_balan.c:1001 [inline]
 balance_leaf_new_nodes fs/reiserfs/do_balan.c:1243 [inline]
 balance_leaf+0x61f0/0xe860 fs/reiserfs/do_balan.c:1450
 do_balance+0x27c/0x788 fs/reiserfs/do_balan.c:1888
 reiserfs_insert_item+0x940/0xa84 fs/reiserfs/stree.c:2261
 indirect2direct+0x58c/0xa40 fs/reiserfs/tail_conversion.c:283
 maybe_indirect_to_direct fs/reiserfs/stree.c:1587 [inline]
 reiserfs_cut_from_item+0x854/0x1c98 fs/reiserfs/stree.c:1694
 reiserfs_do_truncate+0x89c/0x11c8 fs/reiserfs/stree.c:1973
 reiserfs_truncate_file+0x510/0xb1c fs/reiserfs/inode.c:2310
 reiserfs_truncate_failed_write fs/reiserfs/inode.c:2743 [inline]
 reiserfs_write_end+0x640/0x800 fs/reiserfs/inode.c:2958
 generic_perform_write+0x384/0x55c mm/filemap.c:3819
 __generic_file_write_iter+0x168/0x388 mm/filemap.c:3936
 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:3968
 call_write_iter include/linux/fs.h:2248 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x610/0x914 fs/read_write.c:584
 ksys_write+0x15c/0x26c fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __arm64_sys_write+0x7c/0x90 fs/read_write.c:646
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 48167
hardirqs last  enabled at (48167): [<ffff8000122133c8>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline]
hardirqs last  enabled at (48167): [<ffff8000122133c8>] __schedule+0xff8/0x1c98 kernel/sched/core.c:6564
hardirqs last disabled at (48166): [<ffff800012212674>] __schedule+0x2a4/0x1c98 kernel/sched/core.c:6457
softirqs last  enabled at (47758): [<ffff800008033064>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (47756): [<ffff800008033030>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4222 at kernel/fork.c:791 __mmdrop+0x300/0x3d8 kernel/fork.c:791
Modules linked in:
CPU: 1 PID: 4222 Comm: syz-executor317 Tainted: G    B   W          6.1.70-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __mmdrop+0x300/0x3d8 kernel/fork.c:791
lr : __mmdrop+0x300/0x3d8 kernel/fork.c:791
sp : ffff80001dbd5840
x29: ffff80001dbd5840
 x28: 1fffe000368729f7
 x27: ffff800015821130

x26: dfff800000000000
 x25: 0000000000000402
 x24: ffff0001b4394fb8

x23: ffff0000d81d37b4
 x22: dfff800000000000
 x21: ffff0000d53f0000

x20: ffff0000d53f04e8
 x19: ffff0000de3eb600
 x18: 1fffe00036870376

x17: ffff80001581d000
 x16: ffff800012145f4c
 x15: ffff0001b4381bbc

x14: ffff0001b4381bb8
 x13: 1fffe00036870376
 x12: 0000000000000001

x11: 0000000000ff0100
 x10: 0000000000000000
 x9 : ffff8000081a0604

x8 : ffff0000d53f0000
 x7 : 1fffe00036870377
 x6 : ffff80000827c3a8

x5 : 0000000000000000
 x4 : 0000000000000001
 x3 : ffff80000826a0f4

x2 : 0000000000000001
 x1 : 0000000000000004
 x0 : ffff0000de3eb600

Call trace:
 __mmdrop+0x300/0x3d8 kernel/fork.c:791
 mmdrop include/linux/sched/mm.h:50 [inline]
 mmdrop_sched include/linux/sched/mm.h:78 [inline]
 finish_task_switch+0x568/0x624 kernel/sched/core.c:5149
 context_switch kernel/sched/core.c:5248 [inline]
 __schedule+0xee8/0x1c98 kernel/sched/core.c:6558
 preempt_schedule_irq+0x8c/0x1b8 kernel/sched/core.c:6870
 arm64_preempt_schedule_irq arch/arm64/kernel/entry-common.c:265 [inline]
 __el1_irq arch/arm64/kernel/entry-common.c:474 [inline]
 el1_interrupt+0x4c/0x68 arch/arm64/kernel/entry-common.c:486
 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491
 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:581
 __down_read_trylock kernel/locking/rwsem.c:1292 [inline]
 down_read_trylock+0x37c/0x3bc kernel/locking/rwsem.c:1559
 mmap_read_trylock include/linux/mmap_lock.h:136 [inline]
 get_mmap_lock_carefully mm/memory.c:5284 [inline]
 lock_mm_and_find_vma+0x38/0x2e8 mm/memory.c:5346
 do_page_fault+0x2d0/0x890 arch/arm64/mm/fault.c:577
 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:803
 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:367
 el1h_64_sync_handler+0x60/0xac arch/arm64/kernel/entry-common.c:427
 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:580
 __memcpy+0x1e8/0x240 arch/arm64/lib/memcpy.S:220
 leaf_insert_into_buf+0x2ac/0x748 fs/reiserfs/lbalance.c:948
 balance_leaf_new_nodes_insert fs/reiserfs/do_balan.c:1001 [inline]
 balance_leaf_new_nodes fs/reiserfs/do_balan.c:1243 [inline]
 balance_leaf+0x61f0/0xe860 fs/reiserfs/do_balan.c:1450
 do_balance+0x27c/0x788 fs/reiserfs/do_balan.c:1888
 reiserfs_insert_item+0x940/0xa84 fs/reiserfs/stree.c:2261
 indirect2direct+0x58c/0xa40 fs/reiserfs/tail_conversion.c:283
 maybe_indirect_to_direct fs/reiserfs/stree.c:1587 [inline]
 reiserfs_cut_from_item+0x854/0x1c98 fs/reiserfs/stree.c:1694
 reiserfs_do_truncate+0x89c/0x11c8 fs/reiserfs/stree.c:1973
 reiserfs_truncate_file+0x510/0xb1c fs/reiserfs/inode.c:2310
 reiserfs_truncate_failed_write fs/reiserfs/inode.c:2743 [inline]
 reiserfs_write_end+0x640/0x800 fs/reiserfs/inode.c:2958
 generic_perform_write+0x384/0x55c mm/filemap.c:3819
 __generic_file_write_iter+0x168/0x388 mm/filemap.c:3936
 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:3968
 call_write_iter include/linux/fs.h:2248 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x610/0x914 fs/read_write.c:584
 ksys_write+0x15c/0x26c fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __arm64_sys_write+0x7c/0x90 fs/read_write.c:646
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 48167
hardirqs last  enabled at (48167): [<ffff8000122133c8>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline]
hardirqs last  enabled at (48167): [<ffff8000122133c8>] __schedule+0xff8/0x1c98 kernel/sched/core.c:6564
hardirqs last disabled at (48166): [<ffff800012212674>] __schedule+0x2a4/0x1c98 kernel/sched/core.c:6457
softirqs last  enabled at (47758): [<ffff800008033064>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (47756): [<ffff800008033030>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kernel BUG at mm/page_alloc.c:5644!

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/03 01:46 linux-6.1.y a507f147e6f0 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 KASAN: out-of-bounds Read in leaf_insert_into_buf
2023/09/02 14:19 linux-6.1.y c2cbfe5f5122 696ea0d2 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 KASAN: out-of-bounds Read in leaf_insert_into_buf
2023/09/02 13:40 linux-6.1.y c2cbfe5f5122 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: out-of-bounds Read in leaf_insert_into_buf
* Struck through repros no longer work on HEAD.