Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6283588imu; Mon, 21 Jan 2019 06:21:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN6oyDrwQUPMkklXABddQsARUwsoxOaCw+xjoWT5bKbjlUmSjY0/7nGyUSo7dQnR7oC4Y18V X-Received: by 2002:a17:902:442:: with SMTP id 60mr28930357ple.73.1548080489904; Mon, 21 Jan 2019 06:21:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548080489; cv=none; d=google.com; s=arc-20160816; b=WFtgyYvYD9/HQ5FMeiz169mDpmWoeqvgEYp0izUatAe+mxRNRwfwJJASy2NUqfX3dx R0ww8u//vJd0w45ek+QtgxZC7mxfv7Nffc16sXWh5dfOWL/skKvG+KUw/uWqgm5TtwFq pnb/uCh8uTsDsF9NbxvM3zpvUmlWjcJ65J16BGGr85ff0NWqDC2XXr+vaA74F78+jRxn AQhh1KGQnJ7nemi6EUJDTaObmSvWYavMb8tVGcyzmat4DeIrCCtTi8y/5w5cf9XhFrRB 40qt8oulwN99jAHn5lU/WVCgFnvtNZpxkvrqpnYaSLgR0UtEpfb0cV1nTRFqFljcV0df CyIw== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=d5YLR2WWNshGKbzbw8xTZgPixZKLsTCgINaTgIHSzuo=; b=QqDDeUT2YnFQv+I79g9cp0asfytZSfLGIWupcTTUbbqpQPQHYmhIUZPJk9+qPf8xcc rURNOGLWSiGXFD/kuhzGXiwhM7ZJTFS2DRBa5S7nrkc7283xl0qtK3R+BGVpVd9g+waN MDdBHk8bhMxFQGfZI8ffCACIPCLsyJw8wVB/rQ5WwLnUOs4ZhST3qCIaKWud/HSo2bC8 r/n3Vq9OHX1Hy/MUFY7DZ6wV4/epImv0y0yE30MSZ7fIwgNp/nY18oFrldUt9gaPdHv6 uU6s2WPtvp6skjG3IXx62YVzxYN20CrRXkBcB4qenxa6nkrV87LHx7DEp1TMrP4w5K3M D0PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bAqwfTGN; 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 g184si6596921pfb.288.2019.01.21.06.21.14; Mon, 21 Jan 2019 06:21:29 -0800 (PST) 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=@kernel.org header.s=default header.b=bAqwfTGN; 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 S1730474AbfAUOTQ (ORCPT + 99 others); Mon, 21 Jan 2019 09:19:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:59068 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730038AbfAUNsw (ORCPT ); Mon, 21 Jan 2019 08:48:52 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 6FB7A2063F; Mon, 21 Jan 2019 13:48:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548078531; bh=MMmzmmPWxXIo3J53OU5vIJeB6pVJ3BIo2wABNJUg+aE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bAqwfTGNhRRhOwwe5R7SKWI23KcC7nibG/TZY3/D5DzaV38gjZQ/Z7CIs1/IwZ6i/ Qg2VHYEX6lPX41zEepQ+J5d1wiQygl/2V3PMj1DUq1kIOVtbhKiiHSoHfIaEzX9Gpc 4KXDwQO10CY17HpeciKjvqWccqRilAGF8OqajfdA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Paul Burton , linux-mips@vger.kernel.org Subject: [PATCH 4.20 048/111] mips: fix n32 compat_ipc_parse_version Date: Mon, 21 Jan 2019 14:42:42 +0100 Message-Id: <20190121122501.248885342@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190121122455.819406896@linuxfoundation.org> References: <20190121122455.819406896@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 5a9372f751b5350e0ce3d2ee91832f1feae2c2e5 upstream. While reading through the sysvipc implementation, I noticed that the n32 semctl/shmctl/msgctl system calls behave differently based on whether o32 support is enabled or not: Without o32, the IPC_64 flag passed by user space is rejected but calls without that flag get IPC_64 behavior. As far as I can tell, this was inadvertently changed by a cleanup patch but never noticed by anyone, possibly nobody has tried using sysvipc on n32 after linux-3.19. Change it back to the old behavior now. Fixes: 78aaf956ba3a ("MIPS: Compat: Fix build error if CONFIG_MIPS32_COMPAT but no compat ABI.") Signed-off-by: Arnd Bergmann Signed-off-by: Paul Burton Cc: linux-mips@vger.kernel.org Cc: stable@vger.kernel.org # 3.19+ Signed-off-by: Greg Kroah-Hartman --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -3184,6 +3184,7 @@ config MIPS32_O32 config MIPS32_N32 bool "Kernel support for n32 binaries" depends on 64BIT + select ARCH_WANT_COMPAT_IPC_PARSE_VERSION select COMPAT select MIPS32_COMPAT select SYSVIPC_COMPAT if SYSVIPC