From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C63724534A7 for ; Tue, 30 Jun 2026 15:48:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782834486; cv=none; b=sro36PIr8NsbwIGUatX39DboPziQNrNGySJNFrKqoniumzv8oB5MpYXK8oA6vkeqwXsoEzKGlEf6YNZU0fjI/XaeYqvZPz8ddawcpSwBCkMWmKCNancwjakiSAnk31oFGiLtSq+qx4kF38+OjCF8QooQ4gtL9tpKNtmQjf9srOY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782834486; c=relaxed/simple; bh=twAyy9xwYCSMvApgyBYUMDHVlW/irdnupyHPndRGu7s=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dG3JLhRHjbkDo5LTO0Y2vfhJRdIru7JdOCDWsyRqW4M6rWP1ADf814kD0tVjPogJ1OtIZuwOJTYWT7pzhJMCXaLryJgmeu0SxGvDnEZULIIEg/18aY9wdduw8nOENuNXH/ACUK36G6ZB3lznLnOqAWLyVyAuUU9ovt4I4hu0NXA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hV0Ze5OO; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=IJ2hcW9M; arc=none smtp.client-ip=170.10.133.124 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.b="hV0Ze5OO"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="IJ2hcW9M" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1782834483; 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=Yl4pxIPjVlnHUWDpO5Lxb9ymfeFrDg7e0YhAWoqeXok=; b=hV0Ze5OOsygpxDYMzipfWuhhNSbtfN2UYUMa6qDEPuNbXLDFUqqa3aIB00gS/7vfODvcHz iP8tsZPElsTNBss8Eicgf/8IRXHAtPq0RTmOlCmxFGkGIAbcq1Mo74NN1/x1aUXVdHa+jX /h6D71UQ7ubkUN3rqp01Dl+/jxgBP+Q= Received: from mail-yw1-f199.google.com (mail-yw1-f199.google.com [209.85.128.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-602-a2Rgg4LePjCSYqK5IJFH8w-1; Tue, 30 Jun 2026 11:48:02 -0400 X-MC-Unique: a2Rgg4LePjCSYqK5IJFH8w-1 X-Mimecast-MFC-AGG-ID: a2Rgg4LePjCSYqK5IJFH8w_1782834482 Received: by mail-yw1-f199.google.com with SMTP id 00721157ae682-80d9b6fd492so10171137b3.0 for ; Tue, 30 Jun 2026 08:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1782834482; x=1783439282; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Yl4pxIPjVlnHUWDpO5Lxb9ymfeFrDg7e0YhAWoqeXok=; b=IJ2hcW9MAQ3+5RGNNav0QdpJs+/lGjvDrEq9LexALQREDcqPVhd2UQo93ODmnIO5t6 mHX5ZC4v9ffenC+72widAM/VIpvEBA5UlFhpTPpohM3yTay99lKvj/8V1x0bd2n5utzg NGTPsWo2Is4SrkQieBQllDNwEIray2O0STc7fXQgjUfvi4dFIi0nlfJ8oycFz/Q93Sog jX0tYlnRwC1CTczNVD/KyazIHWYCITDOIvanmC4GQsSFuUuzjVsmSj0bbXSAAICEpzRC t9rpnsJkJC03lwf8ocLZYhY7zq8U0hXYMxy/z1hGOl6TTUN7wpIVsBsw8+ivzt31pLG/ aj/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782834482; x=1783439282; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Yl4pxIPjVlnHUWDpO5Lxb9ymfeFrDg7e0YhAWoqeXok=; b=dXyABNLdpl2QrGH8tFKKQb/3GPCZbdgRWzndOtPr9MGP2/KmWUdExfQUHEB+LIrAqx eHmOqghGFGpUwAaQPjCYp3RSwz0sxBLab78ppxX/LnhUox2EJZ0tBDzp7sedd2Vt8cuj O7RkKpd4M5olRt83p72yJX/QRf418Z74CPLTorw17coIDYxAblRW8/gKZ8LR4ggH4Dso j8K7h0XNqPZKOasJiSUxq5RUrz5shdcVNBdOBppSJoNUc2n3GhnR71b2NJDz1KBRtZWl QVXCsz5lF63gnk7upJADaaucJMK0d/XWirKVCSEghpE3+7wRm2sZF4apF+fx7gz4O8ED /KjA== X-Forwarded-Encrypted: i=1; AHgh+RqXQ5T1Hkh9BPulodE193KnJXR6l7YzvUfkvBlFbrsZG8ME8cmcRwjs8uDNpNil21UwpOrQ4rOfpSlpC84=@vger.kernel.org X-Gm-Message-State: AOJu0Yy7wai/meLXC0MW/jEZ1INKsV7NpovIZTA8Vsdse68EM1lFek0m Sqpo/OvSv2YKwewGkjxsh9aKQihBMvazP7njcmpecnweaJ8+50Wp/6HPM8KlB7+sNjsDUo6U2u6 Ptg+PW17YMGwb+LSYpTrI7P/jChtJiRyrMGNb0UzRBgH2anqBhGbd+gOS8CAk9P3VpQ== X-Gm-Gg: AfdE7cnxY7z+FnPEfiMi+NIZ7GyH2an3UxsibxxSQ9ndVCWj4OvQNVMyewggBuwMfFT xhF5WmE9S2NPkUz2kdVOGRtYDDylwFE1YedNAwYrcNrhJB6pOBYOHhLdAtalfDSE3sVlu6HtIvn wflzbEvUpqCtA5Zi4YQQHGOiySpcebjNaoRhd5sQrFga0VJR8J3WxLMl0COeAq6NfSwN1vpPZWu kHFOj7qBal3nqj2K/Fo5OEIOqCIb4rK4ALyuJvUYeZdeMw+j7wOhzrCuqPBf2PMdqqCbtVXn3Ey bY2bAlmlbrDykQAd1klqK9MiYXaogxIK5BMUFSaSe5ucas9j+rArcjtmWz7UBk7NwPIecKtPQPe 1tEpQVUGsN4Rg2Xt57hZslNA6EblEnUFvQ+hyU7get9Op+GzVCOnkHJNlAd9YhTi1ft0RUUKplH 0mQ7mSCqaG2A== X-Received: by 2002:a05:690c:3588:b0:80c:c6f:1b48 with SMTP id 00721157ae682-8117ff89193mr21073367b3.24.1782834481837; Tue, 30 Jun 2026 08:48:01 -0700 (PDT) X-Received: by 2002:a05:690c:3588:b0:80c:c6f:1b48 with SMTP id 00721157ae682-8117ff89193mr21073027b3.24.1782834481421; Tue, 30 Jun 2026 08:48:01 -0700 (PDT) Received: from ?IPV6:2a0d:3344:5521:6b10:2eb7:f61a:75:4534? ([2a0d:3344:5521:6b10:2eb7:f61a:75:4534]) by smtp.gmail.com with ESMTPSA id 00721157ae682-810ea95254dsm12263797b3.46.2026.06.30.08.47.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jun 2026 08:48:00 -0700 (PDT) Message-ID: <07a9834b-6c68-46ae-8cfe-32e17f32ebe2@redhat.com> Date: Tue, 30 Jun 2026 17:47:57 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] net: lan743x: Initialize eth_syslock spinlock before use To: Andrea Righi , Bryan Whitehead , UNGLinuxDriver@microchip.com Cc: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Raju Lakkaraju , David Thompson , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260626163218.3591486-1-arighi@nvidia.com> From: Paolo Abeni Content-Language: en-US In-Reply-To: <20260626163218.3591486-1-arighi@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/26/26 6:32 PM, Andrea Righi wrote: > lan743x_hardware_init() calls pci11x1x_strap_get_status() during the > PCI11x1x probe sequence. That helper acquires the Ethernet subsystem > hardware lock via lan743x_hs_syslock_acquire(), which relies on > adapter->eth_syslock_spinlock to serialize access. > > The spinlock is currently initialized only after the strap status is > read. With CONFIG_DEBUG_SPINLOCK enabled, taking the zeroed initialized > spinlock can trip the spinlock debug check. > > Fix by initializing adapter->eth_syslock_spinlock before reading the > strap status so the probe path never attempts to lock an uninitialized > spinlock. > > Fixes: 46b777ad9a8c ("net: lan743x: Add support to SGMII 1G and 2.5G") > Cc: stable@vger.kernel.org # v6.0+ > Signed-off-by: Andrea Righi The PW bot is on holiday, no automated notifications for a while. Applied, thanks! /P