.
Rename the Kconfig entry from RETPOLINE to MITIGATION_RETPOLINE.
Suggested-by: Josh Poimboeuf
Signed-off-by: Breno Leitao
---
Documentation/admin-guide/hw-vuln/spectre.rst | 8
Documentation/admin-guide/kernel-parameters.txt | 4 ++--
arch/x86/Kconfig| 6
.
Rename the Kconfig entry from RETPOLINE to MITIGATION_RETPOLINE.
Suggested-by: Josh Poimboeuf
Signed-off-by: Breno Leitao
---
Documentation/admin-guide/hw-vuln/spectre.rst | 8
Documentation/admin-guide/kernel-parameters.txt | 4 ++--
arch/x86/Kconfig| 6
Hi Ram,
On Mon, Nov 06, 2017 at 12:57:36AM -0800, Ram Pai wrote:
> @@ -206,12 +209,14 @@ void signal_handler(int signum, siginfo_t *si, void
> *vucontext)
>
> trapno = uctxt->uc_mcontext.gregs[REG_TRAPNO];
> ip = uctxt->uc_mcontext.gregs[REG_IP_IDX];
> - fpregset = uctxt->uc_mco
Hi Ram,
On Thu, Nov 09, 2017 at 03:37:46PM -0800, Ram Pai wrote:
> On Thu, Nov 09, 2017 at 04:47:15PM -0200, Breno Leitao wrote:
> > On Mon, Nov 06, 2017 at 12:57:36AM -0800, Ram Pai wrote:
> > > @@ -206,12 +209,14 @@ void signal_handler(int signum, siginfo_t *si, void
id doesn't need to be precise, do not disable preemption
when getting the CPU id.
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 61
1 file changed, 61 insertions(+)
diff --git a/drivers/net/netconsole.c b/drivers/ne
tput.
Signed-off-by: Breno Leitao
---
Documentation/networking/netconsole.rst | 44 +
1 file changed, 44 insertions(+)
diff --git a/Documentation/networking/netconsole.rst
b/Documentation/networking/netconsole.rst
index
d55c2a22ec7af0e687b7
the user changes the
configuration, so this addition does not impact performance as it is not
in the hot path.
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index
n"
Updates the netconsole documentation to explain the new CPU number
auto-population feature Provides instructions on how to enable and use
the feature
I believe these changes will be a valuable addition to the netconsole
subsystem, enhancing its usefulness for kernel developers
regressions in this functionality.
Signed-off-by: Breno Leitao
---
tools/testing/selftests/drivers/net/netcons_basic.sh | 18 ++
1 file changed, 18 insertions(+)
diff --git a/tools/testing/selftests/drivers/net/netcons_basic.sh
b/tools/testing/selftests/drivers/net/ne
Hello Jakub,
On Mon, Nov 18, 2024 at 06:33:36PM -0800, Jakub Kicinski wrote:
> Sorry for the late review, I think this will miss v6.13 :(
That is fine, there is no rush for this change.
> On Wed, 13 Nov 2024 07:10:53 -0800 Breno Leitao wrote:
> > /**
> > * struct
On Tue, Nov 19, 2024 at 09:07:45AM -0800, Breno Leitao wrote:
> > > #endif
> > > boolenabled;
> > > boolextended;
> >
> > > + /* Check if CPU NR should be populated, and append it to the user
> > > +
Hello Simon,
On Thu, Jan 30, 2025 at 10:35:44AM +, Simon Horman wrote:
> On Tue, Jan 28, 2025 at 04:11:28PM +, Simon Horman wrote:
> > On Fri, Jan 24, 2025 at 07:16:40AM -0800, Breno Leitao wrote:
> > > Move the static buffers from send_msg_no_fragmentation() and
> &g
>userdata_length;
The upcoming patches will, which will add support for sysdata, will
change it to:
extradata_len = nt->userdata_length + sysdata_len;
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 87 -
number of children in
the userdata group configfs hierarchy.
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 14 +++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index
ub.
- Fixed a bug where CPU # was populated at the wrong place
- Link to v1:
https://lore.kernel.org/r/20241113-netcon_cpu-v1-0-d187bf7c0...@debian.org
---
Breno Leitao (8):
netconsole: consolidate send buffers into netconsole_target struct
netconsole: Rename userdata to extradata
of two)
The buffer in netconsole_target is protected by target_list_lock,
maintaining the same synchronization semantics as the original code.
Suggested-by: Jakub Kicinski
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 30 --
1
does not modify the message itself.
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 81
1 file changed, 81 insertions(+)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index
he sysdata is dynamically updated at message time
and appended after any existing userdata.
The CPU number is formatted as "cpu=XX" and is added to the extradata
buffer, respecting the existing size limits.
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/n
the CPU_NR flag in the
sysdata_fields, incrementing the entry count accordingly.
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
: Breno Leitao
Reviewed-by: Simon Horman
---
tools/testing/selftests/drivers/net/Makefile | 1 +
.../selftests/drivers/net/lib/sh/lib_netcons.sh| 17 +++
.../selftests/drivers/net/netcons_sysdata.sh | 167 +
3 files changed, 185 insertions(+)
diff --git a/tools
ing to the "populate_cpu_nr" file in the
netconsole configfs hierarchy.
This documentation update ensures users are aware of the new CPU number
auto-population functionality and how to leverage it for better
demultiplexing and visibility of parallel netconsole output.
Signed-
>userdata_length;
The upcoming patches will, which will add support for sysdata, will
change it to:
extradata_len = nt->userdata_length + sysdata_len;
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 87 -
Hello Simon,
On Wed, Feb 05, 2025 at 01:34:55PM +, Simon Horman wrote:
> On Tue, Feb 04, 2025 at 03:35:09AM -0800, Breno Leitao wrote:
> > Move the static buffers from send_msg_no_fragmentation() and
> > send_msg_fragmented() into the netconsole_target structure. This
> >
riginates in kernel.
- Improved the test to send from a very specific CPU, which can be
checked to be correct on the other side, as suggested by Jakub.
- Fixed a bug where CPU # was populated at the wrong place
- Link to v1:
https://lore.kernel.org/r/20241113-netcon_cpu-v1-0-d187bf7c0...@deb
of two)
The buffer in netconsole_target is protected by target_list_lock,
maintaining the same synchronization semantics as the original code.
Suggested-by: Jakub Kicinski
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 30 --
1
the CPU_NR flag in the
sysdata_fields, incrementing the entry count accordingly.
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
number of children in
the userdata group configfs hierarchy.
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 14 +++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index
does not modify the message itself.
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 81
1 file changed, 81 insertions(+)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index
he sysdata is dynamically updated at message time
and appended after any existing userdata.
The CPU number is formatted as "cpu=XX" and is added to the extradata
buffer, respecting the existing size limits.
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/n
ing to the "populate_cpu_nr" file in the
netconsole configfs hierarchy.
This documentation update ensures users are aware of the new CPU number
auto-population functionality and how to leverage it for better
demultiplexing and visibility of parallel netconsole output.
Signed-off-by: Breno
: Breno Leitao
Reviewed-by: Simon Horman
---
tools/testing/selftests/drivers/net/Makefile | 1 +
.../selftests/drivers/net/lib/sh/lib_netcons.sh| 17 +++
.../selftests/drivers/net/netcons_sysdata.sh | 167 +
3 files changed, 185 insertions(+)
diff --git a/tools
Hello Bagas,
On Fri, Feb 07, 2025 at 08:50:22AM +0700, Bagas Sanjaya wrote:
> On Thu, Feb 06, 2025 at 03:05:59AM -0800, Breno Leitao wrote:
> > +.. note::
> > +
> > + If the user has set a conflicting `cpu` key in the userdata dictionary,
> > + both keys will b
of two)
The buffer in netconsole_target is protected by target_list_lock,
maintaining the same synchronization semantics as the original code.
Suggested-by: Jakub Kicinski
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 29 +++--
1 file changed, 15 insertions
number of children in
the userdata group configfs hierarchy.
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 14 +++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index
n feature Provides instructions on how to enable and use
the feature
I believe these changes will be a valuable addition to the netconsole
subsystem, enhancing its usefulness for kernel developers and users.
Signed-off-by: Breno Leitao
---
Changes in v3:
- Moved the buffer into netconsole_
does not modify the message itself.
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 81
1 file changed, 81 insertions(+)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index
1c197da806962a751a3da8794def6a97cff5f701
the CPU_NR flag in the
sysdata_fields, incrementing the entry count accordingly.
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index
Hello Jakub,
On Mon, Jan 20, 2025 at 11:06:53AM -0800, Jakub Kicinski wrote:
> >
> > The only way to do it properly is having a extra buffer where we
> > have `cpu=42` and copy 5 bytes from there, and then copy the last one in
> > the next iteration. I am not sure we can do it in one shot.
>
> FW
: Breno Leitao
---
tools/testing/selftests/drivers/net/Makefile | 1 +
.../selftests/drivers/net/lib/sh/lib_netcons.sh| 17 +++
.../selftests/drivers/net/netcons_sysdata.sh | 167 +
3 files changed, 185 insertions(+)
diff --git a/tools/testing/selftests/drivers
he sysdata is dynamically updated at message time
and appended after any existing userdata.
The CPU number is formatted as "cpu=XX" and is added to the extradata
buffer, respecting the existing size limits.
Signed-off-by: Breno Leitao
---
drivers/n
ing to the "populate_cpu_nr" file in the
netconsole configfs hierarchy.
This documentation update ensures users are aware of the new CPU number
auto-population functionality and how to leverage it for better
demultiplexing and visibility of parallel netconsole output.
Signed-
>userdata_length;
The upcoming patches will, which will add support for sysdata, will
change it to:
extradata_len = nt->userdata_length + sysdata_len;
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 87
1 file changed, 44 ins
On Fri, Jan 17, 2025 at 06:35:20PM -0800, Jakub Kicinski wrote:
> On Fri, 17 Jan 2025 03:02:40 -0800 Breno Leitao wrote:
> > > Looks like previously all the data was on the stack, now we have a mix.
> >
> > Not sure I followed. The data ({userdata,extradata}_complete)
Hello Andrew,
On Fri, Jan 24, 2025 at 05:02:26PM +0100, Andrew Lunn wrote:
> On Fri, Jan 24, 2025 at 07:16:39AM -0800, Breno Leitao wrote:
> > The current implementation of netconsole sends all log messages in
> > parallel, which can lead to an intermixed and interleave
On Fri, Jan 24, 2025 at 05:15:10PM +0100, Andrew Lunn wrote:
> > +CPU number auto population in userdata
> > +--
> > +
> > +Inside the netconsole configfs hierarchy, there is a file called
> > +`cpu_nr` under the `userdata` directory. This file is used to enable
=
Updates the netconsole documentation to explain the new CPU number
auto-population feature Provides instructions on how to enable and use
the feature
I believe these changes will be a valuable addition to the netconsole
subsystem, enhancing its usefulness for kernel developers and users.
>userdata_length;
The upcoming patches will, which will add support for sysdata, will
change it to:
extradata_len = nt->userdata_length + sysdata_len;
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 84
1 file changed, 42 ins
number of children in
the userdata group configfs hierarchy.
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 14 +++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index
ing to the "populate_cpu_nr" file in the
netconsole configfs hierarchy.
This documentation update ensures users are aware of the new CPU number
auto-population functionality and how to leverage it for better
demultiplexing and visibility of parallel netconsole output.
Signed-
he sysdata is dynamically updated at message time
and appended after any existing userdata.
The CPU number is formatted as "cpu=XX" and is added to the extradata
buffer, respecting the existing size limits.
Signed-off-by: Breno Leitao
---
drivers/ne
: Breno Leitao
---
tools/testing/selftests/drivers/net/Makefile | 1 +
.../selftests/drivers/net/lib/sh/lib_netcons.sh| 17 +++
.../selftests/drivers/net/netcons_sysdata.sh | 166 +
3 files changed, 184 insertions(+)
diff --git a/tools/testing/selftests/drivers
Hello Randy,
On Wed, Jan 15, 2025 at 02:56:06PM -0800, Randy Dunlap wrote:
> On 1/15/25 5:35 AM, Breno Leitao wrote:
> > Update the netconsole documentation to explain the new feature that
> > allows automatic population of the CPU number.
> >
> > The key change
Hello Jakub,
On Thu, Jan 16, 2025 at 05:44:05PM -0800, Jakub Kicinski wrote:
> On Wed, 15 Jan 2025 05:35:20 -0800 Breno Leitao wrote:
> > + WARN_ON_ONCE(userdata_len + sysdata_len >
> > +MAX_EXTRADATA_ENTRY_LEN * MAX_EXTRADATA_ITEMS);
> > +
> > +
any functionality.
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index
f77eddf221850fe2778cd479e49c91ad695aba3c
umbers are handled.
The task name is included when the SYSDATA_TASKNAME field is set,
appearing in the format "taskname=" in the output. This additional
context can help with debugging by showing which task generated each
console message.
Signed-off-by: Breno Leitao
---
d
"taskname="
- Task names are included when the feature is enabled
- Task names are excluded when the feature is disabled
- The feature works correctly alongside other sysdata fields like CPU
Signed-off-by: Breno Leitao
---
.../selftests/drivers/net/netcons_sysdata.sh
upcoming taskname feature by
establishing a consistent pattern for handling sysdata features.
The CPU number formatting logic itself remains unchanged; only its
location has moved to improve maintainability.
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 18 +++---
1 file
sk name feature via
configfs and provide additional context for kernel messages by showing
which task generated each console message.
I have tested these patches on some servers and they seem to work as
expected.
Signed-off-by: Breno Leitao
---
Breno Leitao (7):
netconsole: prefix CPU_NR s
: Breno Leitao
---
drivers/net/netconsole.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index
26ff2ed4de16bce58e9eeaf8b5b362dfaafaca0a..1b109f46512ffb7628c6b34c6efdfc301376dd53
100644
--- a/drivers/net/netconsole.c
+++ b/drivers/net
Add configfs interface to enable/disable the taskname sysdata feature.
This adds the following functionality:
The implementation follows the same pattern as the existing CPU number
feature, ensuring consistent behavior and error handling across sysdata
features.
Signed-off-by: Breno Leitao
name in the output
- An example showing the task name appearing in messages
Signed-off-by: Breno Leitao
---
Documentation/networking/netconsole.rst | 28
1 file changed, 28 insertions(+)
diff --git a/Documentation/networking/netconsole.rst
b/Documentation/networking
Hello Simon,
On Tue, Feb 25, 2025 at 10:17:48AM +, Simon Horman wrote:
> On Fri, Feb 21, 2025 at 05:52:07AM -0800, Breno Leitao wrote:
> > Extract CPU number formatting logic from prepare_extradata() into a new
> > append_cpu_nr() function.
> >
> > This refactoring
Hello Simon,
On Tue, Feb 25, 2025 at 10:19:10AM +, Simon Horman wrote:
> On Fri, Feb 21, 2025 at 05:52:10AM -0800, Breno Leitao wrote:
> > This is the core patch for this whole patchset. Add support for
> > including the current task's name in netconsole's extra dat
Hello Paolo,
On Tue, Feb 25, 2025 at 12:53:49PM +0100, Paolo Abeni wrote:
> On 2/25/25 12:17 PM, Breno Leitao wrote:
> > On Tue, Feb 25, 2025 at 10:19:10AM +, Simon Horman wrote:
> >> On Fri, Feb 21, 2025 at 05:52:10AM -0800, Breno Leitao wrote:
> >>> This is
On Tue, Feb 25, 2025 at 12:41:50PM +0100, Paolo Abeni wrote:
> On 2/21/25 2:52 PM, Breno Leitao wrote:
> > Add configfs interface to enable/disable the taskname sysdata feature.
> > This adds the following functionality:
> >
> > The implementation follows the same
sysdata_cpu_nr_enabled_show().
Link:
https://lore.kernel.org/all/7309e760-63b0-4b58-ad33-2fb8db361...@redhat.com/ [1]
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index
upcoming taskname feature by
establishing a consistent pattern for handling sysdata features.
The CPU number formatting logic itself remains unchanged; only its
location has moved to improve maintainability.
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 18
any functionality.
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index f77eddf221850..c086e2fe51f87 100644
--- a/drivers
These changes allow users to enable or disable the task name feature via
configfs and provide additional context for kernel messages by showing
which task generated each console message.
I have tested these patches on some servers and they seem to work as
expected.
Signed-off-by: Breno Leitao
---
C
Add configfs interface to enable/disable the taskname sysdata feature.
This adds the following functionality:
The implementation follows the same pattern as the existing CPU number
feature, ensuring consistent behavior and error handling across sysdata
features.
Signed-off-by: Breno Leitao
umbers are handled.
The task name is included when the SYSDATA_TASKNAME field is set,
appearing in the format "taskname=" in the output. This additional
context can help with debugging by showing which task generated each
console message.
Signed-off-by: Breno Leitao
---
drivers/net/netc
: Breno Leitao
Reviewed-by: Simon Horman
---
drivers/net/netconsole.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index 96153fd01f46e..f46a0edf9c11e 100644
--- a/drivers/net/netconsole.c
+++ b/drivers/net/netconsole.c
@@ -104,6 +104,8
"taskname="
- Task names are included when the feature is enabled
- Task names are excluded when the feature is disabled
- The feature works correctly alongside other sysdata fields like CPU
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
.../selftests/drivers/net/netcons_
name in the output
- An example showing the task name appearing in messages
Signed-off-by: Breno Leitao
Reviewed-by: Simon Horman
---
Documentation/networking/netconsole.rst | 28
1 file changed, 28 insertions(+)
diff --git a/Documentation/networking/netconsole.rst
Append the init_utsname()->release to sysdata buffer before sending the
message in case the feature is set.
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
in
ld in the next patch.
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index 0914d29b48d8e..970dfc3ac9d41 100644
--- a/drivers/net/netconsole.c
+++ b/drivers/net/net
lease
information in messages. I believe these changes will significantly aid
in system analysis and troubleshooting.
Suggested-by: Manu Bretelle
Signed-off-by: Breno Leitao
---
Breno Leitao (6):
netconsole: introduce 'release' as a new sysdata field
netconsole: implemen
Implement the configfs helpers to show and set release_enabled configfs
directories under userdata.
When enabled, set the feature bit in netconsole_target->sysdata_fields.
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 49
1 f
$(uname -r)`
Signed-off-by: Breno Leitao
---
.../selftests/drivers/net/netcons_sysdata.sh | 44 --
1 file changed, 41 insertions(+), 3 deletions(-)
diff --git a/tools/testing/selftests/drivers/net/netcons_sysdata.sh
b/tools/testing/selftests/drivers/net/netc
Add documentation explaining the kernel release auto-population feature
in netconsole.
This feature appends kernel version information to the userdata
dictionary in every message sent when enabled via the `release_enabled`
file in the configfs hierarchy.
Signed-off-by: Breno Leitao
This commit adds a new feature to the sysdata structure, allowing the
kernel release/version to be appended as part of sysdata. Additionally,
it updates the logic to count this new field as a used entry when
enabled.
Signed-off-by: Breno Leitao
---
drivers/net/netconsole.c | 4
1 file
81 matches
Mail list logo