Hay
Date
July 18, 2025, 1:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   31.494013] ==================================================================
[   31.494096] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   31.494147] Write of size 16 at addr fff00000c907e060 by task kunit_try_catch/197
[   31.494196] 
[   31.494229] CPU: 0 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT 
[   31.494308] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.494336] Hardware name: linux,dummy-virt (DT)
[   31.494378] Call trace:
[   31.494400]  show_stack+0x20/0x38 (C)
[   31.494447]  dump_stack_lvl+0x8c/0xd0
[   31.494494]  print_report+0x118/0x5e8
[   31.494536]  kasan_report+0xdc/0x128
[   31.494578]  __asan_report_store16_noabort+0x20/0x30
[   31.494626]  kmalloc_oob_16+0x3a0/0x3f8
[   31.494681]  kunit_try_run_case+0x170/0x3f0
[   31.494726]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.494775]  kthread+0x328/0x630
[   31.494816]  ret_from_fork+0x10/0x20
[   31.494861] 
[   31.494879] Allocated by task 197:
[   31.494906]  kasan_save_stack+0x3c/0x68
[   31.494942]  kasan_save_track+0x20/0x40
[   31.494976]  kasan_save_alloc_info+0x40/0x58
[   31.495020]  __kasan_kmalloc+0xd4/0xd8
[   31.495053]  __kmalloc_cache_noprof+0x16c/0x3c0
[   31.495375]  kmalloc_oob_16+0xb4/0x3f8
[   31.495621]  kunit_try_run_case+0x170/0x3f0
[   31.495994]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.496227]  kthread+0x328/0x630
[   31.496294]  ret_from_fork+0x10/0x20
[   31.496347] 
[   31.496389] The buggy address belongs to the object at fff00000c907e060
[   31.496389]  which belongs to the cache kmalloc-16 of size 16
[   31.496445] The buggy address is located 0 bytes inside of
[   31.496445]  allocated 13-byte region [fff00000c907e060, fff00000c907e06d)
[   31.496505] 
[   31.496524] The buggy address belongs to the physical page:
[   31.497312] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xfff00000c907e020 pfn:0x10907e
[   31.497438] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   31.497487] page_type: f5(slab)
[   31.497542] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   31.497613] raw: fff00000c907e020 000000008080007f 00000000f5000000 0000000000000000
[   31.498094] page dumped because: kasan: bad access detected
[   31.498220] 
[   31.498425] Memory state around the buggy address:
[   31.498473]  fff00000c907df00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[   31.498527]  fff00000c907df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.498763] >fff00000c907e000: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc
[   31.498978]                                                           ^
[   31.499161]  fff00000c907e080: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.499238]  fff00000c907e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.499309] ==================================================================


[   24.820095] ==================================================================
[   24.820649] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0
[   24.821641] Write of size 16 at addr ffff888102abfb60 by task kunit_try_catch/214
[   24.822592] 
[   24.822978] CPU: 1 UID: 0 PID: 214 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) 
[   24.823035] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.823048] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.823071] Call Trace:
[   24.823085]  <TASK>
[   24.823103]  dump_stack_lvl+0x73/0xb0
[   24.823139]  print_report+0xd1/0x640
[   24.823161]  ? __virt_addr_valid+0x1db/0x2d0
[   24.823186]  ? kmalloc_oob_16+0x452/0x4a0
[   24.823216]  ? kasan_complete_mode_report_info+0x2a/0x200
[   24.823240]  ? kmalloc_oob_16+0x452/0x4a0
[   24.823260]  kasan_report+0x141/0x180
[   24.823281]  ? kmalloc_oob_16+0x452/0x4a0
[   24.823304]  __asan_report_store16_noabort+0x1b/0x30
[   24.823328]  kmalloc_oob_16+0x452/0x4a0
[   24.823348]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   24.823370]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   24.823394]  kunit_try_run_case+0x1a5/0x480
[   24.823420]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.823441]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.823475]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.823507]  ? __kthread_parkme+0x82/0x180
[   24.823528]  ? preempt_count_sub+0x50/0x80
[   24.823551]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.823573]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.823595]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.823617]  kthread+0x337/0x6f0
[   24.823636]  ? trace_preempt_on+0x20/0xc0
[   24.823660]  ? __pfx_kthread+0x10/0x10
[   24.823679]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.823708]  ? calculate_sigpending+0x7b/0xa0
[   24.823731]  ? __pfx_kthread+0x10/0x10
[   24.823752]  ret_from_fork+0x116/0x1d0
[   24.823771]  ? __pfx_kthread+0x10/0x10
[   24.823791]  ret_from_fork_asm+0x1a/0x30
[   24.823822]  </TASK>
[   24.823833] 
[   24.836830] Allocated by task 214:
[   24.837189]  kasan_save_stack+0x45/0x70
[   24.837564]  kasan_save_track+0x18/0x40
[   24.837943]  kasan_save_alloc_info+0x3b/0x50
[   24.838402]  __kasan_kmalloc+0xb7/0xc0
[   24.838800]  __kmalloc_cache_noprof+0x189/0x420
[   24.839220]  kmalloc_oob_16+0xa8/0x4a0
[   24.839451]  kunit_try_run_case+0x1a5/0x480
[   24.839826]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.840106]  kthread+0x337/0x6f0
[   24.840423]  ret_from_fork+0x116/0x1d0
[   24.840815]  ret_from_fork_asm+0x1a/0x30
[   24.841063] 
[   24.841175] The buggy address belongs to the object at ffff888102abfb60
[   24.841175]  which belongs to the cache kmalloc-16 of size 16
[   24.842020] The buggy address is located 0 bytes inside of
[   24.842020]  allocated 13-byte region [ffff888102abfb60, ffff888102abfb6d)
[   24.842999] 
[   24.843160] The buggy address belongs to the physical page:
[   24.843616] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102abf
[   24.844038] flags: 0x200000000000000(node=0|zone=2)
[   24.844527] page_type: f5(slab)
[   24.844854] raw: 0200000000000000 ffff888100041640 dead000000000100 dead000000000122
[   24.845474] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   24.845731] page dumped because: kasan: bad access detected
[   24.846265] 
[   24.846436] Memory state around the buggy address:
[   24.846919]  ffff888102abfa00: 00 06 fc fc 00 06 fc fc 00 06 fc fc fa fb fc fc
[   24.847557]  ffff888102abfa80: 00 00 fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   24.847869] >ffff888102abfb00: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc
[   24.848126]                                                           ^
[   24.848331]  ffff888102abfb80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.848541]  ffff888102abfc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.848747] ==================================================================