[Devel] [PATCH vz10 v6 0/2] fix inconsistent dmesg output for segfaults in CT

Konstantin Khorenko khorenko at virtuozzo.com
Wed Dec 3 18:35:15 MSK 2025


These patches fix incorrect segfault reporting in the log buffer.

v2: introduced task_pid_ve_nr
v3: used tsk instead of current in task_pid_ve_nr
v4: used task_ve guard helpers
v5:
  - fix loglevel detection against CT's init pidns
  - ve_ns has been renamed to ve_nsproxy in order not to mess with VE namespace
  - use new, bright and shiny __free(put_ve) attribute
  - added a comment why we don't check ve returned by get_task_ve() for NULL
v6: moved defining of the put_ve FREE attribute inside CONFIG_VE,
    had to do that because it should be done between function declaration and
    attribute usage

https://virtuozzo.atlassian.net/browse/VSTOR-119875

Aleksei Oladko (2):
  ve: Introduce task_pid_ve_nr() helper
  ve: Fix inconsistent dmesg output for segfaults in CT

 arch/x86/include/asm/stacktrace.h |  1 +
 arch/x86/kernel/dumpstack.c       | 11 ++++++++---
 arch/x86/mm/fault.c               |  7 ++++---
 include/linux/ve.h                | 25 +++++++++++++++++++++++--
 4 files changed, 36 insertions(+), 8 deletions(-)

-- 
2.43.5



More information about the Devel mailing list