Date
July 24, 2025, 4:41 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.176905] ================================================================== [ 32.176966] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488 [ 32.177021] Write of size 1 at addr fff00000c3f77f78 by task kunit_try_catch/173 [ 32.177564] [ 32.177626] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250724 #1 PREEMPT [ 32.178002] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.178044] Hardware name: linux,dummy-virt (DT) [ 32.178250] Call trace: [ 32.178293] show_stack+0x20/0x38 (C) [ 32.178384] dump_stack_lvl+0x8c/0xd0 [ 32.178616] print_report+0x118/0x5e8 [ 32.178773] kasan_report+0xdc/0x128 [ 32.178907] __asan_report_store1_noabort+0x20/0x30 [ 32.179226] kmalloc_track_caller_oob_right+0x418/0x488 [ 32.179280] kunit_try_run_case+0x170/0x3f0 [ 32.179620] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.179914] kthread+0x328/0x630 [ 32.180034] ret_from_fork+0x10/0x20 [ 32.180152] [ 32.180239] Allocated by task 173: [ 32.180297] kasan_save_stack+0x3c/0x68 [ 32.180356] kasan_save_track+0x20/0x40 [ 32.180464] kasan_save_alloc_info+0x40/0x58 [ 32.180561] __kasan_kmalloc+0xd4/0xd8 [ 32.180791] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 32.180875] kmalloc_track_caller_oob_right+0x184/0x488 [ 32.181080] kunit_try_run_case+0x170/0x3f0 [ 32.181133] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.181177] kthread+0x328/0x630 [ 32.181209] ret_from_fork+0x10/0x20 [ 32.181253] [ 32.181273] The buggy address belongs to the object at fff00000c3f77f00 [ 32.181273] which belongs to the cache kmalloc-128 of size 128 [ 32.181355] The buggy address is located 0 bytes to the right of [ 32.181355] allocated 120-byte region [fff00000c3f77f00, fff00000c3f77f78) [ 32.181428] [ 32.181456] The buggy address belongs to the physical page: [ 32.181490] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f77 [ 32.181540] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.181597] page_type: f5(slab) [ 32.181651] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.181702] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 32.181740] page dumped because: kasan: bad access detected [ 32.182470] [ 32.182526] Memory state around the buggy address: [ 32.182579] fff00000c3f77e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.182866] fff00000c3f77e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.183078] >fff00000c3f77f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.183248] ^ [ 32.183587] fff00000c3f77f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.183798] fff00000c3f78000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.183867] ================================================================== [ 32.165422] ================================================================== [ 32.165714] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488 [ 32.165821] Write of size 1 at addr fff00000c3f77e78 by task kunit_try_catch/173 [ 32.166050] [ 32.166102] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250724 #1 PREEMPT [ 32.166552] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.166704] Hardware name: linux,dummy-virt (DT) [ 32.166775] Call trace: [ 32.166801] show_stack+0x20/0x38 (C) [ 32.166935] dump_stack_lvl+0x8c/0xd0 [ 32.167042] print_report+0x118/0x5e8 [ 32.167117] kasan_report+0xdc/0x128 [ 32.167193] __asan_report_store1_noabort+0x20/0x30 [ 32.167582] kmalloc_track_caller_oob_right+0x40c/0x488 [ 32.167782] kunit_try_run_case+0x170/0x3f0 [ 32.167879] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.168013] kthread+0x328/0x630 [ 32.168108] ret_from_fork+0x10/0x20 [ 32.168626] [ 32.168765] Allocated by task 173: [ 32.168869] kasan_save_stack+0x3c/0x68 [ 32.168912] kasan_save_track+0x20/0x40 [ 32.169249] kasan_save_alloc_info+0x40/0x58 [ 32.169479] __kasan_kmalloc+0xd4/0xd8 [ 32.169541] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 32.169683] kmalloc_track_caller_oob_right+0xa8/0x488 [ 32.169971] kunit_try_run_case+0x170/0x3f0 [ 32.170273] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.170360] kthread+0x328/0x630 [ 32.170429] ret_from_fork+0x10/0x20 [ 32.170528] [ 32.170597] The buggy address belongs to the object at fff00000c3f77e00 [ 32.170597] which belongs to the cache kmalloc-128 of size 128 [ 32.170675] The buggy address is located 0 bytes to the right of [ 32.170675] allocated 120-byte region [fff00000c3f77e00, fff00000c3f77e78) [ 32.171030] [ 32.171282] The buggy address belongs to the physical page: [ 32.171349] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f77 [ 32.171467] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.171574] page_type: f5(slab) [ 32.171710] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.171927] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 32.172083] page dumped because: kasan: bad access detected [ 32.172230] [ 32.172290] Memory state around the buggy address: [ 32.172477] fff00000c3f77d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.172562] fff00000c3f77d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.172619] >fff00000c3f77e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.172824] ^ [ 32.173106] fff00000c3f77e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.173164] fff00000c3f77f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.173254] ==================================================================
[ 26.249077] ================================================================== [ 26.249421] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4b1/0x520 [ 26.249854] Write of size 1 at addr ffff888104c4a578 by task kunit_try_catch/190 [ 26.250260] [ 26.250347] CPU: 1 UID: 0 PID: 190 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250724 #1 PREEMPT(voluntary) [ 26.250398] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 26.250410] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.250431] Call Trace: [ 26.250444] <TASK> [ 26.250462] dump_stack_lvl+0x73/0xb0 [ 26.250491] print_report+0xd1/0x640 [ 26.250514] ? __virt_addr_valid+0x1db/0x2d0 [ 26.250539] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 26.250563] ? kasan_complete_mode_report_info+0x2a/0x200 [ 26.250601] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 26.250625] kasan_report+0x141/0x180 [ 26.250646] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 26.250675] __asan_report_store1_noabort+0x1b/0x30 [ 26.250699] kmalloc_track_caller_oob_right+0x4b1/0x520 [ 26.250723] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 26.250748] ? __schedule+0x10da/0x2b60 [ 26.250773] ? __pfx_read_tsc+0x10/0x10 [ 26.250795] ? ktime_get_ts64+0x86/0x230 [ 26.250819] kunit_try_run_case+0x1a5/0x480 [ 26.250844] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.250867] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.250893] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.250919] ? __kthread_parkme+0x82/0x180 [ 26.251164] ? preempt_count_sub+0x50/0x80 [ 26.251203] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.251229] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.251263] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.251287] kthread+0x337/0x6f0 [ 26.251309] ? trace_preempt_on+0x20/0xc0 [ 26.251333] ? __pfx_kthread+0x10/0x10 [ 26.251354] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.251378] ? calculate_sigpending+0x7b/0xa0 [ 26.251401] ? __pfx_kthread+0x10/0x10 [ 26.251422] ret_from_fork+0x116/0x1d0 [ 26.251442] ? __pfx_kthread+0x10/0x10 [ 26.251462] ret_from_fork_asm+0x1a/0x30 [ 26.251494] </TASK> [ 26.251505] [ 26.259916] Allocated by task 190: [ 26.260064] kasan_save_stack+0x45/0x70 [ 26.260329] kasan_save_track+0x18/0x40 [ 26.261941] kasan_save_alloc_info+0x3b/0x50 [ 26.262647] __kasan_kmalloc+0xb7/0xc0 [ 26.263197] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 26.263844] kmalloc_track_caller_oob_right+0x19a/0x520 [ 26.264556] kunit_try_run_case+0x1a5/0x480 [ 26.264915] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.265104] kthread+0x337/0x6f0 [ 26.265225] ret_from_fork+0x116/0x1d0 [ 26.265354] ret_from_fork_asm+0x1a/0x30 [ 26.265490] [ 26.265557] The buggy address belongs to the object at ffff888104c4a500 [ 26.265557] which belongs to the cache kmalloc-128 of size 128 [ 26.265922] The buggy address is located 0 bytes to the right of [ 26.265922] allocated 120-byte region [ffff888104c4a500, ffff888104c4a578) [ 26.266280] [ 26.266347] The buggy address belongs to the physical page: [ 26.266522] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104c4a [ 26.268058] flags: 0x200000000000000(node=0|zone=2) [ 26.268751] page_type: f5(slab) [ 26.269407] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 26.270486] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 26.271449] page dumped because: kasan: bad access detected [ 26.272193] [ 26.272537] Memory state around the buggy address: [ 26.273168] ffff888104c4a400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.274144] ffff888104c4a480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.275006] >ffff888104c4a500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 26.276004] ^ [ 26.277166] ffff888104c4a580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.277984] ffff888104c4a600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.278785] ================================================================== [ 26.229557] ================================================================== [ 26.230281] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520 [ 26.230648] Write of size 1 at addr ffff888104c4a478 by task kunit_try_catch/190 [ 26.230954] [ 26.231397] CPU: 1 UID: 0 PID: 190 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250724 #1 PREEMPT(voluntary) [ 26.231457] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 26.231470] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.231491] Call Trace: [ 26.231503] <TASK> [ 26.231521] dump_stack_lvl+0x73/0xb0 [ 26.231553] print_report+0xd1/0x640 [ 26.231592] ? __virt_addr_valid+0x1db/0x2d0 [ 26.231618] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 26.231643] ? kasan_complete_mode_report_info+0x2a/0x200 [ 26.231668] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 26.231692] kasan_report+0x141/0x180 [ 26.231714] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 26.231742] __asan_report_store1_noabort+0x1b/0x30 [ 26.231766] kmalloc_track_caller_oob_right+0x4c8/0x520 [ 26.231789] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 26.231814] ? __schedule+0x10da/0x2b60 [ 26.231839] ? __pfx_read_tsc+0x10/0x10 [ 26.231861] ? ktime_get_ts64+0x86/0x230 [ 26.231885] kunit_try_run_case+0x1a5/0x480 [ 26.231911] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.232011] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.232038] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.232062] ? __kthread_parkme+0x82/0x180 [ 26.232082] ? preempt_count_sub+0x50/0x80 [ 26.232107] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.232131] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.232155] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.232178] kthread+0x337/0x6f0 [ 26.232198] ? trace_preempt_on+0x20/0xc0 [ 26.232223] ? __pfx_kthread+0x10/0x10 [ 26.232244] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.232266] ? calculate_sigpending+0x7b/0xa0 [ 26.232289] ? __pfx_kthread+0x10/0x10 [ 26.232310] ret_from_fork+0x116/0x1d0 [ 26.232329] ? __pfx_kthread+0x10/0x10 [ 26.232349] ret_from_fork_asm+0x1a/0x30 [ 26.232380] </TASK> [ 26.232391] [ 26.239840] Allocated by task 190: [ 26.240173] kasan_save_stack+0x45/0x70 [ 26.240381] kasan_save_track+0x18/0x40 [ 26.240566] kasan_save_alloc_info+0x3b/0x50 [ 26.240786] __kasan_kmalloc+0xb7/0xc0 [ 26.240958] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 26.241193] kmalloc_track_caller_oob_right+0x99/0x520 [ 26.241563] kunit_try_run_case+0x1a5/0x480 [ 26.241722] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.242335] kthread+0x337/0x6f0 [ 26.242653] ret_from_fork+0x116/0x1d0 [ 26.242958] ret_from_fork_asm+0x1a/0x30 [ 26.243135] [ 26.243220] The buggy address belongs to the object at ffff888104c4a400 [ 26.243220] which belongs to the cache kmalloc-128 of size 128 [ 26.243707] The buggy address is located 0 bytes to the right of [ 26.243707] allocated 120-byte region [ffff888104c4a400, ffff888104c4a478) [ 26.244231] [ 26.244329] The buggy address belongs to the physical page: [ 26.244600] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104c4a [ 26.244909] flags: 0x200000000000000(node=0|zone=2) [ 26.245069] page_type: f5(slab) [ 26.245187] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 26.245409] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 26.245688] page dumped because: kasan: bad access detected [ 26.245955] [ 26.246127] Memory state around the buggy address: [ 26.246347] ffff888104c4a300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.246666] ffff888104c4a380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.247224] >ffff888104c4a400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 26.247555] ^ [ 26.247975] ffff888104c4a480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.248256] ffff888104c4a500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.248494] ==================================================================