Date
Nov. 28, 2024, 2:36 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.412841] ================================================================== [ 29.414296] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 29.415130] Read of size 1 at addr fff00000c6453000 by task kunit_try_catch/128 [ 29.415956] [ 29.416369] CPU: 0 UID: 0 PID: 128 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241128 #1 [ 29.417912] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.418435] Hardware name: linux,dummy-virt (DT) [ 29.419178] Call trace: [ 29.419600] show_stack+0x20/0x38 (C) [ 29.420161] dump_stack_lvl+0x8c/0xd0 [ 29.420812] print_report+0x118/0x5e0 [ 29.421474] kasan_report+0xc8/0x118 [ 29.422407] __asan_report_load1_noabort+0x20/0x30 [ 29.423052] kmalloc_node_oob_right+0x2f4/0x330 [ 29.423704] kunit_try_run_case+0x14c/0x3d0 [ 29.424384] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.425083] kthread+0x24c/0x2d0 [ 29.425973] ret_from_fork+0x10/0x20 [ 29.426545] [ 29.426919] Allocated by task 128: [ 29.427472] kasan_save_stack+0x3c/0x68 [ 29.427973] kasan_save_track+0x20/0x40 [ 29.428612] kasan_save_alloc_info+0x40/0x58 [ 29.429696] __kasan_kmalloc+0xd4/0xd8 [ 29.430189] __kmalloc_cache_node_noprof+0x168/0x3d0 [ 29.430718] kmalloc_node_oob_right+0xbc/0x330 [ 29.431207] kunit_try_run_case+0x14c/0x3d0 [ 29.431670] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.432254] kthread+0x24c/0x2d0 [ 29.433647] ret_from_fork+0x10/0x20 [ 29.434156] [ 29.434461] The buggy address belongs to the object at fff00000c6452000 [ 29.434461] which belongs to the cache kmalloc-4k of size 4096 [ 29.435742] The buggy address is located 0 bytes to the right of [ 29.435742] allocated 4096-byte region [fff00000c6452000, fff00000c6453000) [ 29.437081] [ 29.437814] The buggy address belongs to the physical page: [ 29.438450] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106450 [ 29.439495] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.440414] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.441169] page_type: f5(slab) [ 29.442037] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 29.442940] raw: 0000000000000000 0000000080040004 00000001f5000000 0000000000000000 [ 29.443953] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 29.444756] head: 0000000000000000 0000000080040004 00000001f5000000 0000000000000000 [ 29.446043] head: 0bfffe0000000003 ffffc1ffc3191401 ffffffffffffffff 0000000000000000 [ 29.447057] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 29.448050] page dumped because: kasan: bad access detected [ 29.448843] [ 29.449182] Memory state around the buggy address: [ 29.450198] fff00000c6452f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.450890] fff00000c6452f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.451578] >fff00000c6453000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.452686] ^ [ 29.453097] fff00000c6453080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.454363] fff00000c6453100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.455305] ==================================================================
[ 20.136889] ================================================================== [ 20.137836] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x36b/0x3d0 [ 20.138699] Read of size 1 at addr ffff888102c2b000 by task kunit_try_catch/148 [ 20.139199] [ 20.139725] CPU: 0 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241128 #1 [ 20.141315] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.141728] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.142768] Call Trace: [ 20.143253] <TASK> [ 20.143494] dump_stack_lvl+0x73/0xb0 [ 20.144120] print_report+0xd1/0x640 [ 20.144699] ? __virt_addr_valid+0x1db/0x2d0 [ 20.145218] ? kasan_complete_mode_report_info+0x2a/0x200 [ 20.145751] kasan_report+0x102/0x140 [ 20.146200] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 20.146599] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 20.146932] __asan_report_load1_noabort+0x18/0x20 [ 20.147617] kmalloc_node_oob_right+0x36b/0x3d0 [ 20.148243] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 20.148721] ? __schedule+0xc3e/0x2790 [ 20.149286] ? __pfx_read_tsc+0x10/0x10 [ 20.149734] ? ktime_get_ts64+0x84/0x230 [ 20.150372] kunit_try_run_case+0x1b3/0x490 [ 20.150898] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.151509] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 20.151911] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.152972] ? __kthread_parkme+0x82/0x160 [ 20.153799] ? preempt_count_sub+0x50/0x80 [ 20.154519] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.155014] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.155673] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.156356] kthread+0x257/0x310 [ 20.156692] ? __pfx_kthread+0x10/0x10 [ 20.157366] ret_from_fork+0x41/0x80 [ 20.157689] ? __pfx_kthread+0x10/0x10 [ 20.158119] ret_from_fork_asm+0x1a/0x30 [ 20.159082] </TASK> [ 20.159754] [ 20.160037] Allocated by task 148: [ 20.160674] kasan_save_stack+0x3d/0x60 [ 20.160996] kasan_save_track+0x18/0x40 [ 20.161279] kasan_save_alloc_info+0x3b/0x50 [ 20.161647] __kasan_kmalloc+0xb7/0xc0 [ 20.162049] __kmalloc_cache_node_noprof+0x183/0x410 [ 20.162679] kmalloc_node_oob_right+0xac/0x3d0 [ 20.163118] kunit_try_run_case+0x1b3/0x490 [ 20.163774] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.164467] kthread+0x257/0x310 [ 20.164864] ret_from_fork+0x41/0x80 [ 20.165415] ret_from_fork_asm+0x1a/0x30 [ 20.165869] [ 20.166078] The buggy address belongs to the object at ffff888102c2a000 [ 20.166078] which belongs to the cache kmalloc-4k of size 4096 [ 20.167419] The buggy address is located 0 bytes to the right of [ 20.167419] allocated 4096-byte region [ffff888102c2a000, ffff888102c2b000) [ 20.168512] [ 20.168670] The buggy address belongs to the physical page: [ 20.169449] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c28 [ 20.170734] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 20.171608] flags: 0x200000000000040(head|node=0|zone=2) [ 20.172420] page_type: f5(slab) [ 20.172808] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 20.173567] raw: 0000000000000000 0000000080040004 00000001f5000000 0000000000000000 [ 20.174361] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 20.174975] head: 0000000000000000 0000000080040004 00000001f5000000 0000000000000000 [ 20.175622] head: 0200000000000003 ffffea00040b0a01 ffffffffffffffff 0000000000000000 [ 20.176307] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 20.177032] page dumped because: kasan: bad access detected [ 20.177749] [ 20.177935] Memory state around the buggy address: [ 20.178615] ffff888102c2af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.179468] ffff888102c2af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.180008] >ffff888102c2b000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.180809] ^ [ 20.181061] ffff888102c2b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.181929] ffff888102c2b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.182691] ==================================================================