Date
July 9, 2025, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.008209] ================================================================== [ 17.008268] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 17.008319] Write of size 2 at addr fff00000c7767477 by task kunit_try_catch/172 [ 17.008375] [ 17.008406] CPU: 0 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 17.008487] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.008523] Hardware name: linux,dummy-virt (DT) [ 17.008555] Call trace: [ 17.008578] show_stack+0x20/0x38 (C) [ 17.008626] dump_stack_lvl+0x8c/0xd0 [ 17.008674] print_report+0x118/0x608 [ 17.008754] kasan_report+0xdc/0x128 [ 17.008805] kasan_check_range+0x100/0x1a8 [ 17.008855] __asan_memset+0x34/0x78 [ 17.008899] kmalloc_oob_memset_2+0x150/0x2f8 [ 17.008945] kunit_try_run_case+0x170/0x3f0 [ 17.008991] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.009043] kthread+0x328/0x630 [ 17.009103] ret_from_fork+0x10/0x20 [ 17.009151] [ 17.009169] Allocated by task 172: [ 17.009197] kasan_save_stack+0x3c/0x68 [ 17.009239] kasan_save_track+0x20/0x40 [ 17.009276] kasan_save_alloc_info+0x40/0x58 [ 17.009324] __kasan_kmalloc+0xd4/0xd8 [ 17.009507] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.009676] kmalloc_oob_memset_2+0xb0/0x2f8 [ 17.009715] kunit_try_run_case+0x170/0x3f0 [ 17.010201] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.010255] kthread+0x328/0x630 [ 17.010721] ret_from_fork+0x10/0x20 [ 17.011102] [ 17.011211] The buggy address belongs to the object at fff00000c7767400 [ 17.011211] which belongs to the cache kmalloc-128 of size 128 [ 17.011312] The buggy address is located 119 bytes inside of [ 17.011312] allocated 120-byte region [fff00000c7767400, fff00000c7767478) [ 17.011788] [ 17.011993] The buggy address belongs to the physical page: [ 17.012071] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107767 [ 17.012225] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.012280] page_type: f5(slab) [ 17.012344] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 17.012693] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 17.012739] page dumped because: kasan: bad access detected [ 17.012934] [ 17.013273] Memory state around the buggy address: [ 17.013513] fff00000c7767300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.013627] fff00000c7767380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.013676] >fff00000c7767400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 17.013755] ^ [ 17.014024] fff00000c7767480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.014075] fff00000c7767500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.014126] ==================================================================
[ 12.836979] ================================================================== [ 12.838148] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 12.838750] Write of size 2 at addr ffff888102c29e77 by task kunit_try_catch/189 [ 12.839264] [ 12.839362] CPU: 1 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.839410] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.839421] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.839441] Call Trace: [ 12.839457] <TASK> [ 12.839475] dump_stack_lvl+0x73/0xb0 [ 12.839528] print_report+0xd1/0x650 [ 12.839551] ? __virt_addr_valid+0x1db/0x2d0 [ 12.839586] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.839617] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.839641] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.839674] kasan_report+0x141/0x180 [ 12.839696] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.839722] kasan_check_range+0x10c/0x1c0 [ 12.839757] __asan_memset+0x27/0x50 [ 12.840033] kmalloc_oob_memset_2+0x166/0x330 [ 12.840061] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 12.840100] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 12.840127] kunit_try_run_case+0x1a5/0x480 [ 12.840153] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.840186] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.840211] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.840234] ? __kthread_parkme+0x82/0x180 [ 12.840267] ? preempt_count_sub+0x50/0x80 [ 12.840293] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.840317] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.840341] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.840365] kthread+0x337/0x6f0 [ 12.840383] ? trace_preempt_on+0x20/0xc0 [ 12.840407] ? __pfx_kthread+0x10/0x10 [ 12.840427] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.840448] ? calculate_sigpending+0x7b/0xa0 [ 12.840472] ? __pfx_kthread+0x10/0x10 [ 12.840493] ret_from_fork+0x116/0x1d0 [ 12.840512] ? __pfx_kthread+0x10/0x10 [ 12.840531] ret_from_fork_asm+0x1a/0x30 [ 12.840564] </TASK> [ 12.840574] [ 12.853159] Allocated by task 189: [ 12.853650] kasan_save_stack+0x45/0x70 [ 12.853881] kasan_save_track+0x18/0x40 [ 12.854300] kasan_save_alloc_info+0x3b/0x50 [ 12.854459] __kasan_kmalloc+0xb7/0xc0 [ 12.854605] __kmalloc_cache_noprof+0x189/0x420 [ 12.854766] kmalloc_oob_memset_2+0xac/0x330 [ 12.855270] kunit_try_run_case+0x1a5/0x480 [ 12.855690] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.856247] kthread+0x337/0x6f0 [ 12.856739] ret_from_fork+0x116/0x1d0 [ 12.857222] ret_from_fork_asm+0x1a/0x30 [ 12.857612] [ 12.857747] The buggy address belongs to the object at ffff888102c29e00 [ 12.857747] which belongs to the cache kmalloc-128 of size 128 [ 12.858363] The buggy address is located 119 bytes inside of [ 12.858363] allocated 120-byte region [ffff888102c29e00, ffff888102c29e78) [ 12.858740] [ 12.858859] The buggy address belongs to the physical page: [ 12.859031] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c29 [ 12.859391] flags: 0x200000000000000(node=0|zone=2) [ 12.859723] page_type: f5(slab) [ 12.860003] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.860241] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.860619] page dumped because: kasan: bad access detected [ 12.860981] [ 12.861173] Memory state around the buggy address: [ 12.861388] ffff888102c29d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.861663] ffff888102c29d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.861924] >ffff888102c29e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.862241] ^ [ 12.862671] ffff888102c29e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.863001] ffff888102c29f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.863351] ==================================================================