[v5.15] KASAN: use-after-free Read in r1buf_pool_alloc

0 views
Skip to first unread message

syzbot

unread,
Aug 5, 2026, 4:49:39 AM (yesterday) Aug 5
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6e2fd6534337 Linux 5.15.213
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14b1f649580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f161cbc9aef65db0
dashboard link: https://syzkaller.appspot.com/bug?extid=0b9a3f1ba310f73be3f4
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d7b46606b13d/disk-6e2fd653.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/da120fdeb081/vmlinux-6e2fd653.xz
kernel image: https://storage.googleapis.com/syzbot-assets/3c2643457e3f/bzImage-6e2fd653.xz

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

md: recovery of RAID array md0
md: md0: recovery done.
==================================================================
BUG: KASAN: use-after-free in r1buf_pool_alloc+0x77e/0xcc0 drivers/md/raid1.c:183
Read of size 4 at addr ffff888072dda5e8 by task md0_resync/4600

CPU: 0 PID: 4600 Comm: md0_resync Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
<TASK>
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
print_address_description+0x60/0x2d0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:434 [inline]
kasan_report+0xdf/0x130 mm/kasan/report.c:451
r1buf_pool_alloc+0x77e/0xcc0 drivers/md/raid1.c:183
mempool_init_node+0x1e5/0x480 mm/mempool.c:202
mempool_init+0x36/0x50 mm/mempool.c:231
init_resync drivers/md/raid1.c:2621 [inline]
raid1_sync_request+0x2a9/0x2fb0 drivers/md/raid1.c:2671
md_do_sync+0x3701/0x40f0 drivers/md/md.c:9103
md_thread+0x27a/0x4e0 drivers/md/md.c:7974
kthread+0x42e/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
</TASK>

Allocated by task 4561:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
____kasan_kmalloc mm/kasan/common.c:513 [inline]
__kasan_kmalloc+0xaf/0xe0 mm/kasan/common.c:522
kmalloc include/linux/slab.h:607 [inline]
raid1_reshape+0x785/0x15f0 drivers/md/raid1.c:3296
chunk_size_store+0x2a1/0x430 drivers/md/md.c:4321
md_attr_store+0xdd/0x130 drivers/md/md.c:5636
kernfs_fop_write_iter+0x3a8/0x500 fs/kernfs/file.c:296
call_write_iter include/linux/fs.h:2173 [inline]
new_sync_write fs/read_write.c:507 [inline]
vfs_write+0x748/0xd70 fs/read_write.c:594
ksys_write+0x153/0x260 fs/read_write.c:647
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0

Freed by task 4602:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:46
kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360
____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366
kasan_slab_free include/linux/kasan.h:230 [inline]
slab_free_hook mm/slub.c:1710 [inline]
slab_free_freelist_hook+0xec/0x170 mm/slub.c:1736
slab_free mm/slub.c:3504 [inline]
kfree+0xef/0x2a0 mm/slub.c:4564
raid1_reshape+0x1142/0x15f0 drivers/md/raid1.c:3339
chunk_size_store+0x2a1/0x430 drivers/md/md.c:4321
md_attr_store+0xdd/0x130 drivers/md/md.c:5636
kernfs_fop_write_iter+0x3a8/0x500 fs/kernfs/file.c:296
call_write_iter include/linux/fs.h:2173 [inline]
new_sync_write fs/read_write.c:507 [inline]
vfs_write+0x748/0xd70 fs/read_write.c:594
ksys_write+0x153/0x260 fs/read_write.c:647
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0

