Hay
Date
July 9, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.376470] ==================================================================
[   16.376646] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488
[   16.376971] Write of size 1 at addr fff00000c638b678 by task kunit_try_catch/142
[   16.377425] 
[   16.377589] CPU: 1 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   16.377694] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.377762] Hardware name: linux,dummy-virt (DT)
[   16.377795] Call trace:
[   16.378144]  show_stack+0x20/0x38 (C)
[   16.378237]  dump_stack_lvl+0x8c/0xd0
[   16.378574]  print_report+0x118/0x608
[   16.378735]  kasan_report+0xdc/0x128
[   16.378926]  __asan_report_store1_noabort+0x20/0x30
[   16.379067]  kmalloc_track_caller_oob_right+0x40c/0x488
[   16.379373]  kunit_try_run_case+0x170/0x3f0
[   16.379593]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.379741]  kthread+0x328/0x630
[   16.379799]  ret_from_fork+0x10/0x20
[   16.379852] 
[   16.379870] Allocated by task 142:
[   16.380175]  kasan_save_stack+0x3c/0x68
[   16.380237]  kasan_save_track+0x20/0x40
[   16.380444]  kasan_save_alloc_info+0x40/0x58
[   16.380662]  __kasan_kmalloc+0xd4/0xd8
[   16.380816]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   16.380873]  kmalloc_track_caller_oob_right+0xa8/0x488
[   16.381140]  kunit_try_run_case+0x170/0x3f0
[   16.381516]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.381637]  kthread+0x328/0x630
[   16.381718]  ret_from_fork+0x10/0x20
[   16.381940] 
[   16.382145] The buggy address belongs to the object at fff00000c638b600
[   16.382145]  which belongs to the cache kmalloc-128 of size 128
[   16.382408] The buggy address is located 0 bytes to the right of
[   16.382408]  allocated 120-byte region [fff00000c638b600, fff00000c638b678)
[   16.382632] 
[   16.382747] The buggy address belongs to the physical page:
[   16.382784] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638b
[   16.383190] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.383288] page_type: f5(slab)
[   16.383365] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   16.383468] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   16.383532] page dumped because: kasan: bad access detected
[   16.383719] 
[   16.383957] Memory state around the buggy address:
[   16.384078]  fff00000c638b500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   16.384191]  fff00000c638b580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.384325] >fff00000c638b600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   16.384405]                                                                 ^
[   16.384688]  fff00000c638b680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.384862]  fff00000c638b700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.385165] ==================================================================
[   16.387079] ==================================================================
[   16.387195] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488
[   16.387296] Write of size 1 at addr fff00000c638b778 by task kunit_try_catch/142
[   16.387390] 
[   16.387435] CPU: 1 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   16.387515] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.387671] Hardware name: linux,dummy-virt (DT)
[   16.387824] Call trace:
[   16.387941]  show_stack+0x20/0x38 (C)
[   16.388137]  dump_stack_lvl+0x8c/0xd0
[   16.388384]  print_report+0x118/0x608
[   16.388486]  kasan_report+0xdc/0x128
[   16.388603]  __asan_report_store1_noabort+0x20/0x30
[   16.388785]  kmalloc_track_caller_oob_right+0x418/0x488
[   16.388948]  kunit_try_run_case+0x170/0x3f0
[   16.389076]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.389342]  kthread+0x328/0x630
[   16.389638]  ret_from_fork+0x10/0x20
[   16.389763] 
[   16.389832] Allocated by task 142:
[   16.389961]  kasan_save_stack+0x3c/0x68
[   16.390104]  kasan_save_track+0x20/0x40
[   16.390183]  kasan_save_alloc_info+0x40/0x58
[   16.390222]  __kasan_kmalloc+0xd4/0xd8
[   16.390286]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   16.390625]  kmalloc_track_caller_oob_right+0x184/0x488
[   16.390703]  kunit_try_run_case+0x170/0x3f0
[   16.390826]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.390906]  kthread+0x328/0x630
[   16.390945]  ret_from_fork+0x10/0x20
[   16.391141] 
[   16.391165] The buggy address belongs to the object at fff00000c638b700
[   16.391165]  which belongs to the cache kmalloc-128 of size 128
[   16.391353] The buggy address is located 0 bytes to the right of
[   16.391353]  allocated 120-byte region [fff00000c638b700, fff00000c638b778)
[   16.391715] 
[   16.391771] The buggy address belongs to the physical page:
[   16.391930] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638b
[   16.391987] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.392035] page_type: f5(slab)
[   16.392283] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   16.392400] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   16.392532] page dumped because: kasan: bad access detected
[   16.392630] 
[   16.392780] Memory state around the buggy address:
[   16.392886]  fff00000c638b600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   16.392947]  fff00000c638b680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.392988] >fff00000c638b700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   16.393322]                                                                 ^
[   16.393558]  fff00000c638b780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.393732]  fff00000c638b800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.393866] ==================================================================

