From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796337688; b=XqK0ZhzlajyRwoQeyeK0vp/NCAjQm6or8BaiygnvFmz2lNudijdMsEqdbtecRI8BvgvO wHL2dkaYNEaqvaMJqfBlTE9pyaEI6l5iEiYnVOpFwPllDA/iTKLjzP8Mxyin5ltk1bMhv iDjKhm8/kMi+DHGzew6vDmXhkgHSpA9ThixdtieNAl3X5Q7EKCf1p3fTf+x6XAtDg/ZvE uR7nX2jiO65S0BzOX+fetE2sPMo+h/aHvemFWAB8xwhd+4TJnVSCT9zJvR+OTCvO2L754 cts5IGXcSh5w4HuiRAFUCUXGZUFDUQhuLrNKX+ZFa5W70YIV2+fzokGpAD7b3YyR6xQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796337688; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=UrHR8LNGnYd146SrWaXr8GqMb6OLDRb5bA1wCQMI84k=; b=mymojWCDEn9ri/TAUwuIrbtuJQQI/s9xamAk/xc554uIqvcNsdp00mkCqdCJhzlphCPK NQciid3DvAmBO7L0+/tYB3jSZKB41fsBdXY6/ehqV/1e3+1Q4soDhgdCgtupNO1/hKLlH 9QKFSRw5dV8arFLpR+6e7HJQzgYeRfn7dioUdzDMwrH51pPBNuJdy1KTi4HsjRNngz+QH zrQ+HIMZ0gs91SAvUxRTozxAx1gzAbWp4I9ivXTHQtkmm2iMwgEYT0F59NRxWLEMuI7dk 2+7mu0vaddO5qQHnOR0UdQl+9qAaJ/H+mhlZ3V0DqHPbRT46t3EEZkoaio9ZlMygcmg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="grmUTm4/"; arc=none smtp.remote-ip=209.85.128.52 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B85BB606A32D for ; Thu, 3 Dec 2026 22:41:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B85BB606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=grmUTm4/ Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4b467581b98so2032065e9.0 for ; Thu, 03 Dec 2026 14:41:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796337686; x=1796942486; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=UrHR8LNGnYd146SrWaXr8GqMb6OLDRb5bA1wCQMI84k=; b=grmUTm4/tvXjEYjNYLs8J7gxrkpryxwx16WBVThLVTY43c6a51p+C0w7Xf5q+2pxiW mUbfOEULlyi0nXoxStsipVRH3gF1L7Pe+PXKParw+BECSg6NUS6cIIWn2CrMUAeHlARr VFdAJBeeV5afA7UYJ/9paebGSw55jSCSEhFnMXFdZkJHM5/hsnz0pLZsylAtLGDiG6NG rE/GEC1aausJJsnfZQeUzMSc2DgyH8pKdpbMp1TCM+fHKhDK0B8FS6JO+d1cScMMrSMz LkkR8a4RDqPnKsPRffpD2JrQhNVoigQzi9TgGfpQ5mDsiU2KrYRNBhWF+cy3mJjYnNmo S15g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796337686; x=1796942486; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=UrHR8LNGnYd146SrWaXr8GqMb6OLDRb5bA1wCQMI84k=; b=amxGbu3621XDAwPvCBHB//JPM1JdhrmKoGOrtcJB83k6NdwEA10wGZ5ssFnsViRtIX Z+i/t2fcus+3fVuzhIfhaz8HIBE/KiFPsI722W8Bd3BAerJ2dxCO9utB41NoZjpkn9SG vEAk8axn51T0TLRX2Jx5GxIb1IfasmktYcxMry2PcvQLG3PMeBJBE7mIooFZZ36gGHPq q24+6M8V4+WlzZfoAnXTU/k5nZoio1Kn6RwhkGb4223K+jYV+Aar7JNh54+SELp0foU5 IAHGGcnDULl5/+7hNSkjsr68xpTZXzvbeamNJklPEdKyTiEmxdPH3ulXfYpXYJIxpkc0 OoZw== X-Forwarded-Encrypted: i=1; AL+hErFX9I5wRwDalZlXxXR7oOBrSr1qviLmHZM0HeNfMHveMUkfq81HBVQu/H3Oqdv9IK7WOlv0/3nw0Wc=@vger.kernel.org X-Gm-Message-State: APuU4Z97aaxwL5X9CUSDdwpxSVv182uNaGWqBEaKi0WWf2qrQYRdy8b1 mclUYQiJ7stpNaHf3WCqYY8+G+3k9HLlF6nBZoRxJSlxS9qWNNjGDd6d X-Gm-Gg: AZFdTZe0yMODloFH0d8XCgMHCqgrLZJmtDkGH+q1fPZvCz3M6Svg5t75I4Iix5r2e7i TDFk8/m42hUcLWrPIO8guaTqQKKEC7Vz5/VmQ9gommYvj8+xKqbaEOTfY6tocCFWYzD52eHsZ3Q A2ahj2qdVtt1nGpnyh+WwomHbBF/ApzXoM2zbJFCsMMpQNgvRZYoRFIGYfysX5Xdj0DCyawTRpU T+bsY7MPzMw54bxPMvee61KipDJ57OJXrmgp5Gp5hJl9wbuHi7R87ES5W8XAcsYGownRbxX0Gwc E4o+7hJbJEtYlUl/d0l7IyUOLJDdWlWInKruj374BUeKGV+J45/nifoLUsTgWWrmJoZo/SFrunN bAMIjU+zSu2HBF+XoN5W075k0PYNe5kt9K2pfZGFv7Dsb9g4AZtZ6Hjo69kMh7p4sgZybOIflo/ Jc3zye2/uK+Ain8Q+Wtoiayx46yqvLF/DMyh0V1tOCNwauBp9skjh2elXoX5K42Rr7lOS3N4XnC 9gZefeUZdKSkNjKfIycNNlKuxd4xPlMdA7ZrPgawNw6PYWpMWSNEV3A5PTA//ax1MBDp49h3+fM VjAQODqNBVONrnlI7AgJGLSFxC/P5BWO76+VPLVb0NWZ+tt26SrHB4i47zW9rvnI X-Received: by 2002:a05:600c:354f:b0:4ab:e27d:e241 with SMTP id 5b1f17b1804b1-4bbeb8dc31cmr1391625e9.15.1796337685943; Thu, 03 Dec 2026 14:41:25 -0800 (PST) Received: from pumpkin (82-69-66-36.dsl.in-addr.zen.co.uk. [82.69.66.36]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbe06edeb7sm175410185e9.11.2026.12.03.14.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 14:41:25 -0800 (PST) Date: Thu, 3 Dec 2026 22:41:24 +0000 From: David Laight To: Chris Down Cc: Marco Elver , Alexander Potapenko , Dmitry Vyukov , Andrew Morton , Jonathan Corbet , Shuah Khan , Randy Dunlap , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@meta.com, the arch/x86 maintainers , Peter Zijlstra Subject: Re: [PATCH v2] kfence: don't allow static keys mode on x86 Message-ID: <20261203224124.5377af4b@pumpkin> In-Reply-To: References: X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; arm-unknown-linux-gnueabihf) X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 02 Dec 2026 14:48:21 -0800 Chris Down wrote: > Hi Marco, > > Marco Elver writes: > >Having pondered this a bit longer, I'm quite split on what to do. One > >option is to leave as-is, but does knowing it's constrained by EXPERT > >cover the case you were worried about? > > Hmm, let me think a bit more about this. I agree with you and Peter that > losing x86 build and test coverage of those paths is a real cost for the > architectures that keep the option. > > Thanks for reviewing all the versions. Let me get back on this once I > understand a bit more about under what conditions this was set, and why > some tiers are using this. But for now feel free to consider this not > needed to worry about :-) I wondered why it was done at all. I can imaging the static key being used to enable/disable kfence, but a single extra memory access inside a memory allocater that is running with 'a bit of extra debug' enabled seems unlikely to be measurable. I was more intrigued to see that is can't actually be turned off, and seems to always be enabled (some time after boot) if compiled in. David > > Thanks! > > Chris >