1. 20 Jun, 2019 2 commits
    • Sebastian Andrzej Siewior's avatar
      apparmor: Use a memory pool instead per-CPU caches · df323337
      Sebastian Andrzej Siewior authored
      The get_buffers() macro may provide one or two buffers to the caller.
      Those buffers are pre-allocated on init for each CPU. By default it
      allocates
      	2* 2 * MAX_PATH * POSSIBLE_CPU
      
      which equals 64KiB on a system with 4 CPUs or 1MiB with 64 CPUs and so
      on.
      
      Replace the per-CPU buffers with a common memory pool which is shared
      across all CPUs. The pool grows on demand and never shrinks. The pool
      starts with two (UP) or four (SMP) elements. By using this pool it is
      possible to request a buffer and keeping preemption enabled which avoids
      the hack in profile_transition().
      
      It has been pointed out by Tetsuo Handa that GFP_KERNEL allocations for
      small amount of memory do not fail. In order not to have an endless
      retry, __GFP_RETRY_MAYFAIL is passed (so the memory allocation is not
      repeated until success) and retried once hoping that in the meantime a
      buffer has been returned to the pool. Since now NULL is possible all
      allocation paths check the buffer pointer and return -ENOMEM on failure.
      Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
      df323337
    • Bharath Vedartham's avatar
      apparmor: Force type-casting of current->real_cred · bf1d2ee7
      Bharath Vedartham authored
      This patch fixes the sparse warning:
      warning: cast removes address space '<asn:4>' of expression.
      Signed-off-by: default avatarBharath Vedartham <linux.bhar@gmail.com>
      Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
      bf1d2ee7
  2. 17 Apr, 2019 1 commit
  3. 11 Apr, 2019 4 commits
  4. 10 Apr, 2019 7 commits
  5. 09 Apr, 2019 3 commits
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 869e3305
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Off by one and bounds checking fixes in NFC, from Dan Carpenter.
      
       2) There have been many weird regressions in r8169 since we turned ASPM
          support on, some are still not understood nor completely resolved.
          Let's turn this back off for now. From Heiner Kallweit.
      
       3) Signess fixes for ethtool speed value handling, from Michael
          Zhivich.
      
       4) Handle timestamps properly in macb driver, from Paul Thomas.
      
       5) Two erspan fixes, it's the usual "skb ->data potentially reallocated
          and we're holding a stale protocol header pointer". From Lorenzo
          Bianconi.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
        bnxt_en: Reset device on RX buffer errors.
        bnxt_en: Improve RX consumer index validity check.
        net: macb driver, check for SKBTX_HW_TSTAMP
        qlogic: qlcnic: fix use of SPEED_UNKNOWN ethtool constant
        broadcom: tg3: fix use of SPEED_UNKNOWN ethtool constant
        ethtool: avoid signed-unsigned comparison in ethtool_validate_speed()
        net: ip6_gre: fix possible use-after-free in ip6erspan_rcv
        net: ip_gre: fix possible use-after-free in erspan_rcv
        r8169: disable ASPM again
        MAINTAINERS: ieee802154: update documentation file pattern
        net: vrf: Fix ping failed when vrf mtu is set to 0
        selftests: add a tc matchall test case
        nfc: nci: Potential off by one in ->pipes[] array
        NFC: nci: Add some bounds checking in nci_hci_cmd_received()
      869e3305
    • Linus Torvalds's avatar
      Merge branch 'fixes-v5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security · a556810d
      Linus Torvalds authored
      Pull TPM fixes from James Morris:
       "From Jarkko: These are critical fixes for v5.1. Contains also couple
        of new selftests for v5.1 features (partial reads in /dev/tpm0)"
      
      * 'fixes-v5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
        selftests/tpm2: Open tpm dev in unbuffered mode
        selftests/tpm2: Extend tests to cover partial reads
        KEYS: trusted: fix -Wvarags warning
        tpm: Fix the type of the return value in calc_tpm2_event_size()
        KEYS: trusted: allow trusted.ko to initialize w/o a TPM
        tpm: fix an invalid condition in tpm_common_poll
        tpm: turn on TPM on suspend for TPM 1.x
      a556810d
    • Linus Torvalds's avatar
      Merge tag 'xtensa-20190408' of git://github.com/jcmvbkbc/linux-xtensa · 10d43397
      Linus Torvalds authored
      Pull xtensa fixes from Max Filippov:
      
       - fix syscall number passed to trace_sys_exit
      
       - fix syscall number initialization in start_thread
      
       - fix level interpretation in the return_address
      
       - fix format string warning in init_pmd
      
      * tag 'xtensa-20190408' of git://github.com/jcmvbkbc/linux-xtensa:
        xtensa: fix format string warning in init_pmd
        xtensa: fix return_address
        xtensa: fix initialization of pt_regs::syscall in start_thread
        xtensa: use actual syscall number in do_syscall_trace_leave
      10d43397
  6. 08 Apr, 2019 23 commits