Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1831614imm; Thu, 23 Aug 2018 09:26:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ30J+eX/P8oit6D1Kjt/l8mmTfI2woE9hVlilJws2LpM0v89/pBAlbJQPtGgpOX7Q/Mp5V X-Received: by 2002:a62:7182:: with SMTP id m124-v6mr6363874pfc.73.1535041610000; Thu, 23 Aug 2018 09:26:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535041609; cv=none; d=google.com; s=arc-20160816; b=RIHZYQvbQCFhItUISASE6P5uRse7FCt3+czmcMfm+7s37lF/lxxlTBaELAHmcD2nbr epgyrQY8prqpUGxDzDT967ylAiCvdO2fCNXT4uZ9u3ndMDsKoXtbvJxpFna4S4zMMEbK kbikm1jmQ9lGN/mTufphlZ9t21f8mgaNRjHtv3FK7xWdAWYrVPaf6k4TsGvFjfT8wouh 5D5SqMfi76goOcc7x19dewDGaxpW+XCQX6k6I8SuvvpRtK7OT7cwNHRjnvQUwALiT7WL PikqZM8Gl5XqKGcpTzTVKPk0thZVvZoJYfNo0tjA5nNjf6PGEV02UJ/bk2l5u4RBJ76N CqkQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=oziJ4mbphPSx+/W9I5RJWNVfgGLODCCGOHMNdePKfoI=; b=Wa4KxxG0vrE0I5d+HGzaeBw91BodnmjaoYDEIELBRFvn7JFPXE0oh+tIPFMy++R3Vi vxaPdi/9PazEXze+G5/zE9ZMHrXiJ8saT1lXBrnTh9HCpDzrVO2VYsOD6vUgHAA83Pp0 9jlP7u742uOHyEF+x+OljFdbWAEI7gC6Ihb1ISwtsCNXH65ObKecZlXS02pkYcYLPHpo QVHhD6Jk7Fu5J9Y0s/qMY815NxQbBjCvU1mLIbMMfrqOqLFaETQT0Rr2TroQ7aoUZuAq bum2F3GFWtM9Vqe3Xcv9tYMxXUuhtElfi7kBOG9g40kN1XqKr5TTn/cIAMoQdVR3XzQ4 XUXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Bop/eTwD"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 43-v6si4507188plc.496.2018.08.23.09.26.34; Thu, 23 Aug 2018 09:26:49 -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=@chromium.org header.s=google header.b="Bop/eTwD"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732152AbeHWRvJ (ORCPT + 99 others); Thu, 23 Aug 2018 13:51:09 -0400 Received: from mail-yb0-f196.google.com ([209.85.213.196]:46266 "EHLO mail-yb0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732106AbeHWRvI (ORCPT ); Thu, 23 Aug 2018 13:51:08 -0400 Received: by mail-yb0-f196.google.com with SMTP id y20-v6so2050648ybi.13 for ; Thu, 23 Aug 2018 07:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oziJ4mbphPSx+/W9I5RJWNVfgGLODCCGOHMNdePKfoI=; b=Bop/eTwDKZuHRXe61BerRKKtSUVfB7yoiso6wCrKSmsfSgpWsIu5q5dq+pYhMSPKk+ l6c150WfRdTJyNJMYoL/rEpHg8QpExMYGZynatAOD0oQUO0qkls3Y9/Jmy4le1ao9Al9 GdXOAL1kyCtesl1m6dUf3pNEbbrNU0cAdvwmY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oziJ4mbphPSx+/W9I5RJWNVfgGLODCCGOHMNdePKfoI=; b=Jcczlg/Tj+1ToLdUTd3om8PAVKjNBZt4rXyC0jqmafTxVSSwDTlP1eQ/f+vMvXwa/A sFtlqeb9xw7uF3G+DC/Ysa78Yys7wlrsNNxIhdnLNHtXckCdjkyNa6bujer6P7vtATBq wmKLWLOM5UtDqjE3TkClm6UDSGC0scdzkJKSj9AXiVsiAhxkbwJbqZuyyvd3IpN21BcI s2pawLCKEow3YkJwhhtT2fdwk7k2wx6vv3HZQcykwQtc8zU9JLJ/MuN5bRT/J9/JHGTr s3UYwvmDIz9wubleHG68IrYUpyJwGGYmcKvUoOCPbB28wOBjVhqhlY55ZCSD+/Psdxq9 JoZA== X-Gm-Message-State: AOUpUlF/5Wh3RMWNZ2D73S7y2jd4NXwm0CpiXuDS93ghvK9n+EY4akoK v42Nzdq2H3ZFax8dTT2BZ8aihy5uC6o= X-Received: by 2002:a25:3d2:: with SMTP id 201-v6mr14692895ybd.160.1535034073744; Thu, 23 Aug 2018 07:21:13 -0700 (PDT) Received: from mail-yw1-f45.google.com (mail-yw1-f45.google.com. [209.85.161.45]) by smtp.gmail.com with ESMTPSA id 138-v6sm119229ywj.30.2018.08.23.07.21.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 07:21:12 -0700 (PDT) Received: by mail-yw1-f45.google.com with SMTP id 14-v6so2023183ywe.2 for ; Thu, 23 Aug 2018 07:21:12 -0700 (PDT) X-Received: by 2002:a81:98d7:: with SMTP id p206-v6mr2779347ywg.353.1535034071767; Thu, 23 Aug 2018 07:21:11 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:2c11:0:0:0:0:0 with HTTP; Thu, 23 Aug 2018 07:21:10 -0700 (PDT) In-Reply-To: <20180823140917.3060915-1-arnd@arndb.de> References: <20180823140917.3060915-1-arnd@arndb.de> From: Kees Cook Date: Thu, 23 Aug 2018 07:21:10 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] apparmor: remove unused label To: Arnd Bergmann Cc: John Johansen , James Morris , "Serge E. Hallyn" , Seth Arnold , Matthew Garrett , linux-security-module , LKML 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 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); > } > -- > 2.18.0 > -- Kees Cook Pixel Security