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

Environment
qemu-arm64
qemu-x86_64

[   16.358461] ==================================================================
[   16.358507] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488
[   16.358564] Write of size 1 at addr fff00000c6f3f378 by task kunit_try_catch/143
[   16.358642] 
[   16.358777] CPU: 0 UID: 0 PID: 143 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   16.358905] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.358932] Hardware name: linux,dummy-virt (DT)
[   16.358962] Call trace:
[   16.358982]  show_stack+0x20/0x38 (C)
[   16.359476]  dump_stack_lvl+0x8c/0xd0
[   16.359987]  print_report+0x118/0x608
[   16.360275]  kasan_report+0xdc/0x128
[   16.360326]  __asan_report_store1_noabort+0x20/0x30
[   16.360583]  kmalloc_track_caller_oob_right+0x418/0x488
[   16.360640]  kunit_try_run_case+0x170/0x3f0
[   16.360724]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.360909]  kthread+0x328/0x630
[   16.361000]  ret_from_fork+0x10/0x20
[   16.361048] 
[   16.361066] Allocated by task 143:
[   16.361103]  kasan_save_stack+0x3c/0x68
[   16.361259]  kasan_save_track+0x20/0x40
[   16.361321]  kasan_save_alloc_info+0x40/0x58
[   16.361403]  __kasan_kmalloc+0xd4/0xd8
[   16.361449]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   16.361491]  kmalloc_track_caller_oob_right+0x184/0x488
[   16.361688]  kunit_try_run_case+0x170/0x3f0
[   16.361755]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.361900]  kthread+0x328/0x630
[   16.361953]  ret_from_fork+0x10/0x20
[   16.362045] 
[   16.362063] The buggy address belongs to the object at fff00000c6f3f300
[   16.362063]  which belongs to the cache kmalloc-128 of size 128
[   16.362154] The buggy address is located 0 bytes to the right of
[   16.362154]  allocated 120-byte region [fff00000c6f3f300, fff00000c6f3f378)
[   16.362381] 
[   16.362403] The buggy address belongs to the physical page:
[   16.362433] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106f3f
[   16.362506] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.362738] page_type: f5(slab)
[   16.362936] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   16.362985] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   16.363035] page dumped because: kasan: bad access detected
[   16.363120] 
[   16.363148] Memory state around the buggy address:
[   16.363178]  fff00000c6f3f200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   16.363220]  fff00000c6f3f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.363261] >fff00000c6f3f300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   16.363297]                                                                 ^
[   16.363344]  fff00000c6f3f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.363593]  fff00000c6f3f400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.363807] ==================================================================
[   16.352576] ==================================================================
[   16.352808] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488
[   16.353033] Write of size 1 at addr fff00000c6f3f278 by task kunit_try_catch/143
[   16.353083] 
[   16.353114] CPU: 0 UID: 0 PID: 143 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   16.353451] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.353481] Hardware name: linux,dummy-virt (DT)
[   16.353510] Call trace:
[   16.353695]  show_stack+0x20/0x38 (C)
[   16.353798]  dump_stack_lvl+0x8c/0xd0
[   16.353899]  print_report+0x118/0x608
[   16.353945]  kasan_report+0xdc/0x128
[   16.353991]  __asan_report_store1_noabort+0x20/0x30
[   16.354041]  kmalloc_track_caller_oob_right+0x40c/0x488
[   16.354091]  kunit_try_run_case+0x170/0x3f0
[   16.354137]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.354189]  kthread+0x328/0x630
[   16.354230]  ret_from_fork+0x10/0x20
[   16.354276] 
[   16.354300] Allocated by task 143:
[   16.354372]  kasan_save_stack+0x3c/0x68
[   16.354456]  kasan_save_track+0x20/0x40
[   16.354492]  kasan_save_alloc_info+0x40/0x58
[   16.354530]  __kasan_kmalloc+0xd4/0xd8
[   16.354571]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   16.354729]  kmalloc_track_caller_oob_right+0xa8/0x488
[   16.354807]  kunit_try_run_case+0x170/0x3f0
[   16.354853]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.354931]  kthread+0x328/0x630
[   16.354963]  ret_from_fork+0x10/0x20
[   16.354998] 
[   16.355426] The buggy address belongs to the object at fff00000c6f3f200
[   16.355426]  which belongs to the cache kmalloc-128 of size 128
[   16.355519] The buggy address is located 0 bytes to the right of
[   16.355519]  allocated 120-byte region [fff00000c6f3f200, fff00000c6f3f278)
[   16.355583] 
[   16.355602] The buggy address belongs to the physical page:
[   16.355913] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106f3f
[   16.356042] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.356091] page_type: f5(slab)
[   16.356134] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   16.356576] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   16.356630] page dumped because: kasan: bad access detected
[   16.356695] 
[   16.356712] Memory state around the buggy address:
[   16.356757]  fff00000c6f3f100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   16.357054]  fff00000c6f3f180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.357224] >fff00000c6f3f200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   16.357278]                                                                 ^
[   16.357318]  fff00000c6f3f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.357358]  fff00000c6f3f300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.357538] ==================================================================

