Hay
Date
July 15, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   15.170577] ==================================================================
[   15.170852] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488
[   15.170957] Write of size 1 at addr fff00000c592c878 by task kunit_try_catch/143
[   15.171055] 
[   15.171089] CPU: 1 UID: 0 PID: 143 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   15.171217] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.171246] Hardware name: linux,dummy-virt (DT)
[   15.171303] Call trace:
[   15.171342]  show_stack+0x20/0x38 (C)
[   15.171391]  dump_stack_lvl+0x8c/0xd0
[   15.171546]  print_report+0x118/0x5d0
[   15.171681]  kasan_report+0xdc/0x128
[   15.171734]  __asan_report_store1_noabort+0x20/0x30
[   15.171784]  kmalloc_track_caller_oob_right+0x418/0x488
[   15.171835]  kunit_try_run_case+0x170/0x3f0
[   15.171879]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.171930]  kthread+0x328/0x630
[   15.171970]  ret_from_fork+0x10/0x20
[   15.172016] 
[   15.172033] Allocated by task 143:
[   15.172060]  kasan_save_stack+0x3c/0x68
[   15.172098]  kasan_save_track+0x20/0x40
[   15.172133]  kasan_save_alloc_info+0x40/0x58
[   15.172171]  __kasan_kmalloc+0xd4/0xd8
[   15.172214]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   15.172256]  kmalloc_track_caller_oob_right+0x184/0x488
[   15.172296]  kunit_try_run_case+0x170/0x3f0
[   15.172394]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.172585]  kthread+0x328/0x630
[   15.172620]  ret_from_fork+0x10/0x20
[   15.172702] 
[   15.172760] The buggy address belongs to the object at fff00000c592c800
[   15.172760]  which belongs to the cache kmalloc-128 of size 128
[   15.172845] The buggy address is located 0 bytes to the right of
[   15.172845]  allocated 120-byte region [fff00000c592c800, fff00000c592c878)
[   15.172937] 
[   15.172990] The buggy address belongs to the physical page:
[   15.173040] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10592c
[   15.173094] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   15.173160] page_type: f5(slab)
[   15.173207] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   15.173363] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   15.173408] page dumped because: kasan: bad access detected
[   15.173501] 
[   15.173584] Memory state around the buggy address:
[   15.173694]  fff00000c592c700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.173788]  fff00000c592c780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.173905] >fff00000c592c800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   15.174002]                                                                 ^
[   15.174064]  fff00000c592c880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.174141]  fff00000c592c900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.174246] ==================================================================
[   15.163705] ==================================================================
[   15.163818] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488
[   15.163914] Write of size 1 at addr fff00000c592c778 by task kunit_try_catch/143
[   15.164045] 
[   15.164079] CPU: 1 UID: 0 PID: 143 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   15.164160] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.164196] Hardware name: linux,dummy-virt (DT)
[   15.164287] Call trace:
[   15.164315]  show_stack+0x20/0x38 (C)
[   15.164365]  dump_stack_lvl+0x8c/0xd0
[   15.164440]  print_report+0x118/0x5d0
[   15.164589]  kasan_report+0xdc/0x128
[   15.164643]  __asan_report_store1_noabort+0x20/0x30
[   15.164889]  kmalloc_track_caller_oob_right+0x40c/0x488
[   15.164948]  kunit_try_run_case+0x170/0x3f0
[   15.165129]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.165217]  kthread+0x328/0x630
[   15.165362]  ret_from_fork+0x10/0x20
[   15.165433] 
[   15.165450] Allocated by task 143:
[   15.165477]  kasan_save_stack+0x3c/0x68
[   15.165535]  kasan_save_track+0x20/0x40
[   15.165571]  kasan_save_alloc_info+0x40/0x58
[   15.165609]  __kasan_kmalloc+0xd4/0xd8
[   15.165882]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   15.166070]  kmalloc_track_caller_oob_right+0xa8/0x488
[   15.166230]  kunit_try_run_case+0x170/0x3f0
[   15.166277]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.166319]  kthread+0x328/0x630
[   15.166628]  ret_from_fork+0x10/0x20
[   15.166680] 
[   15.166752] The buggy address belongs to the object at fff00000c592c700
[   15.166752]  which belongs to the cache kmalloc-128 of size 128
[   15.166913] The buggy address is located 0 bytes to the right of
[   15.166913]  allocated 120-byte region [fff00000c592c700, fff00000c592c778)
[   15.166989] 
[   15.167087] The buggy address belongs to the physical page:
[   15.167126] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10592c
[   15.167219] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   15.167329] page_type: f5(slab)
[   15.167451] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   15.167555] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   15.167636] page dumped because: kasan: bad access detected
[   15.167916] 
[   15.168203] Memory state around the buggy address:
[   15.168287]  fff00000c592c600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.168374]  fff00000c592c680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.168434] >fff00000c592c700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   15.168594]                                                                 ^
[   15.168673]  fff00000c592c780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.168754]  fff00000c592c800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.168811] ==================================================================

