Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2871826rdb; Wed, 15 Nov 2023 13:07:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqwg5U/D7E4aqNzstPt0fwACAjsQFRKUPQl3tXGPiyCdwB08PaVXhvmB2dYHgv/Lhd7puY X-Received: by 2002:a05:6830:14c5:b0:6d3:1272:34b8 with SMTP id t5-20020a05683014c500b006d3127234b8mr7015681otq.31.1700082461874; Wed, 15 Nov 2023 13:07:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700082461; cv=none; d=google.com; s=arc-20160816; b=dherIQogGRSXL5m4mFyItkDLtIQY0VC8wWrFL8wkG6BgbRRcrRvzCzF/ZDIWPucwgz CL6xnc0v59F/KEAcUzO0g/1bTXEyIgfGvV9O7fjL+SabhTSbG6TyB8xxbE0EbwAGTDpZ NXQsitbeKPq6iz1esXOb7xmRQZBQMlmpnJRwYNgKVxWg0VtwU0kx7b0ueDyGZmy94wuV RwygVooLtWDcjQYPIMn740nryHLt5x/ZUhf8Py4pJNgCAt4oNrwh25PHXMjFydQNpfAm eByUbsHTXHWsvLG0igVW8YFrCb7/RKIvjzqIfjh/ucqByNGfJjUn17TRlC+7QJPGUzgX WU2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QvwpMwO6HI2WfvadJARppQwZ/QUTldTSQZ/iy/GnHYs=; fh=GVnHMYbcTu6wXSRcSIB6sgMFd6mBkiMfzfsyT+AwO80=; b=uaZV5tSBsJPbFjbpOnc2xyn5daa12Fw0v3XvWG7KCg9PSsvdeRijcImPujVFodlVx6 NuKtx52ogU3QfDPbVobJXWRkwSVMu1egiiVQie5M3V058yNOTl887TQa4Sh3TzjoFrde yLi8z4I8zUVMCrmImWGGN4eRm/daRX+eKUJb0Zt2FxD8P/Ap9kp2gtYlodiyrkFmeibO 5QkZ0jTa7d6kGRKFlFZNHGwmJcuC41mOO6KP3ERNdBh0G17saMixnfmffwvK5oxUOwIT HDYzsRgghx3+iBFMZPSXXGA71LRhC9ZJhxftazqrvpJvsQj6z3BYmpiROg6ZX2jpDPAP sxaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NKM5LDsg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u63-20020a638542000000b005b7d9aace98si10198667pgd.109.2023.11.15.13.07.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 13:07:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NKM5LDsg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A102180FDDD7; Wed, 15 Nov 2023 13:07:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344656AbjKOVHh (ORCPT + 99 others); Wed, 15 Nov 2023 16:07:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343801AbjKOVHf (ORCPT ); Wed, 15 Nov 2023 16:07:35 -0500 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ADB8B7; Wed, 15 Nov 2023 13:07:31 -0800 (PST) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2c6b30aca06so978561fa.3; Wed, 15 Nov 2023 13:07:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700082449; x=1700687249; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QvwpMwO6HI2WfvadJARppQwZ/QUTldTSQZ/iy/GnHYs=; b=NKM5LDsgg0otD+GDQZ9SxmdHhpituod/XAvH5GbcoCXJb63QaWLyG5gt1omtfxHDZA cZdNzM708hOs8fsA57x20Z+F1C15CScWuOnJzEV8hqA/DMQzCmY9na45ACEH+kVh/3fl NUN7DO2dF4df1oMyJmri11WUh3ntlLWslScVxOOJfFWrXYxQui0cGiC1cYCp851TQM7C zOS6FIpO0oVBQqds0U8rFLb8gGGGNG0LGNPlxMDA0a8hQaS8dEO2XA9QJ7NBTqJrEAmm FBuQnUcibaE9uS5I2rcrq39XxRTHVIj+YLgQSk5auh1mr4mZfk2Bk7btIr3y8X3T6kWB s48w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700082449; x=1700687249; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QvwpMwO6HI2WfvadJARppQwZ/QUTldTSQZ/iy/GnHYs=; b=fdWabm4GPLn/HWmP2XHOscXXDnvVqxIcDp6KNJL1/OlXZJk8XDL42cE/qVa8PRRz2B bvMrKL2gpVkie7p9srqLkzdCrTHl9kA8Jds+luK1w5g+nlWQcSsolNkX19lu5QWaM/IE Q8DQ5/rK+9wByjMNrELGZk5PItO2CHmhYKY7PrJjAKsztfES7/fbbjId24UxvmQV8MJF kZDbh/STZ75W7vbUXQQYnHV8tvCAmagGMU1cKQHBA2VV/V/sKTkwR490FgB8wAsF3dwt vfe+Xddqg6c66ib+TYEhGOFLiMihwMUmb2hoO9t2EQq8jadLqad/isfx7/288usgPyIq pHJA== X-Gm-Message-State: AOJu0Yzcll43ndfuz6eDr40mT47DYJHmkQgRcAzz6EUm191Un8Qgqag0 wlq0ZvgsamCMewoR0xTLD3aWrIk9sFuvbnmOgl8= X-Received: by 2002:a2e:9b48:0:b0:2bc:c750:d9be with SMTP id o8-20020a2e9b48000000b002bcc750d9bemr5321914ljj.29.1700082449221; Wed, 15 Nov 2023 13:07:29 -0800 (PST) MIME-Version: 1.0 References: <000000000000773fa7060a31e2cc@google.com> In-Reply-To: <000000000000773fa7060a31e2cc@google.com> From: Andrei Vagin Date: Wed, 15 Nov 2023 13:07:18 -0800 Message-ID: Subject: Re: [syzbot] [fs?] WARNING in pagemap_scan_pmd_entry To: syzbot , Peter Xu , Muhammad Usama Anjum Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 15 Nov 2023 13:07:40 -0800 (PST) Cc: Peter and Muhammad On Wed, Nov 15, 2023 at 6:41=E2=80=AFAM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: c42d9eeef8e5 Merge tag 'hardening-v6.7-rc2' of git://git.= k.. > git tree: upstream > console+strace: https://syzkaller.appspot.com/x/log.txt?x=3D13626650e8000= 0 > kernel config: https://syzkaller.appspot.com/x/.config?x=3D84217b7fc4acd= c59 > dashboard link: https://syzkaller.appspot.com/bug?extid=3De94c5aaf7890901= ebf9b > compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for D= ebian) 2.40 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D15d73be0e80= 000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=3D13670da8e8000= 0 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/a595d90eb9af/dis= k-c42d9eee.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/c1e726fedb94/vmlinu= x-c42d9eee.xz > kernel image: https://storage.googleapis.com/syzbot-assets/cb43ae262d09/b= zImage-c42d9eee.xz > > IMPORTANT: if you fix the issue, please add the following tag to the comm= it: > Reported-by: syzbot+e94c5aaf7890901ebf9b@syzkaller.appspotmail.com > > ------------[ cut here ]------------ > WARNING: CPU: 1 PID: 5071 at arch/x86/include/asm/pgtable.h:403 pte_uffd_= wp arch/x86/include/asm/pgtable.h:403 [inline] > WARNING: CPU: 1 PID: 5071 at arch/x86/include/asm/pgtable.h:403 pagemap_s= can_pmd_entry+0x1d27/0x23f0 fs/proc/task_mmu.c:2146 > Modules linked in: > CPU: 1 PID: 5071 Comm: syz-executor182 Not tainted 6.7.0-rc1-syzkaller-00= 019-gc42d9eeef8e5 #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS G= oogle 11/10/2023 > RIP: 0010:pte_uffd_wp arch/x86/include/asm/pgtable.h:403 [inline] > RIP: 0010:pagemap_scan_pmd_entry+0x1d27/0x23f0 fs/proc/task_mmu.c:2146 > Code: ff ff e8 5c 23 76 ff 48 89 e8 31 ff 83 e0 02 48 89 c6 48 89 04 24 e= 8 d8 1e 76 ff 48 8b 04 24 48 85 c0 74 25 e8 3a 23 76 ff 90 <0f> 0b 90 e9 71= ff ff ff 4c 89 74 24 68 4c 8b 74 24 10 c7 44 24 28 > RSP: 0018:ffffc9000392f870 EFLAGS: 00010293 > RAX: 0000000000000000 RBX: 0000000020001000 RCX: ffffffff82116da8 > RDX: ffff88801aae8000 RSI: ffffffff82116db6 RDI: 0000000000000007 > RBP: 0000000012c7ac67 R08: 0000000000000007 R09: 0000000000000000 > R10: 0000000000000002 R11: 0000000000000002 R12: dffffc0000000000 > R13: 0000000000000400 R14: 0000000000000000 R15: ffff8880745f4000 > FS: 00005555557a8380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000= 000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000000020000d60 CR3: 0000000074627000 CR4: 00000000003506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > walk_pmd_range mm/pagewalk.c:143 [inline] > walk_pud_range mm/pagewalk.c:221 [inline] > walk_p4d_range mm/pagewalk.c:256 [inline] > walk_pgd_range+0xa48/0x1870 mm/pagewalk.c:293 > __walk_page_range+0x630/0x770 mm/pagewalk.c:395 > walk_page_range+0x626/0xa80 mm/pagewalk.c:521 > do_pagemap_scan+0x40d/0xcd0 fs/proc/task_mmu.c:2437 > do_pagemap_cmd+0x5e/0x80 fs/proc/task_mmu.c:2478 > vfs_ioctl fs/ioctl.c:51 [inline] > __do_sys_ioctl fs/ioctl.c:871 [inline] > __se_sys_ioctl fs/ioctl.c:857 [inline] > __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857 > do_syscall_x64 arch/x86/entry/common.c:51 [inline] > do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 > entry_SYSCALL_64_after_hwframe+0x63/0x6b > RIP: 0033:0x7f9c3ea93669 > Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 48 89 f8 48 89 f= 7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff= ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 > RSP: 002b:00007ffe1d95e918 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 > RAX: ffffffffffffffda RBX: 00007ffe1d95e920 RCX: 00007f9c3ea93669 > RDX: 0000000020000d40 RSI: 00000000c0606610 RDI: 0000000000000003 > RBP: 00007f9c3eb06610 R08: 65732f636f72702f R09: 65732f636f72702f > R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 > R13: 00007ffe1d95eb58 R14: 0000000000000001 R15: 0000000000000001 > > > > --- > 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 syzbot to run the reproducer, reply with: > #syz test: git://repo/address.git branch-or-commit-hash > If you attach or paste a git patch, syzbot will apply it before testing. > > 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