Hay
Date
July 3, 2025, 11:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.195075] ==================================================================
[   19.195273] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330
[   19.195585] Read of size 1 at addr fff00000c6363000 by task kunit_try_catch/140
[   19.195685] 
[   19.195768] CPU: 0 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   19.195985] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.196067] Hardware name: linux,dummy-virt (DT)
[   19.196169] Call trace:
[   19.196235]  show_stack+0x20/0x38 (C)
[   19.196382]  dump_stack_lvl+0x8c/0xd0
[   19.196523]  print_report+0x118/0x608
[   19.196635]  kasan_report+0xdc/0x128
[   19.196734]  __asan_report_load1_noabort+0x20/0x30
[   19.196827]  kmalloc_node_oob_right+0x2f4/0x330
[   19.196908]  kunit_try_run_case+0x170/0x3f0
[   19.197001]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.197119]  kthread+0x328/0x630
[   19.197220]  ret_from_fork+0x10/0x20
[   19.197315] 
[   19.197352] Allocated by task 140:
[   19.197494]  kasan_save_stack+0x3c/0x68
[   19.197578]  kasan_save_track+0x20/0x40
[   19.197645]  kasan_save_alloc_info+0x40/0x58
[   19.197730]  __kasan_kmalloc+0xd4/0xd8
[   19.197801]  __kmalloc_cache_node_noprof+0x178/0x3d0
[   19.197853]  kmalloc_node_oob_right+0xbc/0x330
[   19.197891]  kunit_try_run_case+0x170/0x3f0
[   19.197927]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.197967]  kthread+0x328/0x630
[   19.197998]  ret_from_fork+0x10/0x20
[   19.198070] 
[   19.198126] The buggy address belongs to the object at fff00000c6362000
[   19.198126]  which belongs to the cache kmalloc-4k of size 4096
[   19.198277] The buggy address is located 0 bytes to the right of
[   19.198277]  allocated 4096-byte region [fff00000c6362000, fff00000c6363000)
[   19.198455] 
[   19.198508] The buggy address belongs to the physical page:
[   19.198679] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106360
[   19.199113] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   19.199228] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   19.199393] page_type: f5(slab)
[   19.199513] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   19.199679] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   19.199806] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   19.199949] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   19.200076] head: 0bfffe0000000003 ffffc1ffc318d801 00000000ffffffff 00000000ffffffff
[   19.200168] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   19.200247] page dumped because: kasan: bad access detected
[   19.200308] 
[   19.200343] Memory state around the buggy address:
[   19.200429]  fff00000c6362f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.200552]  fff00000c6362f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.200653] >fff00000c6363000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.200744]                    ^
[   19.200816]  fff00000c6363080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.200967]  fff00000c6363100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.201070] ==================================================================

[   10.905169] ==================================================================
[   10.905680] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0
[   10.905924] Read of size 1 at addr ffff88810281d000 by task kunit_try_catch/157
[   10.906726] 
[   10.906856] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   10.906901] Tainted: [B]=BAD_PAGE, [N]=TEST
[   10.906912] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   10.906932] Call Trace:
[   10.906944]  <TASK>
[   10.906959]  dump_stack_lvl+0x73/0xb0
[   10.906986]  print_report+0xd1/0x650
[   10.907007]  ? __virt_addr_valid+0x1db/0x2d0
[   10.907028]  ? kmalloc_node_oob_right+0x369/0x3c0
[   10.907050]  ? kasan_complete_mode_report_info+0x2a/0x200
[   10.907070]  ? kmalloc_node_oob_right+0x369/0x3c0
[   10.907092]  kasan_report+0x141/0x180
[   10.907113]  ? kmalloc_node_oob_right+0x369/0x3c0
[   10.907160]  __asan_report_load1_noabort+0x18/0x20
[   10.907184]  kmalloc_node_oob_right+0x369/0x3c0
[   10.907207]  ? __pfx_kmalloc_node_oob_right+0x10/0x10
[   10.907229]  ? __schedule+0x10cc/0x2b60
[   10.907250]  ? __pfx_read_tsc+0x10/0x10
[   10.907269]  ? ktime_get_ts64+0x86/0x230
[   10.907291]  kunit_try_run_case+0x1a5/0x480
[   10.907376]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.907400]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   10.907422]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   10.907443]  ? __kthread_parkme+0x82/0x180
[   10.907462]  ? preempt_count_sub+0x50/0x80
[   10.907484]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.907506]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.907528]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   10.907549]  kthread+0x337/0x6f0
[   10.907567]  ? trace_preempt_on+0x20/0xc0
[   10.907588]  ? __pfx_kthread+0x10/0x10
[   10.907607]  ? _raw_spin_unlock_irq+0x47/0x80
[   10.907626]  ? calculate_sigpending+0x7b/0xa0
[   10.907648]  ? __pfx_kthread+0x10/0x10
[   10.907668]  ret_from_fork+0x116/0x1d0
[   10.907686]  ? __pfx_kthread+0x10/0x10
[   10.907705]  ret_from_fork_asm+0x1a/0x30
[   10.907735]  </TASK>
[   10.907745] 
[   10.920196] Allocated by task 157:
[   10.920527]  kasan_save_stack+0x45/0x70
[   10.920890]  kasan_save_track+0x18/0x40
[   10.921040]  kasan_save_alloc_info+0x3b/0x50
[   10.921323]  __kasan_kmalloc+0xb7/0xc0
[   10.921710]  __kmalloc_cache_node_noprof+0x188/0x420
[   10.922364]  kmalloc_node_oob_right+0xab/0x3c0
[   10.922655]  kunit_try_run_case+0x1a5/0x480
[   10.922803]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.922976]  kthread+0x337/0x6f0
[   10.923096]  ret_from_fork+0x116/0x1d0
[   10.923252]  ret_from_fork_asm+0x1a/0x30
[   10.923523] 
[   10.923620] The buggy address belongs to the object at ffff88810281c000
[   10.923620]  which belongs to the cache kmalloc-4k of size 4096
[   10.924099] The buggy address is located 0 bytes to the right of
[   10.924099]  allocated 4096-byte region [ffff88810281c000, ffff88810281d000)
[   10.924615] 
[   10.924722] The buggy address belongs to the physical page:
[   10.925034] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102818
[   10.925659] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   10.926008] flags: 0x200000000000040(head|node=0|zone=2)
[   10.926329] page_type: f5(slab)
[   10.926525] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000
[   10.926824] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   10.927307] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000
[   10.927628] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   10.927922] head: 0200000000000003 ffffea00040a0601 00000000ffffffff 00000000ffffffff
[   10.928291] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   10.928622] page dumped because: kasan: bad access detected
[   10.928839] 
[   10.928937] Memory state around the buggy address:
[   10.929161]  ffff88810281cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.929396]  ffff88810281cf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.929694] >ffff88810281d000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   10.929951]                    ^
[   10.930105]  ffff88810281d080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   10.930585]  ffff88810281d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   10.931055] ==================================================================