[   11.825537] ==================================================================
[   11.826195] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4b1/0x520
[   11.826530] Write of size 1 at addr ffff8881029f2b78 by task kunit_try_catch/159
[   11.827008] 
[   11.827103] CPU: 1 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   11.827144] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.827154] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.827173] Call Trace:
[   11.827300]  <TASK>
[   11.827317]  dump_stack_lvl+0x73/0xb0
[   11.827347]  print_report+0xd1/0x650
[   11.827368]  ? __virt_addr_valid+0x1db/0x2d0
[   11.827391]  ? kmalloc_track_caller_oob_right+0x4b1/0x520
[   11.827416]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.827440]  ? kmalloc_track_caller_oob_right+0x4b1/0x520
[   11.827466]  kasan_report+0x141/0x180
[   11.827487]  ? kmalloc_track_caller_oob_right+0x4b1/0x520
[   11.827518]  __asan_report_store1_noabort+0x1b/0x30
[   11.827543]  kmalloc_track_caller_oob_right+0x4b1/0x520
[   11.827568]  ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10
[   11.827595]  ? __schedule+0x10cc/0x2b60
[   11.827616]  ? __pfx_read_tsc+0x10/0x10
[   11.827636]  ? ktime_get_ts64+0x86/0x230
[   11.827659]  kunit_try_run_case+0x1a5/0x480
[   11.827682]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.827705]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.827727]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.827843]  ? __kthread_parkme+0x82/0x180
[   11.827865]  ? preempt_count_sub+0x50/0x80
[   11.827889]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.827913]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.827948]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.827973]  kthread+0x337/0x6f0
[   11.827991]  ? trace_preempt_on+0x20/0xc0
[   11.828014]  ? __pfx_kthread+0x10/0x10
[   11.828034]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.828055]  ? calculate_sigpending+0x7b/0xa0
[   11.828079]  ? __pfx_kthread+0x10/0x10
[   11.828100]  ret_from_fork+0x116/0x1d0
[   11.828118]  ? __pfx_kthread+0x10/0x10
[   11.828138]  ret_from_fork_asm+0x1a/0x30
[   11.828169]  </TASK>
[   11.828179] 
[   11.836997] Allocated by task 159:
[   11.837226]  kasan_save_stack+0x45/0x70
[   11.837550]  kasan_save_track+0x18/0x40
[   11.837884]  kasan_save_alloc_info+0x3b/0x50
[   11.838098]  __kasan_kmalloc+0xb7/0xc0
[   11.838265]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   11.838505]  kmalloc_track_caller_oob_right+0x19a/0x520
[   11.838735]  kunit_try_run_case+0x1a5/0x480
[   11.839249]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.839547]  kthread+0x337/0x6f0
[   11.839775]  ret_from_fork+0x116/0x1d0
[   11.840035]  ret_from_fork_asm+0x1a/0x30
[   11.840297] 
[   11.840386] The buggy address belongs to the object at ffff8881029f2b00
[   11.840386]  which belongs to the cache kmalloc-128 of size 128
[   11.840995] The buggy address is located 0 bytes to the right of
[   11.840995]  allocated 120-byte region [ffff8881029f2b00, ffff8881029f2b78)
[   11.841622] 
[   11.841867] The buggy address belongs to the physical page:
[   11.842096] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029f2
[   11.842425] flags: 0x200000000000000(node=0|zone=2)
[   11.842658] page_type: f5(slab)
[   11.843059] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   11.843365] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   11.843741] page dumped because: kasan: bad access detected
[   11.844095] 
[   11.844166] Memory state around the buggy address:
[   11.844525]  ffff8881029f2a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   11.844948]  ffff8881029f2a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.845310] >ffff8881029f2b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   11.845588]                                                                 ^
[   11.846012]  ffff8881029f2b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.846268]  ffff8881029f2c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.846659] ==================================================================
[   11.802153] ==================================================================
[   11.802619] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.803290] Write of size 1 at addr ffff8881029f2a78 by task kunit_try_catch/159
[   11.803672] 
[   11.803775] CPU: 1 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   11.803814] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.803825] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.803844] Call Trace:
[   11.803855]  <TASK>
[   11.803868]  dump_stack_lvl+0x73/0xb0
[   11.803896]  print_report+0xd1/0x650
[   11.803931]  ? __virt_addr_valid+0x1db/0x2d0
[   11.803953]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.803978]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.804001]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.804255]  kasan_report+0x141/0x180
[   11.804281]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.804312]  __asan_report_store1_noabort+0x1b/0x30
[   11.804337]  kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.804362]  ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10
[   11.804389]  ? __schedule+0x10cc/0x2b60
[   11.804412]  ? __pfx_read_tsc+0x10/0x10
[   11.804432]  ? ktime_get_ts64+0x86/0x230
[   11.804457]  kunit_try_run_case+0x1a5/0x480
[   11.804480]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.804503]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.804526]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.804549]  ? __kthread_parkme+0x82/0x180
[   11.804568]  ? preempt_count_sub+0x50/0x80
[   11.804592]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.804616]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.804640]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.804666]  kthread+0x337/0x6f0
[   11.804684]  ? trace_preempt_on+0x20/0xc0
[   11.804707]  ? __pfx_kthread+0x10/0x10
[   11.804728]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.804757]  ? calculate_sigpending+0x7b/0xa0
[   11.804781]  ? __pfx_kthread+0x10/0x10
[   11.804802]  ret_from_fork+0x116/0x1d0
[   11.804820]  ? __pfx_kthread+0x10/0x10
[   11.804840]  ret_from_fork_asm+0x1a/0x30
[   11.804871]  </TASK>
[   11.804880] 
[   11.814525] Allocated by task 159:
[   11.814819]  kasan_save_stack+0x45/0x70
[   11.815118]  kasan_save_track+0x18/0x40
[   11.815360]  kasan_save_alloc_info+0x3b/0x50
[   11.815572]  __kasan_kmalloc+0xb7/0xc0
[   11.815744]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   11.816177]  kmalloc_track_caller_oob_right+0x99/0x520
[   11.816474]  kunit_try_run_case+0x1a5/0x480
[   11.816761]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.817240]  kthread+0x337/0x6f0
[   11.817495]  ret_from_fork+0x116/0x1d0
[   11.817638]  ret_from_fork_asm+0x1a/0x30
[   11.818062] 
[   11.818174] The buggy address belongs to the object at ffff8881029f2a00
[   11.818174]  which belongs to the cache kmalloc-128 of size 128
[   11.818692] The buggy address is located 0 bytes to the right of
[   11.818692]  allocated 120-byte region [ffff8881029f2a00, ffff8881029f2a78)
[   11.819458] 
[   11.819562] The buggy address belongs to the physical page:
[   11.819973] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029f2
[   11.820434] flags: 0x200000000000000(node=0|zone=2)
[   11.820611] page_type: f5(slab)
[   11.820956] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   11.821344] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   11.821701] page dumped because: kasan: bad access detected
[   11.822016] 
[   11.822103] Memory state around the buggy address:
[   11.822303]  ffff8881029f2900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   11.822605]  ffff8881029f2980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.823136] >ffff8881029f2a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   11.823503]                                                                 ^
[   11.823763]  ffff8881029f2a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.824191]  ffff8881029f2b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.824560] ==================================================================