Date
May 13, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.266612] ================================================================== [ 19.267007] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 19.267129] Write of size 16 at addr fff00000c4035080 by task kunit_try_catch/166 [ 19.267190] [ 19.267785] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT [ 19.267891] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.267922] Hardware name: linux,dummy-virt (DT) [ 19.267960] Call trace: [ 19.268002] show_stack+0x20/0x38 (C) [ 19.268065] dump_stack_lvl+0x8c/0xd0 [ 19.268119] print_report+0x118/0x608 [ 19.268367] kasan_report+0xdc/0x128 [ 19.268423] __asan_report_store16_noabort+0x20/0x30 [ 19.268481] kmalloc_oob_16+0x3a0/0x3f8 [ 19.268634] kunit_try_run_case+0x170/0x3f0 [ 19.268705] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.268775] kthread+0x328/0x630 [ 19.268832] ret_from_fork+0x10/0x20 [ 19.268889] [ 19.269137] Allocated by task 166: [ 19.269180] kasan_save_stack+0x3c/0x68 [ 19.269234] kasan_save_track+0x20/0x40 [ 19.269439] kasan_save_alloc_info+0x40/0x58 [ 19.269495] __kasan_kmalloc+0xd4/0xd8 [ 19.269546] __kmalloc_cache_noprof+0x15c/0x3c0 [ 19.269648] kmalloc_oob_16+0xb4/0x3f8 [ 19.269728] kunit_try_run_case+0x170/0x3f0 [ 19.269776] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.269893] kthread+0x328/0x630 [ 19.270079] ret_from_fork+0x10/0x20 [ 19.270274] [ 19.270343] The buggy address belongs to the object at fff00000c4035080 [ 19.270343] which belongs to the cache kmalloc-16 of size 16 [ 19.270418] The buggy address is located 0 bytes inside of [ 19.270418] allocated 13-byte region [fff00000c4035080, fff00000c403508d) [ 19.270513] [ 19.270569] The buggy address belongs to the physical page: [ 19.270642] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104035 [ 19.270739] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.270807] page_type: f5(slab) [ 19.270909] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 19.271031] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 19.271080] page dumped because: kasan: bad access detected [ 19.271116] [ 19.271136] Memory state around the buggy address: [ 19.271176] fff00000c4034f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.271225] fff00000c4035000: 00 02 fc fc 00 05 fc fc fa fb fc fc fa fb fc fc [ 19.271272] >fff00000c4035080: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 19.271319] ^ [ 19.271393] fff00000c4035100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.271494] fff00000c4035180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.271538] ==================================================================
[ 11.068411] ================================================================== [ 11.068853] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 11.069182] Write of size 16 at addr ffff888101d83600 by task kunit_try_catch/183 [ 11.069560] [ 11.069668] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) [ 11.069717] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.069728] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.069749] Call Trace: [ 11.069761] <TASK> [ 11.069777] dump_stack_lvl+0x73/0xb0 [ 11.069804] print_report+0xd1/0x650 [ 11.069850] ? __virt_addr_valid+0x1db/0x2d0 [ 11.069873] ? kmalloc_oob_16+0x452/0x4a0 [ 11.069893] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.069914] ? kmalloc_oob_16+0x452/0x4a0 [ 11.069935] kasan_report+0x141/0x180 [ 11.069958] ? kmalloc_oob_16+0x452/0x4a0 [ 11.069984] __asan_report_store16_noabort+0x1b/0x30 [ 11.070024] kmalloc_oob_16+0x452/0x4a0 [ 11.070045] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 11.070067] ? __schedule+0x10cc/0x2b60 [ 11.070088] ? __pfx_read_tsc+0x10/0x10 [ 11.070108] ? ktime_get_ts64+0x86/0x230 [ 11.070133] kunit_try_run_case+0x1a5/0x480 [ 11.070156] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.070192] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.070233] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.070256] ? __kthread_parkme+0x82/0x180 [ 11.070277] ? preempt_count_sub+0x50/0x80 [ 11.070300] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.070323] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.070345] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.070367] kthread+0x337/0x6f0 [ 11.070387] ? trace_preempt_on+0x20/0xc0 [ 11.070411] ? __pfx_kthread+0x10/0x10 [ 11.070431] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.070451] ? calculate_sigpending+0x7b/0xa0 [ 11.070480] ? __pfx_kthread+0x10/0x10 [ 11.070501] ret_from_fork+0x116/0x1d0 [ 11.070519] ? __pfx_kthread+0x10/0x10 [ 11.070630] ret_from_fork_asm+0x1a/0x30 [ 11.070662] </TASK> [ 11.070674] [ 11.079829] Allocated by task 183: [ 11.079989] kasan_save_stack+0x45/0x70 [ 11.080161] kasan_save_track+0x18/0x40 [ 11.080479] kasan_save_alloc_info+0x3b/0x50 [ 11.080739] __kasan_kmalloc+0xb7/0xc0 [ 11.081151] __kmalloc_cache_noprof+0x189/0x420 [ 11.081444] kmalloc_oob_16+0xa8/0x4a0 [ 11.081748] kunit_try_run_case+0x1a5/0x480 [ 11.082047] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.082305] kthread+0x337/0x6f0 [ 11.082469] ret_from_fork+0x116/0x1d0 [ 11.082664] ret_from_fork_asm+0x1a/0x30 [ 11.083110] [ 11.083230] The buggy address belongs to the object at ffff888101d83600 [ 11.083230] which belongs to the cache kmalloc-16 of size 16 [ 11.083946] The buggy address is located 0 bytes inside of [ 11.083946] allocated 13-byte region [ffff888101d83600, ffff888101d8360d) [ 11.084740] [ 11.084900] The buggy address belongs to the physical page: [ 11.085139] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101d83 [ 11.085807] flags: 0x200000000000000(node=0|zone=2) [ 11.086092] page_type: f5(slab) [ 11.086268] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.086808] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.087201] page dumped because: kasan: bad access detected [ 11.087510] [ 11.087661] Memory state around the buggy address: [ 11.087827] ffff888101d83500: 00 05 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc [ 11.088286] ffff888101d83580: 00 02 fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 11.088671] >ffff888101d83600: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 11.088983] ^ [ 11.089144] ffff888101d83680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.089711] ffff888101d83700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.090119] ==================================================================