lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 22 Dec 2016 09:51:45 +0100
From:   Marcin Nowakowski <marcin.nowakowski@...tec.com>
To:     Arnd Bergmann <arnd@...db.de>, <linux-kernel@...r.kernel.org>
CC:     Nicholas Piggin <npiggin@...il.com>
Subject: [PATCH RESEND 0/2] kbuild: dead code elimination: ftrace fixes

Enabling dead code & data elimination currently breaks ftrace operation,
as the __mcount_loc section is removed (as it is not referenced directly
anywhere in the code).
Moreover, there are a lot of entries missing in the __mcount_loc section
as the recordmcount tool doesn't currently properly handle the section
names as created by the use of -ffunction-sections.

The following 2 patches fix that behaviour.
They are based on next-20161208.

Marcin Nowakowski (2):
  kbuild: keep __mcount_loc table through dead code elimination
  recordmcount: fix mcount recording with -ffunction-sections

 include/asm-generic/vmlinux.lds.h |  2 +-
 scripts/Makefile                  |  5 +++++
 scripts/recordmcount.c            | 26 +++++++++++++++++++++++++-
 3 files changed, 31 insertions(+), 2 deletions(-)

-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