linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] kcov: remove #ifdef CONFIG_RANDOMIZE_BASE
@ 2017-09-19 12:46 Andrey Ryabinin
  2017-09-19 12:46 ` [PATCH 2/3] kcov: remove pointless current != NULL check Andrey Ryabinin
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Andrey Ryabinin @ 2017-09-19 12:46 UTC (permalink / raw)
  To: Dmitry Vyukov
  Cc: akpm, Andrey Konovalov, tchibo, syzkaller, Mark Rutland,
	linux-kernel, Andrey Ryabinin

There is no need to surround kaslr_offset() with CONFIG_RANDOMIZE_BASE ifdef.
kaslr_offset() will just return 0 if CONFIG_RANDOMIZE_BASE isn't set.

Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
 kernel/kcov.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/kernel/kcov.c b/kernel/kcov.c
index 3f693a0f6f3e..2f0e7a7c7afc 100644
--- a/kernel/kcov.c
+++ b/kernel/kcov.c
@@ -69,9 +69,7 @@ void notrace __sanitizer_cov_trace_pc(void)
 		unsigned long pos;
 		unsigned long ip = _RET_IP_;
 
-#ifdef CONFIG_RANDOMIZE_BASE
 		ip -= kaslr_offset();
-#endif
 
 		/*
 		 * There is some code that runs in interrupts but for which
-- 
2.13.5

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

end of thread, other threads:[~2017-09-29 16:17 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-19 12:46 [PATCH 1/3] kcov: remove #ifdef CONFIG_RANDOMIZE_BASE Andrey Ryabinin
2017-09-19 12:46 ` [PATCH 2/3] kcov: remove pointless current != NULL check Andrey Ryabinin
2017-09-19 12:57   ` Dmitry Vyukov
2017-09-19 13:32   ` Mark Rutland
2017-09-19 12:46 ` [PATCH 3/3] kcov: remove useless barrier()s Andrey Ryabinin
2017-09-19 12:57   ` Dmitry Vyukov
2017-09-19 13:52     ` Andrey Ryabinin
2017-09-19 13:54       ` Dmitry Vyukov
2017-09-19 14:29         ` Andrey Ryabinin
2017-09-19 14:42           ` Dmitry Vyukov
2017-09-19 13:03 ` [PATCH 1/3] kcov: remove #ifdef CONFIG_RANDOMIZE_BASE Dmitry Vyukov
2017-09-19 13:30 ` Mark Rutland
2017-09-19 13:47   ` Dmitry Vyukov
2017-09-29 16:20     ` Andrey Ryabinin
2017-09-21 22:16 ` kbuild test robot

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).