From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 92E0AC433EF for ; Fri, 6 May 2022 16:07:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 394ED4052D; Fri, 6 May 2022 16:07:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LIM1tPEJUh1d; Fri, 6 May 2022 16:07:28 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTPS id 2343F40510; Fri, 6 May 2022 16:07:28 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id F32E0C0039; Fri, 6 May 2022 16:07:27 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 40B09C002D for ; Fri, 6 May 2022 16:07:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 2000D40502 for ; Fri, 6 May 2022 16:07:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D3w5HkClDKLY for ; Fri, 6 May 2022 16:07:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by smtp2.osuosl.org (Postfix) with ESMTPS id 7601E40510 for ; Fri, 6 May 2022 16:07:26 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B634C61EDF; Fri, 6 May 2022 16:07:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFE0AC385BD; Fri, 6 May 2022 16:07:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651853245; bh=6X2hMLK9syCGnQ6i86SAh139iWBlukYJvCLaWxrJbQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ridMCBYtJRjzkSwTQwWivatVkVagzfPJs9AJw64MuOZHRC2MkAFLMTg0mtjkOEI9W Gn08Kniaieg20voYvVhDxYYXck7gP4dke3d1EiGuSAWrGeB1lXhZfdS9R4Lm3WD9hO hi2W7CtP0QoiLvi+rxuTM/eBbuJAF2SQkDzKitZs1SDiwWRi/SQYqzHy1z+pv50arc v46rrqa5TaXsokEO+0XGRIb37M7Q7LlOm/7Qff8AX6gOENIwVmbgw35ynzOj+9aVEZ U0xhtv5sDZRHmaB6PRb2/Bc1FvDu6KTL2RfYbZAQjE6HGFuaumFohZhfOyl8d52W51 71VqTtvx3yLiA== From: Will Deacon To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Yang Yingliang , iommu@lists.linux-foundation.org Subject: Re: [PATCH] iommu/arm-smmu-v3: check return value after calling platform_get_resource() Date: Fri, 6 May 2022 17:07:06 +0100 Message-Id: <165185069794.2780907.13021484269981123590.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220425114525.2651143-1-yangyingliang@huawei.com> References: <20220425114525.2651143-1-yangyingliang@huawei.com> MIME-Version: 1.0 Cc: catalin.marinas@arm.com, kernel-team@android.com, robin.murphy@arm.com, Will Deacon X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Mon, 25 Apr 2022 19:45:25 +0800, Yang Yingliang wrote: > It will cause null-ptr-deref if platform_get_resource() returns NULL, > we need check the return value. > > Applied to will (for-joerg/arm-smmu/updates), thanks! [1/1] iommu/arm-smmu-v3: check return value after calling platform_get_resource() https://git.kernel.org/will/c/b131fa8c1d2a Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08E68C433EF for ; Fri, 6 May 2022 16:08:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443511AbiEFQMC (ORCPT ); Fri, 6 May 2022 12:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443560AbiEFQL3 (ORCPT ); Fri, 6 May 2022 12:11:29 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E63996EB22 for ; Fri, 6 May 2022 09:07:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 3E1B6CE3764 for ; Fri, 6 May 2022 16:07:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFE0AC385BD; Fri, 6 May 2022 16:07:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651853245; bh=6X2hMLK9syCGnQ6i86SAh139iWBlukYJvCLaWxrJbQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ridMCBYtJRjzkSwTQwWivatVkVagzfPJs9AJw64MuOZHRC2MkAFLMTg0mtjkOEI9W Gn08Kniaieg20voYvVhDxYYXck7gP4dke3d1EiGuSAWrGeB1lXhZfdS9R4Lm3WD9hO hi2W7CtP0QoiLvi+rxuTM/eBbuJAF2SQkDzKitZs1SDiwWRi/SQYqzHy1z+pv50arc v46rrqa5TaXsokEO+0XGRIb37M7Q7LlOm/7Qff8AX6gOENIwVmbgw35ynzOj+9aVEZ U0xhtv5sDZRHmaB6PRb2/Bc1FvDu6KTL2RfYbZAQjE6HGFuaumFohZhfOyl8d52W51 71VqTtvx3yLiA== From: Will Deacon To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Yang Yingliang , iommu@lists.linux-foundation.org Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , joro@8bytes.org, robin.murphy@arm.com Subject: Re: [PATCH] iommu/arm-smmu-v3: check return value after calling platform_get_resource() Date: Fri, 6 May 2022 17:07:06 +0100 Message-Id: <165185069794.2780907.13021484269981123590.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220425114525.2651143-1-yangyingliang@huawei.com> References: <20220425114525.2651143-1-yangyingliang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Apr 2022 19:45:25 +0800, Yang Yingliang wrote: > It will cause null-ptr-deref if platform_get_resource() returns NULL, > we need check the return value. > > Applied to will (for-joerg/arm-smmu/updates), thanks! [1/1] iommu/arm-smmu-v3: check return value after calling platform_get_resource() https://git.kernel.org/will/c/b131fa8c1d2a Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 37B55C433F5 for ; Fri, 6 May 2022 16:08:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NZwi+YitJsxXVaozwqEu7jD17GjmLA267655HAryibo=; b=zD6lF59uS/rrBv eMOCUHlstL9mm6fLWoppB+ojigbZuOsMfs7Wky3TrpdfuslgaMfed+FnAt5mgR3Ipjgooa8PSsiP0 UY708rVmCBFJf8JprC97iAaUzz3rPvpeM4MWaHoyClUX3mvxC5x2ZKwFsO0b+KHoj6qQ8AhVQhMqG jc0Cph7DOTkfjBIZII2XMUwgAp314Xx84+KA4vp6RAuhmEdH5VRQ8xJWfWpua8k6YxgOd31yozv/K +u/UtGjgWOnV8SG3QMYVSjN2A0N5CnDOtoCcwsthaNjOaD1yIcIopQujKtj1JqW+C97TXFThNNAFu 82MeeQmMvAlcRdnayveA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nn0Ub-004HN9-II; Fri, 06 May 2022 16:07:45 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nn0UI-004HDW-5q for linux-arm-kernel@lists.infradead.org; Fri, 06 May 2022 16:07:27 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B634C61EDF; Fri, 6 May 2022 16:07:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFE0AC385BD; Fri, 6 May 2022 16:07:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651853245; bh=6X2hMLK9syCGnQ6i86SAh139iWBlukYJvCLaWxrJbQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ridMCBYtJRjzkSwTQwWivatVkVagzfPJs9AJw64MuOZHRC2MkAFLMTg0mtjkOEI9W Gn08Kniaieg20voYvVhDxYYXck7gP4dke3d1EiGuSAWrGeB1lXhZfdS9R4Lm3WD9hO hi2W7CtP0QoiLvi+rxuTM/eBbuJAF2SQkDzKitZs1SDiwWRi/SQYqzHy1z+pv50arc v46rrqa5TaXsokEO+0XGRIb37M7Q7LlOm/7Qff8AX6gOENIwVmbgw35ynzOj+9aVEZ U0xhtv5sDZRHmaB6PRb2/Bc1FvDu6KTL2RfYbZAQjE6HGFuaumFohZhfOyl8d52W51 71VqTtvx3yLiA== From: Will Deacon To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Yang Yingliang , iommu@lists.linux-foundation.org Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , joro@8bytes.org, robin.murphy@arm.com Subject: Re: [PATCH] iommu/arm-smmu-v3: check return value after calling platform_get_resource() Date: Fri, 6 May 2022 17:07:06 +0100 Message-Id: <165185069794.2780907.13021484269981123590.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220425114525.2651143-1-yangyingliang@huawei.com> References: <20220425114525.2651143-1-yangyingliang@huawei.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220506_090726_321281_0FD51A02 X-CRM114-Status: UNSURE ( 8.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 25 Apr 2022 19:45:25 +0800, Yang Yingliang wrote: > It will cause null-ptr-deref if platform_get_resource() returns NULL, > we need check the return value. > > Applied to will (for-joerg/arm-smmu/updates), thanks! [1/1] iommu/arm-smmu-v3: check return value after calling platform_get_resource() https://git.kernel.org/will/c/b131fa8c1d2a Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel