Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp989098rdb; Wed, 1 Nov 2023 08:21:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IES3EDGzsr/6xA16JSnJtwPhVgDa8aPTUA6n7C7l8zrDQdXtGFezQjuUX2Ulg8/YtCrtQu7 X-Received: by 2002:a05:6a00:24cb:b0:693:3f7a:eec2 with SMTP id d11-20020a056a0024cb00b006933f7aeec2mr16351271pfv.29.1698852099254; Wed, 01 Nov 2023 08:21:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698852099; cv=pass; d=google.com; s=arc-20160816; b=KWs5mx/7Kpiby1vX31fFwIbgNclzvS1HWgnqa9TFmZmj4Kf72ZvOEMY+7URSEixGhM HG1e4yv14sQpn9o6RkHDtV9Cy1ymoSa6cizgKQsIyV5n/TtB28WnQ/oIjNYWixZmtqVs swffHf/J95p5OyoOle4kHJo5jKF4svhqyyy7fmlwSTHPIGb4JeIKjBV5YA2Tvrgt6Phz auP7QqpCYlKSQbXxvAu6UBftpUtWC5y/viUwAkG8ZwN1aIkhyAnVghfMYW+kxt6Emcbh yULIpUMzAqbwR44zcb+BQFJFrEtUFyKSgCRNNLT2Y/5QdXDKpnxnQa73DeQjqOALySbV U2hg== 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=t4R5Bgh+Kt5QLcXsLlpg+boeBC4livXiSTq07+CtpbA=; fh=JVeoG5qDyfNNq/BzslHDVplBjxCvIxLkJcoTNBKc9BI=; b=RBZkTFzAD74QwVMn3DkDnUzsKhxyZeckkCBNCkpyrSX2eZ4G5ZpEHN+3TcW1A4y6e/ YwpFBpolJQujoKuPZkPOg7QNwdGPVAPbCsQsCGiGLd4rfhmkSpj4GZwKgcZ4ZaoSofDd +uBIDaXBhM8+8Xiup51AwlXfdsaLv6bkk8g9w0zYY08D0SbdWc+iAzxT+wlG3xLXp0nr HBVzZCOqRFPv/EfFqdQUlZiG5FecAIYhtFvtBW3EnUhBZRhKeILHHNOj+roz8G6B++Fi mhVDhmM0x/wwl4jfciTGmtk4z8GF3ooJD9rusOJueppXykUpf8B/CBGHNixREr5xF74M 03LQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b="ZLYwz/Nl"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=y6GC5jND; 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.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id p17-20020a056a000b5100b0068a590d803csi1904457pfo.361.2023.11.01.08.21.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 08:21:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b="ZLYwz/Nl"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=y6GC5jND; 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.35 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 groat.vger.email (Postfix) with ESMTP id 346EE8076669; Wed, 1 Nov 2023 08:21:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232860AbjKAPVa (ORCPT + 99 others); Wed, 1 Nov 2023 11:21:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230460AbjKAPV2 (ORCPT ); Wed, 1 Nov 2023 11:21:28 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C434DA for ; Wed, 1 Nov 2023 08:21:26 -0700 (PDT) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A1BEoCA031295; Wed, 1 Nov 2023 15:20:46 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=t4R5Bgh+Kt5QLcXsLlpg+boeBC4livXiSTq07+CtpbA=; b=ZLYwz/NlRaZcPW3rGuLOX+61F8N9v4Ajr3D+YOWx272PZZgbWX7HiJFHaI06aCQKmbz0 rVeXnROh4boPPcVViR15XwyoQK5bsh0GpMPxJ3ROYkpeMS1tk/FfF9GtacTTTTqqrMLQ bkFEPg4tF/gJNyEPbLPfCwRfI0pQE0Sw7Jp4AYAkK/Bg4fVt/dCki+gmiqXcV9xbGp4A 7oYyTy3piqTuVcizrxRfmF4zY0ea7w8ZUI8dCB82waV5pKhfr605+21lOJi+JtwX/Uxb R9J02c8H8et8ws5/cu3ThvgctWsgNm52nSz/v7Nsmtm1CZSSNKUqa2zFwDjrBxMOQCvk IQ== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u0tuufjmb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Nov 2023 15:20:46 +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 3A1E9ErT020115; Wed, 1 Nov 2023 15:20:44 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3u0rrddqfn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Nov 2023 15:20:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KeXv2BtR5BX9VoJ8IlRjQE5reS0l4HPo1ZFWmMSOUtdxwPDWddWn/9rN3m/AVKlNRN5EkShBFJnKLFbuHXtBV31qqVu+9FZvT8d14q9b1X1aqel0dH5R1fuaSRK7z+7OdB+61MyTaJmBrnp1/yYSRovtFiRWqRLy0eqh6V2AxMNEGc0yQrdLM4YDN0Jp8ktcIx5mdMHRVBoerZyTYDNE/R2oVgky5gEuFgRXfj/A3ECz7B8pH4BkxU2UFYMyP2DgNf3Y+lyYsKquOOJeHPKzq4lVmE8H0v6zxGJEx3HSWLZ0VBpstFT14vFUHS/XF4z7fDxqKz3KOAav2U7353E7fQ== 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=t4R5Bgh+Kt5QLcXsLlpg+boeBC4livXiSTq07+CtpbA=; b=e1zjWROKeokv91ZoOnrRRpiQF9DlNKcjYUFI8yyvJVSOpe1TWF21kTo7vswJFQa7IhsFUtFSweHUAcAyjR9R2ArZg6+B1xAWYeHXgOoByRXlfPqxnSXLnmDbCVddcMWyl9YhNI6A3MPSaUZtlPu6GCWS3webkFwv78uqjJm84+zRkFvWWpVOGz7BmiW1jywOmgTG07ij9bD2ZXze16hH5ULzGR0BL/Pd2Kgi/nFii3/9QV3TAi2xfa80Cgqeujkslk9nN3POuf5ldfUeJfKu6gSrSSUNd5Bm5lWJ+f3xSSunRh8clPCK26Ek3fFQ9qARO4hLfzWI8nZFNWLlqD7AIg== 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=t4R5Bgh+Kt5QLcXsLlpg+boeBC4livXiSTq07+CtpbA=; b=y6GC5jNDtgwMSHez53N+WHtrDlZGVNDy15XeVKVfVUL86tRaXgunSnPoFHa04Y3DK2Wt7BOesPy3M5twuADlyQXegqUhMkdStOz89W6wrOjXfYLCHNSMCiTGXgLKOwsqY/WCKtQeswue+7QZNjcbU9hxyB0tV16x9WRl/4nu6A4= Received: from MW5PR10MB5738.namprd10.prod.outlook.com (2603:10b6:303:19b::14) by CH3PR10MB7305.namprd10.prod.outlook.com (2603:10b6:610:12e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.24; Wed, 1 Nov 2023 15:20:42 +0000 Received: from MW5PR10MB5738.namprd10.prod.outlook.com ([fe80::a946:abb:59d6:e435]) by MW5PR10MB5738.namprd10.prod.outlook.com ([fe80::a946:abb:59d6:e435%4]) with mapi id 15.20.6933.022; Wed, 1 Nov 2023 15:20:42 +0000 Message-ID: Date: Wed, 1 Nov 2023 10:20:40 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH-v2] jfs: fix slab-out-of-bounds Read in dtSearch Content-Language: en-US To: Manas Ghandat , dan.carpenter@linaro.org, shaggy@kernel.org Cc: Linux-kernel-mentees@lists.linuxfoundation.org, jfs-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org, lkp@intel.com, oe-kbuild-all@lists.linux.dev, oe-kbuild@lists.linux.dev References: <20231025060907.115675-1-ghandatmanas@gmail.com> From: Dave Kleikamp In-Reply-To: <20231025060907.115675-1-ghandatmanas@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH0P221CA0014.NAMP221.PROD.OUTLOOK.COM (2603:10b6:610:11c::12) To MW5PR10MB5738.namprd10.prod.outlook.com (2603:10b6:303:19b::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW5PR10MB5738:EE_|CH3PR10MB7305:EE_ X-MS-Office365-Filtering-Correlation-Id: 34e20113-9f52-471c-7a0e-08dbdaee1cf3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qDw+opZO1rtl/GzjfnH8MvrwgL9FUNnOVrO9Bnu+nysOzx7Y3CuBgljyihqZaohTXoZ+ioXFbZxej/Ojp1LMC9GEQpGz+NvY5P94o3eG0nhxyxdRvDUSj0q+hBbnpbueJT1cmDUIQ+Mue2TpwNXqaIA5JIqZSKaana+cQZN3sNN89xiyrZahqZsFN8JlPFCeoGB2Y8bVWG9/RfOB41lQx6P5g7Seg6LznjKfN7erb5gSEZm8TWR5RUCWouzlUKzBZcs9z3kNf2VKf4zJXQA13h83WY/SRvOVdg0AUpM9DWpdGGJowhVXqVOZudDGI7ThSCB2BI+5Oh9TzcMyOuvyAOUB6Xn+JSUvEIfLGbBmRqx7rFAxN/8e3KyFk7TuPcf4a4DUdIl3OV+BYGjmLWItX+PKE2V2littH3As6+EVNyy2XZZv+6b+rjOlUXmvAj5KTZ3RVI3m6HQMxf7UyV/2xfN6pNak6+8GiIlzF4JYs/0ZMYN4nN99UeT/XawAca9AeaCNMElWGMowzDjRAgG/c2kMq8jS7RmSlujmPV3gNznJsFIqEIT3mXWhN02IBDnf1viya9bgDtFa56JgHVaBslsqoYKnPOxIXicDqJV09ZFNVvBDhX+KrxXit8f9pYpO 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)(366004)(396003)(39860400002)(346002)(376002)(136003)(230922051799003)(64100799003)(451199024)(1800799009)(186009)(31686004)(6512007)(31696002)(478600001)(6486002)(966005)(6506007)(83380400001)(86362001)(38100700002)(36756003)(66946007)(316002)(5660300002)(66476007)(26005)(66556008)(2906002)(41300700001)(2616005)(44832011)(8676002)(4326008)(8936002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NVpCZUpaWkRtUTJwMUhRVXhTdUx5UGJmWW8wbklQajhzZzZvUEhqb21rWTFH?= =?utf-8?B?ZkcrbUlyNWVOaW5FV1c4VWZycnllMkZ0R2RCUVlVS1FWdTZneHNNWGpPUEZR?= =?utf-8?B?bnluZDIyM1ZNSFZBNVEvSkl2Wmp3L2c1Yll5RjE0cUNoL2JJc2lIOUhiSHBR?= =?utf-8?B?eEZvcDNxSE5KV0t3aTY0SzFaOUJHQU5rbmRJZmUxS0c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dHFM?= =?utf-8?B?Y3A1dmtHVURiSE5zaUZ4MzRiVG1uZFpEUlFXZ1FldHBvVlZ3S2oyUDkxTDBN?= =?utf-8?B?NzFvVXNpTU0wSVptOWZURGJlQXcyc1J6UElDL1BHYkNUZ2FOcWY5UklRZGZk?= =?utf-8?B?RHBYMWNDVFk0bzRHc1NZdmNqRDVPV1hBb3FtWHRPc1hMVlhWMlR5OUpqSUtV?= =?utf-8?B?RElwVndyMVFJcFkrUlFlMXJqbmVjVnRGWGRYMEJSbkN0SXlibVRZMllzUmxO?= =?utf-8?B?VWN6K2RLdFdnaWxhSmxZZ2FqSy9pREFFT2cyL2V0RDY4TWlkcE9hVzNBdUZX?= =?utf-8?B?ZzhzWmpxbHNoK0NYWDZxSDJ4Znl4a3VxOFRlaXRQN2V2R0ozOGtZUVVmaXk3?= =?utf-8?B?bVJDSXY5NDdDZm12dm9EbTRWS2I4eG5ZZ1RmQWRicUhBN0xDaDF0dlBPNzNl?= =?utf-8?B?dDBTMDVNcHZqdkxSNzFuem1ZZEJxVHhLK0FmN1M1VllnY0hlM2doOGRPbkZD?= =?utf-8?B?RCtqUndEakFBblVZNlZyTFAvM2J3d0NEaENyQlFHQ3hqUlpqa1ZSall4aExC?= =?utf-8?B?SHgwdXFzdlRSYkc0SDdNRUMzVVpPbmtPL1REekM5ZFBVaDU5TDdRc0xkT2Jx?= =?utf-8?B?Nm1jTWdCN0FNcmcvTEZjVlJDcXgzckVSd2xpY3NDSG4zbzVBOTk1Mk8yTHZ5?= =?utf-8?B?S3FmMjE4S05EOVhhUkRUK2RPOEpEVm1nWFBiNFZ3Ukh5UWxBb2xpR0JpVjhi?= =?utf-8?Q?vLsAwQtjuq/+EGgZNlJfm0+FVZq42QRE=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34e20113-9f52-471c-7a0e-08dbdaee1cf3 X-MS-Exchange-CrossTenant-AuthSource: MW5PR10MB5738.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 15:20:42.8281 (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: YE+KPwX2/FOgM2HTqhHW9osb5+2tnEg+bTQ8DmxbHtAFBjmKeW6IiC2JgAXNKB5Qj1WpAgJg1jneVc/KBK8mmMsSZo9/sI0j7fY/HgiI0K0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR10MB7305 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-01_13,2023-11-01_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 spamscore=0 phishscore=0 mlxlogscore=999 adultscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2311010126 X-Proofpoint-GUID: zBlwSLKCiaiSiHFvAFMdvNS2m2cgyEmR X-Proofpoint-ORIG-GUID: zBlwSLKCiaiSiHFvAFMdvNS2m2cgyEmR X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Wed, 01 Nov 2023 08:21:36 -0700 (PDT) On 10/25/23 1:09AM, Manas Ghandat wrote: > Currently while searching for current page in the sorted entry table > of the page there is a out of bound access. Added a bound check to fix > the error. Looks good. I made the small change of setting rc = -EIO in that case, so we know there is something wrong with the file system. Thanks, Shaggy > > Reported-by: kernel test robot > Reported-by: Dan Carpenter > Closes: https://lore.kernel.org/r/202310241724.Ed02yUz9-lkp@intel.com/ > Signed-off-by: Manas Ghandat > --- > V1 -> V2 : Removed redundant check on stbl > > fs/jfs/jfs_dtree.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c > index 92b7c533407c..cf67d32d5b7f 100644 > --- a/fs/jfs/jfs_dtree.c > +++ b/fs/jfs/jfs_dtree.c > @@ -633,6 +633,9 @@ int dtSearch(struct inode *ip, struct component_name * key, ino_t * data, > for (base = 0, lim = p->header.nextindex; lim; lim >>= 1) { > index = base + (lim >> 1); > > + if (stbl[index] < 0) > + goto out; > + > if (p->header.flag & BT_LEAF) { > /* uppercase leaf name to compare */ > cmp =