From: Andrew Lunn <andrew@lunn.ch>
To: Rutger van Kruiningen <rutger.vankruiningen@alliedtelesis.co.nz>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Jakub Kicinski <kuba@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>
Subject: Re: [PATCH v0] net: ethtool: Only set supplied eee ethtool settings
Date: Thu, 17 Apr 2025 00:36:33 +0200 [thread overview]
Message-ID: <6694f2c8-cfc8-41ed-9ceb-3e0b10aec6b9@lunn.ch> (raw)
In-Reply-To: <20250416221230.1724319-1-rutger.vankruiningen@alliedtelesis.co.nz>
On Thu, Apr 17, 2025 at 10:12:30AM +1200, Rutger van Kruiningen wrote:
> Originally all ethtool eee setting updates were attempted even if the
> settings were not supplied, causing a null pointer crash.
>
> Add check for each eee setting and only update if it exists.
I see what you mean, but i'm somewhat surprised we have not seen this
crash. Do you have a simple reproducer? I just did
ethtool --debug 255 --set-eee eth0 eee on
and it did not crash, despite:
sending genetlink packet (44 bytes):
msg length 44 ethool ETHTOOL_MSG_EEE_SET
ETHTOOL_MSG_EEE_SET
ETHTOOL_A_EEE_HEADER
ETHTOOL_A_HEADER_DEV_NAME = "eth0"
ETHTOOL_A_EEE_ENABLED = on
So it only provided ETHTOOL_A_EEE_ENABLED and none of the others.
Andrew
next prev parent reply other threads:[~2025-04-16 22:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-16 22:12 Rutger van Kruiningen
2025-04-16 22:36 ` Andrew Lunn [this message]
2025-04-17 0:36 ` Rutger van Kruiningen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6694f2c8-cfc8-41ed-9ceb-3e0b10aec6b9@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rutger.vankruiningen@alliedtelesis.co.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®