From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8475 Path: news.gmane.org!not-for-mail From: Zack Weinberg Newsgroups: gmane.comp.lib.glibc.alpha,gmane.comp.gcc.devel,gmane.linux.lib.musl.general Subject: Re: [musl] Compiler support for erasure of sensitive data Date: Wed, 9 Sep 2015 12:47:10 -0400 Message-ID: References: <55F05FF1.3000405@panix.com> <20150909164228.GD17773@brightrain.aerifal.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1441817265 9763 80.91.229.3 (9 Sep 2015 16:47:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Sep 2015 16:47:45 +0000 (UTC) Cc: gcc@gcc.gnu.org, GNU C Library , musl@lists.openwall.com To: Rich Felker Original-X-From: libc-alpha-return-63075-glibc-alpha=m.gmane.org@sourceware.org Wed Sep 09 18:47:42 2015 Return-path: Envelope-to: glibc-alpha@plane.gmane.org Original-Received: from server1.sourceware.org ([209.132.180.131] helo=sourceware.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZZiWk-0001ZG-N1 for glibc-alpha@plane.gmane.org; Wed, 09 Sep 2015 18:47:19 +0200 DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; q=dns; s=default; b= YSTMtusysDJ837r+kafHf4Cgb5BBVJyLzUgr5do9ip8oPJiJSUecjbRTYzDjlHzW YZnV1vwcuOhmyfTB+i23gGvCF+p4ZXvq6xt8Wdj3QkgXoVIq+ZK22z2LqihtTfea LiO5cCW69iuvMIgYn7QhRvltTEqPb/Gu8pJ5lO3kUQs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; s=default; bh=K0oW+ YqE1wHWjDSNcE2DSINMIlE=; b=cSJd0xIa//+/iGDMCZXU26AC5C2NveqBB4RYP VPMoV9UqBmKcg/g5UMQn+6SYUaVFQC0gfE/AFdYUjtErB8fZAvW3yl2CXXvqdY/C 5ejIFocapD5fY/Rz5yHkISA7hBrZYsvSMV9hMDJtFF4rHm9+paNLywPxQcg4HpHR +xlme0= Original-Received: (qmail 40787 invoked by alias); 9 Sep 2015 16:47:15 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: libc-alpha-owner@sourceware.org Original-Received: (qmail 40767 invoked by uid 89); 9 Sep 2015 16:47:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD,URIBL_BLACK autolearn=no version=3.3.2 X-HELO: mailbackend.panix.com X-Received: by 10.180.216.108 with SMTP id op12mr57575190wic.43.1441817230660; Wed, 09 Sep 2015 09:47:10 -0700 (PDT) In-Reply-To: <20150909164228.GD17773@brightrain.aerifal.cx> Xref: news.gmane.org gmane.comp.lib.glibc.alpha:55355 gmane.comp.gcc.devel:141205 gmane.linux.lib.musl.general:8475 Archived-At: On Wed, Sep 9, 2015 at 12:42 PM, Rich Felker wrote: > You're making this harder than it needs to be. The "m" constraint is > the wrong thing to use here. Simply use: > > __asm__(""::"r"(ptr):"memory"); Please review my earlier conversation with Adhemerval on exactly this point. zw