Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3049719imm; Thu, 17 May 2018 02:28:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo1MaGq5nvyYfxD9PTGyRG1omyLAIGLqqz0huBZrIsMfL34iUnayYhfOAAyFzGVeQmc9pEy X-Received: by 2002:a65:5183:: with SMTP id h3-v6mr3486579pgq.58.1526549288178; Thu, 17 May 2018 02:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526549288; cv=none; d=google.com; s=arc-20160816; b=qlXrezbhkekZt4C++g7v7FXfEvxKSURicOK4PeqEw7KLpw5mgLBCCUmbeNDVhOCNUz gsWJZJ3Lle9H+edyQStXcWwTlwX19hLTdVYPZ45NfTZi58yvyYYhZUJB9Oj1oTz7zmiz dvDpdH4RFLPTEQ6w62UKrPYlJ95r/QMXcmYo3mLKxloaWylWb7dIvvkFAU4zMSbpHcR7 Z4rNVJTkHgMHxlRK4+TS564P16t/B1SVB1KGzdMT8bwa1JghEPnntfR2RL8goglVo/e3 HFrxrKCBz6ww9wWsbkPs//do5XWV80ZYjsyde2yFgj0mnaShP3mUuZr06D/E8iccLrpd DnSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=041J3l+f+qOfdqlT9tShgD47ky77UsFGd9HM4NuaQDw=; b=vmLbw+82DZuYg+RVe4QU6tFc72I+Sgs7llO9y98hpRz8JAmQHMAcQEgWKE6KKehLnu LY21u6kfqHjQcDOtHC66WSyzsSTfqMdTfNI3mP0Q1BrFFwK3kmhpdi0P3dH3Ou5fEtIR 0nj4vgS1RJ2c3IBm0rKZCW1tFtrv9ijxw4iQLv+r8jWNmae5+ojzV540pKxWg+Ba8IRy SHmsNJaRUmjnGG5nivc5BrwibNhUqzZ5Cg6z73jVfCuVDABbH3LZiRrlaDCmui0BgRvU rCsqoOD8rYZ1owSuHX3kAWx+0GCjzHGHhBD+L22QdPkWC3WXkxfxzP4KnUhEdLbm84Wj 6n8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JXkAfPe7; 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 v11-v6si3712358pgo.643.2018.05.17.02.27.54; Thu, 17 May 2018 02:28:08 -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=@kernel.org header.s=default header.b=JXkAfPe7; 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 S1752551AbeEQJ0E (ORCPT + 99 others); Thu, 17 May 2018 05:26:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:59114 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752063AbeEQJYZ (ORCPT ); Thu, 17 May 2018 05:24:25 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 A22B32083D; Thu, 17 May 2018 09:24:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526549065; bh=IHjFUko+l/xoMAlMzivncUlGmggMHpO2iYkFRE8mO2s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JXkAfPe7NlHaIo3amwgcKifolj7Z/Oj/4GE1XEcsX16+CdMGLlWfqQaKKyEGjGGAo CwQCrKylLHZ7ZQo1Hb9mAdzHOUYj+5Uvw/jULixbfFs9uq5y8soppHddziz9YpX+BY EyjvioS3kV375dsnZIxCBZQjEAkpfWVGl5VZtXMQ= Date: Thu, 17 May 2018 11:24:07 +0200 From: Greg Kroah-Hartman To: Ben Hutchings Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Robin Murphy , Will Deacon , Sasha Levin Subject: Re: [PATCH 4.4 099/190] arm64: futex: Fix undefined behaviour with FUTEX_OP_OPARG_SHIFT usage Message-ID: <20180517092407.GI25318@kroah.com> References: <20180411183550.114495991@linuxfoundation.org> <20180411183556.339662900@linuxfoundation.org> <1526426136.9159.85.camel@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1526426136.9159.85.camel@codethink.co.uk> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 16, 2018 at 12:15:36AM +0100, Ben Hutchings wrote: > On Wed, 2018-04-11 at 20:35 +0200, Greg Kroah-Hartman wrote: > > 4.4-stable review patch.??If anyone has any objections, please let me know. > > > > ------------------ > > > > > From: Will Deacon > > > > > > [ Upstream commit 5f16a046f8e144c294ef98cd29d9458b5f8273e5 ] > > > > FUTEX_OP_OPARG_SHIFT instructs the futex code to treat the 12-bit oparg > > field as a shift value, potentially leading to a left shift value that > > is negative or with an absolute value that is significantly larger then > > the size of the type. UBSAN chokes with: > [...] > > Whilst I think this catches all of the issues, I'd much prefer to remove > > this stuff, as I think it's unused and the bugs are copy-pasted between > > a bunch of architectures. > [...] > > Indeed. That more complete fix was done upstream by: > > commit 30d6e0a4190d37740e9447e4e4815f06992dd8c3 > Author: Jiri Slaby > Date:???Thu Aug 24 09:31:05 2017 +0200 > > ????futex: Remove duplicated code and fix undefined behaviour > > It's a bit big for stable - though most of the changes are deletions. > What do you think? I think it makes a lot of sense, I've done the backport now, thanks. greg k-h