From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9961C88E6F for ; Mon, 14 Sep 2026 20:47:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DCCA010F09D; Mon, 14 Sep 2026 20:47:06 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="gipMHZ3x"; dkim-atps=neutral Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id A43DD10F09D for ; Mon, 14 Sep 2026 20:47:04 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id D9A00602C3; Mon, 14 Sep 2026 20:47:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BABB11F00893; Mon, 14 Sep 2026 20:47:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789418823; bh=2IJq4xY/bBDFltvhIr2WF5Z6kFLO4/i0wExoi6+Tl+Q=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=gipMHZ3x/T2w9lkfIH4SEGPOxEDLobWgDTqcmNNuJlAAUwkdI1I0Rq4OBuNzmtu2F qA5JW2bSgphbh+ClexEfMPopcLNGbC9H3ULxn59XKtrbVnxIIJFufxVhwjOnN0qXdm 6EPxtBvRkBc/MXq/zZtLjNBlOhIvY2PraueKA3s6zwSG1XPgVmblgUYz2qZEC+s9dc b0SCSdCaYNgSmF6uZjlBL0yM3rLSRRxBmNl+1rp7vq97hkcCxGaNXLzEi02zeG3khl MOjsNcYuQ1u119M6Pn/Y2mhisIbnZidMNRRZQuXhmrXZJRx/hxSTXsJa+bCWqKWyst Lxir5AOacPbgA== From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 22/40] uprobes: remove VM_IO, set VM_MIXEDMAP for mapped kernel pages To: =?utf-8?b?TG9yZW56byBTdG9ha2VzIChBUk0p?= Cc: "Christian Borntraeger" , kvm@vger.kernel.org, "Oliver Upton" , linux-rdma@vger.kernel.org, "Alexander Gordeev" , "Heiko Carstens" , linux-scsi@vger.kernel.org, linux-perf-users@vger.kernel.org, "Vasily Gorbik" , bpf@vger.kernel.org, selinux@vger.kernel.org, linux-s390@vger.kernel.org, "Marc Zyngier" , linux-trace-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, kvmarm@lists.linux.dev In-Reply-To: <20260914-b4-mmap-prepare-vma-flag-sanify-v2-22-7d9781ed5361@kernel.org> References: <20260914-b4-mmap-prepare-vma-flag-sanify-v2-0-7d9781ed5361@kernel.org> <20260914-b4-mmap-prepare-vma-flag-sanify-v2-22-7d9781ed5361@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 14 Sep 2026 20:47:02 +0000 Message-Id: <20260914204702.BABB11F00893@smtp.kernel.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" > These are not MMIO pages so VMA_IO_BIT is an inappropriate flag to set. >=20 > Instead, set them VMA_MIXEDMAP_BIT as they are kernel mappings and this is > the appropriate flag to set for those. >=20 > This provides the semantics required - no VMA merging is permitted, but > does not prevent GUP. >=20 > However this has no meaningful impact as these are refcounted and thus can > be GUPed. >=20 > A previous commit already prevented __mm_populate() from being invoked on > XOL areas, which VMA_IO_BIT was previously relied upon to do, so that is = no > longer required. >=20 > Both VMAs set a VMA name, so always_dump_vma() returns true before > vma_dump_size() reaches its VMA_IO_BIT check, and thus there is no change > in core dump behaviour. >=20 > Change this for both the core xol_add_vma() function and the x86-specific > get_uprobe_trampoline() function. >=20 > Signed-off-by: Lorenzo Stoakes (ARM) Sashiko has reviewed this patch and found no issues. It looks great! --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20260914-b4-mmap-pr= epare-vma-flag-sanify-v2-0-7d9781ed5361@kernel.org?part=3D22