Skip to content
  1. Mar 14, 2018
    • John Johansen's avatar
      apparmor: add base infastructure for socket mediation · 56974a6f
      John Johansen authored
      
      
      version 2 - Force an abi break. Network mediation will only be
                  available in v8 abi complaint policy.
      
      Provide a basic mediation of sockets. This is not a full net mediation
      but just whether a spcific family of socket can be used by an
      application, along with setting up some basic infrastructure for
      network mediation to follow.
      
      the user space rule hav the basic form of
        NETWORK RULE = [ QUALIFIERS ] 'network' [ DOMAIN ]
                       [ TYPE | PROTOCOL ]
      
        DOMAIN = ( 'inet' | 'ax25' | 'ipx' | 'appletalk' | 'netrom' |
                   'bridge' | 'atmpvc' | 'x25' | 'inet6' | 'rose' |
      	     'netbeui' | 'security' | 'key' | 'packet' | 'ash' |
      	     'econet' | 'atmsvc' | 'sna' | 'irda' | 'pppox' |
      	     'wanpipe' | 'bluetooth' | 'netlink' | 'unix' | 'rds' |
      	     'llc' | 'can' | 'tipc' | 'iucv' | 'rxrpc' | 'isdn' |
      	     'phonet' | 'ieee802154' | 'caif' | 'alg' | 'nfc' |
      	     'vsock' | 'mpls' | 'ib' | 'kcm' ) ','
      
        TYPE = ( 'stream' | 'dgram' | 'seqpacket' |  'rdm' | 'raw' |
                 'packet' )
      
        PROTOCOL = ( 'tcp' | 'udp' | 'icmp' )
      
      eg.
        network,
        network inet,
      
      Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
      Acked-by: default avatarSeth Arnold <seth.arnold@canonical.com>
      56974a6f
  2. Feb 10, 2018
  3. Jan 29, 2018
    • Linus Torvalds's avatar
      Linux 4.15 · d8a5b805
      Linus Torvalds authored
      v4.15
      d8a5b805
    • Linus Torvalds's avatar
      Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 24b1cccf
      Linus Torvalds authored
      Pull x86 retpoline fixlet from Thomas Gleixner:
       "Remove the ESP/RSP thunks for retpoline as they cannot ever work.
      
        Get rid of them before they show up in a release"
      
      * 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/retpoline: Remove the esp/rsp thunk
      24b1cccf
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 32c6cdf7
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "A set of small fixes for 4.15:
      
         - Fix vmapped stack synchronization on systems with 4-level paging
           and a large amount of memory caused by a missing 5-level folding
           which made the pgd synchronization logic to fail and causing double
           faults.
      
         - Add a missing sanity check in the vmalloc_fault() logic on 5-level
           paging systems.
      
         - Bring back protection against accessing a freed initrd in the
           microcode loader which was lost by a wrong merge conflict
           resolution.
      
         - Extend the Broadwell micro code loading sanity check.
      
         - Add a missing ENDPROC annotation in ftrace assembly code which
           makes ORC unhappy.
      
         - Prevent loading the AMD power module on !AMD platforms. The load
           itself is uncritical, but an unload attempt results in a kernel
           crash.
      
         - Update Peter Anvins role in the MAINTAINERS file"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/ftrace: Add one more ENDPROC annotation
        x86: Mark hpa as a "Designated Reviewer" for the time being
        x86/mm/64: Tighten up vmalloc_fault() sanity checks on 5-level kernels
        x86/mm/64: Fix vmapped stack syncing on very-large-memory 4-level systems
        x86/microcode: Fix again accessing initrd after having been freed
        x86/microcode/intel: Extend BDW late-loading further with LLC size check
        perf/x86/amd/power: Do not load AMD power module on !AMD platforms
      32c6cdf7
    • Linus Torvalds's avatar
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 07b0137c
      Linus Torvalds authored
      Pull timer fix from Thomas Gleixner:
       "A single fix for a ~10 years old problem which causes high resolution
        timers to stop after a CPU unplug/plug cycle due to a stale flag in
        the per CPU hrtimer base struct.
      
        Paul McKenney was hunting this for about a year, but the heisenbug
        nature made it resistant against debug attempts for quite some time"
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        hrtimer: Reset hrtimer cpu base proper on CPU hotplug
      07b0137c
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 62444192
      Linus Torvalds authored
      Pull scheduler fix from Thomas Gleixner:
       "A single bug fix to prevent a subtle deadlock in the scheduler core
        code vs cpu hotplug"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/core: Fix cpu.max vs. cpuhotplug deadlock
      62444192
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 39e38362
      Linus Torvalds authored
      Pull perf fixes from Thomas Gleixner:
       "Four patches which all address lock inversions and deadlocks in the
        perf core code and the Intel debug store"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/x86: Fix perf,x86,cpuhp deadlock
        perf/core: Fix ctx::mutex deadlock
        perf/core: Fix another perf,trace,cpuhp lock inversion
        perf/core: Fix lock inversion between perf,trace,cpuhp
      39e38362
    • Linus Torvalds's avatar
      Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8c76e31a
      Linus Torvalds authored
      Pull locking fixes from Thomas Gleixner:
       "Two final locking fixes for 4.15:
      
         - Repair the OWNER_DIED logic in the futex code which got wreckaged
           with the recent fix for a subtle race condition.
      
         - Prevent the hard lockup detector from triggering when dumping all
           held locks in the system"
      
      * 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/lockdep: Avoid triggering hardlockup from debug_show_all_locks()
        futex: Fix OWNER_DEAD fixup
      8c76e31a
  4. Jan 28, 2018
  5. Jan 27, 2018
    • Thomas Gleixner's avatar
      hrtimer: Reset hrtimer cpu base proper on CPU hotplug · d5421ea4
      Thomas Gleixner authored
      The hrtimer interrupt code contains a hang detection and mitigation
      mechanism, which prevents that a long delayed hrtimer interrupt causes a
      continous retriggering of interrupts which prevent the system from making
      progress. If a hang is detected then the timer hardware is programmed with
      a certain delay into the future and a flag is set in the hrtimer cpu base
      which prevents newly enqueued timers from reprogramming the timer hardware
      prior to the chosen delay. The subsequent hrtimer interrupt after the delay
      clears the flag and resumes normal operation.
      
      If such a hang happens in the last hrtimer interrupt before a CPU is
      unplugged then the hang_detected flag is set and stays that way when the
      CPU is plugged in again. At that point the timer hardware is not armed and
      it cannot be armed because the hang_detected flag is still active, so
      nothing clears that flag. As a consequence the CPU does not receive hrtimer
      interrupts and no timers expire on that CPU which results in RCU stalls and
      other malfunctions.
      
      Clear the flag along with some other less critical members of the hrtimer
      cpu base to ensure starting from a clean state when a CPU is plugged in.
      
      Thanks to Paul, Sebastian and Anna-Maria for their help to get down to the
      root cause of that hard to reproduce heisenbug. Once understood it's
      trivial and certainly justifies a brown paperbag.
      
      Fixes: 41d2e494
      
       ("hrtimer: Tune hrtimer_interrupt hang logic")
      Reported-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Sebastian Sewior <bigeasy@linutronix.de>
      Cc: Anna-Maria Gleixner <anna-maria@linutronix.de>
      Cc: stable@vger.kernel.org
      Link: https://lkml.kernel.org/r/alpine.DEB.2.20.1801261447590.2067@nanos
      d5421ea4
    • H. Peter Anvin's avatar
      x86: Mark hpa as a "Designated Reviewer" for the time being · 8a95b74d
      H. Peter Anvin authored
      
      
      Due to some unfortunate events, I have not been directly involved in
      the x86 kernel patch flow for a while now.  I have also not been able
      to ramp back up by now like I had hoped to, and after reviewing what I
      will need to work on both internally at Intel and elsewhere in the near
      term, it is clear that I am not going to be able to ramp back up until
      late 2018 at the very earliest.
      
      It is not acceptable to not recognize that this load is currently
      taken by Ingo and Thomas without my direct participation, so I mark
      myself as R: (designated reviewer) rather than M: (maintainer) until
      further notice.  This is in fact recognizing the de facto situation
      for the past few years.
      
      I have obviously no intention of going away, and I will do everything
      within my power to improve Linux on x86 and x86 for Linux.  This,
      however, puts credit where it is due and reflects a change of focus.
      
      This patch also removes stale entries for portions of the x86
      architecture which have not been maintained separately from arch/x86
      for a long time.  If there is a reason to re-introduce them then that
      can happen later.
      
      Signed-off-by: default avatarH. Peter Anvin <h.peter.anvin@intel.com>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Bruce Schlobohm <bruce.schlobohm@intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/20180125195934.5253-1-hpa@zytor.com
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      8a95b74d