Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5231304ybe; Tue, 10 Sep 2019 00:01:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAsbKfqemErs0MiRoZH17UIPGGJPX4hWW+ozL7WmrUyLiwQX3IJypVyku96BszwSy4H3qm X-Received: by 2002:a50:b0c6:: with SMTP id j64mr28708621edd.267.1568098884771; Tue, 10 Sep 2019 00:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568098884; cv=none; d=google.com; s=arc-20160816; b=cocqxbrvOan8xtUDBOLW7PCwMT92/TESqvZfH1uRnha5B7zcHTWLcPxhxdTHs6wwx1 95vH5p60A64hOczkhPIWImTKu6pvLwn1000wSuc7DVu8qGjjirB9WsQm3Z9LEk+8GZXd S6MXbvsBEildamhHvQhiYZVtcTkDPPwVjbvBk1ETyQtJBTE50RZvWRmYG4ZOJFptMPCb uEqgdy5K4Fhm4wGhQwidbkbz87r9ectWqPU/w0/MqB6i5Kjgy2bZuz+2dgb+oPVMtzeI jXdvBhxdeFPyUeMEQWe3zKIyvxtq9fq23lfT/wbXxffKQG+qCQUhlZ8JzjnD0uo9BQcU 11hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=of2s0vFLHh9Xp+TAKb4j4quIC4aFs7+CQ9EVWEBoOXY=; b=EzcZnBMbMTvvIaoN+AgdONzEV/DdV7A4VdXZLXBSfXuZ3d6/WDYAYfErvIkRcwaZAr VcFAO14ISqjiJn2IWxB8tI3FkUc5BO2SMWji7Q+bHEXq6uIDwSbclQNTKfhWewnPmjSO 6Go2wsSmTzWXXSH1FCyuFRwHtbp9hk3RNVIWr7C2XzhnS1TyBEaIi/8xUW/HIrdpS6e0 VRdZ1KrpLnuMCrWmze+Gc6HcOQHFLsj9nOP9DqjC4kYCGmMvkLrsDQ0U5leQJUWKR/Vt 36zRaZS6zncplcyGJxAmxho+5Dehv8sOswdH3OLktmjoPKRVkO4yHlidviKKjpwWFP9Y TcLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=FxXgmurF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb11si8708286ejb.38.2019.09.10.00.01.00; Tue, 10 Sep 2019 00:01:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=FxXgmurF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731341AbfIILoR (ORCPT + 99 others); Mon, 9 Sep 2019 07:44:17 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:34126 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730483AbfIILoQ (ORCPT ); Mon, 9 Sep 2019 07:44:16 -0400 Received: from mail-ua1-f50.google.com (mail-ua1-f50.google.com [209.85.222.50]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x89BiAUR018670; Mon, 9 Sep 2019 20:44:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x89BiAUR018670 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1568029451; bh=of2s0vFLHh9Xp+TAKb4j4quIC4aFs7+CQ9EVWEBoOXY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FxXgmurF6mxeDS60G1oeYiUS9P/0FdqK3IuE6+pNylWWl0JC9YTccp3nDkDjoghYm HJRy8imvWFb9FJvmthHjPNCpObFu89E8cNKvpkvYdFaphQFN1ytFPKlOWTpFMq/REG UX6Sr1xQqj5P4F8OI0coJlWuZLV96XyNDDo9oTxoD2md5vA6vOvEliQhXVg8Q9oKMa 6mS4RTZavsxHL4BatlyaahCO7qGmKODsNVBUQo5XLv0JP5vSiojJHL1BxHePZW+sML r5jUPN2YcalUSFF6lNt5xXr/ETxtUOrO35I3eHRXQStPPEKUAKzROuvnu2JjXEiYEf apYKZ+1vMUM7A== X-Nifty-SrcIP: [209.85.222.50] Received: by mail-ua1-f50.google.com with SMTP id k12so4133631uan.13; Mon, 09 Sep 2019 04:44:10 -0700 (PDT) X-Gm-Message-State: APjAAAXsONBP+ovDwCYZotbtyQIkyK/s3ka6wO8GbnGsz0ig47gHHn5t fRTwc4S8h9Wmo6xc7qMr/o1j0T2q6ezJfZu59U4= X-Received: by 2002:a9f:2213:: with SMTP id 19mr10805775uad.25.1568029449667; Mon, 09 Sep 2019 04:44:09 -0700 (PDT) MIME-Version: 1.0 References: <20190726021058.4212-1-yamada.masahiro@socionext.com> <20190726021058.4212-2-yamada.masahiro@socionext.com> In-Reply-To: <20190726021058.4212-2-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Mon, 9 Sep 2019 20:43:33 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/5] integrity: remove unneeded, broken attempt to add -fshort-wchar To: Mimi Zohar , linux-integrity@vger.kernel.org Cc: Dave Howells , James Morris , Josh Boyer , Martin Schwidefsky , Nayna Jain , "Serge E. Hallyn" , Linux Kernel Mailing List , linux-security-module Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 11:11 AM Masahiro Yamada wrote: > > I guess commit 15ea0e1e3e18 ("efi: Import certificates from UEFI Secure > Boot") attempted to add -fshort-wchar for building load_uefi.o, but it > has never worked as intended. > > load_uefi.o is created in the platform_certs/ sub-directory. If you > really want to add -fshort-wchar, the correct code is: > > $(obj)/platform_certs/load_uefi.o: KBUILD_CFLAGS += -fshort-wchar > > or, in a more Kbuild-ish way: > > CFLAGS_load_uefi.o := -fshort-wchar > > But, you do not need to fix it. > > Commit 8c97023cf051 ("Kbuild: use -fshort-wchar globally") had already > added -fshort-wchar globally. This code was unneeded in the first place. > > Signed-off-by: Masahiro Yamada > --- Ping. > > security/integrity/Makefile | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/security/integrity/Makefile b/security/integrity/Makefile > index 19faace69644..b6d6273a4176 100644 > --- a/security/integrity/Makefile > +++ b/security/integrity/Makefile > @@ -13,7 +13,6 @@ integrity-$(CONFIG_INTEGRITY_PLATFORM_KEYRING) += platform_certs/platform_keyrin > integrity-$(CONFIG_LOAD_UEFI_KEYS) += platform_certs/efi_parser.o \ > platform_certs/load_uefi.o > integrity-$(CONFIG_LOAD_IPL_KEYS) += platform_certs/load_ipl_s390.o > -$(obj)/load_uefi.o: KBUILD_CFLAGS += -fshort-wchar > > subdir-$(CONFIG_IMA) += ima > obj-$(CONFIG_IMA) += ima/ > -- > 2.17.1 > -- Best Regards Masahiro Yamada