Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2154783lqt; Mon, 22 Apr 2024 03:08:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmib/8Kc+g2J471ZutqQIgnTbFTVOCg1OmqqdTWT6Iz3MIyMd2T6uFe+CWZb15+aQ1kCq0OOdY4l9vMagN8M/Gg6rOcVkBBFD17ZxMow== X-Google-Smtp-Source: AGHT+IFndYjLHaouHF/vMFjEXQz0y1kSigPJKXBU9P+pS5Rvspt5E5KjxZR5iFbxMleQgEsp+iAZ X-Received: by 2002:a50:a45d:0:b0:570:1ea6:e98a with SMTP id v29-20020a50a45d000000b005701ea6e98amr6539437edb.39.1713780488521; Mon, 22 Apr 2024 03:08:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713780488; cv=pass; d=google.com; s=arc-20160816; b=AKlB2OsWoZtdI123jpu0FdlWpjsxm607rhewhMI5EIlolQMhHJYuYYTmmBZhvG4QVn N3MTERYB5O4se23Vnml1aevoDauRAAEUkdGKwmPgEuqOz5RUJiUVjEa/x56R9bnsdZTI N8XVSE/my+qCTVBFYKX4Y/hPtEBt9Pkpl5p/IjWDm7cL7zB6MPsuVXeYsgU1H+WSgaGv hjpVLUdV22Kd17VN7BQjm078GSSe/hdr1cfH/vuEWcRaXBDUaI9zUlyqyX24FT6EvAiK quqARwY22PW1LzsW2NOW114qc/SA1Uu7pM79YWYnNVSaL1+nupJnXKwcXq9Ohysg/duq TGtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=m2Y/SBW5hpSNevi0x4bWpQAenbaPtI7O72d9jhuXceo=; fh=nzgoXjE4kbVrVSkxPLGIFKDSGSdkGIHyYB9bEa54sjI=; b=WFQnJqrTjw1qdiEgXXiKfxCyTRgvwqHh66W3G9vS6j0e8Rq9RpiGqyh0B1LB0MD9xe vCwobiLOdcAXRgg/ZCHaeq024LzM4yPTMit8FtXIogF/ToyJgQpfjkEjgcrpsc56ZbRh IPJTar0rlQrsbdo5sm1o05D6cfzWOj+Np8gH0tUJqmH14EsT42oTeXW3a94b0wrSarEo 8WteSJu9dXAP2ACjjWC/GQpskT/a76oXGRe1WU32YwJBqOgH4Y1JlLjuP0hHuNknEZGp LmJ2oqrioft1OYIvzV4LA1PDHK4RfSNbimEpDGAO9vgBtTh18ZAUKy5InK6gTk6JoUT8 rUXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ghw0KeRe; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-153149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j21-20020aa7ca55000000b0056e09e70426si5858370edt.6.2024.04.22.03.08.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 03:08:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ghw0KeRe; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-153149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1A9421F22282 for ; Mon, 22 Apr 2024 10:08:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDF6613E033; Mon, 22 Apr 2024 10:07:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ghw0KeRe" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9968E612D3 for ; Mon, 22 Apr 2024 10:07:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713780470; cv=none; b=pOZS2nb4LpHljKNi/TuYX6v0YKEK+RobH9Y5O+EL1lwy8oYqnnftCiUQAUMQO3dj3Ef4fHeHzEv3LgmbMhVV4U0SxrlALcqPbGGbgTYQZaaOszEh4sLpMqFDg7e8EesdR7Pact5px2KkAqfXKwWKigsjkp7FQipKE4BVJ0KWVAg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713780470; c=relaxed/simple; bh=5q/GaamZ7s9hHsEsIGZ+6CewGe4p2uwB8m1F3U2AuDU=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=Ejh9peEj1AjrlvFx3dWD8k0MtIyyYoIBfAjw7cKqXhzd9yza6zj4kayLlSCJ6zUCeNKeRpPdUFzLkhDWn3rMWhXchdHGhS3wmvRMvRZ/pOIftbIKWdgTtwYxMJrFiHcvOhDdQhBHUv8vY6Cn+ilnSNq4E6i/VUuiT06Ox9341F4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ghw0KeRe; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713780467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=m2Y/SBW5hpSNevi0x4bWpQAenbaPtI7O72d9jhuXceo=; b=ghw0KeRewgFskMbnEmJ+IVGJ2YP9qJ6NNJMu++vqlic+5zZjhbwhMm9xG/7BAweDZpBt2/ Qkm+HUvjIlmAuVK3CcxVUDDpGFQ/7fLcq+mPBlUD3OV/VSmuqUfWuZVjCIlQLDadfSii3D HKEAEn8BzCMDKABi7uxyQuCoUt8rAd4= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-263-chTEEmj4OLyd2gmQup3Ygw-1; Mon, 22 Apr 2024 06:07:45 -0400 X-MC-Unique: chTEEmj4OLyd2gmQup3Ygw-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2da2f30cb50so29930081fa.2 for ; Mon, 22 Apr 2024 03:07:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713780464; x=1714385264; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=m2Y/SBW5hpSNevi0x4bWpQAenbaPtI7O72d9jhuXceo=; b=Ut/gaRFOdnu7Mdh6u85k77j3hB9kgVDsx70u9XtSxOWdp3qg81x4MZczQwDRzBUkp0 EJSsm1opOuCN9lrfwhfxIY+24kRoSx/aRkhJvsa+KILZPWFCQLWiQRvyFQkgaKguibcA /3fYRRq94RLYNsBJFeZoIOdpBpDPJI6XpxZg8YRQ8pF32G7TxCtEoGIQVOBPQbhtr+KX VYVOKCQpwnEgRrfpGuM5GVmWz3Ns+2KfdEKW1UUzJOXRrIoRfBu0eIgd/prs8v/KO/0o RcnG6dWceOpJm72gZIKF9n15g26NReja6Tt6I97L5VvXOMzfjF2GpEYENIU9NhFPMpgh sgaw== X-Forwarded-Encrypted: i=1; AJvYcCX5Gy2Nr8B7apnfQqjgmjVbXuK344kw3bsyuPjY5kgGEzbuEqOEmOFz8CL78x1y3/UHtgb6+iowsB8TCV5Ru19SLLWYTTwpZpqUf28f X-Gm-Message-State: AOJu0YzVUeORx+jb4oN3UpH+IpjwiWtoLD+GlV14GTsp3ecfDujo5NPW 1m91BmJwD+RcFr75BOgmCWTOOMvKSyi1xM0GtR1550BXeUOm8kyVi+TvSvW7MJO2WD6O0BxAQJ7 OLL5Ez0tuHIEvRhs/qe9ydyoqXvP/7EEGAQWCJZ4mxVfW3nJfVRIe8rIGK+LhmQ== X-Received: by 2002:a2e:9e0c:0:b0:2d8:dd28:8748 with SMTP id e12-20020a2e9e0c000000b002d8dd288748mr7076246ljk.1.1713780464351; Mon, 22 Apr 2024 03:07:44 -0700 (PDT) X-Received: by 2002:a2e:9e0c:0:b0:2d8:dd28:8748 with SMTP id e12-20020a2e9e0c000000b002d8dd288748mr7076226ljk.1.1713780463870; Mon, 22 Apr 2024 03:07:43 -0700 (PDT) Received: from ?IPV6:2003:cb:c739:600:d2fb:3a8a:9944:7910? (p200300cbc7390600d2fb3a8a99447910.dip0.t-ipconnect.de. [2003:cb:c739:600:d2fb:3a8a:9944:7910]) by smtp.gmail.com with ESMTPSA id v11-20020a05600c470b00b0041a963bf2cdsm25306wmo.36.2024.04.22.03.07.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Apr 2024 03:07:43 -0700 (PDT) Message-ID: <71cf84d4-77d2-42d7-a649-b67497b171f6@redhat.com> Date: Mon, 22 Apr 2024 12:07:42 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [syzbot] [mm?] WARNING in __page_table_check_ptes_set To: syzbot , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, pasha.tatashin@soleen.com, syzkaller-bugs@googlegroups.com References: <000000000000ca4df20616a0fe16@google.com> Content-Language: en-US From: David Hildenbrand Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/ZQOiHJl6mGkmA1R7/uUpiCjJ dBrn+lhhOYjjNefFQou6478faXE6o2AhmebqT4KiQoUQFV4R7y1KMEKoSyy8hQaK1umALTdL QZLQMzNE74ap+GDK0wnacPQFpcG1AE9RMq3aeErY5tujekBS32jfC/7AnH7I0v1v1TbbK3Gp XNeiN4QroO+5qaSr0ID2sz5jtBLRb15RMre27E1ImpaIv2Jw8NJgW0k/D1RyKCwaTsgRdwuK Kx/Y91XuSBdz0uOyU/S8kM1+ag0wvsGlpBVxRR/xw/E8M7TEwuCZQArqqTCmkG6HGcXFT0V9 PXFNNgV5jXM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UI7wC7iKfoUTv03iO9El5f XpNMx/YrIMduZ2+nd9Di7o5+KIwlb2mAB9sTNHdMrXesX8eBL6T9b+MZJk+mZuPxKNVfEQMQ a5SxUEADIPQTPNvBewdeI80yeOCrN+Zzwy/Mrx9EPeu59Y5vSJOx/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: <000000000000ca4df20616a0fe16@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 21.04.24 22:16, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 4eab35893071 Add linux-next specific files for 20240417 > git tree: linux-next > console+strace: https://syzkaller.appspot.com/x/log.txt?x=1727a61b180000 > kernel config: https://syzkaller.appspot.com/x/.config?x=27920e47287645ff > dashboard link: https://syzkaller.appspot.com/bug?extid=d8426b591c36b21c750e > compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=156da22d180000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=163dfec7180000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/9f7d6c097fb4/disk-4eab3589.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/287b16352982/vmlinux-4eab3589.xz > kernel image: https://storage.googleapis.com/syzbot-assets/23839c65c573/bzImage-4eab3589.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+d8426b591c36b21c750e@syzkaller.appspotmail.com > > ------------[ cut here ]------------ > WARNING: CPU: 0 PID: 5084 at mm/page_table_check.c:199 __page_table_check_pte mm/page_table_check.c:199 [inline] > WARNING: CPU: 0 PID: 5084 at mm/page_table_check.c:199 __page_table_check_ptes_set+0x1db/0x420 I think this is if (pte_present(pte) && pte_uffd_wp(pte)) WARN_ON_ONCE(pte_write(pte)); mm/page_table_check.c:213 > Modules linked in: > CPU: 0 PID: 5084 Comm: syz-executor382 Not tainted 6.9.0-rc4-next-20240417-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 > RIP: 0010:__page_table_check_pte mm/page_table_check.c:199 [inline] > RIP: 0010:__page_table_check_ptes_set+0x1db/0x420 mm/page_table_check.c:213 > Code: 48 8b 7c 24 40 48 c7 c6 80 19 46 8e e8 ee df 8e ff 41 83 fc 1d 74 18 41 83 fc 1a 75 1d e8 5d da 8e ff eb 10 e8 56 da 8e ff 90 <0f> 0b 90 eb 10 e8 4b da 8e ff 90 0f 0b 90 eb 05 e8 40 da 8e ff 48 > RSP: 0018:ffffc9000366f740 EFLAGS: 00010293 > RAX: ffffffff8207833a RBX: ffffc9000366f7c0 RCX: ffff888022af3c00 > RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 > RBP: ffffc9000366f830 R08: ffffffff820782af R09: 1ffffd40000a6a10 > R10: dffffc0000000000 R11: fffff940000a6a11 R12: 0000000000000000 > R13: 0000000014d42c67 R14: 0000000000000001 R15: 0000000000000000 > FS: 0000555567f79380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 000000000066c7e0 CR3: 0000000078cb0000 CR4: 00000000003506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > page_table_check_ptes_set include/linux/page_table_check.h:74 [inline] > set_ptes include/linux/pgtable.h:267 [inline] > __ptep_modify_prot_commit include/linux/pgtable.h:1269 [inline] > ptep_modify_prot_commit include/linux/pgtable.h:1302 [inline] > change_pte_range mm/mprotect.c:194 [inline] > change_pmd_range mm/mprotect.c:424 [inline] > change_pud_range mm/mprotect.c:457 [inline] > change_p4d_range mm/mprotect.c:480 [inline] > change_protection_range mm/mprotect.c:508 [inline] > change_protection+0x2770/0x3cc0 mm/mprotect.c:542 > mprotect_fixup+0x740/0xa90 mm/mprotect.c:655 > do_mprotect_pkey+0x90d/0xe00 mm/mprotect.c:820 > __do_sys_mprotect mm/mprotect.c:841 [inline] > __se_sys_mprotect mm/mprotect.c:838 [inline] > __x64_sys_mprotect+0x80/0x90 mm/mprotect.c:838 > do_syscall_x64 arch/x86/entry/common.c:52 [inline] > do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 > entry_SYSCALL_64_after_hwframe+0x77/0x7f > RIP: 0033:0x7f45514bf429 > Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 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:00007ffe52191598 EFLAGS: 00000246 ORIG_RAX: 000000000000000a > RAX: ffffffffffffffda RBX: 00007ffe52191768 RCX: 00007f45514bf429 > RDX: 000000000000000f RSI: 0000000000004000 RDI: 0000000020ffc000 > RBP: 00007f4551532610 R08: 00007ffe52191768 R09: 00007ffe52191768 > R10: 00007ffe52191768 R11: 0000000000000246 R12: 0000000000000001 > R13: 00007ffe52191758 R14: 0000000000000001 R15: 0000000000000001 > Did we find a real issue that involves mprotect()? At least can_change_pte_writable() should always return "false" for userfaultfd_pte_wp(). Do we maybe have a uffd-wp PTE outside of a UFFD_WP VMA? Or was the PTE already writable and we only detect it now as we call mprotect()? (missed to detect it earlier?) > > > --- > 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 > -- Cheers, David / dhildenb