Date
July 8, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.189688] ================================================================== [ 31.189747] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 31.190329] Write of size 16 at addr fff00000c9a9c669 by task kunit_try_catch/209 [ 31.190381] [ 31.190413] CPU: 0 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT [ 31.190496] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.190522] Hardware name: linux,dummy-virt (DT) [ 31.190559] Call trace: [ 31.190592] show_stack+0x20/0x38 (C) [ 31.190642] dump_stack_lvl+0x8c/0xd0 [ 31.191049] print_report+0x118/0x5d0 [ 31.191101] kasan_report+0xdc/0x128 [ 31.191147] kasan_check_range+0x100/0x1a8 [ 31.191192] __asan_memset+0x34/0x78 [ 31.191247] kmalloc_oob_memset_16+0x150/0x2f8 [ 31.191295] kunit_try_run_case+0x170/0x3f0 [ 31.191347] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.191398] kthread+0x328/0x630 [ 31.191452] ret_from_fork+0x10/0x20 [ 31.191502] [ 31.191856] Allocated by task 209: [ 31.192084] kasan_save_stack+0x3c/0x68 [ 31.192133] kasan_save_track+0x20/0x40 [ 31.192177] kasan_save_alloc_info+0x40/0x58 [ 31.192272] __kasan_kmalloc+0xd4/0xd8 [ 31.192310] __kmalloc_cache_noprof+0x16c/0x3c0 [ 31.192350] kmalloc_oob_memset_16+0xb0/0x2f8 [ 31.192388] kunit_try_run_case+0x170/0x3f0 [ 31.192428] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.192478] kthread+0x328/0x630 [ 31.192608] ret_from_fork+0x10/0x20 [ 31.192646] [ 31.192666] The buggy address belongs to the object at fff00000c9a9c600 [ 31.192666] which belongs to the cache kmalloc-128 of size 128 [ 31.193225] The buggy address is located 105 bytes inside of [ 31.193225] allocated 120-byte region [fff00000c9a9c600, fff00000c9a9c678) [ 31.193424] [ 31.193448] The buggy address belongs to the physical page: [ 31.193479] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a9c [ 31.193723] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.193825] page_type: f5(slab) [ 31.193962] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 31.194012] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 31.194084] page dumped because: kasan: bad access detected [ 31.194164] [ 31.194241] Memory state around the buggy address: [ 31.194274] fff00000c9a9c500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.194316] fff00000c9a9c580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.194358] >fff00000c9a9c600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 31.194395] ^ [ 31.194434] fff00000c9a9c680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.194475] fff00000c9a9c700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.194514] ==================================================================
[ 23.502862] ================================================================== [ 23.503235] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 23.504388] Write of size 16 at addr ffff88810595df69 by task kunit_try_catch/226 [ 23.505600] [ 23.505969] CPU: 1 UID: 0 PID: 226 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) [ 23.506028] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.506041] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.506064] Call Trace: [ 23.506080] <TASK> [ 23.506101] dump_stack_lvl+0x73/0xb0 [ 23.506137] print_report+0xd1/0x610 [ 23.506162] ? __virt_addr_valid+0x1db/0x2d0 [ 23.506187] ? kmalloc_oob_memset_16+0x166/0x330 [ 23.506209] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.506254] ? kmalloc_oob_memset_16+0x166/0x330 [ 23.506292] kasan_report+0x141/0x180 [ 23.506331] ? kmalloc_oob_memset_16+0x166/0x330 [ 23.506357] kasan_check_range+0x10c/0x1c0 [ 23.506382] __asan_memset+0x27/0x50 [ 23.506458] kmalloc_oob_memset_16+0x166/0x330 [ 23.506484] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 23.506506] ? __schedule+0x10cc/0x2b60 [ 23.506631] ? __pfx_read_tsc+0x10/0x10 [ 23.506659] ? ktime_get_ts64+0x86/0x230 [ 23.506687] kunit_try_run_case+0x1a5/0x480 [ 23.506711] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.506732] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.506769] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.506798] ? __kthread_parkme+0x82/0x180 [ 23.506830] ? preempt_count_sub+0x50/0x80 [ 23.506854] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.506876] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.506902] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.506929] kthread+0x337/0x6f0 [ 23.506950] ? trace_preempt_on+0x20/0xc0 [ 23.506976] ? __pfx_kthread+0x10/0x10 [ 23.506998] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.507025] ? calculate_sigpending+0x7b/0xa0 [ 23.507053] ? __pfx_kthread+0x10/0x10 [ 23.507076] ret_from_fork+0x116/0x1d0 [ 23.507095] ? __pfx_kthread+0x10/0x10 [ 23.507118] ret_from_fork_asm+0x1a/0x30 [ 23.507152] </TASK> [ 23.507164] [ 23.517968] Allocated by task 226: [ 23.518305] kasan_save_stack+0x45/0x70 [ 23.518783] kasan_save_track+0x18/0x40 [ 23.518977] kasan_save_alloc_info+0x3b/0x50 [ 23.519120] __kasan_kmalloc+0xb7/0xc0 [ 23.519254] __kmalloc_cache_noprof+0x189/0x420 [ 23.519417] kmalloc_oob_memset_16+0xac/0x330 [ 23.519557] kunit_try_run_case+0x1a5/0x480 [ 23.519694] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.519856] kthread+0x337/0x6f0 [ 23.519966] ret_from_fork+0x116/0x1d0 [ 23.520085] ret_from_fork_asm+0x1a/0x30 [ 23.520213] [ 23.520375] The buggy address belongs to the object at ffff88810595df00 [ 23.520375] which belongs to the cache kmalloc-128 of size 128 [ 23.522107] The buggy address is located 105 bytes inside of [ 23.522107] allocated 120-byte region [ffff88810595df00, ffff88810595df78) [ 23.522893] [ 23.523083] The buggy address belongs to the physical page: [ 23.523603] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10595d [ 23.524356] flags: 0x200000000000000(node=0|zone=2) [ 23.524539] page_type: f5(slab) [ 23.524661] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.525315] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.526071] page dumped because: kasan: bad access detected [ 23.526635] [ 23.526837] Memory state around the buggy address: [ 23.527281] ffff88810595de00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.527503] ffff88810595de80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.527714] >ffff88810595df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.527965] ^ [ 23.528441] ffff88810595df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.528713] ffff88810595e000: 00 00 00 00 04 fc fc fc fc fc fc fc fc fc fc fc [ 23.529404] ==================================================================