Date
Dec. 5, 2024, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 28.893670] ================================================================== [ 28.895133] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 28.896184] Read of size 1 at addr fff00000c64a9000 by task kunit_try_catch/129 [ 28.897369] [ 28.897746] CPU: 0 UID: 0 PID: 129 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241205 #1 [ 28.898937] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.899736] Hardware name: linux,dummy-virt (DT) [ 28.900420] Call trace: [ 28.900769] show_stack+0x20/0x38 (C) [ 28.901375] dump_stack_lvl+0x8c/0xd0 [ 28.901908] print_report+0x118/0x5e0 [ 28.902568] kasan_report+0xc8/0x118 [ 28.903795] __asan_report_load1_noabort+0x20/0x30 [ 28.904375] kmalloc_node_oob_right+0x2f4/0x330 [ 28.905043] kunit_try_run_case+0x14c/0x3d0 [ 28.905701] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.906321] kthread+0x24c/0x2d0 [ 28.907217] ret_from_fork+0x10/0x20 [ 28.907922] [ 28.908338] Allocated by task 129: [ 28.908863] kasan_save_stack+0x3c/0x68 [ 28.909543] kasan_save_track+0x20/0x40 [ 28.910347] kasan_save_alloc_info+0x40/0x58 [ 28.910952] __kasan_kmalloc+0xd4/0xd8 [ 28.911422] __kmalloc_cache_node_noprof+0x168/0x3d0 [ 28.912322] kmalloc_node_oob_right+0xbc/0x330 [ 28.912953] kunit_try_run_case+0x14c/0x3d0 [ 28.913646] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.914730] kthread+0x24c/0x2d0 [ 28.915650] ret_from_fork+0x10/0x20 [ 28.916356] [ 28.916691] The buggy address belongs to the object at fff00000c64a8000 [ 28.916691] which belongs to the cache kmalloc-4k of size 4096 [ 28.918123] The buggy address is located 0 bytes to the right of [ 28.918123] allocated 4096-byte region [fff00000c64a8000, fff00000c64a9000) [ 28.919527] [ 28.920194] The buggy address belongs to the physical page: [ 28.920826] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064a8 [ 28.922260] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 28.923183] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 28.924397] page_type: f5(slab) [ 28.924846] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 28.925812] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 28.926702] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 28.927983] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 28.928906] head: 0bfffe0000000003 ffffc1ffc3192a01 ffffffffffffffff 0000000000000000 [ 28.929783] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 28.930623] page dumped because: kasan: bad access detected [ 28.931695] [ 28.931975] Memory state around the buggy address: [ 28.932590] fff00000c64a8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.933447] fff00000c64a8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.934420] >fff00000c64a9000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.935478] ^ [ 28.936207] fff00000c64a9080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.936929] fff00000c64a9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.937863] ==================================================================
[ 26.438732] ================================================================== [ 26.439945] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x36b/0x3d0 [ 26.440826] Read of size 1 at addr ffff888102867000 by task kunit_try_catch/147 [ 26.442249] [ 26.442469] CPU: 1 UID: 0 PID: 147 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241205 #1 [ 26.443636] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.444500] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.445279] Call Trace: [ 26.445655] <TASK> [ 26.445881] dump_stack_lvl+0x73/0xb0 [ 26.446360] print_report+0xd1/0x640 [ 26.446761] ? __virt_addr_valid+0x1db/0x2d0 [ 26.447225] ? kasan_complete_mode_report_info+0x2a/0x200 [ 26.448131] kasan_report+0x102/0x140 [ 26.448634] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 26.449565] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 26.450093] __asan_report_load1_noabort+0x18/0x20 [ 26.450532] kmalloc_node_oob_right+0x36b/0x3d0 [ 26.451091] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 26.451612] ? __schedule+0xc70/0x27e0 [ 26.452376] ? __pfx_read_tsc+0x10/0x10 [ 26.452739] ? ktime_get_ts64+0x86/0x230 [ 26.453114] kunit_try_run_case+0x1b3/0x490 [ 26.453812] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.454443] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 26.454960] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.455591] ? __kthread_parkme+0x82/0x160 [ 26.456336] ? preempt_count_sub+0x50/0x80 [ 26.456796] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.457900] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.458696] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.459522] kthread+0x257/0x310 [ 26.459976] ? __pfx_kthread+0x10/0x10 [ 26.460558] ret_from_fork+0x41/0x80 [ 26.461370] ? __pfx_kthread+0x10/0x10 [ 26.461867] ret_from_fork_asm+0x1a/0x30 [ 26.462810] </TASK> [ 26.463271] [ 26.463426] Allocated by task 147: [ 26.464518] kasan_save_stack+0x3d/0x60 [ 26.464895] kasan_save_track+0x18/0x40 [ 26.465492] kasan_save_alloc_info+0x3b/0x50 [ 26.466425] __kasan_kmalloc+0xb7/0xc0 [ 26.467163] __kmalloc_cache_node_noprof+0x183/0x410 [ 26.467646] kmalloc_node_oob_right+0xac/0x3d0 [ 26.468670] kunit_try_run_case+0x1b3/0x490 [ 26.469372] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.470241] kthread+0x257/0x310 [ 26.470544] ret_from_fork+0x41/0x80 [ 26.471337] ret_from_fork_asm+0x1a/0x30 [ 26.472154] [ 26.472393] The buggy address belongs to the object at ffff888102866000 [ 26.472393] which belongs to the cache kmalloc-4k of size 4096 [ 26.474026] The buggy address is located 0 bytes to the right of [ 26.474026] allocated 4096-byte region [ffff888102866000, ffff888102867000) [ 26.475781] [ 26.476213] The buggy address belongs to the physical page: [ 26.477106] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102860 [ 26.478631] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 26.479557] flags: 0x200000000000040(head|node=0|zone=2) [ 26.480280] page_type: f5(slab) [ 26.480921] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 26.482396] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 26.483390] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 26.484237] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 26.485031] head: 0200000000000003 ffffea00040a1801 ffffffffffffffff 0000000000000000 [ 26.486189] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 26.486833] page dumped because: kasan: bad access detected [ 26.487401] [ 26.487656] Memory state around the buggy address: [ 26.488175] ffff888102866f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.488792] ffff888102866f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.489623] >ffff888102867000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.490347] ^ [ 26.490817] ffff888102867080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.492018] ffff888102867100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.492689] ==================================================================