Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp941809lqh; Sat, 1 Jun 2024 02:47:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUolTeiZRNWC5hG+8wD0MUJ7TgLKZv2b84jgeagrPgRu8r2/wcvjB8GWI2PirWshKd4qmTMHBUJ6pb1M0nJ9CrYmuATthHDe3huk8k6qg== X-Google-Smtp-Source: AGHT+IEXhwxgmKfAcBcnJr3lfmq6EpONbRb+ZpCQKNqX8by548e3CVYLARH6FoQ/p1IOBi5o4rDC X-Received: by 2002:aca:210d:0:b0:3c9:925e:16c7 with SMTP id 5614622812f47-3d1e35c4f93mr3568035b6e.55.1717235267754; Sat, 01 Jun 2024 02:47:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717235267; cv=pass; d=google.com; s=arc-20160816; b=jNM85Z/RFfCuTa+YJzvDftNRnO3SDcRZUBjqIv4VLWR0EjVaJsc4g8TNNCDCw/0a7F OzDCWKhdu9pgu8rgxD/CHprpey11ZBICtOWuB+o7M+PKfbSAs6HgLoBBvBXeqcxvt08X +Xs8VNmverYVPaxd5AnwkJkKBjqZNVeNVQuu9m36EDEg1tvOAkrIKhb7zCzQAbIfTppl 8jQZoDFwGx4KAPLFVzeNLv2Y5wZydx67s18cjmZncXljsZLAUECc+p/a4+oJpsWFA8dG zpd0BgS8EiFjsuYKorizwoUOkOw75D1bFnt2Okrz304RKW8eMbRgJbkEtjArUMtA/B4U ws2Q== 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=2eSJr/KNAbeYvj9YM7r9Ad2wggiAI2ZKgJwZBFOE4BI=; fh=+ZsBY0oF7vKztuS6Sy/OFS7d5Pf7oK+nvXq74N6jscg=; b=ZqKfSlQe6rkok6FyFvKJhK4s3Qddu4x1D2mWe4WyQUF1EdwldL/x0RwG+WbpC9q+Gg FyREsb9c3U6NOWT+PjWDYj/CCzZSpW+7MLRYF15IXZBkXWDfGS/r4zsVzAePgg+GOqzt Bt+cqXUwV+849pxuXaPeHqeEobxCYjzPrpTCBqnYkqrTLi1jRG4TS+krFxvCdT1GtXDe d36H6SmSjhFhhZYsjfuSTTQ7vjkyjH5EOmvsC8/VRYXDQQslOjybkmPrcb1xXgZ7uZif EioGP27X7PHRajL4T15CXr7Swujc8yc1Oqag9ZaPogZe/67/FcNr5mWnjHWEIsA1Cm20 7xBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=exWSKQon; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-197468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b403cbasi40723476d6.281.2024.06.01.02.47.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 02:47:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=exWSKQon; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-197468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de 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 847E51C241C1 for ; Fri, 31 May 2024 20:50:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B27265674A; Fri, 31 May 2024 20:50:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="exWSKQon" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FC6379DC7; Fri, 31 May 2024 20:50:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717188611; cv=none; b=QC5IhGIWWTXOzWCJKC2LI+qRnrgieq/xRxG+0nBp1te4fr5Fizqe+gMIyY3X+q5K7mTgIraRj4iJxPy4RWhiX7wNdmVSkO7aBt2VLAFXqDKQ7D2X2d7VmoG+jI7e3iEO5jLEeF+dovRy2c6SIuTOBQSzHw/sXQoZNSVod+aKR7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717188611; c=relaxed/simple; bh=CqlIzLo28saVuf9DPW5SY4U8PePcJgM43whMLoV3lrY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XYZ941sLRP4/Yw3wR0L2Ai/W94++8i8Z0Pe0bJXE8yHJG4VUS7E8IfDIL7HCqBhskOBeP1FmgJMONuYfErAOqIk/6qRXVSW+Auxcp/Hkc2wJ6nYT160EfxADYVftmDT7/L4d1EMbuhgzOFM1Cq0rnpYQPGdjDCMlysTcZRJl/yM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=exWSKQon; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 45DB340E02BA; Fri, 31 May 2024 20:50:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id glGpxI6KoY2X; Fri, 31 May 2024 20:50:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1717188604; bh=2eSJr/KNAbeYvj9YM7r9Ad2wggiAI2ZKgJwZBFOE4BI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=exWSKQont0SSjJ4Q+5EBEcsbrJZ3Y82KeK151Kt49xsWaE+8KHEzOEGWxPmDm0SUr ejxfRJwoxK5jF/w0XDarZmUz9HZ3hh08Ma0VFfmx6NnHQvnXCvaukvakDRBnw3ioSG dkCHJm7xsLaXpGUuh9fOIoIySoemnVTd/bBmMyQB4iY2y/O6EJGcIyvDfYS6Cv5N0I j3hON/a4AT6Xj/4QWDe39scfvq8iUOzOrLF0ufATlBKTDzPd2wlmJQC06RmhBaHvm7 sqtD30CBDLVo7CHtt47ov8qjOrLwkSBzS4t6GrSn/U27BJR9DCLM/6HNBlLFNTjWHb 0VMY6/u06gLDQjSOtITh9T9dGULIWC+00FsRfU0UG9WLufO0kaj8qPrAiG9Vpol7UW FUjeQ/R4Rw/CROk4R/s5FD3gi+Z0ENuDX6B7YJrfl2BP9985MQ4p5zhDctnElyrkZt fvzzq0xnfl+MioiVyUhHYP21whoTaHqUJNxAhauGfmDXgNE0SziR9inRm/nuuuRWqF rD3eITYn1WnXSA2iq1vL7oMqoJB5M/vq095HPhEQOa4voSKwb6bvMTSI6SuIZxPsLN VyV5AdGzOBdFoKy0SnyKedwgJ1KjkewcLUxZ3Pq5Gf+nmfMQt9U8yAMpzob30qDgAY wSw/pRhVixcRVIqP19cXVu0w= Received: from zn.tnic (p5de8ee85.dip0.t-ipconnect.de [93.232.238.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 1A7C840E02B2; Fri, 31 May 2024 20:49:53 +0000 (UTC) Date: Fri, 31 May 2024 22:49:47 +0200 From: Borislav Petkov To: Kees Cook Cc: Jeff Johnson , Nikolay Borisov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] x86/boot: add prototype for __fortify_panic() Message-ID: <20240531204947.GNZlo367G0YXVbOk1I@fat_crate.local> References: <20240529-fortify_panic-v1-1-9923d5c77657@quicinc.com> <0d3f7c58-7fc0-4e8b-b6fb-c4d0d9969ce7@suse.com> <5658B525-6642-43A2-B14C-BC4AA916FBCC@alien8.de> <202405310951.56D9BD5C41@keescook> <20240531190816.GLZlogIGgpc5maOeLN@fat_crate.local> <202405311345.D91BF6E9@keescook> 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=utf-8 Content-Disposition: inline In-Reply-To: <202405311345.D91BF6E9@keescook> On Fri, May 31, 2024 at 01:46:37PM -0700, Kees Cook wrote: > Please do not do this. It still benefits from compile-time sanity > checking. Care to elaborate how exactly it benefits? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette