Date
July 17, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.658820] ================================================================== [ 16.658956] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 16.659075] Write of size 4 at addr fff00000c6691675 by task kunit_try_catch/174 [ 16.659371] [ 16.659525] CPU: 1 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.659616] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.659642] Hardware name: linux,dummy-virt (DT) [ 16.659790] Call trace: [ 16.659851] show_stack+0x20/0x38 (C) [ 16.660282] dump_stack_lvl+0x8c/0xd0 [ 16.660494] print_report+0x118/0x5d0 [ 16.660602] kasan_report+0xdc/0x128 [ 16.660738] kasan_check_range+0x100/0x1a8 [ 16.660851] __asan_memset+0x34/0x78 [ 16.661036] kmalloc_oob_memset_4+0x150/0x300 [ 16.661279] kunit_try_run_case+0x170/0x3f0 [ 16.661430] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.661555] kthread+0x328/0x630 [ 16.661703] ret_from_fork+0x10/0x20 [ 16.662230] [ 16.662278] Allocated by task 174: [ 16.662675] kasan_save_stack+0x3c/0x68 [ 16.662750] kasan_save_track+0x20/0x40 [ 16.662788] kasan_save_alloc_info+0x40/0x58 [ 16.662827] __kasan_kmalloc+0xd4/0xd8 [ 16.662873] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.662954] kmalloc_oob_memset_4+0xb0/0x300 [ 16.663021] kunit_try_run_case+0x170/0x3f0 [ 16.663106] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.663180] kthread+0x328/0x630 [ 16.663243] ret_from_fork+0x10/0x20 [ 16.663353] [ 16.663375] The buggy address belongs to the object at fff00000c6691600 [ 16.663375] which belongs to the cache kmalloc-128 of size 128 [ 16.663893] The buggy address is located 117 bytes inside of [ 16.663893] allocated 120-byte region [fff00000c6691600, fff00000c6691678) [ 16.664053] [ 16.664292] The buggy address belongs to the physical page: [ 16.664333] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106691 [ 16.664397] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.664936] page_type: f5(slab) [ 16.665447] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.665584] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.665795] page dumped because: kasan: bad access detected [ 16.665829] [ 16.665900] Memory state around the buggy address: [ 16.666375] fff00000c6691500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.666460] fff00000c6691580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.666544] >fff00000c6691600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.666984] ^ [ 16.667346] fff00000c6691680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.667770] fff00000c6691700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.667997] ==================================================================
[ 12.355799] ================================================================== [ 12.356359] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 12.356684] Write of size 4 at addr ffff888102f42075 by task kunit_try_catch/191 [ 12.356965] [ 12.357092] CPU: 0 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.357138] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.357148] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.357169] Call Trace: [ 12.357181] <TASK> [ 12.357200] dump_stack_lvl+0x73/0xb0 [ 12.357231] print_report+0xd1/0x610 [ 12.357253] ? __virt_addr_valid+0x1db/0x2d0 [ 12.357277] ? kmalloc_oob_memset_4+0x166/0x330 [ 12.357298] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.357320] ? kmalloc_oob_memset_4+0x166/0x330 [ 12.357342] kasan_report+0x141/0x180 [ 12.357363] ? kmalloc_oob_memset_4+0x166/0x330 [ 12.357390] kasan_check_range+0x10c/0x1c0 [ 12.357413] __asan_memset+0x27/0x50 [ 12.357431] kmalloc_oob_memset_4+0x166/0x330 [ 12.357453] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 12.357476] ? __schedule+0x10cc/0x2b60 [ 12.357498] ? __pfx_read_tsc+0x10/0x10 [ 12.357519] ? ktime_get_ts64+0x86/0x230 [ 12.357545] kunit_try_run_case+0x1a5/0x480 [ 12.357570] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.357659] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.357686] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.357709] ? __kthread_parkme+0x82/0x180 [ 12.357729] ? preempt_count_sub+0x50/0x80 [ 12.357754] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.357777] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.357800] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.357824] kthread+0x337/0x6f0 [ 12.357998] ? trace_preempt_on+0x20/0xc0 [ 12.358024] ? __pfx_kthread+0x10/0x10 [ 12.358044] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.358081] ? calculate_sigpending+0x7b/0xa0 [ 12.358106] ? __pfx_kthread+0x10/0x10 [ 12.358127] ret_from_fork+0x116/0x1d0 [ 12.358145] ? __pfx_kthread+0x10/0x10 [ 12.358165] ret_from_fork_asm+0x1a/0x30 [ 12.358197] </TASK> [ 12.358207] [ 12.372011] Allocated by task 191: [ 12.372372] kasan_save_stack+0x45/0x70 [ 12.372697] kasan_save_track+0x18/0x40 [ 12.372993] kasan_save_alloc_info+0x3b/0x50 [ 12.373182] __kasan_kmalloc+0xb7/0xc0 [ 12.373378] __kmalloc_cache_noprof+0x189/0x420 [ 12.373606] kmalloc_oob_memset_4+0xac/0x330 [ 12.374034] kunit_try_run_case+0x1a5/0x480 [ 12.374251] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.374494] kthread+0x337/0x6f0 [ 12.374660] ret_from_fork+0x116/0x1d0 [ 12.374927] ret_from_fork_asm+0x1a/0x30 [ 12.375101] [ 12.375202] The buggy address belongs to the object at ffff888102f42000 [ 12.375202] which belongs to the cache kmalloc-128 of size 128 [ 12.375658] The buggy address is located 117 bytes inside of [ 12.375658] allocated 120-byte region [ffff888102f42000, ffff888102f42078) [ 12.376252] [ 12.376358] The buggy address belongs to the physical page: [ 12.376569] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102f42 [ 12.377120] flags: 0x200000000000000(node=0|zone=2) [ 12.377365] page_type: f5(slab) [ 12.377535] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.377971] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.378235] page dumped because: kasan: bad access detected [ 12.378490] [ 12.378592] Memory state around the buggy address: [ 12.378802] ffff888102f41f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.379089] ffff888102f41f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.379384] >ffff888102f42000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.379731] ^ [ 12.380089] ffff888102f42080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.380406] ffff888102f42100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.380720] ==================================================================