Date
May 12, 2025, 11:48 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.612650] ================================================================== [ 16.612835] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 16.612943] Write of size 16 at addr fff00000c10cc7c0 by task kunit_try_catch/166 [ 16.613088] [ 16.613177] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 16.613394] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.613442] Hardware name: linux,dummy-virt (DT) [ 16.613501] Call trace: [ 16.613542] show_stack+0x20/0x38 (C) [ 16.613715] dump_stack_lvl+0x8c/0xd0 [ 16.613805] print_report+0x118/0x608 [ 16.613898] kasan_report+0xdc/0x128 [ 16.614063] __asan_report_store16_noabort+0x20/0x30 [ 16.614178] kmalloc_oob_16+0x3a0/0x3f8 [ 16.614292] kunit_try_run_case+0x170/0x3f0 [ 16.614418] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.614649] kthread+0x328/0x630 [ 16.614767] ret_from_fork+0x10/0x20 [ 16.614874] [ 16.614936] Allocated by task 166: [ 16.615017] kasan_save_stack+0x3c/0x68 [ 16.615114] kasan_save_track+0x20/0x40 [ 16.615188] kasan_save_alloc_info+0x40/0x58 [ 16.615287] __kasan_kmalloc+0xd4/0xd8 [ 16.615359] __kmalloc_cache_noprof+0x15c/0x3c0 [ 16.615471] kmalloc_oob_16+0xb4/0x3f8 [ 16.615549] kunit_try_run_case+0x170/0x3f0 [ 16.615622] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.615706] kthread+0x328/0x630 [ 16.615774] ret_from_fork+0x10/0x20 [ 16.615846] [ 16.615884] The buggy address belongs to the object at fff00000c10cc7c0 [ 16.615884] which belongs to the cache kmalloc-16 of size 16 [ 16.616002] The buggy address is located 0 bytes inside of [ 16.616002] allocated 13-byte region [fff00000c10cc7c0, fff00000c10cc7cd) [ 16.616123] [ 16.616162] The buggy address belongs to the physical page: [ 16.616786] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1010cc [ 16.616991] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.617116] page_type: f5(slab) [ 16.617498] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.617859] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.618115] page dumped because: kasan: bad access detected [ 16.618189] [ 16.618227] Memory state around the buggy address: [ 16.618296] fff00000c10cc680: fa fb fc fc fa fb fc fc 00 01 fc fc fa fb fc fc [ 16.618594] fff00000c10cc700: fa fb fc fc 00 07 fc fc fa fb fc fc fa fb fc fc [ 16.618731] >fff00000c10cc780: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 16.618800] ^ [ 16.619108] fff00000c10cc800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.619347] fff00000c10cc880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.619509] ==================================================================
[ 16.570976] ================================================================== [ 16.571651] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 16.571944] Write of size 16 at addr ffff88810229d660 by task kunit_try_catch/183 [ 16.572635] [ 16.573357] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 16.573619] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.573646] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.573686] Call Trace: [ 16.573715] <TASK> [ 16.573812] dump_stack_lvl+0x73/0xb0 [ 16.573915] print_report+0xd1/0x650 [ 16.573980] ? __virt_addr_valid+0x1db/0x2d0 [ 16.574026] ? kmalloc_oob_16+0x452/0x4a0 [ 16.574099] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.574138] ? kmalloc_oob_16+0x452/0x4a0 [ 16.574173] kasan_report+0x141/0x180 [ 16.574208] ? kmalloc_oob_16+0x452/0x4a0 [ 16.574251] __asan_report_store16_noabort+0x1b/0x30 [ 16.574304] kmalloc_oob_16+0x452/0x4a0 [ 16.574327] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 16.574350] ? __schedule+0x10cc/0x2b60 [ 16.574375] ? __pfx_read_tsc+0x10/0x10 [ 16.574398] ? ktime_get_ts64+0x86/0x230 [ 16.574426] kunit_try_run_case+0x1a5/0x480 [ 16.574453] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.574477] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.574503] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.574526] ? __kthread_parkme+0x82/0x180 [ 16.574549] ? preempt_count_sub+0x50/0x80 [ 16.574575] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.574599] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.574623] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.574647] kthread+0x337/0x6f0 [ 16.574689] ? trace_preempt_on+0x20/0xc0 [ 16.574721] ? __pfx_kthread+0x10/0x10 [ 16.574743] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.574764] ? calculate_sigpending+0x7b/0xa0 [ 16.574790] ? __pfx_kthread+0x10/0x10 [ 16.574813] ret_from_fork+0x116/0x1d0 [ 16.574833] ? __pfx_kthread+0x10/0x10 [ 16.574854] ret_from_fork_asm+0x1a/0x30 [ 16.574886] </TASK> [ 16.574900] [ 16.587979] Allocated by task 183: [ 16.588546] kasan_save_stack+0x45/0x70 [ 16.588985] kasan_save_track+0x18/0x40 [ 16.589388] kasan_save_alloc_info+0x3b/0x50 [ 16.589877] __kasan_kmalloc+0xb7/0xc0 [ 16.590068] __kmalloc_cache_noprof+0x189/0x420 [ 16.590469] kmalloc_oob_16+0xa8/0x4a0 [ 16.590797] kunit_try_run_case+0x1a5/0x480 [ 16.591031] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.591547] kthread+0x337/0x6f0 [ 16.591731] ret_from_fork+0x116/0x1d0 [ 16.592488] ret_from_fork_asm+0x1a/0x30 [ 16.592941] [ 16.593336] The buggy address belongs to the object at ffff88810229d660 [ 16.593336] which belongs to the cache kmalloc-16 of size 16 [ 16.594162] The buggy address is located 0 bytes inside of [ 16.594162] allocated 13-byte region [ffff88810229d660, ffff88810229d66d) [ 16.594826] [ 16.595517] The buggy address belongs to the physical page: [ 16.595831] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10229d [ 16.596462] flags: 0x200000000000000(node=0|zone=2) [ 16.596793] page_type: f5(slab) [ 16.597015] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 16.597641] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.598288] page dumped because: kasan: bad access detected [ 16.598816] [ 16.599004] Memory state around the buggy address: [ 16.599600] ffff88810229d500: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 16.600252] ffff88810229d580: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 16.600830] >ffff88810229d600: fa fb fc fc fa fb fc fc 00 05 fc fc 00 05 fc fc [ 16.601364] ^ [ 16.601916] ffff88810229d680: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.602565] ffff88810229d700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.602951] ==================================================================