1. 15 11月, 2016 1 次提交
  2. 28 10月, 2016 1 次提交
    • M
      s390/hypfs: Use get_free_page() instead of kmalloc to ensure page alignment · 237d6e68
      Michael Holzheu 提交于
      Since commit d86bd1be ("mm/slub: support left redzone") it is no longer
      guaranteed that kmalloc(PAGE_SIZE) returns page aligned memory.
      
      After the above commit we get an error for diag224 because aligned
      memory is required. This leads to the following user visible error:
      
       # mount none -t s390_hypfs /sys/hypervisor/
       mount: unknown filesystem type 's390_hypfs'
      
       # dmesg | grep hypfs
       hypfs.cccfb8: The hardware system does not provide all functions
                     required by hypfs
       hypfs.7a79f0: Initialization of hypfs failed with rc=-61
      
      Fix this problem and use get_free_page() instead of kmalloc() to get
      correctly aligned memory.
      
      Cc: stable@vger.kernel.org # v3.6+
      Signed-off-by: NMichael Holzheu <holzheu@linux.vnet.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      237d6e68
  3. 26 10月, 2016 1 次提交
  4. 24 10月, 2016 2 次提交
  5. 21 10月, 2016 1 次提交
    • C
      KVM: s390: reject invalid modes for runtime instrumentation · a5efb6b6
      Christian Borntraeger 提交于
      Usually a validity intercept is a programming error of the host
      because of invalid entries in the state description.
      We can get a validity intercept if the mode of the runtime
      instrumentation control block is wrong. As the host does not know
      which modes are valid, this can be used by userspace to trigger
      a WARN.
      Instead of printing a WARN let's return an error to userspace as
      this can only happen if userspace provides a malformed initial
      value (e.g. on migration). The kernel should never warn on bogus
      input. Instead let's log it into the s390 debug feature.
      
      While at it, let's return -EINVAL for all validity intercepts as
      this will trigger an error in QEMU like
      
      error: kvm run failed Invalid argument
      PSW=mask 0404c00180000000 addr 000000000063c226 cc 00
      R00=000000000000004f R01=0000000000000004 R02=0000000000760005 R03=000000007fe0a000
      R04=000000000064ba2a R05=000000049db73dd0 R06=000000000082c4b0 R07=0000000000000041
      R08=0000000000000002 R09=000003e0804042a8 R10=0000000496152c42 R11=000000007fe0afb0
      [...]
      
      This will avoid an endless loop of validity intercepts.
      
      Cc: stable@vger.kernel.org # v4.5+
      Fixes: c6e5f166 ("KVM: s390: implement the RI support of guest")
      Acked-by: NFan Zhang <zhangfan@linux.vnet.ibm.com>
      Reviewed-by: NPierre Morel <pmorel@linux.vnet.ibm.com>
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      a5efb6b6
  6. 19 10月, 2016 1 次提交
  7. 17 10月, 2016 6 次提交
  8. 08 10月, 2016 5 次提交
  9. 28 9月, 2016 1 次提交
  10. 27 9月, 2016 1 次提交
  11. 22 9月, 2016 5 次提交
  12. 20 9月, 2016 6 次提交
  13. 16 9月, 2016 1 次提交
  14. 14 9月, 2016 1 次提交
  15. 08 9月, 2016 7 次提交