1. 16 Feb, 2016 1 commit
  2. 09 Feb, 2016 1 commit
  3. 03 Feb, 2016 4 commits
    • Dave Hansen's avatar
      x86/boot: Pass in size to early cmdline parsing · 8c051775
      Dave Hansen authored
      We will use this in a few patches to implement tests for early parsing.
      Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
      [ Aligned args properly. ]
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: fenghua.yu@intel.com
      Cc: yu-cheng.yu@intel.com
      Link: http://lkml.kernel.org/r/20151222225243.5CC47EB6@viggo.jf.intel.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      8c051775
    • Dave Hansen's avatar
      x86/boot: Simplify early command line parsing · 4de07ea4
      Dave Hansen authored
      __cmdline_find_option_bool() tries to account for both NULL-terminated
      and non-NULL-terminated strings. It keeps 'pos' to look for the end of
      the buffer and also looks for '!c' in a bunch of places to look for NULL
      termination.
      
      But, it also calls strlen(). You can't call strlen on a
      non-NULL-terminated string.
      
      If !strlen(cmdline), then cmdline[0]=='\0'. In that case, we will go in
      to the while() loop, set c='\0', hit st_wordstart, notice !c, and will
      immediately return 0.
      
      So, remove the strlen().  It is unnecessary and unsafe.
      Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: fenghua.yu@intel.com
      Cc: yu-cheng.yu@intel.com
      Link: http://lkml.kernel.org/r/20151222225241.15365E43@viggo.jf.intel.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      4de07ea4
    • Dave Hansen's avatar
      x86/boot: Fix early command-line parsing when partial word matches · abcdc1c6
      Dave Hansen authored
      cmdline_find_option_bool() keeps track of position in two strings:
      
       1. the command-line
       2. the option we are searchign for in the command-line
      
      We plow through each character in the command-line one at a time, always
      moving forward. We move forward in the option ('opptr') when we match
      characters in 'cmdline'. We reset the 'opptr' only when we go in to the
      'st_wordstart' state.
      
      But, if we fail to match an option because we see a space
      (state=st_wordcmp, *opptr='\0',c=' '), we set state='st_wordskip' and
      'break', moving to the next character. But, that move to the next
      character is the one *after* the ' '. This means that we will miss a
      'st_wordstart' state.
      
      For instance, if we have
      
        cmdline = "foo fool";
      
      and are searching for "fool", we have:
      
      	  "fool"
        opptr = ----^
      
                 "foo fool"
         c = --------^
      
      We see that 'l' != ' ', set state=st_wordskip, break, and then move 'c', so:
      
                "foo fool"
        c = ---------^
      
      and are still in state=st_wordskip. We will stay in wordskip until we
      have skipped "fool", thus missing the option we were looking for. This
      *only* happens when you have a partially- matching word followed by a
      matching one.
      
      To fix this, we always fall *into* the 'st_wordskip' state when we set
      it.
      Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: fenghua.yu@intel.com
      Cc: yu-cheng.yu@intel.com
      Link: http://lkml.kernel.org/r/20151222225239.8E1DCA58@viggo.jf.intel.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      abcdc1c6
    • Dave Hansen's avatar
      x86/boot: Fix early command-line parsing when matching at end · 02afeaae
      Dave Hansen authored
      The x86 early command line parsing in cmdline_find_option_bool() is
      buggy. If it matches a specified 'option' all the way to the end of the
      command-line, it will consider it a match.
      
      For instance,
      
        cmdline = "foo";
        cmdline_find_option_bool(cmdline, "fool");
      
      will return 1. This is particularly annoying since we have actual FPU
      options like "noxsave" and "noxsaves" So, command-line "foo bar noxsave"
      will match *BOTH* a "noxsave" and "noxsaves". (This turns out not to be
      an actual problem because "noxsave" implies "noxsaves", but it's still
      confusing.)
      
      To fix this, we simplify the code and stop tracking 'len'. 'len'
      was trying to indicate either the NULL terminator *OR* the end of a
      non-NULL-terminated command line at 'COMMAND_LINE_SIZE'. But, each of the
      three states is *already* checking 'cmdline' for a NULL terminator.
      
      We _only_ need to check if we have overrun 'COMMAND_LINE_SIZE', and that
      we can do without keeping 'len' around.
      
      Also add some commends to clarify what is going on.
      Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: fenghua.yu@intel.com
      Cc: yu-cheng.yu@intel.com
      Link: http://lkml.kernel.org/r/20151222225238.9AEB560C@viggo.jf.intel.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      02afeaae
  4. 30 Jan, 2016 2 commits
  5. 29 Jan, 2016 1 commit
    • Linus Torvalds's avatar
      Merge tag 'trace-v4.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 26cd8367
      Linus Torvalds authored
      Pull minor tracing fixes from Steven Rostedt:
       "This includes three minor fixes, mostly due to cut-and-paste issues.
      
        The first is a cut and paste issue that changed the amount of stack to
        skip when tracing a stack dump from 0 to 6, which basically made the
        stack disappear for small stack traces.
      
        The second fix is just removing an unused field in a struct that is no
        longer used, and currently just wastes space.
      
        The third is another cut-and-paste fix that had a tracepoint recording
        the wrong field (it was recording the previous field a second time)"
      
      * tag 'trace-v4.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing/dma-buf/fence: Fix timeline str value on fence_annotate_wait_on
        ftrace: Remove unused nr_trampolines var
        tracing: Fix stacktrace skip depth in trace_buffer_unlock_commit_regs()
      26cd8367
  6. 27 Jan, 2016 4 commits
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 03c21cb7
      Linus Torvalds authored
      Pull virtio tests and fixes from Michael Tsirkin:
       "This fixes existing tests broken by barrier rework, and adds some new
        tests.
      
        Plus, there's a fix for an old bug in virtio-pci"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        tools/virtio: add ringtest utilities
        sh: fix smp_store_mb for !SMP
        tools/virtio: use virt_xxx barriers
        virtio_pci: fix use after free on release
      03c21cb7
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 075356c1
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "The main thing here is to get us booting under qemu again after it
        turned out that not all of the PMU registers are emulated there,
        causing us to die early in boot.
      
         - Ensure we don't access PMU registers of the PMU is not implemented
           (fixes booting under QEMU)
      
         - Fix BUG_ON triggered during module loading with DEBUG_SET_MODULE_RONX
      
         - Ensure the kasan zero page is read-only
      
         - Hide __efistub_ symbol aliases from kallsyms, since they otherwise
           confuse the backtrace code
      
         - Ensure !PTE_WRITE kernel ptes are marked as read-only
      
         - defconfig updates based on requests and patches on the list
      
         - Other minor fixes (typos, build system)"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: mm: avoid calling apply_to_page_range on empty range
        arm64: defconfig: updates for 4.5
        arm64: errata: Add -mpc-relative-literal-loads to build flags
        Eliminate the .eh_frame sections from the aarch64 vmlinux and kernel modules
        arm64: Fix an enum typo in mm/dump.c
        arm64: Honour !PTE_WRITE in set_pte_at() for kernel mappings
        arm64: kernel: fix architected PMU registers unconditional access
        arm64: kasan: ensure that the KASAN zero page is mapped read-only
        arm64: hide __efistub_ aliases from kallsyms
      075356c1
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · f0ce3ff4
      Linus Torvalds authored
      Pull KVM fixes from Paolo Bonzini:
       "s390 and POWER bug fixes, plus enabling the KVM-VFIO interface on
        s390"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM doc: Fix KVM_SMI chapter number
        KVM: s390: fix memory overwrites when vx is disabled
        KVM: s390: Enable the KVM-VFIO device
        KVM: s390: fix guest fprs memory leak
        KVM: PPC: Fix ONE_REG AltiVec support
        KVM: PPC: Increase memslots to 512
        KVM: PPC: Book3S PR: Remove unused variable 'vcpu_book3s'
        KVM: PPC: Fix emulation of H_SET_DABR/X on POWER8
        KVM: PPC: Book3S HV: Handle unexpected traps in guest entry/exit code better
      f0ce3ff4
    • Antonio Ospite's avatar
      mailmap: redirect inactive address <ao2@amarulasolutions.com> · 119ae9b7
      Antonio Ospite authored
      The email address <ao2@amarulasolutions.com> is not active anymore, use
      Antonio's personal email address <ao2@ao2.it> in case someone wants to
      get in touch for the code wrote for Amarula Solutions.
      Signed-off-by: default avatarAntonio Ospite <ao2@ao2.it>
      Cc: Michael Trimarchi <michael@amarulasolutions.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      119ae9b7
  7. 26 Jan, 2016 13 commits
  8. 25 Jan, 2016 6 commits
  9. 24 Jan, 2016 8 commits
    • Linus Torvalds's avatar
      Linux 4.5-rc1 · 92e963f5
      Linus Torvalds authored
      92e963f5
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · e2464688
      Linus Torvalds authored
      Pull MIPS updates from Ralf Baechle:
       "This is the main pull request for MIPS for 4.5 plus some 4.4 fixes.
      
        The executive summary:
      
         - ATH79 platform improvments, use DT bindings for the ATH79 USB PHY.
         - Avoid useless rebuilds for zboot.
         - jz4780: Add NEMC, BCH and NAND device tree nodes
         - Initial support for the MicroChip's DT platform.  As all the device
           drivers are missing this is still of limited use.
         - Some Loongson3 cleanups.
         - The unavoidable whitespace polishing.
         - Reduce clock skew when synchronizing the CPU cycle counters on CPU
           startup.
         - Add MIPS R6 fixes.
         - Lots of cleanups across arch/mips as fallout from KVM.
         - Lots of minor fixes and changes for IEEE 754-2008 support to the
           FPU emulator / fp-assist software.
         - Minor Ralink, BCM47xx and bcm963xx platform support improvments.
         - Support SMP on BCM63168"
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (84 commits)
        MIPS: zboot: Add support for serial debug using the PROM
        MIPS: zboot: Avoid useless rebuilds
        MIPS: BMIPS: Enable ARCH_WANT_OPTIONAL_GPIOLIB
        MIPS: bcm63xx: nvram: Remove unused bcm63xx_nvram_get_psi_size() function
        MIPS: bcm963xx: Update bcm_tag field image_sequence
        MIPS: bcm963xx: Move extended flash address to bcm_tag header file
        MIPS: bcm963xx: Move Broadcom BCM963xx image tag data structure
        MIPS: bcm63xx: nvram: Use nvram structure definition from header file
        MIPS: bcm963xx: Add Broadcom BCM963xx board nvram data structure
        MAINTAINERS: Add KVM for MIPS entry
        MIPS: KVM: Add missing newline to kvm_err()
        MIPS: Move KVM specific opcodes into asm/inst.h
        MIPS: KVM: Use cacheops.h definitions
        MIPS: Break down cacheops.h definitions
        MIPS: Use EXCCODE_ constants with set_except_vector()
        MIPS: Update trap codes
        MIPS: Move Cause.ExcCode trap codes to mipsregs.h
        MIPS: KVM: Make kvm_mips_{init,exit}() static
        MIPS: KVM: Refactor added offsetof()s
        MIPS: KVM: Convert EXPORT_SYMBOL to _GPL
        ...
      e2464688
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v4.5-2' of... · e1c10879
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v4.5-2' of git://git.infradead.org/users/dvhart/linux-platform-drivers-x86
      
      Pull x86 platform driver updates from Darren Hart:
       "Emergency travel prevented me from completing my final testing on this
        until today.  Nothing here that couldn't wait until RC1 fixes, but I
        thought it best to get it out sooner rather than later as it does
        contain a build warning fix.
      
        Summary:
      
        A build warning fix, MAINTAINERS cleanup, and a new DMI quirk:
      
        ideapad-laptop:
         - Add Lenovo Yoga 700 to no_hw_rfkill dmi list
      
        MAINTAINERS:
         - Combine multiple telemetry entries
      
        intel_telemetry_debugfs:
         - Fix unused warnings in telemetry debugfs"
      
      * tag 'platform-drivers-x86-v4.5-2' of git://git.infradead.org/users/dvhart/linux-platform-drivers-x86:
        ideapad-laptop: Add Lenovo Yoga 700 to no_hw_rfkill dmi list
        MAINTAINERS: Combine multiple telemetry entries
        intel_telemetry_debugfs: Fix unused warnings in telemetry debugfs
      e1c10879
    • Linus Torvalds's avatar
      Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux · 81f05fee
      Linus Torvalds authored
      Pull thermal management updates from Zhang Rui:
       "The top merge commit was re-generated yesterday because two topic
        branches were dropped from this pull request in the last minute due to
        some unaddressed comments.  All the other material has been in
        linux-next for quite a while.
      
        Specifics:
      
         - Enhance thermal core to handle unexpected device cooling states
           after fresh boot and system resume.  From Zhang Rui and Chen Yu.
      
         - Several fixes and cleanups on Rockchip and RCAR thermal drivers.
           From Caesar Wang and Kuninori Morimoto.
      
         - Add Broxton support for Intel processor thermal reporting device
           driver.  From Amy Wiles"
      
      * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux:
        thermal: trip_point_temp_store() calls thermal_zone_device_update()
        thermal: rcar: rcar_thermal_get_temp() return error if strange temp
        thermal: rcar: check irq possibility in rcar_thermal_irq_xxx()
        thermal: rcar: check every rcar_thermal_update_temp() return value
        thermal: rcar: move rcar_thermal_dt_ids to upside
        thermal: rockchip: Support the RK3399 SoCs in thermal driver
        thermal: rockchip: Support the RK3228 SoCs in thermal driver
        dt-bindings: rockchip-thermal: Support the RK3228/RK3399 SoCs compatible
        thermal: rockchip: fix a trivial typo
        Thermal: Enable Broxton SoC thermal reporting device
        thermal: constify pch_dev_ops structure
        Thermal: do thermal zone update after a cooling device registered
        Thermal: handle thermal zone device properly during system sleep
        Thermal: initialize thermal zone device correctly
      81f05fee
    • Linus Torvalds's avatar
      Merge tag 'for-linus-4.5-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs · c52cb431
      Linus Torvalds authored
      Pull 9p updates from Eric Van Hensbergen:
       "Sorry for the last minute pull request, there's was a change that
        didn't get pulled into for-next until two weeks ago and I wanted to
        give it some bake time.
      
        Summary:
      
        Rework and error handling fixes, primarily in the fscatch and fd
        transports"
      
      * tag 'for-linus-4.5-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
        fs/9p: use fscache mutex rather than spinlock
        9p: trans_fd, bail out if recv fcall if missing
        9p: trans_fd, read rework to use p9_parse_header
        net/9p: Add device name details on error
      c52cb431
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client · 00e3f5cc
      Linus Torvalds authored
      Pull Ceph updates from Sage Weil:
       "The two main changes are aio support in CephFS, and a series that
        fixes several issues in the authentication key timeout/renewal code.
      
        On top of that are a variety of cleanups and minor bug fixes"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client:
        libceph: remove outdated comment
        libceph: kill off ceph_x_ticket_handler::validity
        libceph: invalidate AUTH in addition to a service ticket
        libceph: fix authorizer invalidation, take 2
        libceph: clear messenger auth_retry flag if we fault
        libceph: fix ceph_msg_revoke()
        libceph: use list_for_each_entry_safe
        ceph: use i_size_{read,write} to get/set i_size
        ceph: re-send AIO write request when getting -EOLDSNAP error
        ceph: Asynchronous IO support
        ceph: Avoid to propagate the invalid page point
        ceph: fix double page_unlock() in page_mkwrite()
        rbd: delete an unnecessary check before rbd_dev_destroy()
        libceph: use list_next_entry instead of list_entry_next
        ceph: ceph_frag_contains_value can be boolean
        ceph: remove unused functions in ceph_frag.h
      00e3f5cc
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6 · 772950ed
      Linus Torvalds authored
      Pull SMB3 fixes from Steve French:
       "A collection of CIFS/SMB3 fixes.
      
        It includes a couple bug fixes, a few for improved debugging of
        cifs.ko and some improvements to the way cifs does key generation.
      
        I do have some additional bug fixes I expect in the next week or two
        (to address a problem found by xfstest, and some fixes for SMB3.11
        dialect, and a couple patches that just came in yesterday that I am
        reviewing)"
      
      * 'for-next' of git://git.samba.org/sfrench/cifs-2.6:
        cifs_dbg() outputs an uninitialized buffer in cifs_readdir()
        cifs: fix race between call_async() and reconnect()
        Prepare for encryption support (first part). Add decryption and encryption key generation. Thanks to Metze for helping with this.
        cifs: Allow using O_DIRECT with cache=loose
        cifs: Make echo interval tunable
        cifs: Check uniqueid for SMB2+ and return -ESTALE if necessary
        Print IP address of unresponsive server
        cifs: Ratelimit kernel log messages
      772950ed
    • Josh Boyer's avatar
      ideapad-laptop: Add Lenovo Yoga 700 to no_hw_rfkill dmi list · 6b31de3e
      Josh Boyer authored
      Like the Yoga 900 models the Lenovo Yoga 700 does not have a
      hw rfkill switch, and trying to read the hw rfkill switch through the
      ideapad module causes it to always reported blocking breaking wifi.
      
      This commit adds the Lenovo Yoga 700 to the no_hw_rfkill dmi list, fixing
      the wifi breakage.
      
      BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1295272
      Tested-by: <dinyar.rabady+spam@gmail.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarJosh Boyer <jwboyer@fedoraproject.org>
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      6b31de3e