Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.427466] ================================================================== [ 22.427588] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 22.427687] Write of size 16 at addr fff00000c5722320 by task kunit_try_catch/170 [ 22.427748] [ 22.427803] CPU: 1 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT [ 22.427905] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.427935] Hardware name: linux,dummy-virt (DT) [ 22.427973] Call trace: [ 22.428002] show_stack+0x20/0x38 (C) [ 22.428063] dump_stack_lvl+0x8c/0xd0 [ 22.428120] print_report+0x118/0x608 [ 22.428171] kasan_report+0xdc/0x128 [ 22.428220] __asan_report_store16_noabort+0x20/0x30 [ 22.428278] kmalloc_oob_16+0x3a0/0x3f8 [ 22.428330] kunit_try_run_case+0x170/0x3f0 [ 22.428387] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.428650] kthread+0x328/0x630 [ 22.428779] ret_from_fork+0x10/0x20 [ 22.428886] [ 22.428921] Allocated by task 170: [ 22.428978] kasan_save_stack+0x3c/0x68 [ 22.429060] kasan_save_track+0x20/0x40 [ 22.429138] kasan_save_alloc_info+0x40/0x58 [ 22.429206] __kasan_kmalloc+0xd4/0xd8 [ 22.429276] __kmalloc_cache_noprof+0x16c/0x3c0 [ 22.429371] kmalloc_oob_16+0xb4/0x3f8 [ 22.429470] kunit_try_run_case+0x170/0x3f0 [ 22.429566] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.429678] kthread+0x328/0x630 [ 22.429764] ret_from_fork+0x10/0x20 [ 22.429851] [ 22.429901] The buggy address belongs to the object at fff00000c5722320 [ 22.429901] which belongs to the cache kmalloc-16 of size 16 [ 22.430048] The buggy address is located 0 bytes inside of [ 22.430048] allocated 13-byte region [fff00000c5722320, fff00000c572232d) [ 22.431673] [ 22.431762] The buggy address belongs to the physical page: [ 22.431841] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105722 [ 22.431981] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.432149] page_type: f5(slab) [ 22.432269] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 22.432387] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 22.432504] page dumped because: kasan: bad access detected [ 22.433228] [ 22.433464] Memory state around the buggy address: [ 22.433957] fff00000c5722200: fa fb fc fc 00 02 fc fc fa fb fc fc fa fb fc fc [ 22.434222] fff00000c5722280: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 22.434332] >fff00000c5722300: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 22.434475] ^ [ 22.434558] fff00000c5722380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.434959] fff00000c5722400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.435108] ==================================================================
[ 13.662142] ================================================================== [ 13.662699] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 13.663400] Write of size 16 at addr ffff8881024975a0 by task kunit_try_catch/186 [ 13.663682] [ 13.663940] CPU: 0 UID: 0 PID: 186 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 13.664049] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.664382] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.664424] Call Trace: [ 13.664449] <TASK> [ 13.664483] dump_stack_lvl+0x73/0xb0 [ 13.664545] print_report+0xd1/0x650 [ 13.664599] ? __virt_addr_valid+0x1db/0x2d0 [ 13.664648] ? kmalloc_oob_16+0x452/0x4a0 [ 13.664682] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.664718] ? kmalloc_oob_16+0x452/0x4a0 [ 13.664752] kasan_report+0x141/0x180 [ 13.664786] ? kmalloc_oob_16+0x452/0x4a0 [ 13.664823] __asan_report_store16_noabort+0x1b/0x30 [ 13.664858] kmalloc_oob_16+0x452/0x4a0 [ 13.664892] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 13.664928] ? __schedule+0x10cc/0x2b30 [ 13.664970] ? __pfx_read_tsc+0x10/0x10 [ 13.665005] ? ktime_get_ts64+0x86/0x230 [ 13.665039] kunit_try_run_case+0x1a5/0x480 [ 13.665066] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.665087] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.665110] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.665132] ? __kthread_parkme+0x82/0x180 [ 13.665163] ? preempt_count_sub+0x50/0x80 [ 13.665202] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.665241] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.665281] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.665322] kthread+0x337/0x6f0 [ 13.665355] ? trace_preempt_on+0x20/0xc0 [ 13.665396] ? __pfx_kthread+0x10/0x10 [ 13.665425] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.665493] ? calculate_sigpending+0x7b/0xa0 [ 13.665528] ? __pfx_kthread+0x10/0x10 [ 13.665572] ret_from_fork+0x41/0x80 [ 13.665611] ? __pfx_kthread+0x10/0x10 [ 13.665645] ret_from_fork_asm+0x1a/0x30 [ 13.665705] </TASK> [ 13.665732] [ 13.678064] Allocated by task 186: [ 13.678405] kasan_save_stack+0x45/0x70 [ 13.679362] kasan_save_track+0x18/0x40 [ 13.679724] kasan_save_alloc_info+0x3b/0x50 [ 13.679975] __kasan_kmalloc+0xb7/0xc0 [ 13.680510] __kmalloc_cache_noprof+0x189/0x420 [ 13.681058] kmalloc_oob_16+0xa8/0x4a0 [ 13.681432] kunit_try_run_case+0x1a5/0x480 [ 13.682003] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.682428] kthread+0x337/0x6f0 [ 13.682855] ret_from_fork+0x41/0x80 [ 13.683230] ret_from_fork_asm+0x1a/0x30 [ 13.684094] [ 13.684313] The buggy address belongs to the object at ffff8881024975a0 [ 13.684313] which belongs to the cache kmalloc-16 of size 16 [ 13.685207] The buggy address is located 0 bytes inside of [ 13.685207] allocated 13-byte region [ffff8881024975a0, ffff8881024975ad) [ 13.686062] [ 13.686266] The buggy address belongs to the physical page: [ 13.686925] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102497 [ 13.687320] flags: 0x200000000000000(node=0|zone=2) [ 13.687866] page_type: f5(slab) [ 13.688190] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 13.689371] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 13.690030] page dumped because: kasan: bad access detected [ 13.690392] [ 13.690593] Memory state around the buggy address: [ 13.691032] ffff888102497480: fa fb fc fc 00 03 fc fc 00 03 fc fc fa fb fc fc [ 13.692072] ffff888102497500: 00 01 fc fc 00 01 fc fc fa fb fc fc fa fb fc fc [ 13.692472] >ffff888102497580: 00 05 fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 13.692910] ^ [ 13.693185] ffff888102497600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.693686] ffff888102497680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.694616] ==================================================================