[V9,0/2] Accept and Handle the case when a structure including a FAM nested in another structure
Message ID | 20230530183029.1156862-1-qing.zhao@oracle.com |
---|---|
State | Repeat Merge |
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 k13csp2380942vqr; Tue, 30 May 2023 11:32:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5NTZn4/TJ9NAcHd9Fogs2vHUVfNKwbtj4+YTNKtKOXz784mQXJN+h9KNKlulZi4uEburvx X-Received: by 2002:a2e:7e12:0:b0:2b0:3046:9d1 with SMTP id z18-20020a2e7e12000000b002b0304609d1mr1341953ljc.34.1685471523796; Tue, 30 May 2023 11:32:03 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id kd4-20020a17090798c400b0096f7b49e5a0si1168731ejc.794.2023.05.30.11.32.03 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 11:32:03 -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=xPidtDe4; 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 7D5D83858436 for <ouuuleilei@gmail.com>; Tue, 30 May 2023 18:31:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D5D83858436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685471490; bh=HGuFitxd4/ujSnlM2sDPlyPHAjcZxjmWLhiny8awiF8=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=xPidtDe4Yb4RxLg+j7tt3DNnMamkgOTBTk0OijAWWczlMbl8e5pF9ltDaE+2uuw17 Te8+DdEac+0fSBq2qtzjd9wG8B6s2Y01oswCZBQ39M4Y4PGy+Unx+F8f2heXAaX9l0 SLunchhrBcpTvXZ0DHqFJPWFTPVytnVAbClULzH0= 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 82DA43858D20 for <gcc-patches@gcc.gnu.org>; Tue, 30 May 2023 18:30:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 82DA43858D20 Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34UE4uqX016924; Tue, 30 May 2023 18:30:37 GMT Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qvhjkkh16-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 May 2023 18:30:37 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34UHoNTl003775; Tue, 30 May 2023 18:30:35 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2047.outbound.protection.outlook.com [104.47.73.47]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qv4ybw29q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 May 2023 18:30:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ahkz3tw9Z7XJBzjVl+YiiyBY531Av1PbNJHlny2xh65S0JhJN7zWoGSAWV2o6mZZuoWtVlkremaCt65NllMjJFAheA0LlXyncJwniAAOnxeuVOOsqQaT187rKc30Gv2Xn4ETxqVQhjtjLZmbl0ThJ9pA1s2JWkpBpVEcAHJSaLmxBhL/0bxw7IKdlTtyJihPofP7Q17km89CZUQFZXPM9vSIBFZB2JSe/Ez0pCR66Lx7mJHwzKE8dwyyq/7jRaUGuWh51nxQU7tOuFTWdj//BlmugoOTC7Uhd7o1cMcUyTuW1wuofaJxTHisBTVTU8pnt533JFL3LSsNDE3d4YsbLQ== 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=HGuFitxd4/ujSnlM2sDPlyPHAjcZxjmWLhiny8awiF8=; b=Z03Sai1EPWKYtjD/qvGjukt0VCjKyKlTWiXXhJV7+YW4BM3w4iSkThbAgcspXNlGjY6dyoGMzVuoGINEgoM+frwmJ2qM5Ek2WspAq+/PkP9Aslaf5u43Ur5cFaSWT0HncQa1EXa4yfpVt36cCHluWMcMU9upv0/Zg9b+zIIoiXO879odDJC5JLVeq7JO8/GtpOK7pWE3On1OkxZ6Get1kVnEse5zGdwsQf9foISBRPa+2FKPMzVoKJEWlfoZoq+4XatNvHrYkufhMucud8oHupzrn9Bks6c/AAYNJHLx95ql2g4HhEgiBL7Hu88kEHInNfGqEhajc5N7PdGRTdIYow== 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 PH7PR10MB7033.namprd10.prod.outlook.com (2603:10b6:510:276::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Tue, 30 May 2023 18:30:33 +0000 Received: from CH2PR10MB4344.namprd10.prod.outlook.com ([fe80::346b:de36:41d7:b1e4]) by CH2PR10MB4344.namprd10.prod.outlook.com ([fe80::346b:de36:41d7:b1e4%4]) with mapi id 15.20.6433.022; Tue, 30 May 2023 18:30:33 +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: [V9][PATCH 0/2] Accept and Handle the case when a structure including a FAM nested in another structure Date: Tue, 30 May 2023 18:30:27 +0000 Message-Id: <20230530183029.1156862-1-qing.zhao@oracle.com> X-Mailer: git-send-email 2.31.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SA0PR13CA0014.namprd13.prod.outlook.com (2603:10b6:806:130::19) To CH2PR10MB4344.namprd10.prod.outlook.com (2603:10b6:610:af::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR10MB4344:EE_|PH7PR10MB7033:EE_ X-MS-Office365-Filtering-Correlation-Id: d0dfd5ca-ebf0-49b2-da74-08db613bf422 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jA4qjuV9p5VscQspOYnHgwjSPz32/j3MaitKNi9eRsXJAuCr0t+igmE40TmOaqriZbVxJjInONad7rQnBzUH0tBSKeX9WE8Zw2MPn+3u2FmpcHR9ged50Zm3OtvlP3kQZ3xpEXUrln7TzpvtXB2Mi7sZGxlYF17LyxcaxWzr3rlB/RakwbCKeEgZhTAavHU9dQRLJ6VgI38gKsVCam1Uez8mShL52sxjPfPj0hDdcgZc8oeOEuG3Jo7FXdcvnMoXDILu5lPzLp8KvdEI/4zAy6ze1wABRBdJEp8pjP8QH2Cn2QdF8/0NzuLOMBxytjC54SV6QKOOXdHOg0UkvvM5VZjekGlVLvhXuVD3YhTr6pE1d4nAYjUyRzZFsjVFtLJ3sHp7RcaDR+mClnmMArtHfWd8U+GEVCWWKtZt30Gjk6AoRIUb+s/vl+OVVAA0DoNAtLQdm223OqeheVclFyv7n+7fajKQXIw7uji8vzKDI7xhILa1tFjMJQQCxo7XjjBbUuparxVkNSQV5RFBUVt6cFVLR5hWYs3zGqujSW7DmZYLmTQDOeM9pfNMYawfJXXK 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)(39860400002)(366004)(396003)(346002)(136003)(376002)(451199021)(478600001)(38100700002)(66946007)(66476007)(66556008)(6486002)(41300700001)(8676002)(8936002)(5660300002)(86362001)(107886003)(44832011)(26005)(2906002)(4744005)(1076003)(6506007)(186003)(6512007)(83380400001)(4326008)(6666004)(316002)(2616005)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZuZuGhA1FH3qpuqvpeManbkeDsZnr9DwzRCzVPlnd2Ewe/ufCzOiIBRSkWZgLqO9vOQyAWLnh7cBlgGRJew28uC5SEvCCxdYlELeNNwFGIs2uhT3gi8N6O6BaFWBSPFrVYXPd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kkspYoltnU3tdZ+Q4KNYqdfIkeTcTPwNiTEA/8SUTY7GGbU+YDmhJKSqDffvHi9eFHa9KLXRtvTCyrj/30YOHZd9F6hH/3hpbHdvC3p/MNZ2KngawNfZt4H0AQsXfp4VCJZB3CLr5dAIRzOU4wEp3YIGmEQ2tl83DQXFc3xsRfU3SiTcjAprBuS+caAOzGdhIXtu1mxA9gZtjcnUWfTgI0Q26QO49zm2Qw5xdZwGy1hPjTrnrm5ohVcbyGwzl88eQEXbx4Ck/9jQ9iFBFc3p/48GSRtcKcMvcDcIcZY8S9Iq8FwM3EKWm3VS4f8RwtZlhhzLIkdlg2dBJwViXL X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0dfd5ca-ebf0-49b2-da74-08db613bf422 X-MS-Exchange-CrossTenant-AuthSource: CH2PR10MB4344.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2023 18:30:33.1679 (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: zQ2p6sWsZGYuWdI/25KrOT+vBmQF3smljY3W55YCXmULnqv+9rbHYhKWHJp+EnTmgyXnBaRhN/i/EJurxLaXuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB7033 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-30_14,2023-05-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 bulkscore=0 suspectscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305300148 X-Proofpoint-ORIG-GUID: tmT2pD0Dj0zjew9Yy2I3mBuWiozfJ9x_ X-Proofpoint-GUID: tmT2pD0Dj0zjew9Yy2I3mBuWiozfJ9x_ X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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?1767344988233534162?= X-GMAIL-MSGID: =?utf-8?q?1767344988233534162?= |
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Qing Zhao
May 30, 2023, 6:30 p.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 8th version, the Only change is in PATCH 2/2 (per Joseph's comment): bootstrapped and regresson tested on aarch64 and x86. Okay for commit? thanks a lot. Qing
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 17ef80e75cc..e8a8be93ff1 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -1792,8 +1792,8 @@ consistently. Any code relying on this case should be modified to ensure that flexible array members only end up at the ends of structures. Please use the warning option @option{-Wflex-array-member-not-at-end} to -identify all such cases in the source code and modify them. This warning -will be on by default starting from GCC 15. +identify all such cases in the source code and modify them. This extension +is now deprecated. @end itemize all others keep the same as 8th version.