Hay
Date
June 3, 2025, 7:38 a.m.

Environment
qemu-arm64
qemu-x86_64
x86

[   18.023188] ==================================================================
[   18.023290] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320
[   18.026644] Read of size 1 at addr fff00000c4473b1f by task kunit_try_catch/138
[   18.026901] 
[   18.027571] CPU: 1 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT 
[   18.028598] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.028635] Hardware name: linux,dummy-virt (DT)
[   18.029016] Call trace:
[   18.029043]  show_stack+0x20/0x38 (C)
[   18.029099]  dump_stack_lvl+0x8c/0xd0
[   18.030075]  print_report+0x118/0x608
[   18.031243]  kasan_report+0xdc/0x128
[   18.031353]  __asan_report_load1_noabort+0x20/0x30
[   18.031936]  kmalloc_oob_left+0x2ec/0x320
[   18.032014]  kunit_try_run_case+0x170/0x3f0
[   18.032072]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.032886]  kthread+0x328/0x630
[   18.033772]  ret_from_fork+0x10/0x20
[   18.033960] 
[   18.034325] Allocated by task 26:
[   18.034879]  kasan_save_stack+0x3c/0x68
[   18.035412]  kasan_save_track+0x20/0x40
[   18.035494]  kasan_save_alloc_info+0x40/0x58
[   18.035530]  __kasan_kmalloc+0xd4/0xd8
[   18.035565]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   18.036233]  kstrdup+0x54/0xc8
[   18.036594]  devtmpfs_work_loop+0x6f8/0xa58
[   18.037106]  devtmpfsd+0x50/0x58
[   18.037657]  kthread+0x328/0x630
[   18.038189]  ret_from_fork+0x10/0x20
[   18.038253] 
[   18.038324] Freed by task 26:
[   18.038673]  kasan_save_stack+0x3c/0x68
[   18.039254]  kasan_save_track+0x20/0x40
[   18.039482]  kasan_save_free_info+0x4c/0x78
[   18.039525]  __kasan_slab_free+0x6c/0x98
[   18.039561]  kfree+0x214/0x3c8
[   18.039594]  devtmpfs_work_loop+0x804/0xa58
[   18.039630]  devtmpfsd+0x50/0x58
[   18.039663]  kthread+0x328/0x630
[   18.040609]  ret_from_fork+0x10/0x20
[   18.041355] 
[   18.041523] The buggy address belongs to the object at fff00000c4473b00
[   18.041523]  which belongs to the cache kmalloc-16 of size 16
[   18.042334] The buggy address is located 15 bytes to the right of
[   18.042334]  allocated 16-byte region [fff00000c4473b00, fff00000c4473b10)
[   18.043010] 
[   18.043157] The buggy address belongs to the physical page:
[   18.043371] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104473
[   18.043438] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.043492] page_type: f5(slab)
[   18.043534] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   18.044366] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   18.044473] page dumped because: kasan: bad access detected
[   18.044642] 
[   18.045043] Memory state around the buggy address:
[   18.045394]  fff00000c4473a00: fa fb fc fc fa fb fc fc 00 02 fc fc fa fb fc fc
[   18.045751]  fff00000c4473a80: fa fb fc fc 00 01 fc fc fa fb fc fc fa fb fc fc
[   18.046558] >fff00000c4473b00: fa fb fc fc 00 07 fc fc fc fc fc fc fc fc fc fc
[   18.046838]                             ^
[   18.047007]  fff00000c4473b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.047517]  fff00000c4473c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.047930] ==================================================================


