Date
May 12, 2025, 11:48 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.221753] ================================================================== [ 16.221877] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 16.221984] Read of size 1 at addr fff00000c651b000 by task kunit_try_catch/140 [ 16.222090] [ 16.222154] CPU: 1 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 16.222313] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.222454] Hardware name: linux,dummy-virt (DT) [ 16.222682] Call trace: [ 16.222932] show_stack+0x20/0x38 (C) [ 16.223094] dump_stack_lvl+0x8c/0xd0 [ 16.223261] print_report+0x118/0x608 [ 16.223355] kasan_report+0xdc/0x128 [ 16.223729] __asan_report_load1_noabort+0x20/0x30 [ 16.223854] kmalloc_node_oob_right+0x2f4/0x330 [ 16.223953] kunit_try_run_case+0x170/0x3f0 [ 16.224069] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.224182] kthread+0x328/0x630 [ 16.224275] ret_from_fork+0x10/0x20 [ 16.224372] [ 16.224412] Allocated by task 140: [ 16.224469] kasan_save_stack+0x3c/0x68 [ 16.225576] kasan_save_track+0x20/0x40 [ 16.226154] kasan_save_alloc_info+0x40/0x58 [ 16.226266] __kasan_kmalloc+0xd4/0xd8 [ 16.226346] __kmalloc_cache_node_noprof+0x168/0x3d0 [ 16.226435] kmalloc_node_oob_right+0xbc/0x330 [ 16.226508] kunit_try_run_case+0x170/0x3f0 [ 16.226755] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.226862] kthread+0x328/0x630 [ 16.226930] ret_from_fork+0x10/0x20 [ 16.227120] [ 16.227181] The buggy address belongs to the object at fff00000c651a000 [ 16.227181] which belongs to the cache kmalloc-4k of size 4096 [ 16.227360] The buggy address is located 0 bytes to the right of [ 16.227360] allocated 4096-byte region [fff00000c651a000, fff00000c651b000) [ 16.227683] [ 16.227736] The buggy address belongs to the physical page: [ 16.227880] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106518 [ 16.228438] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.229153] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.229907] page_type: f5(slab) [ 16.229997] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.230365] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.230816] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.230956] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.231271] head: 0bfffe0000000003 ffffc1ffc3194601 00000000ffffffff 00000000ffffffff [ 16.231380] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.231678] page dumped because: kasan: bad access detected [ 16.231784] [ 16.231843] Memory state around the buggy address: [ 16.231935] fff00000c651af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.232037] fff00000c651af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.232137] >fff00000c651b000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.232222] ^ [ 16.232595] fff00000c651b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.232690] fff00000c651b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.233168] ==================================================================
[ 15.573994] ================================================================== [ 15.575609] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 15.576910] Read of size 1 at addr ffff888102cdb000 by task kunit_try_catch/157 [ 15.577921] [ 15.578398] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 15.578518] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.578545] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.578590] Call Trace: [ 15.578620] <TASK> [ 15.578939] dump_stack_lvl+0x73/0xb0 [ 15.579096] print_report+0xd1/0x650 [ 15.579138] ? __virt_addr_valid+0x1db/0x2d0 [ 15.579177] ? kmalloc_node_oob_right+0x369/0x3c0 [ 15.579213] ? kasan_complete_mode_report_info+0x2a/0x200 [ 15.579247] ? kmalloc_node_oob_right+0x369/0x3c0 [ 15.579300] kasan_report+0x141/0x180 [ 15.579336] ? kmalloc_node_oob_right+0x369/0x3c0 [ 15.579379] __asan_report_load1_noabort+0x18/0x20 [ 15.579412] kmalloc_node_oob_right+0x369/0x3c0 [ 15.579449] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 15.579487] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 15.579525] ? trace_hardirqs_on+0x37/0xe0 [ 15.579563] ? __pfx_read_tsc+0x10/0x10 [ 15.579596] ? ktime_get_ts64+0x86/0x230 [ 15.579638] kunit_try_run_case+0x1a5/0x480 [ 15.579711] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.579749] ? queued_spin_lock_slowpath+0x116/0xb40 [ 15.579789] ? __kthread_parkme+0x82/0x180 [ 15.579825] ? preempt_count_sub+0x50/0x80 [ 15.579873] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.579918] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.579955] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.579990] kthread+0x337/0x6f0 [ 15.580022] ? trace_preempt_on+0x20/0xc0 [ 15.580056] ? __pfx_kthread+0x10/0x10 [ 15.580089] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.580122] ? calculate_sigpending+0x7b/0xa0 [ 15.580159] ? __pfx_kthread+0x10/0x10 [ 15.580195] ret_from_fork+0x116/0x1d0 [ 15.580225] ? __pfx_kthread+0x10/0x10 [ 15.580268] ret_from_fork_asm+0x1a/0x30 [ 15.580324] </TASK> [ 15.580349] [ 15.598015] Allocated by task 157: [ 15.598941] kasan_save_stack+0x45/0x70 [ 15.599548] kasan_save_track+0x18/0x40 [ 15.600319] kasan_save_alloc_info+0x3b/0x50 [ 15.601038] __kasan_kmalloc+0xb7/0xc0 [ 15.602081] __kmalloc_cache_node_noprof+0x188/0x420 [ 15.602569] kmalloc_node_oob_right+0xab/0x3c0 [ 15.603193] kunit_try_run_case+0x1a5/0x480 [ 15.603979] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.604764] kthread+0x337/0x6f0 [ 15.605317] ret_from_fork+0x116/0x1d0 [ 15.605519] ret_from_fork_asm+0x1a/0x30 [ 15.606303] [ 15.606567] The buggy address belongs to the object at ffff888102cda000 [ 15.606567] which belongs to the cache kmalloc-4k of size 4096 [ 15.608235] The buggy address is located 0 bytes to the right of [ 15.608235] allocated 4096-byte region [ffff888102cda000, ffff888102cdb000) [ 15.609584] [ 15.609898] The buggy address belongs to the physical page: [ 15.610834] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102cd8 [ 15.612255] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.612537] flags: 0x200000000000040(head|node=0|zone=2) [ 15.613855] page_type: f5(slab) [ 15.614883] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 15.615930] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 15.616840] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 15.618692] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 15.619784] head: 0200000000000003 ffffea00040b3601 00000000ffffffff 00000000ffffffff [ 15.621087] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 15.621559] page dumped because: kasan: bad access detected [ 15.622416] [ 15.623050] Memory state around the buggy address: [ 15.623690] ffff888102cdaf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.624822] ffff888102cdaf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.625356] >ffff888102cdb000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.625575] ^ [ 15.626328] ffff888102cdb080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.627452] ffff888102cdb100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.628615] ==================================================================