All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] x86/ubsan: fix ubsan on clang + code fixes
@ 2025-03-18  9:18 Roger Pau Monne
  2025-03-18  9:19 ` [PATCH v2 1/5] x86/wait: prevent duplicated assembly labels Roger Pau Monne
                   ` (4 more replies)
  0 siblings, 5 replies; 23+ messages in thread
From: Roger Pau Monne @ 2025-03-18  9:18 UTC (permalink / raw)
  To: xen-devel
  Cc: Roger Pau Monne, Andrew Cooper, Anthony PERARD, Michal Orzel,
	Jan Beulich, Julien Grall, Stefano Stabellini, Tim Deegan,
	Doug Goldstein

Hello,

This started as a series to fix UBSAN when using clang, and the first
patch do fix that.

Finally patches 2 to 4 fix bugs in the code highlighted by the clang UB
pointer arithmetic detection.

Patch 5 was the original goal of the series: be able to enable UBSAN for
randconfig.

Thanks, Roger.

Roger Pau Monne (5):
  x86/wait: prevent duplicated assembly labels
  x86/vga: fix mapping of the VGA text buffer
  x86/xlat: fix UB pointer arithmetic in COMPAT_ARG_XLAT_VIRT_BASE
  x86/shadow: fix UB pointer arithmetic in sh_mfn_is_a_page_table()
  kconfig/randconfig: enable UBSAN for randconfig

 xen/Kconfig                               |  4 ++++
 xen/Kconfig.debug                         |  2 +-
 xen/arch/x86/include/asm/x86_64/uaccess.h |  6 +++---
 xen/arch/x86/mm/shadow/private.h          |  3 ++-
 xen/common/wait.c                         | 10 ++++++++--
 xen/drivers/video/vga.c                   |  4 ++--
 xen/tools/kconfig/allrandom.config        |  1 -
 7 files changed, 20 insertions(+), 10 deletions(-)

-- 
2.48.1



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2025-03-18 17:51 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-18  9:18 [PATCH v2 0/5] x86/ubsan: fix ubsan on clang + code fixes Roger Pau Monne
2025-03-18  9:19 ` [PATCH v2 1/5] x86/wait: prevent duplicated assembly labels Roger Pau Monne
2025-03-18 12:49   ` Andrew Cooper
2025-03-18  9:19 ` [PATCH v2 2/5] x86/vga: fix mapping of the VGA text buffer Roger Pau Monne
2025-03-18 13:11   ` Andrew Cooper
2025-03-18 14:28     ` Jan Beulich
2025-03-18 15:31       ` Roger Pau Monné
2025-03-18 15:49         ` Jan Beulich
2025-03-18  9:19 ` [PATCH v2 3/5] x86/xlat: fix UB pointer arithmetic in COMPAT_ARG_XLAT_VIRT_BASE Roger Pau Monne
2025-03-18 12:51   ` Andrew Cooper
2025-03-18 14:33   ` Jan Beulich
2025-03-18 15:35     ` Roger Pau Monné
2025-03-18 15:50       ` Jan Beulich
2025-03-18 16:47         ` Roger Pau Monné
2025-03-18 17:01           ` Jan Beulich
2025-03-18 17:50             ` Roger Pau Monné
2025-03-18  9:19 ` [PATCH v2 4/5] x86/shadow: fix UB pointer arithmetic in sh_mfn_is_a_page_table() Roger Pau Monne
2025-03-18 12:53   ` Andrew Cooper
2025-03-18 14:36     ` Jan Beulich
2025-03-18 15:29       ` Roger Pau Monné
2025-03-18 15:27     ` Roger Pau Monné
2025-03-18  9:19 ` [PATCH v2 5/5] kconfig/randconfig: enable UBSAN for randconfig Roger Pau Monne
2025-03-18 12:57   ` Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.