[   13.492406] ==================================================================
[   13.493114] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0
[   13.493347] Read of size 1 at addr ffff888101c205df by task kunit_try_catch/155
[   13.493524] 
[   13.493769] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT(voluntary) 
[   13.494012] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.494036] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.494062] Call Trace:
[   13.494081]  <TASK>
[   13.494106]  dump_stack_lvl+0x73/0xb0
[   13.494144]  print_report+0xd1/0x650
[   13.494169]  ? __virt_addr_valid+0x1db/0x2d0
[   13.494196]  ? kmalloc_oob_left+0x361/0x3c0
[   13.494231]  ? kasan_complete_mode_report_info+0x2a/0x200
[   13.494255]  ? kmalloc_oob_left+0x361/0x3c0
[   13.494277]  kasan_report+0x141/0x180
[   13.494300]  ? kmalloc_oob_left+0x361/0x3c0
[   13.494380]  __asan_report_load1_noabort+0x18/0x20
[   13.494434]  kmalloc_oob_left+0x361/0x3c0
[   13.494501]  ? __pfx_kmalloc_oob_left+0x10/0x10
[   13.494538]  ? __schedule+0x10cc/0x2b60
[   13.494581]  ? __pfx_read_tsc+0x10/0x10
[   13.494606]  ? ktime_get_ts64+0x86/0x230
[   13.494634]  kunit_try_run_case+0x1a5/0x480
[   13.494660]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.494752]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.494786]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.494812]  ? __kthread_parkme+0x82/0x180
[   13.494835]  ? preempt_count_sub+0x50/0x80
[   13.494862]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.494884]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.494947]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.494973]  kthread+0x337/0x6f0
[   13.495009]  ? trace_preempt_on+0x20/0xc0
[   13.495036]  ? __pfx_kthread+0x10/0x10
[   13.495089]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.495113]  ? calculate_sigpending+0x7b/0xa0
[   13.495159]  ? __pfx_kthread+0x10/0x10
[   13.495183]  ret_from_fork+0x116/0x1d0
[   13.495222]  ? __pfx_kthread+0x10/0x10
[   13.495267]  ret_from_fork_asm+0x1a/0x30
[   13.495302]  </TASK>
[   13.495316] 
[   13.505578] Allocated by task 25:
[   13.506022]  kasan_save_stack+0x45/0x70
[   13.506363]  kasan_save_track+0x18/0x40
[   13.506652]  kasan_save_alloc_info+0x3b/0x50
[   13.507372]  __kasan_kmalloc+0xb7/0xc0
[   13.507674]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   13.508057]  kvasprintf+0xc5/0x150
[   13.508188]  __kthread_create_on_node+0x18b/0x3a0
[   13.508606]  kthread_create_on_node+0xab/0xe0
[   13.509028]  create_worker+0x3e5/0x7b0
[   13.509282]  worker_thread+0x992/0x1220
[   13.509538]  kthread+0x337/0x6f0
[   13.510093]  ret_from_fork+0x116/0x1d0
[   13.510428]  ret_from_fork_asm+0x1a/0x30
[   13.510604] 
[   13.510784] The buggy address belongs to the object at ffff888101c205c0
[   13.510784]  which belongs to the cache kmalloc-16 of size 16
[   13.511376] The buggy address is located 18 bytes to the right of
[   13.511376]  allocated 13-byte region [ffff888101c205c0, ffff888101c205cd)
[   13.512871] 
[   13.513042] The buggy address belongs to the physical page:
[   13.513845] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101c20
[   13.514700] flags: 0x200000000000000(node=0|zone=2)
[   13.515202] page_type: f5(slab)
[   13.515484] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   13.515690] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   13.516126] page dumped because: kasan: bad access detected
[   13.516556] 
[   13.516914] Memory state around the buggy address:
[   13.517503]  ffff888101c20480: 00 01 fc fc fa fb fc fc 00 01 fc fc 00 01 fc fc
[   13.517917]  ffff888101c20500: fa fb fc fc fa fb fc fc fa fb fc fc 00 01 fc fc
[   13.518567] >ffff888101c20580: 00 01 fc fc fa fb fc fc 00 05 fc fc 00 07 fc fc
[   13.519479]                                                     ^
[   13.519856]  ffff888101c20600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.520173]  ffff888101c20680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.520603] ==================================================================


