Message ID | 20241016001126.3256-7-catherine.hoang@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 976C0259C; Wed, 16 Oct 2024 00:11:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729037512; cv=fail; b=i80Ph9LCyJEVAFeCzProY92sGJB7fFUjvK5RljiXqykf/JSRpxqEDmSMb08qxzJnYgpUsn2RHBuGlACyJhtIuojCPJjOBu3Y6XEZNg00ihaRwj/WY3svS+HZm5l6XtZP1Y/m8zdV6SbQfH9w2qdCGgm1ILBcQpZfPSVSjp1D1nI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729037512; c=relaxed/simple; bh=MdUmciKtoz/QqrY+nukznfsBi6zDTkQCc5e2jbSGwlc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=WMxyZyWcjOxb2IVrlA6lS/V+xj7RKC5ExiNhSvHeqNHsdpJBvXt6O7eLLSLovUA9uyi8b3oHZHxYD9g6afLlRTQexmEwP1xYUZNWTZQi3C8FVPodqZE2jPWf0fX3Prs7Q32GWFihrWBIWEQE6UrekP+yp/O9Fk4NFrZjS5+RRYU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=QZUJ0hXn; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=ngB92oiR; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="QZUJ0hXn"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="ngB92oiR" Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49FHtiin001646; Wed, 16 Oct 2024 00:11:47 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=vToyfmovG9qXzauVdmCZzg3AazJ2tFf/23JNbWxg9v8=; b= QZUJ0hXnDWWgV0VQyyIjUSbrFGRB4GIQD1lBytVrOJw944PjGfi4NcGXxGmJdcpf Ra5/KZSIl3WcBOA3kZeXoztFv4i9hCSlRMdJKNW5LVQUrUDaElaPGaNpe2Jt3x6I sXm5lDMkgHLhOq96Dze0IeMU7ke774k0QvWfll75HzPgcjwT2+luBsdZo+tQ5ThJ yYU4E6yCKXoe6JPVRPdfa/qPKk+pOC3cQKebpcCw3rCBkT7Fm3uG5wN4xyE0WqP9 WByB4DzFi/DIqG1MWNB2O8mcMv54zkU0J7ORQydfhWKBK5m6Fjg+gcMS2AHlroho tYWfWvcTpKoUzDpsiKyCLg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 427g1ajb0w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Oct 2024 00:11:46 +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 49FM6a1D036660; Wed, 16 Oct 2024 00:11:45 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2176.outbound.protection.outlook.com [104.47.58.176]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 427fjegwrk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Oct 2024 00:11:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F/NpjRWB+0bKBIg/jwbTFtvDbD5xBqIHpTpo93Wt2g6wrI2nr1C0TIaL6l1w7ZQUMkrfgQuUbPhWcaiUxWTo8htoBx1Pfbte9ti7xIBcyIPzpJZm9H2EprT5s8uMQKWl8xnNypBXa2O+ih7PXYUAUUIn8+lyEt3ypB+C4UV9t3LOF+Tyb92M6w1Ua1HRH+eebuh+hf/Zh5bH5Ty++XCji9qlplXFXZgbK3nEl2NpuuV6UNZYm+n+TQd4fHoPILY85tTaUIWDxmeKqpofRFCDVnsnL+M76r7nQemY945ukRnEwVTr0G5BbmdyBgxZ0G0uo4c9qju2h3Hfrut9rQ6tOA== 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=vToyfmovG9qXzauVdmCZzg3AazJ2tFf/23JNbWxg9v8=; b=Np5N1v9t86Gxro0DPBUMhlQ+kXCuZSFktdJSY114YG9WpodfYSZpLEUDEOVFOypbLm1zfyRQecj7ICkfJ0oCQrf5Xyq6uQd4R7VLk4PShFvKS/IWkQKNPI9vazALvGa9fApfkMvUGX8Jp9kZ8JjreBPxP8IQKJkZnXHtlQuAXArMX8B73IGOXupQGy3q9t6ciIg6gLDmpoWtSk/top+xiXjPrApKS366Pkx7cZFL/3MdffiB8oFsOBN9SgSua0fVt10pdpRxcy2coVTulStk5UUWNYKe+8cvZ+Ry2ln3PJDt76Pd4JjpArTz9BDtelsaWmiX9hbkZwLx36iuVW0w5w== 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=vToyfmovG9qXzauVdmCZzg3AazJ2tFf/23JNbWxg9v8=; b=ngB92oiRBz6xGFa0mWrGlHPTXF5KmTrjklLHIv0D8SxeMnyTRxD+TUNW0Rvb/6d2YBIPcanq15AhmU1TAbzChBToLmOLiO1Y5JAxfU3mlS5oVtK9/8ooQzoW7l2TBhzWaOqMpr69T1BgnJY2Ffr94u3KtwfowWMOWqpdVv5LD7s= Received: from BLAPR10MB5316.namprd10.prod.outlook.com (2603:10b6:208:326::6) by PH0PR10MB4727.namprd10.prod.outlook.com (2603:10b6:510:3f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Wed, 16 Oct 2024 00:11:42 +0000 Received: from BLAPR10MB5316.namprd10.prod.outlook.com ([fe80::a63b:c94b:7ed8:4142]) by BLAPR10MB5316.namprd10.prod.outlook.com ([fe80::a63b:c94b:7ed8:4142%4]) with mapi id 15.20.8069.016; Wed, 16 Oct 2024 00:11:42 +0000 From: Catherine Hoang <catherine.hoang@oracle.com> To: stable@vger.kernel.org Cc: linux-xfs@vger.kernel.org Subject: [PATCH 6.6 06/21] xfs: fix missing check for invalid attr flags Date: Tue, 15 Oct 2024 17:11:11 -0700 Message-Id: <20241016001126.3256-7-catherine.hoang@oracle.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <20241016001126.3256-1-catherine.hoang@oracle.com> References: <20241016001126.3256-1-catherine.hoang@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR06CA0066.namprd06.prod.outlook.com (2603:10b6:a03:14b::43) To BLAPR10MB5316.namprd10.prod.outlook.com (2603:10b6:208:326::6) Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: <linux-xfs.vger.kernel.org> List-Subscribe: <mailto:linux-xfs+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-xfs+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLAPR10MB5316:EE_|PH0PR10MB4727:EE_ X-MS-Office365-Filtering-Correlation-Id: 45767afb-7201-4412-7cdb-08dced771cf6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|10070799003|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: pG3bquysINDHUFA6z36hHcgXvL798nWPp+iok9oU5TgWlxUxgvGkop4f8MQbFbLSABQwmY6JtrrG0kZHCm5Ses+Ee2JII4GocDTOGqyirsGzRoqzVVCtrh8aZX6FxApKI5NVRDW+PnZx9dpz8+q7TqiHwa7NPy9jeci0smPwKWw4BWi0HR9o1THvRtlpkfGD/Q+RtVgNn+MDet3vMD8G4003nqz6RqcpyWc0aAKJHzGa29MpRQuKuwcotSx3ZDuXlxfXXKPzHRMRhD1/0SBr8vcypogXM77QJaqVBRkCHw/JYpMEQc0xqe47hFsxBRcjQB3FCdTYqdWa6iXkzr43PImlNxGTltOWkN2pGtHvI7Cstv1mf358OS8vYPDnBoULXpXxHCGCGqxGVL/+zO41rbjX8WN0jrmL4rBvNsbdhWVgAvIx6vX8YuwqhYiEHHBEVHynZNxtO4sywJxqu1HatnXUYF6PQQF3fSAKn4OHFVxVIXGDQIH/y8gVEZX/EdFj94EbVnza6HYXjP1zB4DIBUqMev66IdOOO73NeYSXJLHXzVrMK3eQcIxfM6cPnJAaq3V8UxP8IncbMqS+W9sb3Sm9iA3AfWhhzUU4vuiUn1jc1JqsTWY0DpdyMIQC0mM0gzf9lMEqReVPeZEmHE6IkXDHYKvQM4sXPKP45COj5YxUZvltPf/ZC9fNMGnh2K6VFkKT40kR+4evjWmIgWDRYXftRaJN/Kb4+2rt1itJAzAO/sCyPKOLFOAT4ntGaumOFIq5luIQgmSfkW++lAVOXu+lSGRiowyJ+Le1oZSyqIGK+PcdNBZgUVqXLACKK3ieYCHEJgh26Et+tbOEkwmD/AUyOEKwXpu8xuJM1aE1ryMYu0d2BcqdE+CA23aCO88DpkAnzUsuv2TeMiHB1jblPHbsyFKDr5khShde4jVbI4tOG75r8rjc9ihwC+BZ/o3QpqhKZ1tseFjm5V5EMSNxNasdphQOhHpk9K5aMsnXOQrgivS/JzZnDALMeB7TKNOI81jNeg2WwF5V5U5AMBsDbr4pafe3BQxBEVxdsuZrB+3TSv7kRXLqEAWqg5BhfSiBGQb2iTOUDuWHcJVu9NcbDIVJlfuxmujcEmS5hlFq6VrKgnh0gtcVyfFFJY0oqVgoZzW3Y4f1/qbuot3TfBDITOfYQmmNL7VVQLRxgO8M5LXBLtmZEVsy4sBBq8uGA/nB5ADvgXs2DWehy07LcJei1a2otw+od6XwCJjdz9rx+flBB0cRlWQs6ams/uRNNyyTVessRDlKoAVgXNCbrIwj8w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BLAPR10MB5316.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(10070799003)(366016)(376014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-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6RLIhozvXgHG2a5PVXiKj7z8JJqAzaJ6u73Po6JnJgQHE6yGvL1/L+Yc1+IwGuVsdUipau5Q5E2UdWOsCWNIgWz54kaHxeDMxQ94cpodGWd3lLgonLNgaT32c9hGbuZvv5UA1Q4JTc2Z+8DMmPemB8C6WiRY4/Q7EThqAdwypQkjery42sfcwTj1rDIf16nNuiqNuBhncxE5gOCDzvmFidU4P/wrhtBPKLWk= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45767afb-7201-4412-7cdb-08dced771cf6 X-MS-Exchange-CrossTenant-AuthSource: BLAPR10MB5316.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2024 00:11:42.3500 (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: BvKlQue7muQ8Ljy4b3cClWSn//AOGtqYeqyrBKYcFW/A83gq99/rEQdwso2Knze0AX59TaK/vVSRolmdPhw2KXg20oGsfLqT06zhCiCvNgw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB4727 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-15_19,2024-10-15_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxscore=0 bulkscore=0 spamscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410150158 X-Proofpoint-GUID: tGMPqmQ3B-ouWNzfKbwWRE3kuiIlTK-q X-Proofpoint-ORIG-GUID: tGMPqmQ3B-ouWNzfKbwWRE3kuiIlTK-q |
Series |
xfs backports for 6.6.y (from 6.10)
|
expand
|
diff --git a/fs/xfs/libxfs/xfs_da_format.h b/fs/xfs/libxfs/xfs_da_format.h index f9015f88eca7..ebcb9066398f 100644 --- a/fs/xfs/libxfs/xfs_da_format.h +++ b/fs/xfs/libxfs/xfs_da_format.h @@ -703,8 +703,13 @@ struct xfs_attr3_leafblock { #define XFS_ATTR_ROOT (1u << XFS_ATTR_ROOT_BIT) #define XFS_ATTR_SECURE (1u << XFS_ATTR_SECURE_BIT) #define XFS_ATTR_INCOMPLETE (1u << XFS_ATTR_INCOMPLETE_BIT) + #define XFS_ATTR_NSP_ONDISK_MASK (XFS_ATTR_ROOT | XFS_ATTR_SECURE) +#define XFS_ATTR_ONDISK_MASK (XFS_ATTR_NSP_ONDISK_MASK | \ + XFS_ATTR_LOCAL | \ + XFS_ATTR_INCOMPLETE) + /* * Alignment for namelist and valuelist entries (since they are mixed * there can be only one alignment value) diff --git a/fs/xfs/scrub/attr.c b/fs/xfs/scrub/attr.c index 6c16d9530cca..990f4bf1c197 100644 --- a/fs/xfs/scrub/attr.c +++ b/fs/xfs/scrub/attr.c @@ -182,6 +182,11 @@ xchk_xattr_listent( return; } + if (flags & ~XFS_ATTR_ONDISK_MASK) { + xchk_fblock_set_corrupt(sx->sc, XFS_ATTR_FORK, args.blkno); + goto fail_xref; + } + if (flags & XFS_ATTR_INCOMPLETE) { /* Incomplete attr key, just mark the inode for preening. */ xchk_ino_set_preen(sx->sc, context->dp->i_ino); @@ -463,7 +468,6 @@ xchk_xattr_rec( xfs_dahash_t hash; int nameidx; int hdrsize; - unsigned int badflags; int error; ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); @@ -493,10 +497,11 @@ xchk_xattr_rec( /* Retrieve the entry and check it. */ hash = be32_to_cpu(ent->hashval); - badflags = ~(XFS_ATTR_LOCAL | XFS_ATTR_ROOT | XFS_ATTR_SECURE | - XFS_ATTR_INCOMPLETE); - if ((ent->flags & badflags) != 0) + if (ent->flags & ~XFS_ATTR_ONDISK_MASK) { xchk_da_set_corrupt(ds, level); + return 0; + } + if (ent->flags & XFS_ATTR_LOCAL) { lentry = (struct xfs_attr_leaf_name_local *) (((char *)bp->b_addr) + nameidx);