1. 18 11月, 2022 1 次提交
    • J
      random: use random.trust_{bootloader,cpu} command line option only · b9b01a56
      Jason A. Donenfeld 提交于
      It's very unusual to have both a command line option and a compile time
      option, and apparently that's confusing to people. Also, basically
      everybody enables the compile time option now, which means people who
      want to disable this wind up having to use the command line option to
      ensure that anyway. So just reduce the number of moving pieces and nix
      the compile time option in favor of the more versatile command line
      option.
      Signed-off-by: NJason A. Donenfeld <Jason@zx2c4.com>
      b9b01a56
  2. 09 11月, 2022 1 次提交
  3. 03 11月, 2022 1 次提交
  4. 31 8月, 2022 1 次提交
  5. 11 4月, 2022 1 次提交
  6. 24 1月, 2022 1 次提交
  7. 22 1月, 2022 1 次提交
  8. 10 12月, 2021 1 次提交
    • N
      s390: enable switchdev support in defconfig · 5dcf0c30
      Niklas Schnelle 提交于
      The HiperSockets Converged Interface (HSCI) introduced with commit
      4e20e73e ("s390/qeth: Switchdev event handler") requires
      CONFIG_SWITCHDEV=y to be usable. Similarly when using Linux controlled
      SR-IOV capable PF devices with the mlx5_core driver CONFIG_SWITCHDEV=y
      as well as CONFIG_MLX5_ESWITCH=y are necessary to actually get link on
      the created VFs. So let's add these to the defconfig to make both types
      of devices usable. Note also that these options are already enabled in
      most current distribution kernels.
      Signed-off-by: NNiklas Schnelle <schnelle@linux.ibm.com>
      Signed-off-by: NHeiko Carstens <hca@linux.ibm.com>
      5dcf0c30
  9. 06 12月, 2021 1 次提交
  10. 03 12月, 2021 1 次提交
  11. 19 10月, 2021 1 次提交
  12. 15 9月, 2021 1 次提交
  13. 07 9月, 2021 1 次提交
  14. 30 8月, 2021 1 次提交
  15. 03 8月, 2021 1 次提交
  16. 20 7月, 2021 1 次提交
  17. 12 7月, 2021 1 次提交
  18. 30 4月, 2021 2 次提交
  19. 12 4月, 2021 1 次提交
  20. 08 3月, 2021 1 次提交
  21. 09 2月, 2021 2 次提交
  22. 08 2月, 2021 1 次提交
  23. 29 1月, 2021 1 次提交
  24. 19 1月, 2021 2 次提交
    • S
      s390: convert to generic entry · 56e62a73
      Sven Schnelle 提交于
      This patch converts s390 to use the generic entry infrastructure from
      kernel/entry/*.
      
      There are a few special things on s390:
      
      - PIF_PER_TRAP is moved to TIF_PER_TRAP as the generic code doesn't
        know about our PIF flags in exit_to_user_mode_loop().
      
      - The old code had several ways to restart syscalls:
      
        a) PIF_SYSCALL_RESTART, which was only set during execve to force a
           restart after upgrading a process (usually qemu-kvm) to pgste page
           table extensions.
      
        b) PIF_SYSCALL, which is set by do_signal() to indicate that the
           current syscall should be restarted. This is changed so that
           do_signal() now also uses PIF_SYSCALL_RESTART. Continuing to use
           PIF_SYSCALL doesn't work with the generic code, and changing it
           to PIF_SYSCALL_RESTART makes PIF_SYSCALL and PIF_SYSCALL_RESTART
           more unique.
      
      - On s390 calling sys_sigreturn or sys_rt_sigreturn is implemented by
      executing a svc instruction on the process stack which causes a fault.
      While handling that fault the fault code sets PIF_SYSCALL to hand over
      processing to the syscall code on exit to usermode.
      
      The patch introduces PIF_SYSCALL_RET_SET, which is set if ptrace sets
      a return value for a syscall. The s390x ptrace ABI uses r2 both for the
      syscall number and return value, so ptrace cannot set the syscall number +
      return value at the same time. The flag makes handling that a bit easier.
      do_syscall() will just skip executing the syscall if PIF_SYSCALL_RET_SET
      is set.
      
      CONFIG_DEBUG_ASCE was removd in favour of the generic CONFIG_DEBUG_ENTRY.
      CR1/7/13 will be checked both on kernel entry and exit to contain the
      correct asces.
      Signed-off-by: NSven Schnelle <svens@linux.ibm.com>
      Signed-off-by: NVasily Gorbik <gor@linux.ibm.com>
      56e62a73
    • H
      s390: update defconfigs · ac94a291
      Heiko Carstens 提交于
      Signed-off-by: NHeiko Carstens <hca@linux.ibm.com>
      Signed-off-by: NVasily Gorbik <gor@linux.ibm.com>
      ac94a291
  25. 31 12月, 2020 1 次提交
  26. 16 12月, 2020 1 次提交
    • J
      mm/gup_benchmark: rename to mm/gup_test · 9c84f229
      John Hubbard 提交于
      Patch series "selftests/vm: gup_test, hmm-tests, assorted improvements", v3.
      
      Summary: This series provides two main things, and a number of smaller
      supporting goodies.  The two main points are:
      
      1) Add a new sub-test to gup_test, which in turn is a renamed version
         of gup_benchmark.  This sub-test allows nicer testing of dump_pages(),
         at least on user-space pages.
      
         For quite a while, I was doing a quick hack to gup_test.c whenever I
         wanted to try out changes to dump_page().  Then Matthew Wilcox asked me
         what I meant when I said "I used my dump_page() unit test", and I
         realized that it might be nice to check in a polished up version of
         that.
      
         Details about how it works and how to use it are in the commit
         description for patch #6 ("selftests/vm: gup_test: introduce the
         dump_pages() sub-test").
      
      2) Fixes a limitation of hmm-tests: these tests are incredibly useful,
         but only if people actually build and run them.  And it turns out that
         libhugetlbfs is a little too effective at throwing a wrench in the
         works, there.  So I've added a little configuration check that removes
         just two of the 21 hmm-tests, if libhugetlbfs is not available.
      
         Further details in the commit description of patch #8
         ("selftests/vm: hmm-tests: remove the libhugetlbfs dependency").
      
      Other smaller things that this series does:
      
      a) Remove code duplication by creating gup_test.h.
      
      b) Clear up the sub-test organization, and their invocation within
         run_vmtests.sh.
      
      c) Other minor assorted improvements.
      
      [1] v2 is here:
      https://lore.kernel.org/linux-doc/20200929212747.251804-1-jhubbard@nvidia.com/
      
      [2] https://lore.kernel.org/r/CAHk-=wgh-TMPHLY3jueHX7Y2fWh3D+nMBqVS__AZm6-oorquWA@mail.gmail.com
      
      This patch (of 9):
      
      Rename nearly every "gup_benchmark" reference and file name to "gup_test".
      The one exception is for the actual gup benchmark test itself.
      
      The current code already does a *little* bit more than benchmarking, and
      definitely covers more than get_user_pages_fast().  More importantly,
      however, subsequent patches are about to add some functionality that is
      non-benchmark related.
      
      Closely related changes:
      
      * Kconfig: in addition to renaming the options from GUP_BENCHMARK to
        GUP_TEST, update the help text to reflect that it's no longer a
        benchmark-only test.
      
      Link: https://lkml.kernel.org/r/20201026064021.3545418-1-jhubbard@nvidia.com
      Link: https://lkml.kernel.org/r/20201026064021.3545418-2-jhubbard@nvidia.comSigned-off-by: NJohn Hubbard <jhubbard@nvidia.com>
      Cc: Jonathan Corbet <corbet@lwn.net>
      Cc: Jérôme Glisse <jglisse@redhat.com>
      Cc: Ralph Campbell <rcampbell@nvidia.com>
      Cc: Shuah Khan <shuah@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9c84f229
  27. 03 11月, 2020 1 次提交
  28. 14 9月, 2020 2 次提交
  29. 02 9月, 2020 1 次提交
  30. 02 7月, 2020 1 次提交
  31. 11 3月, 2020 1 次提交
  32. 18 2月, 2020 1 次提交
  33. 04 10月, 2019 1 次提交
  34. 13 9月, 2019 1 次提交
  35. 20 8月, 2019 1 次提交
  36. 30 7月, 2019 1 次提交