1. 14 Oct, 2014 10 commits
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml · 31003e3a
      Linus Torvalds authored
      Pull UML update from Richard Weinberger:
       "Besides of fixes this contains also support for CONFIG_STACKTRACE by
        Daniel Walter"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
        um: net: Eliminate NULL test after alloc_bootmem
        um: Add support for CONFIG_STACKTRACE
        um: ubd: Fix for processes stuck in D state forever
        um: delete unnecessary bootmem struct page array
        um: remove csum_partial_copy_generic_i386 to clean up exception table
      31003e3a
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 1ee07ef6
      Linus Torvalds authored
      Pull s390 updates from Martin Schwidefsky:
       "This patch set contains the main portion of the changes for 3.18 in
        regard to the s390 architecture.  It is a bit bigger than usual,
        mainly because of a new driver and the vector extension patches.
      
        The interesting bits are:
         - Quite a bit of work on the tracing front.  Uprobes is enabled and
           the ftrace code is reworked to get some of the lost performance
           back if CONFIG_FTRACE is enabled.
         - To improve boot time with CONFIG_DEBIG_PAGEALLOC, support for the
           IPTE range facility is added.
         - The rwlock code is re-factored to improve writer fairness and to be
           able to use the interlocked-access instructions.
         - The kernel part for the support of the vector extension is added.
         - The device driver to access the CD/DVD on the HMC is added, this
           will hopefully come in handy to improve the installation process.
         - Add support for control-unit initiated reconfiguration.
         - The crypto device driver is enhanced to enable the additional AP
           domains and to allow the new crypto hardware to be used.
         - Bug fixes"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (39 commits)
        s390/ftrace: simplify enabling/disabling of ftrace_graph_caller
        s390/ftrace: remove 31 bit ftrace support
        s390/kdump: add support for vector extension
        s390/disassembler: add vector instructions
        s390: add support for vector extension
        s390/zcrypt: Toleration of new crypto hardware
        s390/idle: consolidate idle functions and definitions
        s390/nohz: use a per-cpu flag for arch_needs_cpu
        s390/vtime: do not reset idle data on CPU hotplug
        s390/dasd: add support for control unit initiated reconfiguration
        s390/dasd: fix infinite loop during format
        s390/mm: make use of ipte range facility
        s390/setup: correct 4-level kernel page table detection
        s390/topology: call set_sched_topology early
        s390/uprobes: architecture backend for uprobes
        s390/uprobes: common library for kprobes and uprobes
        s390/rwlock: use the interlocked-access facility 1 instructions
        s390/rwlock: improve writer fairness
        s390/rwlock: remove interrupt-enabling rwlock variant.
        s390/mm: remove change bit override support
        ...
      1ee07ef6
    • Linus Torvalds's avatar
      Merge branches 'x86-ras-for-linus', 'x86-uv-for-linus' and... · 77654908
      Linus Torvalds authored
      Merge branches 'x86-ras-for-linus', 'x86-uv-for-linus' and 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
      
      Pull x86 ras, uv and vdso fixlets from Ingo Molnar:
       "ras: tone down a kernel message to only occur during initial bootup,
          not during suspend/resume cycles.
      
        uv: a cleanup commit
      
        vdso: a fix to error checking"
      
      * 'x86-ras-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mce: Avoid showing repetitive message from intel_init_thermal()
      
      * 'x86-uv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/apic/uv: Remove unnecessary #ifdef
      
      * 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/vdso: Fix vdso2c's special_pages[] error checking
      77654908
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 2fd7476d
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
       "Misc smaller fixes that missed the v3.17 cycle"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/build: Add arch/x86/purgatory/ make generated files to gitignore
        x86: Fix section conflict for numachip
        x86: Reject x32 executables if x32 ABI not supported
        x86_64, entry: Filter RFLAGS.NT on entry from userspace
        x86, boot, kaslr: Fix nuisance warning on 32-bit builds
      2fd7476d
    • Linus Torvalds's avatar
      Merge branch 'x86-seccomp-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ba1a96fc
      Linus Torvalds authored
      Pull x86 seccomp changes from Ingo Molnar:
       "This tree includes x86 seccomp filter speedups and related preparatory
        work, which touches core seccomp facilities as well.
      
        The main idea is to split seccomp into two phases, to be able to enter
        a simple fast path for syscalls with ptrace side effects.
      
        There's no substantial user-visible (and ABI) effects expected from
        this, except a change in how we emit a better audit record for
        SECCOMP_RET_TRACE events"
      
      * 'x86-seccomp-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86_64, entry: Use split-phase syscall_trace_enter for 64-bit syscalls
        x86_64, entry: Treat regs->ax the same in fastpath and slowpath syscalls
        x86: Split syscall_trace_enter into two phases
        x86, entry: Only call user_exit if TIF_NOHZ
        x86, x32, audit: Fix x32's AUDIT_ARCH wrt audit
        seccomp: Document two-phase seccomp and arch-provided seccomp_data
        seccomp: Allow arch code to provide seccomp_data
        seccomp: Refactor the filter callback and the API
        seccomp,x86,arm,mips,s390: Remove nr parameter from secure_computing
      ba1a96fc
    • Linus Torvalds's avatar
      Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f1bfbd98
      Linus Torvalds authored
      Pull x86 platform updates from Ingo Molnar:
       "The main changes in this tree are:
      
         - fix and update Intel Quark [Galileo] SoC platform support
      
         - update IOSF chipset side band interface and make it available via
           debugfs
      
         - enable HPETs on Soekris net6501 and other e6xx based systems"
      
      * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86: Add cpu_detect_cache_sizes to init_intel() add Quark legacy_cache()
        x86: Quark: Comment setup_arch() to document TLB/PGE bug
        x86/intel/quark: Switch off CR4.PGE so TLB flush uses CR3 instead
        x86/platform/intel/iosf: Add debugfs config option for IOSF
        x86/platform/intel/iosf: Add better description of IOSF driver in config
        x86/platform/intel/iosf: Add Braswell PCI ID
        x86/platform/pmc_atom: Fix warning when CONFIG_DEBUG_FS=n
        x86: HPET force enable for e6xx based systems
        x86/iosf: Add debugfs support
        x86/iosf: Add Kconfig prompt for IOSF_MBI selection
      f1bfbd98
    • Linus Torvalds's avatar
      Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · df133e8f
      Linus Torvalds authored
      Pull x86 mm updates from Ingo Molnar:
       "This tree includes the following changes:
      
         - fix memory hotplug
         - fix hibernation bootup memory layout assumptions
         - fix hyperv numa guest kernel messages
         - remove dead code
         - update documentation"
      
      * 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mm: Update memory map description to list hypervisor-reserved area
        x86/mm, hibernate: Do not assume the first e820 area to be RAM
        x86/mm/numa: Drop dead code and rename setup_node_data() to setup_alloc_data()
        x86/mm/hotplug: Modify PGD entry when removing memory
        x86/mm/hotplug: Pass sync_global_pgds() a correct argument in remove_pagetable()
        x86: Remove set_pmd_pfn
      df133e8f
    • Linus Torvalds's avatar
      Merge branch 'x86-microcode-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e3438330
      Linus Torvalds authored
      Pull x86 microcode loading updates from Ingo Molnar:
       "Misc smaller cleanups"
      
      * 'x86-microcode-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86, microcode, intel: Fix total_size computation
        x86, microcode, intel: Rename apply_microcode and declare it static
        x86, microcode, intel: Fix typos
        x86, microcode, intel: Add missing static declarations
        x86, microcode, amd: Fix missing static declaration
      e3438330
    • Linus Torvalds's avatar
      Merge branch 'x86-fpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · c7b228ad
      Linus Torvalds authored
      Pull x86 FPU updates from Ingo Molnar:
       "x86 FPU handling fixes, cleanups and enhancements from Oleg.
      
        The signal handling race fix and the __restore_xstate_sig() preemption
        fix for eager-mode is marked for -stable as well"
      
      * 'x86-fpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86: copy_thread: Don't nullify ->ptrace_bps twice
        x86, fpu: Shift "fpu_counter = 0" from copy_thread() to arch_dup_task_struct()
        x86, fpu: copy_process: Sanitize fpu->last_cpu initialization
        x86, fpu: copy_process: Avoid fpu_alloc/copy if !used_math()
        x86, fpu: Change __thread_fpu_begin() to use use_eager_fpu()
        x86, fpu: __restore_xstate_sig()->math_state_restore() needs preempt_disable()
        x86, fpu: shift drop_init_fpu() from save_xstate_sig() to handle_signal()
      c7b228ad
    • Linus Torvalds's avatar
      Merge branch 'x86-cpufeature-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 708d0b41
      Linus Torvalds authored
      Pull x86 cpufeature updates from Ingo Molnar:
       "This tree includes the following changes:
      
         - Introduce DISABLED_MASK to list disabled CPU features, to simplify
           CPU feature handling and avoid excessive #ifdefs
      
         - Remove the lightly used cpu_has_pae() primitive"
      
      * 'x86-cpufeature-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86: Add more disabled features
        x86: Introduce disabled-features
        x86: Axe the lightly-used cpu_has_pae
      708d0b41
  2. 13 Oct, 2014 19 commits
    • Himangi Saraogi's avatar
      um: net: Eliminate NULL test after alloc_bootmem · 5f786595
      Himangi Saraogi authored
      alloc_bootmem and related functions never return NULL. Thus a NULL
      test or memset after calls to these functions is unnecessary.
      
      The following Coccinelle semantic patch was used for making the change:
      
      @@
      expression E;
      statement S;
      @@
      
      E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\)(...)
      ... when != E
      - if (E == NULL) S
      Signed-off-by: default avatarHimangi Saraogi <himangi774@gmail.com>
      Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      5f786595
    • Daniel Walter's avatar
      um: Add support for CONFIG_STACKTRACE · 970e51fe
      Daniel Walter authored
      Add stacktrace support for User Mode Linux
      Signed-off-by: default avatarDaniel Walter <dwalter@google.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      970e51fe
    • Thorsten Knabe's avatar
      um: ubd: Fix for processes stuck in D state forever · 2a236122
      Thorsten Knabe authored
      Starting with Linux 3.12 processes get stuck in D state forever in
      UserModeLinux under sync heavy workloads. This bug was introduced by
      commit 805f11a0 (um: ubd: Add REQ_FLUSH suppport).
      Fix bug by adding a check if FLUSH request was successfully submitted to
      the I/O thread and keeping the FLUSH request on the request queue on
      submission failures.
      
      Fixes: 805f11a0 (um: ubd: Add REQ_FLUSH suppport)
      Signed-off-by: default avatarThorsten Knabe <linux@thorsten-knabe.de>
      Cc: stable@kernel.org # >= 3.12
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      2a236122
    • Linus Torvalds's avatar
      Merge branch 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f1d0d141
      Linus Torvalds authored
      Pull x86 cpu offlining patch from Ingo Molnar:
       "This tree includes a single commit that speeds up x86 suspend/resume
        by replacing a naive 100msec sleep based polling loop with proper
        completion notification.
      
        This gives some real suspend/resume benefit on servers with larger
        core counts"
      
      * 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/smpboot: Speed up suspend/resume by avoiding 100ms sleep for CPU offline during S3
      f1d0d141
    • Linus Torvalds's avatar
      Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · bf10fa85
      Linus Torvalds authored
      Pull x86 cleanups from Ingo Molnar:
       "Three small cleanups"
      
      * 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/tty/serial/8250: Clean up the asm/serial.h include file a bit
        x86/tty/serial/8250: Resolve missing-field-initializers warnings
        x86: Remove obsolete comment in uapi/e820.h
      bf10fa85
    • Linus Torvalds's avatar
      Merge branch 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5941fe3b
      Linus Torvalds authored
      Pull x86 build update from Ingo Molnar:
       "A single commit that simplifies the no-FPU-ops build options"
      
      * 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/kbuild: Eliminate duplicate command line options
      5941fe3b
    • Linus Torvalds's avatar
      Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 19e00d59
      Linus Torvalds authored
      Pull x86 bootup updates from Ingo Molnar:
       "The changes in this cycle were:
      
         - Fix rare SMP-boot hang (mostly in virtual environments)
      
         - Fix build warning with certain (rare) toolchains"
      
      * 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/relocs: Make per_cpu_load_addr static
        x86/smpboot: Initialize secondary CPU only if master CPU will wait for it
      19e00d59
    • Linus Torvalds's avatar
      Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 197fe6b0
      Linus Torvalds authored
      Pull x86 asm updates from Ingo Molnar:
       "The changes in this cycle were:
      
         - Speed up the x86 __preempt_schedule() implementation
         - Fix/improve low level asm code debug info annotations"
      
      * 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86: Unwind-annotate thunk_32.S
        x86: Improve cmpxchg8b_emu.S
        x86: Improve cmpxchg16b_emu.S
        x86/lib/Makefile: Remove the unnecessary "+= thunk_64.o"
        x86: Speed up ___preempt_schedule*() by using THUNK helpers
      197fe6b0
    • Honggang Li's avatar
      um: delete unnecessary bootmem struct page array · 9e6a57d2
      Honggang Li authored
      1) uml kernel bootmem managed through bootmem_data->node_bootmem_map,
      not the struct page array, so the array is unnecessary.
      
      2) the bootmem struct page array has been pointed by a *local* pointer,
      struct page *map, in init_maps function. The array can be accessed only
      in init_maps's scope. As a result, uml kernel wastes about 1% of total
      memory.
      Signed-off-by: default avatarHonggang Li <enjoymindful@gmail.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      9e6a57d2
    • Honggang Li's avatar
      um: remove csum_partial_copy_generic_i386 to clean up exception table · 67131230
      Honggang Li authored
      arch/x86/um/checksum_32.S had been copy & paste from x86. When build
      x86 uml, csum_partial_copy_generic_i386 mess up the exception table.
      In fact, exception table dose not work in uml kernel.
      
      And csum_partial_copy_generic_i386 never been called. So, delete it.
      Signed-off-by: default avatarHonggang Li <enjoymindful@gmail.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      67131230
    • Linus Torvalds's avatar
      Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · faafcba3
      Linus Torvalds authored
      Pull scheduler updates from Ingo Molnar:
       "The main changes in this cycle were:
      
         - Optimized support for Intel "Cluster-on-Die" (CoD) topologies (Dave
           Hansen)
      
         - Various sched/idle refinements for better idle handling (Nicolas
           Pitre, Daniel Lezcano, Chuansheng Liu, Vincent Guittot)
      
         - sched/numa updates and optimizations (Rik van Riel)
      
         - sysbench speedup (Vincent Guittot)
      
         - capacity calculation cleanups/refactoring (Vincent Guittot)
      
         - Various cleanups to thread group iteration (Oleg Nesterov)
      
         - Double-rq-lock removal optimization and various refactorings
           (Kirill Tkhai)
      
         - various sched/deadline fixes
      
        ... and lots of other changes"
      
      * 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (72 commits)
        sched/dl: Use dl_bw_of() under rcu_read_lock_sched()
        sched/fair: Delete resched_cpu() from idle_balance()
        sched, time: Fix build error with 64 bit cputime_t on 32 bit systems
        sched: Improve sysbench performance by fixing spurious active migration
        sched/x86: Fix up typo in topology detection
        x86, sched: Add new topology for multi-NUMA-node CPUs
        sched/rt: Use resched_curr() in task_tick_rt()
        sched: Use rq->rd in sched_setaffinity() under RCU read lock
        sched: cleanup: Rename 'out_unlock' to 'out_free_new_mask'
        sched: Use dl_bw_of() under RCU read lock
        sched/fair: Remove duplicate code from can_migrate_task()
        sched, mips, ia64: Remove __ARCH_WANT_UNLOCKED_CTXSW
        sched: print_rq(): Don't use tasklist_lock
        sched: normalize_rt_tasks(): Don't use _irqsave for tasklist_lock, use task_rq_lock()
        sched: Fix the task-group check in tg_has_rt_tasks()
        sched/fair: Leverage the idle state info when choosing the "idlest" cpu
        sched: Let the scheduler see CPU idle states
        sched/deadline: Fix inter- exclusive cpusets migrations
        sched/deadline: Clear dl_entity params when setscheduling to different class
        sched/numa: Kill the wrong/dead TASK_DEAD check in task_numa_fault()
        ...
      faafcba3
    • Linus Torvalds's avatar
      Merge branch 'perf-watchdog-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 13ead805
      Linus Torvalds authored
      Pull watchdog fixes from Ingo Molnar:
       "Two small watchdog subsystem fixes"
      
      * 'perf-watchdog-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        watchdog: Fix print-once on enable
        watchdog: Remove unnecessary header files
      13ead805
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ebf546cc
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "Two leftover fixes from the v3.17 cycle - these will be forwarded to
        stable as well, if they prove problem-free in wider testing as well"
      
      [ Side note: the "fix perf bug in fork()" fix had also come in through
        Andrew's patch-bomb   - Linus ]
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf: Fix perf bug in fork()
        perf: Fix unclone_ctx() vs. locking
      ebf546cc
    • Linus Torvalds's avatar
      Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 9d9420f1
      Linus Torvalds authored
      Pull perf updates from Ingo Molnar:
       "Kernel side updates:
      
         - Fix and enhance poll support (Jiri Olsa)
      
         - Re-enable inheritance optimization (Jiri Olsa)
      
         - Enhance Intel memory events support (Stephane Eranian)
      
         - Refactor the Intel uncore driver to be more maintainable (Zheng
           Yan)
      
         - Enhance and fix Intel CPU and uncore PMU drivers (Peter Zijlstra,
           Andi Kleen)
      
         - [ plus various smaller fixes/cleanups ]
      
        User visible tooling updates:
      
         - Add +field argument support for --field option, so that one can add
           fields to the default list of fields to show, ie now one can just
           do:
      
               perf report --fields +pid
      
           And the pid will appear in addition to the default fields (Jiri
           Olsa)
      
         - Add +field argument support for --sort option (Jiri Olsa)
      
         - Honour -w in the report tools (report, top), allowing to specify
           the widths for the histogram entries columns (Namhyung Kim)
      
         - Properly show submicrosecond times in 'perf kvm stat' (Christian
           Borntraeger)
      
         - Add beautifier for mremap flags param in 'trace' (Alex Snast)
      
         - perf script: Allow callchains if any event samples them
      
         - Don't truncate Intel style addresses in 'annotate' (Alex Converse)
      
         - Allow profiling when kptr_restrict == 1 for non root users, kernel
           samples will just remain unresolved (Andi Kleen)
      
         - Allow configuring default options for callchains in config file
           (Namhyung Kim)
      
         - Support operations for shared futexes.  (Davidlohr Bueso)
      
         - "perf kvm stat report" improvements by Alexander Yarygin:
             -  Save pid string in opts.target.pid
             -  Enable the target.system_wide flag
             -  Unify the title bar output
      
         - [ plus lots of other fixes and small improvements.  ]
      
        Tooling infrastructure changes:
      
         - Refactor unit and scale function parameters for PMU parsing
           routines (Matt Fleming)
      
         - Improve DSO long names lookup with rbtree, resulting in great
           speedup for workloads with lots of DSOs (Waiman Long)
      
         - We were not handling POLLHUP notifications for event file
           descriptors
      
           Fix it by filtering entries in the events file descriptor array
           after poll() returns, refcounting mmaps so that when the last fd
           pointing to a perf mmap goes away we do the unmap (Arnaldo Carvalho
           de Melo)
      
         - Intel PT prep work, from Adrian Hunter, including:
             - Let a user specify a PMU event without any config terms
             - Add perf-with-kcore script
             - Let default config be defined for a PMU
             - Add perf_pmu__scan_file()
             - Add a 'perf test' for tracking with sched_switch
             - Add 'flush' callback to scripting API
      
         - Use ring buffer consume method to look like other tools (Arnaldo
           Carvalho de Melo)
      
         - hists browser (used in top and report) refactorings, getting rid of
           unused variables and reducing source code size by handling similar
           cases in a fewer functions (Namhyung Kim).
      
         - Replace thread unsafe strerror() with strerror_r() accross the
           whole tools/perf/ tree (Masami Hiramatsu)
      
         - Rename ordered_samples to ordered_events and allow setting a queue
           size for ordering events (Jiri Olsa)
      
         - [ plus lots of fixes, cleanups and other improvements ]"
      
      * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (198 commits)
        perf/x86: Tone down kernel messages when the PMU check fails in a virtual environment
        perf/x86/intel/uncore: Fix minor race in box set up
        perf record: Fix error message for --filter option not coming after tracepoint
        perf tools: Fix build breakage on arm64 targets
        perf symbols: Improve DSO long names lookup speed with rbtree
        perf symbols: Encapsulate dsos list head into struct dsos
        perf bench futex: Sanitize -q option in requeue
        perf bench futex: Support operations for shared futexes
        perf trace: Fix mmap return address truncation to 32-bit
        perf tools: Refactor unit and scale function parameters
        perf tools: Fix line number in the config file error message
        perf tools: Convert {record,top}.call-graph option to call-graph.record-mode
        perf tools: Introduce perf_callchain_config()
        perf callchain: Move some parser functions to callchain.c
        perf tools: Move callchain config from record_opts to callchain_param
        perf hists browser: Fix callchain print bug on TUI
        perf tools: Use ACCESS_ONCE() instead of volatile cast
        perf tools: Modify error code for when perf_session__new() fails
        perf tools: Fix perf record as non root with kptr_restrict == 1
        perf stat: Fix --per-core on multi socket systems
        ...
      9d9420f1
    • Linus Torvalds's avatar
      Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 6d5f0ebf
      Linus Torvalds authored
      Pull core locking updates from Ingo Molnar:
       "The main updates in this cycle were:
      
         - mutex MCS refactoring finishing touches: improve comments, refactor
           and clean up code, reduce debug data structure footprint, etc.
      
         - qrwlock finishing touches: remove old code, self-test updates.
      
         - small rwsem optimization
      
         - various smaller fixes/cleanups"
      
      * 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/lockdep: Revert qrwlock recusive stuff
        locking/rwsem: Avoid double checking before try acquiring write lock
        locking/rwsem: Move EXPORT_SYMBOL() lines to follow function definition
        locking/rwlock, x86: Delete unused asm/rwlock.h and rwlock.S
        locking/rwlock, x86: Clean up asm/spinlock*.h to remove old rwlock code
        locking/semaphore: Resolve some shadow warnings
        locking/selftest: Support queued rwlock
        locking/lockdep: Restrict the use of recursive read_lock() with qrwlock
        locking/spinlocks: Always evaluate the second argument of spin_lock_nested()
        locking/Documentation: Update locking/mutex-design.txt disadvantages
        locking/Documentation: Move locking related docs into Documentation/locking/
        locking/mutexes: Use MUTEX_SPIN_ON_OWNER when appropriate
        locking/mutexes: Refactor optimistic spinning code
        locking/mcs: Remove obsolete comment
        locking/mutexes: Document quick lock release when unlocking
        locking/mutexes: Standardize arguments in lock/unlock slowpaths
        locking: Remove deprecated smp_mb__() barriers
      6d5f0ebf
    • Linus Torvalds's avatar
      Merge branch 'locking-arch-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · dbb885fe
      Linus Torvalds authored
      Pull arch atomic cleanups from Ingo Molnar:
       "This is a series kept separate from the main locking tree, which
        cleans up and improves various details in the atomics type handling:
      
         - Remove the unused atomic_or_long() method
      
         - Consolidate and compress atomic ops implementations between
           architectures, to reduce linecount and to make it easier to add new
           ops.
      
         - Rewrite generic atomic support to only require cmpxchg() from an
           architecture - generate all other methods from that"
      
      * 'locking-arch-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (23 commits)
        locking,arch: Use ACCESS_ONCE() instead of cast to volatile in atomic_read()
        locking, mips: Fix atomics
        locking, sparc64: Fix atomics
        locking,arch: Rewrite generic atomic support
        locking,arch,xtensa: Fold atomic_ops
        locking,arch,sparc: Fold atomic_ops
        locking,arch,sh: Fold atomic_ops
        locking,arch,powerpc: Fold atomic_ops
        locking,arch,parisc: Fold atomic_ops
        locking,arch,mn10300: Fold atomic_ops
        locking,arch,mips: Fold atomic_ops
        locking,arch,metag: Fold atomic_ops
        locking,arch,m68k: Fold atomic_ops
        locking,arch,m32r: Fold atomic_ops
        locking,arch,ia64: Fold atomic_ops
        locking,arch,hexagon: Fold atomic_ops
        locking,arch,cris: Fold atomic_ops
        locking,arch,avr32: Fold atomic_ops
        locking,arch,arm64: Fold atomic_ops
        locking,arch,arm: Fold atomic_ops
        ...
      dbb885fe
    • Linus Torvalds's avatar
      Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · d6dd50e0
      Linus Torvalds authored
      Pull RCU updates from Ingo Molnar:
       "The main changes in this cycle were:
      
         - changes related to No-CBs CPUs and NO_HZ_FULL
      
         - RCU-tasks implementation
      
         - torture-test updates
      
         - miscellaneous fixes
      
         - locktorture updates
      
         - RCU documentation updates"
      
      * 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (81 commits)
        workqueue: Use cond_resched_rcu_qs macro
        workqueue: Add quiescent state between work items
        locktorture: Cleanup header usage
        locktorture: Cannot hold read and write lock
        locktorture: Fix __acquire annotation for spinlock irq
        locktorture: Support rwlocks
        rcu: Eliminate deadlock between CPU hotplug and expedited grace periods
        locktorture: Document boot/module parameters
        rcutorture: Rename rcutorture_runnable parameter
        locktorture: Add test scenario for rwsem_lock
        locktorture: Add test scenario for mutex_lock
        locktorture: Make torture scripting account for new _runnable name
        locktorture: Introduce torture context
        locktorture: Support rwsems
        locktorture: Add infrastructure for torturing read locks
        torture: Address race in module cleanup
        locktorture: Make statistics generic
        locktorture: Teach about lock debugging
        locktorture: Support mutexes
        locktorture: Add documentation
        ...
      d6dd50e0
    • Linus Torvalds's avatar
      Merge tag 'xfs-for-linus-3.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs · 5ff0b9e1
      Linus Torvalds authored
      Pull xfs update from Dave Chinner:
       "This update contains:
         - various cleanups
         - log recovery debug hooks
         - seek hole/data implementation merge
         - extent shift rework to fix collapse range bugs
         - various sparse warning fixes
         - log recovery transaction processing rework to fix use after free
           bugs
         - metadata buffer IO infrastructuer rework to ensure all buffers
           under IO have valid reference counts
         - various fixes for ondisk flags, writeback and zero range corner
           cases"
      
      * tag 'xfs-for-linus-3.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs: (56 commits)
        xfs: fix agno increment in xfs_inumbers() loop
        xfs: xfs_iflush_done checks the wrong log item callback
        xfs: flush the range before zero range conversion
        xfs: restore buffer_head unwritten bit on ioend cancel
        xfs: check for null dquot in xfs_quota_calc_throttle()
        xfs: fix crc field handling in xfs_sb_to/from_disk
        xfs: don't send null bp to xfs_trans_brelse()
        xfs: check for inode size overflow in xfs_new_eof()
        xfs: only set extent size hint when asked
        xfs: project id inheritance is a directory only flag
        xfs: kill time.h
        xfs: compat_xfs_bstat does not have forkoff
        xfs: simplify xfs_zero_remaining_bytes
        xfs: check xfs_buf_read_uncached returns correctly
        xfs: introduce xfs_buf_submit[_wait]
        xfs: kill xfs_bioerror_relse
        xfs: xfs_bioerror can die.
        xfs: kill xfs_bdstrat_cb
        xfs: rework xfs_buf_bio_endio error handling
        xfs: xfs_buf_ioend and xfs_buf_iodone_work duplicate functionality
        ...
      5ff0b9e1
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 77c688ac
      Linus Torvalds authored
      Pull vfs updates from Al Viro:
       "The big thing in this pile is Eric's unmount-on-rmdir series; we
        finally have everything we need for that.  The final piece of prereqs
        is delayed mntput() - now filesystem shutdown always happens on
        shallow stack.
      
        Other than that, we have several new primitives for iov_iter (Matt
        Wilcox, culled from his XIP-related series) pushing the conversion to
        ->read_iter()/ ->write_iter() a bit more, a bunch of fs/dcache.c
        cleanups and fixes (including the external name refcounting, which
        gives consistent behaviour of d_move() wrt procfs symlinks for long
        and short names alike) and assorted cleanups and fixes all over the
        place.
      
        This is just the first pile; there's a lot of stuff from various
        people that ought to go in this window.  Starting with
        unionmount/overlayfs mess...  ;-/"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (60 commits)
        fs/file_table.c: Update alloc_file() comment
        vfs: Deduplicate code shared by xattr system calls operating on paths
        reiserfs: remove pointless forward declaration of struct nameidata
        don't need that forward declaration of struct nameidata in dcache.h anymore
        take dname_external() into fs/dcache.c
        let path_init() failures treated the same way as subsequent link_path_walk()
        fix misuses of f_count() in ppp and netlink
        ncpfs: use list_for_each_entry() for d_subdirs walk
        vfs: move getname() from callers to do_mount()
        gfs2_atomic_open(): skip lookups on hashed dentry
        [infiniband] remove pointless assignments
        gadgetfs: saner API for gadgetfs_create_file()
        f_fs: saner API for ffs_sb_create_file()
        jfs: don't hash direct inode
        [s390] remove pointless assignment of ->f_op in vmlogrdr ->open()
        ecryptfs: ->f_op is never NULL
        android: ->f_op is never NULL
        nouveau: __iomem misannotations
        missing annotation in fs/file.c
        fs: namespace: suppress 'may be used uninitialized' warnings
        ...
      77c688ac
  3. 12 Oct, 2014 11 commits
    • Dave Chinner's avatar
      6889e783
    • Eric Sandeen's avatar
      xfs: fix agno increment in xfs_inumbers() loop · a8b1ee8b
      Eric Sandeen authored
      caused a regression in xfs_inumbers, which in turn broke
      xfsdump, causing incomplete dumps.
      
      The loop in xfs_inumbers() needs to fill the user-supplied
      buffers, and iterates via xfs_btree_increment, reading new
      ags as needed.
      
      But the first time through the loop, if xfs_btree_increment()
      succeeds, we continue, which triggers the ++agno at the bottom
      of the loop, and we skip to soon to the next ag - without
      the proper setup under next_ag to read the next ag.
      
      Fix this by removing the agno increment from the loop conditional,
      and only increment agno if we have actually hit the code under
      the next_ag: target.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarEric Sandeen <sandeen@redhat.com>
      Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
      Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
      a8b1ee8b
    • Eric Biggers's avatar
      fs/file_table.c: Update alloc_file() comment · a457606a
      Eric Biggers authored
      This comment is 5 years outdated; init_file() no longer exists.
      Signed-off-by: default avatarEric Biggers <ebiggers3@gmail.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      a457606a
    • Eric Biggers's avatar
      vfs: Deduplicate code shared by xattr system calls operating on paths · 8cc43116
      Eric Biggers authored
      The following pairs of system calls dealing with extended attributes only
      differ in their behavior on whether the symbolic link is followed (when
      the named file is a symbolic link):
      
      - setxattr() and lsetxattr()
      - getxattr() and lgetxattr()
      - listxattr() and llistxattr()
      - removexattr() and lremovexattr()
      
      Despite this, the implementations all had duplicated code, so this commit
      redirects each of the above pairs of system calls to a corresponding
      function to which different lookup flags (LOOKUP_FOLLOW or 0) are passed.
      
      For me this reduced the stripped size of xattr.o from 8824 to 8248 bytes.
      Signed-off-by: default avatarEric Biggers <ebiggers3@gmail.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      8cc43116
    • Al Viro's avatar
    • Al Viro's avatar
    • Al Viro's avatar
      take dname_external() into fs/dcache.c · 810bb172
      Al Viro authored
      never used outside and it's too low-level for legitimate uses outside
      of fs/dcache.c anyway
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      810bb172
    • Al Viro's avatar
      let path_init() failures treated the same way as subsequent link_path_walk() · 115cbfdc
      Al Viro authored
      As it is, path_lookupat() and path_mounpoint() might end up leaking struct file
      reference in some cases.
      Spotted-by: default avatarEric Biggers <ebiggers3@gmail.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      115cbfdc
    • Linus Torvalds's avatar
      Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security · 5e40d331
      Linus Torvalds authored
      Pull security subsystem updates from James Morris.
      
      Mostly ima, selinux, smack and key handling updates.
      
      * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: (65 commits)
        integrity: do zero padding of the key id
        KEYS: output last portion of fingerprint in /proc/keys
        KEYS: strip 'id:' from ca_keyid
        KEYS: use swapped SKID for performing partial matching
        KEYS: Restore partial ID matching functionality for asymmetric keys
        X.509: If available, use the raw subjKeyId to form the key description
        KEYS: handle error code encoded in pointer
        selinux: normalize audit log formatting
        selinux: cleanup error reporting in selinux_nlmsg_perm()
        KEYS: Check hex2bin()'s return when generating an asymmetric key ID
        ima: detect violations for mmaped files
        ima: fix race condition on ima_rdwr_violation_check and process_measurement
        ima: added ima_policy_flag variable
        ima: return an error code from ima_add_boot_aggregate()
        ima: provide 'ima_appraise=log' kernel option
        ima: move keyring initialization to ima_init()
        PKCS#7: Handle PKCS#7 messages that contain no X.509 certs
        PKCS#7: Better handling of unsupported crypto
        KEYS: Overhaul key identification when searching for asymmetric keys
        KEYS: Implement binary asymmetric key ID handling
        ...
      5e40d331
    • Linus Torvalds's avatar
      Merge branch 'parisc-3.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · d0ca4757
      Linus Torvalds authored
      Pull parisc fix from Helge Deller:
       "This patch intentionally breaks the ABI on PARISC Linux!
      
        It assigns new numbers to SIGSTKFLT, SIGXCPU, SIGXFSZ and SIGSYS so
        that those are below 32 and thus leaves us with 32 RT signals like
        other Linux architectures (SIGRTMIN now becomes 32 instead of 37).
      
        Even if it breaks the ABI, it doesn't seem to have any visible impact
        on existing userspace applications.  I was able to mix new kernel
        and/or glibc without impacting normal bootup.  So, even if it breaks
        the ABI, the benefits (e.g.  being able to use systemd on PARISC
        Linux) outperforms the minimal (if any) impact it gives.
      
        The patch has been discussed on the parisc kernel mailing list and the
        coresponding glibc patch will be committed by the parisc glibc
        maintainer after this patch went into 3.18.
      
        Some more background information about this patch is in the commit
        message"
      
      [ Side note: the "no regressions" rule has always been about *users*,
        not ABI's.  You can change ABI's all you like, until somebody actually
        notices.  At that point it gets reverted regardless of how good your
        reasons and excuses.
      
        And admittedly, with parisc, the distinct lack of many users makes
        that fairly unlikely anyway :^p    - Linus ]
      
      * 'parisc-3.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Reduce SIGRTMIN from 37 to 32 to behave like other Linux architectures
      d0ca4757
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v3.18-1' of... · 4ee9f611
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v3.18-1' of git://git.infradead.org/users/dvhart/linux-platform-drivers-x86
      
      Pull x86 platform driver updates from Darren Hart:
       "The following have all spent at least a few days in linux-next, most
        for more than a week.  These are mostly cleanups and error handling
        improvements with a few updates to extend existing support to newer
        hardware.
      
        Details:
         - dell-wmi: fix access out of memory
         - eeepc-laptop: cleanups, refactoring, sysfs perms, and improved
           error handling
         - intel-rst: ACPI and error handling cleanups
         - thinkpad-acpi: whitespace cleanup
         - toshiba_acpi: HCI/SCI interface update, keyboard backlight type 2
           support, new scancodes, cleanups"
      
      * tag 'platform-drivers-x86-v3.18-1' of git://git.infradead.org/users/dvhart/linux-platform-drivers-x86: (23 commits)
        toshiba_acpi: Adapt kbd_bl_timeout_store to the new kbd type
        toshiba_acpi: Change HCI/SCI functions return code type
        toshiba_acpi: Unify return codes prefix from HCI/SCI to TOS
        toshiba_acpi: Rename hci_raw to tci_raw
        dell-wmi: Fix access out of memory
        eeepc-laptop: clean up control flow in *_rfkill_notifier
        eeepc-laptop: store_cpufv: return error if set_acpi fails
        eeepc-laptop: check proper return values in get_cpufv
        eeepc-laptop: make fan1_input really read-only
        eeepc-laptop: pull out SENSOR_STORE_FUNC and SENSOR_SHOW_FUNC macros
        eeepc-laptop: tell sysfs that the disp attribute is write-only
        eeepc-laptop: pull out ACPI_STORE_FUNC and ACPI_SHOW_FUNC macros
        eeepc-laptop: use DEVICE_ATTR* to instantiate device_attributes
        eeepc-laptop: change sysfs function names to API expectations
        eeepc-laptop: clean up coding style
        eeepc-laptop: simplify parse_arg()
        intel-rst: Clean up ACPI add function
        intel-rst: Use ACPI_FAILURE() macro instead !ACPI_SUCCESS() for error checking
        x86: thinkpad_acpi.c: fixed spacing coding style issue
        toshiba_acpi: Support new keyboard backlight type
        ...
      4ee9f611