From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77EB6C2BB55 for ; Thu, 16 Apr 2020 14:21:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 517662076D for ; Thu, 16 Apr 2020 14:21:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587046913; bh=f5G/PgNlQLorwMRYwCChGgzk+9oz/wHoIFMd326/k2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=FtHaIJ6eMvIV+gx5K1yaP+kAjT+qIia80nWLOzmEI8zA48IrfSTK4/ah6AeD4p4JO 1WKThZQGFv0NIh6147B13YW2iUIpaP9ICM73mHtQ7drUwh+SJSyAo7OMG3/8VfpKlM Szz6Pqmppv//PgmEZ3AFs44u7XN79Ur73uEfNwss= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394019AbgDPOVv (ORCPT ); Thu, 16 Apr 2020 10:21:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:42134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392533AbgDPNza (ORCPT ); Thu, 16 Apr 2020 09:55:30 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 59B2A20732; Thu, 16 Apr 2020 13:55:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587045329; bh=f5G/PgNlQLorwMRYwCChGgzk+9oz/wHoIFMd326/k2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UQj4/FDfxXoe6iWd+JW/FNU/fiVMatpnsu0tqdiVnC3R133v4qQz3iw52nY42cBxG yaWduayUvHh0kvp3772FD3QFFdH6YGKAeQdcNOKJXYJuCXAs61nPV4iXx0S6v7bNdP ebuhXtmvqGIH6RuPNlbNeXks2P03GHo5dRkeexBs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sven Schnelle , Kees Cook Subject: [PATCH 5.6 089/254] seccomp: Add missing compat_ioctl for notify Date: Thu, 16 Apr 2020 15:22:58 +0200 Message-Id: <20200416131337.071349726@linuxfoundation.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200416131325.804095985@linuxfoundation.org> References: <20200416131325.804095985@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sven Schnelle commit 3db81afd99494a33f1c3839103f0429c8f30cb9d upstream. Executing the seccomp_bpf testsuite under a 64-bit kernel with 32-bit userland (both s390 and x86) doesn't work because there's no compat_ioctl handler defined. Add the handler. Signed-off-by: Sven Schnelle Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20200310123332.42255-1-svens@linux.ibm.com Signed-off-by: Kees Cook Signed-off-by: Greg Kroah-Hartman --- kernel/seccomp.c | 1 + 1 file changed, 1 insertion(+) --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -1221,6 +1221,7 @@ static const struct file_operations secc .poll = seccomp_notify_poll, .release = seccomp_notify_release, .unlocked_ioctl = seccomp_notify_ioctl, + .compat_ioctl = seccomp_notify_ioctl, }; static struct file *init_listener(struct seccomp_filter *filter)