Date
May 26, 2025, 9:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.902785] ================================================================== [ 16.902890] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488 [ 16.903229] Write of size 1 at addr fff00000c3ef0d78 by task kunit_try_catch/142 [ 16.903397] [ 16.903487] CPU: 0 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT [ 16.904010] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.904107] Hardware name: linux,dummy-virt (DT) [ 16.904183] Call trace: [ 16.904304] show_stack+0x20/0x38 (C) [ 16.904444] dump_stack_lvl+0x8c/0xd0 [ 16.904592] print_report+0x118/0x608 [ 16.904710] kasan_report+0xdc/0x128 [ 16.905086] __asan_report_store1_noabort+0x20/0x30 [ 16.905556] kmalloc_track_caller_oob_right+0x418/0x488 [ 16.905696] kunit_try_run_case+0x170/0x3f0 [ 16.905829] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.906024] kthread+0x328/0x630 [ 16.906141] ret_from_fork+0x10/0x20 [ 16.906571] [ 16.906614] Allocated by task 142: [ 16.906690] kasan_save_stack+0x3c/0x68 [ 16.906784] kasan_save_track+0x20/0x40 [ 16.906863] kasan_save_alloc_info+0x40/0x58 [ 16.907013] __kasan_kmalloc+0xd4/0xd8 [ 16.907191] __kmalloc_node_track_caller_noprof+0x18c/0x4c0 [ 16.907358] kmalloc_track_caller_oob_right+0x184/0x488 [ 16.907466] kunit_try_run_case+0x170/0x3f0 [ 16.907665] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.907749] kthread+0x328/0x630 [ 16.907804] ret_from_fork+0x10/0x20 [ 16.907866] [ 16.907903] The buggy address belongs to the object at fff00000c3ef0d00 [ 16.907903] which belongs to the cache kmalloc-128 of size 128 [ 16.908010] The buggy address is located 0 bytes to the right of [ 16.908010] allocated 120-byte region [fff00000c3ef0d00, fff00000c3ef0d78) [ 16.908542] [ 16.908716] The buggy address belongs to the physical page: [ 16.908908] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ef0 [ 16.909016] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.909126] page_type: f5(slab) [ 16.909210] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.909489] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.909620] page dumped because: kasan: bad access detected [ 16.909703] [ 16.909738] Memory state around the buggy address: [ 16.909803] fff00000c3ef0c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.910205] fff00000c3ef0c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.910391] >fff00000c3ef0d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.910573] ^ [ 16.910755] fff00000c3ef0d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.910921] fff00000c3ef0e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.910991] ================================================================== [ 16.893902] ================================================================== [ 16.894226] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488 [ 16.894370] Write of size 1 at addr fff00000c3ef0c78 by task kunit_try_catch/142 [ 16.894469] [ 16.894549] CPU: 0 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT [ 16.894737] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.894815] Hardware name: linux,dummy-virt (DT) [ 16.894876] Call trace: [ 16.894930] show_stack+0x20/0x38 (C) [ 16.895369] dump_stack_lvl+0x8c/0xd0 [ 16.895566] print_report+0x118/0x608 [ 16.895765] kasan_report+0xdc/0x128 [ 16.895896] __asan_report_store1_noabort+0x20/0x30 [ 16.896009] kmalloc_track_caller_oob_right+0x40c/0x488 [ 16.896108] kunit_try_run_case+0x170/0x3f0 [ 16.896215] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.896342] kthread+0x328/0x630 [ 16.896457] ret_from_fork+0x10/0x20 [ 16.896608] [ 16.896649] Allocated by task 142: [ 16.896717] kasan_save_stack+0x3c/0x68 [ 16.896829] kasan_save_track+0x20/0x40 [ 16.896949] kasan_save_alloc_info+0x40/0x58 [ 16.897081] __kasan_kmalloc+0xd4/0xd8 [ 16.897196] __kmalloc_node_track_caller_noprof+0x18c/0x4c0 [ 16.897302] kmalloc_track_caller_oob_right+0xa8/0x488 [ 16.897403] kunit_try_run_case+0x170/0x3f0 [ 16.897483] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.897568] kthread+0x328/0x630 [ 16.897645] ret_from_fork+0x10/0x20 [ 16.897773] [ 16.897838] The buggy address belongs to the object at fff00000c3ef0c00 [ 16.897838] which belongs to the cache kmalloc-128 of size 128 [ 16.898001] The buggy address is located 0 bytes to the right of [ 16.898001] allocated 120-byte region [fff00000c3ef0c00, fff00000c3ef0c78) [ 16.898146] [ 16.898201] The buggy address belongs to the physical page: [ 16.898285] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ef0 [ 16.898597] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.898757] page_type: f5(slab) [ 16.899021] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.899288] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.899673] page dumped because: kasan: bad access detected [ 16.899748] [ 16.899784] Memory state around the buggy address: [ 16.899850] fff00000c3ef0b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.899936] fff00000c3ef0b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.900075] >fff00000c3ef0c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.900171] ^ [ 16.900288] fff00000c3ef0c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.900408] fff00000c3ef0d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.900531] ==================================================================
[ 10.400234] ================================================================== [ 10.400713] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.400972] Write of size 1 at addr ffff888102818e78 by task kunit_try_catch/160 [ 10.402062] [ 10.402249] CPU: 0 UID: 0 PID: 160 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) [ 10.402296] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.402308] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.402330] Call Trace: [ 10.402342] <TASK> [ 10.402358] dump_stack_lvl+0x73/0xb0 [ 10.402398] print_report+0xd1/0x650 [ 10.402421] ? __virt_addr_valid+0x1db/0x2d0 [ 10.402602] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.402627] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.402649] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.402674] kasan_report+0x141/0x180 [ 10.402697] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.402728] __asan_report_store1_noabort+0x1b/0x30 [ 10.402749] kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.402773] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 10.402801] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 10.402832] kunit_try_run_case+0x1a5/0x480 [ 10.402852] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.402871] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.402896] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.402920] ? __kthread_parkme+0x82/0x180 [ 10.402940] ? preempt_count_sub+0x50/0x80 [ 10.402963] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.402983] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.403021] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.403044] kthread+0x337/0x6f0 [ 10.403063] ? trace_preempt_on+0x20/0xc0 [ 10.403086] ? __pfx_kthread+0x10/0x10 [ 10.403107] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.403129] ? calculate_sigpending+0x7b/0xa0 [ 10.403152] ? __pfx_kthread+0x10/0x10 [ 10.403173] ret_from_fork+0x116/0x1d0 [ 10.403191] ? __pfx_kthread+0x10/0x10 [ 10.403211] ret_from_fork_asm+0x1a/0x30 [ 10.403241] </TASK> [ 10.403251] [ 10.418592] Allocated by task 160: [ 10.418893] kasan_save_stack+0x45/0x70 [ 10.419411] kasan_save_track+0x18/0x40 [ 10.419683] kasan_save_alloc_info+0x3b/0x50 [ 10.420060] __kasan_kmalloc+0xb7/0xc0 [ 10.420413] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.420596] kmalloc_track_caller_oob_right+0x99/0x520 [ 10.420889] kunit_try_run_case+0x1a5/0x480 [ 10.421355] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.422079] kthread+0x337/0x6f0 [ 10.422425] ret_from_fork+0x116/0x1d0 [ 10.422806] ret_from_fork_asm+0x1a/0x30 [ 10.422960] [ 10.423036] The buggy address belongs to the object at ffff888102818e00 [ 10.423036] which belongs to the cache kmalloc-128 of size 128 [ 10.424292] The buggy address is located 0 bytes to the right of [ 10.424292] allocated 120-byte region [ffff888102818e00, ffff888102818e78) [ 10.424766] [ 10.424935] The buggy address belongs to the physical page: [ 10.425637] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102818 [ 10.426545] flags: 0x200000000000000(node=0|zone=2) [ 10.426789] page_type: f5(slab) [ 10.427208] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 10.427586] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 10.427834] page dumped because: kasan: bad access detected [ 10.428050] [ 10.428218] Memory state around the buggy address: [ 10.428655] ffff888102818d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 10.429526] ffff888102818d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.429911] >ffff888102818e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 10.430468] ^ [ 10.431269] ffff888102818e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.431506] ffff888102818f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.431729] ================================================================== [ 10.432797] ================================================================== [ 10.433470] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4b1/0x520 [ 10.434466] Write of size 1 at addr ffff888102818f78 by task kunit_try_catch/160 [ 10.435160] [ 10.435340] CPU: 0 UID: 0 PID: 160 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) [ 10.435395] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.435408] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.435428] Call Trace: [ 10.435439] <TASK> [ 10.435454] dump_stack_lvl+0x73/0xb0 [ 10.435481] print_report+0xd1/0x650 [ 10.435504] ? __virt_addr_valid+0x1db/0x2d0 [ 10.435526] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 10.435550] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.435572] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 10.435597] kasan_report+0x141/0x180 [ 10.435619] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 10.435648] __asan_report_store1_noabort+0x1b/0x30 [ 10.435669] kmalloc_track_caller_oob_right+0x4b1/0x520 [ 10.435693] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 10.435728] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 10.435758] kunit_try_run_case+0x1a5/0x480 [ 10.435778] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.435797] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.435822] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.435847] ? __kthread_parkme+0x82/0x180 [ 10.435866] ? preempt_count_sub+0x50/0x80 [ 10.435889] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.435910] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.435933] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.435956] kthread+0x337/0x6f0 [ 10.435975] ? trace_preempt_on+0x20/0xc0 [ 10.435999] ? __pfx_kthread+0x10/0x10 [ 10.436029] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.436051] ? calculate_sigpending+0x7b/0xa0 [ 10.436075] ? __pfx_kthread+0x10/0x10 [ 10.436096] ret_from_fork+0x116/0x1d0 [ 10.436114] ? __pfx_kthread+0x10/0x10 [ 10.436133] ret_from_fork_asm+0x1a/0x30 [ 10.436163] </TASK> [ 10.436172] [ 10.446777] Allocated by task 160: [ 10.447172] kasan_save_stack+0x45/0x70 [ 10.447365] kasan_save_track+0x18/0x40 [ 10.447558] kasan_save_alloc_info+0x3b/0x50 [ 10.447704] __kasan_kmalloc+0xb7/0xc0 [ 10.447912] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.448226] kmalloc_track_caller_oob_right+0x19a/0x520 [ 10.448553] kunit_try_run_case+0x1a5/0x480 [ 10.448771] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.448952] kthread+0x337/0x6f0 [ 10.449157] ret_from_fork+0x116/0x1d0 [ 10.449467] ret_from_fork_asm+0x1a/0x30 [ 10.449668] [ 10.449753] The buggy address belongs to the object at ffff888102818f00 [ 10.449753] which belongs to the cache kmalloc-128 of size 128 [ 10.450480] The buggy address is located 0 bytes to the right of [ 10.450480] allocated 120-byte region [ffff888102818f00, ffff888102818f78) [ 10.451096] [ 10.451173] The buggy address belongs to the physical page: [ 10.451347] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102818 [ 10.451965] flags: 0x200000000000000(node=0|zone=2) [ 10.452325] page_type: f5(slab) [ 10.452483] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 10.452836] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 10.453079] page dumped because: kasan: bad access detected [ 10.453460] [ 10.453555] Memory state around the buggy address: [ 10.453774] ffff888102818e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 10.454077] ffff888102818e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.454333] >ffff888102818f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 10.454655] ^ [ 10.454954] ffff888102818f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.455315] ffff888102819000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 10.455666] ==================================================================