[   17.757970] ==================================================================
[   17.768960] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0
[   17.775841] Read of size 1 at addr ffff888100aa545f by task kunit_try_catch/178
[   17.783155] 
[   17.784656] CPU: 1 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G S  B            N  6.15.0-next-20250603 #1 PREEMPT(voluntary) 
[   17.784664] Tainted: [S]=CPU_OUT_OF_SPEC, [B]=BAD_PAGE, [N]=TEST
[   17.784667] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.7 12/07/2021
[   17.784670] Call Trace:
[   17.784672]  <TASK>
[   17.784674]  dump_stack_lvl+0x73/0xb0
[   17.784678]  print_report+0xd1/0x650
[   17.784682]  ? __virt_addr_valid+0x1db/0x2d0
[   17.784686]  ? kmalloc_oob_left+0x361/0x3c0
[   17.784690]  ? kasan_complete_mode_report_info+0x2a/0x200
[   17.784694]  ? kmalloc_oob_left+0x361/0x3c0
[   17.784698]  kasan_report+0x141/0x180
[   17.784702]  ? kmalloc_oob_left+0x361/0x3c0
[   17.784707]  __asan_report_load1_noabort+0x18/0x20
[   17.784710]  kmalloc_oob_left+0x361/0x3c0
[   17.784714]  ? __pfx_kmalloc_oob_left+0x10/0x10
[   17.784719]  ? __schedule+0x10cc/0x2b60
[   17.784723]  ? ktime_get_ts64+0x83/0x230
[   17.784727]  kunit_try_run_case+0x1a2/0x480
[   17.784731]  ? __pfx_kunit_try_run_case+0x10/0x10
[   17.784734]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   17.784739]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   17.784744]  ? __kthread_parkme+0x82/0x180
[   17.784747]  ? preempt_count_sub+0x50/0x80
[   17.784751]  ? __pfx_kunit_try_run_case+0x10/0x10
[   17.784755]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   17.784759]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   17.784764]  kthread+0x334/0x6f0
[   17.784767]  ? trace_preempt_on+0x20/0xc0
[   17.784771]  ? __pfx_kthread+0x10/0x10
[   17.784775]  ? _raw_spin_unlock_irq+0x47/0x80
[   17.784779]  ? calculate_sigpending+0x7b/0xa0
[   17.784784]  ? __pfx_kthread+0x10/0x10
[   17.784787]  ret_from_fork+0x113/0x1d0
[   17.784791]  ? __pfx_kthread+0x10/0x10
[   17.784794]  ret_from_fork_asm+0x1a/0x30
[   17.784800]  </TASK>
[   17.784801] 
[   17.950054] Allocated by task 25:
[   17.953397]  kasan_save_stack+0x45/0x70
[   17.957250]  kasan_save_track+0x18/0x40
[   17.961086]  kasan_save_alloc_info+0x3b/0x50
[   17.965384]  __kasan_kmalloc+0xb7/0xc0
[   17.969156]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   17.974730]  kvasprintf+0xc5/0x150
[   17.978142]  __kthread_create_on_node+0x18b/0x3a0
[   17.982848]  kthread_create_on_node+0xab/0xe0
[   17.987208]  create_worker+0x3e5/0x7b0
[   17.990960]  worker_thread+0x992/0x1220
[   17.994801]  kthread+0x334/0x6f0
[   17.998035]  ret_from_fork+0x113/0x1d0
[   18.001785]  ret_from_fork_asm+0x1a/0x30
[   18.005712] 
[   18.007210] The buggy address belongs to the object at ffff888100aa5440
[   18.007210]  which belongs to the cache kmalloc-16 of size 16
[   18.019543] The buggy address is located 18 bytes to the right of
[   18.019543]  allocated 13-byte region [ffff888100aa5440, ffff888100aa544d)
[   18.032492] 
[   18.033989] The buggy address belongs to the physical page:
[   18.039564] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100aa5
[   18.047570] flags: 0x200000000000000(node=0|zone=2)
[   18.052451] page_type: f5(slab)
[   18.055598] raw: 0200000000000000 ffff888100042640 dead000000000122 0000000000000000
[   18.063345] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   18.071119] page dumped because: kasan: bad access detected
[   18.076691] 
[   18.078190] Memory state around the buggy address:
[   18.082982]  ffff888100aa5300: fa fb fc fc fa fb fc fc fa fb fc fc 00 00 fc fc
[   18.090204]  ffff888100aa5380: fa fb fc fc fa fb fc fc 00 06 fc fc 00 06 fc fc
[   18.097429] >ffff888100aa5400: 00 06 fc fc 00 00 fc fc 00 05 fc fc 00 07 fc fc
[   18.104649]                                                     ^
[   18.110743]  ffff888100aa5480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.117969]  ffff888100aa5500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.125190] ==================================================================