diff options
| author | Gustavo Luiz Duarte <gustavold@gmail.com> | 2026-09-03 17:26:03 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-09 18:09:52 -0700 |
| commit | 32535a1ea962e9123506463ac3e0d1473d492059 (patch) | |
| tree | 0b9e28c84f0014e1bb202553aef99cc74acd1e2b /include/linux/timerqueue.h | |
| parent | 2e949954908bd5bcca2fe3cdaac9c42c88275c0b (diff) | |
| download | linux-next-32535a1ea962e9123506463ac3e0d1473d492059.tar.gz linux-next-32535a1ea962e9123506463ac3e0d1473d492059.zip | |
netconsole: reject a target mixing IPv4 and IPv6 addresses
The local_ip and remote_ip configfs attributes are written independently
and nothing stops a user from mixing ipv4 and ipv6. This leads to an
ipv4 address being zero-extended into an ipv6 header or an ipv6 address
being truncated to its first 4 bytes for an ipv4 header.
The command-line parser already refuses such a mismatch. This adds a
similar check when a dynamic target is being enabled.
Reviewed-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Gustavo Luiz Duarte <gustavold@gmail.com>
Link: https://patch.msgid.link/20260903-netcons_ipv6-v4-4-bdd183c844d3@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
