Date
July 1, 2025, 12:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.056455] ================================================================== [ 17.056716] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 17.056792] Read of size 1 at addr fff00000c45517ff by task kunit_try_catch/138 [ 17.056848] [ 17.056901] CPU: 1 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.057143] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.057172] Hardware name: linux,dummy-virt (DT) [ 17.057207] Call trace: [ 17.057232] show_stack+0x20/0x38 (C) [ 17.057404] dump_stack_lvl+0x8c/0xd0 [ 17.057494] print_report+0x118/0x608 [ 17.057544] kasan_report+0xdc/0x128 [ 17.057592] __asan_report_load1_noabort+0x20/0x30 [ 17.057672] kmalloc_oob_left+0x2ec/0x320 [ 17.057720] kunit_try_run_case+0x170/0x3f0 [ 17.057774] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.057830] kthread+0x328/0x630 [ 17.057875] ret_from_fork+0x10/0x20 [ 17.057936] [ 17.057969] Allocated by task 26: [ 17.058002] kasan_save_stack+0x3c/0x68 [ 17.058079] kasan_save_track+0x20/0x40 [ 17.058131] kasan_save_alloc_info+0x40/0x58 [ 17.058172] __kasan_kmalloc+0xd4/0xd8 [ 17.058210] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 17.058466] kstrdup+0x54/0xc8 [ 17.058558] devtmpfs_work_loop+0x6f8/0xa58 [ 17.058602] devtmpfsd+0x50/0x58 [ 17.058639] kthread+0x328/0x630 [ 17.058673] ret_from_fork+0x10/0x20 [ 17.058730] [ 17.058765] Freed by task 26: [ 17.058805] kasan_save_stack+0x3c/0x68 [ 17.058846] kasan_save_track+0x20/0x40 [ 17.058903] kasan_save_free_info+0x4c/0x78 [ 17.058995] __kasan_slab_free+0x6c/0x98 [ 17.059215] kfree+0x214/0x3c8 [ 17.059273] devtmpfs_work_loop+0x804/0xa58 [ 17.059313] devtmpfsd+0x50/0x58 [ 17.059432] kthread+0x328/0x630 [ 17.059488] ret_from_fork+0x10/0x20 [ 17.059536] [ 17.059560] The buggy address belongs to the object at fff00000c45517e0 [ 17.059560] which belongs to the cache kmalloc-16 of size 16 [ 17.059759] The buggy address is located 15 bytes to the right of [ 17.059759] allocated 16-byte region [fff00000c45517e0, fff00000c45517f0) [ 17.059991] [ 17.060015] The buggy address belongs to the physical page: [ 17.060059] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104551 [ 17.060313] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.060401] page_type: f5(slab) [ 17.060540] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.060608] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.060655] page dumped because: kasan: bad access detected [ 17.060689] [ 17.060761] Memory state around the buggy address: [ 17.060850] fff00000c4551680: fa fb fc fc 00 01 fc fc fa fb fc fc fa fb fc fc [ 17.060944] fff00000c4551700: 00 07 fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 17.061116] >fff00000c4551780: fa fb fc fc fa fb fc fc 00 05 fc fc fa fb fc fc [ 17.061157] ^ [ 17.061201] fff00000c4551800: 00 07 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.061247] fff00000c4551880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.061290] ==================================================================
[ 10.800499] ================================================================== [ 10.800925] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 10.802268] Read of size 1 at addr ffff8881027a105f by task kunit_try_catch/155 [ 10.803904] [ 10.804380] CPU: 0 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.804431] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.804443] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.804466] Call Trace: [ 10.804479] <TASK> [ 10.804497] dump_stack_lvl+0x73/0xb0 [ 10.804528] print_report+0xd1/0x650 [ 10.804550] ? __virt_addr_valid+0x1db/0x2d0 [ 10.804573] ? kmalloc_oob_left+0x361/0x3c0 [ 10.804592] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.804613] ? kmalloc_oob_left+0x361/0x3c0 [ 10.804633] kasan_report+0x141/0x180 [ 10.804654] ? kmalloc_oob_left+0x361/0x3c0 [ 10.804678] __asan_report_load1_noabort+0x18/0x20 [ 10.804702] kmalloc_oob_left+0x361/0x3c0 [ 10.804724] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 10.804746] ? __schedule+0x10cc/0x2b60 [ 10.804769] ? __pfx_read_tsc+0x10/0x10 [ 10.804789] ? ktime_get_ts64+0x86/0x230 [ 10.804813] kunit_try_run_case+0x1a5/0x480 [ 10.804836] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.804857] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.804880] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.804902] ? __kthread_parkme+0x82/0x180 [ 10.804922] ? preempt_count_sub+0x50/0x80 [ 10.804944] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.804966] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.804988] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.805009] kthread+0x337/0x6f0 [ 10.805040] ? trace_preempt_on+0x20/0xc0 [ 10.805064] ? __pfx_kthread+0x10/0x10 [ 10.805083] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.805103] ? calculate_sigpending+0x7b/0xa0 [ 10.805126] ? __pfx_kthread+0x10/0x10 [ 10.805146] ret_from_fork+0x116/0x1d0 [ 10.805163] ? __pfx_kthread+0x10/0x10 [ 10.805182] ret_from_fork_asm+0x1a/0x30 [ 10.805211] </TASK> [ 10.805222] [ 10.820588] Allocated by task 1: [ 10.820821] kasan_save_stack+0x45/0x70 [ 10.821469] kasan_save_track+0x18/0x40 [ 10.821940] kasan_save_alloc_info+0x3b/0x50 [ 10.822131] __kasan_kmalloc+0xb7/0xc0 [ 10.822736] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.823379] kvasprintf+0xc5/0x150 [ 10.823515] __kthread_create_on_node+0x18b/0x3a0 [ 10.823674] kthread_create_on_node+0xab/0xe0 [ 10.823823] create_worker+0x3e5/0x7b0 [ 10.823958] alloc_unbound_pwq+0x8ea/0xdb0 [ 10.824192] apply_wqattrs_prepare+0x332/0xd20 [ 10.824579] apply_workqueue_attrs_locked+0x4d/0xa0 [ 10.825296] alloc_workqueue+0xcc7/0x1ad0 [ 10.825601] latency_fsnotify_init+0x1b/0x50 [ 10.825823] do_one_initcall+0xd8/0x370 [ 10.826020] kernel_init_freeable+0x420/0x6f0 [ 10.826603] kernel_init+0x23/0x1e0 [ 10.826899] ret_from_fork+0x116/0x1d0 [ 10.827121] ret_from_fork_asm+0x1a/0x30 [ 10.827383] [ 10.827672] The buggy address belongs to the object at ffff8881027a1040 [ 10.827672] which belongs to the cache kmalloc-16 of size 16 [ 10.828357] The buggy address is located 18 bytes to the right of [ 10.828357] allocated 13-byte region [ffff8881027a1040, ffff8881027a104d) [ 10.828877] [ 10.828975] The buggy address belongs to the physical page: [ 10.829491] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027a1 [ 10.829900] flags: 0x200000000000000(node=0|zone=2) [ 10.830312] page_type: f5(slab) [ 10.830528] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 10.831104] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 10.831942] page dumped because: kasan: bad access detected [ 10.832550] [ 10.832645] Memory state around the buggy address: [ 10.832864] ffff8881027a0f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.833800] ffff8881027a0f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.834728] >ffff8881027a1000: fa fb fc fc fa fb fc fc 00 05 fc fc 00 07 fc fc [ 10.835256] ^ [ 10.835992] ffff8881027a1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.836634] ffff8881027a1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.837297] ==================================================================