Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3890525pxb; Tue, 2 Mar 2021 00:52:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlP1vwONzrd/3ywZNG8ZaEFTWC4/OoI7NXL3Sx5F988QFb5v1YV9YFxalN1mlZ2p03G0fu X-Received: by 2002:a17:906:ca02:: with SMTP id jt2mr19826850ejb.312.1614675166735; Tue, 02 Mar 2021 00:52:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614675166; cv=none; d=google.com; s=arc-20160816; b=U4EyMU6fmL+iMXU+Gr+nSqtzzd6bbywMYYDHnRVbAf/LcE9xsRbghDdmvkK9qywm2r Fw9gW/S/AyM82d9einnzSfKoZjkUOHCOLLaHPVLZJgweU9jKhBO8rMnEcSXeyLwxMryL KCVNPoA5J2HBbzXqJ+9NdgDpPx3nsdwS0xI4HT05y/V8ykP032iQBWt7i85Xsz/xJUFE C5T4HQUSaBnbOG+J1Py545bONYGohAeYG7yYD43TEu5OBMrrBd45rnCKe4mg9nWX4Na3 ES/qKZFPPPXIHTjYU/UP/pOwa9aHzxIGV/fZyHgMhueu3bC+aPq9j/kp4GdVaS6hU1FM g8IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=R44h08dNT5/SVLYKWONUDdPzdzpU/ibS8CYDysogEfU=; b=nCOn/6X1lFzTDP6o3Zhz23/INeSJsb3bVuRTtgKj3zbIPkGwo63Ct6xxg1Yy9lbke0 prCGOjGZ33p/94sZP6qN7uLXg5U2ouGG06/ZTIs6imgcAEKvrs5BJvtzW6P+2Shg4tE+ yQVlK/t9WrU3dTuGEnywtCvA+HNHl30nKfry+ss6NF3/+ZKQfF0jWHHf6ey7RKB9+/wn eQl4qB68DKOrkcfhqxbPLzX5EDxkudtsTDEPsXXPWDE4lnC8/zIa6m0/aLfPrcY5sb+v JwJAIE0SiRR/uFoneGoW0ZFSE/+8I8lVWqN+QglCrR/cSvpj91T62ymkz7S1uF40yj1R l7qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ND38a90P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zm17si5588665ejb.38.2021.03.02.00.52.23; Tue, 02 Mar 2021 00:52:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ND38a90P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378723AbhCBBHr (ORCPT + 99 others); Mon, 1 Mar 2021 20:07:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:36372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240741AbhCATEO (ORCPT ); Mon, 1 Mar 2021 14:04:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8F80A6525A; Mon, 1 Mar 2021 17:28:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614619708; bh=ogeGSJNwL8+DSWNr9GhxyHuVp3d6gkV2TUb/LbJuDts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ND38a90PT9UrpNq8OtG70mKg3gFcm0MyW7LnY0+TJhoA43qHdUYrR/U0Do6h9hsDm +5KEaSH9NrLwMyx3o6s1cDVspmqz0iZ6edjRmSiXAP7WFO5iDJ1+1PRNH1yx7Jwzat 9Jg4Hxmut0eq2g6N+LcJZHleKvs7ebxUdNoz/yZE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul Cercueil , Kees Cook Subject: [PATCH 5.10 551/663] seccomp: Add missing return in non-void function Date: Mon, 1 Mar 2021 17:13:19 +0100 Message-Id: <20210301161209.134240995@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paul Cercueil commit 04b38d012556199ba4c31195940160e0c44c64f0 upstream. We don't actually care about the value, since the kernel will panic before that; but a value should nonetheless be returned, otherwise the compiler will complain. Fixes: 8112c4f140fa ("seccomp: remove 2-phase API") Cc: stable@vger.kernel.org # 4.7+ Signed-off-by: Paul Cercueil Signed-off-by: Kees Cook Link: https://lore.kernel.org/r/20210111172839.640914-1-paul@crapouillou.net Signed-off-by: Greg Kroah-Hartman --- kernel/seccomp.c | 2 ++ 1 file changed, 2 insertions(+) --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -1050,6 +1050,8 @@ static int __seccomp_filter(int this_sys const bool recheck_after_trace) { BUG(); + + return -1; } #endif