Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp27017pxb; Wed, 30 Mar 2022 21:56:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjYB736R+UkJCCQU8jI3GhDIx6CqLSTpzTJD0maPGB4+xZ6OIXNEcaKHjYti1MuBvjmznQ X-Received: by 2002:a17:902:7684:b0:156:25b3:ef6b with SMTP id m4-20020a170902768400b0015625b3ef6bmr13709325pll.39.1648702618295; Wed, 30 Mar 2022 21:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648702618; cv=none; d=google.com; s=arc-20160816; b=vRiKKNE0ZolwLZsi/h+erDXFBuQYeJlwU9Gb1Hw5KoYnRey2q7ICb/9Y/2bP0U/xsT tRO5Msla7/JqUX1UMchpbRz0FmLlBEeP3+xlhBNPdhwTo1hWJDqJvSqE+pf1b5YGW4d/ jDt9FGnSwlrPnibvQevyoBS56W+HYwsxk9JExVcUDcFc5NKA2RsdI6/r+rN0k0erzIU1 HjZvknX/9n5XUp5hMX7ABO6P0inor4arWFelRbkVgM5k9REx4zy1iGOUYfJy+yhPiyzE 2TNF+hzwOao1LHzNzGoCIAqekI1+VHh5l7Foa3PknAYyyOA2hHbJFFcmtZ/3+gSR/mOb wibw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=dIi6/jD7Qqby00dUuKshi/DoBXaOO6DVGib/L62zLFk=; b=n5sQytv4yoMi6xq+J/aJRdVNmKqyWWtdfmKElE6ThaKub+75YTf3MEkZEoFOetHuI7 tB14tyJszQP0GZDuIdnJ52FGZgvRh2iA4eWuc0QkjUYv60OBRH/qNmR+4Vb2kFMCgamZ A2wpSz0lRu/SKLHoWG1TtS2tT17VBmbm+2OGRcpFKi+xNox0xfm2Rbx6JrwLr16QvdAe AA8nfcI3TpoLVwP7XPMBMkRX6eRGT36IHdb9dp9mKMjup/VfdTjwFIu8+pfdSk+yvpbV QXaLCCqpEkrqmVZpmclUtN9845zZZ+fvhOM5urr8ylUDZBCYYc4L4+ZwysJnulAOKGpb M0yw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o5-20020a170903300500b00153b2d16460si19758661pla.104.2022.03.30.21.56.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:56:58 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 671801C7E8D; Wed, 30 Mar 2022 20:35:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346507AbiC3OCb (ORCPT + 99 others); Wed, 30 Mar 2022 10:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238147AbiC3OC1 (ORCPT ); Wed, 30 Mar 2022 10:02:27 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0E25111434B; Wed, 30 Mar 2022 07:00:41 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 1504180FA; Wed, 30 Mar 2022 13:58:34 +0000 (UTC) Date: Wed, 30 Mar 2022 17:00:39 +0300 From: Tony Lindgren To: Lu Baolu Cc: Joerg Roedel , Jason Gunthorpe , Christoph Hellwig , Ben Skeggs , Kevin Tian , Ashok Raj , Will Deacon , Robin Murphy , Alex Williamson , Eric Auger , Liu Yi L , Jacob jun Pan , David Airlie , Daniel Vetter , Thierry Reding , Jonathan Hunter , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Christoph Hellwig , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, regressions@lists.linux.dev Subject: Re: [PATCH v4 8/9] iommu: Remove unused argument in is_attach_deferred Message-ID: References: <20220216025249.3459465-1-baolu.lu@linux.intel.com> <20220216025249.3459465-9-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220216025249.3459465-9-baolu.lu@linux.intel.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi, * Lu Baolu [700101 02:00]: > The is_attach_deferred iommu_ops callback is a device op. The domain > argument is unnecessary and never used. Remove it to make code clean. Looks like this causes a regression for at least drivers/iommu/omap-iommu.c. To me it seems the issue is there is no is_attach_deferred implemented, so we get a NULL pointer dereference at virtual address 00000008: __iommu_probe_device from probe_iommu_group+0x2c/0x38 probe_iommu_group from bus_for_each_dev+0x74/0xbc bus_for_each_dev from bus_iommu_probe+0x34/0x2e8 bus_iommu_probe from bus_set_iommu+0x80/0xc8 bus_set_iommu from omap_iommu_init+0x88/0xcc omap_iommu_init from do_one_initcall+0x44/0x24c Any ideas for a fix? It would be good to fix this quickly so we don't end up with a broken v5.18-rc1.. For reference, this is mainline commit 41bb23e70b50 ("iommu: Remove unused argument in is_attach_deferred"). Regards, Tony #regzbot ^introduced 41bb23e70b50