Date
July 1, 2025, 3:08 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.652380] ================================================================== [ 16.652505] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 16.652601] Read of size 1 at addr fff00000c56b607f by task kunit_try_catch/139 [ 16.652658] [ 16.652751] CPU: 1 UID: 0 PID: 139 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 16.652863] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.652890] Hardware name: linux,dummy-virt (DT) [ 16.652947] Call trace: [ 16.652986] show_stack+0x20/0x38 (C) [ 16.653053] dump_stack_lvl+0x8c/0xd0 [ 16.653129] print_report+0x118/0x608 [ 16.653193] kasan_report+0xdc/0x128 [ 16.653238] __asan_report_load1_noabort+0x20/0x30 [ 16.653293] kmalloc_oob_left+0x2ec/0x320 [ 16.653386] kunit_try_run_case+0x170/0x3f0 [ 16.653493] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.653559] kthread+0x328/0x630 [ 16.653645] ret_from_fork+0x10/0x20 [ 16.653694] [ 16.653712] Allocated by task 26: [ 16.653741] kasan_save_stack+0x3c/0x68 [ 16.653909] kasan_save_track+0x20/0x40 [ 16.653947] kasan_save_alloc_info+0x40/0x58 [ 16.653986] __kasan_kmalloc+0xd4/0xd8 [ 16.654021] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 16.654064] kstrdup+0x54/0xc8 [ 16.654097] devtmpfs_work_loop+0x6f8/0xa58 [ 16.654138] devtmpfsd+0x50/0x58 [ 16.654171] kthread+0x328/0x630 [ 16.654202] ret_from_fork+0x10/0x20 [ 16.654444] [ 16.654522] Freed by task 26: [ 16.654657] kasan_save_stack+0x3c/0x68 [ 16.654733] kasan_save_track+0x20/0x40 [ 16.654829] kasan_save_free_info+0x4c/0x78 [ 16.654924] __kasan_slab_free+0x6c/0x98 [ 16.654971] kfree+0x214/0x3c8 [ 16.655039] devtmpfs_work_loop+0x804/0xa58 [ 16.655124] devtmpfsd+0x50/0x58 [ 16.655240] kthread+0x328/0x630 [ 16.655304] ret_from_fork+0x10/0x20 [ 16.655347] [ 16.655368] The buggy address belongs to the object at fff00000c56b6060 [ 16.655368] which belongs to the cache kmalloc-16 of size 16 [ 16.655426] The buggy address is located 15 bytes to the right of [ 16.655426] allocated 16-byte region [fff00000c56b6060, fff00000c56b6070) [ 16.655490] [ 16.655826] The buggy address belongs to the physical page: [ 16.655914] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1056b6 [ 16.656015] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.656111] page_type: f5(slab) [ 16.656190] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.656251] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.656291] page dumped because: kasan: bad access detected [ 16.656322] [ 16.656339] Memory state around the buggy address: [ 16.656371] fff00000c56b5f00: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 16.656454] fff00000c56b5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.656663] >fff00000c56b6000: fa fb fc fc 00 02 fc fc fa fb fc fc fa fb fc fc [ 16.656743] ^ [ 16.656844] fff00000c56b6080: 00 07 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.656929] fff00000c56b6100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.656979] ==================================================================
[ 10.883901] ================================================================== [ 10.884923] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 10.885249] Read of size 1 at addr ffff88810191e89f by task kunit_try_catch/155 [ 10.885516] [ 10.885638] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.885685] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.885697] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.885721] Call Trace: [ 10.885734] <TASK> [ 10.885754] dump_stack_lvl+0x73/0xb0 [ 10.885784] print_report+0xd1/0x650 [ 10.885806] ? __virt_addr_valid+0x1db/0x2d0 [ 10.885829] ? kmalloc_oob_left+0x361/0x3c0 [ 10.885849] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.885869] ? kmalloc_oob_left+0x361/0x3c0 [ 10.885889] kasan_report+0x141/0x180 [ 10.885910] ? kmalloc_oob_left+0x361/0x3c0 [ 10.885934] __asan_report_load1_noabort+0x18/0x20 [ 10.885957] kmalloc_oob_left+0x361/0x3c0 [ 10.885977] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 10.885998] ? __schedule+0x10cc/0x2b60 [ 10.886019] ? __pfx_read_tsc+0x10/0x10 [ 10.886050] ? ktime_get_ts64+0x86/0x230 [ 10.886074] kunit_try_run_case+0x1a5/0x480 [ 10.886098] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.886118] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.886141] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.886163] ? __kthread_parkme+0x82/0x180 [ 10.886182] ? preempt_count_sub+0x50/0x80 [ 10.886205] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.886227] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.886248] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.886270] kthread+0x337/0x6f0 [ 10.886288] ? trace_preempt_on+0x20/0xc0 [ 10.886311] ? __pfx_kthread+0x10/0x10 [ 10.886331] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.886350] ? calculate_sigpending+0x7b/0xa0 [ 10.886373] ? __pfx_kthread+0x10/0x10 [ 10.886393] ret_from_fork+0x116/0x1d0 [ 10.886410] ? __pfx_kthread+0x10/0x10 [ 10.886429] ret_from_fork_asm+0x1a/0x30 [ 10.886459] </TASK> [ 10.886470] [ 10.893822] Allocated by task 1: [ 10.894174] kasan_save_stack+0x45/0x70 [ 10.894332] kasan_save_track+0x18/0x40 [ 10.894469] kasan_save_alloc_info+0x3b/0x50 [ 10.894616] __kasan_kmalloc+0xb7/0xc0 [ 10.894790] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.895058] kvasprintf+0xc5/0x150 [ 10.895233] __kthread_create_on_node+0x18b/0x3a0 [ 10.895504] kthread_create_on_node+0xab/0xe0 [ 10.895818] create_worker+0x3e5/0x7b0 [ 10.895970] alloc_unbound_pwq+0x8ea/0xdb0 [ 10.896127] apply_wqattrs_prepare+0x332/0xd20 [ 10.896283] apply_workqueue_attrs_locked+0x4d/0xa0 [ 10.896505] alloc_workqueue+0xcc7/0x1ad0 [ 10.896966] latency_fsnotify_init+0x1b/0x50 [ 10.897218] do_one_initcall+0xd8/0x370 [ 10.897412] kernel_init_freeable+0x420/0x6f0 [ 10.897610] kernel_init+0x23/0x1e0 [ 10.897851] ret_from_fork+0x116/0x1d0 [ 10.898003] ret_from_fork_asm+0x1a/0x30 [ 10.898155] [ 10.898228] The buggy address belongs to the object at ffff88810191e880 [ 10.898228] which belongs to the cache kmalloc-16 of size 16 [ 10.898959] The buggy address is located 18 bytes to the right of [ 10.898959] allocated 13-byte region [ffff88810191e880, ffff88810191e88d) [ 10.899411] [ 10.899489] The buggy address belongs to the physical page: [ 10.899737] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10191e [ 10.900317] flags: 0x200000000000000(node=0|zone=2) [ 10.900551] page_type: f5(slab) [ 10.900675] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 10.901200] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 10.901849] page dumped because: kasan: bad access detected [ 10.902082] [ 10.902153] Memory state around the buggy address: [ 10.902311] ffff88810191e780: 00 05 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc [ 10.902538] ffff88810191e800: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 10.903181] >ffff88810191e880: 00 05 fc fc 00 07 fc fc fc fc fc fc fc fc fc fc [ 10.903505] ^ [ 10.903698] ffff88810191e900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.903963] ffff88810191e980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.904242] ==================================================================