Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp926840lqs; Fri, 14 Jun 2024 09:25:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWX7PU7fEbnnbJacmldLsnqs3tMp1QKgyYMgiKCnYZLdgrGVMUJTJh4n1utP4j4BzR5w8siqZQVp3uW6Xze8ZIdYpc9KLhGaG2Y7XW1jw== X-Google-Smtp-Source: AGHT+IHCQ2fQ98lsuhH1Ugzu53hPUWU2RYYnNMbf7pHqSXQIfWt2DhdiV6an2jZWNcFgqssaXIwu X-Received: by 2002:a05:6808:19a8:b0:3d2:1dfb:c5a5 with SMTP id 5614622812f47-3d24e8bdc66mr3011969b6e.2.1718382346512; Fri, 14 Jun 2024 09:25:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718382346; cv=pass; d=google.com; s=arc-20160816; b=Ak3oAIFz3ExsdUOce0c/X4kpSs3nIBWLqb9CTz3x48B57IMJNrxibDK0JSEyByTOOi KaW1Ng/bqSnn3vzLocGvw43ToVzrNpEjb1U4RtD+8kHGSBlHiTzGnybVkrf44oLFsltY XaH0pdE+usOKhxjqOnuWlFKCdaREtG3p+Ik6TDcYldACapgKNRBjDvRzC5UrGtfEKyuZ oELzuXC818w39nEtFGSGchJFJ4aYXzDsgDMx/L42Tm5uT5M/cLB/g8n6bh1J8tczwQ/0 Eefq0w/3C1SfIq6mbWpExWEGRxnp4VwzUkD3ELQt+5dzYmH1OSIg/lHwKPkQZThEbZD0 ngUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=aIk7R4HvbRe8pW95wqhJ7pleR+j0c/vPQE3pE+CqFPg=; fh=1RdzwlqYiPIxXYjoL6EzERuHN0iFlJHyxNK6b/EOM2U=; b=t+ilUyltdoT2NuCKbXZDpiYA/YLUCVM9xSq+lG0lorZpRpAhugKBG1I8Bx9qO8Ixby 5+NEK7WOrw/H2NnJsBoep5woPCz+D7UQ2ej0px1f+xYDMrOSSkwfLhj7+XAW5epTv3JD Mfa2IxBx+3Bjn9I2sPHm196KHpqSvr4vcQBVFBmixBC6GCueQ8So4gIWd1zYJ3BPx3yT ceZZihZGRwmaifVS4cJwO30AYm0RIsl7Th613xC02r8N5vlyO1GU1KI4xgisanX9pTTV QHhGzrcqGiHvnl3d7A16j1v2tPYbGHeDTKH0LHVvp4HrYUeUwnn8Sa2wvOJbGP7vXAgf 5rMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=tP8ukyDI; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=XTu45PSU; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-215237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215237-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-798ab90353esi405208985a.300.2024.06.14.09.25.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 09:25:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215237-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=@linutronix.de header.s=2020 header.b=tP8ukyDI; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=XTu45PSU; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-215237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215237-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.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 234041C20E75 for ; Fri, 14 Jun 2024 16:25:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BF40195B01; Fri, 14 Jun 2024 16:24:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="tP8ukyDI"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XTu45PSU" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 DF10C181CE9; Fri, 14 Jun 2024 16:24:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718382289; cv=none; b=LHh14AIxGaPn3C9VKmBpOYDABfRboL5esWMqOo9DQjhZ/9BKMe3TmRdS/XEAFIqcfPYbvFTyWrMcubNzG3ASmeQFym7jacafNUfcUJcshQ0y5S/e52sat9cLBfUlZoOG2zHlMvYwoLFGAXoGHeWtikd539kQZC8QxDYTtslKpLA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718382289; c=relaxed/simple; bh=o+ijjZOZoIvyLHRcTd8AOdZXd9lOhdvQG2/WHdoECJg=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=SnqePOQbTJNZagPugn2LTCWhyHhvtbdnkUzhhOWskiVn+kvO46h5IgYOWq638DDZD/OJWpy+oCOm3yB6quAfKOVfddPTBuVUvnmvbzI2SsSG/zcMXWiQKHTFuz9Pykm03+ZFqN7bCP2lcHK1t1HhfFJyP4z8PwktFBVLqZsaUB8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=tP8ukyDI; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XTu45PSU; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Fri, 14 Jun 2024 16:24:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1718382286; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aIk7R4HvbRe8pW95wqhJ7pleR+j0c/vPQE3pE+CqFPg=; b=tP8ukyDI4dIuhLBrnlnUj7Zr11V3/8Xjd3Nry4sMqPyhlHqQVFiyfTKKROTj6f4y8EoRt3 eFrZbzn/Z6IxpRJOe3fx0z0/DzXMeTNLRyt7exCJcfkjW4j8gE0cbzDa83uBo/Ujv8aFRP yK2+EgQffeCMXn9xB8BcS5SioIMcwftFFhFy7MHjSJpo7PG3uxG9zcx8imCdX31KG3wCR+ NTsJwX0gTKOhvXRwQTNxMRyPFp6z/ufBuvmVmFle4onmpcBGa4B7uRSJTriFMfR5mZQ9ai 8fGR4lAaKuxGYkh5Owl2GVbHqDPy2AhWkhBvq8okKiSujVTCIYF0i/uFeOyH0A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1718382286; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aIk7R4HvbRe8pW95wqhJ7pleR+j0c/vPQE3pE+CqFPg=; b=XTu45PSUrPJ7uANSLqThGIbfvZPlzRdBvgUyERSJRCBqtrZ469viHNMFKe3YcZbk+bHkVr 4d5FGn5HECyQg0AQ== From: "tip-bot2 for Nikolay Borisov" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/boot: Remove unused function __fortify_panic() Cc: Nikolay Borisov , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240613110837.300273-1-nik.borisov@suse.com> References: <20240613110837.300273-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 Message-ID: <171838228550.10875.5357369039737552236.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 71315037cb7d40cdb2f4fbefad31927f6e6caba5 Gitweb: https://git.kernel.org/tip/71315037cb7d40cdb2f4fbefad31927f6e6caba5 Author: Nikolay Borisov AuthorDate: Thu, 13 Jun 2024 14:08:37 +03:00 Committer: Borislav Petkov (AMD) CommitterDate: Fri, 14 Jun 2024 18:08:45 +02:00 x86/boot: Remove unused function __fortify_panic() That function is only used when the kernel is compiled with 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 remove it. Signed-off-by: Nikolay Borisov Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20240613110837.300273-1-nik.borisov@suse.com --- arch/x86/boot/compressed/misc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c index b70e4a2..9444543 100644 --- a/arch/x86/boot/compressed/misc.c +++ b/arch/x86/boot/compressed/misc.c @@ -531,8 +531,3 @@ asmlinkage __visible void *extract_kernel(void *rmode, unsigned char *output) return output + entry_offset; } - -void __fortify_panic(const u8 reason, size_t avail, size_t size) -{ - error("detected buffer overflow"); -}