Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp491093lqp; Mon, 10 Jun 2024 09:58:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1p3/Bnah1BUtwze5m9RZWwM53O/JTW9d9MMYXQXvmIHxvaTpkfggMgUd82no/ogZuOgrFO8s+8vwjK0YUgEvhPSrIg+rxrVAVKuHHsA== X-Google-Smtp-Source: AGHT+IFqmNn1ZPKeMfGEJ3lk62BKNIsnbU+CSiCvss7AQ2SMsnLNo/kj2HCp7l6zXpZlJAKeVBQY X-Received: by 2002:a17:90a:f604:b0:2c2:e435:774f with SMTP id 98e67ed59e1d1-2c2e43578c7mr4917360a91.10.1718038719037; Mon, 10 Jun 2024 09:58:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718038719; cv=pass; d=google.com; s=arc-20160816; b=n/zxQhUNIMnjYqiyouoWI9OfXzV28vWlN3n//i2FLfdHcA/lkOpx5e1tyUBQz5ew58 ptr8dLj2NOkFhFrSVnYMM+n4tpxwW6Ou56M3IUmYtzR45405vjryg8S1IRDRvOsVfv29 0/azJnTu/0eqacREysqRSV5gyxzlmcvlz08L+MqdfRadep2zlGC6eVTG5EFpx4xQHWrO ekkifJb4Tei6oOzrevrgSlImUGxm8YRJxZZZcKxMPzp/VzINZ0c5yXQcpYwctOsXvlyH M3NLOxvemoAhES7eInRrdOGUVGrqwVzUE2nEVSUfmFh3u3yVEMInUQTARDUMCC0zo3Rz wCVg== 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=PX4lzbqfUw6c6qfToKtLJI03DW8O5Lp76nqw+hcKEJA=; fh=jRlNRouyVL4xKqIyxgmyyQRPml233cyVRZ5G43ERR1U=; b=Alvk4PAk+HddivWoevWmD4qWq4HMQCOeudE7jebX1h8Vg+atxFo6BeloLzlnl8GiZE gyyUUoD8DAQg1HAa5SO14k8TyBV3zr8dwpQ1/tSc39EjW2KENDbxgmg3jf+6ugUo+0Hc NGVcM7rWnayOxn3gQeHQQXfMIKx1kNM8/O9S5h6mIQxCv4R0bL3oIu3XVV6mAuDRFYe2 NeyIn+3oauMdXGdxWtD7asxBQV5qB9dEK+P+MOI3Zgg5zYN3deFVzWNasd7pJdzDx9YU sVrwCqASBvwZdazvtZ8TwCNGUQqtsNE02BA3i/lSdnCI+u7si+0KqtossEapIWIG8xiu pvWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=X7KHTk1Z; 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-208554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2d113a288si5211644a91.150.2024.06.10.09.58.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 09:58:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=X7KHTk1Z; 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-208554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208554-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9DACFB25E2F for ; Mon, 10 Jun 2024 16:29:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB1BA143C4E; Mon, 10 Jun 2024 16:29:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="X7KHTk1Z" 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 57A6514389E for ; Mon, 10 Jun 2024 16:29:38 +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=1718036980; cv=none; b=BU3kXXBK52kdVCVPVCv83UaTjv0D47ztiFd3BPJFH3oWYpCLjjwF731gDprN2AVyMvxrs8FnNHFJB3jqX81y5HfdP7++f+jAoW5lIWRryxvKpB7HCgSE39CuSs3Bl7rpGFSnjDamFYO4ZwW0G/sRgsNF9SAdQHa8W1x4LmNvELk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718036980; c=relaxed/simple; bh=KD17DpYA+Own+2mjA4cap4Dn43A4ySTl2BcRMlYQn6M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Iq0r7cXQ11igrJ2444uZmqtgZ033HUs8cOJ63POsK6T5GkkzjLMMPfgLAORi9rb8XSGcVQmpR1MQR4dnuwIkCKjLHc6lt3u76WSjCQU6IYvdlDb7TKVUL+J9236XLGtKko1VzH5HfAWoemQYSAnXWIJfIVHdh2ZXfbpLxVtIweU= 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=X7KHTk1Z; 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 33D9140E0081; Mon, 10 Jun 2024 16:29:36 +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 BF5qESk6-YgZ; Mon, 10 Jun 2024 16:29:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1718036972; bh=PX4lzbqfUw6c6qfToKtLJI03DW8O5Lp76nqw+hcKEJA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X7KHTk1ZOmV6ZnzxCNPgATfL3e6BlNcFu+ZWNUGSvcfOnr2WkMUfSeqiqkL1rF6fN aUobxa6Z01NcKqqgDi9EP4/NZWPrb5pD7stNHJBQBxTVqwrOh401E/eKZB2iF+7pQv BYALAllMfn62rTtuVIS71RBkdFZ83WVBg7DvLftV0uYvowaCivjR/ABDVXwi3uhPHY WVWukEZQrkax+GJHkCO5I/8PlqDp3lRCykFnW6wEWV2S4r9TWmhvLVcG0gEiulYj0y dvNCW7PwpZLW616pf56/qnEiUNFaA0k9+MlgkIb9sV6jST+QLUM5n5daMCWxXa/Ho0 W9nNtzwUxRBY1N1mQU5tEPPjaOj9a56F4DUcdPZyrftKBIwQIytYAtl/38SLmLfIur wY4qDxiCggAuIY41Sgn/8zBiF3cj009xw6zXIGIcwxPLHAQS2gaws3GMpCcnFEoejV 6SR6hgFMiXXMfBfjh59P8YfIUYXu7augzEsyyAL7k9nYXOJD26xhq8hy90zumQpS6+ l7TgARrzQXFKAQnw5P4f9afcFmKHj4ujNqup1XwY5Z9iRJH/6WGTSVHGIAKPJWxrc3 qaEgKowcS1BlsboKASJJaezOVyQzLXVEJQfmjCMSmWoWNUuut/hAMumJUIh+o+Wc+Z Zs5HAypeWLH8mE+JWElvgvlg= 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 D158B40E0027; Mon, 10 Jun 2024 16:29:28 +0000 (UTC) Date: Mon, 10 Jun 2024 18:29:23 +0200 From: Borislav Petkov To: Nikolay Borisov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kees@kernel.org Subject: Re: [PATCH] x86/boot: Remove unused function __fortify_panic() Message-ID: <20240610162923.GGZmcp4zRfJcTghSeg@fat_crate.local> References: <20240610115722.107780-1-nik.borisov@suse.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=utf-8 Content-Disposition: inline In-Reply-To: <20240610115722.107780-1-nik.borisov@suse.com> On Mon, Jun 10, 2024 at 02:57:22PM +0300, Nikolay Borisov wrote: > That functino is only used when the kernel is compiled with ^^^^^^^^^ Please introduce a spellchecker into your patch creation workflow. Like, run the thing through the spellchecker on the system or you can even use my python script which checks patches and can do that for you: https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git/log/?h=vp > FORTIFY_SOURCE and when the kernel proper string.h header is used. The > decompressor code doesn't use the kernel proper header but has local > copy which doesn't contain any fortified implementations of the various > string functions. As such __fortify_panic can never be called from the > decompressor so let's remove it. Yap, might as well whack it. We can always resurrect it if it is really needed as it is trivial. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette