Date
May 12, 2025, 6:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.658079] ================================================================== [ 18.658688] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 18.659516] Write of size 128 at addr fff00000c5a05100 by task kunit_try_catch/159 [ 18.660361] [ 18.661083] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 18.661629] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.661667] Hardware name: linux,dummy-virt (DT) [ 18.661704] Call trace: [ 18.661733] show_stack+0x20/0x38 (C) [ 18.661824] dump_stack_lvl+0x8c/0xd0 [ 18.661878] print_report+0x118/0x608 [ 18.661929] kasan_report+0xdc/0x128 [ 18.661978] kasan_check_range+0x100/0x1a8 [ 18.662029] __asan_memset+0x34/0x78 [ 18.662086] kmalloc_oob_in_memset+0x144/0x2d0 [ 18.662139] kunit_try_run_case+0x170/0x3f0 [ 18.662191] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.662246] kthread+0x318/0x620 [ 18.662294] ret_from_fork+0x10/0x20 [ 18.662347] [ 18.667945] Allocated by task 159: [ 18.668239] kasan_save_stack+0x3c/0x68 [ 18.668605] kasan_save_track+0x20/0x40 [ 18.670069] kasan_save_alloc_info+0x40/0x58 [ 18.670533] __kasan_kmalloc+0xd4/0xd8 [ 18.671326] __kmalloc_cache_noprof+0x15c/0x3c0 [ 18.671789] kmalloc_oob_in_memset+0xb0/0x2d0 [ 18.672320] kunit_try_run_case+0x170/0x3f0 [ 18.672790] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.673408] kthread+0x318/0x620 [ 18.673761] ret_from_fork+0x10/0x20 [ 18.674236] [ 18.674504] The buggy address belongs to the object at fff00000c5a05100 [ 18.674504] which belongs to the cache kmalloc-128 of size 128 [ 18.676130] The buggy address is located 0 bytes inside of [ 18.676130] allocated 120-byte region [fff00000c5a05100, fff00000c5a05178) [ 18.677192] [ 18.677441] The buggy address belongs to the physical page: [ 18.678003] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a05 [ 18.678706] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.679500] page_type: f5(slab) [ 18.679786] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.680686] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.681315] page dumped because: kasan: bad access detected [ 18.681876] [ 18.682128] Memory state around the buggy address: [ 18.683439] fff00000c5a05000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.684088] fff00000c5a05080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.684720] >fff00000c5a05100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.685351] ^ [ 18.685961] fff00000c5a05180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.686573] fff00000c5a05200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.687170] ==================================================================
[ 12.448109] ================================================================== [ 12.449220] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x160/0x320 [ 12.449488] Write of size 128 at addr ffff888102ac8e00 by task kunit_try_catch/178 [ 12.449719] [ 12.449817] CPU: 0 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 12.449875] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.449887] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.449909] Call Trace: [ 12.449922] <TASK> [ 12.449942] dump_stack_lvl+0x73/0xb0 [ 12.449969] print_report+0xd1/0x650 [ 12.449991] ? __virt_addr_valid+0x1db/0x2d0 [ 12.450014] ? kmalloc_oob_in_memset+0x160/0x320 [ 12.450034] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.450059] ? kmalloc_oob_in_memset+0x160/0x320 [ 12.450079] kasan_report+0x140/0x180 [ 12.450100] ? kmalloc_oob_in_memset+0x160/0x320 [ 12.450124] kasan_check_range+0x10c/0x1c0 [ 12.450146] __asan_memset+0x27/0x50 [ 12.450168] kmalloc_oob_in_memset+0x160/0x320 [ 12.450189] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 12.450210] ? __schedule+0xce8/0x2840 [ 12.450235] ? __pfx_read_tsc+0x10/0x10 [ 12.450256] ? ktime_get_ts64+0x86/0x230 [ 12.450282] kunit_try_run_case+0x1a6/0x480 [ 12.450306] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.450326] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 12.450346] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.450370] ? __kthread_parkme+0x82/0x160 [ 12.450393] ? preempt_count_sub+0x50/0x80 [ 12.450418] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.450439] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.450464] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.450489] kthread+0x324/0x6e0 [ 12.450510] ? trace_preempt_on+0x20/0xc0 [ 12.450533] ? __pfx_kthread+0x10/0x10 [ 12.450554] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.450577] ? calculate_sigpending+0x7b/0xa0 [ 12.450598] ? __pfx_kthread+0x10/0x10 [ 12.450620] ret_from_fork+0x41/0x80 [ 12.450638] ? __pfx_kthread+0x10/0x10 [ 12.450660] ret_from_fork_asm+0x1a/0x30 [ 12.450691] </TASK> [ 12.450702] [ 12.466706] Allocated by task 178: [ 12.466945] kasan_save_stack+0x45/0x70 [ 12.467210] kasan_save_track+0x18/0x40 [ 12.467682] kasan_save_alloc_info+0x3b/0x50 [ 12.468151] __kasan_kmalloc+0xb7/0xc0 [ 12.468543] __kmalloc_cache_noprof+0x18a/0x420 [ 12.468809] kmalloc_oob_in_memset+0xad/0x320 [ 12.468970] kunit_try_run_case+0x1a6/0x480 [ 12.469506] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.470045] kthread+0x324/0x6e0 [ 12.470515] ret_from_fork+0x41/0x80 [ 12.470880] ret_from_fork_asm+0x1a/0x30 [ 12.471036] [ 12.471498] The buggy address belongs to the object at ffff888102ac8e00 [ 12.471498] which belongs to the cache kmalloc-128 of size 128 [ 12.472466] The buggy address is located 0 bytes inside of [ 12.472466] allocated 120-byte region [ffff888102ac8e00, ffff888102ac8e78) [ 12.472830] [ 12.472920] The buggy address belongs to the physical page: [ 12.473252] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ac8 [ 12.474060] flags: 0x200000000000000(node=0|zone=2) [ 12.474616] page_type: f5(slab) [ 12.474941] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.475670] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.476749] page dumped because: kasan: bad access detected [ 12.477361] [ 12.477445] Memory state around the buggy address: [ 12.477831] ffff888102ac8d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.478454] ffff888102ac8d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.478797] >ffff888102ac8e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.479070] ^ [ 12.479755] ffff888102ac8e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.480503] ffff888102ac8f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.481167] ==================================================================