Hay
Date
June 25, 2025, 8:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   26.295751] ==================================================================
[   26.295823] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330
[   26.296241] Read of size 1 at addr fff00000c7901000 by task kunit_try_catch/152
[   26.296550] 
[   26.296611] CPU: 1 UID: 0 PID: 152 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT 
[   26.296730] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.296758] Hardware name: linux,dummy-virt (DT)
[   26.296788] Call trace:
[   26.296811]  show_stack+0x20/0x38 (C)
[   26.296862]  dump_stack_lvl+0x8c/0xd0
[   26.297479]  print_report+0x118/0x608
[   26.297560]  kasan_report+0xdc/0x128
[   26.297794]  __asan_report_load1_noabort+0x20/0x30
[   26.297976]  kmalloc_node_oob_right+0x2f4/0x330
[   26.298108]  kunit_try_run_case+0x170/0x3f0
[   26.298160]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.298239]  kthread+0x328/0x630
[   26.298281]  ret_from_fork+0x10/0x20
[   26.298629] 
[   26.299165] Allocated by task 152:
[   26.299411]  kasan_save_stack+0x3c/0x68
[   26.299627]  kasan_save_track+0x20/0x40
[   26.299704]  kasan_save_alloc_info+0x40/0x58
[   26.299775]  __kasan_kmalloc+0xd4/0xd8
[   26.299811]  __kmalloc_cache_node_noprof+0x178/0x3d0
[   26.299853]  kmalloc_node_oob_right+0xbc/0x330
[   26.299953]  kunit_try_run_case+0x170/0x3f0
[   26.300239]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.300283]  kthread+0x328/0x630
[   26.300313]  ret_from_fork+0x10/0x20
[   26.300464] 
[   26.300641] The buggy address belongs to the object at fff00000c7900000
[   26.300641]  which belongs to the cache kmalloc-4k of size 4096
[   26.300729] The buggy address is located 0 bytes to the right of
[   26.300729]  allocated 4096-byte region [fff00000c7900000, fff00000c7901000)
[   26.300904] 
[   26.300932] The buggy address belongs to the physical page:
[   26.301005] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107900
[   26.301254] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   26.301528] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   26.301630] page_type: f5(slab)
[   26.301670] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   26.301717] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   26.301772] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   26.301818] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   26.301865] head: 0bfffe0000000003 ffffc1ffc31e4001 00000000ffffffff 00000000ffffffff
[   26.301911] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   26.301997] page dumped because: kasan: bad access detected
[   26.302027] 
[   26.302045] Memory state around the buggy address:
[   26.302082]  fff00000c7900f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.302240]  fff00000c7900f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.302320] >fff00000c7901000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.302368]                    ^
[   26.302403]  fff00000c7901080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.302443]  fff00000c7901100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.302479] ==================================================================

[   21.277829] ==================================================================
[   21.278381] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0
[   21.278686] Read of size 1 at addr ffff8881039d5000 by task kunit_try_catch/169
[   21.278979] 
[   21.279197] CPU: 0 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) 
[   21.279246] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.279258] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.279278] Call Trace:
[   21.279291]  <TASK>
[   21.279309]  dump_stack_lvl+0x73/0xb0
[   21.279337]  print_report+0xd1/0x650
[   21.279358]  ? __virt_addr_valid+0x1db/0x2d0
[   21.279381]  ? kmalloc_node_oob_right+0x369/0x3c0
[   21.279402]  ? kasan_complete_mode_report_info+0x2a/0x200
[   21.279426]  ? kmalloc_node_oob_right+0x369/0x3c0
[   21.279447]  kasan_report+0x141/0x180
[   21.279467]  ? kmalloc_node_oob_right+0x369/0x3c0
[   21.279493]  __asan_report_load1_noabort+0x18/0x20
[   21.279515]  kmalloc_node_oob_right+0x369/0x3c0
[   21.279537]  ? __pfx_kmalloc_node_oob_right+0x10/0x10
[   21.279559]  ? __schedule+0x10cc/0x2b60
[   21.279583]  ? __pfx_read_tsc+0x10/0x10
[   21.279604]  ? ktime_get_ts64+0x86/0x230
[   21.279628]  kunit_try_run_case+0x1a5/0x480
[   21.279653]  ? __pfx_kunit_try_run_case+0x10/0x10
[   21.279674]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   21.279694]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   21.279717]  ? __kthread_parkme+0x82/0x180
[   21.279736]  ? preempt_count_sub+0x50/0x80
[   21.279758]  ? __pfx_kunit_try_run_case+0x10/0x10
[   21.279781]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.279802]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   21.279824]  kthread+0x337/0x6f0
[   21.279842]  ? trace_preempt_on+0x20/0xc0
[   21.279864]  ? __pfx_kthread+0x10/0x10
[   21.279883]  ? _raw_spin_unlock_irq+0x47/0x80
[   21.279904]  ? calculate_sigpending+0x7b/0xa0
[   21.279927]  ? __pfx_kthread+0x10/0x10
[   21.280005]  ret_from_fork+0x116/0x1d0
[   21.280026]  ? __pfx_kthread+0x10/0x10
[   21.280045]  ret_from_fork_asm+0x1a/0x30
[   21.280075]  </TASK>
[   21.280085] 
[   21.289042] Allocated by task 169:
[   21.289228]  kasan_save_stack+0x45/0x70
[   21.289688]  kasan_save_track+0x18/0x40
[   21.289913]  kasan_save_alloc_info+0x3b/0x50
[   21.290234]  __kasan_kmalloc+0xb7/0xc0
[   21.290372]  __kmalloc_cache_node_noprof+0x188/0x420
[   21.290602]  kmalloc_node_oob_right+0xab/0x3c0
[   21.290789]  kunit_try_run_case+0x1a5/0x480
[   21.291048]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.291269]  kthread+0x337/0x6f0
[   21.291424]  ret_from_fork+0x116/0x1d0
[   21.291620]  ret_from_fork_asm+0x1a/0x30
[   21.291762] 
[   21.291917] The buggy address belongs to the object at ffff8881039d4000
[   21.291917]  which belongs to the cache kmalloc-4k of size 4096
[   21.292438] The buggy address is located 0 bytes to the right of
[   21.292438]  allocated 4096-byte region [ffff8881039d4000, ffff8881039d5000)
[   21.292912] 
[   21.293114] The buggy address belongs to the physical page:
[   21.293415] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039d0
[   21.293910] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   21.294190] flags: 0x200000000000040(head|node=0|zone=2)
[   21.294573] page_type: f5(slab)
[   21.294704] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000
[   21.295018] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   21.295479] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000
[   21.295727] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   21.296113] head: 0200000000000003 ffffea00040e7401 00000000ffffffff 00000000ffffffff
[   21.296521] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   21.296827] page dumped because: kasan: bad access detected
[   21.297133] 
[   21.297233] Memory state around the buggy address:
[   21.297424]  ffff8881039d4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.297688]  ffff8881039d4f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.298124] >ffff8881039d5000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.298410]                    ^
[   21.298571]  ffff8881039d5080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.298873]  ffff8881039d5100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.299267] ==================================================================