Date
Dec. 3, 2024, 11:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.298633] ================================================================== [ 30.299895] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 30.300511] Write of size 16 at addr fff00000c6318340 by task kunit_try_catch/155 [ 30.302216] [ 30.302773] CPU: 0 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 30.304437] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.305431] Hardware name: linux,dummy-virt (DT) [ 30.306245] Call trace: [ 30.306723] show_stack+0x20/0x38 (C) [ 30.307687] dump_stack_lvl+0x8c/0xd0 [ 30.308198] print_report+0x118/0x5e0 [ 30.308779] kasan_report+0xc8/0x118 [ 30.309309] __asan_report_store16_noabort+0x20/0x30 [ 30.309980] kmalloc_oob_16+0x3a0/0x3f8 [ 30.310744] kunit_try_run_case+0x14c/0x3d0 [ 30.311626] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.312740] kthread+0x24c/0x2d0 [ 30.313388] ret_from_fork+0x10/0x20 [ 30.314041] [ 30.314513] Allocated by task 155: [ 30.315140] kasan_save_stack+0x3c/0x68 [ 30.315780] kasan_save_track+0x20/0x40 [ 30.316804] kasan_save_alloc_info+0x40/0x58 [ 30.317516] __kasan_kmalloc+0xd4/0xd8 [ 30.318117] __kmalloc_cache_noprof+0x15c/0x3c0 [ 30.318846] kmalloc_oob_16+0xb4/0x3f8 [ 30.319559] kunit_try_run_case+0x14c/0x3d0 [ 30.320175] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.321422] kthread+0x24c/0x2d0 [ 30.321887] ret_from_fork+0x10/0x20 [ 30.322371] [ 30.322696] The buggy address belongs to the object at fff00000c6318340 [ 30.322696] which belongs to the cache kmalloc-16 of size 16 [ 30.324276] The buggy address is located 0 bytes inside of [ 30.324276] allocated 13-byte region [fff00000c6318340, fff00000c631834d) [ 30.325997] [ 30.326444] The buggy address belongs to the physical page: [ 30.327543] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106318 [ 30.328611] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.329733] page_type: f5(slab) [ 30.330315] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 30.331650] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 30.332505] page dumped because: kasan: bad access detected [ 30.333418] [ 30.333883] Memory state around the buggy address: [ 30.334522] fff00000c6318200: 00 00 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.336058] fff00000c6318280: fa fb fc fc fa fb fc fc 00 02 fc fc 00 02 fc fc [ 30.336894] >fff00000c6318300: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 30.337931] ^ [ 30.338726] fff00000c6318380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.339882] fff00000c6318400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.340904] ==================================================================
[ 25.902218] ================================================================== [ 25.902808] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x454/0x4a0 [ 25.903450] Write of size 16 at addr ffff888101adff60 by task kunit_try_catch/175 [ 25.904518] [ 25.904984] CPU: 0 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 25.906407] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.907235] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.907978] Call Trace: [ 25.909039] <TASK> [ 25.909312] dump_stack_lvl+0x73/0xb0 [ 25.910122] print_report+0xd1/0x640 [ 25.911028] ? __virt_addr_valid+0x1db/0x2d0 [ 25.911431] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.912368] kasan_report+0x102/0x140 [ 25.913231] ? kmalloc_oob_16+0x454/0x4a0 [ 25.913603] ? kmalloc_oob_16+0x454/0x4a0 [ 25.913885] __asan_report_store16_noabort+0x1b/0x30 [ 25.914504] kmalloc_oob_16+0x454/0x4a0 [ 25.914772] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 25.916022] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 25.916409] kunit_try_run_case+0x1b3/0x490 [ 25.917100] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.918043] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.918424] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.919101] ? __kthread_parkme+0x82/0x160 [ 25.919346] ? preempt_count_sub+0x50/0x80 [ 25.920136] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.920736] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.921516] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.922223] kthread+0x257/0x310 [ 25.922920] ? __pfx_kthread+0x10/0x10 [ 25.923296] ret_from_fork+0x41/0x80 [ 25.923963] ? __pfx_kthread+0x10/0x10 [ 25.924314] ret_from_fork_asm+0x1a/0x30 [ 25.925471] </TASK> [ 25.925700] [ 25.925888] Allocated by task 175: [ 25.926384] kasan_save_stack+0x3d/0x60 [ 25.927023] kasan_save_track+0x18/0x40 [ 25.927290] kasan_save_alloc_info+0x3b/0x50 [ 25.927819] __kasan_kmalloc+0xb7/0xc0 [ 25.928963] __kmalloc_cache_noprof+0x184/0x410 [ 25.929315] kmalloc_oob_16+0xa9/0x4a0 [ 25.929915] kunit_try_run_case+0x1b3/0x490 [ 25.930617] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.931450] kthread+0x257/0x310 [ 25.931791] ret_from_fork+0x41/0x80 [ 25.932894] ret_from_fork_asm+0x1a/0x30 [ 25.933230] [ 25.933396] The buggy address belongs to the object at ffff888101adff60 [ 25.933396] which belongs to the cache kmalloc-16 of size 16 [ 25.934828] The buggy address is located 0 bytes inside of [ 25.934828] allocated 13-byte region [ffff888101adff60, ffff888101adff6d) [ 25.936416] [ 25.936590] The buggy address belongs to the physical page: [ 25.936865] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101adf [ 25.937910] flags: 0x200000000000000(node=0|zone=2) [ 25.938588] page_type: f5(slab) [ 25.939288] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 25.940208] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 25.940722] page dumped because: kasan: bad access detected [ 25.941122] [ 25.941299] Memory state around the buggy address: [ 25.941683] ffff888101adfe00: 00 02 fc fc 00 03 fc fc fa fb fc fc 00 02 fc fc [ 25.942359] ffff888101adfe80: 00 05 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc [ 25.943144] >ffff888101adff00: 00 02 fc fc fa fb fc fc 00 05 fc fc 00 05 fc fc [ 25.943772] ^ [ 25.944358] ffff888101adff80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.945501] ffff888101ae0000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.946161] ==================================================================