Date
Nov. 28, 2024, 2:36 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.440351] ================================================================== [ 30.441531] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 30.442301] Write of size 16 at addr fff00000c4005e20 by task kunit_try_catch/154 [ 30.442673] [ 30.442844] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241128 #1 [ 30.443468] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.443879] Hardware name: linux,dummy-virt (DT) [ 30.444367] Call trace: [ 30.444691] show_stack+0x20/0x38 (C) [ 30.445173] dump_stack_lvl+0x8c/0xd0 [ 30.445793] print_report+0x118/0x5e0 [ 30.446428] kasan_report+0xc8/0x118 [ 30.447043] __asan_report_store16_noabort+0x20/0x30 [ 30.447798] kmalloc_oob_16+0x3a0/0x3f8 [ 30.448454] kunit_try_run_case+0x14c/0x3d0 [ 30.449143] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.449843] kthread+0x24c/0x2d0 [ 30.450337] ret_from_fork+0x10/0x20 [ 30.450868] [ 30.451208] Allocated by task 154: [ 30.451606] kasan_save_stack+0x3c/0x68 [ 30.452202] kasan_save_track+0x20/0x40 [ 30.452728] kasan_save_alloc_info+0x40/0x58 [ 30.453276] __kasan_kmalloc+0xd4/0xd8 [ 30.453751] __kmalloc_cache_noprof+0x15c/0x3c0 [ 30.454247] kmalloc_oob_16+0xb4/0x3f8 [ 30.454683] kunit_try_run_case+0x14c/0x3d0 [ 30.455164] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.455688] kthread+0x24c/0x2d0 [ 30.456103] ret_from_fork+0x10/0x20 [ 30.456557] [ 30.456841] The buggy address belongs to the object at fff00000c4005e20 [ 30.456841] which belongs to the cache kmalloc-16 of size 16 [ 30.457747] The buggy address is located 0 bytes inside of [ 30.457747] allocated 13-byte region [fff00000c4005e20, fff00000c4005e2d) [ 30.459144] [ 30.459479] The buggy address belongs to the physical page: [ 30.460213] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104005 [ 30.461044] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.461828] page_type: f5(slab) [ 30.462331] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 30.463228] raw: 0000000000000000 0000000080800080 00000001f5000000 0000000000000000 [ 30.464045] page dumped because: kasan: bad access detected [ 30.464694] [ 30.465050] Memory state around the buggy address: [ 30.465628] fff00000c4005d00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.466435] fff00000c4005d80: 00 05 fc fc 00 05 fc fc fa fb fc fc fa fb fc fc [ 30.467270] >fff00000c4005e00: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 30.468100] ^ [ 30.468670] fff00000c4005e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.469494] fff00000c4005f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.470293] ==================================================================
[ 21.352095] ================================================================== [ 21.353501] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x454/0x4a0 [ 21.354225] Write of size 16 at addr ffff888101094f40 by task kunit_try_catch/174 [ 21.354888] [ 21.355060] CPU: 1 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241128 #1 [ 21.355712] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.356271] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.357225] Call Trace: [ 21.357838] <TASK> [ 21.358034] dump_stack_lvl+0x73/0xb0 [ 21.358828] print_report+0xd1/0x640 [ 21.359500] ? __virt_addr_valid+0x1db/0x2d0 [ 21.359918] ? kasan_complete_mode_report_info+0x2a/0x200 [ 21.360630] kasan_report+0x102/0x140 [ 21.360939] ? kmalloc_oob_16+0x454/0x4a0 [ 21.361580] ? kmalloc_oob_16+0x454/0x4a0 [ 21.361922] __asan_report_store16_noabort+0x1b/0x30 [ 21.362702] kmalloc_oob_16+0x454/0x4a0 [ 21.363060] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 21.363605] ? __schedule+0xc3e/0x2790 [ 21.363998] ? __pfx_read_tsc+0x10/0x10 [ 21.364474] ? ktime_get_ts64+0x84/0x230 [ 21.364860] kunit_try_run_case+0x1b3/0x490 [ 21.365483] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.365947] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 21.366491] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.367013] ? __kthread_parkme+0x82/0x160 [ 21.367676] ? preempt_count_sub+0x50/0x80 [ 21.368322] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.368840] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.369650] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.370158] kthread+0x257/0x310 [ 21.370624] ? __pfx_kthread+0x10/0x10 [ 21.371003] ret_from_fork+0x41/0x80 [ 21.371570] ? __pfx_kthread+0x10/0x10 [ 21.372024] ret_from_fork_asm+0x1a/0x30 [ 21.372542] </TASK> [ 21.372845] [ 21.373024] Allocated by task 174: [ 21.373433] kasan_save_stack+0x3d/0x60 [ 21.373925] kasan_save_track+0x18/0x40 [ 21.374500] kasan_save_alloc_info+0x3b/0x50 [ 21.374894] __kasan_kmalloc+0xb7/0xc0 [ 21.375212] __kmalloc_cache_noprof+0x184/0x410 [ 21.375877] kmalloc_oob_16+0xa9/0x4a0 [ 21.376491] kunit_try_run_case+0x1b3/0x490 [ 21.376813] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.377549] kthread+0x257/0x310 [ 21.377839] ret_from_fork+0x41/0x80 [ 21.378361] ret_from_fork_asm+0x1a/0x30 [ 21.378644] [ 21.378862] The buggy address belongs to the object at ffff888101094f40 [ 21.378862] which belongs to the cache kmalloc-16 of size 16 [ 21.380306] The buggy address is located 0 bytes inside of [ 21.380306] allocated 13-byte region [ffff888101094f40, ffff888101094f4d) [ 21.381425] [ 21.381605] The buggy address belongs to the physical page: [ 21.382096] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101094 [ 21.382785] flags: 0x200000000000000(node=0|zone=2) [ 21.383471] page_type: f5(slab) [ 21.383838] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 21.384549] raw: 0000000000000000 0000000080800080 00000001f5000000 0000000000000000 [ 21.385509] page dumped because: kasan: bad access detected [ 21.386005] [ 21.386273] Memory state around the buggy address: [ 21.386780] ffff888101094e00: fa fb fc fc 00 02 fc fc 00 02 fc fc fa fb fc fc [ 21.387290] ffff888101094e80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 21.388041] >ffff888101094f00: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 21.388733] ^ [ 21.389523] ffff888101094f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.390451] ffff888101095000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.390937] ==================================================================