[   11.997014] ==================================================================
[   11.997517] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.998004] Write of size 1 at addr ffff8881032bb678 by task kunit_try_catch/159
[   11.998327] 
[   11.998653] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   11.998701] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.998712] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.998732] Call Trace:
[   11.998742]  <TASK>
[   11.998769]  dump_stack_lvl+0x73/0xb0
[   11.998801]  print_report+0xd1/0x610
[   11.998822]  ? __virt_addr_valid+0x1db/0x2d0
[   11.998844]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.998870]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.998894]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.998919]  kasan_report+0x141/0x180
[   11.998941]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.998972]  __asan_report_store1_noabort+0x1b/0x30
[   11.998997]  kmalloc_track_caller_oob_right+0x4c8/0x520
[   11.999022]  ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10
[   11.999050]  ? __schedule+0x10cc/0x2b60
[   11.999073]  ? __pfx_read_tsc+0x10/0x10
[   11.999093]  ? ktime_get_ts64+0x86/0x230
[   11.999117]  kunit_try_run_case+0x1a5/0x480
[   11.999142]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.999165]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.999188]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.999212]  ? __kthread_parkme+0x82/0x180
[   11.999232]  ? preempt_count_sub+0x50/0x80
[   11.999256]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.999281]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.999305]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.999389]  kthread+0x337/0x6f0
[   11.999410]  ? trace_preempt_on+0x20/0xc0
[   11.999433]  ? __pfx_kthread+0x10/0x10
[   11.999455]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.999477]  ? calculate_sigpending+0x7b/0xa0
[   11.999501]  ? __pfx_kthread+0x10/0x10
[   11.999522]  ret_from_fork+0x116/0x1d0
[   11.999541]  ? __pfx_kthread+0x10/0x10
[   11.999561]  ret_from_fork_asm+0x1a/0x30
[   11.999592]  </TASK>
[   11.999602] 
[   12.007172] Allocated by task 159:
[   12.007310]  kasan_save_stack+0x45/0x70
[   12.007492]  kasan_save_track+0x18/0x40
[   12.007679]  kasan_save_alloc_info+0x3b/0x50
[   12.007899]  __kasan_kmalloc+0xb7/0xc0
[   12.008105]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   12.008339]  kmalloc_track_caller_oob_right+0x99/0x520
[   12.008737]  kunit_try_run_case+0x1a5/0x480
[   12.008926]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.009139]  kthread+0x337/0x6f0
[   12.009309]  ret_from_fork+0x116/0x1d0
[   12.009643]  ret_from_fork_asm+0x1a/0x30
[   12.009843] 
[   12.009915] The buggy address belongs to the object at ffff8881032bb600
[   12.009915]  which belongs to the cache kmalloc-128 of size 128
[   12.010527] The buggy address is located 0 bytes to the right of
[   12.010527]  allocated 120-byte region [ffff8881032bb600, ffff8881032bb678)
[   12.011033] 
[   12.011119] The buggy address belongs to the physical page:
[   12.011528] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1032bb
[   12.011881] flags: 0x200000000000000(node=0|zone=2)
[   12.012095] page_type: f5(slab)
[   12.012240] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   12.012684] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   12.013091] page dumped because: kasan: bad access detected
[   12.013321] 
[   12.013428] Memory state around the buggy address:
[   12.013775]  ffff8881032bb500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   12.014047]  ffff8881032bb580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.014421] >ffff8881032bb600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   12.014706]                                                                 ^
[   12.014989]  ffff8881032bb680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.015274]  ffff8881032bb700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.015583] ==================================================================