From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f80.google.com (mail-io1-f80.google.com [209.85.166.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5C2F13AD26 for ; Thu, 26 Dec 2024 18:46:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.80 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735238784; cv=none; b=rNg0/DgUxlsSwfuRBJU3kj2mZFBordyVJZiNkL5DEARhW4eeIvaZFRWPhpt0dMF5UynPF0MEAOfYEq5lZxk2cPwP7o8QR5TdXLe+pBcePPO2AAgWNLL7f/t/aTT3nZ91usicyLHGNWRpbaXZkdjHC9RIIb7Q26L+dUbaNdYX4QA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735238784; c=relaxed/simple; bh=pNvTIcQcWLSqbGgEBjQhTuZi2XGtwRoGYT8bZ6ns+g8=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=h/LDd0c9WbJPkAyRqh/U5gUpdpa49a7Hj3yDP5ImU06skDP2QR1QV+gWyGGOs73KKaUiFMD6em3CJc+iQUAf0CVZ1Dctni5ezjd0Grter6GA2OwCKUetb42BCRRkDW3fCPAb7K+PW6RVQelumzjgdzcK/fQ23F/6w4GZvrENUqE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.80 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f80.google.com with SMTP id ca18e2360f4ac-844d5c4a27fso1196495939f.0 for ; Thu, 26 Dec 2024 10:46:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735238782; x=1735843582; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xoV4BY6yKms+qBenSiOKvgoN0PTCvcqjmS7neHTHoJA=; b=HU5WIICUSastzvIOihZ1Mh7ArfFc2s0RZvZsY65Pc6qmcrySsMB1SaHdIeBz2icZY7 D51yBPJGWmjF1WsH6U2y29IhEYCQ3cusV8cjqnNOz8PCsRKdnoAcxMovNe4YI3oszDQY +3XPlZu47aSWCDAkqbd/04FrXapjNc3rS4uKPs2rlaDBK4XDT0iTaLLYhlzfJofiibIm iDxh3OcillDcXhUBNbd+LrO1jOHuetze0G3B1pQNlflR4BCGvGeWpDR3N5nHQjy+Ck8R 6YQkKBNLSZMBnaDZOkEztjbL2Lfm3jU+tdIjZFpSb/LcU04atuXCf2LBFHzfkFhoBuDv Mj5Q== X-Forwarded-Encrypted: i=1; AJvYcCXB+SJJYrnrz9VidgHO5lJqCTKL3/sd6Srv4oVQZ/qVrX1/kFPlw3/ki+lYxXGudFyAP8TCznBsK6tOv2I=@vger.kernel.org X-Gm-Message-State: AOJu0YyjvErbYBJPYHg5LEMyM234Rp9mXdA8v7qLc/4hcJyw55cFd+NS UVyb9uVVqd7eutsS6XvjmsX8/xFnXJBhWEFCf6Q4eifvw4oBVLQRsmDZilNyOansvVzeLJLwQPh j2zgR5e4e2WABpSlqDRQpSZPLZRWpuFSMsYDdr1aIoKvKKpfsWwL8qTA= X-Google-Smtp-Source: AGHT+IF7cTX9JiRn50nVXC95+FkzCSPVRL8/nfQ+uu0G7wehuOEZfEUGsaDhuVJjWZHVgqZejHWm0Mc0OSCDTTf2F9iQmW0qQUZp Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1889:b0:3a7:8149:6aa with SMTP id e9e14a558f8ab-3c2d5c30129mr236215195ab.24.1735238782089; Thu, 26 Dec 2024 10:46:22 -0800 (PST) Date: Thu, 26 Dec 2024 10:46:22 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <676da47e.050a0220.226966.0087.GAE@google.com> Subject: [syzbot] [mm?] KASAN: stack-out-of-bounds Read in save_stack From: syzbot To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 48f506ad0b68 Merge tag 'soc-fixes-6.13-2' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13d19fe8580000 kernel config: https://syzkaller.appspot.com/x/.config?x=6a2b862bf4a5409f dashboard link: https://syzkaller.appspot.com/bug?extid=1fe1e9bdda75b52f54c6 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/7feb34a89c2a/non_bootable_disk-48f506ad.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/263edab20c8c/vmlinux-48f506ad.xz kernel image: https://storage.googleapis.com/syzbot-assets/b84eb39f0355/bzImage-48f506ad.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+1fe1e9bdda75b52f54c6@syzkaller.appspotmail.com loop0: detected capacity change from 0 to 128 VFS: Found a Xenix FS (block size = 1024) on device loop0 sysv_free_block: flc_count > flc_size sysv_free_block: flc_count > flc_size sysv_free_block: flc_count > flc_size sysv_free_block: flc_count > flc_size sysv_free_block: flc_count > flc_size sysv_free_block: flc_count > flc_size sysv_free_block: flc_count > flc_size sysv_free_block: flc_count > flc_size sysv_free_block: flc_count > flc_size sysv_free_block: flc_count > flc_size sysv_free_inode: inode 0,1,2 or nonexistent inode loop0: detected capacity change from 0 to 4096 ntfs3(loop0): Different NTFS sector size (2048) and media sector size (512). ================================================================== BUG: KASAN: stack-out-of-bounds in stack_trace_consume_entry+0xbb/0x280 kernel/stacktrace.c:93 Read of size 8 at addr ffffc9000d416b9f by task syz.0.0/5314 CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 Not tainted 6.13.0-rc3-syzkaller-00289-g48f506ad0b68 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x169/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:602 stack_trace_consume_entry+0xbb/0x280 kernel/stacktrace.c:93 arch_stack_walk+0x10e/0x150 arch/x86/kernel/stacktrace.c:27 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 save_stack+0xfb/0x1f0 mm/page_owner.c:156 __reset_page_owner+0x76/0x430 mm/page_owner.c:297 reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xe39/0x18b0 mm/page_alloc.c:2706 folios_put_refs+0x76c/0x860 mm/swap.c:962 free_pages_and_swap_cache+0x2ea/0x690 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 zap_pte_range mm/memory.c:1714 [inline] zap_pmd_range mm/memory.c:1753 [inline] zap_pud_range mm/memory.c:1782 [inline] zap_p4d_range mm/memory.c:1803 [inline] unmap_page_range+0x3770/0x4040 mm/memory.c:1824 unmap_vmas+0x3cc/0x5f0 mm/memory.c:1914 exit_mmap+0x275/0xc20 mm/mmap.c:1668 __mmput+0x115/0x3c0 kernel/fork.c:1348 exit_mm+0x220/0x310 kernel/exit.c:570 do_exit+0x9ad/0x28e0 kernel/exit.c:925 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 get_signal+0x16b2/0x1750 kernel/signal.c:3017 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f81ce385d29 Code: Unable to access opcode bytes at 0x7f81ce385cff. RSP: 002b:00007f81cf20d0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 00007f81ce575fa8 RCX: 00007f81ce385d29 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f81ce575fac RBP: 00007f81ce575fa0 R08: 7fffffffffffffff R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 00007f81ce575fac R13: 0000000000000000 R14: 00007ffc92360370 R15: 00007ffc92360458 The buggy address belongs to stack of task syz.0.0/5314 and is located at offset 31 in frame: stack_trace_save+0x0/0x1d0 kernel/stacktrace.c:52 This frame has 1 object: [32, 56) 'c' The buggy address belongs to the virtual mapping at [ffffc9000d410000, ffffc9000d419000) created by: copy_process+0x5d1/0x3d50 kernel/fork.c:2224 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888043d1baf8 pfn:0x43d1b memcg:ffff88804074fd82 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff888043d1baf8 0000000000000000 00000001ffffffff ffff88804074fd82 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 1031, tgid 1031 (kworker/u4:5), ts 67917267952, free_ts 67916351099 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2269 vm_area_alloc_pages mm/vmalloc.c:3591 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0x9c9/0x1380 mm/vmalloc.c:3846 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1116 copy_process+0x5d1/0x3d50 kernel/fork.c:2224 kernel_clone+0x226/0x8e0 kernel/fork.c:2806 user_mode_thread+0x132/0x1a0 kernel/fork.c:2884 call_usermodehelper_exec_sync kernel/umh.c:132 [inline] call_usermodehelper_exec_work+0x9b/0x230 kernel/umh.c:163 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 page last free pid 5309 tgid 5309 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xe39/0x18b0 mm/page_alloc.c:2706 folios_put_refs+0x76c/0x860 mm/swap.c:962 free_pages_and_swap_cache+0x5c8/0x690 mm/swap_state.c:335 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 exit_mmap+0x496/0xc20 mm/mmap.c:1681 __mmput+0x115/0x3c0 kernel/fork.c:1348 exit_mm+0x220/0x310 kernel/exit.c:570 do_exit+0x9ad/0x28e0 kernel/exit.c:925 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 __do_sys_exit_group kernel/exit.c:1098 [inline] __se_sys_exit_group kernel/exit.c:1096 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096 x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffffc9000d416a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000d416b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000d416b80: f1 f1 f1 f1 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 ^ ffffc9000d416c00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ffffc9000d416c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup