Date
July 10, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.949006] ================================================================== [ 15.949069] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 15.949147] Write of size 2 at addr fff00000c63f3577 by task kunit_try_catch/172 [ 15.949333] [ 15.949381] CPU: 1 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 15.949467] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.949492] Hardware name: linux,dummy-virt (DT) [ 15.949523] Call trace: [ 15.949545] show_stack+0x20/0x38 (C) [ 15.949604] dump_stack_lvl+0x8c/0xd0 [ 15.949653] print_report+0x118/0x608 [ 15.949708] kasan_report+0xdc/0x128 [ 15.949763] kasan_check_range+0x100/0x1a8 [ 15.949811] __asan_memset+0x34/0x78 [ 15.949857] kmalloc_oob_memset_2+0x150/0x2f8 [ 15.949903] kunit_try_run_case+0x170/0x3f0 [ 15.949951] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.950028] kthread+0x328/0x630 [ 15.950075] ret_from_fork+0x10/0x20 [ 15.950430] [ 15.950479] Allocated by task 172: [ 15.950519] kasan_save_stack+0x3c/0x68 [ 15.950562] kasan_save_track+0x20/0x40 [ 15.950599] kasan_save_alloc_info+0x40/0x58 [ 15.950739] __kasan_kmalloc+0xd4/0xd8 [ 15.950804] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.950844] kmalloc_oob_memset_2+0xb0/0x2f8 [ 15.950882] kunit_try_run_case+0x170/0x3f0 [ 15.950920] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.951024] kthread+0x328/0x630 [ 15.951097] ret_from_fork+0x10/0x20 [ 15.951166] [ 15.951226] The buggy address belongs to the object at fff00000c63f3500 [ 15.951226] which belongs to the cache kmalloc-128 of size 128 [ 15.951312] The buggy address is located 119 bytes inside of [ 15.951312] allocated 120-byte region [fff00000c63f3500, fff00000c63f3578) [ 15.951421] [ 15.951498] The buggy address belongs to the physical page: [ 15.951547] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063f3 [ 15.951599] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.951648] page_type: f5(slab) [ 15.951687] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.951763] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.951913] page dumped because: kasan: bad access detected [ 15.951963] [ 15.952028] Memory state around the buggy address: [ 15.952154] fff00000c63f3400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.953899] fff00000c63f3480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.953940] >fff00000c63f3500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.953976] ^ [ 15.954014] fff00000c63f3580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.954054] fff00000c63f3600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.954100] ==================================================================
[ 12.774569] ================================================================== [ 12.775034] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 12.775331] Write of size 2 at addr ffff8881027a3477 by task kunit_try_catch/189 [ 12.775655] [ 12.775766] CPU: 0 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.775805] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.775816] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.775834] Call Trace: [ 12.775846] <TASK> [ 12.775860] dump_stack_lvl+0x73/0xb0 [ 12.775889] print_report+0xd1/0x650 [ 12.775911] ? __virt_addr_valid+0x1db/0x2d0 [ 12.775933] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.775955] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.775977] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.775999] kasan_report+0x141/0x180 [ 12.776020] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.776047] kasan_check_range+0x10c/0x1c0 [ 12.776070] __asan_memset+0x27/0x50 [ 12.776118] kmalloc_oob_memset_2+0x166/0x330 [ 12.776141] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 12.776166] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 12.776210] kunit_try_run_case+0x1a5/0x480 [ 12.776235] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.776257] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.776280] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.776304] ? __kthread_parkme+0x82/0x180 [ 12.776324] ? preempt_count_sub+0x50/0x80 [ 12.776348] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.776383] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.776407] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.776431] kthread+0x337/0x6f0 [ 12.776450] ? trace_preempt_on+0x20/0xc0 [ 12.776472] ? __pfx_kthread+0x10/0x10 [ 12.776492] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.776513] ? calculate_sigpending+0x7b/0xa0 [ 12.776550] ? __pfx_kthread+0x10/0x10 [ 12.776570] ret_from_fork+0x116/0x1d0 [ 12.776589] ? __pfx_kthread+0x10/0x10 [ 12.776609] ret_from_fork_asm+0x1a/0x30 [ 12.776639] </TASK> [ 12.776648] [ 12.783386] Allocated by task 189: [ 12.783569] kasan_save_stack+0x45/0x70 [ 12.783767] kasan_save_track+0x18/0x40 [ 12.783926] kasan_save_alloc_info+0x3b/0x50 [ 12.784074] __kasan_kmalloc+0xb7/0xc0 [ 12.784213] __kmalloc_cache_noprof+0x189/0x420 [ 12.784438] kmalloc_oob_memset_2+0xac/0x330 [ 12.784644] kunit_try_run_case+0x1a5/0x480 [ 12.784889] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.785143] kthread+0x337/0x6f0 [ 12.785308] ret_from_fork+0x116/0x1d0 [ 12.785551] ret_from_fork_asm+0x1a/0x30 [ 12.785696] [ 12.785765] The buggy address belongs to the object at ffff8881027a3400 [ 12.785765] which belongs to the cache kmalloc-128 of size 128 [ 12.786251] The buggy address is located 119 bytes inside of [ 12.786251] allocated 120-byte region [ffff8881027a3400, ffff8881027a3478) [ 12.787015] [ 12.787113] The buggy address belongs to the physical page: [ 12.787328] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027a3 [ 12.787646] flags: 0x200000000000000(node=0|zone=2) [ 12.787908] page_type: f5(slab) [ 12.788051] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.788355] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.788612] page dumped because: kasan: bad access detected [ 12.788780] [ 12.788847] Memory state around the buggy address: [ 12.788998] ffff8881027a3300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.789227] ffff8881027a3380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.789745] >ffff8881027a3400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.790062] ^ [ 12.790381] ffff8881027a3480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.790972] ffff8881027a3500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.791192] ==================================================================