Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756152AbdCGTo3 (ORCPT ); Tue, 7 Mar 2017 14:44:29 -0500 Received: from mail-io0-f179.google.com ([209.85.223.179]:33649 "EHLO mail-io0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752255AbdCGTnI (ORCPT ); Tue, 7 Mar 2017 14:43:08 -0500 MIME-Version: 1.0 In-Reply-To: <20170307173821.yknj5htr7plgdwxv@treble> References: <20170221231216.y56gb62vkn5ewgea@treble> <20170222210548.GC8467@amd> <20170222212103.tigzbw5sfrwd7uwh@treble> <20170222224755.GA4310@amd> <20170222225614.4z4z24uz6l2iz6qm@treble> <20170222231808.hmr6ulbvfnrg2at7@treble> <20170223201039.GB5177@amd> <20170225050439.7dplheb6nyne4nkm@treble> <20170302234514.3qcqdozibcltkdai@treble> <20170306163807.GA20689@amd> <20170307173821.yknj5htr7plgdwxv@treble> From: Linus Torvalds Date: Tue, 7 Mar 2017 09:52:21 -0800 X-Google-Sender-Auth: GALzEpyF6BahM4RRGgGGLAuiZds Message-ID: Subject: Re: v4.10: kernel stack frame pointer .. has bad value (null) To: Josh Poimboeuf Cc: Pavel Machek , kernel list , Ingo Molnar , Andrew Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , Peter Anvin , Peter Zijlstra , Thomas Gleixner Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 20 On Tue, Mar 7, 2017 at 9:38 AM, Josh Poimboeuf wrote: > > So I'm thinking we should have -maccumulate-outgoing-args always enabled > on x86_32 just like we already do on x86_64. Ugh. I realize we have workarounds for bugs, but I think -maccumulate-outgoing-args is nasty. It just generates worse code by avoiding the much nicer push/pop sequences, afaik. On x86-64 it's not such a big deal, because we pass the first six arguments in registers anyway, so the arguments on the stack is a fairly unusual special case. But on x86-32, we only have three argument registers, so this braindamage is potentially worse. I guess we already do this in most situations due to the gcc bugs, but I do think it's sad that we would do it for our _own_ bugs too. Linus