Date
July 5, 2025, 5:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.988400] ================================================================== [ 17.988527] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 17.988580] Read of size 1 at addr fff00000c5cb365f by task kunit_try_catch/138 [ 17.988645] [ 17.988678] CPU: 1 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.988755] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.988816] Hardware name: linux,dummy-virt (DT) [ 17.988848] Call trace: [ 17.988881] show_stack+0x20/0x38 (C) [ 17.988927] dump_stack_lvl+0x8c/0xd0 [ 17.988971] print_report+0x118/0x608 [ 17.989016] kasan_report+0xdc/0x128 [ 17.989061] __asan_report_load1_noabort+0x20/0x30 [ 17.989357] kmalloc_oob_left+0x2ec/0x320 [ 17.989456] kunit_try_run_case+0x170/0x3f0 [ 17.989532] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.989584] kthread+0x328/0x630 [ 17.989625] ret_from_fork+0x10/0x20 [ 17.989671] [ 17.989883] Allocated by task 26: [ 17.989999] kasan_save_stack+0x3c/0x68 [ 17.990076] kasan_save_track+0x20/0x40 [ 17.990133] kasan_save_alloc_info+0x40/0x58 [ 17.990201] __kasan_kmalloc+0xd4/0xd8 [ 17.990237] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 17.990296] kstrdup+0x54/0xc8 [ 17.990330] devtmpfs_work_loop+0x6f8/0xa58 [ 17.990396] devtmpfsd+0x50/0x58 [ 17.990462] kthread+0x328/0x630 [ 17.990511] ret_from_fork+0x10/0x20 [ 17.990547] [ 17.990594] Freed by task 26: [ 17.990657] kasan_save_stack+0x3c/0x68 [ 17.990702] kasan_save_track+0x20/0x40 [ 17.990739] kasan_save_free_info+0x4c/0x78 [ 17.990778] __kasan_slab_free+0x6c/0x98 [ 17.990822] kfree+0x214/0x3c8 [ 17.991018] devtmpfs_work_loop+0x804/0xa58 [ 17.991054] devtmpfsd+0x50/0x58 [ 17.991086] kthread+0x328/0x630 [ 17.991203] ret_from_fork+0x10/0x20 [ 17.991439] [ 17.991519] The buggy address belongs to the object at fff00000c5cb3640 [ 17.991519] which belongs to the cache kmalloc-16 of size 16 [ 17.991621] The buggy address is located 15 bytes to the right of [ 17.991621] allocated 16-byte region [fff00000c5cb3640, fff00000c5cb3650) [ 17.991692] [ 17.991729] The buggy address belongs to the physical page: [ 17.991758] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105cb3 [ 17.991808] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.991854] page_type: f5(slab) [ 17.991914] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.991966] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.992006] page dumped because: kasan: bad access detected [ 17.992036] [ 17.992053] Memory state around the buggy address: [ 17.992093] fff00000c5cb3500: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 17.992140] fff00000c5cb3580: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 17.992183] >fff00000c5cb3600: fa fb fc fc fa fb fc fc fa fb fc fc 00 07 fc fc [ 17.992219] ^ [ 17.992269] fff00000c5cb3680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.992315] fff00000c5cb3700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.992363] ==================================================================
[ 10.923522] ================================================================== [ 10.924009] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 10.924317] Read of size 1 at addr ffff888102251dbf by task kunit_try_catch/156 [ 10.924670] [ 10.924821] CPU: 0 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.924863] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.924876] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.924899] Call Trace: [ 10.924911] <TASK> [ 10.924927] dump_stack_lvl+0x73/0xb0 [ 10.924954] print_report+0xd1/0x650 [ 10.924976] ? __virt_addr_valid+0x1db/0x2d0 [ 10.924997] ? kmalloc_oob_left+0x361/0x3c0 [ 10.925028] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.925049] ? kmalloc_oob_left+0x361/0x3c0 [ 10.925070] kasan_report+0x141/0x180 [ 10.925102] ? kmalloc_oob_left+0x361/0x3c0 [ 10.925128] __asan_report_load1_noabort+0x18/0x20 [ 10.925151] kmalloc_oob_left+0x361/0x3c0 [ 10.925172] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 10.925193] ? __schedule+0x10cc/0x2b60 [ 10.925214] ? __pfx_read_tsc+0x10/0x10 [ 10.925233] ? ktime_get_ts64+0x86/0x230 [ 10.925256] kunit_try_run_case+0x1a5/0x480 [ 10.925279] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.925300] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.925322] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.925344] ? __kthread_parkme+0x82/0x180 [ 10.925364] ? preempt_count_sub+0x50/0x80 [ 10.925391] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.925414] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.925436] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.925468] kthread+0x337/0x6f0 [ 10.925487] ? trace_preempt_on+0x20/0xc0 [ 10.925509] ? __pfx_kthread+0x10/0x10 [ 10.925529] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.925549] ? calculate_sigpending+0x7b/0xa0 [ 10.925571] ? __pfx_kthread+0x10/0x10 [ 10.925592] ret_from_fork+0x116/0x1d0 [ 10.925609] ? __pfx_kthread+0x10/0x10 [ 10.925628] ret_from_fork_asm+0x1a/0x30 [ 10.925658] </TASK> [ 10.925668] [ 10.934206] Allocated by task 1: [ 10.934425] kasan_save_stack+0x45/0x70 [ 10.934765] kasan_save_track+0x18/0x40 [ 10.934917] kasan_save_alloc_info+0x3b/0x50 [ 10.935250] __kasan_kmalloc+0xb7/0xc0 [ 10.935523] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.935757] kvasprintf+0xc5/0x150 [ 10.936006] __kthread_create_on_node+0x18b/0x3a0 [ 10.936271] kthread_create_on_node+0xab/0xe0 [ 10.936484] create_worker+0x3e5/0x7b0 [ 10.936675] alloc_unbound_pwq+0x8ea/0xdb0 [ 10.936834] apply_wqattrs_prepare+0x332/0xd20 [ 10.937057] apply_workqueue_attrs_locked+0x4d/0xa0 [ 10.937271] alloc_workqueue+0xcc7/0x1ad0 [ 10.937844] latency_fsnotify_init+0x1b/0x50 [ 10.938110] do_one_initcall+0xd8/0x370 [ 10.938377] kernel_init_freeable+0x420/0x6f0 [ 10.938657] kernel_init+0x23/0x1e0 [ 10.938887] ret_from_fork+0x116/0x1d0 [ 10.939179] ret_from_fork_asm+0x1a/0x30 [ 10.939412] [ 10.939594] The buggy address belongs to the object at ffff888102251da0 [ 10.939594] which belongs to the cache kmalloc-16 of size 16 [ 10.940216] The buggy address is located 18 bytes to the right of [ 10.940216] allocated 13-byte region [ffff888102251da0, ffff888102251dad) [ 10.940783] [ 10.940951] The buggy address belongs to the physical page: [ 10.941238] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102251 [ 10.941681] flags: 0x200000000000000(node=0|zone=2) [ 10.941995] page_type: f5(slab) [ 10.942128] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 10.942582] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 10.942891] page dumped because: kasan: bad access detected [ 10.943136] [ 10.943215] Memory state around the buggy address: [ 10.943419] ffff888102251c80: 00 04 fc fc 00 00 fc fc 00 02 fc fc 00 02 fc fc [ 10.943996] ffff888102251d00: 00 06 fc fc 00 06 fc fc fa fb fc fc fa fb fc fc [ 10.944284] >ffff888102251d80: fa fb fc fc 00 05 fc fc 00 07 fc fc fc fc fc fc [ 10.944665] ^ [ 10.944854] ffff888102251e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.945275] ffff888102251e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.945653] ==================================================================