Message ID | 20241107213937.362703-9-indu.bhagat@oracle.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=oracle.com header.i=@oracle.com header.a=rsa-sha256 header.s=corp-2023-11-20 header.b=Fbm12SRH; dkim=pass (1024-bit key; unprotected) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-oracle-onmicrosoft-com header.b=JMQW3lCL; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Xkwc50gZ1z1xyM for <incoming@patchwork.ozlabs.org>; Fri, 8 Nov 2024 08:45:41 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1A0433858D28 for <incoming@patchwork.ozlabs.org>; Thu, 7 Nov 2024 21:45:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id D441C3857C58 for <gcc-patches@gcc.gnu.org>; Thu, 7 Nov 2024 21:40:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D441C3857C58 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oracle.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D441C3857C58 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1731015624; cv=pass; b=gRQ+wqS5IM8098yxfRaGXwFdEvv9fFme4k/aee534vmTJcfVbMhOIh61/X6+GdxO+POvNkm7LNbFKcmSECDVwW857+jmCe8wYqTQYUXGqJ+GH+37xUUXZ/fU9F2iTB79bgGi34/AEDZcVwZcc0BlTd2NStG5usBeM2WYau+t1LU= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1731015624; c=relaxed/simple; bh=8DOIYXe4aw8SYfmm1KQTsGzwwsTws5drTr8JorMuFFE=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=paF/dy+CbriHFk4UD5EYEiwDIZV6aDbhILLsV5Mi1CqRLNTiEv4aCfRh246wrmY71C7nkubY7zvd0H0BWlYuLxwYrbQFyVKeSlFZuiSBO24iAWL64m88HqEZ+r0CsUBqpBv1JbOrSufwCG9xf0ELHMLU//IGHLA37AZ//gNpO9A= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4A7Kfhjv032001; Thu, 7 Nov 2024 21:40:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=yfdFaP76f/E9A/tnqadc8dcyytCxS+eSx7icLey6bz8=; b= Fbm12SRHvnISHga0UGelwYczI4pM7DXzJYte69rfWcdxkFIhnsY8/DzApGOF0Ozq h0jXzP9d4IRf23k+71t3EOg9She/6rtEiwvLOOQfEfP0CPnCQM9ckS2tS0zaknMy sVDo74O6m47keWVuoSPVGGxBlxn41/SgJEm0ntvYnprGa7OgLWSEul0t6U2P/2l/ 8/EFUIW+c8MADnyPezn1F9JZ80qDZGOlQs4KCd4U8FiOiSAJBClg2ruT2jUTcvym YJINsbqlDeeuvQWxyie5MmCRIvfMcZ6F0nrZ8gzCKF5yUZ31Iy/sDOg5NlFwbzmi kMTXU0ku7Y9CCxKYOfD9qQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42nap03psp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 07 Nov 2024 21:40:09 +0000 (GMT) Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4A7LFsiq036804; Thu, 7 Nov 2024 21:40:07 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2040.outbound.protection.outlook.com [104.47.70.40]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 42nahasjm3-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 07 Nov 2024 21:40:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CF1eoJvSarZxX3IIs/TMuVztIfah1kES5k0R8d8GvCZ6caU4SP3GfHl8ZPIetzyrvmAEUcsadJZ7Y91lN59RZtpnnQpFU66OxeLTxtCBO4eNW5kQIjzunsFKja8XALCWj92KEEivAOuHq2t9Ki0w9S0txbxGV7bqHV6cdkONjmge4Q8alz+jBSwjaUegxYxY/UegrT7Y2zK45x6q1ftf0ZdUBRj++qolVLgmE2kkfWR6FTZqUCdvXhUjCipovJRI1zsFrkcQ9SsVyKE2D0S/2fX0HhjguED3V3L7FvkG7KfTaZb6An3cSrOhSq9PE8wKZDdZv2Ut4nun7i9PNnmmsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yfdFaP76f/E9A/tnqadc8dcyytCxS+eSx7icLey6bz8=; b=ZOkysg11Ijl6CXrclJ+cm9nOEAg9pE6NLI4rMkjWPUsMaIMGky2PKWsQGXdmIyhPzTI4IdkeefbwZDDqB91b0rUZULXsApALKpOwm7d9eCJQLYCwCbnaLB0YwvxFVwpJnrV9HIP/J+x1lIES5ZZX45vRF9RoUaYMMN+dZzT3I9HyOWvlExIXdH12H1Q5NSv12+TLGGqlARLWQqverA41ifhcDmN6rKDr1jnFEdFOhje5whwp5KxKSQPYjCXbF22UPD9j6bLsj6KuMvAVzG4uTxgH5u3XHrA2MODrCBUbIRyAT0tE3XgApxk7Y8tqxrF1tF76LTXUTyT+/sdqubbj1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yfdFaP76f/E9A/tnqadc8dcyytCxS+eSx7icLey6bz8=; b=JMQW3lCLoQeTWauSjx9LbbeHyWKQD7OjjRmQuvGFRgykhK6njtAtPwz/1uALZKZ8QDuuzf7/u55VRl3nw9u8Mmb8hJ4o8IOJ+n95t0TEzYtDPJt6fZw+Qvcjj3ULeeIuyeDd5t/kRggXlS05bLnYm0+IGS6FMLs26DYmaEMNojw= Received: from SA1PR10MB6365.namprd10.prod.outlook.com (2603:10b6:806:255::12) by SA1PR10MB6413.namprd10.prod.outlook.com (2603:10b6:806:258::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19; Thu, 7 Nov 2024 21:40:04 +0000 Received: from SA1PR10MB6365.namprd10.prod.outlook.com ([fe80::81bb:1fc4:37c7:a515]) by SA1PR10MB6365.namprd10.prod.outlook.com ([fe80::81bb:1fc4:37c7:a515%3]) with mapi id 15.20.8114.028; Thu, 7 Nov 2024 21:40:04 +0000 From: Indu Bhagat <indu.bhagat@oracle.com> To: gcc-patches@gcc.gnu.org Cc: richard.sandiford@arm.com, richard.earnshaw@arm.com, Indu Bhagat <indu.bhagat@oracle.com> Subject: [RFC 8/9] asan: memtag: enable pass_asan for memtag sanitizer Date: Thu, 7 Nov 2024 13:39:33 -0800 Message-ID: <20241107213937.362703-9-indu.bhagat@oracle.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241107213937.362703-1-indu.bhagat@oracle.com> References: <20241107213937.362703-1-indu.bhagat@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4PR02CA0007.namprd02.prod.outlook.com (2603:10b6:303:16d::33) To SA1PR10MB6365.namprd10.prod.outlook.com (2603:10b6:806:255::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA1PR10MB6365:EE_|SA1PR10MB6413:EE_ X-MS-Office365-Filtering-Correlation-Id: e2004f7d-08d4-41e2-5dbe-08dcff74bdc6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|10070799003|366016; X-Microsoft-Antispam-Message-Info: 2D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mzatqYeUlXqQ140iFeLBnR/7mPhs9+LvIJe9YX+J47GqdhuepumNn89P4GcWvBEaL9p3Oq7zH5WGWI8Pz161YwZ0+GhWTMrZ4yuNjPga/TBHeynCTvA9i7GUBp2M19mEkTbfhVc0yW2rDy06vnci+YY9ATzsD1LuKdp4CTTnEoTLdryvNOtkITDsz4q4G6CorddlsjFO+RvLS1YRgKWKzxP+Y9QsvLB9mt2BPTo0THw12xLYttKBcOS/Q36gN1+ZU03XIZtf99+usfdV9r7Z+1D X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA1PR10MB6365.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(10070799003)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fgLX+rQ+dbK0sZsCJo6Ttlb84+O2GOVJIvQfzsquAkNZpIAaiF+uW3PkSmWyBH4JjENvlrcnHsRIBiFP6iQt8f+yw29JAQybu60Vm9XuGoYTaaZDmOBvkkmi1in2aNQDbXN9hkHuguTflIEWEJmJ/tNIzluMag5IFHX6uyG2kp4v0Uz9ZcNVwIBan/qDXnJgQ9Wci6pFTbE/gGUz+qjG8nGVHzVqpRgJgtk8MNWKGFbnRULFcT2Bz2f9OAjqQfcisnc74yai4gSJIXZn+wnSD1IEgzg1S5+MvvsK+7qUPyJGUdci6LjjgvvgQZ3lYFra6za6bRJzZFjm8Pp3xNT8iQaBWVqOMhUWPo7Gw4zcpmZx1tbNk3QkzIceMx4h8Pkt2hBWhRmDlsnJX39Hjb3BfdXQ1gtEuOsjFF9BTxZdLHAjJXmzwPjyIcht+ecQEEkYEE7SUmA6yKy4shExe/VFKV7ItSp8ABw/n1JEZt9W22ofR2hog9kJnkFFWjXg+UCzs/m/lg5maVjV0+iAgn2t8AA8rcCOx3TAOJhq7GNWpUPisjQiryjp7NUsx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nrepwjLpE= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: HFg5C6ANg2WIfbrN/Dp5qIgSmtKkbjkj6CbkSvgQoDQ1n5x5xyaPaiyzqrb/vT6VwOWc9H7SFhjaiumrj2QbYauq8dxTX1cKedCVcjDbArIRcLC8F6fwvw4LmxMW0co/J4TMqSg2jicaMNP2JzDDRUoIS7jG9mBfkLzJxcFJdScBPLksrd9uaiEzZVYq11ysSgYCRbhKwMEl5s1cbtzERV747rnr5WivHnzMTTkT+oNoocd2Dcu2gyp8k6/CD1KZ6Q9V6kSbYTTRUZOmzcGnsSP+04MlYv9mXf/YIq5t/2pVnE7yOWJt4Rg3vheip4hV6U1zQQgSxyM/y103rU54H4FPje9WMRKviY2vLVKez8r4nSl9yylJYckRWixNoSOx1tqkKNNj1LapfmRldH5IWB22S+3fKYXSyreC5Go4IPnugquHmYXQ9rrfn5gKFSSi4lMMxZv/C6GrY0HG1iu6odilRhiX2nFJ8Tin4l4wHX/ofUCvYwmQpYFFDKheNBc11LXzeX+w9fNyGvd05rfCDhuXHyGPRmh01T212g63NRntMDC6kUoMbtkufKTkJlQhkP+CtTeOWaTGxZ2dek1gcZv1nt8f4LUyEKN4f7vYL4w= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e2004f7d-08d4-41e2-5dbe-08dcff74bdc6 X-MS-Exchange-CrossTenant-AuthSource: SA1PR10MB6365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 21:40:04.6489 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5o0JS86zG2lyvTkQiQDMeWExJDM3zyf55H1X0SzvXPuAe7Un+6ESpg5RDKyYrsIktIXJjqaBgqAoQ6up3KLxmw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB6413 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-11-07_10,2024-11-07_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 adultscore=0 mlxscore=0 malwarescore=0 suspectscore=0 phishscore=0 spamscore=0 mlxlogscore=712 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2411070170 X-Proofpoint-ORIG-GUID: 1z7JSq00X9_edbelrS65mik7HQb6B0-_ X-Proofpoint-GUID: 1z7JSq00X9_edbelrS65mik7HQb6B0-_ X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
Add -fsanitize=memtag
|
expand
|
diff --git a/gcc/asan.cc b/gcc/asan.cc index 92c16c67c7e5..762c83ce5e5f 100644 --- a/gcc/asan.cc +++ b/gcc/asan.cc @@ -1889,7 +1889,7 @@ hwasan_memintrin (void) bool memtag_sanitize_p () { - return false; + return sanitize_flags_p (SANITIZE_MEMTAG); } /* Are we tagging the stack? */ @@ -4414,7 +4414,7 @@ public: opt_pass * clone () final override { return new pass_asan (m_ctxt); } bool gate (function *) final override { - return gate_asan () || gate_hwasan (); + return gate_asan () || gate_hwasan () || gate_memtag (); } unsigned int execute (function *) final override { @@ -4456,7 +4456,7 @@ public: /* opt_pass methods: */ bool gate (function *) final override { - return !optimize && (gate_asan () || gate_hwasan ()); + return !optimize && (gate_asan () || gate_hwasan () || gate_memtag ()); } unsigned int execute (function *) final override { @@ -4990,4 +4990,10 @@ gate_hwasan () return hwasan_sanitize_p (); } +bool +gate_memtag () +{ + return memtag_sanitize_p (); +} + #include "gt-asan.h" diff --git a/gcc/asan.h b/gcc/asan.h index d169a769f780..8aa16c9931ed 100644 --- a/gcc/asan.h +++ b/gcc/asan.h @@ -57,6 +57,7 @@ extern bool gate_hwasan (void); extern bool memtag_sanitize_p (void); extern bool memtag_sanitize_stack_p (void); extern bool memtag_sanitize_allocas_p (void); +extern bool gate_memtag (void); bool hwassist_sanitize_p (void); bool hwassist_sanitize_stack_p (void);