The buggy address belongs to the object at ffff888072dda5e0
which belongs to the cache kmalloc-16 of size 16
The buggy address is located 8 bytes inside of
16-byte region [ffff888072dda5e0, ffff888072dda5f0)
The buggy address belongs to the page:
page:ffffea0001cb7680 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x72dda
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 0000000000000000 dead000000000122 ffff888016c413c0
raw: 0000000000000000 0000000000800080 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 4187, ts 87226299192, free_ts 87211483751
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192
__alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501
__alloc_pages_node include/linux/gfp.h:570 [inline]
alloc_slab_page mm/slub.c:1782 [inline]
allocate_slab mm/slub.c:1917 [inline]
new_slab+0xb6/0x4b0 mm/slub.c:1980
___slab_alloc+0x807/0xdd0 mm/slub.c:3013
__slab_alloc mm/slub.c:3100 [inline]
slab_alloc_node mm/slub.c:3191 [inline]
__kmalloc_node+0x142/0x3a0 mm/slub.c:4456
kmalloc_node include/linux/slab.h:630 [inline]
kvmalloc_node+0x84/0x130 mm/util.c:619
xt_jumpstack_alloc net/netfilter/x_tables.c:1377 [inline]
xt_replace_table+0x160/0x750 net/netfilter/x_tables.c:1416
__do_replace+0x16f/0xa00 net/ipv6/netfilter/ip6_tables.c:1081
do_replace net/ipv6/netfilter/ip6_tables.c:1158 [inline]
do_ip6t_set_ctl+0xaa4/0xd90 net/ipv6/netfilter/ip6_tables.c:1643
nf_setsockopt+0x25f/0x280 net/netfilter/nf_sockopt.c:101
ipv6_setsockopt+0x20ba/0x3cc0 net/ipv6/ipv6_sockglue.c:1014
tcp_setsockopt+0x229/0x1e60 net/ipv4/tcp.c:3722
__sys_setsockopt+0x2bf/0x3d0 net/socket.c:2213
__do_sys_setsockopt net/socket.c:2224 [inline]
__se_sys_setsockopt net/socket.c:2221 [inline]
__x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2221
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1340 [inline]
free_pcp_prepare mm/page_alloc.c:1391 [inline]
free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317
free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396
qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176
kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283
__kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444
kasan_slab_alloc include/linux/kasan.h:254 [inline]
slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519
slab_alloc_node mm/slub.c:3225 [inline]
slab_alloc mm/slub.c:3233 [inline]
kmem_cache_alloc+0x15d/0x280 mm/slub.c:3238
getname_flags+0xb7/0x4f0 fs/namei.c:138
user_path_at_empty+0x2a/0x190 fs/namei.c:2890
user_path_at include/linux/namei.h:57 [inline]
do_utimes_path fs/utimes.c:94 [inline]
do_utimes+0x12e/0x2a0 fs/utimes.c:144
__do_sys_utimensat fs/utimes.c:163 [inline]
__se_sys_utimensat fs/utimes.c:147 [inline]
__x64_sys_utimensat+0x15b/0x240 fs/utimes.c:147
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0

Memory state around the buggy address:
ffff888072dda480: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
ffff888072dda500: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
>ffff888072dda580: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
^
ffff888072dda600: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
ffff888072dda680: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
==================================================================


---
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,
Aug 5, 2026, 9:35:31 PM (yesterday) Aug 5
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: fb28aa725e05 Linux 6.1.180
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17f2bcc6580000
kernel config: https://syzkaller.appspot.com/x/.config?x=872c04466179833f
dashboard link: https://syzkaller.appspot.com/bug?extid=7a844251cb4c165b334e
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d420eb944682/disk-fb28aa72.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/affae450ab23/vmlinux-fb28aa72.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b9e6919ed519/Image-fb28aa72.gz.xz

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

md: recovery of RAID array md0
md: md0: recovery done.
==================================================================
BUG: KASAN: use-after-free in r1buf_pool_alloc+0x710/0xbc8 drivers/md/raid1.c:184
Read of size 4 at addr ffff0000f4948908 by task md0_resync/6570