[   11.977565] ==================================================================
[   11.978149] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.978730] Write of size 1 at addr ffff8881031db678 by task kunit_try_catch/159
[   11.979533] 
[   11.979695] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   11.979752] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.979764] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.979785] Call Trace:
[   11.979797]  <TASK>
[   11.979814]  dump_stack_lvl+0x73/0xb0
[   11.979846]  print_report+0xd1/0x650
[   11.979867]  ? __virt_addr_valid+0x1db/0x2d0
[   11.979889]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.979915]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.979938]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.979963]  kasan_report+0x141/0x180
[   11.979984]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.980021]  __asan_report_store1_noabort+0x1b/0x30
[   11.980047]  kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.980072]  ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10
[   11.980099]  ? __schedule+0x10cc/0x2b60
[   11.980122]  ? __pfx_read_tsc+0x10/0x10
[   11.980143]  ? ktime_get_ts64+0x86/0x230
[   11.980168]  kunit_try_run_case+0x1a5/0x480
[   11.980192]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.980214]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.980237]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.980261]  ? __kthread_parkme+0x82/0x180
[   11.980282]  ? preempt_count_sub+0x50/0x80
[   11.980306]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.980336]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.980361]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.980386]  kthread+0x337/0x6f0
[   11.980404]  ? trace_preempt_on+0x20/0xc0
[   11.980428]  ? __pfx_kthread+0x10/0x10
[   11.980448]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.980469]  ? calculate_sigpending+0x7b/0xa0
[   11.980493]  ? __pfx_kthread+0x10/0x10
[   11.980514]  ret_from_fork+0x116/0x1d0
[   11.980532]  ? __pfx_kthread+0x10/0x10
[   11.980552]  ret_from_fork_asm+0x1a/0x30
[   11.980582]  </TASK>
[   11.980592] 
[   11.992249] Allocated by task 159:
[   11.992393]  kasan_save_stack+0x45/0x70
[   11.992603]  kasan_save_track+0x18/0x40
[   11.992815]  kasan_save_alloc_info+0x3b/0x50
[   11.992998]  __kasan_kmalloc+0xb7/0xc0
[   11.993647]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   11.993906]  kmalloc_track_caller_oob_right+0x99/0x520
[   11.994310]  kunit_try_run_case+0x1a5/0x480
[   11.994661]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.995320]  kthread+0x337/0x6f0
[   11.995651]  ret_from_fork+0x116/0x1d0
[   11.996025]  ret_from_fork_asm+0x1a/0x30
[   11.996248] 
[   11.996334] The buggy address belongs to the object at ffff8881031db600
[   11.996334]  which belongs to the cache kmalloc-128 of size 128
[   11.996884] The buggy address is located 0 bytes to the right of
[   11.996884]  allocated 120-byte region [ffff8881031db600, ffff8881031db678)
[   11.997940] 
[   11.998034] The buggy address belongs to the physical page:
[   11.998211] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1031db
[   11.998451] flags: 0x200000000000000(node=0|zone=2)
[   11.998614] page_type: f5(slab)
[   11.998784] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   11.999118] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   11.999787] page dumped because: kasan: bad access detected
[   12.000309] 
[   12.000418] Memory state around the buggy address:
[   12.000575]  ffff8881031db500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   12.000848]  ffff8881031db580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.001556] >ffff8881031db600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   12.002261]                                                                 ^
[   12.003039]  ffff8881031db680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.003727]  ffff8881031db700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.004108] ==================================================================