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

Environment
qemu-arm64
qemu-x86_64

[   15.691547] ==================================================================
[   15.692053] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488
[   15.692167] Write of size 1 at addr fff00000c63f3278 by task kunit_try_catch/142
[   15.692570] 
[   15.692611] CPU: 1 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   15.692694] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.692719] Hardware name: linux,dummy-virt (DT)
[   15.692749] Call trace:
[   15.692772]  show_stack+0x20/0x38 (C)
[   15.692824]  dump_stack_lvl+0x8c/0xd0
[   15.693611]  print_report+0x118/0x608
[   15.693699]  kasan_report+0xdc/0x128
[   15.693747]  __asan_report_store1_noabort+0x20/0x30
[   15.693810]  kmalloc_track_caller_oob_right+0x40c/0x488
[   15.694314]  kunit_try_run_case+0x170/0x3f0
[   15.694383]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.694619]  kthread+0x328/0x630
[   15.694665]  ret_from_fork+0x10/0x20
[   15.694714] 
[   15.694733] Allocated by task 142:
[   15.694761]  kasan_save_stack+0x3c/0x68
[   15.695031]  kasan_save_track+0x20/0x40
[   15.695070]  kasan_save_alloc_info+0x40/0x58
[   15.695319]  __kasan_kmalloc+0xd4/0xd8
[   15.695419]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   15.695464]  kmalloc_track_caller_oob_right+0xa8/0x488
[   15.698291]  kunit_try_run_case+0x170/0x3f0
[   15.698347]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.698390]  kthread+0x328/0x630
[   15.698423]  ret_from_fork+0x10/0x20
[   15.698722] 
[   15.698748] The buggy address belongs to the object at fff00000c63f3200
[   15.698748]  which belongs to the cache kmalloc-128 of size 128
[   15.698854] The buggy address is located 0 bytes to the right of
[   15.698854]  allocated 120-byte region [fff00000c63f3200, fff00000c63f3278)
[   15.698919] 
[   15.698941] The buggy address belongs to the physical page:
[   15.699433] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063f3
[   15.699493] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   15.699546] page_type: f5(slab)
[   15.699587] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   15.699636] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   15.701364] page dumped because: kasan: bad access detected
[   15.701403] 
[   15.702198] Memory state around the buggy address:
[   15.702237]  fff00000c63f3100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.702280]  fff00000c63f3180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.702635] >fff00000c63f3200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   15.702676]                                                                 ^
[   15.702870]  fff00000c63f3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.702957]  fff00000c63f3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.702995] ==================================================================
[   15.705611] ==================================================================
[   15.705667] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488
[   15.705728] Write of size 1 at addr fff00000c63f3378 by task kunit_try_catch/142
[   15.706656] 
[   15.706703] CPU: 1 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   15.706842] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.706869] Hardware name: linux,dummy-virt (DT)
[   15.706901] Call trace:
[   15.707051]  show_stack+0x20/0x38 (C)
[   15.707858]  dump_stack_lvl+0x8c/0xd0
[   15.707913]  print_report+0x118/0x608
[   15.707962]  kasan_report+0xdc/0x128
[   15.708688]  __asan_report_store1_noabort+0x20/0x30
[   15.709194]  kmalloc_track_caller_oob_right+0x418/0x488
[   15.709249]  kunit_try_run_case+0x170/0x3f0
[   15.709435]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.709713]  kthread+0x328/0x630
[   15.710144]  ret_from_fork+0x10/0x20
[   15.710213] 
[   15.710232] Allocated by task 142:
[   15.710545]  kasan_save_stack+0x3c/0x68
[   15.710589]  kasan_save_track+0x20/0x40
[   15.710625]  kasan_save_alloc_info+0x40/0x58
[   15.710664]  __kasan_kmalloc+0xd4/0xd8
[   15.710700]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   15.710981]  kmalloc_track_caller_oob_right+0x184/0x488
[   15.711054]  kunit_try_run_case+0x170/0x3f0
[   15.711550]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.711715]  kthread+0x328/0x630
[   15.711755]  ret_from_fork+0x10/0x20
[   15.712018] 
[   15.712062] The buggy address belongs to the object at fff00000c63f3300
[   15.712062]  which belongs to the cache kmalloc-128 of size 128
[   15.712372] The buggy address is located 0 bytes to the right of
[   15.712372]  allocated 120-byte region [fff00000c63f3300, fff00000c63f3378)
[   15.712523] 
[   15.712552] The buggy address belongs to the physical page:
[   15.712852] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063f3
[   15.713093] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   15.713149] page_type: f5(slab)
[   15.713189] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   15.713327] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   15.713500] page dumped because: kasan: bad access detected
[   15.713781] 
[   15.713803] Memory state around the buggy address:
[   15.713848]  fff00000c63f3200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.714322]  fff00000c63f3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.714370] >fff00000c63f3300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   15.714420]                                                                 ^
[   15.714460]  fff00000c63f3380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.714514]  fff00000c63f3400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.714550] ==================================================================

