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=1796044829; b=a4/c+71ZI7P4K8J4N9751dFZpLD90CLQRE8BM3WG/8KORAjjqm3ZCu2EitIZg0VM/XkO bQm/w747XLPHa27cVJBsZJftyd0MotXb7Yw+7FuZ1IRhyPz+MLXrrc11wN7E+yd3B9W3u yq5TIE5g3RJZlb4AIHiIWJTSgkvkA6jSGgG8hpHNm7XCsRUnegRs3GTaeyVo6b/5txn0+ qCcmeLU0x1xF8s5Ir4Uy9wrmOa75RT4C7cGZkY1k0nExNSSGrD38LiMfk1NwS26OLqobl +EdOhxZjguxeL/nfsOe6S9YjsdMUPWpj8D8/0BqW9ZAmrUvF1uStk0jGidAXHbYTelA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796044829; 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=OnF9X9Dt85ih5StqlzJFI9WBBV8OGFbeNN4GrkV/Wyvs5pZxpMf5edAiMwqGeXzOIf62 lNBU9wPShntH5r2Q/NwVwUYcMoFxQJ7w7n8XxRZmZmguphFoLXmxBQ1ix/OWz0tqVBNUB +0JGVO3f9RfQmK71a9VOWXU6tEWF6YXKhwkPYChwHtCaWtbOKy2YZE/TARyL/FECJ2Gkb V0Xkv6eMjQ66eH7f1b2ENBnmChajvilJPeEcBL/jG8hOAawfsDamneTO6ccweCdPV7Il1 y3ed7C4Y4MBAUkaz3bDeNLvL+zta/UCwtnDownotAOVwTDIeL55AkLsmIKrHyxC++kA== 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=afVeEkQs; 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 919AA606A31C for ; Mon, 30 Nov 2026 13:20:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 919AA606A31C 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=afVeEkQs DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796044827; 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=afVeEkQsN8H4nQEg7ttaQDJVuIKtrdqc+9AEZfD/lhQAGKVQ2McX/MnRoOrFj+oYR0gnLt 1cqj8HLt3tfm+wxtTzhsv6kvGKwr/vK/AAkAhDbiC6Sm38ahBpccyaJJ9M0UjRr3pDmXVs HAqap8rdz6k+wNkowZqJ6FxYuc0pTMI= 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: netdev@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.