From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796044828; b=U8AZaFNGaUjomJvKHpOfpAaixXjukp7lLPPbCcneXMRf+c8bRxMW3KeHeY4GSM6UdjJf 5hIAIVFh5K7ZPuMAhV6yXdFR6z5kZ1J8v/S2XP55LsjVQ+3YiPl8EbfvAn7FZFiMZgD9q FwRQBdbmYrbRPz6Knq6wCfgkQVqtVLqOs7D7b93x8tSCZVxg5wYNC7tE2s+XEMq0FQtLd tTxHnkXADclDsFoFC5vzHV9a+tcHXi6zNIodxIWE1BvRyrp6HoXh8kxNu0dMLbW8MKuyE VUYn+aY1Npohe4dwJA1GY1mS0xHlQQrhQw5Ba6EgygXlF0Jh/VWsZjsoF/qbdqzuCvA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796044828; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding:X-Scanned-By; bh=1yyj1rDXyfprRwM10lykBit28gmkg+wPa48A93NQKO0=; b=aUnRmcmkPIyLvj/BrBxjOV+TgwKlAWicMOc8B6Aq84mIdMZc8TX2QVeaHEiNPaFV4ZLq QHfuU3dkqQs2cGFrdGH9mJlww/ewbu1VI4DgVELK/SXW1zAkytYRzSlDIHjxHPEugltWI yUuNzojiv3WxYCcqA2MvKy3vOL78myXoZnW2Te6S8/z/RAahN5CpErESnnmazTqtP7sVH FMz98qDlE8/qSOo7W6yjPyCViPL0rLDfUIZRUD8Vp15bU4uNKmSaKdA0m9lHSgTJFFITF i3fEScCdTrFoBAFUvKZqTJAucpvX4InYjZKNTd7pKIMAC2KGVIhSg4YxHUo3STJaqXA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b="Sf/dpjBe"; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E11F7606A320 for ; Mon, 30 Nov 2026 13:20:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E11F7606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Sf/dpjBe DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796044826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1yyj1rDXyfprRwM10lykBit28gmkg+wPa48A93NQKO0=; b=Sf/dpjBeub9OCG3LK993+S9WmUx+/cOw2Mbc3Bmv260hyMzfK39UPUZoIwvVcYJEFkFbuE BdMMfGpXr9DcSErsYYxb27aAC8d5Mw//rhUNBX5LeqqM3XNTFBgP6Jv9UAdV0B1JZBexDx w5C9xhal6U7DtdxPAoLECMEvMWuM76w= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-590-7VdGvDIFO9S3rlkwv6FbFA-1; Mon, 30 Nov 2026 13:20:23 +0000 X-MC-Unique: 7VdGvDIFO9S3rlkwv6FbFA-1 X-Mimecast-MFC-AGG-ID: 7VdGvDIFO9S3rlkwv6FbFA_1796044820 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CC61E195399F; Mon, 30 Nov 2026 13:20:19 +0000 (UTC) Received: from poros-thinkpadp16vgen1.redhat.corp (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 04C6E1956086; Mon, 30 Nov 2026 13:20:11 +0000 (UTC) From: Petr Oros To: netdev-bot+sashiko@kernel.org Cc: Petr Oros , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Przemek Kitszel , Andrew Lunn , Aleksandr Loktionov , Simon Horman , Michal Swiatkowski , Grzegorz Nitka , Paul Menzel , Wojciech Drewek , Marcin Szycik , Martyna Szapar-Mudlaw , Ivan Vecera , Alice Michael , Jacob Keller , Jesse Brandeburg , Patryk Holda , Rinitha S , Aaron Ma , netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v5 1/4] ice: stop the service task before the PF is unloaded Date: Mon, 30 Nov 2026 14:20:04 +0100 Message-ID: <20261130132009.1176908-1-poros@redhat.com> In-Reply-To: <179585820637.3135.16053674648760900756@kernel.org> References: <20261127085714.1207361-2-poros@redhat.com> <179585820637.3135.16053674648760900756@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 On Sat, 28 Nov 2026 09:30:06 +0000, netdev-bot+sashiko@kernel.org wrote: > - [High] The patch moves the early ice_service_task_stop() only in > ice_remove(). Right, ice_devlink_reinit_down() and the error path of ice_probe() also tear the PF down before their only stop. Both did so before commit 8a37f9e2ff40 ("ice: move ice_deinit_dev() to the end of deinit paths"), the reinit since commit 41cc4e53934c ("ice: Remove and readd netdev during devlink reload"). This patch only puts the stop back where ice_remove() had it, and the v6 message says so. > - [High] The patch handles the "last run re-arms the service timer after > the stop, and the timer fires after the PF is freed" race only in the… Right, a path that stops only once can still be left with an armed timer, and those paths are older too. In ice_remove() the stop in ice_deinit_dev() deletes it. With the 12 s test delay from the commit message the E810-C without this patch faulted in call_timer_fn() after rmmod, and with it rmmod took 12.0 s and KASAN reported nothing. > - [Medium] The early ice_service_task_stop() in ice_remove() > (ice_main.c:5390) does not stop the service work from being queued… Right, and that window is as old as ICE_SERVICE_DIS, commit 8d81fa55bac0 ("ice: Introduce SERVICE_DIS flag and service routine functions"). Before commit 8a37f9e2ff40 ice_remove() stopped at the same place with the same window. It is not changed here.