Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2638146rdb; Mon, 12 Feb 2024 11:05:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCgbNlQt0SIgRVIXXAfEIySprYVyDrvPMzRqbgUVy3gPftrvTzpxJZnXPRMX4zRzy08DLP X-Received: by 2002:a05:6870:5594:b0:219:3cc5:4892 with SMTP id qj20-20020a056870559400b002193cc54892mr6516517oac.5.1707764724695; Mon, 12 Feb 2024 11:05:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707764724; cv=pass; d=google.com; s=arc-20160816; b=NQZBJY/rmTzv9jJMJgUEnW6O6zChMDRfiXbKbW6mk+HQQKGV/q8zFsbADesovfR9U/ 8jmDv5PGVD9dZudueV8Y/7v8vWmglELVXr3PG3zrcV5eqd6HBOMYJRlNTC4wEhy0NbHi httpfqDV1/GJLPf364pa2PBefiucjzrtn1I/Xm4rZqZYmdFojCuzFLagYXHVeuhYHk3n 0xFYqbiLpzHXAPLwaeisurUtjmSpa8uT117DCnH0LsHeBv86knZHhd/D0Rrs9pAIKMuG 8AuNwG6uZ314rtUEcHUUyZF2nm0UnxxH+di79OeB5OJ4GmE5L+f0580U1M5e+/eyl0ae K5Zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=D9Gd6e25cxmqAh8U9n9pGGxOPN3zPyZPlpWz7dOHdE4=; fh=yE1pzm6SdxyBPJ80htj36EA3VGZqck/QmvQiXwlPhLU=; b=LhSuPezKX/yLGd2dSdkOhNauofLLKmUz3voU72IgGi7YlPZmSGbefCHwM2F5HwNF1l qpj+AZj/ySPyg2SPPV5RCpQL4ypoDm+SLeLBD4zhN9o+zGTJVo2ftkVUOYDGUD/M7wv8 xur5fMl1HmKm93y5RvKnc5QW3BL63d7/saE/Bs7bokGcAq+75zggjNOWNyzJ7NDmDm/s sPlikx5L6argEArNr1aZk2+KCB38kZu7MhaCtE1hFtMOkMZ4BhntXeV9bJRtDjwOAbhE +VTO8JGTLmecNh2Impi4mSmGCsCR6dcvdW2UtEwzcKlrL7k3FnaQOYgkupJjCX+xk0Iv 1rZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=awPsLnk7; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-62253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org X-Forwarded-Encrypted: i=2; AJvYcCXaDSRzivNVWOWybfoJfLRscF4W2EwXWnYWJccDRPisY5FF61DvcAt4HiWfA4eqdr8apM+iq3uXcdlv7GHlrCwRGvTJXkNOrYEAX3UpcQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i15-20020ac85c0f000000b0042c4a131193si1166888qti.362.2024.02.12.11.05.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 11:05:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=awPsLnk7; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-62253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3855A1C22883 for ; Mon, 12 Feb 2024 19:05:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63B3545BED; Mon, 12 Feb 2024 19:04:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="awPsLnk7" Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 3258147F5C for ; Mon, 12 Feb 2024 19:04:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707764687; cv=none; b=d3LtkVG+Fk7QSwKAWD6cKu9Jm5ZK/+Oa8JO3p3ZZfROpb1a/5u4AifPr932Zqh+dOvKH9qqN7drqJwsgMJ1VcTsUisD/abvSzpgg2LQzYMiho9OVdXFzCHq+NNavESDpXTra6BYXOUM35qKjVhrlZRNNEnPdci4bN8jGA5V+B1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707764687; c=relaxed/simple; bh=JDED9rl16er8c+So/YGwFtCazDQgvh4XuGZ1wW/Cd8I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QiNM+wPglp/08HpaA1/exLGu0JcN9qOTQqEPmvHFbMTqiCUP8DAJB/cmg2hUqe4lMQqqNwF6cUEo8BkIO9iYSRT6S7dkOJHwCMRm18yv5A3MD3t4CXiDV5W46mweIHQkGFvvYsBN8Z3MVxOb5PLdvwNaKpAYW85mZMUiP/+n8UM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=awPsLnk7; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6da9c834646so2935996b3a.3 for ; Mon, 12 Feb 2024 11:04:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1707764685; x=1708369485; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=D9Gd6e25cxmqAh8U9n9pGGxOPN3zPyZPlpWz7dOHdE4=; b=awPsLnk7xO4eg5U+Tkro7h8nsbCX6ICaaRuA4uBXfqRNhDTElFORd3sn2QpdsjbEwM 4iP8ffzhXYNBBxNTw2W4y5zaQavvJBq/heMzJwo1+5e8CTxc3lboH/whyFXhbCx6SMDh LKvaRAcb1/14dgikLMzPSRatIzNLp2sQ//5N0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707764685; x=1708369485; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=D9Gd6e25cxmqAh8U9n9pGGxOPN3zPyZPlpWz7dOHdE4=; b=GPn2BYbNpQyRbo28PLYetdw9rUUNVr09qJ1Je1YecyNM9dFKRDZHE2MI7w+0WIcCpu 00z1UWFZRDtqdjQ7iYrxAQzXyOHxN+gRhrdr6QLmFnGWTbaW+rMhtpWMEFtAzaWwCI1e lwxNO7vK5aE38mbGIY4w9C2eaXis62t4yRIY7sq2QXNQx7JI1ryaT53BFZHvCNwXQBON Oiljb9c7344nnsh+dGtQUMY0GcUBMMZm2lMI3pQpSIDYcrQwOk4wwsCieGTEk/X5omEt s18yLuGDfXIdvg9t8DmqQXbUhX94xKE/JOs4yeUgpXnDZMTwb2eryvHtZGPXuyx5gc9v ZRUw== X-Gm-Message-State: AOJu0Yz0WWWDgWslXU3mTX70fzpo/90xVtCsmxrvBpTI2zIDaiZi8kXS edbrXfywiYKmgJEZLzUzr6NcAdhItLPkqNw7xN+I8njyw7EyTq/EgRnM6SqFKg== X-Received: by 2002:a05:6a21:3483:b0:19e:3654:7d18 with SMTP id yo3-20020a056a21348300b0019e36547d18mr9708752pzb.10.1707764685511; Mon, 12 Feb 2024 11:04:45 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVO36wXJ8WF/oPUZEEFHM50EauKzF40TtKrdPyNMlGVlpDVNdEQVzaf+BHz8hXP5ZhzX9QvzEGON/bIfoHGREsez1nnyFc5iQkIVKhJHIgDw361aU1icXsRc7ySM5b+39YHXjyHYGxgtBAZ6WkkJ1PBc15aXHr0HvH3BGX+dzpUVCLKhRQE5qSFYdn6nrz2Jy+nZRRrlLOsdDVNIb70suywLv4VsjK3a4+tF51PlwNvdLep5NC4bRlMBct0WDJM2oCmAlteto0wc19cB8l17q+zgDJIiaI= Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id t29-20020a62d15d000000b006e0a55790easm5079811pfl.216.2024.02.12.11.04.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 11:04:45 -0800 (PST) Date: Mon, 12 Feb 2024 11:04:44 -0800 From: Kees Cook To: Marco Elver Cc: "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Vyukov , Alexander Potapenko , kasan-dev@googlegroups.com, Matthieu Baerts , Jakub Kicinski Subject: Re: [PATCH] hardening: Enable KFENCE in the hardening config Message-ID: <202402121104.4A87C47C87@keescook> References: <20240212130116.997627-1-elver@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240212130116.997627-1-elver@google.com> On Mon, Feb 12, 2024 at 02:01:09PM +0100, Marco Elver wrote: > KFENCE is not a security mitigation mechanism (due to sampling), but has > the performance characteristics of unintrusive hardening techniques. > When used at scale, however, it improves overall security by allowing > kernel developers to detect heap memory-safety bugs cheaply. > > Link: https://lkml.kernel.org/r/79B9A832-B3DE-4229-9D87-748B2CFB7D12@kernel.org > Cc: Matthieu Baerts > Cc: Jakub Kicinski > Signed-off-by: Marco Elver Thanks! Applied to my for-next/hardening tree. https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?h=for-next/hardening&id=1f82cb2f3859540120e990a79abfee8151ea6b93 -Kees -- Kees Cook