Hay
Date
July 16, 2025, 12:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   30.317998] ==================================================================
[   30.318120] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330
[   30.318225] Read of size 1 at addr fff00000c99ed000 by task kunit_try_catch/171
[   30.318274] 
[   30.318359] CPU: 0 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT 
[   30.318783] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.318916] Hardware name: linux,dummy-virt (DT)
[   30.318949] Call trace:
[   30.318970]  show_stack+0x20/0x38 (C)
[   30.319026]  dump_stack_lvl+0x8c/0xd0
[   30.319090]  print_report+0x118/0x5d0
[   30.319144]  kasan_report+0xdc/0x128
[   30.319247]  __asan_report_load1_noabort+0x20/0x30
[   30.319295]  kmalloc_node_oob_right+0x2f4/0x330
[   30.319345]  kunit_try_run_case+0x170/0x3f0
[   30.319649]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.319805]  kthread+0x328/0x630
[   30.319848]  ret_from_fork+0x10/0x20
[   30.319895] 
[   30.319913] Allocated by task 171:
[   30.319993]  kasan_save_stack+0x3c/0x68
[   30.320048]  kasan_save_track+0x20/0x40
[   30.320090]  kasan_save_alloc_info+0x40/0x58
[   30.320128]  __kasan_kmalloc+0xd4/0xd8
[   30.320165]  __kmalloc_cache_node_noprof+0x178/0x3d0
[   30.320206]  kmalloc_node_oob_right+0xbc/0x330
[   30.320245]  kunit_try_run_case+0x170/0x3f0
[   30.320318]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.320362]  kthread+0x328/0x630
[   30.320607]  ret_from_fork+0x10/0x20
[   30.320644] 
[   30.320663] The buggy address belongs to the object at fff00000c99ec000
[   30.320663]  which belongs to the cache kmalloc-4k of size 4096
[   30.320721] The buggy address is located 0 bytes to the right of
[   30.320721]  allocated 4096-byte region [fff00000c99ec000, fff00000c99ed000)
[   30.320785] 
[   30.320805] The buggy address belongs to the physical page:
[   30.320878] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1099e8
[   30.321140] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   30.321189] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   30.321607] page_type: f5(slab)
[   30.321682] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   30.321803] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   30.321912] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   30.321967] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   30.322198] head: 0bfffe0000000003 ffffc1ffc3267a01 00000000ffffffff 00000000ffffffff
[   30.322340] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   30.322390] page dumped because: kasan: bad access detected
[   30.322441] 
[   30.322551] Memory state around the buggy address:
[   30.322638]  fff00000c99ecf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.322753]  fff00000c99ecf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.322856] >fff00000c99ed000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.322987]                    ^
[   30.323031]  fff00000c99ed080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.323110]  fff00000c99ed100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.323290] ==================================================================

[   22.630991] ==================================================================
[   22.631564] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0
[   22.632653] Read of size 1 at addr ffff888105f97000 by task kunit_try_catch/189
[   22.633643] 
[   22.633848] CPU: 0 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) 
[   22.633903] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.633916] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.633978] Call Trace:
[   22.633994]  <TASK>
[   22.634014]  dump_stack_lvl+0x73/0xb0
[   22.634191]  print_report+0xd1/0x610
[   22.634214]  ? __virt_addr_valid+0x1db/0x2d0
[   22.634240]  ? kmalloc_node_oob_right+0x369/0x3c0
[   22.634276]  ? kasan_complete_mode_report_info+0x2a/0x200
[   22.634301]  ? kmalloc_node_oob_right+0x369/0x3c0
[   22.634324]  kasan_report+0x141/0x180
[   22.634345]  ? kmalloc_node_oob_right+0x369/0x3c0
[   22.634372]  __asan_report_load1_noabort+0x18/0x20
[   22.634395]  kmalloc_node_oob_right+0x369/0x3c0
[   22.634421]  ? __pfx_kmalloc_node_oob_right+0x10/0x10
[   22.634445]  ? __schedule+0x10c6/0x2b60
[   22.634468]  ? __pfx_read_tsc+0x10/0x10
[   22.634492]  ? ktime_get_ts64+0x86/0x230
[   22.634519]  kunit_try_run_case+0x1a5/0x480
[   22.634554]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.634576]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   22.634598]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   22.634620]  ? __kthread_parkme+0x82/0x180
[   22.634642]  ? preempt_count_sub+0x50/0x80
[   22.634665]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.634687]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.634713]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   22.634739]  kthread+0x337/0x6f0
[   22.634759]  ? trace_preempt_on+0x20/0xc0
[   22.634783]  ? __pfx_kthread+0x10/0x10
[   22.634804]  ? _raw_spin_unlock_irq+0x47/0x80
[   22.634829]  ? calculate_sigpending+0x7b/0xa0
[   22.634855]  ? __pfx_kthread+0x10/0x10
[   22.634888]  ret_from_fork+0x116/0x1d0
[   22.634907]  ? __pfx_kthread+0x10/0x10
[   22.634927]  ret_from_fork_asm+0x1a/0x30
[   22.634960]  </TASK>
[   22.634971] 
[   22.647302] Allocated by task 189:
[   22.647712]  kasan_save_stack+0x45/0x70
[   22.648143]  kasan_save_track+0x18/0x40
[   22.648290]  kasan_save_alloc_info+0x3b/0x50
[   22.648431]  __kasan_kmalloc+0xb7/0xc0
[   22.648590]  __kmalloc_cache_node_noprof+0x188/0x420
[   22.649154]  kmalloc_node_oob_right+0xab/0x3c0
[   22.649667]  kunit_try_run_case+0x1a5/0x480
[   22.650388]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.650953]  kthread+0x337/0x6f0
[   22.651244]  ret_from_fork+0x116/0x1d0
[   22.651581]  ret_from_fork_asm+0x1a/0x30
[   22.651953] 
[   22.652113] The buggy address belongs to the object at ffff888105f96000
[   22.652113]  which belongs to the cache kmalloc-4k of size 4096
[   22.652824] The buggy address is located 0 bytes to the right of
[   22.652824]  allocated 4096-byte region [ffff888105f96000, ffff888105f97000)
[   22.653996] 
[   22.654070] The buggy address belongs to the physical page:
[   22.654322] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105f90
[   22.654776] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   22.655273] flags: 0x200000000000040(head|node=0|zone=2)
[   22.655628] page_type: f5(slab)
[   22.655781] raw: 0200000000000040 ffff888100042140 ffffea0004181200 dead000000000002
[   22.656208] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   22.656566] head: 0200000000000040 ffff888100042140 ffffea0004181200 dead000000000002
[   22.656911] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   22.657248] head: 0200000000000003 ffffea000417e401 00000000ffffffff 00000000ffffffff
[   22.657609] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   22.657925] page dumped because: kasan: bad access detected
[   22.658225] 
[   22.658329] Memory state around the buggy address:
[   22.658547]  ffff888105f96f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.658841]  ffff888105f96f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.659195] >ffff888105f97000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.659531]                    ^
[   22.659698]  ffff888105f97080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.660109]  ffff888105f97100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.660413] ==================================================================