Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1413635lqb; Thu, 30 May 2024 09:24:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHetZmgdZAkjeuxP6/hJKp72DmkR+FXhe6D09NnMQVZk7eDRK8uEFQCCvPzNlO0uaUxv0H+NTrP/UZmiMUP6ZylWBAHHOmJrsmpDimrQ== X-Google-Smtp-Source: AGHT+IHf8GiJvu/2hfkTNieLYQF8LGfkK6v9GWHZt2rmFObpZlqeEYTqIqHli38j+5B0uEId3f0X X-Received: by 2002:a50:c347:0:b0:57a:3046:1cd8 with SMTP id 4fb4d7f45d1cf-57a30461d55mr221628a12.7.1717086262609; Thu, 30 May 2024 09:24:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717086262; cv=pass; d=google.com; s=arc-20160816; b=0yO5TFWFHsoz1KWcyfWF7wfVDuC+J1EbM1Ifl7dfAo2Kv2qQI0dUn0uPehI0/xq21C nB7fpZrjUqEiNjhL0oAmFMSqfdMeHSDEUPpiDu0CtMPODLZp5hE2OaX43G3jkUkjYE8r MZNFduyKZoJylNmu1crydKlJAlyoX2jcP9GLi6zO42EzWtSnqEVbR5k79m1s5ua5YAwf 84oOEqpa7SDNwSTgbXcS1kXvV1bxBXuLoRVLCzhZ5qTOt2+5L5ncB1R7cjLfsDyme3IS YEvEB02zhbZUs/GcpaoeCUkSzN/ojREBVyMErw0OYzvlwYBcGUApmVhflA5wt+uvd1uv h61Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=fOZoNt0z7G/qYqANSDfAaU2dNxrMggq0DIG4LNBIFKE=; fh=29yKixK80RTfU6xaiOicYTZ6evdAxR+u+wRVqK5FVVw=; b=Erxnj6tdQE9wOQoOLDcxSNVgkSi2GAG6XKoB2vMCnQyZiAe0NJ+QNYxxSWh161KWP8 noQkqsPaFhSh+0gtyqI0AFb6O+TI50zwMSa5mCo3yAAJHZy3kVLBokiJZO3eKm7wQWVo bcmQzdDqAG0Y6yDYMHeAWA3amnUP8SYYzrCE8MztTox88ujRds+GSjCCqIAdH28RqFS1 5e1eOf0qwSN9WAWoVLyG6pQUF9kD2Ux/+bqWwukhELSmoRlWK6pT7f0Gvit1Z5vX8U6+ nlsuamHPAuj+MyOvv+aShlk2G8RcOrGDRQmlT64+5gnKKCrgJePG5sqIbkBzYObnQ9Fv cKTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=h9H3KcH5; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-195651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5785233144bsi7688328a12.132.2024.05.30.09.24.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 09:24:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=h9H3KcH5; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-195651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5519F1F24504 for ; Thu, 30 May 2024 16:24:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BDFD22F1C; Thu, 30 May 2024 16:24:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="h9H3KcH5" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 97CF51CF94; Thu, 30 May 2024 16:24:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717086249; cv=none; b=YPbrfNmijBiJ7QnYaguKxBJaxkCxUSPDNrASTAqoswlXiNywy2bISxQVxxasghy/Xl1Vlj1Ixxz/4m+LvaCrOvcH1gsNXCkFKD45mr2qCLJoNx64f5M8ChGo/+ewVs/zyxLxU40ZNHh0Tc2Ox9MG2F5sU22f1MfbBjA8z0p/SYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717086249; c=relaxed/simple; bh=aJ20LOEycqgOS0ntOQDxPELsgzP44QuoLfi6WOPQlys=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=oNEsq5UcysLROb6xpjjvbA8GOXXEeurrEQCX7D7WEVWybmDDfKrdy0r/Upv54JKgtF7eXwYkqBrQXNU+I5TAs+pg4eeFE4pZtP9WmyePRBSfZXimXlohimgEtztHOqpUd/ANKsRic43Kbfac0pdZf+T7bTmkZaz9murlydIK8d8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=h9H3KcH5; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44U7anR0005158; Thu, 30 May 2024 16:23:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= fOZoNt0z7G/qYqANSDfAaU2dNxrMggq0DIG4LNBIFKE=; b=h9H3KcH5D4cuq494 y6h0Xjfpxao0mHdUAMtvcoLgXq0HoljKcCKoWWJxosUR3qGXOJtq1aIts4soI+zg jlhApJBY93tn6DvfRhYq8SlLA9jU5aWJVW0hlVdBdUWuVwuHAu7oCP39GAWgDazy 9CX/S2WTjL4WY3R7S5KCmhvTbZKqRxFG/B/G6JDIkc4OciSCVVV5dIImWRxRFCij oZ6oN1hunoTSRFfjCbTyTAInYlnIUDAYcM75XlRTPSjsw75JQ3pGczqKVR240Q0I mAQ0+adr5yC7UF8aIregIpMKtAGgIpSLLwrkEDUxXQsuI48KSTiALniu0jFLIZLD vKPFKg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yb9yjcnbq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 May 2024 16:23:39 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44UGNc9p014949 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 May 2024 16:23:38 GMT Received: from [10.227.110.203] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 30 May 2024 09:23:37 -0700 Message-ID: Date: Thu, 30 May 2024 09:23:36 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] x86/boot: add prototype for __fortify_panic() Content-Language: en-US To: Nikolay Borisov , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , , Kees Cook , "H. Peter Anvin" CC: , , References: <20240529-fortify_panic-v1-1-9923d5c77657@quicinc.com> <0d3f7c58-7fc0-4e8b-b6fb-c4d0d9969ce7@suse.com> From: Jeff Johnson In-Reply-To: <0d3f7c58-7fc0-4e8b-b6fb-c4d0d9969ce7@suse.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: tGjkCqrB7StA52j-IJboHQcZRhiSojoX X-Proofpoint-ORIG-GUID: tGjkCqrB7StA52j-IJboHQcZRhiSojoX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-30_13,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 mlxscore=0 phishscore=0 mlxlogscore=817 spamscore=0 clxscore=1011 impostorscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405300122 On 5/30/2024 8:42 AM, Nikolay Borisov wrote: > > > On 29.05.24 г. 21:09 ч., Jeff Johnson wrote: >> As discussed in [1] add a prototype for __fortify_panic() to fix the >> 'make W=1 C=1' warning: >> >> arch/x86/boot/compressed/misc.c:535:6: warning: symbol '__fortify_panic' was not declared. Should it be static? > > Actually doesn't it make sense to have this defined under ../string.h ? > Actually given that we don't have any string fortification under the > boot/ why have the fortify _* functions at all ? I'll let Kees answer these questions since I just took guidance from him :) /jeff