Date
Dec. 6, 2024, 3:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.096895] ================================================================== [ 30.097834] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 30.098849] Write of size 1 at addr fff00000c69fe00a by task kunit_try_catch/135 [ 30.100399] [ 30.100708] CPU: 1 UID: 0 PID: 135 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 30.101947] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.103190] Hardware name: linux,dummy-virt (DT) [ 30.103833] Call trace: [ 30.104258] show_stack+0x20/0x38 (C) [ 30.105041] dump_stack_lvl+0x8c/0xd0 [ 30.105696] print_report+0x118/0x5e0 [ 30.106729] kasan_report+0xc8/0x118 [ 30.107295] __asan_report_store1_noabort+0x20/0x30 [ 30.108065] kmalloc_large_oob_right+0x278/0x2b8 [ 30.108735] kunit_try_run_case+0x14c/0x3d0 [ 30.109404] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.110128] kthread+0x24c/0x2d0 [ 30.110998] ret_from_fork+0x10/0x20 [ 30.111601] [ 30.111939] The buggy address belongs to the physical page: [ 30.112627] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1069fc [ 30.113591] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.114693] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 30.115588] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.117326] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 30.119066] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.120039] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 30.121036] head: 0bfffe0000000002 ffffc1ffc31a7f01 ffffffffffffffff 0000000000000000 [ 30.122053] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 30.123348] page dumped because: kasan: bad access detected [ 30.124172] [ 30.124501] Memory state around the buggy address: [ 30.125383] fff00000c69fdf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.126423] fff00000c69fdf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.127674] >fff00000c69fe000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 30.128644] ^ [ 30.129210] fff00000c69fe080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 30.129967] fff00000c69fe100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 30.130593] ==================================================================
[ 22.245466] ================================================================== [ 22.247034] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2eb/0x340 [ 22.247665] Write of size 1 at addr ffff888102ab600a by task kunit_try_catch/154 [ 22.249337] [ 22.249817] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 22.251000] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.251409] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.252919] Call Trace: [ 22.253212] <TASK> [ 22.253440] dump_stack_lvl+0x73/0xb0 [ 22.253883] print_report+0xd1/0x640 [ 22.254793] ? __virt_addr_valid+0x1db/0x2d0 [ 22.255317] ? kasan_addr_to_slab+0x11/0xa0 [ 22.255978] kasan_report+0x102/0x140 [ 22.256407] ? kmalloc_large_oob_right+0x2eb/0x340 [ 22.257253] ? kmalloc_large_oob_right+0x2eb/0x340 [ 22.258397] __asan_report_store1_noabort+0x1b/0x30 [ 22.259084] kmalloc_large_oob_right+0x2eb/0x340 [ 22.259682] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 22.260174] ? __schedule+0xc70/0x27e0 [ 22.260490] ? __pfx_read_tsc+0x10/0x10 [ 22.261317] ? ktime_get_ts64+0x86/0x230 [ 22.261865] kunit_try_run_case+0x1b3/0x490 [ 22.262433] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.263163] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 22.264307] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.265173] ? __kthread_parkme+0x82/0x160 [ 22.265764] ? preempt_count_sub+0x50/0x80 [ 22.266348] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.266849] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.267367] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.268243] kthread+0x257/0x310 [ 22.268805] ? __pfx_kthread+0x10/0x10 [ 22.269306] ret_from_fork+0x41/0x80 [ 22.270413] ? __pfx_kthread+0x10/0x10 [ 22.270756] ret_from_fork_asm+0x1a/0x30 [ 22.271896] </TASK> [ 22.272116] [ 22.272390] The buggy address belongs to the physical page: [ 22.273003] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ab4 [ 22.275027] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 22.276183] flags: 0x200000000000040(head|node=0|zone=2) [ 22.277953] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 22.279068] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 22.280149] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 22.281345] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 22.282503] head: 0200000000000002 ffffea00040aad01 ffffffffffffffff 0000000000000000 [ 22.284211] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 22.285364] page dumped because: kasan: bad access detected [ 22.286756] [ 22.286980] Memory state around the buggy address: [ 22.287343] ffff888102ab5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.289134] ffff888102ab5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.289739] >ffff888102ab6000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 22.290769] ^ [ 22.292103] ffff888102ab6080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 22.293380] ffff888102ab6100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 22.294790] ==================================================================