Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6264896imu; Mon, 21 Jan 2019 06:05:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN49B+d8Ho0Vi/QrUkkeXgMUBYpgUhgeXifm+4QfFQET15JRowREKIY4uwF1C6lI3861Wb1i X-Received: by 2002:a62:2f06:: with SMTP id v6mr30207288pfv.216.1548079501968; Mon, 21 Jan 2019 06:05:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548079501; cv=none; d=google.com; s=arc-20160816; b=ubr50FEMz55u/UUoMMa17qw3i4PK67kWw2ba6eiPTVA403qPE9vp/ZoynicYpz4zKe ce96lJWS3KOcHXhwEFZFZC66JOVAloNp5E2P0JvzcCAGvZCNvWRVaA2L9rcfcDKKwk3G /Qb4ljjoSD2aMkW06CQxT/UfQIdgUdP2iy7lv44/j8qkWzxXIBVrdfdWTHi4X5GLT7Xm 3I00097QnzCKn3l9vEDm+lGcEETeLQ+dldrJ/9oQWykY4WfeFTxejWJbeEj4UUx3kXQu FhUIlPVPl0H8pbDxHxeqQwXsKTxsOR5h0B8DHD1M6dA0N0DOnzq5wfOMtCqdVsq67thx Mb3Q== 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=84/xHLrGqyPU/UfcV8Ef4MH+jCH0nOoCko+ITaG42hk=; b=Oi8nv0apjGd6j2tYqQZYF4JgdM8pGkGnfUlOqXUlON86L0EUic1En3n3DLjrENokb+ TZSD8ANbGImNuSSXZfdHmg67/azQB+BfNo2NwKp/f8WxnfyCVetMKOhSKHsQnbYTbSnu 7hkPLPuItR0tVwk6RmsECBYvMDZdXCrucjbooN1LjH4nnUZvFqc67mi2/sfSF4osNTwp FxNnnZU8jmqKqcQbQ+vHSOyHk4gvexe8mOn7JxLqgaajluwFdQ2BwOoul9IrIupyneXb yvuMMbWx+dljluCxCMZvSOWfb9wh1iPB8Ae8omPNRd6Zs5al9+qlFnrSV3Z3kicnHDkZ DkhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1XkWVzAU; 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 l123si12213975pfc.187.2019.01.21.06.04.34; Mon, 21 Jan 2019 06:05:01 -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=1XkWVzAU; 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 S1731634AbfAUOB7 (ORCPT + 99 others); Mon, 21 Jan 2019 09:01:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:49200 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732257AbfAUOB5 (ORCPT ); Mon, 21 Jan 2019 09:01:57 -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 ED50F2089F; Mon, 21 Jan 2019 14:01:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548079316; bh=Xj2hA8l76MUL2lu3JGc48D+uz2I4VUOLs2KZNcHR73U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1XkWVzAU/rwG1cRMAuEWz6t4qCeHa6ED4Myf4zSMOnX731Cmzj09XBBPL0GLncZia vxQzk4k6bUMhGebgjEmgvXcxI+WsHhdYKMLgRWT+SgEJoMZ5Z4Sz0mc5FsbCHji/Or ONecLIqGKA241GiQTl2Ls6KsNZ/ZRe3q8C4zv5vA= 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.19 45/99] mips: fix n32 compat_ipc_parse_version Date: Mon, 21 Jan 2019 14:48:37 +0100 Message-Id: <20190121134915.683413255@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190121134913.924726465@linuxfoundation.org> References: <20190121134913.924726465@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.19-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 @@ -3149,6 +3149,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