Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.386992] ================================================================== [ 20.387257] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 20.387620] Write of size 4 at addr fff00000c6423875 by task kunit_try_catch/184 [ 20.387694] [ 20.387768] CPU: 0 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 20.388045] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.388128] Hardware name: linux,dummy-virt (DT) [ 20.388227] Call trace: [ 20.388279] show_stack+0x20/0x38 (C) [ 20.388379] dump_stack_lvl+0x8c/0xd0 [ 20.388467] print_report+0x118/0x608 [ 20.388566] kasan_report+0xdc/0x128 [ 20.388664] kasan_check_range+0x100/0x1a8 [ 20.388771] __asan_memset+0x34/0x78 [ 20.388893] kmalloc_oob_memset_4+0x150/0x300 [ 20.389002] kunit_try_run_case+0x170/0x3f0 [ 20.389123] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.389239] kthread+0x328/0x630 [ 20.389752] ret_from_fork+0x10/0x20 [ 20.390155] [ 20.390203] Allocated by task 184: [ 20.390433] kasan_save_stack+0x3c/0x68 [ 20.390537] kasan_save_track+0x20/0x40 [ 20.390624] kasan_save_alloc_info+0x40/0x58 [ 20.390703] __kasan_kmalloc+0xd4/0xd8 [ 20.390853] __kmalloc_cache_noprof+0x16c/0x3c0 [ 20.391045] kmalloc_oob_memset_4+0xb0/0x300 [ 20.391145] kunit_try_run_case+0x170/0x3f0 [ 20.391505] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.391598] kthread+0x328/0x630 [ 20.391672] ret_from_fork+0x10/0x20 [ 20.391830] [ 20.391900] The buggy address belongs to the object at fff00000c6423800 [ 20.391900] which belongs to the cache kmalloc-128 of size 128 [ 20.392095] The buggy address is located 117 bytes inside of [ 20.392095] allocated 120-byte region [fff00000c6423800, fff00000c6423878) [ 20.392591] [ 20.392692] The buggy address belongs to the physical page: [ 20.392761] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106423 [ 20.393119] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.393346] page_type: f5(slab) [ 20.393445] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 20.393765] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 20.393957] page dumped because: kasan: bad access detected [ 20.394032] [ 20.394068] Memory state around the buggy address: [ 20.394276] fff00000c6423700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.394388] fff00000c6423780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.394489] >fff00000c6423800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 20.394578] ^ [ 20.394761] fff00000c6423880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.394931] fff00000c6423900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.395101] ==================================================================
[ 11.232082] ================================================================== [ 11.232703] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 11.233016] Write of size 4 at addr ffff888101add875 by task kunit_try_catch/200 [ 11.233350] [ 11.233434] CPU: 0 UID: 0 PID: 200 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 11.233501] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.233515] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.233536] Call Trace: [ 11.233548] <TASK> [ 11.233564] dump_stack_lvl+0x73/0xb0 [ 11.233593] print_report+0xd1/0x650 [ 11.233614] ? __virt_addr_valid+0x1db/0x2d0 [ 11.233636] ? kmalloc_oob_memset_4+0x166/0x330 [ 11.233656] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.233739] ? kmalloc_oob_memset_4+0x166/0x330 [ 11.233763] kasan_report+0x141/0x180 [ 11.233803] ? kmalloc_oob_memset_4+0x166/0x330 [ 11.233827] kasan_check_range+0x10c/0x1c0 [ 11.233850] __asan_memset+0x27/0x50 [ 11.233871] kmalloc_oob_memset_4+0x166/0x330 [ 11.233892] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 11.233913] ? __schedule+0x10cc/0x2b60 [ 11.233935] ? __pfx_read_tsc+0x10/0x10 [ 11.233956] ? ktime_get_ts64+0x86/0x230 [ 11.233981] kunit_try_run_case+0x1a5/0x480 [ 11.234004] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.234024] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.234046] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.234067] ? __kthread_parkme+0x82/0x180 [ 11.234087] ? preempt_count_sub+0x50/0x80 [ 11.234110] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.234131] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.234153] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.234192] kthread+0x337/0x6f0 [ 11.234222] ? trace_preempt_on+0x20/0xc0 [ 11.234245] ? __pfx_kthread+0x10/0x10 [ 11.234264] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.234300] ? calculate_sigpending+0x7b/0xa0 [ 11.234323] ? __pfx_kthread+0x10/0x10 [ 11.234343] ret_from_fork+0x116/0x1d0 [ 11.234360] ? __pfx_kthread+0x10/0x10 [ 11.234380] ret_from_fork_asm+0x1a/0x30 [ 11.234410] </TASK> [ 11.234420] [ 11.243880] Allocated by task 200: [ 11.244043] kasan_save_stack+0x45/0x70 [ 11.244600] kasan_save_track+0x18/0x40 [ 11.244903] kasan_save_alloc_info+0x3b/0x50 [ 11.245096] __kasan_kmalloc+0xb7/0xc0 [ 11.245430] __kmalloc_cache_noprof+0x189/0x420 [ 11.246098] kmalloc_oob_memset_4+0xac/0x330 [ 11.246295] kunit_try_run_case+0x1a5/0x480 [ 11.246892] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.247616] kthread+0x337/0x6f0 [ 11.247892] ret_from_fork+0x116/0x1d0 [ 11.248023] ret_from_fork_asm+0x1a/0x30 [ 11.248157] [ 11.248258] The buggy address belongs to the object at ffff888101add800 [ 11.248258] which belongs to the cache kmalloc-128 of size 128 [ 11.249635] The buggy address is located 117 bytes inside of [ 11.249635] allocated 120-byte region [ffff888101add800, ffff888101add878) [ 11.250887] [ 11.251002] The buggy address belongs to the physical page: [ 11.251451] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101add [ 11.251690] flags: 0x200000000000000(node=0|zone=2) [ 11.251844] page_type: f5(slab) [ 11.251958] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.252434] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.253276] page dumped because: kasan: bad access detected [ 11.253843] [ 11.254043] Memory state around the buggy address: [ 11.254505] ffff888101add700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.255234] ffff888101add780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.255967] >ffff888101add800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.256795] ^ [ 11.257146] ffff888101add880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.257872] ffff888101add900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.258599] ==================================================================