Hay
Date
July 5, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   17.830065] ==================================================================
[   17.830220] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330
[   17.830274] Read of size 1 at addr fff00000c7811000 by task kunit_try_catch/140
[   17.830322] 
[   17.830561] CPU: 0 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   17.830650] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.830676] Hardware name: linux,dummy-virt (DT)
[   17.830704] Call trace:
[   17.830726]  show_stack+0x20/0x38 (C)
[   17.830774]  dump_stack_lvl+0x8c/0xd0
[   17.830818]  print_report+0x118/0x608
[   17.830862]  kasan_report+0xdc/0x128
[   17.830905]  __asan_report_load1_noabort+0x20/0x30
[   17.830954]  kmalloc_node_oob_right+0x2f4/0x330
[   17.831005]  kunit_try_run_case+0x170/0x3f0
[   17.831050]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.831100]  kthread+0x328/0x630
[   17.831140]  ret_from_fork+0x10/0x20
[   17.831235] 
[   17.831254] Allocated by task 140:
[   17.831280]  kasan_save_stack+0x3c/0x68
[   17.831318]  kasan_save_track+0x20/0x40
[   17.831354]  kasan_save_alloc_info+0x40/0x58
[   17.831643]  __kasan_kmalloc+0xd4/0xd8
[   17.831698]  __kmalloc_cache_node_noprof+0x178/0x3d0
[   17.831749]  kmalloc_node_oob_right+0xbc/0x330
[   17.831808]  kunit_try_run_case+0x170/0x3f0
[   17.831844]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.831981]  kthread+0x328/0x630
[   17.832014]  ret_from_fork+0x10/0x20
[   17.832048] 
[   17.832087] The buggy address belongs to the object at fff00000c7810000
[   17.832087]  which belongs to the cache kmalloc-4k of size 4096
[   17.832142] The buggy address is located 0 bytes to the right of
[   17.832142]  allocated 4096-byte region [fff00000c7810000, fff00000c7811000)
[   17.832214] 
[   17.832232] The buggy address belongs to the physical page:
[   17.832303] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107810
[   17.832888] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   17.832983] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   17.833445] page_type: f5(slab)
[   17.833494] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   17.833620] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   17.833723] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   17.834019] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   17.834095] head: 0bfffe0000000003 ffffc1ffc31e0401 00000000ffffffff 00000000ffffffff
[   17.834222] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   17.834468] page dumped because: kasan: bad access detected
[   17.834531] 
[   17.834549] Memory state around the buggy address:
[   17.834581]  fff00000c7810f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.834902]  fff00000c7810f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.834986] >fff00000c7811000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.835101]                    ^
[   17.835279]  fff00000c7811080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.835322]  fff00000c7811100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.835544] ==================================================================

[   12.804694] ==================================================================
[   12.805427] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0
[   12.805805] Read of size 1 at addr ffff888102aad000 by task kunit_try_catch/158
[   12.806363] 
[   12.806530] CPU: 1 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   12.806588] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.806603] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.806629] Call Trace:
[   12.806647]  <TASK>
[   12.806671]  dump_stack_lvl+0x73/0xb0
[   12.806711]  print_report+0xd1/0x650
[   12.806738]  ? __virt_addr_valid+0x1db/0x2d0
[   12.806766]  ? kmalloc_node_oob_right+0x369/0x3c0
[   12.806807]  ? kasan_complete_mode_report_info+0x2a/0x200
[   12.806832]  ? kmalloc_node_oob_right+0x369/0x3c0
[   12.806858]  kasan_report+0x141/0x180
[   12.806883]  ? kmalloc_node_oob_right+0x369/0x3c0
[   12.806915]  __asan_report_load1_noabort+0x18/0x20
[   12.806942]  kmalloc_node_oob_right+0x369/0x3c0
[   12.806969]  ? __pfx_kmalloc_node_oob_right+0x10/0x10
[   12.806998]  ? __pfx_kmalloc_node_oob_right+0x10/0x10
[   12.807029]  kunit_try_run_case+0x1a5/0x480
[   12.807058]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.807082]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.807110]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.807135]  ? __kthread_parkme+0x82/0x180
[   12.807160]  ? preempt_count_sub+0x50/0x80
[   12.807188]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.807213]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.807239]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.807264]  kthread+0x337/0x6f0
[   12.807285]  ? trace_preempt_on+0x20/0xc0
[   12.807312]  ? __pfx_kthread+0x10/0x10
[   12.807334]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.807358]  ? calculate_sigpending+0x7b/0xa0
[   12.807385]  ? __pfx_kthread+0x10/0x10
[   12.807409]  ret_from_fork+0x116/0x1d0
[   12.807432]  ? __pfx_kthread+0x10/0x10
[   12.807458]  ret_from_fork_asm+0x1a/0x30
[   12.807494]  </TASK>
[   12.807508] 
[   12.817832] Allocated by task 158:
[   12.818171]  kasan_save_stack+0x45/0x70
[   12.818554]  kasan_save_track+0x18/0x40
[   12.818722]  kasan_save_alloc_info+0x3b/0x50
[   12.819252]  __kasan_kmalloc+0xb7/0xc0
[   12.819571]  __kmalloc_cache_node_noprof+0x188/0x420
[   12.819945]  kmalloc_node_oob_right+0xab/0x3c0
[   12.820233]  kunit_try_run_case+0x1a5/0x480
[   12.820615]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.820906]  kthread+0x337/0x6f0
[   12.821082]  ret_from_fork+0x116/0x1d0
[   12.821418]  ret_from_fork_asm+0x1a/0x30
[   12.821633] 
[   12.821747] The buggy address belongs to the object at ffff888102aac000
[   12.821747]  which belongs to the cache kmalloc-4k of size 4096
[   12.822811] The buggy address is located 0 bytes to the right of
[   12.822811]  allocated 4096-byte region [ffff888102aac000, ffff888102aad000)
[   12.823560] 
[   12.823855] The buggy address belongs to the physical page:
[   12.824268] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102aa8
[   12.824950] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.825486] flags: 0x200000000000040(head|node=0|zone=2)
[   12.825872] page_type: f5(slab)
[   12.826028] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000
[   12.826486] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   12.826871] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000
[   12.827316] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   12.827659] head: 0200000000000003 ffffea00040aaa01 00000000ffffffff 00000000ffffffff
[   12.827997] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   12.828369] page dumped because: kasan: bad access detected
[   12.829013] 
[   12.829129] Memory state around the buggy address:
[   12.829346]  ffff888102aacf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.829761]  ffff888102aacf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.830086] >ffff888102aad000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.830588]                    ^
[   12.830751]  ffff888102aad080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.831128]  ffff888102aad100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.831407] ==================================================================