From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: ARC-Seal: i=1; a=rsa-sha256; t=1516893713; cv=none; d=google.com; s=arc-20160816; b=jM4A0M2a+HPz7spF8mslPUOsK4W05E4mFvbhJbRxSow4B1tnuO4ccDYrJhbQrGzPmk qQBarW+9Ib1epKTI6yuA8WLbi4rqmOQDAgEpetndr/FAFqFqb7Kef4iGGveQXK1/XeFV Oh9j+PDBESHMdM+9eqmYGHf9USBIDNfFLad8qMSYi1wyLz1PQT0bo1kOje8xkcAmuoBF h1KV7NiX06Zv2Np8dCx5u3IkvE1RQpFLZ1LRYXOsaKqSm7Ow11VO1pg1NnK5cNPxZvFe VFBQmSRuJL8o+GQ6bKUOowhk5ic72yt5ZRl2KF3Cx4m8zknPMITjqgI9gbVk4rIKlqfs RhEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :arc-authentication-results; bh=GqGOpY/nCM7DMLKvskmph1IUQUwfCFbHLXxV5TedxAI=; b=wvXlggih4Su2BQ9rjNnS4M9ClUBJtCRbCh7Hc3Yx/MuK3P9ygt22vAezyRSbqA7PCw zUwh/TAmqJaU7o5s26Y7pl/E+nf3IN5gp0Pk42sZlWy1wQLzFy+NWn6RDv3mO23ygn8/ WNKKvqQg3++FTP0Ix09b6fO+bco+2SPlfopPgheBmKykNLxujNNrXitEsnW3qe7GCcki a/16I0phK/D+LAKr4u5suxyuNm5/WyCr98S/HVlRs9eiQqyEUZgrjIh1HZhOjcvk1qRx PmJN5yRFDFOiC9BHwbkaDtAXSp9kcWp4kQZDDt2CHWGHsyF00CMqagnYp3dfKJ6EeE01 Ox8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of jirislaby@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jirislaby@gmail.com Authentication-Results: mx.google.com; spf=pass (google.com: domain of jirislaby@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jirislaby@gmail.com X-Google-Smtp-Source: AH8x225Iv15f7c/8uCORgCgjJ3rkQxhggP4PMl4hqV6zmrSVm0YfWK+MQ+6f0NAhmfxiUFjxKasPVA== Subject: Re: [PATCH 4.14 17/89] futex: Prevent overflow by strengthen input validation To: Greg Kroah-Hartman Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Li Jinyue , peterz@infradead.org, dvhart@infradead.org, "torvalds@linux-foundation.org" References: <20180122083954.683903493@linuxfoundation.org> <20180122083956.427607580@linuxfoundation.org> <20567b49-e0a3-e9e0-d520-74bbfc20d414@suse.cz> <20180125151219.GA16752@kroah.com> From: Jiri Slaby Message-ID: <99cabcaa-8829-d50e-afbc-920d9dbbe903@suse.cz> Date: Thu, 25 Jan 2018 16:21:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180125151219.GA16752@kroah.com> Content-Type: text/plain; charset=iso-8859-2 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1590281365405131555?= X-GMAIL-MSGID: =?utf-8?q?1590578342852432855?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: On 01/25/2018, 04:12 PM, Greg Kroah-Hartman wrote: > On Thu, Jan 25, 2018 at 03:47:32PM +0100, Jiri Slaby wrote: >> On 01/25/2018, 03:30 PM, Thomas Gleixner wrote: >>> So what's the problem? >> >> The problem I see is that every stable kernel now requires updated >> strace with their commit from yesterday to build correctly. In >> particular, the new stable kernels cause rpm build failures of strace in >> all our distros (based on those stable kernels). Sure, we can patch >> strace in every distro every nth kernel update, but it's mere >> impractical. Kernel should not break userspace, right? > > Well, when userspace is doing something stupid... :) No doubt... But does that mean we no longer maintain the "no userspace breakage even if it is stupid" rule? >> BTW why was the patch applied to stable? We actually do pass >> -fno-strict-overflow. > > 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. thanks, -- js suse labs