Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.672361] ================================================================== [ 21.672547] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 21.672695] Write of size 128 at addr fff00000c794b000 by task kunit_try_catch/172 [ 21.673483] [ 21.673606] CPU: 0 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 21.673848] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.673918] Hardware name: linux,dummy-virt (DT) [ 21.674037] Call trace: [ 21.674333] show_stack+0x20/0x38 (C) [ 21.674536] dump_stack_lvl+0x8c/0xd0 [ 21.674661] print_report+0x118/0x608 [ 21.674872] kasan_report+0xdc/0x128 [ 21.674987] kasan_check_range+0x100/0x1a8 [ 21.675370] __asan_memset+0x34/0x78 [ 21.675579] kmalloc_oob_in_memset+0x144/0x2d0 [ 21.675883] kunit_try_run_case+0x170/0x3f0 [ 21.676096] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.676346] kthread+0x328/0x630 [ 21.676552] ret_from_fork+0x10/0x20 [ 21.676674] [ 21.676721] Allocated by task 172: [ 21.677076] kasan_save_stack+0x3c/0x68 [ 21.677306] kasan_save_track+0x20/0x40 [ 21.677460] kasan_save_alloc_info+0x40/0x58 [ 21.677561] __kasan_kmalloc+0xd4/0xd8 [ 21.677837] __kmalloc_cache_noprof+0x16c/0x3c0 [ 21.677941] kmalloc_oob_in_memset+0xb0/0x2d0 [ 21.678119] kunit_try_run_case+0x170/0x3f0 [ 21.678206] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.678379] kthread+0x328/0x630 [ 21.678582] ret_from_fork+0x10/0x20 [ 21.678693] [ 21.678755] The buggy address belongs to the object at fff00000c794b000 [ 21.678755] which belongs to the cache kmalloc-128 of size 128 [ 21.678897] The buggy address is located 0 bytes inside of [ 21.678897] allocated 120-byte region [fff00000c794b000, fff00000c794b078) [ 21.679337] [ 21.679391] The buggy address belongs to the physical page: [ 21.679464] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10794b [ 21.679740] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.679878] page_type: f5(slab) [ 21.679982] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.680207] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.680395] page dumped because: kasan: bad access detected [ 21.680549] [ 21.680592] Memory state around the buggy address: [ 21.680722] fff00000c794af00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.681089] fff00000c794af80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.681253] >fff00000c794b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.681544] ^ [ 21.681645] fff00000c794b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.681852] fff00000c794b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.682166] ==================================================================
[ 19.212802] ================================================================== [ 19.213855] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 19.214937] Write of size 128 at addr ffff888103096500 by task kunit_try_catch/190 [ 19.217002] [ 19.217577] CPU: 0 UID: 0 PID: 190 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 19.217695] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.217728] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 19.217780] Call Trace: [ 19.217826] <TASK> [ 19.217878] dump_stack_lvl+0x73/0xb0 [ 19.218248] print_report+0xd1/0x650 [ 19.218361] ? __virt_addr_valid+0x1db/0x2d0 [ 19.218440] ? kmalloc_oob_in_memset+0x15f/0x320 [ 19.218517] ? kasan_complete_mode_report_info+0x2a/0x200 [ 19.218593] ? kmalloc_oob_in_memset+0x15f/0x320 [ 19.218665] kasan_report+0x141/0x180 [ 19.218736] ? kmalloc_oob_in_memset+0x15f/0x320 [ 19.218812] kasan_check_range+0x10c/0x1c0 [ 19.218846] __asan_memset+0x27/0x50 [ 19.218875] kmalloc_oob_in_memset+0x15f/0x320 [ 19.218910] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 19.218944] ? __schedule+0x10cc/0x2b60 [ 19.219020] ? __pfx_read_tsc+0x10/0x10 [ 19.219106] ? ktime_get_ts64+0x86/0x230 [ 19.219179] kunit_try_run_case+0x1a5/0x480 [ 19.219232] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.219268] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 19.219327] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 19.219364] ? __kthread_parkme+0x82/0x180 [ 19.219399] ? preempt_count_sub+0x50/0x80 [ 19.219436] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.219471] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.219505] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 19.219538] kthread+0x337/0x6f0 [ 19.219563] ? trace_preempt_on+0x20/0xc0 [ 19.219598] ? __pfx_kthread+0x10/0x10 [ 19.219623] ? _raw_spin_unlock_irq+0x47/0x80 [ 19.219653] ? calculate_sigpending+0x7b/0xa0 [ 19.219684] ? __pfx_kthread+0x10/0x10 [ 19.219709] ret_from_fork+0x41/0x80 [ 19.219740] ? __pfx_kthread+0x10/0x10 [ 19.219764] ret_from_fork_asm+0x1a/0x30 [ 19.219808] </TASK> [ 19.219822] [ 19.236670] Allocated by task 190: [ 19.237051] kasan_save_stack+0x45/0x70 [ 19.237780] kasan_save_track+0x18/0x40 [ 19.238643] kasan_save_alloc_info+0x3b/0x50 [ 19.239029] __kasan_kmalloc+0xb7/0xc0 [ 19.239604] __kmalloc_cache_noprof+0x189/0x420 [ 19.240119] kmalloc_oob_in_memset+0xac/0x320 [ 19.240569] kunit_try_run_case+0x1a5/0x480 [ 19.240955] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.241539] kthread+0x337/0x6f0 [ 19.241819] ret_from_fork+0x41/0x80 [ 19.242770] ret_from_fork_asm+0x1a/0x30 [ 19.243218] [ 19.243611] The buggy address belongs to the object at ffff888103096500 [ 19.243611] which belongs to the cache kmalloc-128 of size 128 [ 19.244352] The buggy address is located 0 bytes inside of [ 19.244352] allocated 120-byte region [ffff888103096500, ffff888103096578) [ 19.245833] [ 19.246443] The buggy address belongs to the physical page: [ 19.247156] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103096 [ 19.247775] flags: 0x200000000000000(node=0|zone=2) [ 19.248239] page_type: f5(slab) [ 19.248659] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 19.250511] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.250970] page dumped because: kasan: bad access detected [ 19.251818] [ 19.252907] Memory state around the buggy address: [ 19.254734] ffff888103096400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.255684] ffff888103096480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.256222] >ffff888103096500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.256746] ^ [ 19.257268] ffff888103096580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.258788] ffff888103096600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.259590] ==================================================================