CPU: 0 PID: 6570 Comm: md0_resync Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026
Call trace:
dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
__dump_stack+0x30/0x40 lib/dump_stack.c:88
dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106
print_address_description+0x88/0x218 mm/kasan/report.c:316
print_report+0x50/0x68 mm/kasan/report.c:420
kasan_report+0xa8/0xfc mm/kasan/report.c:524
__asan_report_load4_noabort+0x2c/0x38 mm/kasan/report_generic.c:350
r1buf_pool_alloc+0x710/0xbc8 drivers/md/raid1.c:184
mempool_init_node+0x1c4/0x470 mm/mempool.c:221
mempool_init+0x50/0x68 mm/mempool.c:250
init_resync drivers/md/raid1.c:2629 [inline]
raid1_sync_request+0x22c/0x26e4 drivers/md/raid1.c:2679
md_do_sync+0x2e18/0x36ec drivers/md/md.c:9158
md_thread+0x1e0/0x3cc drivers/md/md.c:8000
kthread+0x254/0x2e0 kernel/kthread.c:376
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850

Allocated by task 6504:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4c/0x80 mm/kasan/common.c:53
kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505
____kasan_kmalloc mm/kasan/common.c:375 [inline]
__kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:384
kasan_kmalloc include/linux/kasan.h:211 [inline]
kmalloc_trace+0x7c/0x94 mm/slab_common.c:1031
kmalloc include/linux/slab.h:563 [inline]
raid1_reshape+0x590/0x102c drivers/md/raid1.c:3289
update_raid_disks+0x3dc/0x520 drivers/md/md.c:7380
raid_disks_store+0x164/0x450 drivers/md/md.c:4224
md_attr_store+0x168/0x234 drivers/md/md.c:5626
sysfs_kf_write+0x1f8/0x274 fs/sysfs/file.c:140
kernfs_fop_write_iter+0x390/0x4b4 fs/kernfs/file.c:352
call_write_iter include/linux/fs.h:2265 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x3c8/0x7c8 fs/read_write.c:584
ksys_write+0x12c/0x228 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/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 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

Freed by task 6569:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4c/0x80 mm/kasan/common.c:53
kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:516
____kasan_slab_free+0x148/0x1b0 mm/kasan/common.c:237
__kasan_slab_free+0x18/0x28 mm/kasan/common.c:245
kasan_slab_free include/linux/kasan.h:177 [inline]
slab_free_hook mm/slub.c:1729 [inline]
slab_free_freelist_hook+0x16c/0x1e8 mm/slub.c:1755
slab_free mm/slub.c:3687 [inline]
__kmem_cache_free+0xbc/0x21c mm/slub.c:3700
kfree+0xd0/0x1a8 mm/slab_common.c:988
raid1_reshape+0xc74/0x102c drivers/md/raid1.c:3332
chunk_size_store+0x1ec/0x358 drivers/md/md.c:4290
md_attr_store+0x168/0x234 drivers/md/md.c:5626
sysfs_kf_write+0x1f8/0x274 fs/sysfs/file.c:140
kernfs_fop_write_iter+0x390/0x4b4 fs/kernfs/file.c:352
call_write_iter include/linux/fs.h:2265 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x3c8/0x7c8 fs/read_write.c:584
ksys_write+0x12c/0x228 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/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 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 object at ffff0000f4948900
which belongs to the cache kmalloc-128 of size 128
The buggy address is located 8 bytes inside of
128-byte region [ffff0000f4948900, ffff0000f4948980)