[   12.202152] ==================================================================
[   12.202871] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520
[   12.203206] Write of size 1 at addr ffff888102d5f378 by task kunit_try_catch/159
[   12.203548] 
[   12.203711] CPU: 1 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   12.203751] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.203761] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.203779] Call Trace:
[   12.203790]  <TASK>
[   12.203804]  dump_stack_lvl+0x73/0xb0
[   12.203831]  print_report+0xd1/0x650
[   12.203852]  ? __virt_addr_valid+0x1db/0x2d0
[   12.203873]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   12.203898]  ? kasan_complete_mode_report_info+0x2a/0x200
[   12.203920]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   12.203957]  kasan_report+0x141/0x180
[   12.203979]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   12.204009]  __asan_report_store1_noabort+0x1b/0x30
[   12.204046]  kmalloc_track_caller_oob_right+0x4c8/0x520
[   12.204072]  ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10
[   12.204099]  ? __schedule+0x10cc/0x2b60
[   12.204120]  ? __pfx_read_tsc+0x10/0x10
[   12.204141]  ? ktime_get_ts64+0x86/0x230
[   12.204164]  kunit_try_run_case+0x1a5/0x480
[   12.204193]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.204215]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.204238]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.204261]  ? __kthread_parkme+0x82/0x180
[   12.204281]  ? preempt_count_sub+0x50/0x80
[   12.204304]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.204327]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.204351]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.204386]  kthread+0x337/0x6f0
[   12.204405]  ? trace_preempt_on+0x20/0xc0
[   12.204428]  ? __pfx_kthread+0x10/0x10
[   12.204459]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.204480]  ? calculate_sigpending+0x7b/0xa0
[   12.204503]  ? __pfx_kthread+0x10/0x10
[   12.204524]  ret_from_fork+0x116/0x1d0
[   12.204542]  ? __pfx_kthread+0x10/0x10
[   12.204562]  ret_from_fork_asm+0x1a/0x30
[   12.204592]  </TASK>
[   12.204602] 
[   12.211902] Allocated by task 159:
[   12.212090]  kasan_save_stack+0x45/0x70
[   12.212314]  kasan_save_track+0x18/0x40
[   12.212595]  kasan_save_alloc_info+0x3b/0x50
[   12.212772]  __kasan_kmalloc+0xb7/0xc0
[   12.212907]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   12.213188]  kmalloc_track_caller_oob_right+0x99/0x520
[   12.213423]  kunit_try_run_case+0x1a5/0x480
[   12.213617]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.213955]  kthread+0x337/0x6f0
[   12.214123]  ret_from_fork+0x116/0x1d0
[   12.214308]  ret_from_fork_asm+0x1a/0x30
[   12.214539] 
[   12.214626] The buggy address belongs to the object at ffff888102d5f300
[   12.214626]  which belongs to the cache kmalloc-128 of size 128
[   12.215119] The buggy address is located 0 bytes to the right of
[   12.215119]  allocated 120-byte region [ffff888102d5f300, ffff888102d5f378)
[   12.215497] 
[   12.215569] The buggy address belongs to the physical page:
[   12.215819] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d5f
[   12.216190] flags: 0x200000000000000(node=0|zone=2)
[   12.216427] page_type: f5(slab)
[   12.216628] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   12.216859] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   12.217111] page dumped because: kasan: bad access detected
[   12.217360] 
[   12.217480] Memory state around the buggy address:
[   12.217728]  ffff888102d5f200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   12.218048]  ffff888102d5f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.218427] >ffff888102d5f300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   12.218683]                                                                 ^
[   12.218919]  ffff888102d5f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.219229]  ffff888102d5f400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.219698] ==================================================================