Date
Dec. 4, 2024, 3:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.885273] ================================================================== [ 30.887081] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 30.888298] Write of size 1 at addr fff00000c5e7200a by task kunit_try_catch/134 [ 30.889487] [ 30.890091] CPU: 0 UID: 0 PID: 134 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241204 #1 [ 30.892300] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.893178] Hardware name: linux,dummy-virt (DT) [ 30.893960] Call trace: [ 30.894757] show_stack+0x20/0x38 (C) [ 30.895382] dump_stack_lvl+0x8c/0xd0 [ 30.895969] print_report+0x118/0x5e0 [ 30.896697] kasan_report+0xc8/0x118 [ 30.897400] __asan_report_store1_noabort+0x20/0x30 [ 30.898257] kmalloc_large_oob_right+0x278/0x2b8 [ 30.899140] kunit_try_run_case+0x14c/0x3d0 [ 30.899814] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.900487] kthread+0x24c/0x2d0 [ 30.901128] ret_from_fork+0x10/0x20 [ 30.901744] [ 30.902450] The buggy address belongs to the physical page: [ 30.903291] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105e70 [ 30.904278] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.905320] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 30.906664] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.908084] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 30.909060] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.910147] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 30.911469] head: 0bfffe0000000002 ffffc1ffc3179c01 ffffffffffffffff 0000000000000000 [ 30.912395] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 30.913320] page dumped because: kasan: bad access detected [ 30.914103] [ 30.915164] Memory state around the buggy address: [ 30.915997] fff00000c5e71f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.917065] fff00000c5e71f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.917832] >fff00000c5e72000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 30.918702] ^ [ 30.919014] fff00000c5e72080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 30.919427] fff00000c5e72100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 30.919860] ==================================================================
[ 21.576890] ================================================================== [ 21.577858] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2eb/0x340 [ 21.579017] Write of size 1 at addr ffff888102b2e00a by task kunit_try_catch/154 [ 21.580311] [ 21.580910] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241204 #1 [ 21.582342] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.583103] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.583727] Call Trace: [ 21.584074] <TASK> [ 21.584380] dump_stack_lvl+0x73/0xb0 [ 21.584736] print_report+0xd1/0x640 [ 21.585542] ? __virt_addr_valid+0x1db/0x2d0 [ 21.586481] ? kasan_addr_to_slab+0x11/0xa0 [ 21.587408] kasan_report+0x102/0x140 [ 21.588419] ? kmalloc_large_oob_right+0x2eb/0x340 [ 21.589498] ? kmalloc_large_oob_right+0x2eb/0x340 [ 21.590809] __asan_report_store1_noabort+0x1b/0x30 [ 21.591598] kmalloc_large_oob_right+0x2eb/0x340 [ 21.592130] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 21.593255] ? __schedule+0xc3e/0x2790 [ 21.594078] ? __pfx_read_tsc+0x10/0x10 [ 21.594980] ? ktime_get_ts64+0x86/0x230 [ 21.596037] kunit_try_run_case+0x1b3/0x490 [ 21.597138] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.597910] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 21.598690] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.599809] ? __kthread_parkme+0x82/0x160 [ 21.600227] ? preempt_count_sub+0x50/0x80 [ 21.600831] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.602113] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.602959] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.603895] kthread+0x257/0x310 [ 21.604157] ? __pfx_kthread+0x10/0x10 [ 21.605118] ret_from_fork+0x41/0x80 [ 21.605934] ? __pfx_kthread+0x10/0x10 [ 21.607248] ret_from_fork_asm+0x1a/0x30 [ 21.608045] </TASK> [ 21.608617] [ 21.609064] The buggy address belongs to the physical page: [ 21.609819] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b2c [ 21.610356] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.611226] flags: 0x200000000000040(head|node=0|zone=2) [ 21.611923] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.613061] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 21.615065] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.615911] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 21.616626] head: 0200000000000002 ffffea00040acb01 ffffffffffffffff 0000000000000000 [ 21.617328] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 21.618493] page dumped because: kasan: bad access detected [ 21.618902] [ 21.619961] Memory state around the buggy address: [ 21.620845] ffff888102b2df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.621911] ffff888102b2df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.622700] >ffff888102b2e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 21.623581] ^ [ 21.624377] ffff888102b2e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 21.625037] ffff888102b2e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 21.627186] ==================================================================