From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH] ARC: uaccess: get_user to zero out dest in cause of fault Date: Sun, 21 Aug 2016 02:40:30 +0100 Message-ID: <20160821014020.GW2356@ZenIV.linux.org.uk> References: <1471633802-2936-1-git-send-email-vgupta@synopsys.com> <20160819212428.GR2356@ZenIV.linux.org.uk> <20160821001141.GV2356@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:57336 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751222AbcHUBlS (ORCPT ); Sat, 20 Aug 2016 21:41:18 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: "H. Peter Anvin" Cc: Linus Torvalds , Jakub Jelinek , Vineet Gupta , "linux-arch@vger.kernel.org" , Linux Kernel Mailing List , Ingo Molnar On Sat, Aug 20, 2016 at 06:09:15PM -0700, H. Peter Anvin wrote: > >Sorry for the bogus noise. I don't know why I was so convinced setjmp > >needed special gcc semantics. > > > > Linus > > I think the specific name setjmp() is magic in gcc. It is; attribute equivalent is returns_twice. I wonder if "explicitly clobber everything if we got false" + asm volatile to prevent reordering would suffice for our purposes, but that's really a question for gcc folks...