The buggy address belongs to the physical page:
page:000000004b66f1d1 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x134948
flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000000200 fffffc0003d3fa00 dead000000000002 ffff0000c0002300
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff0000f4948800: 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff0000f4948880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff0000f4948900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff0000f4948980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff0000f4948a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
Unable to handle kernel paging request at virtual address dfff800000000008
KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
Mem abort info:
ESR = 0x0000000096000006
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
FSC = 0x06: level 2 translation fault
Data abort info:
ISV = 0, ISS = 0x00000006
CM = 0, WnR = 0
[dfff800000000008] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 6570 Comm: md0_resync Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026
pstate: 02400005 (nzcv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : r1buf_pool_alloc+0x69c/0xbc8 drivers/md/raid1.c:198
lr : r1buf_pool_alloc+0x688/0xbc8 drivers/md/raid1.c:197
sp : ffff800022987450
x29: ffff8000229874a0 x28: 0000000000000087 x27: fffffc0003ad75f4
x26: 0000000000000040 x25: ffff0000e9a73440 x24: ffff0000e9a73448
x23: 0000000000000cc0 x22: 0000000000000078 x21: dfff800000000000
x20: 0000000000000001 x19: ffff0000e9a73448 x18: 1fffe00033e7277e
x17: ffff80001537d000 x16: ffff800011b90080 x15: fffffc00032b87c0
x14: 0000000000000001 x13: 1fffff800075aebe x12: 0000000000000000
x11: ff0080000ea37f14 x10: 0000000000000000 x9 : ffff0000c3cfba00
x8 : 0000000000000008 x7 : fffffc0003d90b00 x6 : fffffc00032b40c0
x5 : ffff0000e9a734c8 x4 : ffff0000e9a73088 x3 : ffff80000ea37f28
x2 : 0000000000000001 x1 : 0000000000000008 x0 : 0000000000000000
Call trace:
r1buf_pool_alloc+0x69c/0xbc8 drivers/md/raid1.c:198
mempool_init_node+0x1c4/0x470 mm/mempool.c:221
mempool_init+0x50/0x68 mm/mempool.c:250
init_resync drivers/md/raid1.c:2629 [inline]
raid1_sync_request+0x22c/0x26e4 drivers/md/raid1.c:2679
md_do_sync+0x2e18/0x36ec drivers/md/md.c:9158
md_thread+0x1e0/0x3cc drivers/md/md.c:8000
kthread+0x254/0x2e0 kernel/kthread.c:376
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850
Code: f9400be9 9101011a f9000329 d343ff48 (38756908)
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
0: f9400be9 ldr x9, [sp, #16]
4: 9101011a add x26, x8, #0x40
8: f9000329 str x9, [x25]
c: d343ff48 lsr x8, x26, #3
* 10: 38756908 ldrb w8, [x8, x21] <-- trapping instruction

syzbot

unread,
2:45 AM (19 hours ago) 2:45 AM
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: fb28aa725e05 Linux 6.1.180
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12ca8132580000
kernel config: https://syzkaller.appspot.com/x/.config?x=872c04466179833f
dashboard link: https://syzkaller.appspot.com/bug?extid=7a844251cb4c165b334e
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=123077b9580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12218e49580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d420eb944682/disk-fb28aa72.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/affae450ab23/vmlinux-fb28aa72.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b9e6919ed519/Image-fb28aa72.gz.xz

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

md: recovery of RAID array md0
md: md0: recovery done.
==================================================================
BUG: KASAN: use-after-free in r1buf_pool_alloc+0x184/0xbc8 drivers/md/raid1.c:180
Read of size 8 at addr ffff0000ceb25200 by task md0_resync/4508

CPU: 1 PID: 4508 Comm: md0_resync Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026
Call trace:
dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
__dump_stack+0x30/0x40 lib/dump_stack.c:88
dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106
print_address_description+0x88/0x218 mm/kasan/report.c:316
print_report+0x50/0x68 mm/kasan/report.c:420
kasan_report+0xa8/0xfc mm/kasan/report.c:524
__asan_report_load8_noabort+0x2c/0x38 mm/kasan/report_generic.c:351
r1buf_pool_alloc+0x184/0xbc8 drivers/md/raid1.c:180
mempool_init_node+0x1c4/0x470 mm/mempool.c:221
mempool_init+0x50/0x68 mm/mempool.c:250
init_resync drivers/md/raid1.c:2629 [inline]
raid1_sync_request+0x22c/0x26e4 drivers/md/raid1.c:2679
md_do_sync+0x2e18/0x36ec drivers/md/md.c:9158
md_thread+0x1e0/0x3cc drivers/md/md.c:8000
kthread+0x254/0x2e0 kernel/kthread.c:376
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850

Allocated by task 4504:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4c/0x80 mm/kasan/common.c:53
kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505
____kasan_kmalloc mm/kasan/common.c:375 [inline]
__kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:384
kasan_kmalloc include/linux/kasan.h:211 [inline]
kmalloc_trace+0x7c/0x94 mm/slab_common.c:1031
kmalloc include/linux/slab.h:563 [inline]
raid1_reshape+0x590/0x102c drivers/md/raid1.c:3289
chunk_size_store+0x1ec/0x358 drivers/md/md.c:4290
md_attr_store+0x168/0x234 drivers/md/md.c:5626
sysfs_kf_write+0x1f8/0x274 fs/sysfs/file.c:140
kernfs_fop_write_iter+0x390/0x4b4 fs/kernfs/file.c:352
call_write_iter include/linux/fs.h:2265 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x3c8/0x7c8 fs/read_write.c:584
ksys_write+0x12c/0x228 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/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 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

Freed by task 4507:
The buggy address belongs to the object at ffff0000ceb25200
which belongs to the cache kmalloc-128 of size 128
The buggy address is located 0 bytes inside of
128-byte region [ffff0000ceb25200, ffff0000ceb25280)

The buggy address belongs to the physical page:
page:00000000d7cf963a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10eb25
flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000000200 0000000000000000 dead000000000122 ffff0000c0002300
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff0000ceb25100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff0000ceb25180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff0000ceb25200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff0000ceb25280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff0000ceb25300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
Unable to handle kernel paging request at virtual address dfff800000000008
KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
Mem abort info:
ESR = 0x0000000096000006
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
FSC = 0x06: level 2 translation fault
Data abort info:
ISV = 0, ISS = 0x00000006
CM = 0, WnR = 0
[dfff800000000008] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4508 Comm: md0_resync Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026
pstate: 02400005 (nzcv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : r1buf_pool_alloc+0x69c/0xbc8 drivers/md/raid1.c:198
lr : r1buf_pool_alloc+0x688/0xbc8 drivers/md/raid1.c:197
sp : ffff800021637450
x29: ffff8000216374a0 x28: 0000000000000087 x27: fffffc000328db74
x26: 0000000000000040 x25: ffff0000d568e440 x24: ffff0000d568e448
x23: 0000000000000cc0 x22: 0000000000000078 x21: dfff800000000000
x20: 0000000000000001 x19: ffff0000d568e448 x18: 1fffe00033e7697e
x17: 0000000000000000 x16: ffff800011b90080 x15: fffffc000330ed00
x14: 0000000000000001 x13: 1fffff8000651b6e x12: 0000000000000000
x11: ff0080000ea37f14 x10: 0000000000000000 x9 : ffff0000d6cf4c00
x8 : 0000000000000008 x7 : fffffc000354a4c0 x6 : fffffc00033349c0
x5 : ffff0000d568e4c8 x4 : ffff0000d568e088 x3 : ffff80000ea37f28
x2 : 0000000000000001 x1 : 0000000000000008 x0 : 0000000000000000
Call trace:
r1buf_pool_alloc+0x69c/0xbc8 drivers/md/raid1.c:198
mempool_init_node+0x1c4/0x470 mm/mempool.c:221
mempool_init+0x50/0x68 mm/mempool.c:250
init_resync drivers/md/raid1.c:2629 [inline]
raid1_sync_request+0x22c/0x26e4 drivers/md/raid1.c:2679
md_do_sync+0x2e18/0x36ec drivers/md/md.c:9158
md_thread+0x1e0/0x3cc drivers/md/md.c:8000
kthread+0x254/0x2e0 kernel/kthread.c:376
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850
Code: f9400be9 9101011a f9000329 d343ff48 (38756908)
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
0: f9400be9 ldr x9, [sp, #16]
4: 9101011a add x26, x8, #0x40
8: f9000329 str x9, [x25]
c: d343ff48 lsr x8, x26, #3
* 10: 38756908 ldrb w8, [x8, x21] <-- trapping instruction


---
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