Received: by 10.223.176.46 with SMTP id f43csp2278946wra; Thu, 25 Jan 2018 07:33:06 -0800 (PST) X-Google-Smtp-Source: AH8x2279Jc0hHsU1wwbf2xSJLhEDspB2nPiT2KgO3pi3o/n/ZmHs9VwAMmkjbfD3k2m5iMD/UwLn X-Received: by 2002:a17:902:59c2:: with SMTP id d2-v6mr11988679plj.306.1516894386325; Thu, 25 Jan 2018 07:33:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516894386; cv=none; d=google.com; s=arc-20160816; b=mgjI4oFpHNznPii0Lk2CGjfqMX7mchgb6iRWD12LEiLvQh6Ya9p7x59oLPNotydFEW CNkWvWSgse6R2r1HyFycExhtvGmAuyycUE3A5DXFuJKsQS/okpeE1ERGAHVgb35ah+un Tiso7K60ZXrCAzdMdhBKiyqjNQW9kTKvptEWc54hSk0dN/xvhhO1cUhA28NaLermBHbA CVQ7fnPa9FzPogMNk8LR4ks9Jsh65ceUOI7N0QgqXZPO1iH7+i66AE0jwmG3QTw3Rpn1 1qZYTvVmbq6L+j3MQ+ncYskfDjMfrCjn0TcKIPolnGCdIFH7bqVIpZg2ZflYIMqsq928 73QA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=yQ6H1TZreDDhkIuFoT4VeQatVr8vIh/x0jqZq6R320k=; b=LQDJChiCZpUV4p5tZ1Ci0X+/uN9Ph4TDhzQv1iARk80ZVmbR/w7kxxE8tQKn+0cLcl Vg4fxi/7SnByCBvWqMmZqJa1nx334GXto7pdshEwSQUmeaqBOHYmzA22wYFRriT0dZzM F46tzJOm15sj0zYDd+flxTCt+0gtPBcFGsuZqIXU/CQ7a3GLOLR7TTMQVTFEdnSKnzgf 4tLqkcI3PtZLKlTAwAObVR/UDm3ShzTnCbOqZlh53fP9wJq+U9cqp9877cqrXjW2BS+i mS5YchS73nDas90WDVV3vrQBHVO1591pKiFcPX0stgxxwVnBWRd6hlak4c+WzaxpzdB0 uYXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=X7MgIzya; 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 d1si1650513pge.771.2018.01.25.07.32.52; Thu, 25 Jan 2018 07:33:06 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=X7MgIzya; 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 S1751383AbeAYPa6 (ORCPT + 99 others); Thu, 25 Jan 2018 10:30:58 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:57715 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751170AbeAYPa4 (ORCPT ); Thu, 25 Jan 2018 10:30:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yQ6H1TZreDDhkIuFoT4VeQatVr8vIh/x0jqZq6R320k=; b=X7MgIzyaIIfpfQgRZTw1SBsC7 fCKhzQhLfXUxnKk1R/mQi2hTRrdvUi2joXHm3OHfmLLdgebBqS9SL5DLN+lAtDCFA7xrYlqVeJNIZ w0cRTd5ypNE6QJNgZRI2TshrbsxcGamVW+Qfax/frbI9TCFe9qasDZtAISkowbqFBrP31IMRBXYXi TuowY18uSVGle1Y/f0C8RBNW2VMgL2B80i3c+QglDUmleK+m+sH8yE+ldrL0TA/aGiWSqLHK8ihG7 7dVj8loFkTt2t+37DqXQPnAt9GePj1NclJztngJ6Vrc7I5OfA6ym9tCoKuFkxfErRguvD4pr9XD8F rSxaocp/A==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1eejUG-0003g7-Ed; Thu, 25 Jan 2018 15:30:48 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3CF0D2029B117; Thu, 25 Jan 2018 16:30:45 +0100 (CET) Date: Thu, 25 Jan 2018 16:30:45 +0100 From: Peter Zijlstra To: Jiri Slaby Cc: Greg Kroah-Hartman , Thomas Gleixner , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Li Jinyue , dvhart@infradead.org, "torvalds@linux-foundation.org" Subject: Re: [PATCH 4.14 17/89] futex: Prevent overflow by strengthen input validation Message-ID: <20180125153045.GL2269@hirez.programming.kicks-ass.net> References: <20180122083954.683903493@linuxfoundation.org> <20180122083956.427607580@linuxfoundation.org> <20567b49-e0a3-e9e0-d520-74bbfc20d414@suse.cz> <20180125151219.GA16752@kroah.com> <99cabcaa-8829-d50e-afbc-920d9dbbe903@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99cabcaa-8829-d50e-afbc-920d9dbbe903@suse.cz> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 25, 2018 at 04:21:51PM +0100, Jiri Slaby wrote: > > The same reason it was applied upstream, it fixes a reported > > issue. > > > > Does that mean that all UBSAN overflow error reports are not valid > > because of how we build the kernel? > > IMO yes, because with the option, signed overflow is not undefined. > > In the long term, it would be nice to get rid of *all* signed integer > overflows and kill the compiler option from Makefile. Therefore the > fixes are indeed very valid in upstream. I actually think the option is unconditionally good. Undefined behaviour in a language is bad. Sadly C has lots of it, but any reduction we can have we must take.