Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1448563

Re: [PATCH] kmemleak: don't hang if user disables scanning early

From Catalin Marinas <catalin.marinas@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH] kmemleak: don't hang if user disables scanning early
Date 2016-07-22 14:50 +0200
Message-ID <rXI3U-5Un-23@gated-at.bofh.it> (permalink)
References <rWdlw-4u2-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jul 18, 2016 at 11:43:25AM +0200, Vegard Nossum wrote:
> If the user tries to disable automatic scanning early in the boot
> process using e.g.:
> 
>   echo scan=off > /sys/kernel/debug/kmemleak
> 
> then this command will hang until SECS_FIRST_SCAN (= 60) seconds have
> elapsed, even though the system is fully initialised.
> 
> We can fix this using interruptible sleep and checking if we're
> supposed to stop whenever we wake up (like the rest of the code does).
> 
> Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>

Acked-by: Catalin Marinas <catalin.marinas@arm.com>

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] kmemleak: don't hang if user disables scanning early Vegard Nossum <vegard.nossum@oracle.com> - 2016-07-18 11:50 +0200
  Re: [PATCH] kmemleak: don't hang if user disables scanning early Catalin Marinas <catalin.marinas@arm.com> - 2016-07-22 14:50 +0200

csiph-web