Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.701877] ================================================================== [ 17.701947] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 17.702004] Read of size 1 at addr fff00000c5ccd25f by task kunit_try_catch/138 [ 17.702060] [ 17.702095] CPU: 1 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 17.702186] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.702212] Hardware name: linux,dummy-virt (DT) [ 17.702243] Call trace: [ 17.702265] show_stack+0x20/0x38 (C) [ 17.702313] dump_stack_lvl+0x8c/0xd0 [ 17.702359] print_report+0x118/0x608 [ 17.702406] kasan_report+0xdc/0x128 [ 17.702451] __asan_report_load1_noabort+0x20/0x30 [ 17.702500] kmalloc_oob_left+0x2ec/0x320 [ 17.702544] kunit_try_run_case+0x170/0x3f0 [ 17.702590] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.702640] kthread+0x328/0x630 [ 17.705832] ret_from_fork+0x10/0x20 [ 17.706261] [ 17.706336] Allocated by task 24: [ 17.706368] kasan_save_stack+0x3c/0x68 [ 17.707039] kasan_save_track+0x20/0x40 [ 17.707165] kasan_save_alloc_info+0x40/0x58 [ 17.707208] __kasan_kmalloc+0xd4/0xd8 [ 17.707244] __kmalloc_node_track_caller_noprof+0x18c/0x4c0 [ 17.708118] kvasprintf+0xe0/0x180 [ 17.708373] __kthread_create_on_node+0x16c/0x350 [ 17.708413] kthread_create_on_node+0xe4/0x130 [ 17.708449] create_worker+0x380/0x6b8 [ 17.709085] worker_thread+0x5dc/0xf28 [ 17.709552] kthread+0x328/0x630 [ 17.709779] ret_from_fork+0x10/0x20 [ 17.709822] [ 17.710144] The buggy address belongs to the object at fff00000c5ccd240 [ 17.710144] which belongs to the cache kmalloc-16 of size 16 [ 17.710456] The buggy address is located 19 bytes to the right of [ 17.710456] allocated 12-byte region [fff00000c5ccd240, fff00000c5ccd24c) [ 17.711146] [ 17.711418] The buggy address belongs to the physical page: [ 17.711581] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ccd [ 17.711905] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.712362] page_type: f5(slab) [ 17.712522] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.713592] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.713768] page dumped because: kasan: bad access detected [ 17.713954] [ 17.714092] Memory state around the buggy address: [ 17.714125] fff00000c5ccd100: 00 02 fc fc 00 02 fc fc 00 05 fc fc fa fb fc fc [ 17.714444] fff00000c5ccd180: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 17.714489] >fff00000c5ccd200: fa fb fc fc fa fb fc fc 00 04 fc fc 00 07 fc fc [ 17.714525] ^ [ 17.714561] fff00000c5ccd280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.714600] fff00000c5ccd300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.714636] ==================================================================
[ 13.272285] ================================================================== [ 13.272790] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 13.273448] Read of size 1 at addr ffff8881022a343f by task kunit_try_catch/156 [ 13.273784] [ 13.273999] CPU: 1 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) [ 13.274095] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.274120] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.274162] Call Trace: [ 13.274190] <TASK> [ 13.274241] dump_stack_lvl+0x73/0xb0 [ 13.274297] print_report+0xd1/0x650 [ 13.274343] ? __virt_addr_valid+0x1db/0x2d0 [ 13.274383] ? kmalloc_oob_left+0x361/0x3c0 [ 13.274418] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.274453] ? kmalloc_oob_left+0x361/0x3c0 [ 13.274499] kasan_report+0x141/0x180 [ 13.274535] ? kmalloc_oob_left+0x361/0x3c0 [ 13.274601] __asan_report_load1_noabort+0x18/0x20 [ 13.274643] kmalloc_oob_left+0x361/0x3c0 [ 13.274687] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 13.274732] ? __schedule+0x10cc/0x2b60 [ 13.274776] ? __pfx_read_tsc+0x10/0x10 [ 13.274818] ? ktime_get_ts64+0x86/0x230 [ 13.274869] kunit_try_run_case+0x1a5/0x480 [ 13.274930] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.274964] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.275021] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.275043] ? __kthread_parkme+0x82/0x180 [ 13.275064] ? preempt_count_sub+0x50/0x80 [ 13.275087] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.275109] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.275131] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.275152] kthread+0x337/0x6f0 [ 13.275170] ? trace_preempt_on+0x20/0xc0 [ 13.275193] ? __pfx_kthread+0x10/0x10 [ 13.275212] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.275247] ? calculate_sigpending+0x7b/0xa0 [ 13.275271] ? __pfx_kthread+0x10/0x10 [ 13.275291] ret_from_fork+0x116/0x1d0 [ 13.275309] ? __pfx_kthread+0x10/0x10 [ 13.275329] ret_from_fork_asm+0x1a/0x30 [ 13.275360] </TASK> [ 13.275372] [ 13.285640] Allocated by task 41: [ 13.285953] kasan_save_stack+0x45/0x70 [ 13.286329] kasan_save_track+0x18/0x40 [ 13.286883] kasan_save_alloc_info+0x3b/0x50 [ 13.287267] __kasan_kmalloc+0xb7/0xc0 [ 13.287695] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 13.287965] kvasprintf+0xc5/0x150 [ 13.288191] __kthread_create_on_node+0x18b/0x3a0 [ 13.288543] kthread_create_on_node+0xab/0xe0 [ 13.288996] create_worker+0x3e5/0x7b0 [ 13.289229] worker_thread+0x991/0x1320 [ 13.289512] kthread+0x337/0x6f0 [ 13.290009] ret_from_fork+0x116/0x1d0 [ 13.290343] ret_from_fork_asm+0x1a/0x30 [ 13.290682] [ 13.290787] The buggy address belongs to the object at ffff8881022a3420 [ 13.290787] which belongs to the cache kmalloc-16 of size 16 [ 13.291420] The buggy address is located 19 bytes to the right of [ 13.291420] allocated 12-byte region [ffff8881022a3420, ffff8881022a342c) [ 13.292061] [ 13.292217] The buggy address belongs to the physical page: [ 13.292461] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022a3 [ 13.292776] flags: 0x200000000000000(node=0|zone=2) [ 13.293150] page_type: f5(slab) [ 13.293389] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 13.294022] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 13.294288] page dumped because: kasan: bad access detected [ 13.294891] [ 13.295185] Memory state around the buggy address: [ 13.296171] ffff8881022a3300: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 13.296757] ffff8881022a3380: 00 02 fc fc 00 02 fc fc fa fb fc fc fa fb fc fc [ 13.297127] >ffff8881022a3400: 00 05 fc fc 00 04 fc fc 00 07 fc fc fc fc fc fc [ 13.297615] ^ [ 13.297990] ffff8881022a3480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.298296] ffff8881022a3500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.299278] ==================================================================