Date
July 6, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.792984] ================================================================== [ 17.793070] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 17.793121] Read of size 1 at addr fff00000c1cea89f by task kunit_try_catch/138 [ 17.793169] [ 17.793255] CPU: 1 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.793335] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.793360] Hardware name: linux,dummy-virt (DT) [ 17.793487] Call trace: [ 17.793547] show_stack+0x20/0x38 (C) [ 17.793849] dump_stack_lvl+0x8c/0xd0 [ 17.793907] print_report+0x118/0x608 [ 17.793984] kasan_report+0xdc/0x128 [ 17.794096] __asan_report_load1_noabort+0x20/0x30 [ 17.794300] kmalloc_oob_left+0x2ec/0x320 [ 17.794406] kunit_try_run_case+0x170/0x3f0 [ 17.794542] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.794605] kthread+0x328/0x630 [ 17.794646] ret_from_fork+0x10/0x20 [ 17.794692] [ 17.794710] Allocated by task 26: [ 17.794741] kasan_save_stack+0x3c/0x68 [ 17.794782] kasan_save_track+0x20/0x40 [ 17.794818] kasan_save_alloc_info+0x40/0x58 [ 17.795080] __kasan_kmalloc+0xd4/0xd8 [ 17.795259] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 17.795346] kstrdup+0x54/0xc8 [ 17.795452] devtmpfs_work_loop+0x6f8/0xa58 [ 17.795581] devtmpfsd+0x50/0x58 [ 17.795640] kthread+0x328/0x630 [ 17.795699] ret_from_fork+0x10/0x20 [ 17.795735] [ 17.795778] Freed by task 26: [ 17.795815] kasan_save_stack+0x3c/0x68 [ 17.795860] kasan_save_track+0x20/0x40 [ 17.795902] kasan_save_free_info+0x4c/0x78 [ 17.795942] __kasan_slab_free+0x6c/0x98 [ 17.795978] kfree+0x214/0x3c8 [ 17.796009] devtmpfs_work_loop+0x804/0xa58 [ 17.796046] devtmpfsd+0x50/0x58 [ 17.796079] kthread+0x328/0x630 [ 17.796110] ret_from_fork+0x10/0x20 [ 17.796168] [ 17.796201] The buggy address belongs to the object at fff00000c1cea880 [ 17.796201] which belongs to the cache kmalloc-16 of size 16 [ 17.796256] The buggy address is located 15 bytes to the right of [ 17.796256] allocated 16-byte region [fff00000c1cea880, fff00000c1cea890) [ 17.796319] [ 17.796338] The buggy address belongs to the physical page: [ 17.796375] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101cea [ 17.796426] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.796474] page_type: f5(slab) [ 17.796512] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.796561] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.796610] page dumped because: kasan: bad access detected [ 17.796640] [ 17.796659] Memory state around the buggy address: [ 17.796707] fff00000c1cea780: fa fb fc fc fa fb fc fc 00 07 fc fc fa fb fc fc [ 17.796756] fff00000c1cea800: fa fb fc fc 00 04 fc fc fa fb fc fc fa fb fc fc [ 17.796798] >fff00000c1cea880: fa fb fc fc 00 07 fc fc fc fc fc fc fc fc fc fc [ 17.796834] ^ [ 17.796872] fff00000c1cea900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.796919] fff00000c1cea980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.796956] ==================================================================
[ 10.918547] ================================================================== [ 10.919826] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 10.920480] Read of size 1 at addr ffff888100fbfadf by task kunit_try_catch/155 [ 10.920953] [ 10.921210] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.921258] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.921270] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.921303] Call Trace: [ 10.921319] <TASK> [ 10.921337] dump_stack_lvl+0x73/0xb0 [ 10.921370] print_report+0xd1/0x650 [ 10.921424] ? __virt_addr_valid+0x1db/0x2d0 [ 10.921448] ? kmalloc_oob_left+0x361/0x3c0 [ 10.921512] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.921535] ? kmalloc_oob_left+0x361/0x3c0 [ 10.921556] kasan_report+0x141/0x180 [ 10.921577] ? kmalloc_oob_left+0x361/0x3c0 [ 10.921603] __asan_report_load1_noabort+0x18/0x20 [ 10.921626] kmalloc_oob_left+0x361/0x3c0 [ 10.921647] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 10.921669] ? __schedule+0x10cc/0x2b60 [ 10.921691] ? __pfx_read_tsc+0x10/0x10 [ 10.921712] ? ktime_get_ts64+0x86/0x230 [ 10.921737] kunit_try_run_case+0x1a5/0x480 [ 10.921762] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.921783] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.921806] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.921828] ? __kthread_parkme+0x82/0x180 [ 10.921849] ? preempt_count_sub+0x50/0x80 [ 10.921872] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.921895] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.921916] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.921948] kthread+0x337/0x6f0 [ 10.921969] ? trace_preempt_on+0x20/0xc0 [ 10.921992] ? __pfx_kthread+0x10/0x10 [ 10.922013] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.922033] ? calculate_sigpending+0x7b/0xa0 [ 10.922098] ? __pfx_kthread+0x10/0x10 [ 10.922121] ret_from_fork+0x116/0x1d0 [ 10.922140] ? __pfx_kthread+0x10/0x10 [ 10.922161] ret_from_fork_asm+0x1a/0x30 [ 10.922191] </TASK> [ 10.922203] [ 10.934077] Allocated by task 1: [ 10.934384] kasan_save_stack+0x45/0x70 [ 10.934797] kasan_save_track+0x18/0x40 [ 10.935168] kasan_save_alloc_info+0x3b/0x50 [ 10.935585] __kasan_kmalloc+0xb7/0xc0 [ 10.935760] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.935954] kvasprintf+0xc5/0x150 [ 10.936095] __kthread_create_on_node+0x18b/0x3a0 [ 10.936507] kthread_create_on_node+0xab/0xe0 [ 10.936967] create_worker+0x3e5/0x7b0 [ 10.937357] alloc_unbound_pwq+0x8ea/0xdb0 [ 10.937784] apply_wqattrs_prepare+0x332/0xd20 [ 10.938235] apply_workqueue_attrs_locked+0x4d/0xa0 [ 10.938726] alloc_workqueue+0xcc7/0x1ad0 [ 10.938975] latency_fsnotify_init+0x1b/0x50 [ 10.939258] do_one_initcall+0xd8/0x370 [ 10.939664] kernel_init_freeable+0x420/0x6f0 [ 10.940134] kernel_init+0x23/0x1e0 [ 10.940307] ret_from_fork+0x116/0x1d0 [ 10.940712] ret_from_fork_asm+0x1a/0x30 [ 10.941096] [ 10.941172] The buggy address belongs to the object at ffff888100fbfac0 [ 10.941172] which belongs to the cache kmalloc-16 of size 16 [ 10.941589] The buggy address is located 18 bytes to the right of [ 10.941589] allocated 13-byte region [ffff888100fbfac0, ffff888100fbfacd) [ 10.942709] [ 10.942877] The buggy address belongs to the physical page: [ 10.943500] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100fbf [ 10.944212] flags: 0x200000000000000(node=0|zone=2) [ 10.944383] page_type: f5(slab) [ 10.944594] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 10.945283] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 10.945988] page dumped because: kasan: bad access detected [ 10.946564] [ 10.946666] Memory state around the buggy address: [ 10.946823] ffff888100fbf980: 00 06 fc fc 00 00 fc fc fa fb fc fc 00 04 fc fc [ 10.947060] ffff888100fbfa00: 00 04 fc fc 00 00 fc fc fa fb fc fc fa fb fc fc [ 10.947671] >ffff888100fbfa80: fa fb fc fc fa fb fc fc 00 05 fc fc 00 07 fc fc [ 10.948360] ^ [ 10.948583] ffff888100fbfb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.949337] ffff888100fbfb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.950101] ==================================================================