Hay
Date
July 9, 2025, 1:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   29.025535] ==================================================================
[   29.025596] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330
[   29.025748] Read of size 1 at addr fff00000c9a0b000 by task kunit_try_catch/172
[   29.025799] 
[   29.025877] CPU: 0 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250709 #1 PREEMPT 
[   29.025969] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.025995] Hardware name: linux,dummy-virt (DT)
[   29.026252] Call trace:
[   29.026286]  show_stack+0x20/0x38 (C)
[   29.026339]  dump_stack_lvl+0x8c/0xd0
[   29.026457]  print_report+0x118/0x5d0
[   29.026502]  kasan_report+0xdc/0x128
[   29.026564]  __asan_report_load1_noabort+0x20/0x30
[   29.026618]  kmalloc_node_oob_right+0x2f4/0x330
[   29.026673]  kunit_try_run_case+0x170/0x3f0
[   29.026788]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.026842]  kthread+0x328/0x630
[   29.026929]  ret_from_fork+0x10/0x20
[   29.026978] 
[   29.026996] Allocated by task 172:
[   29.027023]  kasan_save_stack+0x3c/0x68
[   29.027105]  kasan_save_track+0x20/0x40
[   29.027306]  kasan_save_alloc_info+0x40/0x58
[   29.027391]  __kasan_kmalloc+0xd4/0xd8
[   29.027429]  __kmalloc_cache_node_noprof+0x178/0x3d0
[   29.027488]  kmalloc_node_oob_right+0xbc/0x330
[   29.027544]  kunit_try_run_case+0x170/0x3f0
[   29.027600]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.027674]  kthread+0x328/0x630
[   29.027706]  ret_from_fork+0x10/0x20
[   29.027767] 
[   29.027896] The buggy address belongs to the object at fff00000c9a0a000
[   29.027896]  which belongs to the cache kmalloc-4k of size 4096
[   29.028094] The buggy address is located 0 bytes to the right of
[   29.028094]  allocated 4096-byte region [fff00000c9a0a000, fff00000c9a0b000)
[   29.028241] 
[   29.028337] The buggy address belongs to the physical page:
[   29.028677] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a08
[   29.028992] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   29.029042] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   29.029264] page_type: f5(slab)
[   29.029309] raw: 0bfffe0000000040 fff00000c0002140 dead000000000100 dead000000000122
[   29.029358] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   29.029507] head: 0bfffe0000000040 fff00000c0002140 dead000000000100 dead000000000122
[   29.029623] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   29.029922] head: 0bfffe0000000003 ffffc1ffc3268201 00000000ffffffff 00000000ffffffff
[   29.030116] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   29.030287] page dumped because: kasan: bad access detected
[   29.030468] 
[   29.030550] Memory state around the buggy address:
[   29.030583]  fff00000c9a0af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.031072]  fff00000c9a0af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.031256] >fff00000c9a0b000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.031483]                    ^
[   29.031577]  fff00000c9a0b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.031618]  fff00000c9a0b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.031987] ==================================================================

[   23.520571] ==================================================================
[   23.521301] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0
[   23.522118] Read of size 1 at addr ffff888106087000 by task kunit_try_catch/190
[   23.522836] 
[   23.523108] CPU: 0 UID: 0 PID: 190 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) 
[   23.523169] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   23.523183] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.523206] Call Trace:
[   23.523219]  <TASK>
[   23.523240]  dump_stack_lvl+0x73/0xb0
[   23.523275]  print_report+0xd1/0x610
[   23.523298]  ? __virt_addr_valid+0x1db/0x2d0
[   23.523343]  ? kmalloc_node_oob_right+0x369/0x3c0
[   23.523367]  ? kasan_complete_mode_report_info+0x2a/0x200
[   23.523392]  ? kmalloc_node_oob_right+0x369/0x3c0
[   23.523414]  kasan_report+0x141/0x180
[   23.523436]  ? kmalloc_node_oob_right+0x369/0x3c0
[   23.523462]  __asan_report_load1_noabort+0x18/0x20
[   23.523485]  kmalloc_node_oob_right+0x369/0x3c0
[   23.523508]  ? __pfx_kmalloc_node_oob_right+0x10/0x10
[   23.523531]  ? __schedule+0x10cc/0x2b60
[   23.523555]  ? __pfx_read_tsc+0x10/0x10
[   23.523578]  ? ktime_get_ts64+0x86/0x230
[   23.523604]  kunit_try_run_case+0x1a5/0x480
[   23.523626]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.523646]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   23.523669]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.523703]  ? __kthread_parkme+0x82/0x180
[   23.523725]  ? preempt_count_sub+0x50/0x80
[   23.523748]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.523775]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.523800]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.523828]  kthread+0x337/0x6f0
[   23.523847]  ? trace_preempt_on+0x20/0xc0
[   23.523871]  ? __pfx_kthread+0x10/0x10
[   23.523891]  ? _raw_spin_unlock_irq+0x47/0x80
[   23.523912]  ? calculate_sigpending+0x7b/0xa0
[   23.523936]  ? __pfx_kthread+0x10/0x10
[   23.523957]  ret_from_fork+0x116/0x1d0
[   23.523975]  ? __pfx_kthread+0x10/0x10
[   23.523995]  ret_from_fork_asm+0x1a/0x30
[   23.524026]  </TASK>
[   23.524038] 
[   23.534646] Allocated by task 190:
[   23.534912]  kasan_save_stack+0x45/0x70
[   23.535423]  kasan_save_track+0x18/0x40
[   23.535610]  kasan_save_alloc_info+0x3b/0x50
[   23.536189]  __kasan_kmalloc+0xb7/0xc0
[   23.536450]  __kmalloc_cache_node_noprof+0x188/0x420
[   23.536675]  kmalloc_node_oob_right+0xab/0x3c0
[   23.537062]  kunit_try_run_case+0x1a5/0x480
[   23.537242]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.537619]  kthread+0x337/0x6f0
[   23.537860]  ret_from_fork+0x116/0x1d0
[   23.538091]  ret_from_fork_asm+0x1a/0x30
[   23.538347] 
[   23.538436] The buggy address belongs to the object at ffff888106086000
[   23.538436]  which belongs to the cache kmalloc-4k of size 4096
[   23.539204] The buggy address is located 0 bytes to the right of
[   23.539204]  allocated 4096-byte region [ffff888106086000, ffff888106087000)
[   23.539909] 
[   23.540010] The buggy address belongs to the physical page:
[   23.540448] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106080
[   23.541233] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   23.541547] flags: 0x200000000000040(head|node=0|zone=2)
[   23.541872] page_type: f5(slab)
[   23.542004] raw: 0200000000000040 ffff888100042140 ffffea0004112a00 dead000000000002
[   23.542316] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   23.542920] head: 0200000000000040 ffff888100042140 ffffea0004112a00 dead000000000002
[   23.543758] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   23.544615] head: 0200000000000003 ffffea0004182001 00000000ffffffff 00000000ffffffff
[   23.545267] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   23.546181] page dumped because: kasan: bad access detected
[   23.546498] 
[   23.546837] Memory state around the buggy address:
[   23.547427]  ffff888106086f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.547646]  ffff888106086f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.548444] >ffff888106087000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.549240]                    ^
[   23.549608]  ffff888106087080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.550113]  ffff888106087100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.550800] ==================================================================