From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id BACA23858D1E for ; Mon, 19 Dec 2022 14:22:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BACA23858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 789EB60D0A; Mon, 19 Dec 2022 14:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1671459770; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T9u6+DeYyQQzzTF0db3jXVDVSIlqPnd07t290enkYAU=; b=aAzG5wA1XJ7MN719M+HtczpErkpo9TzxRljhNKBvkIX2VJLhA8F8q9wJpiBioabhg6IzzP 8KiKI4jmGitpsq+Z6RY8pVSsHSf8DydLYirceGbsvwMSBTZLF1dXhdbj6D3igbqfWyPiYJ Z87kHYpKdC6IWIMOfYXdK8vV9JpI/5Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1671459770; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T9u6+DeYyQQzzTF0db3jXVDVSIlqPnd07t290enkYAU=; b=Lbt6vyqXRmy8Xen+LclB2UcsWcx46dWjb6yj8kRdiFAjCqP0jz7jBfFRk3oDNQJ+JtYVFb 74HWScqrSRVm3UDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 69BF913910; Mon, 19 Dec 2022 14:22:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id q5/7GLpzoGPvNgAAMHmgww (envelope-from ); Mon, 19 Dec 2022 14:22:50 +0000 Message-ID: <7aa27181-1e01-5711-7080-f50ad90d58be@suse.cz> Date: Mon, 19 Dec 2022 15:22:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: new ubsan handler Content-Language: en-US To: Martin Uecker , gcc@gcc.gnu.org References: <3c4aacb0-b8e7-de52-950b-74bbbc67c6bd@suse.cz> <232bd6bc9188adb68ec8faafe15ae2c3944054de.camel@gwdg.de> From: =?UTF-8?Q?Martin_Li=c5=a1ka?= In-Reply-To: <232bd6bc9188adb68ec8faafe15ae2c3944054de.camel@gwdg.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_SOFTFAIL,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 12/19/22 10:25, Martin Uecker wrote: > Am Montag, dem 19.12.2022 um 09:44 +0100 schrieb Martin Liška: >> On 12/17/22 20:35, Martin Uecker wrote: >>> >>> >>> Hi all, >>> >>> what is the process for adding a new UBsan handler? >> >> Hello. >> >> Yes, we sync the run-time library from LLVM project. So a new >> sanitizer >> should go there first. >> >>> >>> We have the source in the GCC tree, but I guess this >>> should go via LLVM? >> >> And the compiler support (instrumentation) is independent. > > Thanks Martin! > > Does it make sense to send the full patch (with changes > to the compiler and library) to gcc-patches first for > review? Yep, please CC me. > > I am working on a patch that calls a handler when bounds > for VM-types do not match on assignment. Nice. So basically something like -fsanitize=bounds/bounds-strict/object-size ? Martin > > > Martin >