Date
Dec. 6, 2024, 3:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.999089] ================================================================== [ 31.000358] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 31.001161] Write of size 16 at addr fff00000c5b51820 by task kunit_try_catch/155 [ 31.002145] [ 31.002882] CPU: 0 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 31.004146] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.004908] Hardware name: linux,dummy-virt (DT) [ 31.005674] Call trace: [ 31.006111] show_stack+0x20/0x38 (C) [ 31.007482] dump_stack_lvl+0x8c/0xd0 [ 31.008175] print_report+0x118/0x5e0 [ 31.008748] kasan_report+0xc8/0x118 [ 31.009408] __asan_report_store16_noabort+0x20/0x30 [ 31.010130] kmalloc_oob_16+0x3a0/0x3f8 [ 31.011035] kunit_try_run_case+0x14c/0x3d0 [ 31.011743] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.012432] kthread+0x24c/0x2d0 [ 31.013020] ret_from_fork+0x10/0x20 [ 31.013704] [ 31.014112] Allocated by task 155: [ 31.014987] kasan_save_stack+0x3c/0x68 [ 31.015725] kasan_save_track+0x20/0x40 [ 31.016384] kasan_save_alloc_info+0x40/0x58 [ 31.017089] __kasan_kmalloc+0xd4/0xd8 [ 31.017737] __kmalloc_cache_noprof+0x15c/0x3c0 [ 31.018683] kmalloc_oob_16+0xb4/0x3f8 [ 31.019877] kunit_try_run_case+0x14c/0x3d0 [ 31.020556] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.021258] kthread+0x24c/0x2d0 [ 31.021850] ret_from_fork+0x10/0x20 [ 31.022471] [ 31.022804] The buggy address belongs to the object at fff00000c5b51820 [ 31.022804] which belongs to the cache kmalloc-16 of size 16 [ 31.024112] The buggy address is located 0 bytes inside of [ 31.024112] allocated 13-byte region [fff00000c5b51820, fff00000c5b5182d) [ 31.025491] [ 31.025947] The buggy address belongs to the physical page: [ 31.026682] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105b51 [ 31.027823] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.028573] page_type: f5(slab) [ 31.029173] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 31.030089] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 31.031056] page dumped because: kasan: bad access detected [ 31.032064] [ 31.032540] Memory state around the buggy address: [ 31.033157] fff00000c5b51700: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 31.034028] fff00000c5b51780: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 31.035299] >fff00000c5b51800: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 31.036133] ^ [ 31.036717] fff00000c5b51880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.037503] fff00000c5b51900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.038722] ==================================================================
[ 23.499472] ================================================================== [ 23.501207] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x454/0x4a0 [ 23.502586] Write of size 16 at addr ffff888101b3cc80 by task kunit_try_catch/174 [ 23.503978] [ 23.504223] CPU: 0 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 23.505763] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.506545] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.507719] Call Trace: [ 23.508068] <TASK> [ 23.508348] dump_stack_lvl+0x73/0xb0 [ 23.508785] print_report+0xd1/0x640 [ 23.509847] ? __virt_addr_valid+0x1db/0x2d0 [ 23.510730] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.511221] kasan_report+0x102/0x140 [ 23.512458] ? kmalloc_oob_16+0x454/0x4a0 [ 23.513174] ? kmalloc_oob_16+0x454/0x4a0 [ 23.514396] __asan_report_store16_noabort+0x1b/0x30 [ 23.515377] kmalloc_oob_16+0x454/0x4a0 [ 23.515694] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 23.516679] ? __pfx_read_tsc+0x10/0x10 [ 23.517562] ? ktime_get_ts64+0x86/0x230 [ 23.518703] kunit_try_run_case+0x1b3/0x490 [ 23.519542] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.520260] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 23.521131] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.522186] ? __kthread_parkme+0x82/0x160 [ 23.523552] ? preempt_count_sub+0x50/0x80 [ 23.524020] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.524533] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.525098] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.525628] kthread+0x257/0x310 [ 23.526797] ? __pfx_kthread+0x10/0x10 [ 23.527136] ret_from_fork+0x41/0x80 [ 23.528243] ? __pfx_kthread+0x10/0x10 [ 23.528640] ret_from_fork_asm+0x1a/0x30 [ 23.530189] </TASK> [ 23.530425] [ 23.530618] Allocated by task 174: [ 23.531520] kasan_save_stack+0x3d/0x60 [ 23.531953] kasan_save_track+0x18/0x40 [ 23.533140] kasan_save_alloc_info+0x3b/0x50 [ 23.533545] __kasan_kmalloc+0xb7/0xc0 [ 23.534151] __kmalloc_cache_noprof+0x184/0x410 [ 23.535234] kmalloc_oob_16+0xa9/0x4a0 [ 23.536233] kunit_try_run_case+0x1b3/0x490 [ 23.536615] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.538095] kthread+0x257/0x310 [ 23.538452] ret_from_fork+0x41/0x80 [ 23.538784] ret_from_fork_asm+0x1a/0x30 [ 23.539686] [ 23.540110] The buggy address belongs to the object at ffff888101b3cc80 [ 23.540110] which belongs to the cache kmalloc-16 of size 16 [ 23.541425] The buggy address is located 0 bytes inside of [ 23.541425] allocated 13-byte region [ffff888101b3cc80, ffff888101b3cc8d) [ 23.543657] [ 23.543869] The buggy address belongs to the physical page: [ 23.544238] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101b3c [ 23.545087] flags: 0x200000000000000(node=0|zone=2) [ 23.546563] page_type: f5(slab) [ 23.547384] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 23.548190] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 23.548894] page dumped because: kasan: bad access detected [ 23.549506] [ 23.550360] Memory state around the buggy address: [ 23.551220] ffff888101b3cb80: 00 02 fc fc 00 05 fc fc 00 02 fc fc 00 02 fc fc [ 23.551640] ffff888101b3cc00: 00 02 fc fc 00 02 fc fc 00 05 fc fc fa fb fc fc [ 23.553331] >ffff888101b3cc80: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 23.554909] ^ [ 23.555240] ffff888101b3cd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.556426] ffff888101b3cd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.557265] ==================================================================