| Message ID | 20250430123250.8627-2-a@unstable.cc |
|---|---|
| State | Accepted |
| Delegated to: | Antonio Quartulli |
| Headers | show
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:7000:31a6:b0:656:592e:a137 with SMTP id u6csp868706mac;
Wed, 30 Apr 2025 05:51:35 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AJvYcCVF71A0VZYPrEctsjBPJdoeD5hjYNTFD83IEAaouOWm+L1RSMMKwppYxBo2wdMv2h+2wPv+PMvjUgs=@openvpn.net
X-Google-Smtp-Source:
AGHT+IFs35bUmg5dFy304ygMveTou/usmN0paF04Uila35DN0wujxWAjzK+xUYVkJj8i8Q6buT0x
X-Received: by 2002:a05:6602:728b:b0:864:48ec:c312 with SMTP id
ca18e2360f4ac-86497f6384amr221553339f.3.1746017494986;
Wed, 30 Apr 2025 05:51:34 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1746017494; cv=none;
d=google.com; s=arc-20240605;
b=Ru6EkYE0sVSVksBdzVGu04v67xWL8QGPWSqU/7Vka+n4BGqVofjfmDgkLtIhVHITz1
obmJEA1+ht5f1QgPacBcT8ZQKEFoIX1sHVX69OoJi2Cv4jDHizPyYCUAsGUXeKanRKGF
kdZsfin3Km9dP0pU/IIrG9pbJP7lyqW58VlqauVBBzFz/YvexbAz1rQQnrjyy0S+RGBo
n3WAm7nLLvWAOJ35KOYH0tiUn+gzp2hx2kt9T++6WBT9tfPDQRtEACwYUBd0SQwYxtlH
8kQIolbM2dNUgZue5HGv2Q4oyZU+OZJ6RdHREvLyQrmhs2y6IDeqIcFy0/AWwOV720R6
TMBw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=errors-to:content-transfer-encoding:cc:list-subscribe:list-help
:list-post:list-archive:list-unsubscribe:list-id:precedence:subject
:mime-version:references:in-reply-to:message-id:date:to:from
:dkim-signature:dkim-signature:dkim-signature:dkim-signature;
bh=rHcbBOfOoKSRgKE2SYQCO8Ir11z41iivRlUNd6Xa4oM=;
fh=BEXsVF2vhWxaMgs2qFKAWZUkW8vXXdGeO1y9DIa+eNM=;
b=jF2zgrZyqcVjOhyCIk2T87/UDW5VAvMqK6ytdyN9caYuWui/OyuaDFd4Y2Rd32DIgP
BO5XvodlrunYfKm4OU445YLw29W+FywrNbhJYkvUW1C9ctyCbAu7JLU2FrEv1kG/O93P
unlYn2qu3cngxlfQo1yhiksk2/MDG5WxdVE5O2ctOKjFKGtGaf8rLAkCNwwllenfTGzl
t41w3ECCh+kzRvHa7BGrRE3tIR2i+g5o/Sx88I5OhZ6Wsqo2oukcVYf8EuKrZiHh4xFA
mpxfRJjv54xEmAWyL9InLE/hPW+5iqf9U2a/OhPldG14owAfN8zlKLID0X52PHyjOhUj
pN+Q==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=cafyVKRO;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=GqCGSIWN;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=VCaciNVk;
dkim=neutral (body hash did not verify) header.i=@unstable.cc
header.s=20220809-q8oc header.b=iyvjKpCo;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net
Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7])
by mx.google.com with ESMTPS id
8926c6da1cb9f-4f8630fb356si4574961173.150.2025.04.30.05.51.34
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Wed, 30 Apr 2025 05:51:34 -0700 (PDT)
Received-SPF: pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) client-ip=216.105.38.7;
Authentication-Results: mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=cafyVKRO;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=GqCGSIWN;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=VCaciNVk;
dkim=neutral (body hash did not verify) header.i=@unstable.cc
header.s=20220809-q8oc header.b=iyvjKpCo;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc:
List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:
Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender:
Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender
:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;
bh=rHcbBOfOoKSRgKE2SYQCO8Ir11z41iivRlUNd6Xa4oM=; b=cafyVKROR99Kwef8p0/cbQ2CAH
A1w1zVsdLm5Iuku/6cDlCTXmsv9phrH1PgHTWLGU5RoQj3FGVs0q/yPwmS5khG3a/+oA9KR4TVRNO
AhormKu3kHhBAfXc47MXNAJqrIjLj6hHIs8pgAlZUaI0przh7ASGxY3db+1w3zeAig1A=;
Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com)
by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1uA6uK-0007sC-Gr;
Wed, 30 Apr 2025 12:51:24 +0000
Received: from [172.30.29.66] (helo=mx.sourceforge.net)
by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95)
(envelope-from <a@unstable.cc>) id 1uA6u2-0007rs-R7
for openvpn-devel@lists.sourceforge.net;
Wed, 30 Apr 2025 12:51:07 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References:
In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:
Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=tHhbc2DKkupEj/eFXC48+4PIOx3elaVvHrKklqKcL4Y=; b=GqCGSIWNbXTWSuXN5HM+WZ21WV
wKqJiz3XFaMVfkBUNjMnItEYOkLvbRd4dtvsKwYmheeiazgCF0lSYFo3u1M3DTTGDqykczareejKj
EWmOHJvpiNnLfYMv1am0I5Nxbdp8Nv0BlKpTUQtlbqOzoDEpDEf3fEefkIpabxOwSI0I=;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x
;
h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:
Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
List-Post:List-Owner:List-Archive;
bh=tHhbc2DKkupEj/eFXC48+4PIOx3elaVvHrKklqKcL4Y=; b=VCaciNVkCDbPyB/Oha2+Ijdp8D
Zss0+J1FGwsorVj0R+IfWskTH1tqZVe9pLA5Rph7DMpLMVDzWaK4Ho0xgD4Idhyu2HXzoI8Uuq6a9
xXrkCTqLZd22MCzj4ww5ZjKTuQxdte/S8N96imMaqkDoLQnDgYJzZGPsYALN/H1iRvlA=;
Received: from wilbur.contactoffice.com ([212.3.242.68])
by sfi-mx-2.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95)
id 1uA6tj-0006z8-BC for openvpn-devel@lists.sourceforge.net;
Wed, 30 Apr 2025 12:51:06 +0000
Received: from smtpauth2.co-bxl (smtpauth2.co-bxl [10.2.0.24])
by wilbur.contactoffice.com (Postfix) with ESMTP id E3F111A44;
Wed, 30 Apr 2025 14:33:48 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1746016428;
s=20220809-q8oc; d=unstable.cc; i=a@unstable.cc;
h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding;
bh=tHhbc2DKkupEj/eFXC48+4PIOx3elaVvHrKklqKcL4Y=;
b=iyvjKpCo9Z5qyaz2WeURHTpkX9KHgUsnh/FyShvy6B8N37fizHSEYxywnJf+KxrY
5FVE6EFw2QwC2RmCh99VG+ZrWvKtAWR6xPddfA1x3n4/sZLFYdPO+gx1QsGqV9/c8xF
cjxzx11yU5GNBMgAGhB/2zOQSLjpBlkbQB7QXBy0K6SP1w5HtHYCjpqYY5M13AsBeyk
QacU3CEDwa12KCRibRYO/4FhLET2keRFr2dUlQe/9rAl03YdToG2zoBCM7tbUlREYWu
/I0ctJiiCcNjEmNcU4BGRwlLL8uUcMSUrjIBe3hGKxdb/iz2g8jbwCVL/8wZe43b2rH
+uv3K9SK2w==
Received: by smtp.mailfence.com with ESMTPSA ;
Wed, 30 Apr 2025 14:33:45 +0200 (CEST)
From: Antonio Quartulli <a@unstable.cc>
To: openvpn-devel@lists.sourceforge.net
Date: Wed, 30 Apr 2025 14:32:50 +0200
Message-ID: <20250430123250.8627-2-a@unstable.cc>
X-Mailer: git-send-email 2.49.0
In-Reply-To: <20250430123250.8627-1-a@unstable.cc>
References: <20250430123250.8627-1-a@unstable.cc>
MIME-Version: 1.0
X-ContactOffice-Account: com:375058688
X-Spam-Score: -0.2 (/)
X-Spam-Report: Spam detection software,
running on the system "util-spamd-2.v13.lw.sourceforge.com",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: From: Antonio Quartulli <antonio@openvpn.net> The keepalive
worker is cancelled before calling unregister_netdevice_queue(), therefore
it will never hit a situation where the reg_state can be different than
NETDEV_REGISTERED.
Content analysis details: (-0.2 points, 6.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
The query to Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[212.3.242.68 listed in sa-accredit.habeas.com]
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-0.0 SPF_PASS SPF: sender matches SPF record
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily
valid
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
author's domain
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
-0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from
envelope-from domain
0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
query to Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[212.3.242.68 listed in bl.score.senderscore.com]
X-Headers-End: 1uA6tj-0006z8-BC
Subject: [Openvpn-devel] [PATCH ovpn-net-next 2/2] ovpn: drop useless
reg_state check in keepalive worker
X-BeenThere: openvpn-devel@lists.sourceforge.net
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <openvpn-devel.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive:
<http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel>
List-Post: <mailto:openvpn-devel@lists.sourceforge.net>
List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe>
Cc: Antonio Quartulli <antonio@openvpn.net>, sd@queasysnail.net
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: openvpn-devel-bounces@lists.sourceforge.net
X-getmail-retrieved-from-mailbox: Inbox
X-GMAIL-THRID: =?utf-8?q?1830832040534334687?=
X-GMAIL-MSGID: =?utf-8?q?1830832040534334687?=
|
| Series |
[Openvpn-devel,ovpn-net-next,1/2] ovpn: don't access sk after release
|
expand
|
On 30/04/2025 14:32, Antonio Quartulli wrote: > From: Antonio Quartulli <antonio@openvpn.net> > > The keepalive worker is cancelled before calling > unregister_netdevice_queue(), therefore it will never > hit a situation where the reg_state can be different > than NETDEV_REGISTERED. > > For this reason, checking reg_state is useless and the > condition can be removed. > > Signed-off-by: Antonio Quartulli <antonio@openvpn.net> Merged to main, commit id 9149a0a9a8f9 Thanks
diff --git a/drivers/net/ovpn/peer.c b/drivers/net/ovpn/peer.c index a37f89fffb02..24eb9d81429e 100644 --- a/drivers/net/ovpn/peer.c +++ b/drivers/net/ovpn/peer.c @@ -1353,8 +1353,7 @@ void ovpn_peer_keepalive_work(struct work_struct *work) } /* prevent rearming if the interface is being destroyed */ - if (next_run > 0 && - READ_ONCE(ovpn->dev->reg_state) == NETREG_REGISTERED) { + if (next_run > 0) { netdev_dbg(ovpn->dev, "scheduling keepalive work: now=%llu next_run=%llu delta=%llu\n", next_run, now, next_run - now);