From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (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 21B743B95F9 for ; Thu, 5 Feb 2026 12:19:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770293965; cv=none; b=KhS5fk1kF0UsR1kkzlPPBnV6zu3Kb3Z4lvAFj/ajchYmxFtR1Q88vUImEF8zoUd6ic7izxESGzLxXdu+R8ZVbW26xY9/wGai/FCai2DAPoI3mWgjCDoz4Y0Nbu0sd4sVQ7qVHt4+kDZTVB/GuqgBy5qrs/SA+kgiX2GeEFI7C9A= 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.73 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-f73.google.com with SMTP id 5b1f17b1804b1-483101623e9so10933595e9.3 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=gikTnGbQwkTqyZgx4nqaj8AHsJ2mG9LR6nfLTFLdJlpQ23FVNtHi7fuUWZyM6P16Bp i9uhfW09PyV9slAAO+/oOfWYlBGH9sxygoS9L9YAPeJ/AAfaqNs0z8IM/A56BwHnG7A/ jUd0hxsee2JVvSXV7OdP+du3EU/akvyX6d4EXyzCSw3Joytp2dF7pt5hnpj6+PflHhT9 QxM5kHKcLjA1Fe0GV7mtwleHZWVS8Mh9XQclrgssjEb62rwzI9ccd/oeLNZxdKniRQ9O 9V7/4uwGanPLO2Q0XM1xCVoZ9iyhCDU5U0p5RGg9CcFoFB0/fcBbNggHtbzFOHFoyTNG UEGA== X-Forwarded-Encrypted: i=1; AJvYcCWUqYIMINDV3DfcsCH0aB2k3vY6MPd3iJeiPGsOXFwzVvJuAcUdn4HY3XhdLPFCyK+s0CTwVN/pAX/X2FIn@vger.kernel.org X-Gm-Message-State: AOJu0YxTy8XOIu7v/p5U8gQl+yebXBFd/t8oRL3iBVjQd/uJitNx5g+T KmOQECXcXgng+57oIjx8l9ROJJN03WLmbksoBB7HedWDk4zpTOBYoqF1pIMpJxdjdrTCXlhF2e2 q1WEWoRusVlxfR+XUHA== 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-fsdevel@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