Date
July 9, 2025, 12:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.717854] ================================================================== [ 19.717926] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 19.717990] Write of size 16 at addr fff00000c64b5169 by task kunit_try_catch/179 [ 19.718052] [ 19.718107] CPU: 1 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.718201] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.718237] Hardware name: linux,dummy-virt (DT) [ 19.718302] Call trace: [ 19.718343] show_stack+0x20/0x38 (C) [ 19.718393] dump_stack_lvl+0x8c/0xd0 [ 19.719246] print_report+0x118/0x608 [ 19.719320] kasan_report+0xdc/0x128 [ 19.719512] kasan_check_range+0x100/0x1a8 [ 19.719674] __asan_memset+0x34/0x78 [ 19.719867] kmalloc_oob_memset_16+0x150/0x2f8 [ 19.720198] kunit_try_run_case+0x170/0x3f0 [ 19.720457] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.720568] kthread+0x328/0x630 [ 19.720660] ret_from_fork+0x10/0x20 [ 19.721093] [ 19.721137] Allocated by task 179: [ 19.721188] kasan_save_stack+0x3c/0x68 [ 19.721275] kasan_save_track+0x20/0x40 [ 19.721314] kasan_save_alloc_info+0x40/0x58 [ 19.721479] __kasan_kmalloc+0xd4/0xd8 [ 19.721527] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.721685] kmalloc_oob_memset_16+0xb0/0x2f8 [ 19.721859] kunit_try_run_case+0x170/0x3f0 [ 19.721942] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.721995] kthread+0x328/0x630 [ 19.722281] ret_from_fork+0x10/0x20 [ 19.722451] [ 19.722641] The buggy address belongs to the object at fff00000c64b5100 [ 19.722641] which belongs to the cache kmalloc-128 of size 128 [ 19.722926] The buggy address is located 105 bytes inside of [ 19.722926] allocated 120-byte region [fff00000c64b5100, fff00000c64b5178) [ 19.723068] [ 19.723106] The buggy address belongs to the physical page: [ 19.723144] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064b5 [ 19.723223] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.723450] page_type: f5(slab) [ 19.723695] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.724158] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.724359] page dumped because: kasan: bad access detected [ 19.724484] [ 19.724826] Memory state around the buggy address: [ 19.725003] fff00000c64b5000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.725056] fff00000c64b5080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.725411] >fff00000c64b5100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.725477] ^ [ 19.725764] fff00000c64b5180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.726013] fff00000c64b5200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.726112] ==================================================================
[ 12.773257] ================================================================== [ 12.773661] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 12.773904] Write of size 16 at addr ffff8881026ad069 by task kunit_try_catch/195 [ 12.774137] [ 12.774227] CPU: 0 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.774272] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.774283] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.774303] Call Trace: [ 12.774314] <TASK> [ 12.774332] dump_stack_lvl+0x73/0xb0 [ 12.774360] print_report+0xd1/0x650 [ 12.774382] ? __virt_addr_valid+0x1db/0x2d0 [ 12.774404] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.774424] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.774447] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.774467] kasan_report+0x141/0x180 [ 12.774488] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.774513] kasan_check_range+0x10c/0x1c0 [ 12.774535] __asan_memset+0x27/0x50 [ 12.774553] kmalloc_oob_memset_16+0x166/0x330 [ 12.774574] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 12.774596] ? __schedule+0x10cc/0x2b60 [ 12.774617] ? __pfx_read_tsc+0x10/0x10 [ 12.774637] ? ktime_get_ts64+0x86/0x230 [ 12.774660] kunit_try_run_case+0x1a5/0x480 [ 12.774683] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.774710] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.774734] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.774755] ? __kthread_parkme+0x82/0x180 [ 12.774775] ? preempt_count_sub+0x50/0x80 [ 12.774798] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.774820] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.774843] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.774865] kthread+0x337/0x6f0 [ 12.774883] ? trace_preempt_on+0x20/0xc0 [ 12.774905] ? __pfx_kthread+0x10/0x10 [ 12.775337] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.775375] ? calculate_sigpending+0x7b/0xa0 [ 12.775402] ? __pfx_kthread+0x10/0x10 [ 12.775425] ret_from_fork+0x116/0x1d0 [ 12.775650] ? __pfx_kthread+0x10/0x10 [ 12.775698] ret_from_fork_asm+0x1a/0x30 [ 12.775730] </TASK> [ 12.775742] [ 12.790361] Allocated by task 195: [ 12.790557] kasan_save_stack+0x45/0x70 [ 12.790860] kasan_save_track+0x18/0x40 [ 12.791322] kasan_save_alloc_info+0x3b/0x50 [ 12.791683] __kasan_kmalloc+0xb7/0xc0 [ 12.791976] __kmalloc_cache_noprof+0x189/0x420 [ 12.792208] kmalloc_oob_memset_16+0xac/0x330 [ 12.792657] kunit_try_run_case+0x1a5/0x480 [ 12.793163] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.793535] kthread+0x337/0x6f0 [ 12.793942] ret_from_fork+0x116/0x1d0 [ 12.794213] ret_from_fork_asm+0x1a/0x30 [ 12.794637] [ 12.794875] The buggy address belongs to the object at ffff8881026ad000 [ 12.794875] which belongs to the cache kmalloc-128 of size 128 [ 12.795646] The buggy address is located 105 bytes inside of [ 12.795646] allocated 120-byte region [ffff8881026ad000, ffff8881026ad078) [ 12.796494] [ 12.796594] The buggy address belongs to the physical page: [ 12.796804] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1026ad [ 12.797563] flags: 0x200000000000000(node=0|zone=2) [ 12.798028] page_type: f5(slab) [ 12.798200] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.798745] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.799287] page dumped because: kasan: bad access detected [ 12.799646] [ 12.799866] Memory state around the buggy address: [ 12.800290] ffff8881026acf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.800921] ffff8881026acf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.801532] >ffff8881026ad000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.801960] ^ [ 12.802281] ffff8881026ad080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.802897] ffff8881026ad100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.803496] ==================================================================