From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933606AbcH2Pgu (ORCPT ); Mon, 29 Aug 2016 11:36:50 -0400 Received: from mail-oi0-f49.google.com ([209.85.218.49]:35440 "EHLO mail-oi0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933393AbcH2Pgs (ORCPT ); Mon, 29 Aug 2016 11:36:48 -0400 MIME-Version: 1.0 In-Reply-To: <20160829144801.nufhyoq5paqffgdc@treble> References: <20160823160629.pgnwzl65zji5l76w@treble> <20160825204759.fxgbdodqpl55fnji@treble> <20160826032729.pbubh5imtpocwjc7@treble> <20160826135533.odypm5rb7irjk3x5@treble> <20160826205627.bugn5xzjiaebwjar@treble> <20160829144801.nufhyoq5paqffgdc@treble> From: Linus Torvalds Date: Mon, 29 Aug 2016 08:36:46 -0700 X-Google-Sender-Auth: oWAglCKUwi2MVb219wwKBNtGKA4 Message-ID: Subject: Re: [PATCH 2/2] mm/usercopy: enable usercopy size checking for modern versions of gcc To: Josh Poimboeuf Cc: Kees Cook , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , "x86@kernel.org" , LKML , Andy Lutomirski , Steven Rostedt , Brian Gerst , Peter Zijlstra , Frederic Weisbecker , Byungchul Park , Nilay Vaish Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 29, 2016 at 7:48 AM, Josh Poimboeuf wrote: > > So I *think* your patch fixes the wrong problem. That's probably at > least somewhat my fault because I misunderstood the issue before and may > have described it wrong at some point. > > AFAICT, gcc isn't doing anything wrong, and the false positives are > "intentional". > > There are in fact two static warnings (which are being silenced for new > versions of gcc): [ snip snip details ] Ok. Color me convinced, I never even looked at the two different cases, I thought it was just one issue. Let's just remove the spurious false positive warning then, in order to re-instate the *actual* warning that right now is disabled entirely due to the unrelated false positives. Thanks for looking into this. Would you happen to also have a patch that can be applied? Hint hint.. Linus