Skip to content
  1. Dec 18, 2014
  2. Dec 15, 2014
    • Long Li's avatar
      storvsc: ring buffer failures may result in I/O freeze · e86fb5e8
      Long Li authored
      
      
      When ring buffer returns an error indicating retry, storvsc may not
      return a proper error code to SCSI when bounce buffer is not used.
      This has introduced I/O freeze on RAID running atop storvsc devices.
      This patch fixes it by always returning a proper error code.
      
      Signed-off-by: default avatarLong Li <longli@microsoft.com>
      Reviewed-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      cc: stable@vger.kernel.org
      e86fb5e8
    • Brian King's avatar
      ipr: set scsi_level correctly for disk arrays · 60654e25
      Brian King authored
      
      
      Set the scsi_level correctly for disk arrays such
      that things like the rotational field get set
      properly by sd.c.
      
      Signed-off-by: default avatarBrian King <brking@linux.vnet.ibm.com>
      Reviewed-by: default avatarWen <Xiong&lt;wenxiong@linux.vnet.ibm.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      60654e25
    • Brian King's avatar
      ipr: add support for async scanning to speed up boot · f688f96d
      Brian King authored
      
      
      Switch device scanning logic in the ipr driver to use
      the async scan API. This speeds up boot times, particularly
      on large systems.
      
      Signed-off-by: default avatarBrian King <brking@linux.vnet.ibm.com>
      Reviewed-by: default avatarWen <Xiong&lt;wenxiong@linux.vnet.ibm.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      f688f96d
    • Ewan D. Milne's avatar
      scsi_debug: fix missing "break;" in SDEBUG_UA_CAPACITY_CHANGED case · f49accf1
      Ewan D. Milne authored
      
      
      This eliminates a superfluous log message when the capacity is changed:
      
        "check_readiness: unexpected unit attention code=3"
      
      Signed-off-by: default avatarEwan D. Milne <emilne@redhat.com>
      Acked-by: default avatarDouglas Gilbert <dgilbert@interlog.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      f49accf1
    • Ewan D. Milne's avatar
      scsi_debug: take sdebug_host_list_lock when changing capacity · 4bc6b634
      Ewan D. Milne authored
      
      
      All other traversals of the sdebug_host_list take the lock.
      
      Signed-off-by: default avatarEwan D. Milne <emilne@redhat.com>
      Acked-by: default avatarDouglas Gilbert <dgilbert@interlog.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      4bc6b634
    • Douglas Gilbert's avatar
      scsi_debug: improve driver description in Kconfig · 6d6f3807
      Douglas Gilbert authored
      
      
      Try to give a more accurate driver description and some extra
      information in less lines.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarDouglas Gilbert <dgilbert@interlog.com>
      Reviewed-by: default avatarEwan D. Milne <emilne@redhat.com>
      6d6f3807
    • Douglas Gilbert's avatar
      scsi_debug: fix compare and write errors · d467d31f
      Douglas Gilbert authored
      
      
      Kernel build tools pointed out a memory leak so that has been
      fixed and its error paths strengthened with a goto. Testing
      showed compare and write was only working for lba=0; correcting
      the length of the LBA field fixed that.
      
      Signed-off-by: default avatarDouglas Gilbert <dgilbert@interlog.com>
      Reviewed-by: default avatarEwan D. Milne <emilne@redhat.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      d467d31f
    • Laurence Oberman's avatar
      qla2xxx: fix race in handling rport deletion during recovery causes panic · b9f85b1d
      Laurence Oberman authored
      
      
      When we have an rport disconnect we race during rport deletion and
      re-connection resulting in a panic.  When we do this, we call
      fc_remote_port_del() just before we do the calls to re-establish the
      session with the FC transport with fc_remote_port_add() and then
      fc_remote_port_rolechg().
      
      If we remove the call to fc_remote_port_del() before re-establishing
      the connection this prevents the race.  This patch has resolved this
      for multiple customers via test kernels.
      
      Suggested by Chad Dupuis, implemented and tested by Laurence Oberman.
      
      Signed-off-by: default avatarLaurence Oberman <loberman@redhat.com>
      Acked-by: default avatarChad Dupuis <chad.dupuis@qlogic.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      b9f85b1d
    • Martin K. Petersen's avatar
      scsi: blacklist RSOC for Microsoft iSCSI target devices · 198a956a
      Martin K. Petersen authored
      
      
      The Microsoft iSCSI target does not support REPORT SUPPORTED OPERATION
      CODES. Blacklist these devices so we don't attempt to send the command.
      
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      Tested-by: default avatarMike Christie <michaelc@cs.wisc.edu>
      Reported-by: default avatar <jazz@deti74.ru>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Cc: stable@vger.kernel.org # v3.10+
      198a956a
    • Tony Battersby's avatar
      scsi: fix random memory corruption with scsi-mq + T10 PI · 120bb3e1
      Tony Battersby authored
      
      
      This fixes random memory corruption triggered when all three of the
      following are true:
      
      * scsi-mq enabled
      * T10 Protection Information (DIF) enabled
      * SCSI host with sg_tablesize > SCSI_MAX_SG_SEGMENTS (128)
      
      The symptoms of this bug are unpredictable memory corruption, BUG()s,
      oopses, lockups, etc., any of which may appear to be completely
      unrelated to the root cause.
      
      Cc: <stable@vger.kernel.org> # 3.17.x, 3.18.x
      Signed-off-by: default avatarTony Battersby <tonyb@cybernetics.com>
      Reviewed-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      120bb3e1
    • Linus Torvalds's avatar
      Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security · 67e2c388
      Linus Torvalds authored
      Pull security layer updates from James Morris:
       "In terms of changes, there's general maintenance to the Smack,
        SELinux, and integrity code.
      
        The IMA code adds a new kconfig option, IMA_APPRAISE_SIGNED_INIT,
        which allows IMA appraisal to require signatures.  Support for reading
        keys from rootfs before init is call is also added"
      
      * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: (23 commits)
        selinux: Remove security_ops extern
        security: smack: fix out-of-bounds access in smk_parse_smack()
        VFS: refactor vfs_read()
        ima: require signature based appraisal
        integrity: provide a hook to load keys when rootfs is ready
        ima: load x509 certificate from the kernel
        integrity: provide a function to load x509 certificate from the kernel
        integrity: define a new function integrity_read_file()
        Security: smack: replace kzalloc with kmem_cache for inode_smack
        Smack: Lock mode...
      67e2c388
    • Linus Torvalds's avatar
      Merge tag 'char-misc-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 6ae840e7
      Linus Torvalds authored
      Pull char/misc driver updates from Greg KH:
       "Here's the big char/misc driver update for 3.19-rc1
      
        Lots of little things all over the place in different drivers, and a
        new subsystem, "coresight" has been added.  Full details are in the
        shortlog"
      
      * tag 'char-misc-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (73 commits)
        parport: parport_pc, do not remove parent devices early
        spmi: Remove shutdown/suspend/resume kernel-doc
        carma-fpga-program: drop videobuf dependency
        carma-fpga: drop videobuf dependency
        carma-fpga-program.c: fix compile errors
        i8k: Fix temperature bug handling in i8k_get_temp()
        cxl: Name interrupts in /proc/interrupt
        CXL: Return error to PSL if IRQ demultiplexing fails & print clearer warning
        coresight-replicator: remove .owner field for driver
        coresight: fixed comments in coresight.h
        coresight: fix typo in comment in coresight-priv.h
        coresight: bindings for coresight drivers
        coresight: Adding ABI documentation
        w1: support auto-load of w1_bq27000 module.
        w1: avoid potential u16 overflow
        cn: verify msg->len before making callback
        mei: export fw status registers through sysfs
        mei: read and print all six FW status registers
        mei: txe: add cherrytrail device id
        mei: kill cached host and me csr values
        ...
      6ae840e7
    • Linus Torvalds's avatar
      Merge tag 'driver-core-3.19-rc1' of... · e6b5be2b
      Linus Torvalds authored
      Merge tag 'driver-core-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core update from Greg KH:
       "Here's the set of driver core patches for 3.19-rc1.
      
        They are dominated by the removal of the .owner field in platform
        drivers.  They touch a lot of files, but they are "simple" changes,
        just removing a line in a structure.
      
        Other than that, a few minor driver core and debugfs changes.  There
        are some ath9k patches coming in through this tree that have been
        acked by the wireless maintainers as they relied on the debugfs
        changes.
      
        Everything has been in linux-next for a while"
      
      * tag 'driver-core-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (324 commits)
        Revert "ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries"
        fs: debugfs: add forward declaration for struct device type
        firmware class: Deletion of an unnecessary check before the function call "vunmap"
        firmware loader: fix hung task warning dump
        devcoredump: provide a one-way disable function
        device: Add dev_<level>_once variants
        ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries
        ath: use seq_file api for ath9k debugfs files
        debugfs: add helper function to create device related seq_file
        drivers/base: cacheinfo: remove noisy error boot message
        Revert "core: platform: add warning if driver has no owner"
        drivers: base: support cpu cache information interface to userspace via sysfs
        drivers: base: add cpu_device_create to support per-cpu devices
        topology: replace custom attribute macros with standard DEVICE_ATTR*
        cpumask: factor out show_cpumap into separate helper function
        driver core: Fix unbalanced device reference in drivers_probe
        driver core: fix race with userland in device_add()
        sysfs/kernfs: make read requests on pre-alloc files use the buffer.
        sysfs/kernfs: allow attributes to request write buffer be pre-allocated.
        fs: sysfs: return EGBIG on write if offset is larger than file size
        ...
      e6b5be2b
    • Linus Torvalds's avatar
      Merge tag 'tty-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 37da7bbb
      Linus Torvalds authored
      Pull tty/serial driver updates from Greg KH:
       "Here's the big tty/serial driver update for 3.19-rc1.
      
        There are a number of TTY core changes/fixes in here from Peter Hurley
        that have all been teted in linux-next for a long time now.  There are
        also the normal serial driver updates as well, full details in the
        changelog below"
      
      * tag 'tty-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (219 commits)
        serial: pxa: hold port.lock when reporting modem line changes
        tty-hvsi_lib: Deletion of an unnecessary check before the function call "tty_kref_put"
        tty: Deletion of unnecessary checks before two function calls
        n_tty: Fix read_buf race condition, increment read_head after pushing data
        serial: of-serial: add PM suspend/resume support
        Revert "serial: of-serial: add PM suspend/resume support"
        Revert "serial: of-serial: fix up PM ops on no_console_suspend and port type"
        serial: 8250: don't attempt a trylock if in sysrq
        serial: core: Add big-endian iotype
        serial: samsung: use port->fifosize instead of hardcoded values
        serial: samsung: prefer to use fifosize from driver data
        serial: samsung: fix style problems
        serial: samsung: wait for transfer completion before clock disable
        serial: icom: fix error return code
        serial: tegra: clean up tty-flag assignments
        serial: Fix io address assign flow with Fintek PCI-to-UART Product
        serial: mxs-auart: fix tx_empty against shift register
        serial: mxs-auart: fix gpio change detection on interrupt
        serial: mxs-auart: Fix mxs_auart_set_ldisc()
        serial: 8250_dw: Use 64-bit access for OCTEON.
        ...
      37da7bbb
    • Linus Torvalds's avatar
      Merge tag 'usb-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · e7cf773d
      Linus Torvalds authored
      Pull USB updates from Greg KH:
       "Here's the big set of USB and PHY patches for 3.19-rc1.
      
        The normal churn in the USB gadget area is in here, as well as xhci
        and other individual USB driver updates.  The PHY tree is also in
        here, as there were dependancies on the USB tree.
      
        All of these have been in linux-next"
      
      * tag 'usb-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (351 commits)
        arm: omap3: twl: remove usb phy init data
        usbip: fix error handling in stub_probe()
        usb: gadget: udc: missing curly braces
        USB: mos7720: delete some unneeded code
        wusb: replace memset by memzero_explicit
        usbip: remove unneeded structure
        usb: xhci: fix comment for PORT_DEV_REMOVE
        xhci: don't use the same variable for stopped and halted rings current TD
        xhci: clear extra bits from slot context when setting max exit latency
        xhci: cleanup finish_td function
        USB: adutux: NULL dereferences on dis...
      e7cf773d
    • Linus Torvalds's avatar
      Merge tag 'squashfs-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-next · 7a02d089
      Linus Torvalds authored
      Pull squashfs update from Phillip Lougher:
       "These patches optionally add LZ4 compression support to Squashfs.
      
        LZ4 is a lightweight compression algorithm which can be used on
        embedded systems to reduce CPU and memory overhead (in comparison to
        the standard zlib compression).
      
        These patches add the wrapper code to allow Squashfs to use the
        existing LZ4 decompression code, and the necessary configuration
        option"
      
      * tag 'squashfs-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-next:
        Squashfs: Add LZ4 compression configuration option
        Squashfs: add LZ4 compression support
      7a02d089
    • Linus Torvalds's avatar
      Merge tag 'gpio-v3.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio · 980f3c34
      Linus Torvalds authored
      Pull take two of the GPIO updates:
       "Same stuff as last time, now with a fixup patch for the previous
        compile error plus I ran a few extra rounds of compile-testing.
      
        This is the bulk of GPIO changes for the v3.19 series:
      
         - A new API that allows setting more than one GPIO at the time.  This
           is implemented for the new descriptor-based API only and makes it
           possible to e.g. toggle a clock and data line at the same time, if
           the hardware can do this with a single register write.  Both
           consumers and drivers need new calls, and the core will fall back
           to driving individual lines where needed.  Implemented for the
           MPC8xxx driver initially
      
         - Patched the mdio-mux-gpio and the serial mctrl driver that drives
           modems to use the new multiple-setting API to set several signals
           simultaneously
      
         - Get rid of the global GPIO descriptor array, and instead allocate
           descriptor...
      980f3c34
    • Linus Torvalds's avatar
      Merge git://git.kvack.org/~bcrl/aio-next · 7d22286f
      Linus Torvalds authored
      Pull aio updates from Benjamin LaHaise.
      
      * git://git.kvack.org/~bcrl/aio-next:
        aio: Skip timer for io_getevents if timeout=0
        aio: Make it possible to remap aio ring
      7d22286f
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 96895199
      Linus Torvalds authored
      Pull i2c updates from Wolfram Sang:
       "For 3.19, the I2C subsystem has to offer special candy this time.
        Right in time for Christmas :)
      
         - I2C slave framework: finally, a generic mechanism for Linux being
           an I2C slave (if the bus driver supports that).  Docs are still
           missing but will come later this cycle, the code is good enough to
           go.
         - I2C muxes represent their topology in sysfs much more detailed.
           This will help users to navigate around much easier.
         - irq population of i2c clients is now done at probe time, not device
           creation time, to have better support for deferred probing.
         - new drivers for Imagination SCB, Amlogic Meson
         - DMA support added for Freescale IMX, Renesas SHMobile
         - slightly bigger driver updates to OMAP, i801, AT91, and rk3x
           (mostly quirk handling, timing updates, and using better kernel
           interfaces)
         - eeprom driver can now write with byte-access (very slow, but OK to
           have)
         - and the bunch of smaller fixes, cleanups, ID updates..."
      
      * 'i2c/for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (56 commits)
        i2c: sh_mobile: remove unneeded DMA mask
        i2c: rcar: add slave support
        i2c: slave-eeprom: add eeprom simulator driver
        i2c: core changes for slave support
        MAINTAINERS: add I2C dt bindings also to I2C realm
        i2c: designware: Fix falling time bindings doc
        i2c: davinci: switch to use platform_get_irq
        Documentation: i2c: Use PM ops instead of legacy suspend/resume
        i2c: sh_mobile: optimize irq entry
        i2c: pxa: add support for SCCB devices
        omap: i2c: don't check bus state IP rev3.3 and earlier
        i2c: s3c2410: Handle i2c sys_cfg register in i2c driver
        i2c: rk3x: add Kconfig dependency on COMMON_CLK
        i2c: omap: add notes related to i2c multimaster mode
        i2c: omap: don't reset controller if Arbitration Lost detected
        i2c: omap: implement workaround for handling invalid BB-bit values
        i2c: omap: cleanup register definitions
        i2c: rk3x: handle dynamic clock rate changes correctly
        i2c: at91: enable probe deferring on dma channel request
        i2c: at91: remove legacy DMA support
        ...
      96895199
    • Linus Torvalds's avatar
      Merge tag 'md/3.19' of git://neil.brown.name/md · 8fd9589c
      Linus Torvalds authored
      Pull md updates from Neil Brown:
       "Three fixes for md.
      
         I did have a largish set of locking changes queued, but late testing
        showed they weren't quite as stable as I thought and while I fixed
        what I found, I decided it safer to delay them a release ...
        particularly as I'll be AFK for a few weeks.  So expect a larger batch
        next time :-)"
      
      * tag 'md/3.19' of git://neil.brown.name/md:
        md: Check MD_RECOVERY_RUNNING as well as ->sync_thread.
        md: fix semicolon.cocci warnings
        md/raid5: fetch_block must fetch all the blocks handle_stripe_dirtying wants.
      8fd9589c
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 536e89ee
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
       "Misc fixes (mainly Andy's TLS fixes), plus a cleanup"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/tls: Disallow unusual TLS segments
        x86/tls: Validate TLS entries to protect espfix
        MAINTAINERS: Add me as x86 VDSO submaintainer
        x86/asm: Unify segment selector defines
        x86/asm: Guard against building the 32/64-bit versions of the asm-offsets*.c file directly
        x86_64, switch_to(): Load TLS descriptors before switching DS and ES
        x86/mm: Use min() instead of min_t() in the e820 printout code
        x86/mm: Fix zone ranges boot printout
        x86/doc: Update documentation after file shuffling
      536e89ee
  3. Dec 14, 2014
    • Andy Lutomirski's avatar
      x86/tls: Disallow unusual TLS segments · 0e58af4e
      Andy Lutomirski authored
      
      
      Users have no business installing custom code segments into the
      GDT, and segments that are not present but are otherwise valid
      are a historical source of interesting attacks.
      
      For completeness, block attempts to set the L bit.  (Prior to
      this patch, the L bit would have been silently dropped.)
      
      This is an ABI break.  I've checked glibc, musl, and Wine, and
      none of them look like they'll have any trouble.
      
      Note to stable maintainers: this is a hardening patch that fixes
      no known bugs.  Given the possibility of ABI issues, this
      probably shouldn't be backported quickly.
      
      Signed-off-by: default avatarAndy Lutomirski <luto@amacapital.net>
      Acked-by: default avatarH. Peter Anvin <hpa@zytor.com>
      Cc: stable@vger.kernel.org # optional
      Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: security@kernel.org <security@kernel.org>
      Cc: Willy Tarreau <w@1wt.eu>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      0e58af4e
    • Andy Lutomirski's avatar
      x86/tls: Validate TLS entries to protect espfix · 41bdc785
      Andy Lutomirski authored
      
      
      Installing a 16-bit RW data segment into the GDT defeats espfix.
      AFAICT this will not affect glibc, Wine, or dosemu at all.
      
      Signed-off-by: default avatarAndy Lutomirski <luto@amacapital.net>
      Acked-by: default avatarH. Peter Anvin <hpa@zytor.com>
      Cc: stable@vger.kernel.org
      Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: security@kernel.org <security@kernel.org>
      Cc: Willy Tarreau <w@1wt.eu>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      41bdc785
    • Andy Lutomirski's avatar
    • Fam Zheng's avatar
      aio: Skip timer for io_getevents if timeout=0 · 5f785de5
      Fam Zheng authored
      
      
      In this case, it is basically a polling. Let's not involve timer at all
      because that would hurt performance for application event loops.
      
      In an arbitrary test I've done, io_getevents syscall elapsed time
      reduces from 50000+ nanoseconds to a few hundereds.
      
      Signed-off-by: default avatarFam Zheng <famz@redhat.com>
      Signed-off-by: default avatarBenjamin LaHaise <bcrl@kvack.org>
      5f785de5
    • Pavel Emelyanov's avatar
      aio: Make it possible to remap aio ring · e4a0d3e7
      Pavel Emelyanov authored
      
      
      There are actually two issues this patch addresses. Let me start with
      the one I tried to solve in the beginning.
      
      So, in the checkpoint-restore project (criu) we try to dump tasks'
      state and restore one back exactly as it was. One of the tasks' state
      bits is rings set up with io_setup() call. There's (almost) no problems
      in dumping them, there's a problem restoring them -- if I dump a task
      with aio ring originally mapped at address A, I want to restore one
      back at exactly the same address A. Unfortunately, the io_setup() does
      not allow for that -- it mmaps the ring at whatever place mm finds
      appropriate (it calls do_mmap_pgoff() with zero address and without
      the MAP_FIXED flag).
      
      To make restore possible I'm going to mremap() the freshly created ring
      into the address A (under which it was seen before dump). The problem is
      that the ring's virtual address is passed back to the user-space as the
      context ID and this ID is then used as search key by all the other io_foo()
      calls. Reworking this ID to be just some integer doesn't seem to work, as
      this value is already used by libaio as a pointer using which this library
      accesses memory for aio meta-data.
      
      So, to make restore work we need to make sure that
      
      a) ring is mapped at desired virtual address
      b) kioctx->user_id matches this value
      
      Having said that, the patch makes mremap() on aio region update the
      kioctx's user_id and mmap_base values.
      
      Here appears the 2nd issue I mentioned in the beginning of this mail.
      If (regardless of the C/R dances I do) someone creates an io context
      with io_setup(), then mremap()-s the ring and then destroys the context,
      the kill_ioctx() routine will call munmap() on wrong (old) address.
      This will result in a) aio ring remaining in memory and b) some other
      vma get unexpectedly unmapped.
      
      What do you think?
      
      Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
      Acked-by: default avatarDmitry Monakhov <dmonakhov@openvz.org>
      Signed-off-by: default avatarBenjamin LaHaise <bcrl@kvack.org>
      e4a0d3e7
    • Linus Torvalds's avatar
      Merge branch 'for-3.19/drivers' of git://git.kernel.dk/linux-block · 9ea18f8c
      Linus Torvalds authored
      Pull block layer driver updates from Jens Axboe:
      
       - NVMe updates:
              - The blk-mq conversion from Matias (and others)
      
              - A stack of NVMe bug fixes from the nvme tree, mostly from Keith.
      
              - Various bug fixes from me, fixing issues in both the blk-mq
                conversion and generic bugs.
      
              - Abort and CPU online fix from Sam.
      
              - Hot add/remove fix from Indraneel.
      
       - A couple of drbd fixes from the drbd team (Andreas, Lars, Philipp)
      
       - With the generic IO stat accounting from 3.19/core, converting md,
         bcache, and rsxx to use those.  From Gu Zheng.
      
       - Boundary check for queue/irq mode for null_blk from Matias.  Fixes
         cases where invalid values could be given, causing the device to hang.
      
       - The xen blkfront pull request, with two bug fixes from Vitaly.
      
      * 'for-3.19/drivers' of git://git.kernel.dk/linux-block: (56 commits)
        NVMe: fix race condition in nvme_submit_sync_cmd()
        NVMe: fix retry/error logic in nvme_queue_rq()
        NVMe: Fix FS mount issue (hot-remove followed by hot-add)
        NVMe: fix error return checking from blk_mq_alloc_request()
        NVMe: fix freeing of wrong request in abort path
        xen/blkfront: remove redundant flush_op
        xen/blkfront: improve protection against issuing unsupported REQ_FUA
        NVMe: Fix command setup on IO retry
        null_blk: boundary check queue_mode and irqmode
        block/rsxx: use generic io stats accounting functions to simplify io stat accounting
        md: use generic io stats accounting functions to simplify io stat accounting
        drbd: use generic io stats accounting functions to simplify io stat accounting
        md/bcache: use generic io stats accounting functions to simplify io stat accounting
        NVMe: Update module version major number
        NVMe: fail pci initialization if the device doesn't have any BARs
        NVMe: add ->exit_hctx() hook
        NVMe: make setup work for devices that don't do INTx
        NVMe: enable IO stats by default
        NVMe: nvme_submit_async_admin_req() must use atomic rq allocation
        NVMe: replace blk_put_request() with blk_mq_free_request()
        ...
      9ea18f8c
    • Linus Torvalds's avatar
      Merge branch 'for-3.19/core' of git://git.kernel.dk/linux-block · caf292ae
      Linus Torvalds authored
      Pull block driver core update from Jens Axboe:
       "This is the pull request for the core block IO changes for 3.19.  Not
        a huge round this time, mostly lots of little good fixes:
      
         - Fix a bug in sysfs blktrace interface causing a NULL pointer
           dereference, when enabled/disabled through that API.  From Arianna
           Avanzini.
      
         - Various updates/fixes/improvements for blk-mq:
      
              - A set of updates from Bart, mostly fixing buts in the tag
                handling.
      
              - Cleanup/code consolidation from Christoph.
      
              - Extend queue_rq API to be able to handle batching issues of IO
                requests. NVMe will utilize this shortly. From me.
      
              - A few tag and request handling updates from me.
      
              - Cleanup of the preempt handling for running queues from Paolo.
      
              - Prevent running of unmapped hardware queues from Ming Lei.
      
              - Move the kdump memory limiting check to be in the correct
                location, ...
      caf292ae
    • Linus Torvalds's avatar
      Merge tag 'trace-seq-buf-3.19-v2' of... · 8f4385d5
      Linus Torvalds authored
      Merge tag 'trace-seq-buf-3.19-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
      
      Pull tracing fixlet from Steven Rostedt:
       "Remove unnecessary preempt_disable in printk()"
      
      * tag 'trace-seq-buf-3.19-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        printk: Do not disable preemption for accessing printk_func
      8f4385d5
    • Linus Torvalds's avatar
      Merge tag 'trace-fixes-v3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 52bb4525
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
       "Here's two fixes:
      
        1) Discovered by Fengguang Wu's tests.  I changed the parameters to
           the function graph x86 prepare_ftrace_return call but forgot to
           update the call from entry_32 (i386 version).  This patch corrects
           that.
      
        2) I was tracing some code and found that the sched_switch tracepoint
           was showing tasks in the INTERRUPTIBLE state as RUNNING.  This was
           due to the updates to convert preempt_count into a per_cpu
           variable.  The tracepoint logic was made to use the tasks
           saved_preempt_count which could hold a stale "PREEMPT_ACTIVE",
           instead of using the current preempt_count() call"
      
      * tag 'trace-fixes-v3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing/sched: Check preempt_count() for current when reading task->state
        ftrace/x86: Update i386 call to prepare_ftrace_return()
      52bb4525
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.infradead.org/users/pcmoore/audit · a99abce2
      Linus Torvalds authored
      Pull audit updates from Paul Moore:
       "Two small patches from the audit next branch; only one of which has
        any real significant code changes, the other is simply a MAINTAINERS
        update for audit.
      
        The single code patch is pretty small and rather straightforward, it
        changes the audit "version" number reported to userspace from an
        integer to a bitmap which is used to indicate the functionality of the
        running kernel.  This really doesn't have much impact on the kernel,
        but it will make life easier for the audit userspace folks.
      
        Thankfully we were still on a version number which allowed us to do
        this without breaking userspace"
      
      * 'upstream' of git://git.infradead.org/users/pcmoore/audit:
        audit: convert status version to a feature bitmap
        audit: add Paul Moore to the MAINTAINERS entry
      a99abce2
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · e3aa91a7
      Linus Torvalds authored
      Pull crypto update from Herbert Xu:
       - The crypto API is now documented :)
       - Disallow arbitrary module loading through crypto API.
       - Allow get request with empty driver name through crypto_user.
       - Allow speed testing of arbitrary hash functions.
       - Add caam support for ctr(aes), gcm(aes) and their derivatives.
       - nx now supports concurrent hashing properly.
       - Add sahara support for SHA1/256.
       - Add ARM64 version of CRC32.
       - Misc fixes.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (77 commits)
        crypto: tcrypt - Allow speed testing of arbitrary hash functions
        crypto: af_alg - add user space interface for AEAD
        crypto: qat - fix problem with coalescing enable logic
        crypto: sahara - add support for SHA1/256
        crypto: sahara - replace tasklets with kthread
        crypto: sahara - add support for i.MX53
        crypto: sahara - fix spinlock initialization
        crypto: arm - replace memset by memzero_explicit
        crypto: po...
      e3aa91a7
    • Linus Torvalds's avatar
      Merge branch 'akpm' (second patch-bomb from Andrew) · 78a45c6f
      Linus Torvalds authored
      Merge second patchbomb from Andrew Morton:
       - the rest of MM
       - misc fs fixes
       - add execveat() syscall
       - new ratelimit feature for fault-injection
       - decompressor updates
       - ipc/ updates
       - fallocate feature creep
       - fsnotify cleanups
       - a few other misc things
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (99 commits)
        cgroups: Documentation: fix trivial typos and wrong paragraph numberings
        parisc: percpu: update comments referring to __get_cpu_var
        percpu: update local_ops.txt to reflect this_cpu operations
        percpu: remove __get_cpu_var and __raw_get_cpu_var macros
        fsnotify: remove destroy_list from fsnotify_mark
        fsnotify: unify inode and mount marks handling
        fallocate: create FAN_MODIFY and IN_MODIFY events
        mm/cma: make kmemleak ignore CMA regions
        slub: fix cpuset check in get_any_partial
        slab: fix cpuset check in fallback_alloc
        shmdt: use i_size_read() instead of ->i_size
        ipc/shm.c: fix overly aggressive sh...
      78a45c6f
    • SeongJae Park's avatar
      cgroups: Documentation: fix trivial typos and wrong paragraph numberings · 29d293b6
      SeongJae Park authored
      
      
      Signed-off-by: default avatarSeongJae Park <sj38.park@gmail.com>
      Cc: Jonathan Corbet <corbet@lwn.net>
      Cc: Tejun Heo <tj@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      29d293b6
    • Christoph Lameter's avatar
      parisc: percpu: update comments referring to __get_cpu_var · 6ddb798f
      Christoph Lameter authored
      
      
      __get_cpu_var was removed. Update comments to refer to
      this_cpu_ptr() instead.
      
      Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
      Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
      Cc: Tejun Heo <tj@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6ddb798f
    • Christoph Lameter's avatar
      percpu: update local_ops.txt to reflect this_cpu operations · 7d94a82e
      Christoph Lameter authored
      
      
      Update the documentation to reflect changes due to the availability of
      this_cpu operations.
      
      Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
      Cc: Tejun Heo <tj@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      7d94a82e
    • Christoph Lameter's avatar
      percpu: remove __get_cpu_var and __raw_get_cpu_var macros · 6c51ec4d
      Christoph Lameter authored
      
      
      No user is left in the kernel source tree.  Therefore we can drop the
      definitions.
      
      This is the final merge of the transition away from __get_cpu_var.  After
      this patch the kernel will not build if anyone uses __get_cpu_var.
      
      Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
      Cc: Tejun Heo <tj@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6c51ec4d
    • Jan Kara's avatar
      fsnotify: remove destroy_list from fsnotify_mark · 37d469e7
      Jan Kara authored
      
      
      destroy_list is used to track marks which still need waiting for srcu
      period end before they can be freed.  However by the time mark is added to
      destroy_list it isn't in group's list of marks anymore and thus we can
      reuse fsnotify_mark->g_list for queueing into destroy_list.  This saves
      two pointers for each fsnotify_mark.
      
      Signed-off-by: default avatarJan Kara <jack@suse.cz>
      Cc: Eric Paris <eparis@redhat.com>
      Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      37d469e7
    • Jan Kara's avatar
      fsnotify: unify inode and mount marks handling · 0809ab69
      Jan Kara authored
      
      
      There's a lot of common code in inode and mount marks handling.  Factor it
      out to a common helper function.
      
      Signed-off-by: default avatarJan Kara <jack@suse.cz>
      Cc: Eric Paris <eparis@redhat.com>
      Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0809ab69