Date
July 4, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.610814] ================================================================== [ 29.610961] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 29.611014] Write of size 4 at addr fff00000c5a97c75 by task kunit_try_catch/207 [ 29.611062] [ 29.611092] CPU: 0 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT [ 29.611250] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.611279] Hardware name: linux,dummy-virt (DT) [ 29.611336] Call trace: [ 29.611478] show_stack+0x20/0x38 (C) [ 29.611526] dump_stack_lvl+0x8c/0xd0 [ 29.611569] print_report+0x118/0x608 [ 29.611641] kasan_report+0xdc/0x128 [ 29.611686] kasan_check_range+0x100/0x1a8 [ 29.611729] __asan_memset+0x34/0x78 [ 29.611777] kmalloc_oob_memset_4+0x150/0x300 [ 29.611828] kunit_try_run_case+0x170/0x3f0 [ 29.611876] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.611939] kthread+0x328/0x630 [ 29.611980] ret_from_fork+0x10/0x20 [ 29.612215] [ 29.612243] Allocated by task 207: [ 29.612284] kasan_save_stack+0x3c/0x68 [ 29.612326] kasan_save_track+0x20/0x40 [ 29.612562] kasan_save_alloc_info+0x40/0x58 [ 29.612612] __kasan_kmalloc+0xd4/0xd8 [ 29.612649] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.612714] kmalloc_oob_memset_4+0xb0/0x300 [ 29.612808] kunit_try_run_case+0x170/0x3f0 [ 29.612847] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.613107] kthread+0x328/0x630 [ 29.613145] ret_from_fork+0x10/0x20 [ 29.613180] [ 29.613200] The buggy address belongs to the object at fff00000c5a97c00 [ 29.613200] which belongs to the cache kmalloc-128 of size 128 [ 29.613256] The buggy address is located 117 bytes inside of [ 29.613256] allocated 120-byte region [fff00000c5a97c00, fff00000c5a97c78) [ 29.613315] [ 29.613335] The buggy address belongs to the physical page: [ 29.613365] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a97 [ 29.613413] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.613458] page_type: f5(slab) [ 29.613494] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 29.613541] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.613581] page dumped because: kasan: bad access detected [ 29.613611] [ 29.613629] Memory state around the buggy address: [ 29.613658] fff00000c5a97b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.613699] fff00000c5a97b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.614343] >fff00000c5a97c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.614384] ^ [ 29.614423] fff00000c5a97c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.614463] fff00000c5a97d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.614499] ==================================================================
[ 25.003353] ================================================================== [ 25.003836] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 25.004217] Write of size 4 at addr ffff888103d62e75 by task kunit_try_catch/223 [ 25.004975] [ 25.005082] CPU: 1 UID: 0 PID: 223 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) [ 25.005149] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.005174] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.005198] Call Trace: [ 25.005212] <TASK> [ 25.005232] dump_stack_lvl+0x73/0xb0 [ 25.005262] print_report+0xd1/0x650 [ 25.005286] ? __virt_addr_valid+0x1db/0x2d0 [ 25.005312] ? kmalloc_oob_memset_4+0x166/0x330 [ 25.005334] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.005360] ? kmalloc_oob_memset_4+0x166/0x330 [ 25.005383] kasan_report+0x141/0x180 [ 25.005421] ? kmalloc_oob_memset_4+0x166/0x330 [ 25.005448] kasan_check_range+0x10c/0x1c0 [ 25.005474] __asan_memset+0x27/0x50 [ 25.005498] kmalloc_oob_memset_4+0x166/0x330 [ 25.005521] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 25.005546] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 25.005573] kunit_try_run_case+0x1a5/0x480 [ 25.005600] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.005624] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.005650] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.005675] ? __kthread_parkme+0x82/0x180 [ 25.005697] ? preempt_count_sub+0x50/0x80 [ 25.005721] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.005747] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.005772] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.005797] kthread+0x337/0x6f0 [ 25.005817] ? trace_preempt_on+0x20/0xc0 [ 25.005843] ? __pfx_kthread+0x10/0x10 [ 25.005864] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.005901] ? calculate_sigpending+0x7b/0xa0 [ 25.005926] ? __pfx_kthread+0x10/0x10 [ 25.005948] ret_from_fork+0x116/0x1d0 [ 25.005969] ? __pfx_kthread+0x10/0x10 [ 25.005990] ret_from_fork_asm+0x1a/0x30 [ 25.006023] </TASK> [ 25.006036] [ 25.013523] Allocated by task 223: [ 25.013679] kasan_save_stack+0x45/0x70 [ 25.013934] kasan_save_track+0x18/0x40 [ 25.014143] kasan_save_alloc_info+0x3b/0x50 [ 25.014366] __kasan_kmalloc+0xb7/0xc0 [ 25.014628] __kmalloc_cache_noprof+0x189/0x420 [ 25.014875] kmalloc_oob_memset_4+0xac/0x330 [ 25.015184] kunit_try_run_case+0x1a5/0x480 [ 25.015463] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.015653] kthread+0x337/0x6f0 [ 25.015827] ret_from_fork+0x116/0x1d0 [ 25.016027] ret_from_fork_asm+0x1a/0x30 [ 25.016575] [ 25.016666] The buggy address belongs to the object at ffff888103d62e00 [ 25.016666] which belongs to the cache kmalloc-128 of size 128 [ 25.017158] The buggy address is located 117 bytes inside of [ 25.017158] allocated 120-byte region [ffff888103d62e00, ffff888103d62e78) [ 25.017756] [ 25.017834] The buggy address belongs to the physical page: [ 25.018100] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103d62 [ 25.018516] flags: 0x200000000000000(node=0|zone=2) [ 25.018692] page_type: f5(slab) [ 25.018818] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.019180] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.019571] page dumped because: kasan: bad access detected [ 25.019808] [ 25.019878] Memory state around the buggy address: [ 25.020118] ffff888103d62d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.020471] ffff888103d62d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.020703] >ffff888103d62e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.020925] ^ [ 25.021515] ffff888103d62e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.021863] ffff888103d62f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.022337] ==================================================================