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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D18BC07E96 for ; Thu, 15 Jul 2021 07:20:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 39B7C61362 for ; Thu, 15 Jul 2021 07:20:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240325AbhGOHXD (ORCPT ); Thu, 15 Jul 2021 03:23:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240308AbhGOHXD (ORCPT ); Thu, 15 Jul 2021 03:23:03 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58A11C06175F for ; Thu, 15 Jul 2021 00:20:10 -0700 (PDT) Received: by theia.8bytes.org (Postfix, from userid 1000) id 5CE2B2C7; Thu, 15 Jul 2021 09:20:08 +0200 (CEST) Date: Thu, 15 Jul 2021 09:20:04 +0200 From: Joerg Roedel To: Frank Wunderlich Cc: iommu@lists.linux-foundation.org, Frank Wunderlich , Will Deacon , linux-kernel@vger.kernel.org, yong.wu@mediatek.com Subject: Re: [PATCH] iommu: check if group is NULL before remove device Message-ID: References: <20210715071150.82157-1-linux@fw-web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715071150.82157-1-linux@fw-web.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 09:11:50AM +0200, Frank Wunderlich wrote: > From: Frank Wunderlich > > if probe is failing, iommu_group may be not initialized, Sentences start with capital letters. IOMMU patch subjects too, after the 'iommu:' prefix. > so freeing it will result in NULL pointer access Please describe in more detail how this NULL-ptr dereference is triggered. Regards, Joerg