Hay
Date
July 8, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   30.890889] ==================================================================
[   30.890936] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488
[   30.893442] Write of size 1 at addr fff00000c9a9c178 by task kunit_try_catch/173
[   30.893544] 
[   30.893862] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT 
[   30.894261] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.894322] Hardware name: linux,dummy-virt (DT)
[   30.894382] Call trace:
[   30.894432]  show_stack+0x20/0x38 (C)
[   30.894594]  dump_stack_lvl+0x8c/0xd0
[   30.894678]  print_report+0x118/0x5d0
[   30.895057]  kasan_report+0xdc/0x128
[   30.895150]  __asan_report_store1_noabort+0x20/0x30
[   30.895306]  kmalloc_track_caller_oob_right+0x418/0x488
[   30.895407]  kunit_try_run_case+0x170/0x3f0
[   30.895547]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.895813]  kthread+0x328/0x630
[   30.895868]  ret_from_fork+0x10/0x20
[   30.896063] 
[   30.896103] Allocated by task 173:
[   30.896166]  kasan_save_stack+0x3c/0x68
[   30.896260]  kasan_save_track+0x20/0x40
[   30.896323]  kasan_save_alloc_info+0x40/0x58
[   30.896440]  __kasan_kmalloc+0xd4/0xd8
[   30.896501]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   30.896545]  kmalloc_track_caller_oob_right+0x184/0x488
[   30.896593]  kunit_try_run_case+0x170/0x3f0
[   30.896650]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.896717]  kthread+0x328/0x630
[   30.896827]  ret_from_fork+0x10/0x20
[   30.896888] 
[   30.896930] The buggy address belongs to the object at fff00000c9a9c100
[   30.896930]  which belongs to the cache kmalloc-128 of size 128
[   30.897025] The buggy address is located 0 bytes to the right of
[   30.897025]  allocated 120-byte region [fff00000c9a9c100, fff00000c9a9c178)
[   30.897088] 
[   30.897119] The buggy address belongs to the physical page:
[   30.897152] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a9c
[   30.897202] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.897257] page_type: f5(slab)
[   30.897294] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   30.897343] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   30.897381] page dumped because: kasan: bad access detected
[   30.897411] 
[   30.897428] Memory state around the buggy address:
[   30.897458]  fff00000c9a9c000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   30.897603]  fff00000c9a9c080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.897647] >fff00000c9a9c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   30.897736]                                                                 ^
[   30.897806]  fff00000c9a9c180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.897854]  fff00000c9a9c200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.897954] ==================================================================
[   30.881002] ==================================================================
[   30.881192] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488
[   30.881323] Write of size 1 at addr fff00000c9a9c078 by task kunit_try_catch/173
[   30.881440] 
[   30.881472] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT 
[   30.881557] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.881583] Hardware name: linux,dummy-virt (DT)
[   30.881614] Call trace:
[   30.881644]  show_stack+0x20/0x38 (C)
[   30.881747]  dump_stack_lvl+0x8c/0xd0
[   30.881886]  print_report+0x118/0x5d0
[   30.881934]  kasan_report+0xdc/0x128
[   30.881980]  __asan_report_store1_noabort+0x20/0x30
[   30.882028]  kmalloc_track_caller_oob_right+0x40c/0x488
[   30.882084]  kunit_try_run_case+0x170/0x3f0
[   30.882292]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.882346]  kthread+0x328/0x630
[   30.882387]  ret_from_fork+0x10/0x20
[   30.882434] 
[   30.882453] Allocated by task 173:
[   30.882479]  kasan_save_stack+0x3c/0x68
[   30.882519]  kasan_save_track+0x20/0x40
[   30.882560]  kasan_save_alloc_info+0x40/0x58
[   30.882599]  __kasan_kmalloc+0xd4/0xd8
[   30.882635]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   30.882678]  kmalloc_track_caller_oob_right+0xa8/0x488
[   30.882719]  kunit_try_run_case+0x170/0x3f0
[   30.882756]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.882798]  kthread+0x328/0x630
[   30.882829]  ret_from_fork+0x10/0x20
[   30.882864] 
[   30.882882] The buggy address belongs to the object at fff00000c9a9c000
[   30.882882]  which belongs to the cache kmalloc-128 of size 128
[   30.882937] The buggy address is located 0 bytes to the right of
[   30.882937]  allocated 120-byte region [fff00000c9a9c000, fff00000c9a9c078)
[   30.882997] 
[   30.883020] The buggy address belongs to the physical page:
[   30.883048] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a9c
[   30.883106] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.884498] page_type: f5(slab)
[   30.885350] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   30.886529] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   30.886591] page dumped because: kasan: bad access detected
[   30.886712] 
[   30.886796] Memory state around the buggy address:
[   30.887506]  fff00000c9a9bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.887729]  fff00000c9a9bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.887771] >fff00000c9a9c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   30.888074]                                                                 ^
[   30.888291]  fff00000c9a9c080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.888420]  fff00000c9a9c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.888472] ==================================================================

