Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2272710rdb; Tue, 3 Oct 2023 16:23:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTwOY7D4WTWEwQrXQDe+QtNAXYVNR5ap596/MYamKUsYT8uAoHs3sUXGBIcM5/Ofyk4jdS X-Received: by 2002:a05:6808:3023:b0:3a7:8f94:743a with SMTP id ay35-20020a056808302300b003a78f94743amr1133706oib.10.1696375385998; Tue, 03 Oct 2023 16:23:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696375385; cv=pass; d=google.com; s=arc-20160816; b=ZAc07p9aT0JMOLiZ6ubt8TAoSJFdDmiIINVMHxHS4hadIirmeeEDobMlvD54ecZY4F EzVsbfqEEpSn8+fCznRlKWJ+FTxXXQwrO+zCW9FSRVai6kMVCkQXD23ZoTjui4z4Z2mA OcQtfOvwrWORgg8MM+MgVoGOb2NNGQJE2NnVwU1tgiCGJjnQSAYFE1Dk3MPgF75oEO51 t487cK3qcetptKV95FrRZcYp/yHZGJaDrj5hsC6urvXKeJA+FWeSnvm/AdVykWwei2Rj BYDbNgPyRqEa0W9JVi0QonUTj6gpz/8rGiW+j00ou3In+5YSCFHOzfeyGr+KPf4KiIPv KQfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=X8UeJfPlGgEooasWfuAYGIj/2KRAUGdoAy1aMkgSjnQ=; fh=fpwgnRp0LT5VDa/KLC4L75cM6KBAKQRFyHMk/R6+w1U=; b=R44hbSbbCNceYXM19dFBLwIKh2YOmgqqTPbPMPgyRw3h4FvL19LnqhALhDN9fymN9H kut7iyMBSRUtvI+bQTE/W51u6Piswg4D0Pytjz2pLE2vs5soFoyrTq1P+VjU1PHHAZpP HptF35acVLlX4eCz/Mp/5ozxoKhfVc0AjmZw4YBMNAx8YK5UKOjK5aiYVZjzVrPcBv5s 666uZ73Nwz+y2y8V2pFBneG/Tn2UxUSyJ0XHXMFu6XgSufCMBqLdZxNBOCDbFiU+uw8Z 1uuuBIfWZA11x5eIIFIzavHD0Dz/N3qLTzSHbW3k6x02OPmVSd0Am4l9EK9ZJaHMBJbI vg9g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=SBUAz5Yi; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=QIk9lcO4; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id q10-20020a65684a000000b00577f50580bbsi2437334pgt.299.2023.10.03.16.23.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 16:23:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=SBUAz5Yi; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=QIk9lcO4; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 42D688310D2F; Tue, 3 Oct 2023 16:23:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235519AbjJCXW6 (ORCPT + 99 others); Tue, 3 Oct 2023 19:22:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235900AbjJCXW4 (ORCPT ); Tue, 3 Oct 2023 19:22:56 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2089EA6 for ; Tue, 3 Oct 2023 16:22:53 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 393I4N55004021; Tue, 3 Oct 2023 23:22:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=X8UeJfPlGgEooasWfuAYGIj/2KRAUGdoAy1aMkgSjnQ=; b=SBUAz5YiZ+Twxk/4j09V7gjidX60sP1e6suNzCHHiSgD7gQCajWVU0au7dLClvJWJpRk BwpuccqRbifmihY/oVj4Om6JrxzSNmo2fAWokMOI+o716VSf006ywr55u3QcawTP3HvX PA1c66zDrMMACR8wHEOjvmrBID0Zw91yD/fWCf31/ATcjfZ0oUw6uCUUpDmXPcPg6+4P V64G1nbx5SRvc4N51W3aKvx5u84QEVZwF7HlowRBW9my5ZtdLVY7xeoCG25AXvx0QXbN UehiCZbDJt0TFq032diEP+lW6XL18Fa3iEquI1y4WPNkdxbDtdYi0K6PaY1NWSuGyjSa Pw== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3teb9udw9h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Oct 2023 23:22:34 +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 393M0wur025724; Tue, 3 Oct 2023 23:22:33 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2109.outbound.protection.outlook.com [104.47.58.109]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3tea4d5sm5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Oct 2023 23:22:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wn7EZDH1Oo0pyhnyOnA6tMDlY5QUEBl4NwfGj5s7kNg+kBHgi33E/ZHabL7ODLmXNBYYxwe5mjVB/WDbvyRO+BmKxFCzFjw9iVbYr9Zxp3qKYw8aAxOaHFry1fmxmKpkDkz0GFvNfOF37QkDRIk1uUvTc73vHxwq0whssjP+47eDfdxAHUAGp/pNEO5/3Cr4M17XDwxj1wZjWz2PVzAZ0Ex7LXnk8ASIZEeSVSJbw1S0i2cVAjHJGs4GOIx+lNASMsZQItFVzjFdtiGOj3YCJMZL4GdVWZyFVzp2kMI/LjJVMei4xOH3eQiAyaUCff7Sa4dGlCDzERGsFOB324DsGw== 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=X8UeJfPlGgEooasWfuAYGIj/2KRAUGdoAy1aMkgSjnQ=; b=CzlA8K0lnQjo8/5V8LIiWOrqFyQlUjxXC4R29CeM/BoGZ/lAWfo+Q+euqqDQdoMlJqoWuH8gKhj5efo40WnwC2PwdSKW7A3MJdHTxkFa274ENnzM1ftrYik/YNm1C1EE+tudXtokjBKRyZNN+lMpNHVvpCLBqxu8m3ZNM/72Nbv0QeA2B4PKL/+D2RzzlkeSfCkZN+cqUMhcctHdqhXBO0WWBUSVIcpcoYiVu0Yu6j5RxIsiRH16ghxMAgiYQ6HpAAt5tD3fadgPjOTPxyV81qDiFewoSdA9jfif0sB0q0AJ151kqo9y8pveUgnryIZlVbZkoh56c0wKqjxyHyHf/w== 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=X8UeJfPlGgEooasWfuAYGIj/2KRAUGdoAy1aMkgSjnQ=; b=QIk9lcO4UrcKZ8H5VLfMRnRjihB61W/hRDqUsAWo4dJkTjkRgixegHXcJPyRQ5n34IPpJVmGbuBeCYfxEAgt1HQvRHZ7E0lkOwys9sbFNUQrP/DI7ryhEcqhR7Zj1aln1c8jFZlBqHl2nsDYBdq9xwDD5x32pHp1KlyHG65959g= Received: from MW5PR10MB5738.namprd10.prod.outlook.com (2603:10b6:303:19b::14) by DM6PR10MB4396.namprd10.prod.outlook.com (2603:10b6:5:21e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.33; Tue, 3 Oct 2023 23:22:32 +0000 Received: from MW5PR10MB5738.namprd10.prod.outlook.com ([fe80::5943:cf66:5683:21be]) by MW5PR10MB5738.namprd10.prod.outlook.com ([fe80::5943:cf66:5683:21be%4]) with mapi id 15.20.6792.024; Tue, 3 Oct 2023 23:22:31 +0000 Message-ID: <727579ab-94d5-49d5-aee0-23e69b9472ad@oracle.com> Date: Tue, 3 Oct 2023 18:22:28 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] jfs: fix array-index-out-of-bounds in diAlloc Content-Language: en-US To: Manas Ghandat , shaggy@kernel.org Cc: jfs-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org, Linux-kernel-mentees@lists.linuxfoundation.org References: <20230926071312.14086-1-ghandatmanas@gmail.com> From: Dave Kleikamp In-Reply-To: <20230926071312.14086-1-ghandatmanas@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH0PR03CA0254.namprd03.prod.outlook.com (2603:10b6:610:e5::19) To MW5PR10MB5738.namprd10.prod.outlook.com (2603:10b6:303:19b::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW5PR10MB5738:EE_|DM6PR10MB4396:EE_ X-MS-Office365-Filtering-Correlation-Id: 9b979484-26fb-40a2-845d-08dbc4679e18 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n/oz2Z0upipP5fJjP/1uYi0fqYg40Fn+Gyyy76jCpktcCZHk1ZYLTk95HUdyllR3ptQiFhtSTkoQ01iVH84QgVmPEgNJwnnjxKO2wZe//OhYPiCWR0gVcDGuOC6+0vVpYRHbnpfRtoqAYn4vjTPbWaq0Fy4hYFKLbay52a+v4jsUnSmmYpQUKTGRLnqe8olPTz1BGJXOYXmloZH5+60Vpj51mK+qpLuAMPokMA1aBoDulVOv0r/ENrJxKnqOPDad61bh3El5/zY8DQgeH783jFYbWnYAvQKoQdRUs5bKKrM1jJ1TDP1zuJNQ0SSCc1TvFm2ZoEq5vybJdgsC0KxIVN6uB8y/E89vVVZbb+Nrpy635zylW1WqNnvhEX+joI1o/rIEAM6EfDaT529CtYiKBAWnqPnTbX6FDAPW3inyhS4oRnjAg2mVKS9ugC6g8w+XvCtF93hvh30MKOBbZUB7MVAx47vM6d6oxs35vPhPDmTpEOLAjbnytz/kMCv63e1siJbPo8m8oGpN03zKMRrlwJB5Xbz3JlRPidqY6HjMzYa7/cCle7jKgpicSbJgj+z9X1WBniNkS1FsPaonKEH6Pa9ntpdFsUeoFdq8kAVHTZOzQL0Um7yiku9UltuXy3iMkorZ7C3TaEfAn/OggJa8aA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW5PR10MB5738.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(39860400002)(366004)(136003)(376002)(396003)(230922051799003)(1800799009)(451199024)(64100799003)(186009)(2616005)(26005)(5660300002)(6666004)(8676002)(4326008)(8936002)(86362001)(31686004)(478600001)(31696002)(6486002)(66556008)(38100700002)(66946007)(66476007)(316002)(36756003)(2906002)(6512007)(4744005)(83380400001)(6506007)(41300700001)(44832011)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?R2RkSU5sSXp5RW85dlR1cHh5ck9FR3d6TFBtMUVZMWNjOHJkZFI2bEorc1h0?= =?utf-8?B?alhtaEpyMmQ2UVIwRHN2SGw2Mk11VTRPbXZjcTdsMGJHbWdqV0lhYjcva0RG?= =?utf-8?B?c0xkNmdZdzBwRjRQS3lxYitQKzBhZWRpcXFWemZ1RmwyS21rcU95aDc4Wnhs?= =?utf-8?B?T1pXYWlFQ09JWWRwTGJ0WVJLa0RyNlRsdnJoT0tIOG92ZnlpbDBRWC9ZYTB5?= =?utf-8?B?L0NOd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ET1JTdi9zTWpDR3pvMXBnWThGM0hwTTBPUGMwQ1puMUVYSWhM?= =?utf-8?B?UW93VThhT25sVERhem9QK05vNW5PWTk5ckNLQ05GVjdsYlBEK1J6OGRKNVVq?= =?utf-8?B?Y2Q2SGR5MTl2MW50MjY5SlV1dWxUSjRFc1NYWnlrd0dXUUpxeDM0TWtaYVZR?= =?utf-8?B?dHAwVjc5K2Z0T0E4SUdUaisvaklMSHdMWjladUZRbVFXYXh2QlVYREVIZkVz?= =?utf-8?B?UlpLbTFOZ2g0UXlwN29BaWVoejVwZWFwdUQwdG9uczN3ajlreVpmZFBWSkw1?= =?utf-8?B?cUxDN0svcWJpcHZvZXhCQkNBaHBYUFpBbG16VmVCYkxHbmdBSUFMSUhBd3oy?= =?utf-8?B?SXBrcnEwVHZUa1R4QlE2L0RRcUc0dWFPOHZNUlVsaDFtSmtIQmhhN0pEVmhC?= =?utf-8?B?MVJBUFF1emNhZXRlaFFhQXVWWjFqbHdFNHNXS2hyU0MzbjJwQUVwU3ZPakJ0?= =?utf-8?B?dTBXcGdjWHFDTlVoR0ordGxEMEpCdExGNTFZWWlNQkxxcVZ5TnFUMjcrZkNR?= =?utf-8?B?M2k5Z00xNWVYTTZQdW9xT3c3WmpSamV4V2pYRFlFamN4TFVCSms1SFBpOGhB?= =?utf-8?Q?oWlpokuZ21SHf8A?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9b979484-26fb-40a2-845d-08dbc4679e18 X-MS-Exchange-CrossTenant-AuthSource: MW5PR10MB5738.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2023 23:22:31.8331 (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: NDNSstA7xBG0hiDE+fqVPgHzG3QTR7MkdjJnysrgyeFd3Dwnzmh1TZJVG14TPMNPgcI0OK9ytV00tJCLpvKc189sSm0IH0XP2hAWTsUj4Bg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB4396 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-03_18,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 spamscore=0 mlxscore=0 malwarescore=0 phishscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310030177 X-Proofpoint-ORIG-GUID: 8_-6KmTYhlgGfQdpAXu8Jx4FHTptc7kf X-Proofpoint-GUID: 8_-6KmTYhlgGfQdpAXu8Jx4FHTptc7kf X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 16:23:01 -0700 (PDT) On 9/26/23 2:13AM, Manas Ghandat wrote: > Currently there is not check against the agno of the iag while > allocating new inodes to avoid fragmentation problem. Added the check > which is required. Does this fix an observed problem? It seems reasonable and if we add this we may also want to make sure that agno doesn't exceed db_numag, (JFS_SBI(pip->i_sb)->bmap->db_numag) (yuck). > > Signed-off-by: Manas Ghandat > --- > fs/jfs/jfs_imap.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/jfs/jfs_imap.c b/fs/jfs/jfs_imap.c > index 799d3837e7c2..ace8a1506380 100644 > --- a/fs/jfs/jfs_imap.c > +++ b/fs/jfs/jfs_imap.c > @@ -1355,6 +1355,8 @@ int diAlloc(struct inode *pip, bool dir, struct inode *ip) > > /* get the ag number of this iag */ > agno = BLKTOAG(JFS_IP(pip)->agstart, JFS_SBI(pip->i_sb)); > + if (agno < 0) > + return -EIO; > > if (atomic_read(&JFS_SBI(pip->i_sb)->bmap->db_active[agno])) { > /*