Date
May 13, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.866098] ================================================================== [ 18.866344] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 18.866496] Read of size 1 at addr fff00000c403505f by task kunit_try_catch/138 [ 18.866608] [ 18.866695] CPU: 1 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT [ 18.866906] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.866980] Hardware name: linux,dummy-virt (DT) [ 18.867063] Call trace: [ 18.867118] show_stack+0x20/0x38 (C) [ 18.867245] dump_stack_lvl+0x8c/0xd0 [ 18.867360] print_report+0x118/0x608 [ 18.867472] kasan_report+0xdc/0x128 [ 18.867580] __asan_report_load1_noabort+0x20/0x30 [ 18.867703] kmalloc_oob_left+0x2ec/0x320 [ 18.867816] kunit_try_run_case+0x170/0x3f0 [ 18.867937] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.868605] kthread+0x328/0x630 [ 18.868802] ret_from_fork+0x10/0x20 [ 18.869277] [ 18.869328] Allocated by task 26: [ 18.869420] kasan_save_stack+0x3c/0x68 [ 18.869608] kasan_save_track+0x20/0x40 [ 18.869838] kasan_save_alloc_info+0x40/0x58 [ 18.869948] __kasan_kmalloc+0xd4/0xd8 [ 18.870049] __kmalloc_node_track_caller_noprof+0x18c/0x4c0 [ 18.870442] kstrdup+0x54/0xc8 [ 18.870542] devtmpfs_work_loop+0x6f8/0xa58 [ 18.870764] devtmpfsd+0x50/0x58 [ 18.871262] kthread+0x328/0x630 [ 18.871429] ret_from_fork+0x10/0x20 [ 18.871554] [ 18.871634] Freed by task 26: [ 18.871763] kasan_save_stack+0x3c/0x68 [ 18.871865] kasan_save_track+0x20/0x40 [ 18.871951] kasan_save_free_info+0x4c/0x78 [ 18.872059] __kasan_slab_free+0x6c/0x98 [ 18.872552] kfree+0x214/0x3c8 [ 18.872658] devtmpfs_work_loop+0x804/0xa58 [ 18.872723] devtmpfsd+0x50/0x58 [ 18.872781] kthread+0x328/0x630 [ 18.872909] ret_from_fork+0x10/0x20 [ 18.873050] [ 18.873114] The buggy address belongs to the object at fff00000c4035040 [ 18.873114] which belongs to the cache kmalloc-16 of size 16 [ 18.873268] The buggy address is located 15 bytes to the right of [ 18.873268] allocated 16-byte region [fff00000c4035040, fff00000c4035050) [ 18.873438] [ 18.873507] The buggy address belongs to the physical page: [ 18.873591] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104035 [ 18.873737] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.873921] page_type: f5(slab) [ 18.874090] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 18.874239] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 18.874351] page dumped because: kasan: bad access detected [ 18.874424] [ 18.874511] Memory state around the buggy address: [ 18.874582] fff00000c4034f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.874682] fff00000c4034f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.874791] >fff00000c4035000: 00 02 fc fc 00 05 fc fc fa fb fc fc 00 07 fc fc [ 18.874878] ^ [ 18.875023] fff00000c4035080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.875373] fff00000c4035100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.875695] ==================================================================
[ 10.422746] ================================================================== [ 10.423944] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 10.424701] Read of size 1 at addr ffff888101c8693f by task kunit_try_catch/155 [ 10.425566] [ 10.425723] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) [ 10.425774] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.425836] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.425858] Call Trace: [ 10.425871] <TASK> [ 10.425888] dump_stack_lvl+0x73/0xb0 [ 10.425967] print_report+0xd1/0x650 [ 10.425989] ? __virt_addr_valid+0x1db/0x2d0 [ 10.426024] ? kmalloc_oob_left+0x361/0x3c0 [ 10.426045] ? kasan_complete_mode_report_info+0x64/0x200 [ 10.426067] ? kmalloc_oob_left+0x361/0x3c0 [ 10.426089] kasan_report+0x141/0x180 [ 10.426110] ? kmalloc_oob_left+0x361/0x3c0 [ 10.426137] __asan_report_load1_noabort+0x18/0x20 [ 10.426157] kmalloc_oob_left+0x361/0x3c0 [ 10.426195] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 10.426219] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 10.426244] kunit_try_run_case+0x1a5/0x480 [ 10.426269] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.426290] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.426312] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.426334] ? __kthread_parkme+0x82/0x180 [ 10.426354] ? preempt_count_sub+0x50/0x80 [ 10.426379] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.426402] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.426424] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.426446] kthread+0x337/0x6f0 [ 10.426470] ? trace_preempt_on+0x20/0xc0 [ 10.426494] ? __pfx_kthread+0x10/0x10 [ 10.426514] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.426556] ? calculate_sigpending+0x7b/0xa0 [ 10.426579] ? __pfx_kthread+0x10/0x10 [ 10.426601] ret_from_fork+0x116/0x1d0 [ 10.426628] ? __pfx_kthread+0x10/0x10 [ 10.426649] ret_from_fork_asm+0x1a/0x30 [ 10.426681] </TASK> [ 10.426692] [ 10.440161] Allocated by task 1: [ 10.440607] kasan_save_stack+0x45/0x70 [ 10.441031] kasan_save_track+0x18/0x40 [ 10.441446] kasan_save_alloc_info+0x3b/0x50 [ 10.441971] __kasan_kmalloc+0xb7/0xc0 [ 10.442199] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.442431] kvasprintf+0xc5/0x150 [ 10.442599] __kthread_create_on_node+0x18b/0x3a0 [ 10.443066] kthread_create_on_node+0xab/0xe0 [ 10.443534] cryptomgr_notify+0x704/0x9f0 [ 10.444006] notifier_call_chain+0xcb/0x250 [ 10.444428] blocking_notifier_call_chain+0x64/0x90 [ 10.444821] crypto_alg_mod_lookup+0x21f/0x440 [ 10.445108] crypto_alloc_tfm_node+0xc5/0x1f0 [ 10.445388] crypto_alloc_sig+0x23/0x30 [ 10.445889] public_key_verify_signature+0x208/0x9f0 [ 10.446388] x509_check_for_self_signed+0x2cb/0x480 [ 10.446743] x509_cert_parse+0x59c/0x830 [ 10.447187] x509_key_preparse+0x68/0x8a0 [ 10.447581] asymmetric_key_preparse+0xb1/0x160 [ 10.448097] __key_create_or_update+0x43d/0xcc0 [ 10.448405] key_create_or_update+0x17/0x20 [ 10.448890] x509_load_certificate_list+0x174/0x200 [ 10.449175] regulatory_init_db+0xee/0x3a0 [ 10.449325] do_one_initcall+0xd8/0x370 [ 10.449458] kernel_init_freeable+0x420/0x6f0 [ 10.449644] kernel_init+0x23/0x1e0 [ 10.449805] ret_from_fork+0x116/0x1d0 [ 10.449995] ret_from_fork_asm+0x1a/0x30 [ 10.450202] [ 10.450304] Freed by task 0: [ 10.450505] kasan_save_stack+0x45/0x70 [ 10.450785] kasan_save_track+0x18/0x40 [ 10.450921] kasan_save_free_info+0x3f/0x60 [ 10.451125] __kasan_slab_free+0x56/0x70 [ 10.451877] kfree+0x222/0x3f0 [ 10.452082] free_kthread_struct+0xeb/0x150 [ 10.452463] free_task+0xf3/0x130 [ 10.452822] __put_task_struct+0x1c8/0x480 [ 10.453218] delayed_put_task_struct+0x10a/0x150 [ 10.453540] rcu_core+0x66f/0x1c40 [ 10.453929] rcu_core_si+0x12/0x20 [ 10.454228] handle_softirqs+0x209/0x730 [ 10.454785] __irq_exit_rcu+0xc9/0x110 [ 10.454991] irq_exit_rcu+0x12/0x20 [ 10.455170] sysvec_apic_timer_interrupt+0x81/0x90 [ 10.455453] asm_sysvec_apic_timer_interrupt+0x1f/0x30 [ 10.455780] [ 10.456036] The buggy address belongs to the object at ffff888101c86920 [ 10.456036] which belongs to the cache kmalloc-16 of size 16 [ 10.456906] The buggy address is located 15 bytes to the right of [ 10.456906] allocated 16-byte region [ffff888101c86920, ffff888101c86930) [ 10.457759] [ 10.457862] The buggy address belongs to the physical page: [ 10.458055] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101c86 [ 10.459014] flags: 0x200000000000000(node=0|zone=2) [ 10.459258] page_type: f5(slab) [ 10.459673] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 10.459984] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 10.460489] page dumped because: kasan: bad access detected [ 10.460928] [ 10.461153] Memory state around the buggy address: [ 10.461507] ffff888101c86800: 00 04 fc fc 00 00 fc fc 00 04 fc fc 00 04 fc fc [ 10.461884] ffff888101c86880: 00 00 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 10.462345] >ffff888101c86900: fa fb fc fc fa fb fc fc 00 07 fc fc fc fc fc fc [ 10.462999] ^ [ 10.463179] ffff888101c86980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.463688] ffff888101c86a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.464156] ==================================================================