From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756440AbcHVXvj (ORCPT ); Mon, 22 Aug 2016 19:51:39 -0400 Received: from terminus.zytor.com ([198.137.202.10]:37700 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751980AbcHVXvi (ORCPT ); Mon, 22 Aug 2016 19:51:38 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: <1471633802-2936-1-git-send-email-vgupta@synopsys.com> <20160819212428.GR2356@ZenIV.linux.org.uk> <20160821001141.GV2356@ZenIV.linux.org.uk> <20160821045402.GC14857@tucnak.redhat.com> <20160821064229.GX2356@ZenIV.linux.org.uk> <20F4A326-4107-452C-AF84-385136D9501F@zytor.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [PATCH] ARC: uaccess: get_user to zero out dest in cause of fault From: "H. Peter Anvin" Date: Mon, 22 Aug 2016 16:51:28 -0700 To: Linus Torvalds CC: Al Viro , Jakub Jelinek , Vineet Gupta , "linux-arch@vger.kernel.org" , Linux Kernel Mailing List , Ingo Molnar Message-ID: <6A9009F1-3024-4644-BCF3-31C72ECC1AF7@zytor.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On August 22, 2016 4:48:00 PM PDT, Linus Torvalds wrote: >On Mon, Aug 22, 2016 at 4:12 PM, H. Peter Anvin wrote: >> >> How about the gcc native __builtin_setjmp stuff which is supposedly >better? > >How new is it? The whole point was that we'd not have to worry and >wait for gcc features.. > >glibc doesn't use it, which worries me a bit. Has it ever gotten any >use/testing? > >But yes, the compiler could do better. If we can rely on it, and it >doesn't do stupid things (like have signal state etc crap - glibc >seems to just alias "setjmp" to "sigsetjmp" with a "didn't save >signals" flag) > > Linus We can always fall back on the classic implementation for older gcc, just like we do for so many other features. -- Sent from my Android device with K-9 Mail. Please excuse brevity and formatting.