linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] UBSan: run-time undefined behavior sanity checker
@ 2014-11-14 12:50 Andrey Ryabinin
  2014-11-14 12:50 ` [PATCH v2 1/2] kernel: printk: specify alignment for struct printk_log Andrey Ryabinin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Andrey Ryabinin @ 2014-11-14 12:50 UTC (permalink / raw)
  To: linux-kernel
  Cc: Andrey Ryabinin, Andrew Morton, Peter Zijlstra, Sasha Levin,
	Randy Dunlap, Rasmus Villemoes, Jonathan Corbet, Michal Marek,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Yury Gribov,
	Dmitry Vyukov, Konstantin Khlebnikov, x86, linux-doc,
	linux-kbuild

Next spin of UBSan and there are two patches from now.
"Two there should be; no more, no less. One to embody the UBSan,
the other to not deadlock it."

Patches on top of v3.18-rc4. As usual they are available in git:
	git://github.com/aryabinin/linux ubsan/v2

Changes since v1:
   - Refactoring and cleanups in lib/ubsan.c including Sasha's complains.
   - Some spelling fixes from Randy
   - Fixed possible memory corruption on 64 big endian machines, spotted by Rasmus.
   - Links to the relevant GCC documentation added into changelog (Peter).
   - Added documentation.
   - Fix deadlock caused by kernel/printk/printk.c instrumentation
        (patch "kernel: printk: specify alignment for struct printk_log").
   - Dropped useless 'Indirect call of a function through a function pointer of the wrong type'
     checker. GCC doesn't support this, and as clang manual says it's for C++ only.
   - Added checker for __builtin_unreachable() calls.
   - Removed redundant -fno-sanitize=float-cast-overflow from CFLAGS.
   - Added lock to prevent mixing reports.

Andrey Ryabinin (2):
  kernel: printk: specify alignment for struct printk_log
  UBSan: run-time undefined behavior sanity checker

 Documentation/ubsan.txt               |  69 +++++
 Makefile                              |  10 +-
 arch/x86/Kconfig                      |   1 +
 arch/x86/boot/Makefile                |   1 +
 arch/x86/boot/compressed/Makefile     |   1 +
 arch/x86/realmode/rm/Makefile         |   1 +
 arch/x86/vdso/Makefile                |   2 +
 drivers/firmware/efi/libstub/Makefile |   1 +
 include/linux/sched.h                 |   3 +
 kernel/printk/printk.c                |  10 +-
 lib/Kconfig.debug                     |  22 ++
 lib/Makefile                          |   3 +
 lib/ubsan.c                           | 567 ++++++++++++++++++++++++++++++++++
 lib/ubsan.h                           |  84 +++++
 scripts/Makefile.lib                  |   6 +
 15 files changed, 775 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/ubsan.txt
 create mode 100644 lib/ubsan.c
 create mode 100644 lib/ubsan.h

-- 
2.1.3


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

end of thread, other threads:[~2015-11-03 19:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-14 12:50 [PATCH v2 0/2] UBSan: run-time undefined behavior sanity checker Andrey Ryabinin
2014-11-14 12:50 ` [PATCH v2 1/2] kernel: printk: specify alignment for struct printk_log Andrey Ryabinin
2014-11-14 17:22   ` Joe Perches
2014-11-14 20:54     ` Andrey Ryabinin
2014-11-14 12:50 ` [PATCH v2 2/2] UBSan: run-time undefined behavior sanity checker Andrey Ryabinin
2015-11-03 17:20 ` [PATCH v2 0/2] " Sasha Levin
2015-11-03 17:35   ` Dmitry Vyukov
2015-11-03 17:45     ` Dmitry Vyukov
2015-11-03 17:50       ` Sasha Levin
2015-11-03 18:15   ` Andrey Ryabinin
2015-11-03 18:46     ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).