1. 03 3月, 2015 2 次提交
    • M
      s390/mm: fix incorrect ASCE after crst_table_downgrade · 691d5264
      Martin Schwidefsky 提交于
      The switch_mm function does nothing in case the prev and next mm
      are the same. It can happen that a crst_table_downgrade has changed
      the top-level pgd in the meantime on a different CPU. Always store
      the new ASCE to be picked up in entry.S.
      
      [heiko.carstens@de.ibm.com]: Bug was introduced with git commit
      53e857f3 ("s390/mm,tlb: race of lazy TLB flush vs. recreation
      of TLB entries") and causes random crashes due to broken page tables
      being used.
      Reported-by: NDominik Vogt <vogt@linux.vnet.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      691d5264
    • H
      s390/ftrace: fix crashes when switching tracers / add notrace to cpu_relax() · a9ca8eb7
      Heiko Carstens 提交于
      With git commit 4d92f502 ("s390: reintroduce diag 44 calls for
      cpu_relax()") I reintroduced a non-trivial cpu_relax() variant on s390.
      
      The difference to the previous variant however is that the new version is
      an out-of-line function, which will be traced if function tracing is enabled.
      
      Switching to different tracers includes instruction patching. Therefore this
      is done within stop_machine() "context" to prevent that any function tracing
      is going on while instructions are being patched.
      With the new out-of-line variant of cpu_relax() this is not true anymore,
      since cpu_relax() gets called in a busy loop by all waiting cpus within
      stop_machine() until function patching is finished.
      Therefore cpu_relax() must be marked notrace.
      
      This fixes kernel crashes when frequently switching between "function" and
      "function_graph" tracers.
      
      Moving cpu_relax() to a header file again, doesn't work because of header
      include order dependencies.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      a9ca8eb7
  2. 28 2月, 2015 2 次提交
  3. 26 2月, 2015 6 次提交
  4. 25 2月, 2015 4 次提交
  5. 24 2月, 2015 4 次提交
  6. 23 2月, 2015 22 次提交