From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (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 1930C3AEF29 for ; Thu, 5 Feb 2026 12:19:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770293965; cv=none; b=Sz4P3EB5UCfGq2BpYO+0ngZYFwNBTfhvtdwsE05mcr21jhi8M5DhgPYB46XcG705xJ6/Mz6rKRMMwHXPAApfsYJOK7SdY4rcaVZQo/N0lhqPlmmrxNq4eNvIHNGwqOxEI02uK83JUI2jkrdZnRZMrFVMkizc3/h8PP9H0sT73MQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770293965; c=relaxed/simple; bh=jTOOlJM9SM62Nbi8NEcvFMVTGFfdGPEdNCXAy/8F3qY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ofJHQ2r5fLD4UDkk88Atfu/3N9Lt5+/brtCUPkjivATinbmOPLnHhgVr1nSLorVXKz1a3yIaWh7KXvUhNuQidY1H0cq/2m3CWw5rK3IRB6V1PVPHT1Qnd6peCx5Nn11VAq+QawKzW9cOiUvQ9ppx0m3iX0g2PTxPaoDeE0mDjEk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=JkNTiBNF; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="JkNTiBNF" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-4801bceb317so13826915e9.1 for ; Thu, 05 Feb 2026 04:19:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1770293963; x=1770898763; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=P8VHEdoXvHCSSaRGXtsdIdrKYHnRM+3rTei5HgbDzfs=; b=JkNTiBNFP0NFHqPYYcMXgk0uuWV5/J+ofqckOWsz4+E4ei9Uve4MZU276BLHV43qjh ElA+JWwKPMxbVdymu1gPlFQXT3J7HM0wZoUoISGrujvbObwR7X2XOpSiFRMBizSteOS4 j/Z0Ei0GdW1xk4BsHZWs/42Ra7Y83bFUBFmAXBy3e5x+/zL5qz0M0upF/PJFlL8/yryZ RjqFQjewbYpvRNgll+M35BM4/43M2ivnwar6q7BkGby9ugQ9Jo3o995Q0FKlyQrdU35S MIiMYTfzMuAwZju3YDMSmD4cHkzPLzJUWy0uHa/IRM373Di+Y3l+DBeeNlhVGU3hhqqR lzTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770293963; x=1770898763; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=P8VHEdoXvHCSSaRGXtsdIdrKYHnRM+3rTei5HgbDzfs=; b=cvo/JSkVV5/fTgvKi69iONaHJD2xcruXNzDkDI2B8XNKWUtr44DATqC0pwOc0OHV8U t4FR0ys52e5PXrtK+b35I6m+gZ44fWUJw/4cIrkUgy1OgzhDiDWnxWUtmLMv/WS2B3pV JQrMZYS4+rSZu2rsMhITafAzb5Hmp1mcsbnQYYQ4NSaf8dcYDGaWSiWRL24ODb/Oylz+ N7LdKwPwQ++Y4Uwv0RvlF2/rlB4/ILoaD4uoBNdlf5KYrskgOsmYAFytptAQKRiEm+0D hgaun5iMvFg+1cFD9M1NoBZLc09o7W/B8jGBydxE9a1UG02cTOyAvF+t4tD45zECwtJN pcTA== X-Forwarded-Encrypted: i=1; AJvYcCXG+Tvg3VXdybg6h4eY/0CBk5FE/ZYVZ7lsbZlQjsjHqKh5tDUAimV7NVmQBCjcyVmdSQ0qrrKtRvbxhaQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yyg2tv0pfEoG68ahOFtGPAq5AVs893BiWr/8J9evYwNmKBBqyIu KBHGMxsVfJNg8v0Btaeizmwazi61veRnidIiRQVWLOkP+W4lrhkQLwmFrKJ+CXgtGx299DSYOoI HbsRix26fTNkw3DV4KA== X-Received: from wmbgy21.prod.google.com ([2002:a05:600c:8815:b0:480:4a03:7b5a]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4513:b0:47d:18b0:bb9a with SMTP id 5b1f17b1804b1-4830e97a05bmr85132145e9.33.1770293963417; Thu, 05 Feb 2026 04:19:23 -0800 (PST) Date: Thu, 5 Feb 2026 12:19:22 +0000 In-Reply-To: <8856c839-1a94-4e4d-9ded-d3b1627cd2cc@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260205-binder-tristate-v1-0-dfc947c35d35@google.com> <20260205-binder-tristate-v1-3-dfc947c35d35@google.com> <02801464-f4cb-4e38-8269-f8b9cf0a5965@lucifer.local> <21d90844-1cb1-46ab-a2bb-62f2478b7dfb@kernel.org> <8856c839-1a94-4e4d-9ded-d3b1627cd2cc@kernel.org> Message-ID: Subject: Re: [PATCH 3/5] mm: export zap_page_range_single and list_lru_add/del From: Alice Ryhl To: "David Hildenbrand (arm)" Cc: Lorenzo Stoakes , Greg Kroah-Hartman , Carlos Llamas , Alexander Viro , Christian Brauner , Jan Kara , Paul Moore , James Morris , "Serge E. Hallyn" , Andrew Morton , Dave Chinner , Qi Zheng , Roman Gushchin , Muchun Song , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Miguel Ojeda , Boqun Feng , Gary Guo , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , kernel-team@android.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-mm@kvack.org, rust-for-linux@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Thu, Feb 05, 2026 at 01:13:57PM +0100, David Hildenbrand (arm) wrote: > On 2/5/26 13:10, Lorenzo Stoakes wrote: > > On Thu, Feb 05, 2026 at 11:58:00AM +0000, Alice Ryhl wrote: > > > On Thu, Feb 05, 2026 at 12:43:03PM +0100, David Hildenbrand (arm) wrote: > > > > > > > > I don't expect anybody to set zap_details, but yeah, it could be abused. > > > > It could be abused right now from anywhere else in the kernel > > > > where we don't build as a module :) > > > > > > > > Apparently we export a similar function in rust where we just removed the last parameter. > > > > > > To clarify, said Rust function gets inlined into Rust Binder, so Rust > > > Binder calls the zap_page_range_single() symbol directly. > > > > Presumably only for things compiled into the kernel right? > > Could Rust just use zap_vma_ptes() or does it want to zap things in VMAs > that are not VM_PFNMAP? The VMA is VM_MIXEDMAP, not VM_PFNMAP. Alice