aboutsummaryrefslogtreecommitdiff
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2024-05-28 01:42:24 -0700
committerJakub Kicinski <kuba@kernel.org>2024-05-29 17:19:50 -0700
commitc3390677f6258748a91bf37b9bb21eab89f63b42 (patch)
tree7272920cf5f2417375a25ab3fcb8c3d7b5dc3a8f /net/ipv6/tcp_ipv6.c
parent544a74c32bcc2eff5f93b9f638f687170e7274e9 (diff)
downloadlinux-c3390677f6258748a91bf37b9bb21eab89f63b42.tar.gz
linux-c3390677f6258748a91bf37b9bb21eab89f63b42.tar.bz2
linux-c3390677f6258748a91bf37b9bb21eab89f63b42.zip
netconsole: Do not shutdown dynamic configuration if cmdline is invalid
If a user provides an invalid netconsole configuration during boot time (e.g., specifying an invalid ethX interface), netconsole will be entirely disabled. Consequently, the user won't be able to create new entries in /sys/kernel/config/netconsole/ as that directory does not exist. Apart from misconfiguration, another issue arises when ethX is loaded as a module and the netconsole= line in the command line points to ethX, resulting in an obvious failure. This renders netconsole unusable, as /sys/kernel/config/netconsole/ will never appear. This is more annoying since users reconfigure (or just toggle) the configuratin later (see commit 5fbd6cdbe304b ("netconsole: Attach cmdline target to dynamic target")) Create /sys/kernel/config/netconsole/ even if the command line arguments are invalid, so, users can create dynamic entries in netconsole. Reported-by: Aijay Adams <aijay@meta.com> Signed-off-by: Breno Leitao <leitao@debian.org> Link: https://lore.kernel.org/r/20240528084225.3215853-1-leitao@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions