Date
May 13, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.936938] ================================================================== [ 18.937057] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488 [ 18.937151] Write of size 1 at addr fff00000c4065078 by task kunit_try_catch/142 [ 18.937271] [ 18.937357] CPU: 1 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT [ 18.937476] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.937508] Hardware name: linux,dummy-virt (DT) [ 18.937546] Call trace: [ 18.937574] show_stack+0x20/0x38 (C) [ 18.937649] dump_stack_lvl+0x8c/0xd0 [ 18.937702] print_report+0x118/0x608 [ 18.937753] kasan_report+0xdc/0x128 [ 18.937803] __asan_report_store1_noabort+0x20/0x30 [ 18.937880] kmalloc_track_caller_oob_right+0x40c/0x488 [ 18.937938] kunit_try_run_case+0x170/0x3f0 [ 18.938007] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.938068] kthread+0x328/0x630 [ 18.938122] ret_from_fork+0x10/0x20 [ 18.938180] [ 18.938202] Allocated by task 142: [ 18.938773] kasan_save_stack+0x3c/0x68 [ 18.939044] kasan_save_track+0x20/0x40 [ 18.939128] kasan_save_alloc_info+0x40/0x58 [ 18.939177] __kasan_kmalloc+0xd4/0xd8 [ 18.939218] __kmalloc_node_track_caller_noprof+0x18c/0x4c0 [ 18.939371] kmalloc_track_caller_oob_right+0xa8/0x488 [ 18.939427] kunit_try_run_case+0x170/0x3f0 [ 18.939480] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.939852] kthread+0x328/0x630 [ 18.939963] ret_from_fork+0x10/0x20 [ 18.940052] [ 18.940178] The buggy address belongs to the object at fff00000c4065000 [ 18.940178] which belongs to the cache kmalloc-128 of size 128 [ 18.940251] The buggy address is located 0 bytes to the right of [ 18.940251] allocated 120-byte region [fff00000c4065000, fff00000c4065078) [ 18.940320] [ 18.940348] The buggy address belongs to the physical page: [ 18.940384] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104065 [ 18.940445] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.940502] page_type: f5(slab) [ 18.940553] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.940610] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.940653] page dumped because: kasan: bad access detected [ 18.940687] [ 18.941082] Memory state around the buggy address: [ 18.941142] fff00000c4064f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.941253] fff00000c4064f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.941311] >fff00000c4065000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.941438] ^ [ 18.941678] fff00000c4065080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.941751] fff00000c4065100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.942092] ================================================================== [ 18.943296] ================================================================== [ 18.943364] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488 [ 18.943783] Write of size 1 at addr fff00000c4065178 by task kunit_try_catch/142 [ 18.944089] [ 18.944149] CPU: 1 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT [ 18.944409] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.944445] Hardware name: linux,dummy-virt (DT) [ 18.944482] Call trace: [ 18.944508] show_stack+0x20/0x38 (C) [ 18.944580] dump_stack_lvl+0x8c/0xd0 [ 18.944631] print_report+0x118/0x608 [ 18.944680] kasan_report+0xdc/0x128 [ 18.944726] __asan_report_store1_noabort+0x20/0x30 [ 18.944778] kmalloc_track_caller_oob_right+0x418/0x488 [ 18.944985] kunit_try_run_case+0x170/0x3f0 [ 18.945052] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.945173] kthread+0x328/0x630 [ 18.945236] ret_from_fork+0x10/0x20 [ 18.945294] [ 18.945357] Allocated by task 142: [ 18.945393] kasan_save_stack+0x3c/0x68 [ 18.945670] kasan_save_track+0x20/0x40 [ 18.945732] kasan_save_alloc_info+0x40/0x58 [ 18.945778] __kasan_kmalloc+0xd4/0xd8 [ 18.945828] __kmalloc_node_track_caller_noprof+0x18c/0x4c0 [ 18.945881] kmalloc_track_caller_oob_right+0x184/0x488 [ 18.945926] kunit_try_run_case+0x170/0x3f0 [ 18.945967] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.946030] kthread+0x328/0x630 [ 18.946069] ret_from_fork+0x10/0x20 [ 18.946108] [ 18.946131] The buggy address belongs to the object at fff00000c4065100 [ 18.946131] which belongs to the cache kmalloc-128 of size 128 [ 18.946194] The buggy address is located 0 bytes to the right of [ 18.946194] allocated 120-byte region [fff00000c4065100, fff00000c4065178) [ 18.946260] [ 18.946283] The buggy address belongs to the physical page: [ 18.946317] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104065 [ 18.946374] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.946426] page_type: f5(slab) [ 18.946658] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.947005] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.947122] page dumped because: kasan: bad access detected [ 18.947330] [ 18.947387] Memory state around the buggy address: [ 18.947428] fff00000c4065000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.947569] fff00000c4065080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.947724] >fff00000c4065100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.947765] ^ [ 18.948077] fff00000c4065180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.948139] fff00000c4065200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.948294] ==================================================================
[ 10.499308] ================================================================== [ 10.500039] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.500477] Write of size 1 at addr ffff8881029ce178 by task kunit_try_catch/159 [ 10.500913] [ 10.501008] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) [ 10.501157] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.501169] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.501266] Call Trace: [ 10.501279] <TASK> [ 10.501293] dump_stack_lvl+0x73/0xb0 [ 10.501323] print_report+0xd1/0x650 [ 10.501345] ? __virt_addr_valid+0x1db/0x2d0 [ 10.501367] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.501392] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.501413] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.501438] kasan_report+0x141/0x180 [ 10.501460] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.501490] __asan_report_store1_noabort+0x1b/0x30 [ 10.501512] kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.501694] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 10.501722] ? __schedule+0x10cc/0x2b60 [ 10.501746] ? __pfx_read_tsc+0x10/0x10 [ 10.501767] ? ktime_get_ts64+0x86/0x230 [ 10.501792] kunit_try_run_case+0x1a5/0x480 [ 10.501817] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.501838] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.501860] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.501882] ? __kthread_parkme+0x82/0x180 [ 10.501902] ? preempt_count_sub+0x50/0x80 [ 10.501926] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.501948] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.501971] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.501993] kthread+0x337/0x6f0 [ 10.502013] ? trace_preempt_on+0x20/0xc0 [ 10.502036] ? __pfx_kthread+0x10/0x10 [ 10.502057] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.502076] ? calculate_sigpending+0x7b/0xa0 [ 10.502100] ? __pfx_kthread+0x10/0x10 [ 10.502121] ret_from_fork+0x116/0x1d0 [ 10.502139] ? __pfx_kthread+0x10/0x10 [ 10.502159] ret_from_fork_asm+0x1a/0x30 [ 10.502190] </TASK> [ 10.502202] [ 10.513231] Allocated by task 159: [ 10.513469] kasan_save_stack+0x45/0x70 [ 10.513828] kasan_save_track+0x18/0x40 [ 10.514018] kasan_save_alloc_info+0x3b/0x50 [ 10.514380] __kasan_kmalloc+0xb7/0xc0 [ 10.514823] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.515040] kmalloc_track_caller_oob_right+0x99/0x520 [ 10.515464] kunit_try_run_case+0x1a5/0x480 [ 10.515893] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.516237] kthread+0x337/0x6f0 [ 10.516398] ret_from_fork+0x116/0x1d0 [ 10.516865] ret_from_fork_asm+0x1a/0x30 [ 10.517092] [ 10.517174] The buggy address belongs to the object at ffff8881029ce100 [ 10.517174] which belongs to the cache kmalloc-128 of size 128 [ 10.518045] The buggy address is located 0 bytes to the right of [ 10.518045] allocated 120-byte region [ffff8881029ce100, ffff8881029ce178) [ 10.518737] [ 10.518836] The buggy address belongs to the physical page: [ 10.519080] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029ce [ 10.519587] flags: 0x200000000000000(node=0|zone=2) [ 10.519940] page_type: f5(slab) [ 10.520105] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 10.520553] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 10.521041] page dumped because: kasan: bad access detected [ 10.521411] [ 10.521488] Memory state around the buggy address: [ 10.521944] ffff8881029ce000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 10.522335] ffff8881029ce080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.522861] >ffff8881029ce100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 10.523240] ^ [ 10.523722] ffff8881029ce180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.524086] ffff8881029ce200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.524577] ==================================================================