[V8,0/2] Accept and Handle the case when a structure including a FAM nested in another structure
Message ID | 20230525012255.2807393-1-qing.zhao@oracle.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp37780vqr; Wed, 24 May 2023 18:25:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xABr/VDzO6rE3qFqG3qbSIapMo0mPQmzM6n22JPfcz3ze0t3TuqF1+Lgf9SfEaWj3cKth X-Received: by 2002:a05:6402:184c:b0:50b:d76a:7904 with SMTP id v12-20020a056402184c00b0050bd76a7904mr3309349edy.28.1684977904707; Wed, 24 May 2023 18:25:04 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id y22-20020aa7c256000000b00510e0361bb6si79677edo.88.2023.05.24.18.25.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 18:25:04 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=SdEs7Fb4; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B3D9F3857726 for <ouuuleilei@gmail.com>; Thu, 25 May 2023 01:24:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3D9F3857726 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684977899; bh=JHAxkaFINXDotYp+vfwwyEfun2jXQzF69yzkVzghNlI=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=SdEs7Fb488RCl1Wv9qXb0SVSh16RiZ/eBqYzm7G2SFfVSKPnfzYFjJv65BRU5jnLo F//QA/5qPSSQNdNfI7cPDNhVXe34T36DDUV8KMjPRwu+Be/w3SPQ5tOR/V1DKOUnPy jAH/8/sbsLtk0mF63D+wQi0lpGfaUVaoxUoa/PrU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id EB787385840A for <gcc-patches@gcc.gnu.org>; Thu, 25 May 2023 01:23:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EB787385840A Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34P19kFb026724; Thu, 25 May 2023 01:23:23 GMT Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qswrvg0fr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 May 2023 01:23:23 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34ONrl8c012874; Thu, 25 May 2023 01:23:22 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2175.outbound.protection.outlook.com [104.47.55.175]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qqk7h0kkg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 May 2023 01:23:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m1owKTVMvmKUsAAVYaMN4x4/QXmWp06jtJYFZOESUt/6nXoAABiFEnSykgBT1IXJdcocSJh7/RsPoOhkgbnABbxx+HvJw917qPbRU4r/hr6S33CtYDOEcV7Qxkb+mKhSLNag//6zbz5NXtPgoVUroeZBAhRRZk3QgYz14L4Rca2Tsp0djpa5HSvUjCyzOzRSGtge28a3hh0KuXoJW7f9d4p3lQUEUD9XhlCxftfeOIk74XJVgA2CLG1homZ2CGRGRfICpH3BB9Rxgc3vwROvJxgc8nkIIriPrYd5gtb1H+l8pI5CmdMzQtcphrkyfisupdbmbInJju66vYTW+Bv2kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=JHAxkaFINXDotYp+vfwwyEfun2jXQzF69yzkVzghNlI=; b=iC4ialYsNz2JryDd4njQn8f6sauiv+aFQEOXUYJEO0HDPM8HlNqFOygqCHUAb7Er0Xb3pIrotsamHTx5NYUeU40eQwZCHvafsEFjp7E7DpiLWmrmwg5IAzvus2nHWnGqUu2wf/m+2DmLzJpi8vlPkQSyIULEcjJk223n65RUsX/MkQYDTSda1ITrdBHiCxMS2gswJEqexZE7CyEEfLYoUWo2l37BuCDisnfHV3XMwnJLoC/MuB0Ye+yVZgGIbcSUpF+ewxjnKd5ZY+xBHeCa7YBtvcbF0gdmhMCXCTYrBBihOqVXxVVLx0UUBxMSAxvahKCjUjDqSDfv5Y2rPfJGGA== 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 Received: from CH2PR10MB4344.namprd10.prod.outlook.com (2603:10b6:610:af::19) by DS7PR10MB7129.namprd10.prod.outlook.com (2603:10b6:8:e6::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Thu, 25 May 2023 01:22:59 +0000 Received: from CH2PR10MB4344.namprd10.prod.outlook.com ([fe80::7aa1:df38:105a:21fa]) by CH2PR10MB4344.namprd10.prod.outlook.com ([fe80::7aa1:df38:105a:21fa%7]) with mapi id 15.20.6411.028; Thu, 25 May 2023 01:22:59 +0000 To: joseph@codesourcery.com, richard.guenther@gmail.com, jakub@redhat.com, gcc-patches@gcc.gnu.org Cc: keescook@chromium.org, siddhesh@gotplt.org, uecker@tugraz.at, Qing Zhao <qing.zhao@oracle.com> Subject: [V8][PATCH 0/2]Accept and Handle the case when a structure including a FAM nested in another structure Date: Thu, 25 May 2023 01:22:53 +0000 Message-Id: <20230525012255.2807393-1-qing.zhao@oracle.com> X-Mailer: git-send-email 2.31.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SA9P223CA0013.NAMP223.PROD.OUTLOOK.COM (2603:10b6:806:26::18) To CH2PR10MB4344.namprd10.prod.outlook.com (2603:10b6:610:af::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR10MB4344:EE_|DS7PR10MB7129:EE_ X-MS-Office365-Filtering-Correlation-Id: a9946699-5bcf-49dd-46e5-08db5cbe93b8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HPHYaGpZWM4hTnQQvyrrLWHwI0uvfdF4POd8Ycd+7+2jVQ6z+do7rAjgL5nkpU9mv/F6COB9b22KYAK08Ujn6lsCG9u9yxij1lGX1jclDhgg8dxCO9f+JKP0e9Kdo6Hyn7KMwa1bNmjEPPAfM+Wj+jKy9O01PyCi+/QzUNHRTCMXUsgH41q1i9r4/KfI9kBQWN0NDxnsRRaFWg3YyhonpkQ83Usk56EjIZGtJ8Q9s4dQAiB9TTZf3c1dQw8vhwBzFx0q3pZ7LANIerCimCT4F9D4x1D+ZNj32VM1HTG/DE8I/TM9vN5NuAEbWfRF7qZMj4G6vRDfRc/zkwzgxPik2ZMZmuVfkEX9/c1yg4+3kPXimFLM7Jq5xUpSdeMqI6NYnfN9eYcRxFN7CR9Ke7S8BKfCAO+mBMjBvv9FJMX4m/qqHBxTsykNqK7ahRlX8dU4CIp7zirfyPCeu3J8lHRaZVTVFzHLaCSdmfhR3cJ5V44s3NuJresZxHMWJg8MyF1XfYkiyz8pZPJ12SqqyWHL7C1Z9YoGzX89Wv0RovXP6cnPC0ddqZvGnJbxwJUlO6FwjIPmAKDk1yIfQUtpy86ETw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR10MB4344.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(136003)(346002)(396003)(366004)(376002)(39860400002)(451199021)(4326008)(41300700001)(44832011)(107886003)(6486002)(1076003)(316002)(26005)(6512007)(6506007)(6666004)(8936002)(5660300002)(8676002)(966005)(36756003)(38100700002)(478600001)(86362001)(2616005)(83380400001)(4744005)(2906002)(186003)(66556008)(66476007)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bnHD+qf2y6S2yVVnPdMYRTVt29u+N1KN+vNkUtfh34CHtbT0ZMTuhf5GBSkkl/zUZW22P6ww9apX9fUpa1JAmaQfexmvDKbx3ICNxsN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2j6hXR1/Q2m4qfC9uiBmIkKcH+G0MwUKGNHebrNnElfqAiVR5YCpUA73c8cKXN4jT9UJ6/BlRe7P1pKEGlp0BIG+B47FQwmUpjEIV5rFCiLZ7wMRmMAYDTU+vZOu/mu5x4C7C/s1o8HHlakcREEtbQn+0pz0Gv0Te/klGom2e4Yums+n2pY4PN4GuUJXqbaQlpeGYMkXEiD2eY4DFd/4sl3KI7POWwDElbI+6yaF6ZvaKgS8YkSVfWPl5ey+o0JK/2ewfTdxdg9LJZJgEWPb0mSQkt660RJhOfuW6XqR5G/enW6z5WDgWuPvQsoyplV2uAqn/atFOfierfpmc5yxbeW4JWojiikhfpEhBu7b8QB X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9946699-5bcf-49dd-46e5-08db5cbe93b8 X-MS-Exchange-CrossTenant-AuthSource: CH2PR10MB4344.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2023 01:22:59.6401 (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: xU1cfMNfEjb/dA+eSRravhLb9PA6gte3JoEEy+DETIIj5g6v3DvY7snAw6k33hwVzilRffuOWTbBcJ1VODZXYA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB7129 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-24_17,2023-05-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 mlxscore=0 spamscore=0 mlxlogscore=977 adultscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305250011 X-Proofpoint-ORIG-GUID: IOciYPZ6MS2UFvvCB5mKg1gyOZ3ncWIw X-Proofpoint-GUID: IOciYPZ6MS2UFvvCB5mKg1gyOZ3ncWIw X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 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> From: Qing Zhao via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Qing Zhao <qing.zhao@oracle.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766827391780614688?= X-GMAIL-MSGID: =?utf-8?q?1766827391780614688?= |
Series |
Accept and Handle the case when a structure including a FAM nested in another structure
|
|
Message
Qing Zhao
May 25, 2023, 1:22 a.m. UTC
Hi, This is the 8th version of the patch, which rebased on the latest trunk. This is an important patch needed by Linux Kernel security project. compared to the 7th version, the major change are: 1. update the documentation wordings based on Joseph's suggestions. 2. change the name of the new macro TYPE_INCLUDE_FLEXARRAY to TYPE_INCLUDES_FLEXARRAY. all others keep the same as version 7. the 7th version are here: https://gcc.gnu.org/pipermail/gcc-patches/2023-May/619033.html https://gcc.gnu.org/pipermail/gcc-patches/2023-May/619034.html https://gcc.gnu.org/pipermail/gcc-patches/2023-May/619036.html bootstrapped and regression tested on aarch64 and x86. Okay for commit? thanks a lot. Qing