Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.781730] ================================================================== [ 19.781871] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488 [ 19.782047] Write of size 1 at addr fff00000c6423578 by task kunit_try_catch/152 [ 19.782180] [ 19.782257] CPU: 0 UID: 0 PID: 152 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 19.782979] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.783044] Hardware name: linux,dummy-virt (DT) [ 19.783104] Call trace: [ 19.783171] show_stack+0x20/0x38 (C) [ 19.783285] dump_stack_lvl+0x8c/0xd0 [ 19.783381] print_report+0x118/0x608 [ 19.783878] kasan_report+0xdc/0x128 [ 19.784149] __asan_report_store1_noabort+0x20/0x30 [ 19.784514] kmalloc_track_caller_oob_right+0x418/0x488 [ 19.784664] kunit_try_run_case+0x170/0x3f0 [ 19.784781] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.784908] kthread+0x328/0x630 [ 19.785011] ret_from_fork+0x10/0x20 [ 19.785136] [ 19.785178] Allocated by task 152: [ 19.785241] kasan_save_stack+0x3c/0x68 [ 19.785334] kasan_save_track+0x20/0x40 [ 19.786110] kasan_save_alloc_info+0x40/0x58 [ 19.786220] __kasan_kmalloc+0xd4/0xd8 [ 19.786301] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 19.786387] kmalloc_track_caller_oob_right+0x184/0x488 [ 19.786457] kunit_try_run_case+0x170/0x3f0 [ 19.786538] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.786658] kthread+0x328/0x630 [ 19.786728] ret_from_fork+0x10/0x20 [ 19.786799] [ 19.786834] The buggy address belongs to the object at fff00000c6423500 [ 19.786834] which belongs to the cache kmalloc-128 of size 128 [ 19.786956] The buggy address is located 0 bytes to the right of [ 19.786956] allocated 120-byte region [fff00000c6423500, fff00000c6423578) [ 19.787412] [ 19.787472] The buggy address belongs to the physical page: [ 19.787646] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106423 [ 19.787955] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.788386] page_type: f5(slab) [ 19.788481] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.789407] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.789939] page dumped because: kasan: bad access detected [ 19.790102] [ 19.790166] Memory state around the buggy address: [ 19.790369] fff00000c6423400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.790459] fff00000c6423480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.790543] >fff00000c6423500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.790618] ^ [ 19.791220] fff00000c6423580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.791694] fff00000c6423600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.791946] ================================================================== [ 19.769151] ================================================================== [ 19.769326] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488 [ 19.769464] Write of size 1 at addr fff00000c6423478 by task kunit_try_catch/152 [ 19.769577] [ 19.769656] CPU: 0 UID: 0 PID: 152 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 19.769849] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.769911] Hardware name: linux,dummy-virt (DT) [ 19.769982] Call trace: [ 19.771070] show_stack+0x20/0x38 (C) [ 19.771714] dump_stack_lvl+0x8c/0xd0 [ 19.771876] print_report+0x118/0x608 [ 19.772012] kasan_report+0xdc/0x128 [ 19.772125] __asan_report_store1_noabort+0x20/0x30 [ 19.772536] kmalloc_track_caller_oob_right+0x40c/0x488 [ 19.772805] kunit_try_run_case+0x170/0x3f0 [ 19.773163] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.773449] kthread+0x328/0x630 [ 19.773750] ret_from_fork+0x10/0x20 [ 19.774011] [ 19.774138] Allocated by task 152: [ 19.774214] kasan_save_stack+0x3c/0x68 [ 19.774600] kasan_save_track+0x20/0x40 [ 19.774679] kasan_save_alloc_info+0x40/0x58 [ 19.774762] __kasan_kmalloc+0xd4/0xd8 [ 19.774891] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 19.775135] kmalloc_track_caller_oob_right+0xa8/0x488 [ 19.775326] kunit_try_run_case+0x170/0x3f0 [ 19.775737] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.775949] kthread+0x328/0x630 [ 19.776138] ret_from_fork+0x10/0x20 [ 19.776253] [ 19.776301] The buggy address belongs to the object at fff00000c6423400 [ 19.776301] which belongs to the cache kmalloc-128 of size 128 [ 19.776433] The buggy address is located 0 bytes to the right of [ 19.776433] allocated 120-byte region [fff00000c6423400, fff00000c6423478) [ 19.776599] [ 19.777053] The buggy address belongs to the physical page: [ 19.777136] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106423 [ 19.777389] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.777678] page_type: f5(slab) [ 19.777794] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.778110] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.778327] page dumped because: kasan: bad access detected [ 19.778459] [ 19.778520] Memory state around the buggy address: [ 19.778774] fff00000c6423300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.778879] fff00000c6423380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.779065] >fff00000c6423400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.779204] ^ [ 19.779325] fff00000c6423480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.779433] fff00000c6423500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.779515] ==================================================================
[ 10.586329] ================================================================== [ 10.586768] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4b1/0x520 [ 10.587110] Write of size 1 at addr ffff888101add678 by task kunit_try_catch/168 [ 10.587570] [ 10.587672] CPU: 0 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 10.587718] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.587729] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.587750] Call Trace: [ 10.587762] <TASK> [ 10.587778] dump_stack_lvl+0x73/0xb0 [ 10.587805] print_report+0xd1/0x650 [ 10.587826] ? __virt_addr_valid+0x1db/0x2d0 [ 10.587848] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 10.587870] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.587894] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 10.587917] kasan_report+0x141/0x180 [ 10.587937] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 10.588150] __asan_report_store1_noabort+0x1b/0x30 [ 10.588173] kmalloc_track_caller_oob_right+0x4b1/0x520 [ 10.588196] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 10.588231] ? __schedule+0x10cc/0x2b60 [ 10.588252] ? __pfx_read_tsc+0x10/0x10 [ 10.588272] ? ktime_get_ts64+0x86/0x230 [ 10.588296] kunit_try_run_case+0x1a5/0x480 [ 10.588318] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.588339] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.588360] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.588381] ? __kthread_parkme+0x82/0x180 [ 10.588400] ? preempt_count_sub+0x50/0x80 [ 10.588422] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.588444] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.588465] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.588486] kthread+0x337/0x6f0 [ 10.588504] ? trace_preempt_on+0x20/0xc0 [ 10.588526] ? __pfx_kthread+0x10/0x10 [ 10.588546] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.588565] ? calculate_sigpending+0x7b/0xa0 [ 10.588588] ? __pfx_kthread+0x10/0x10 [ 10.588607] ret_from_fork+0x116/0x1d0 [ 10.588625] ? __pfx_kthread+0x10/0x10 [ 10.588644] ret_from_fork_asm+0x1a/0x30 [ 10.588676] </TASK> [ 10.588686] [ 10.598650] Allocated by task 168: [ 10.598796] kasan_save_stack+0x45/0x70 [ 10.599147] kasan_save_track+0x18/0x40 [ 10.599432] kasan_save_alloc_info+0x3b/0x50 [ 10.599887] __kasan_kmalloc+0xb7/0xc0 [ 10.600128] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.600513] kmalloc_track_caller_oob_right+0x19a/0x520 [ 10.600717] kunit_try_run_case+0x1a5/0x480 [ 10.600920] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.601140] kthread+0x337/0x6f0 [ 10.601323] ret_from_fork+0x116/0x1d0 [ 10.601483] ret_from_fork_asm+0x1a/0x30 [ 10.601679] [ 10.601754] The buggy address belongs to the object at ffff888101add600 [ 10.601754] which belongs to the cache kmalloc-128 of size 128 [ 10.602867] The buggy address is located 0 bytes to the right of [ 10.602867] allocated 120-byte region [ffff888101add600, ffff888101add678) [ 10.603481] [ 10.603749] The buggy address belongs to the physical page: [ 10.603990] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101add [ 10.604582] flags: 0x200000000000000(node=0|zone=2) [ 10.604766] page_type: f5(slab) [ 10.605058] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 10.605418] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 10.605952] page dumped because: kasan: bad access detected [ 10.606177] [ 10.606281] Memory state around the buggy address: [ 10.606904] ffff888101add500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 10.607170] ffff888101add580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.607645] >ffff888101add600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 10.607956] ^ [ 10.608259] ffff888101add680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.608547] ffff888101add700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.608839] ================================================================== [ 10.562310] ================================================================== [ 10.562852] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.563186] Write of size 1 at addr ffff888101add578 by task kunit_try_catch/168 [ 10.563496] [ 10.563685] CPU: 0 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 10.563733] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.563745] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.563766] Call Trace: [ 10.563778] <TASK> [ 10.563794] dump_stack_lvl+0x73/0xb0 [ 10.563823] print_report+0xd1/0x650 [ 10.563843] ? __virt_addr_valid+0x1db/0x2d0 [ 10.563866] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.563888] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.563912] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.563935] kasan_report+0x141/0x180 [ 10.563954] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.563982] __asan_report_store1_noabort+0x1b/0x30 [ 10.564004] kmalloc_track_caller_oob_right+0x4c8/0x520 [ 10.564027] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 10.564051] ? __schedule+0x10cc/0x2b60 [ 10.564072] ? __pfx_read_tsc+0x10/0x10 [ 10.564093] ? ktime_get_ts64+0x86/0x230 [ 10.564117] kunit_try_run_case+0x1a5/0x480 [ 10.564141] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.564161] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.564183] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.564216] ? __kthread_parkme+0x82/0x180 [ 10.564237] ? preempt_count_sub+0x50/0x80 [ 10.564259] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.564280] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.564301] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.564322] kthread+0x337/0x6f0 [ 10.564340] ? trace_preempt_on+0x20/0xc0 [ 10.564363] ? __pfx_kthread+0x10/0x10 [ 10.564383] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.564402] ? calculate_sigpending+0x7b/0xa0 [ 10.564425] ? __pfx_kthread+0x10/0x10 [ 10.564445] ret_from_fork+0x116/0x1d0 [ 10.564462] ? __pfx_kthread+0x10/0x10 [ 10.564481] ret_from_fork_asm+0x1a/0x30 [ 10.564510] </TASK> [ 10.564520] [ 10.574236] Allocated by task 168: [ 10.574375] kasan_save_stack+0x45/0x70 [ 10.574557] kasan_save_track+0x18/0x40 [ 10.574739] kasan_save_alloc_info+0x3b/0x50 [ 10.574925] __kasan_kmalloc+0xb7/0xc0 [ 10.575096] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.575911] kmalloc_track_caller_oob_right+0x99/0x520 [ 10.576101] kunit_try_run_case+0x1a5/0x480 [ 10.576427] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.576951] kthread+0x337/0x6f0 [ 10.577094] ret_from_fork+0x116/0x1d0 [ 10.577322] ret_from_fork_asm+0x1a/0x30 [ 10.577749] [ 10.577961] The buggy address belongs to the object at ffff888101add500 [ 10.577961] which belongs to the cache kmalloc-128 of size 128 [ 10.578683] The buggy address is located 0 bytes to the right of [ 10.578683] allocated 120-byte region [ffff888101add500, ffff888101add578) [ 10.579586] [ 10.579769] The buggy address belongs to the physical page: [ 10.580016] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101add [ 10.580498] flags: 0x200000000000000(node=0|zone=2) [ 10.580830] page_type: f5(slab) [ 10.580966] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 10.581502] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 10.581935] page dumped because: kasan: bad access detected [ 10.582183] [ 10.582409] Memory state around the buggy address: [ 10.582659] ffff888101add400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 10.583068] ffff888101add480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.583725] >ffff888101add500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 10.584022] ^ [ 10.584565] ffff888101add580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.584938] ffff888101add600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.585253] ==================================================================