Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1019521ybz; Fri, 1 May 2020 12:50:27 -0700 (PDT) X-Google-Smtp-Source: APiQypKPO5RnHd4RwxR0EECfhK8o3+cWBmyte0v9rUSRXZRtX44vcVFlzPxLiws2AdRlKplYNMS2 X-Received: by 2002:a05:6402:1618:: with SMTP id f24mr4968785edv.330.1588362627621; Fri, 01 May 2020 12:50:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588362627; cv=none; d=google.com; s=arc-20160816; b=nktKaaAMFqpBXfHAcffqbAPyVX4qn58Al4PkaUtSdqHJfcZdy5oHW0JIigxTThzSPe EarJTkxkthiLXmvLIHH60owW0mmaFJiK3yAsaYOGOj6QT/7BrkpvkbzyKzLzzZbdyMbu D6QUgu+SLDQCMAPsnGzoCe508HVKsLmRg+25/I5sLg81/oFurdwqOcjo1DGjDhWluNpJ WklAsuJT/wdb0rFXvRwN9yxO+uGJ5F4eqTO7NlFjW3DoekBB/n76TlHvSOykICFjIYuU JCODZ5b+VZMDT8QmH/SRUg3lNAmDdRgIFJRU3M5JcljaIP7O5wm7Io2qo7IBH1vjrlnm m1qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=v8mUD0ZG7yX8I6/m754On1/HXzz+OBk0/o08i/6qHbY=; b=QTMD18qdspOCTlnwJj65dFbeACtZH5m9t8+obCmRWWLbq9fY4uBMgEWFOpgJEdLZ7m +usTdsOAYZIEYhfpzhB0sbrB7JllZPzTgOJVXvGy6Xe6XkxLDMWYuWtxmXCfx6cJPF0H 2Nk7Ktp6uOsrgU6hZOwx1wpxDzCBS4IFHodPw7wggjpQqswGgqufMZSyL6Vz+h5Nxex8 4meF8z8ORqw4r2hXLpcr7iAZrSoCMbRG7vCypnTYgCe/eZQt66fVPXPZIvtmnJZQvGle VwKRLixxRxphWsJYrvMYYbOf+PgrHMjidd2XQLerndXt6w+urUsWpyPj6a5ti17ETKF6 iRrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n1si2314616ejr.104.2020.05.01.12.50.04; Fri, 01 May 2020 12:50:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726865AbgEATrh (ORCPT + 99 others); Fri, 1 May 2020 15:47:37 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:42097 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726475AbgEATrh (ORCPT ); Fri, 1 May 2020 15:47:37 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPSA (Nemesis) id 1Mr8SG-1iqXej04RS-00oExn for ; Fri, 01 May 2020 21:47:35 +0200 Received: by mail-qk1-f179.google.com with SMTP id h124so10288389qke.11 for ; Fri, 01 May 2020 12:47:34 -0700 (PDT) X-Gm-Message-State: AGi0PuYD55mm+N6tv356HBqD8VQxYbjKsKvdHc8CExoOUnOEqt6443Ie phxz7FIvmNKwWetHHOIKG4cAc2uaOmlEX02ke6c= X-Received: by 2002:a37:a492:: with SMTP id n140mr5339856qke.352.1588362453876; Fri, 01 May 2020 12:47:33 -0700 (PDT) MIME-Version: 1.0 References: <20200501172616.GG3762@hirez.programming.kicks-ass.net> <20200501175022.yf3a34lu3ufui5ag@treble> In-Reply-To: <20200501175022.yf3a34lu3ufui5ag@treble> From: Arnd Bergmann Date: Fri, 1 May 2020 21:47:16 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Remaining randconfig objtool warnings, linux-next-20200428 To: Josh Poimboeuf Cc: Peter Zijlstra , "the arch/x86 maintainers" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:kCe/75rrtP5uA4CcPBLNPGdFw5wjx42O736SFohH1VHTTb1oie1 4asOyfbwVlL3SgnQvKh9dYX4LWs2G9fVFhnHwurE8qpUK+OLnv08X0O4xdc7HeFMl4+DcBa Ev/jBZxsKhLOVS5rocbn+tg17XZt0SiAlck58jQxTY4Cr5VHB0IDxKaBK6W0zigk1wqo4Wh eg1LRlnWSGy0NaX+ivnnA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:8yX7Yxp8mcM=:yQJ0202Ded2+UXsRhLDX4Q 66I5xQ4CGCl4BcuSWJAlmHBmBS/xeZ6FAvHaESBURnvVKfqrR/+5s5G0TNafbB7DqM38iTcNJ tog65Bg4V5Y653w4oyNP2AY5Xp33eeCqZ6X0z3X6c0ALmujpkawTx+GLb0EA3d2VkDqvLkGzn q1R1xrmCk0OlnwcUw82D+zt2FM4pfuA+VxxQtwA/Ohg0fFBr3gDFokqmrpv83sCCdSvWNoGg9 Dvwy0K5EaF8VhwFN377FGsXCwm07n7YwoaIumJWXF/GZHi2lumWj6ad7L35EvIVlCn1D9aAQ4 rpQspI0Ko1JEWkq+wVu+JG55Hxq3aXgfECWIlgC47xJEwULChprRyPu6C1bKr0h1fu85gxkIA fa7VNtiMmwyr2lk6vbzMQXmwxAt70u1s1OBuO9Gm1H2RNuq2Plxi1qa7nvO8q5neHH/b4A190 Zj0b6UuzexwG3GkTHgodKMw5thejcagIkdRRf2cv7yLbSQGsps5HOIY5ftSKYH4DKjrFJFZ4E a9UBy48tIghq3wMEWACeLet7SoCDg34ST8FwY8BucvykxHu783cR2VJbiabKcSPY7QGT7f0kD O0b/CPQUm0uyPz81oeaU2C+GxRAdNIyfxrb2Dr0fb4GVuENsiaTI3lPjlYw1sfyQS7/REzNqf mqeGxu8it5fqSuNLsOHDGf0s2X17bjpPOYyjMAjRybUrCxZz8XwJGKZLbddm26fwxyXea608m TT4t7cQqUFXMX1LPj7MyepYWvbrh7gS/icF9Pein0R2eRnPMDJQv6hUZZwZdAIlbQ2n/ARZH6 +3SlxlAq4DPYkRT4JRJWLHtBh/wqug8FzUzIFKb20yJQLolMEw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 1, 2020 at 7:50 PM Josh Poimboeuf wrote: > > On Fri, May 01, 2020 at 07:26:16PM +0200, Peter Zijlstra wrote: > > On Fri, May 01, 2020 at 07:21:31PM +0200, Arnd Bergmann wrote: > > > On Thu, Apr 30, 2020 at 4:05 PM Arnd Bergmann wrote: > > > it gets into undefined behavior and stops emitting code after the call to > > > > > Do we consider this expected behavior on gcc's side, or is it something > > > that should not happen and needs a gcc bug report? > > > > When it hits UB it is of course free to do whatever it damn well > > pleases, but just stopping code gen seems a little extreme, at least > > issue a WARN that something is up or so. > > > > Not sure how the GCC folks feel about this though. > > When we've seen truncated code flow like this in the past, it's either > been a code bug (undefined behavior) or a GCC bug. So this is new. > > Is it only seen with GCC_PLUGIN_SANCOV enabled? Maybe (hopefully) it's > an issue with the plugin and how it interacts with GCC 10. This is not the plugin but the built-in -fsanitize-coverage=trace-pc. With the reduced test case, I can also reproduce it on gcc-9.2 and gcc-9.3 but not on gcc-8.4. So far I have not been able to reproduce it without -fsanitize-coverage=trace-pc, as the automated creduce tends to run off into undefined behavior unless I tell it to ignore runs that produce the objtool warning without the -fsanitize-coverage=trace-pc flag. Arnd