[V8,0/2] Accept and Handle the case when a structure including a FAM nested in another structure
Message ID | 20230525152821.2989599-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 k13csp457748vqr; Thu, 25 May 2023 08:30:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7zTS58ZLnv5L2DltWR0SL5dyrWQ/b0M8vbA0Qc7GDwG+EdVTl/FwAtFMxiMTjf10UB7NQg X-Received: by 2002:a50:ed99:0:b0:509:f221:cee2 with SMTP id h25-20020a50ed99000000b00509f221cee2mr5112617edr.32.1685028606006; Thu, 25 May 2023 08:30:06 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id c21-20020aa7df15000000b00506b1ff4196si1231411edy.392.2023.05.25.08.30.05 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 08:30:05 -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="VQ/F8jGS"; 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 6AB12385B53E for <ouuuleilei@gmail.com>; Thu, 25 May 2023 15:29:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6AB12385B53E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685028590; bh=URasbuJpHQgyO53+G36YeEnPo+tN6xJUGSNqJF51pQs=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=VQ/F8jGSK2W1HM/QUF0gfdcoAhWqc5QN6+97s6uoyjvN/pedAqPDf8CGPOxrkNiOo vmNcsFVHUibsNR1+TYUqrZJVWN+hXMPWA9ZnYB0fvqrx7FTMnj3/xGEqnCjGOVDN+N I6Sn9/mgTTi6zw2TIaigCa1AZD6Lmn6BSSLnRp6E= 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 E2B05385841E for <gcc-patches@gcc.gnu.org>; Thu, 25 May 2023 15:28:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E2B05385841E Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34PExZlU001625; Thu, 25 May 2023 15:28:40 GMT Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qt9wxr4hv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 May 2023 15:28:40 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34PDumYF024503; Thu, 25 May 2023 15:28:39 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2169.outbound.protection.outlook.com [104.47.59.169]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qqk8xaetm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 May 2023 15:28:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aFc8XtkGzj0W7Gp9ooMin2veNzXP9B9oCl7r+pMDx+dThtbhiVwFMZ/tqXJKCvWhNsUQ0p/R5+NXYybaVQcZrJRb4nr6mpU+VGXxA7u26cONHlVE+f/8YGMjsGLRV0mCtkIl3HEhDIqlOjKNGxQcyg51XQrtAFs2DBzU3UPV4Ef9CF5/AkEOlqDOAoWQW1pvzqgZgahmBj/bir0Nx0YlDEIv5R5aJondcRiPIIZ+KP2jpDPzg/rCotg40JSOSDlf9RkViuisB5JSgfhrKrZtclNNouCbCedRhLLGS9yYhLAztacf3z/Mmn6aQJlJl3yu48icF37Y9MmCYSSBLxtXvQ== 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=URasbuJpHQgyO53+G36YeEnPo+tN6xJUGSNqJF51pQs=; b=NLaD5PjuwA3wqTiIZcFYIWToQ6Fb6xX7h9raaSlBUaS5N9W6OwOl1piKN5M8/3bmaY8uYR8CCZVB+sfecq8Z8RNxTuLdHgY5JSRPip/jZekrvFwOFtIbC22fyiu9HwC66PegVUtXXEdMNakOEnpbcxKBMC9qwrTF1iUINvQYm4MEgWL5f7XQkCVbAzoGTHdMz0dp7S9BFnNU2E+kHOgTkM9Jla7wpUm6u4aJzVzvudI4FCS4a0ZAL6Of1goME99632N/yQ2EyXIOTgh/z4YBc3YRvaHsLiRpjEcboKkNI8Nd/aW0IMqanE9jbW2QqiifROcQM7ZlUiAnAkNONWiCrw== 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 SA1PR10MB5842.namprd10.prod.outlook.com (2603:10b6:806:22b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.17; Thu, 25 May 2023 15:28:37 +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 15:28:37 +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 15:28:19 +0000 Message-Id: <20230525152821.2989599-1-qing.zhao@oracle.com> X-Mailer: git-send-email 2.31.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: DM6PR11CA0040.namprd11.prod.outlook.com (2603:10b6:5:14c::17) To CH2PR10MB4344.namprd10.prod.outlook.com (2603:10b6:610:af::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR10MB4344:EE_|SA1PR10MB5842:EE_ X-MS-Office365-Filtering-Correlation-Id: 831c25c2-dffd-439d-fff4-08db5d34b59e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 46uC5sFlFhgfnXRxONAbrIHPPMkVrD8qRgCbCgx7NMQBLk8Npi6K5ng8HFkZ/T7JbGffNr/uLJw/Q/Paal32z2GMlCyh/0eyPjr3aT9PdrqDU0ov7oBEEQCVBIuOa93eG7isdfiySeF6JV50is7/QXP4BdZI5hgPFlmpI6zJ0dEpz6SUZdlJQwC929+SCVDx4clONUxyFLSZ+a3rJh9fM4GQ1QWx6Y8TOC9kZRiWtqyhtY+Bxdxwbj+bF9UFRcxSnTZf9c3y/xk98MG3rO948WqQwk/yLR6QI5boZQxvWrNZRf1Mgz9VKWR3yMeinacU58Ka6aE92I1cFymcaek3WuRbhhTrV+OtHUU7TOD53Jq+hpS6eiJOGTZdNRfjLPPRlRA4zplFzg0WBAbM0PmJMIb7bd6jG41r3Ta3EbNTuYjKYLNGR6de5sRKP6iMxov3i4mQwc8HoUs36LN5CSz6ud48hcsC2T0+WFIGEOUzkFxaEg0lazkqN6nGvJPYHeIGoUwVweNUHWZ92XE8DxvwKXdcST63UbcgTuW2WMyJz8l4xhrw9L8Y5EdYIRoITroyfEv0efCMJLfyMmqw9RZfMA== 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)(366004)(136003)(346002)(39860400002)(376002)(396003)(451199021)(4326008)(8676002)(41300700001)(8936002)(316002)(6666004)(6486002)(66946007)(5660300002)(66556008)(66476007)(107886003)(478600001)(1076003)(26005)(6506007)(6512007)(44832011)(966005)(186003)(83380400001)(2616005)(2906002)(4744005)(38100700002)(86362001)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rxOQB7RIaeKaMI9MHUcfyy+yAOSbnWimuh9KbD2+MYbpOmn81D3yWpssVSdyBRb7vSf4oevNWbitAJy9Df3RE2td4ZKj2bD02AfW2S39hqe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6zcucvlTBAEkp5mY+/M7rVAVWMZW2XW0uggzt8jrR2v6M10bxPND1hhNIN+DsviVF9x9pmoDy83+f1AEWgHckiilZ1wmTDRs5sMDop4/FpC+/N5drTaidMXd0JYbjRHPUzuFR3NvPhyQpLvM3y0JfYdQNMXGl9WYZKxEBvX4tTWD++GiClt3CvKTalrk4UO2GdCS6yN4uEHzshMJt4W4q8rIzeqns9jj8jtxZrLFhK0BWE4cOlGDnV0VTpEWw4TYcSVXlYWP0QKQgrNBwopS1Shd4jxQQ6JTtjXoZN/v6fN+KyhHtIEbdUx3pOqKVpUPDshtmRyACr+nf45/T7E4x/jYtJMxKauQnwj7MnZNd6Vp6ZmC X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 831c25c2-dffd-439d-fff4-08db5d34b59e X-MS-Exchange-CrossTenant-AuthSource: CH2PR10MB4344.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2023 15:28:37.1335 (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: dtm81S2OsIk1JzR0QsY7j6hdGhg66yeJ0zdjh65zUzDgN3G6XVRJivgGJjFCucwsNzOXjJjzoxqZpBvWQsv1OQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB5842 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-25_08,2023-05-25_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxscore=0 mlxlogscore=955 bulkscore=0 malwarescore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305250128 X-Proofpoint-GUID: oEkbBs9uE9y4VAaKneDYHCgG4dXJEmrD X-Proofpoint-ORIG-GUID: oEkbBs9uE9y4VAaKneDYHCgG4dXJEmrD 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, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, 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?1766880555564647051?= X-GMAIL-MSGID: =?utf-8?q?1766880555564647051?= |
Series |
Accept and Handle the case when a structure including a FAM nested in another structure
|
|
Message
Qing Zhao
May 25, 2023, 3:28 p.m. UTC
(Resend due to the previous patches didn't include the version number) 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