diff options
| author | Nicolai Buchwitz <nb@tipi-net.de> | 2026-09-25 15:52:35 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-28 19:28:44 -0700 |
| commit | 67da3009384f80c93f5e90e9bc88c1afe77464be (patch) | |
| tree | 9068732e95e18cf9a62ce19004e6332c33bcf9bd /tools/lib/python/kdoc/python_version.py | |
| parent | 0a1a3898ab64fd4f7b90816fc61186d8eb5302a7 (diff) | |
net: ethtool: reject an out of range hwtstamp provider index
A provider index of 0xFFFFFFFF picks a provider on hardware that has
none. phc_index is an int where -1 means no PHC, and the u32 from user
space ends up as -1, so the two match.
TSINFO_GET uses -1 for "no provider requested" and answers with the
default provider instead of an error.
Reject the value in the netlink policy, which covers every comparison
site.
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20260925135237.3432266-2-nb@tipi-net.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
