Date
July 12, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.735218] ================================================================== [ 16.735520] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 16.735571] Write of size 2 at addr fff00000c585eb77 by task kunit_try_catch/172 [ 16.735661] [ 16.735809] CPU: 1 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.735937] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.736008] Hardware name: linux,dummy-virt (DT) [ 16.736115] Call trace: [ 16.736198] show_stack+0x20/0x38 (C) [ 16.736327] dump_stack_lvl+0x8c/0xd0 [ 16.736460] print_report+0x118/0x5d0 [ 16.736547] kasan_report+0xdc/0x128 [ 16.736612] kasan_check_range+0x100/0x1a8 [ 16.736678] __asan_memset+0x34/0x78 [ 16.736768] kmalloc_oob_memset_2+0x150/0x2f8 [ 16.736814] kunit_try_run_case+0x170/0x3f0 [ 16.736882] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.736973] kthread+0x328/0x630 [ 16.737040] ret_from_fork+0x10/0x20 [ 16.737085] [ 16.737143] Allocated by task 172: [ 16.737190] kasan_save_stack+0x3c/0x68 [ 16.737230] kasan_save_track+0x20/0x40 [ 16.737457] kasan_save_alloc_info+0x40/0x58 [ 16.737553] __kasan_kmalloc+0xd4/0xd8 [ 16.737620] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.737700] kmalloc_oob_memset_2+0xb0/0x2f8 [ 16.737856] kunit_try_run_case+0x170/0x3f0 [ 16.737959] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.738013] kthread+0x328/0x630 [ 16.738106] ret_from_fork+0x10/0x20 [ 16.738155] [ 16.738202] The buggy address belongs to the object at fff00000c585eb00 [ 16.738202] which belongs to the cache kmalloc-128 of size 128 [ 16.738308] The buggy address is located 119 bytes inside of [ 16.738308] allocated 120-byte region [fff00000c585eb00, fff00000c585eb78) [ 16.738392] [ 16.738411] The buggy address belongs to the physical page: [ 16.738440] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10585e [ 16.738633] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.738704] page_type: f5(slab) [ 16.738780] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.738900] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.739027] page dumped because: kasan: bad access detected [ 16.739138] [ 16.739284] Memory state around the buggy address: [ 16.739412] fff00000c585ea00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.739455] fff00000c585ea80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.739496] >fff00000c585eb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.739532] ^ [ 16.739571] fff00000c585eb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.739612] fff00000c585ec00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.739651] ==================================================================
[ 13.067573] ================================================================== [ 13.068155] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 13.068533] Write of size 2 at addr ffff8881027eb477 by task kunit_try_catch/189 [ 13.068803] [ 13.068942] CPU: 0 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 13.068990] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.069001] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.069023] Call Trace: [ 13.069055] <TASK> [ 13.069072] dump_stack_lvl+0x73/0xb0 [ 13.069105] print_report+0xd1/0x610 [ 13.069424] ? __virt_addr_valid+0x1db/0x2d0 [ 13.069464] ? kmalloc_oob_memset_2+0x166/0x330 [ 13.069487] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.069510] ? kmalloc_oob_memset_2+0x166/0x330 [ 13.069533] kasan_report+0x141/0x180 [ 13.069555] ? kmalloc_oob_memset_2+0x166/0x330 [ 13.069583] kasan_check_range+0x10c/0x1c0 [ 13.069606] __asan_memset+0x27/0x50 [ 13.069626] kmalloc_oob_memset_2+0x166/0x330 [ 13.069649] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 13.069673] ? __schedule+0x10cc/0x2b60 [ 13.069696] ? __pfx_read_tsc+0x10/0x10 [ 13.069719] ? ktime_get_ts64+0x86/0x230 [ 13.069745] kunit_try_run_case+0x1a5/0x480 [ 13.069772] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.069795] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.069821] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.069845] ? __kthread_parkme+0x82/0x180 [ 13.069867] ? preempt_count_sub+0x50/0x80 [ 13.069892] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.069917] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.069941] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.069967] kthread+0x337/0x6f0 [ 13.070037] ? trace_preempt_on+0x20/0xc0 [ 13.070069] ? __pfx_kthread+0x10/0x10 [ 13.070102] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.070124] ? calculate_sigpending+0x7b/0xa0 [ 13.070149] ? __pfx_kthread+0x10/0x10 [ 13.070171] ret_from_fork+0x116/0x1d0 [ 13.070190] ? __pfx_kthread+0x10/0x10 [ 13.070210] ret_from_fork_asm+0x1a/0x30 [ 13.070242] </TASK> [ 13.070252] [ 13.077336] Allocated by task 189: [ 13.077501] kasan_save_stack+0x45/0x70 [ 13.077686] kasan_save_track+0x18/0x40 [ 13.077857] kasan_save_alloc_info+0x3b/0x50 [ 13.078098] __kasan_kmalloc+0xb7/0xc0 [ 13.078285] __kmalloc_cache_noprof+0x189/0x420 [ 13.078491] kmalloc_oob_memset_2+0xac/0x330 [ 13.078679] kunit_try_run_case+0x1a5/0x480 [ 13.078875] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.079313] kthread+0x337/0x6f0 [ 13.079479] ret_from_fork+0x116/0x1d0 [ 13.079654] ret_from_fork_asm+0x1a/0x30 [ 13.079837] [ 13.079924] The buggy address belongs to the object at ffff8881027eb400 [ 13.079924] which belongs to the cache kmalloc-128 of size 128 [ 13.081588] The buggy address is located 119 bytes inside of [ 13.081588] allocated 120-byte region [ffff8881027eb400, ffff8881027eb478) [ 13.082044] [ 13.082148] The buggy address belongs to the physical page: [ 13.082409] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027eb [ 13.082742] flags: 0x200000000000000(node=0|zone=2) [ 13.082961] page_type: f5(slab) [ 13.083199] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.083518] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.083822] page dumped because: kasan: bad access detected [ 13.084116] [ 13.084208] Memory state around the buggy address: [ 13.084427] ffff8881027eb300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.084715] ffff8881027eb380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.085050] >ffff8881027eb400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.085350] ^ [ 13.085638] ffff8881027eb480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.085924] ffff8881027eb500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.086515] ==================================================================