From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51025 invoked by alias); 24 Sep 2018 07:57:48 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 50226 invoked by uid 89); 24 Sep 2018 07:57:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=30am, HContent-Transfer-Encoding:8bit X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Sep 2018 07:57:46 +0000 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8F2ED30001D4; Mon, 24 Sep 2018 07:57:44 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-68.ams2.redhat.com [10.36.116.68]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 27690308BDB3; Mon, 24 Sep 2018 07:57:42 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id w8O7ve1I029865; Mon, 24 Sep 2018 09:57:41 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id w8O7vcNu029863; Mon, 24 Sep 2018 09:57:38 +0200 Date: Mon, 24 Sep 2018 08:08:00 -0000 From: Jakub Jelinek To: Martin =?utf-8?B?TGnFoWth?= Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Unpoison variable partition properly (PR sanitizer/85774). Message-ID: <20180924075738.GL8250@tucnak> Reply-To: Jakub Jelinek References: <9c109e8e-0a91-3e18-6866-630431823e06@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9c109e8e-0a91-3e18-6866-630431823e06@suse.cz> User-Agent: Mutt/1.9.2 (2017-12-15) X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg01320.txt.bz2 On Mon, Sep 24, 2018 at 09:39:30AM +0200, Martin Liška wrote: > Hi. > > As always Jakub provided my very nice hint how to fix the issue. > It's about adding representative of a stack partitioning into > asan_handled_variables when another variable of the partition > lies in asan_handled_variables. > > Patch survives testing on ppc64le-linux-gnu. > Ready for trunk? > > gcc/ChangeLog: > > 2018-09-21 Martin Liska > > PR sanitizer/85774 > * asan.c: Make asan_handled_variables extern. > * asan.h: Likewise. > * cfgexpand.c (expand_stack_vars): Make sure > a representative is unpoison if another > variable in the partition is handled by > use-after-scope sanitization. > > gcc/testsuite/ChangeLog: > > 2018-09-21 Martin Liska > > PR sanitizer/85774 > * g++.dg/asan/pr85774.C: New test. Ok, thanks. Jakub