Date
July 15, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.605612] ================================================================== [ 15.605672] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 15.605737] Write of size 16 at addr fff00000c592cd69 by task kunit_try_catch/179 [ 15.605825] [ 15.605859] CPU: 1 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.605976] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.606002] Hardware name: linux,dummy-virt (DT) [ 15.606060] Call trace: [ 15.606125] show_stack+0x20/0x38 (C) [ 15.606193] dump_stack_lvl+0x8c/0xd0 [ 15.606240] print_report+0x118/0x5d0 [ 15.606285] kasan_report+0xdc/0x128 [ 15.606327] kasan_check_range+0x100/0x1a8 [ 15.606373] __asan_memset+0x34/0x78 [ 15.606412] kmalloc_oob_memset_16+0x150/0x2f8 [ 15.606468] kunit_try_run_case+0x170/0x3f0 [ 15.606526] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.606577] kthread+0x328/0x630 [ 15.606616] ret_from_fork+0x10/0x20 [ 15.606661] [ 15.606678] Allocated by task 179: [ 15.606706] kasan_save_stack+0x3c/0x68 [ 15.606744] kasan_save_track+0x20/0x40 [ 15.606780] kasan_save_alloc_info+0x40/0x58 [ 15.606818] __kasan_kmalloc+0xd4/0xd8 [ 15.606878] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.606954] kmalloc_oob_memset_16+0xb0/0x2f8 [ 15.607023] kunit_try_run_case+0x170/0x3f0 [ 15.607060] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.607120] kthread+0x328/0x630 [ 15.607168] ret_from_fork+0x10/0x20 [ 15.607239] [ 15.607258] The buggy address belongs to the object at fff00000c592cd00 [ 15.607258] which belongs to the cache kmalloc-128 of size 128 [ 15.607352] The buggy address is located 105 bytes inside of [ 15.607352] allocated 120-byte region [fff00000c592cd00, fff00000c592cd78) [ 15.607428] [ 15.607447] The buggy address belongs to the physical page: [ 15.607495] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10592c [ 15.607546] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.607624] page_type: f5(slab) [ 15.607661] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.607736] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.607818] page dumped because: kasan: bad access detected [ 15.607856] [ 15.607874] Memory state around the buggy address: [ 15.607961] fff00000c592cc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.608004] fff00000c592cc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.608044] >fff00000c592cd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.608080] ^ [ 15.608154] fff00000c592cd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.608204] fff00000c592ce00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.608241] ==================================================================
[ 12.683916] ================================================================== [ 12.684375] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 12.684748] Write of size 16 at addr ffff888102afc369 by task kunit_try_catch/195 [ 12.685078] [ 12.685173] CPU: 1 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.685218] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.685229] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.685250] Call Trace: [ 12.685261] <TASK> [ 12.685276] dump_stack_lvl+0x73/0xb0 [ 12.685305] print_report+0xd1/0x610 [ 12.685326] ? __virt_addr_valid+0x1db/0x2d0 [ 12.685350] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.685372] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.685395] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.685419] kasan_report+0x141/0x180 [ 12.685441] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.685736] kasan_check_range+0x10c/0x1c0 [ 12.685780] __asan_memset+0x27/0x50 [ 12.685800] kmalloc_oob_memset_16+0x166/0x330 [ 12.685823] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 12.685847] ? __schedule+0x10cc/0x2b60 [ 12.685869] ? __pfx_read_tsc+0x10/0x10 [ 12.685890] ? ktime_get_ts64+0x86/0x230 [ 12.685916] kunit_try_run_case+0x1a5/0x480 [ 12.685941] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.685964] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.685989] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.686013] ? __kthread_parkme+0x82/0x180 [ 12.686033] ? preempt_count_sub+0x50/0x80 [ 12.686057] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.686081] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.686106] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.686131] kthread+0x337/0x6f0 [ 12.686150] ? trace_preempt_on+0x20/0xc0 [ 12.686173] ? __pfx_kthread+0x10/0x10 [ 12.686194] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.686215] ? calculate_sigpending+0x7b/0xa0 [ 12.686240] ? __pfx_kthread+0x10/0x10 [ 12.686261] ret_from_fork+0x116/0x1d0 [ 12.686279] ? __pfx_kthread+0x10/0x10 [ 12.686300] ret_from_fork_asm+0x1a/0x30 [ 12.686437] </TASK> [ 12.686452] [ 12.693645] Allocated by task 195: [ 12.693834] kasan_save_stack+0x45/0x70 [ 12.694337] kasan_save_track+0x18/0x40 [ 12.694639] kasan_save_alloc_info+0x3b/0x50 [ 12.694906] __kasan_kmalloc+0xb7/0xc0 [ 12.695048] __kmalloc_cache_noprof+0x189/0x420 [ 12.695270] kmalloc_oob_memset_16+0xac/0x330 [ 12.695726] kunit_try_run_case+0x1a5/0x480 [ 12.695955] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.696198] kthread+0x337/0x6f0 [ 12.696355] ret_from_fork+0x116/0x1d0 [ 12.696640] ret_from_fork_asm+0x1a/0x30 [ 12.696826] [ 12.696945] The buggy address belongs to the object at ffff888102afc300 [ 12.696945] which belongs to the cache kmalloc-128 of size 128 [ 12.699639] The buggy address is located 105 bytes inside of [ 12.699639] allocated 120-byte region [ffff888102afc300, ffff888102afc378) [ 12.700700] [ 12.700793] The buggy address belongs to the physical page: [ 12.700970] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102afc [ 12.701213] flags: 0x200000000000000(node=0|zone=2) [ 12.701385] page_type: f5(slab) [ 12.701506] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.701736] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.704304] page dumped because: kasan: bad access detected [ 12.705410] [ 12.705673] Memory state around the buggy address: [ 12.705934] ffff888102afc200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.706228] ffff888102afc280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.707475] >ffff888102afc300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.707800] ^ [ 12.708169] ffff888102afc380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.708710] ffff888102afc400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.709166] ==================================================================