Date
July 3, 2025, 3:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.185888] ================================================================== [ 15.186382] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 15.186783] Read of size 1 at addr fff00000c55f087f by task kunit_try_catch/141 [ 15.186871] [ 15.186924] CPU: 1 UID: 0 PID: 141 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc1 #1 PREEMPT [ 15.187718] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.187784] Hardware name: linux,dummy-virt (DT) [ 15.187825] Call trace: [ 15.187904] show_stack+0x20/0x38 (C) [ 15.188282] dump_stack_lvl+0x8c/0xd0 [ 15.188506] print_report+0x118/0x608 [ 15.188751] kasan_report+0xdc/0x128 [ 15.189061] __asan_report_load1_noabort+0x20/0x30 [ 15.189181] kmalloc_oob_left+0x2ec/0x320 [ 15.189530] kunit_try_run_case+0x170/0x3f0 [ 15.189590] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.189642] kthread+0x328/0x630 [ 15.189687] ret_from_fork+0x10/0x20 [ 15.189801] [ 15.189826] Allocated by task 26: [ 15.189858] kasan_save_stack+0x3c/0x68 [ 15.189896] kasan_save_track+0x20/0x40 [ 15.189958] kasan_save_alloc_info+0x40/0x58 [ 15.189995] __kasan_kmalloc+0xd4/0xd8 [ 15.190028] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 15.190076] kstrdup+0x54/0xc8 [ 15.190111] devtmpfs_work_loop+0x6f8/0xa58 [ 15.190467] devtmpfsd+0x50/0x58 [ 15.190794] kthread+0x328/0x630 [ 15.190850] ret_from_fork+0x10/0x20 [ 15.190911] [ 15.190998] Freed by task 26: [ 15.191442] kasan_save_stack+0x3c/0x68 [ 15.191623] kasan_save_track+0x20/0x40 [ 15.192040] kasan_save_free_info+0x4c/0x78 [ 15.192090] __kasan_slab_free+0x6c/0x98 [ 15.192163] kfree+0x214/0x3c8 [ 15.192357] devtmpfs_work_loop+0x804/0xa58 [ 15.192659] devtmpfsd+0x50/0x58 [ 15.192713] kthread+0x328/0x630 [ 15.192904] ret_from_fork+0x10/0x20 [ 15.193182] [ 15.193247] The buggy address belongs to the object at fff00000c55f0860 [ 15.193247] which belongs to the cache kmalloc-16 of size 16 [ 15.193657] The buggy address is located 15 bytes to the right of [ 15.193657] allocated 16-byte region [fff00000c55f0860, fff00000c55f0870) [ 15.193846] [ 15.194127] The buggy address belongs to the physical page: [ 15.194367] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1055f0 [ 15.194607] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.194766] page_type: f5(slab) [ 15.194911] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 15.195069] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 15.195198] page dumped because: kasan: bad access detected [ 15.195537] [ 15.195697] Memory state around the buggy address: [ 15.195768] fff00000c55f0700: 00 00 fc fc 00 00 fc fc 00 00 fc fc 00 00 fc fc [ 15.195929] fff00000c55f0780: 00 00 fc fc 00 00 fc fc 00 00 fc fc 00 02 fc fc [ 15.196044] >fff00000c55f0800: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 15.196395] ^ [ 15.196577] fff00000c55f0880: 00 07 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.197009] fff00000c55f0900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.197146] ==================================================================
[ 10.547890] ================================================================== [ 10.548449] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 10.549366] Read of size 1 at addr ffff8881022240bf by task kunit_try_catch/157 [ 10.549896] [ 10.550007] CPU: 0 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc1 #1 PREEMPT(voluntary) [ 10.550060] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.550072] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.550096] Call Trace: [ 10.550109] <TASK> [ 10.550130] dump_stack_lvl+0x73/0xb0 [ 10.550159] print_report+0xd1/0x650 [ 10.550182] ? __virt_addr_valid+0x1db/0x2d0 [ 10.550205] ? kmalloc_oob_left+0x361/0x3c0 [ 10.550225] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.550263] ? kmalloc_oob_left+0x361/0x3c0 [ 10.550285] kasan_report+0x141/0x180 [ 10.550307] ? kmalloc_oob_left+0x361/0x3c0 [ 10.550334] __asan_report_load1_noabort+0x18/0x20 [ 10.550355] kmalloc_oob_left+0x361/0x3c0 [ 10.550377] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 10.550399] ? __schedule+0x10cc/0x2b60 [ 10.550423] ? __pfx_read_tsc+0x10/0x10 [ 10.550442] ? ktime_get_ts64+0x86/0x230 [ 10.550469] kunit_try_run_case+0x1a5/0x480 [ 10.550495] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.550516] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.550553] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.550577] ? __kthread_parkme+0x82/0x180 [ 10.550599] ? preempt_count_sub+0x50/0x80 [ 10.550625] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.550648] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.550670] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.550692] kthread+0x337/0x6f0 [ 10.550708] ? trace_preempt_on+0x20/0xc0 [ 10.550732] ? __pfx_kthread+0x10/0x10 [ 10.550749] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.550770] ? calculate_sigpending+0x7b/0xa0 [ 10.550792] ? __pfx_kthread+0x10/0x10 [ 10.550810] ret_from_fork+0x41/0x80 [ 10.550830] ? __pfx_kthread+0x10/0x10 [ 10.550847] ret_from_fork_asm+0x1a/0x30 [ 10.550878] </TASK> [ 10.550890] [ 10.565355] Allocated by task 1: [ 10.565498] kasan_save_stack+0x45/0x70 [ 10.565849] kasan_save_track+0x18/0x40 [ 10.566165] kasan_save_alloc_info+0x3b/0x50 [ 10.566469] __kasan_kmalloc+0xb7/0xc0 [ 10.566756] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.566937] kvasprintf+0xc5/0x150 [ 10.567107] __kthread_create_on_node+0x18b/0x3a0 [ 10.567357] kthread_create_on_node+0xab/0xe0 [ 10.567516] create_worker+0x3e5/0x7b0 [ 10.567643] alloc_unbound_pwq+0x8ea/0xdb0 [ 10.567779] apply_wqattrs_prepare+0x332/0xd20 [ 10.568055] apply_workqueue_attrs_locked+0x4d/0xa0 [ 10.568408] alloc_workqueue+0xcc7/0x1ad0 [ 10.568809] latency_fsnotify_init+0x1b/0x50 [ 10.568998] do_one_initcall+0xd8/0x370 [ 10.569186] kernel_init_freeable+0x420/0x6f0 [ 10.569388] kernel_init+0x23/0x1e0 [ 10.569566] ret_from_fork+0x41/0x80 [ 10.569961] ret_from_fork_asm+0x1a/0x30 [ 10.570157] [ 10.570260] The buggy address belongs to the object at ffff8881022240a0 [ 10.570260] which belongs to the cache kmalloc-16 of size 16 [ 10.570898] The buggy address is located 18 bytes to the right of [ 10.570898] allocated 13-byte region [ffff8881022240a0, ffff8881022240ad) [ 10.571270] [ 10.571352] The buggy address belongs to the physical page: [ 10.571612] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102224 [ 10.572189] flags: 0x200000000000000(node=0|zone=2) [ 10.572598] page_type: f5(slab) [ 10.573059] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 10.573579] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 10.573915] page dumped because: kasan: bad access detected [ 10.574103] [ 10.574198] Memory state around the buggy address: [ 10.574487] ffff888102223f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.575184] ffff888102224000: 00 02 fc fc 00 02 fc fc fa fb fc fc fa fb fc fc [ 10.575664] >ffff888102224080: fa fb fc fc 00 05 fc fc 00 07 fc fc fc fc fc fc [ 10.576096] ^ [ 10.576385] ffff888102224100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.576828] ffff888102224180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.577076] ==================================================================