[   22.782393] ==================================================================
[   22.783636] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520
[   22.784067] Write of size 1 at addr ffff8881059ac478 by task kunit_try_catch/190
[   22.785171] 
[   22.785467] CPU: 0 UID: 0 PID: 190 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) 
[   22.785525] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.785538] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.785561] Call Trace:
[   22.785577]  <TASK>
[   22.785597]  dump_stack_lvl+0x73/0xb0
[   22.785630]  print_report+0xd1/0x610
[   22.785789]  ? __virt_addr_valid+0x1db/0x2d0
[   22.785818]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   22.785844]  ? kasan_complete_mode_report_info+0x2a/0x200
[   22.785873]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   22.785899]  kasan_report+0x141/0x180
[   22.785924]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   22.785955]  __asan_report_store1_noabort+0x1b/0x30
[   22.785983]  kmalloc_track_caller_oob_right+0x4c8/0x520
[   22.786009]  ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10
[   22.786035]  ? __schedule+0x10cc/0x2b60
[   22.786065]  ? __pfx_read_tsc+0x10/0x10
[   22.786090]  ? ktime_get_ts64+0x86/0x230
[   22.786117]  kunit_try_run_case+0x1a5/0x480
[   22.786140]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.786160]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   22.786182]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   22.786210]  ? __kthread_parkme+0x82/0x180
[   22.786231]  ? preempt_count_sub+0x50/0x80
[   22.786268]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.786289]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.786316]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   22.786343]  kthread+0x337/0x6f0
[   22.786364]  ? trace_preempt_on+0x20/0xc0
[   22.786388]  ? __pfx_kthread+0x10/0x10
[   22.786411]  ? _raw_spin_unlock_irq+0x47/0x80
[   22.786438]  ? calculate_sigpending+0x7b/0xa0
[   22.786465]  ? __pfx_kthread+0x10/0x10
[   22.786488]  ret_from_fork+0x116/0x1d0
[   22.786508]  ? __pfx_kthread+0x10/0x10
[   22.786530]  ret_from_fork_asm+0x1a/0x30
[   22.786564]  </TASK>
[   22.786576] 
[   22.798114] Allocated by task 190:
[   22.798324]  kasan_save_stack+0x45/0x70
[   22.798776]  kasan_save_track+0x18/0x40
[   22.799541]  kasan_save_alloc_info+0x3b/0x50
[   22.800328]  __kasan_kmalloc+0xb7/0xc0
[   22.800846]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   22.801623]  kmalloc_track_caller_oob_right+0x99/0x520
[   22.801991]  kunit_try_run_case+0x1a5/0x480
[   22.802204]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.802489]  kthread+0x337/0x6f0
[   22.802655]  ret_from_fork+0x116/0x1d0
[   22.802825]  ret_from_fork_asm+0x1a/0x30
[   22.803188] 
[   22.803273] The buggy address belongs to the object at ffff8881059ac400
[   22.803273]  which belongs to the cache kmalloc-128 of size 128
[   22.803800] The buggy address is located 0 bytes to the right of
[   22.803800]  allocated 120-byte region [ffff8881059ac400, ffff8881059ac478)
[   22.804474] 
[   22.804550] The buggy address belongs to the physical page:
[   22.804747] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1059ac
[   22.805320] flags: 0x200000000000000(node=0|zone=2)
[   22.805715] page_type: f5(slab)
[   22.805943] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   22.806430] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   22.807001] page dumped because: kasan: bad access detected
[   22.807213] 
[   22.807307] Memory state around the buggy address:
[   22.807504]  ffff8881059ac300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   22.808068]  ffff8881059ac380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.808403] >ffff8881059ac400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   22.808730]                                                                 ^
[   22.809316]  ffff8881059ac480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.809602]  ffff8881059ac500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.810050] ==================================================================