Skip to content
Snippets Groups Projects
Select Git revision
  • 3eda69c92d4751977baf2d34e88a29d4b6affa7d
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

linux

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Mark Rutland authored and Linus Torvalds committed
    KASAN splats indicate that in some cases we free a live mm, then
    continue to access it, with potentially disastrous results.  This is
    likely due to a mismatched mmdrop() somewhere in the kernel, but so far
    the culprit remains elusive.
    
    Let's have __mmdrop() verify that the mm isn't live for the current
    task, similar to the existing check for init_mm.  This way, we can catch
    this class of issue earlier, and without requiring KASAN.
    
    Currently, idle_task_exit() leaves active_mm stale after it switches to
    init_mm.  This isn't harmful, but will trigger the new assertions, so we
    must adjust idle_task_exit() to update active_mm.
    
    Link: http://lkml.kernel.org/r/20180312140103.19235-1-mark.rutland@arm.com
    
    
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    Cc: Michal Hocko <mhocko@suse.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Will Deacon <will.deacon@arm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    3eda69c9
    History
    Name Last commit Last update