Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1831839imm; Thu, 23 Aug 2018 09:27:07 -0700 (PDT) X-Google-Smtp-Source: AA+uWPywhSBmL+zRl8u8y6c+OpAldMhX/UJ0hGPCMORuz9xRApXTT6DFFbzfXA6cO8bk7hgNVulg X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr59861642plt.288.1535041627562; Thu, 23 Aug 2018 09:27:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535041627; cv=none; d=google.com; s=arc-20160816; b=u8Gnv9JpBJzyErH19Ei9uCQmrGqZC1AiaG3nYOJokIWbAd6efgXQnG+OwhQB7DGr12 hv3ticsskmwbjU/YQ1Ruqf0aLgo0Gyxn+MhqmaUhtQGEULSAdCJDP6fM1I4xwySrmU7k ODBYiO7PubVeTxW8U98mmDFAheu3LkigwvRJQ3cCcxH+xUKnmuCwm9R4ay0obwFM9PbB trTrfg+zY3CTmzG4e59gRXeCL9H0+RJZvyQDLiGuABJOKFul+AzzMxcLxUQ6T1LDaSS/ nLyqIDXEGq7pBmvsbeZNukK5n3GwbhsQ0o8LJUPHz6ba/E9/eulyOkDYEG+/WFsiCmj0 +Z1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=XPD7YuWZmw9scgY/sLBpGH1Mcbvq3DhT7USBuwnthDA=; b=QQNpwWCOOmJpKa3OVAdhHl2IR4HQaRISuvpcvpapYG3+leFxfMStI2kfPm9Zcs8dYE HIxTT1riY5+rtQZEcxGNeXy5Udu6v4rv/Mzm/Me55+q2PUPGBxNqQ0zQhlrWQAii3qT7 QjVcLPIOZCHxiNWEwARLK/8rqEJk2eYl8OE0jraZaZDrdxEAC/m2u5CP6tzvcbppmmnV DHEqynn1fLjUTUlakbD1QjMTav8pSnh5qYvrAUfQqLOeUaPCJAtRonittPgYEph4DKgI NKDKeftRzmfJYgfKpvaDk0ax7SzZ+UdHuzWEKg9KqYSpf9o/rj9vtzOAzGebKx+DeBzr Bl1A== ARC-Authentication-Results: i=1; mx.google.com; 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 u26-v6si4466126pge.590.2018.08.23.09.26.51; Thu, 23 Aug 2018 09:27:07 -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; 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 S1732549AbeHWR7M (ORCPT + 99 others); Thu, 23 Aug 2018 13:59:12 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:13420 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727597AbeHWR7L (ORCPT ); Thu, 23 Aug 2018 13:59:11 -0400 Received: from fsav405.sakura.ne.jp (fsav405.sakura.ne.jp [133.242.250.104]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w7NEStWn004802; Thu, 23 Aug 2018 23:28:55 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav405.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav405.sakura.ne.jp); Thu, 23 Aug 2018 23:28:55 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav405.sakura.ne.jp) Received: from [192.168.1.8] (softbank060157066051.bbtec.net [60.157.66.51]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id w7NEStwa004799 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Aug 2018 23:28:55 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Subject: Re: [PATCH] apparmor: remove unused label To: Kees Cook , Arnd Bergmann Cc: John Johansen , James Morris , "Serge E. Hallyn" , Seth Arnold , Matthew Garrett , linux-security-module , LKML References: <20180823140917.3060915-1-arnd@arndb.de> From: Tetsuo Handa Message-ID: Date: Thu, 23 Aug 2018 23:28:52 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/08/23 23:21, Kees Cook wrote: > On Thu, Aug 23, 2018 at 7:09 AM, Arnd Bergmann wrote: >> After the corresponding 'goto' was removed, we get a warning >> for the 'fail' label: >> >> security/apparmor/policy_unpack.c: In function 'unpack_dfa': >> security/apparmor/policy_unpack.c:426:1: error: label 'fail' defined but not used [-Werror=unused-label] >> >> Fixes: fb5841091f28 ("apparmor: remove no-op permission check in policy_unpack") >> Signed-off-by: Arnd Bergmann > > Reviewed-by: Kees Cook > > -Kees > >> --- >> security/apparmor/policy_unpack.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/security/apparmor/policy_unpack.c b/security/apparmor/policy_unpack.c >> index 3647b5834ace..96d8cf68ce65 100644 >> --- a/security/apparmor/policy_unpack.c >> +++ b/security/apparmor/policy_unpack.c >> @@ -423,7 +423,6 @@ static struct aa_dfa *unpack_dfa(struct aa_ext *e) >> >> return dfa; >> >> -fail: >> aa_put_dfa(dfa); >> return ERR_PTR(-EPROTO); If these lines are unreachable, please remove together... And that is what Gustavo A. R. Silva reported before this patch? >> } >> -- >> 2.18.0 >> > > >