Skip to contentSkip to conversation

Linux 3.16.37

PATCH Ben Hutchings 1 participant 1 message Aug 23, 2016 Stable branch

lore
Share & tools
lore
#0 lore raw

I'm announcing the release of the 3.16.37 kernel.

All users of the 3.16 kernel series should upgrade.

The updated 3.16.y git tree can be found at:
        https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.16.y and can be browsed at the normal kernel.org git web browser:
        https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git

The diff from 3.16.36 is attached to this message.

Ben.

------------

 .../ABI/testing/sysfs-bus-iio-proximity-as3935     |   2 +- Documentation/scsi/scsi_eh.txt                     |   8 +- Documentation/serial/driver                        |   2 +- Makefile                                           |   9 +- arch/alpha/kernel/pci-sysfs.c                      |   4 +- arch/arc/Makefile                                  |   2 - arch/arc/kernel/stacktrace.c                       |   2 +- arch/arm/boot/dts/Makefile                         |   2 + arch/arm/boot/dts/exynos4210-trats.dts             |   2 + arch/arm/include/asm/pgtable-2level.h              |   1 + arch/arm/include/asm/pgtable-3level.h              |   8 +- arch/arm/include/asm/pgtable.h                     |   1 - arch/arm/kernel/ptrace.c                           |   2 +- arch/arm/kvm/arm.c                                 |   1 + arch/arm/kvm/mmu.c                                 |  17 +- arch/arm/mach-omap2/gpmc.c                         |   2 +- arch/arm/mach-omap2/omap_hwmod.c                   |  12 +- arch/arm64/include/asm/elf.h                       |   4 +- arch/arm64/include/asm/pgtable-hwdef.h             |   1 - arch/arm64/include/asm/pgtable.h                   |   4 +- arch/arm64/kernel/setup.c                          |  11 +- arch/arm64/mm/flush.c                              |   4 - arch/mips/ath79/early_printk.c                     |   6 +- arch/mips/include/asm/cacheflush.h                 |  38 +- arch/mips/include/asm/kvm_host.h                   |   2 +- arch/mips/include/asm/msa.h                        |   8 +- arch/mips/include/asm/pgtable.h                    |  45 +- arch/mips/include/uapi/asm/siginfo.h               |  18 +- arch/mips/kernel/bmips_vec.S                       |   9 +- arch/mips/kernel/process.c                         |   2 +- arch/mips/kernel/traps.c                           |   2 +- arch/mips/kvm/kvm_mips_emul.c                      |  89 ++-- arch/mips/kvm/kvm_trap_emul.c                      |   2 +- arch/mips/math-emu/cp1emu.c                        |   8 +- arch/mips/mm/cache.c                               |  12 + arch/parisc/kernel/unaligned.c                     |  10 +- arch/powerpc/Kconfig                               |   2 +- arch/powerpc/include/asm/reg.h                     |   6 +- arch/powerpc/kernel/exceptions-64s.S               |  16 +- arch/powerpc/kernel/process.c                      |  10 + arch/powerpc/kernel/tm.S                           |  61 ++- arch/powerpc/kvm/book3s_hv_rmhandlers.S            | 462 +++++++++++---------- arch/powerpc/mm/hash_utils_64.c                    |  29 +- arch/powerpc/platforms/pseries/eeh_pseries.c       |  51 ++- arch/powerpc/platforms/pseries/iommu.c             |  24 +- arch/s390/include/asm/switch_to.h                  |   2 +- arch/s390/mm/vmem.c                                |   2 +- arch/x86/boot/Makefile                             |   3 + arch/x86/kernel/amd_nb.c                           |   4 +- arch/x86/kernel/kprobes/core.c                     |  12 + arch/x86/kvm/x86.c                                 |   5 + arch/x86/pci/fixup.c                               |   7 + arch/x86/power/hibernate_64.c                      |  97 ++++- arch/x86/power/hibernate_asm_64.S                  |  55 ++- block/blk-mq.c                                     |   2 +- block/ioprio.c                                     |   2 + crypto/asymmetric_keys/Kconfig                     |   1 + drivers/acpi/acpi_processor.c                      |   9 - drivers/acpi/processor_throttling.c                |   9 + drivers/acpi/sysfs.c                               |   7 +- drivers/ata/libata-eh.c                            |   2 +- drivers/ata/sata_dwc_460ex.c                       |   4 +- drivers/base/isa.c                                 |   2 +- drivers/base/module.c                              |   8 +- drivers/base/power/main.c                          |   5 +- drivers/base/power/runtime.c                       |   9 +- drivers/base/regmap/regcache.c                     |   2 +- drivers/bluetooth/hci_vhci.c                       |  28 +- drivers/char/Kconfig                               |   1 - drivers/char/i8k.c                                 |  19 +- drivers/cpufreq/cpufreq_userspace.c                |  43 +- drivers/cpufreq/intel_pstate.c                     |   7 +- drivers/cpuidle/cpuidle.c                          |   4 +- drivers/crypto/caam/jr.c                           |   2 +- drivers/crypto/ccp/ccp-crypto-aes-xts.c            |  17 +- drivers/crypto/s5p-sss.c                           |  61 ++- drivers/crypto/ux500/hash/hash_core.c              |   4 +- drivers/edac/edac_mc.c                             |   2 +- drivers/gpio/gpio-bcm-kona.c                       |   4 +- drivers/gpu/drm/drm_fb_helper.c                    |   5 +- drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c      |   2 +- drivers/gpu/drm/i915/i915_gem_context.c            |  14 +- drivers/gpu/drm/i915/intel_display.c               |  48 ++- drivers/gpu/drm/i915/intel_fbdev.c                 |   6 +- drivers/gpu/drm/i915/intel_pm.c                    |   2 + drivers/gpu/drm/nouveau/nouveau_fbcon.c            |   1 +

 drivers/gpu/drm/nouveau/nv04_fbcon.c               |   7 +-
 drivers/gpu/drm/nouveau/nv50_fbcon.c               |   6 +-
 drivers/gpu/drm/nouveau/nvc0_fbcon.c               |   6 +-

 drivers/gpu/drm/radeon/radeon_device.c             |  21 + drivers/hid/hid-elo.c                              |   2 +- drivers/hid/usbhid/hiddev.c                        |  10 +- drivers/iio/accel/kxsd9.c                          |   4 +- drivers/iio/adc/ad7266.c                           |   7 +- drivers/iio/industrialio-trigger.c                 |  23 +- drivers/iio/pressure/st_pressure_core.c            |  80 ++-- drivers/iio/proximity/as3935.c                     |  17 +- drivers/infiniband/core/cma.c                      |   3 +- drivers/infiniband/core/iwpm_util.c                |   1 + drivers/infiniband/hw/cxgb3/cxio_hal.c             |   2 +- drivers/infiniband/hw/cxgb4/cm.c                   |  12 +- drivers/infiniband/hw/mlx4/ah.c                    |   2 +- drivers/infiniband/hw/mlx4/mad.c                   |  24 +- drivers/infiniband/hw/mlx4/main.c                  |   3 + drivers/infiniband/hw/mlx4/qp.c                    |   6 +- drivers/infiniband/hw/mlx5/main.c                  |   5 +- drivers/infiniband/hw/mlx5/qp.c                    |  21 +- drivers/infiniband/ulp/ipoib/ipoib.h               |   1 + drivers/infiniband/ulp/ipoib/ipoib_cm.c            |   4 + drivers/infiniband/ulp/ipoib/ipoib_main.c          |   7 +- drivers/infiniband/ulp/ipoib/ipoib_vlan.c          |   6 + drivers/input/joystick/xpad.c                      |   4 + drivers/input/misc/pwm-beeper.c                    |  70 +++- drivers/input/misc/uinput.c                        |   6 + drivers/input/mouse/elantech.c                     |   8 +- drivers/input/touchscreen/wacom_w8001.c            |   2 +- drivers/iommu/dmar.c                               |  47 ++- drivers/irqchip/irq-gic.c                          |   8 + drivers/mcb/mcb-parse.c                            |   2 +- drivers/media/pci/cx23885/cx23885-av.c             |   2 +- drivers/media/usb/uvc/uvc_v4l2.c                   |  39 +- drivers/mfd/lp8788-irq.c                           |   2 +- drivers/mfd/omap-usb-tll.c                         |  13 +- drivers/misc/mic/host/mic_virtio.c                 |   5 + drivers/mmc/card/block.c                           |   5 +- drivers/mmc/core/core.c                            |   4 +- drivers/mmc/core/mmc.c                             |   7 + drivers/mtd/ubi/eba.c                              |  42 +- drivers/mtd/ubi/fastmap.c                          |   1 + drivers/mtd/ubi/ubi.h                              |   2 + drivers/net/bonding/bond_3ad.c                     |  13 +- drivers/net/bonding/bond_alb.c                     |   7 +- drivers/net/bonding/bonding.h                      |   3 + drivers/net/can/at91_can.c                         |   5 +- drivers/net/can/c_can/c_can.c                      |  38 +- drivers/net/can/dev.c                              |   6 + drivers/net/ethernet/broadcom/bcmsysport.c         |   2 +- drivers/net/ethernet/broadcom/bgmac.c              |   2 +- drivers/net/ethernet/ibm/ehea/ehea_main.c          |   9 +- drivers/net/ethernet/intel/i40e/i40e_hmc.c         |   2 +- drivers/net/ethernet/mellanox/mlx4/en_netdev.c     |  18 +- drivers/net/ethernet/mellanox/mlx4/mcg.c           |   4 +- drivers/net/ethernet/mellanox/mlx5/core/cmd.c      | 123 +++--- drivers/net/ethernet/mellanox/mlx5/core/qp.c       |   2 +- drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c     |   2 +- drivers/net/ethernet/sfc/ef10.c                    |  16 + drivers/net/phy/fixed.c                            |  22 +- drivers/net/tun.c                                  |   6 +- drivers/net/wireless/ath/ath5k/led.c               |   2 +- drivers/net/wireless/mac80211_hwsim.c              |   1 + drivers/net/wireless/rtlwifi/base.c                |   4 +- drivers/of/irq.c                                   |  19 +- drivers/pci/pci-sysfs.c                            |   7 +- drivers/pci/probe.c                                |   6 +- drivers/pinctrl/pinctrl-single.c                   |   3 + drivers/s390/char/sclp_ctl.c                       |  12 +- drivers/s390/net/qeth_l2_main.c                    |   1 + drivers/s390/net/qeth_l3_main.c                    |   1 + drivers/scsi/aacraid/commsup.c                     |  12 +- drivers/scsi/ipr.c                                 |   1 + drivers/scsi/scsi_devinfo.c                        |   1 + drivers/scsi/scsi_error.c                          |   4 +- drivers/scsi/scsi_lib.c                            |   7 +- drivers/scsi/scsi_scan.c                           |   1 + drivers/scsi/scsi_sysfs.c                          |   6 +- drivers/spi/spi-sun4i.c                            |  23 +- drivers/spi/spi-sun6i.c                            |  10 +- drivers/staging/iio/accel/sca3000_core.c           |   2 +- drivers/tty/n_tty.c                                |  17 +- drivers/tty/vt/vt.c                                |   5 +- drivers/usb/core/devio.c                           |   9 +- drivers/usb/core/hcd.c                             |  14 +- drivers/usb/core/quirks.c                          |  27 +- drivers/usb/dwc3/dwc3-exynos.c                     |  19 +- drivers/usb/gadget/f_fs.c                          |  12 +- drivers/usb/gadget/f_uac2.c                        |   1 + drivers/usb/gadget/inode.c                         |  17 +- drivers/usb/host/xhci-pci.c                        |   5 + drivers/usb/host/xhci-plat.c                       |   3 + drivers/usb/musb/musb_host.c                       |  21 +- drivers/usb/serial/io_edgeport.c                   |  56 ++- drivers/usb/serial/keyspan.c                       |   4 + drivers/usb/serial/mxuport.c                       |  10 + drivers/usb/serial/option.c                        | 155 ++++++- drivers/usb/serial/quatech2.c                      |   1 + drivers/xen/events/events_base.c                   |   6 +- drivers/xen/xen-acpi-processor.c                   |  35 +- drivers/xen/xen-pciback/conf_space.c               |   6 +- drivers/xen/xenbus/xenbus_xs.c                     |   3 - fs/btrfs/ctree.h                                   |   1 + fs/btrfs/file.c                                    |   2 +- fs/btrfs/inode.c                                   |   2 +- fs/btrfs/ioctl.c                                   |  21 + fs/cifs/cifs_spnego.c                              |  67 +++ fs/cifs/cifsfs.c                                   |   4 +- fs/cifs/cifsproto.h                                |   2 + fs/cifs/connect.c                                  |   4 +- fs/cifs/ntlmssp.h                                  |   2 +- fs/cifs/sess.c                                     | 210 ++++++---- fs/cifs/smb2glob.h                                 |   1 + fs/cifs/smb2inode.c                                |   8 +- fs/cifs/smb2pdu.c                                  |  53 ++- fs/cifs/smb2proto.h                                |   2 + fs/dcache.c                                        |   5 +- fs/ecryptfs/file.c                                 |  15 +- fs/ecryptfs/main.c                                 |   7 + fs/ext4/ialloc.c                                   |  55 ++-

 fs/ext4/inode.c                                    |  23 +-
 fs/ext4/namei.c                                    |   2 +-
 fs/hpfs/super.c                                    |  42 +-
 fs/namespace.c                                     |   2 +-
 fs/nfs/dir.c                                       |   2 +-
 fs/nfs/nfs4proc.c                                  |   5 +-
 fs/nfsd/nfs2acl.c                                  |  20 +-
 fs/nfsd/nfs3acl.c                                  |  16 +-
 fs/nfsd/nfs4acl.c                                  |  16 +-

 fs/nilfs2/the_nilfs.c                              |   2 +- fs/posix_acl.c                                     |  38 +- fs/proc/root.c                                     |   7 + fs/ubifs/file.c                                    |  24 ++ fs/xfs/xfs_inode.c                                 |  26 +- fs/xfs/xfs_super.c                                 |  10 + include/asm-generic/preempt.h                      |   4 +- include/linux/device.h                             |   7 +- include/linux/fs.h                                 |  11 + include/linux/mlx5/driver.h                        |   1 + include/linux/mlx5/qp.h                            |   2 + include/linux/netfilter/x_tables.h                 |  12 +- include/linux/sunrpc/msg_prot.h                    |   4 +- include/net/codel.h                                |   4 + include/net/sch_generic.h                          |  20 +- include/scsi/scsi_device.h                         |   1 + kernel/auditsc.c                                   | 335 ++++++++------- kernel/exit.c                                      |  29 +- kernel/sched/core.c                                |   6 +- kernel/sched/proc.c                                |  11 +- kernel/trace/ring_buffer.c                         |  35 +- kernel/trace/trace_printk.c                        |   7 +- lib/dma-debug.c                                    |   2 +- mm/migrate.c                                       |   2 + mm/shmem.c                                         |   8 +- net/batman-adv/bat_iv_ogm.c                        |   9 +- net/batman-adv/routing.c                           |   5 +- net/batman-adv/soft-interface.c                    |   9 + net/batman-adv/translation-table.c                 |  52 ++- net/batman-adv/types.h                             |   2 + net/bridge/br_multicast.c                          |   4 + net/bridge/br_private.h                            |  25 +- net/ipv4/netfilter/arp_tables.c                    | 279 ++++--------- net/ipv4/netfilter/ip_tables.c                     | 305 ++++---------- net/ipv4/tcp_input.c                               |  13 +- net/ipv6/addrconf.c                                |  10 +- net/ipv6/icmp.c                                    |   2 +- net/ipv6/netfilter/ip6_tables.c                    | 300 +++---------- net/ipv6/tcp_ipv6.c                                |   4 +- net/mac80211/mesh.c                                |  11 +- net/netfilter/x_tables.c                           | 245 ++++++++++- net/netlink/af_netlink.c                           |   7 +- net/rds/recv.c                                     |   2 + net/sched/sch_api.c                                |   8 +- net/sched/sch_cbq.c                                |  12 +- net/sched/sch_choke.c                              |   6 +- net/sched/sch_codel.c                              |  10 +- net/sched/sch_drr.c                                |   9 +- net/sched/sch_dsmark.c                             |   8 +- net/sched/sch_fifo.c                               |   4 + net/sched/sch_fq.c                                 |   4 +- net/sched/sch_fq_codel.c                           |  17 +- net/sched/sch_hfsc.c                               |   9 +- net/sched/sch_hhf.c                                |  10 +- net/sched/sch_htb.c                                |  19 +- net/sched/sch_multiq.c                             |  16 +- net/sched/sch_netem.c                              |  21 +- net/sched/sch_pie.c                                |   5 +- net/sched/sch_prio.c                               |  15 +-

 net/sched/sch_qfq.c                                |   9 +-
 net/sched/sch_red.c                                |  10 +-
 net/sched/sch_sfb.c                                |  10 +-
 net/sched/sch_sfq.c                                |  16 +-
 net/sched/sch_tbf.c                                |  15 +-

 net/sunrpc/auth_gss/svcauth_gss.c                  |   4 +- net/tipc/node.c                                    |   3 +- scripts/Makefile.extrawarn                         |   1 + scripts/mod/file2alias.c                           |   2 +- security/keys/key.c                                |   2 +- sound/core/compress_offload.c                      |   2 +- sound/core/timer.c                                 |   5 +- sound/drivers/dummy.c                              |   1 + sound/pci/au88x0/au88x0_core.c                     |   5 +- sound/pci/echoaudio/echoaudio.c                    |   4 +- sound/pci/hda/patch_realtek.c                      |   7 + tools/perf/util/perf_regs.c                        |   8 +- virt/kvm/irqchip.c                                 |   2 +- virt/kvm/kvm_main.c                                |   2 +-

 294 files changed, 3382 insertions(+), 2290 deletions(-)

AceLan Kao (1):
      ALSA: hda - Fix headset mic detection problem for Dell machine

Adrian Hunter (1):
      mmc: mmc: Fix partition switch timeout for some eMMCs

Al Viro (2):
      fix d_walk()/non-delayed __d_free() race
      make nfs_atomic_open() call d_drop() on all ->open_context() errors.

Alan Stern (1):
      USB: don't free bandwidth_mutex too early

Alex Deucher (1):
      drm/radeon: fix asic initialization for virtualized environments

Alex Williamson (2):
      iommu/vt-d: Ratelimit fault handler iommu/vt-d: Improve fault handler error messages

Alexey Brodkin (1):
      arc: unwind: warn only once if DW2_UNWIND is disabled

Andreas Gruenbacher (1):
      posix_acl: Add set_posix_acl

Andreas Werner (1):
      mcb: Fixed bar number assignment for the gdd

Andrew F. Davis (1):
      regmap: cache: Fix typo in cache_bypass parameter description

Andrew Goodbody (2):
      usb: musb: Ensure rx reinit occurs for shared_fifo endpoints
      usb: musb: Stop bulk endpoint while queue is rotated

Andrey Grodzovsky (1):
      xen/pciback: Fix conf_space read/write overlap check.

Andrey Ryabinin (1):
      kernel/sysrq, watchdog, sched/core: Reset watchdog on all CPUs while processing sysrq-w

Andy Lutomirski (1):
      uvc: Forward compat ioctls to their handlers directly

Anthony Romano (1):
      tmpfs: don't undo fallocate past its last page

Arnd Bergmann (4):
      driver-core: use 'dev' argument in dev_dbg_ratelimited stub
      gcov: disable tree-loop-im to reduce stack usage
      kbuild: move -Wunused-const-variable to W=1 warning level
      crypto: public_key: select CRYPTO_AKCIPHER

Artem Bityutskiy (1):
      UBI: do propagate positive error codes up

Ashutosh Dixit (1):
      misc: mic: Fix for double fetch security bug in VOP driver

Bartlomiej Zolnierkiewicz (1):
      blk-mq: fix undefined behaviour in order_to_size()

Ben Dooks (1):
      gpio: bcm-kona: fix bcm_kona_gpio_reset() warnings

Ben Hutchings (4):
      USB: quirks: Fix entries on wrong list in 3.16.y
      nfsd: check permissions when setting ACLs
      batman-adv: Fix double-put of vlan object Linux 3.16.37

Ben Skeggs (1):
      drm/nouveau/fbcon: fix out-of-bounds memory accesses

Bernhard Thaler (1):
      Revert "netfilter: ensure number of counters is >0 in do_replace()"

Bin Liu (1):
      usb: gadget: fix spinlock dead lock in gadgetfs

Bjorn Helgaas (2):
      PCI: Supply CPU physical address (not bus address) to iomem_is_exclusive() alpha/PCI: Call iomem_is_exclusive() for IORESOURCE_MEM, but not IORESOURCE_IO

Bob Copeland (1):
      mac80211: mesh: flush mesh paths unconditionally

Borislav Petkov (1):
      x86/amd_nb: Fix boot crash on non-AMD systems

Brian Bloniarz (1):
      Fix OpenSSH pty regression on close

Brian King (1):
      ipr: Clear interrupt on croc/crocodile when running with LSI

Brian Norris (1):
      UBI: fix missing brace control flow

Cameron Gutman (1):
      Input: xpad - prevent spurious input from wired Xbox 360 controllers

Catalin Marinas (2):
      arm64: Ensure pmd_present() returns false after pmd_mknotpresent()
      arm64: Provide "model name" in /proc/cpuinfo for PER_LINUX32 tasks

Catalin Vasile (1):
      crypto: caam - fix caam_jr_alloc() ret code

Chris Wilson (1):
      drm/i915: Prevent machine death on Ivybridge context switching

Christophe JAILLET (1):
      ALSA: echoaudio: Fix memory allocation

Chuck Lever (1):
      sunrpc: Update RPCBIND_MAXNETIDLEN

Crestez Dan Leonard (1):
      iio: Fix error handling in iio_trigger_attach_poll_func

Cyril Bur (1):
      powerpc/tm: Always reclaim in start_thread() for exec() class syscalls

Dan Carpenter (8):
      mfd: lp8788-irq: Uninitialized variable in irq handler
      cx23885: uninitialized variable in cx23885_av_work_handler() ACPI / sysfs: fix error code in get_status()
      i40e: fix an uninitialized variable bug
      usb: f_fs: off by one bug in _ffs_func_bind()
      KEYS: potential uninitialized variable
      qlcnic: use the correct ring in qlcnic_83xx_process_rcv_ring_diag()
      ALSA: compress: fix an integer overflow check

Daniel Borkmann (1):
      ipv6, token: allow for clearing the current device token

Daniel Lezcano (1):
      cpuidle: Fix cpuidle_state_is_coupled() argument in cpuidle_enter()

Dave Chinner (3):
      xfs: xfs_iflush_cluster fails to abort on error
      xfs: fix inode validity check in xfs_iflush_cluster
      xfs: skip stale inodes in xfs_iflush_cluster

Dave Gerlach (1):
      cpuidle: Indicate when a device has been unregistered

Dave Jones (1):
      netfilter: ensure number of counters is >0 in do_replace()

Dmitry Torokhov (1):
      Input: elantech - add more IC body types to the list

Dotan Barak (1):
      IB/mlx4: Fix memory leak if QP creation failed

Edward Cree (1):
      sfc: on MC reset, clear PIO buffer linkage in TXQs

Eli Cohen (1):
      IB/mlx5: Fix post send fence logic

Emmanouil Maroudas (1):
      EDAC: Increment correct counter in edac_inc_ue_error()

Erez Shitrit (2):
      IB/IPoIB: Fix race between ipoib_remove_one to sysfs functions IB/IPoIB: Don't update neigh validity for unresolved entries

Eric Dumazet (4):
      netem: fix a use after free
      net_sched: fix pfifo_head_drop behavior vs backlog
      bonding: prevent out of bound accesses
      tcp: make challenge acks less predictable

Eric Sandeen (1):
      xfs: disallow rw remount on fs with unknown ro-compat features

Eric W. Biederman (1):
      mnt: fs_fully_visible test the proper mount for MNT_LOCKED

Ewan D. Milne (1):
      scsi: Add QEMU CD-ROM to VPD Inquiry Blacklist

Florian Fainelli (5):
      MIPS: BMIPS: Fix PRID_IMP_BMIPS5000 masking for BMIPS5200
      net: bgmac: Start transmit queue in bgmac_open
      net: bgmac: Remove superflous netif_carrier_on()
      net: phy: Manage fixed PHY address space using IDA
      net: bcmsysport: Device stats are unsigned long

Florian Westphal (16):
      batman-adv: fix skb deref after free
      netfilter: x_tables: don't move to non-existent next rule
      netfilter: x_tables: add and use xt_check_entry_offsets
      netfilter: x_tables: kill check_entry helper
      netfilter: x_tables: assert minimum target size
      netfilter: x_tables: add compat version of xt_check_entry_offsets
      netfilter: x_tables: check standard target size too
      netfilter: x_tables: check for bogus target offset
      netfilter: x_tables: validate all offsets and sizes in a rule
      netfilter: x_tables: don't reject valid target size on some architectures
      netfilter: arp_tables: simplify translate_compat_table args
      netfilter: ip_tables: simplify translate_compat_table args
      netfilter: ip6_tables: simplify translate_compat_table args
      netfilter: x_tables: xt_compat_match_from_user doesn't need a retval
      netfilter: x_tables: do compat validation via translate_table
      netfilter: x_tables: introduce and use xt_copy_counters_from_user

Gavin Shan (1):
      powerpc/pseries: Fix PCI config address for DDW

Geert Uytterhoeven (3):
      serial: doc: Un-document non-existing uart_write_console()
      serial: doc: Re-add paragraph documenting uart_console_write()
      char: Drop bogus dependency of DEVPORT on !M68K

Gregor Boirie (1):
      iio:st_pressure: fix sampling gains (bring inline with ABI)

Guilherme G. Piccoli (1):
      powerpc/iommu: Remove the dependency on EEH struct in DDW mechanism

H. Peter Anvin (1):
      x86, build: copy ldlinux.c32 to image.iso

Hannes Frederic Sowa (1):
      ipv6: fix endianness error in icmpv6_err

Hans de Goede (3):
      usb: quirks: Fix sorting
      usb: quirks: Add no-lpm quirk for Acer C120 LED Projector
      USB: xhci: Add broken streams quirk for Frescologic device id 1009

Hari Bathini (1):
      powerpc/book3s64: Fix branching to OOL handlers in relocatable kernel

Hariprasad S (1):
      RDMA/iw_cxgb4: Always wake up waiter in c4iw_peer_abort_intr()

Heiko Carstens (1):
      s390/vmem: fix identity mapping

Heinrich Schuchardt (3):
      ARM: dts: kirkwood: add kirkwood-ds112.dtb to Makefile
      ARM: dts: kirkwood: add kirkwood-nsa320.dtb to Makefile
      usb: gadget: avoid exposing kernel stack

Helge Deller (1):
      parisc: Fix pagefault crash in unaligned __get_user() call

Herbert Xu (1):
      netlink: Fix dump skb leak/double free

Honggang Li (1):
      RDMA/cxgb3: device driver frees DMA memory with different size

Hugh Dickins (1):
      tmpfs: fix regression hang in fallocate undo

Hui Wang (1):
      ALSA: hda - Fix headset mic detection problem for one Dell machine

Itai Handler (1):
      drm/gma500: Fix possible out of bounds read

James Bottomley (1):
      scsi_lib: correctly retry failed zero length REQ_TYPE_FS commands

James Hogan (5):
      MIPS: Fix siginfo.h to use strict posix types
      MIPS: Don't unwind to user mode with EVA
      MIPS: Avoid using unwind_stack() with usermode
      MIPS: KVM: Fix timer IRQ race when freezing timer
      MIPS: KVM: Fix timer IRQ race when writing CP0_Compare

James Morse (1):
      KVM: arm/arm64: Stop leaking vcpu pid references

Jan Beulich (2):
      xenbus: don't bail early from xenbus_dev_request_and_reply() xen/acpi: allow xen-acpi-processor driver to load on Xen 4.7

Jan Kara (2):
      ext4: fix data exposure after a crash
      ext4: fix oops on corrupted filesystem

Jann Horn (1):
      proc: prevent stacking filesystems on top

Jason Gunthorpe (1):
      IB/mlx4: Properly initialize GRH TClass and FlowLabel in AHs

Jason Wang (1):
      tuntap: correctly wake up process during uninit

Jeff Mahoney (1):
      ecryptfs: don't allow mmap when the lower fs doesn't support it

Jerome Marchand (2):
      cifs: use CIFS_MAX_DOMAINNAME_LEN when converting the domain name
      cifs: dynamic allocation of ntlmssp blob

Jiri Slaby (4):
      Bluetooth: vhci: fix open_timeout vs. hdev race
      Bluetooth: vhci: purge unhandled skbs
      tty: vt, return error when con_startup fails
      base: make module_create_drivers_dir race-free

Johan Hovold (5):
      USB: serial: io_edgeport: fix memory leaks in attach error path
      USB: serial: io_edgeport: fix memory leaks in probe error path
      USB: serial: keyspan: fix use-after-free in probe error path
      USB: serial: mxuport: fix use-after-free in probe error path
      USB: serial: quatech2: fix use-after-free in probe error path

Johannes Thumshirn (2):
      scsi: Add intermediate STARGET_REMOVE state to scsi_target_state Revert "scsi: fix soft lockup in scsi_remove_target() on module removal"

Joseph Salisbury (1):
      ath5k: Change led pin configuration for compaq c700 laptop

Joshua Kinard (1):
      MIPS: Adjust set_pte() SMP fix to handle R10000_LLSC_WAR

Jouni Malinen (1):
      mac80211: Fix mesh estab_plinks counting in STA removal case

Julien Grall (1):
      arm64: cpuinfo: Missing NULL terminator in compat_hwcap_str

Kamal Heib (1):
      net/mlx4_en: Fix the return value of a failure in VLAN VID add/kill

Kangjie Lu (6):
      USB: usbfs: fix potential infoleak in devio
      ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS
      ALSA: timer: Fix leak in events via snd_timer_user_ccallback
      ALSA: timer: Fix leak in events via snd_timer_user_tinterrupt
      tipc: fix an infoleak in tipc_nl_compat_link_dump
      rds: fix an infoleak in rds_inc_info_copy

Kirill A. Shutemov (1):
      UBIFS: Implement ->migratepage()

Krzysztof Kozlowski (1):
      crypto: s5p-sss - Fix missed interrupts when working with 8 kB blocks

Lars Persson (1):
      MIPS: Fix race condition in lazy cache flushing.

Lei Liu (1):
      USB: serial: option: add even more ZTE device ids

Linus Walleij (2):
      crypto: ux500 - memmove the right size
      iio: accel: kxsd9: fix the usage of spi_w8r8()

Luis de Bethencourt (1):
      staging: iio: accel: fix error check

Luke Dashjr (1):
      btrfs: bugfix: handle FS_IOC32_{GETFLAGS,SETFLAGS,GETVERSION} in btrfs_ioctl

Lyude (3):
      drm/i915/fbdev: Fix num_connector references in intel_fb_initial_config() drm/fb_helper: Fix references to dev->mode_config.num_connector drm/i915/ilk: Don't disable SSC source if it's in use

Majd Dibbiny (2):
      net/mlx5: Fix the size of modify QP mailbox net/mlx5: Fix masking of reserved bits in XRCD number

Manfred Schlaegl (1):
      Input: pwm-beeper - fix - scheduling while atomic

Mans Rullgard (1):
      ata: sata_dwc_460ex: remove incorrect locking

Marc Zyngier (1):
      arm/arm64: KVM: Enforce Break-Before-Make on Stage-2 page tables

Marek Szyprowski (2):
      crypto: s5p-sss - fix incorrect usage of scatterlists api
      ARM: dts: exynos: Add interrupt line to MAX8997 PMIC on exynos4210-trats

Mark Bloch (2):
      IB/IWPM: Fix a potential skb leak
      IB/core: Fix a potential array overrun in CMA and SA agent

Mark Brown (3):
      iio:ad7266: Fix broken regulator error handling iio:ad7266: Fix support for optional regulators iio:ad7266: Fix probe deferral for vref

Martin Schwidefsky (2):
      s390: fix test_fp_ctl inline assembly contraints s390/sclp_ctl: fix potential information leak with /dev/sclp

Martin Willi (1):
      mac80211_hwsim: Add missing check for HWSIM_ATTR_SIGNAL

Masami Hiramatsu (1):
      kprobes/x86: Clear TF bit in fault on single-stepping

Matt Gumbel (1):
      mmc: longer timeout for long read time quirk

Matt Ranostay (3):
      iio: proximity: as3935: correct IIO_CHAN_INFO_RAW output
      iio: proximity: as3935: remove triggered buffer processing
      iio: proximity: as3935: fix buffer stack trashing

Matthias Schiffer (1):
      MIPS: ath79: make bootconsole wait for both THRE and TEMT

Michael Ellerman (2):
      powerpc/mm/hash64: Factor out hash preload psize check powerpc/mm/hash64: Fix subpage protection with 4K HPTE config

Michael Neuling (1):
      powerpc/tm: Avoid SLB faults in treclaim/trecheckpoint when RI=0

Michal Suchanek (2):
      spi: sun4i: fix FIFO limit
      spi: sunxi: fix transfer timeout

Miklos Szeredi (1):
      fs: limit filesystem stacking depth

Mikulas Patocka (2):
      hpfs: fix remount failure when there are no options changed
      hpfs: implement the show_options method

Mohamad Haj Yahia (2):
      net/mlx5: Fix potential deadlock in command mode change net/mlx5: Add timeout handle to commands with callback

Naveen N. Rao (2):
      perf tools: Fix perf regs mask generation powerpc/bpf/jit: Disable classic BPF JIT on ppc64le

Noa Osherovich (2):
      IB/mlx5: Return PORT_ERR in Active to Initializing tranisition IB/mlx5: Fix returned values of query QP

Ocquidant, Sebastien (1):
      memory: omap-gpmc: Fix omap gpmc EXTRADELAY timing

Oleg Nesterov (1):
      wait/ptrace: assume __WALL if the child is traced

Oliver Hartkopp (1):
      can: fix oops caused by wrong rtnl dellink usage

Oliver Neukum (1):
      HID: elo: kill not flush the work

Olivier Sobrie (1):
      Input: pwm-beeper - remove useless call to pwm_config()

Omar Sandoval (1):
      block: fix use-after-free in sys_ioprio_get()

Pali Rohár (1):
      hwmon: (dell-smm) Restrict fan control and serial number to CAP_SYS_ADMIN by default

Paolo Bonzini (2):
      KVM: irqfd: fix NULL pointer dereference in kvm_irq_map_gsi
      KVM: x86: fix OOPS after invalid KVM_SET_DEBUGREGS

Paul Burton (2):
      MIPS: math-emu: Fix jalr emulation when rd == $0
      MIPS: fix read_msa_* & write_msa_* functions on non-MSA toolchains

Paul Mackerras (2):
      KVM: PPC: Book3S HV: Pull out TM state save/restore into separate procedures
      KVM: PPC: Book3S HV: Save/restore TM state in H_CEDE

Paul Moore (1):
      audit: fix a double fetch in audit_log_single_execve_arg()

Peter Hurley (1):
      Revert "tty: Fix pty master poll() after slave closes v2"

Peter Zijlstra (1):
      sched/preempt: Fix preempt_count manipulations

Ping Cheng (1):
      Input: wacom_w8001 - w8001_MAX_LENGTH should be 13

Prarit Bhargava (2):
      x86/PCI: Mark Broadwell-EP Home Agent 1 as having non-compliant BARs
      PCI: Disable all BAR sizing for devices with non-compliant BARs

Rafael J. Wysocki (3):
      PM / sleep: Handle failures in device_suspend_late() consistently ACPI / processor: Avoid reserving IO regions too early x86/power/64: Fix kernel text mapping corruption during image restoration

Raghava Aditya Renukunta (2):
      aacraid: Relinquish CPU during timeout wait
      aacraid: Fix for aac_command_thread hang

Richard Weinberger (3):
      UBI: Fix static volume checks when Fastmap is used
      ubi: Make recover_peb power cut aware
      mm: Export migrate_page_move_mapping and migrate_page_copy

Ricky Liang (1):
      Input: uinput - handle compat ioctl for UI_SET_PHYS

Roger Quadros (1):
      mfd: omap-usb-tll: Fix scheduling while atomic BUG

Ross Lagerwall (1):
      xen/events: Don't move disabled irqs

Russell Currey (1):
      powerpc/pseries/eeh: Handle RTAS delay requests in configure_bridge

Russell King (1):
      ARM: fix PTRACE_SETVFPREGS on SMP systems

Sachin Prabhu (1):
      cifs: Create dedicated keyring for spnego operations

Sai Gurrappadi (1):
      cpufreq: Fix GOV_LIMITS handling for the userspace governor

Schemmel Hans-Christoph (1):
      USB: serial: option: add support for Cinterion PH8 and AHxx

Scott Bauer (1):
      HID: hiddev: validate num_values for HIDIOCGUSAGES, HIDIOCSUSAGES commands

Sergei Shtylyov (1):
      of: irq: fix of_irq_get[_byname]() kernel-doc

Shaokun Zhang (1):
      arm64: mm: remove page_mapping check in __sync_icache_dcache

Simon Wunderlich (1):
      batman-adv: replace WARN with rate limited output on non-existing VLAN

Srinivas Pandruvada (1):
      cpufreq: intel_pstate: Fix ->set_policy() interface for no_turbo

Stefan Metzmacher (4):
      fs/cifs: correctly to anonymous authentication via NTLMSSP fs/cifs: correctly to anonymous authentication for the LANMAN authentication fs/cifs: correctly to anonymous authentication for the NTLM(v1) authentication fs/cifs: correctly to anonymous authentication for the NTLM(v2) authentication

Steinar H. Gunderson (1):
      usb: dwc3: exynos: Fix deferred probing storm.

Steve Capper (1):
      ARM: 8579/1: mm: Fix definition of pmd_mknotpresent

Steve French (2):
      remove directory incorrectly tries to set delete on close on non-empty directories Fix reconnect to not defer smb3 session reconnect long after socket reconnect

Steven Rostedt (Red Hat) (3):
      ring-buffer: Use long for nr_pages to avoid overflow failures
      ring-buffer: Prevent overflow of size in ring_buffer_resize()
      tracing: Handle NULL formats in hold_module_trace_bprintk_format()

Suman Anna (1):
      ARM: OMAP2+: hwmod: fix _idle() hwmod state sanity check sequence

Sven Eckelmann (6):
      batman-adv: Fix unexpected free of bcast_own on add_if error
      batman-adv: Fix integer overflow in batadv_iv_ogm_calc_tq
      batman-adv: Fix memory leak on tt add with invalid vlan
      batman-adv: Fix use-after-free/double-free of tt_req_node
      batman-adv: Fix ICMP RR ethernet access after skb_linearize
      batman-adv: Clean up untagged vlan when destroying via rtnl-link

Takashi Iwai (4):
      Bluetooth: vhci: Fix race at creating hci device
      ALSA: dummy: Fix a use-after-free at closing
      ALSA: au88x0: Fix calculation in vortex_wtdma_bufshift()
      ALSA: timer: Fix negative queue usage by racy accesses

Tariq Toukan (1):
      net/mlx4_core: Fix access to uninitialized index

Theodore Ts'o (2):
      ext4: fix hang when processing corrupted orphaned inode list
      ext4: clean up error handling when orphan list is corrupted

Thomas Huth (2):
      powerpc: Fix definition of SIAR and SDAR registers
      powerpc: Use privileged SPR number for MMCR2

Thomas Petazzoni (1):
      usb: xhci-plat: properly handle probe deferral for devm_clk_get()

Thor Thayer (1):
      can: c_can: Update D_CAN TX and RX functions to 32 bit - fix Altera Cyclone access

Tom Lendacky (1):
      crypto: ccp - Fix AES XTS error for request sizes above 4096

Tomáš Trnka (1):
      sunrpc: fix stripping of padded MIC tokens

Tony Lindgren (1):
      pinctrl: single: Fix missing flush of posted write for a wakeirq

Torsten Hilbrich (1):
      fs/nilfs2: fix potential underflow in call to crc32_le

Trond Myklebust (1):
      NFS: Fix another OPEN_DOWNGRADE bug

Ulf Hansson (1):
      PM / Runtime: Fix error path in pm_runtime_force_resume()

Ursula Braun (1):
      qeth: delete napi struct when removing a qeth device

Vik Heyndrickx (1):
      sched/loadavg: Fix loadavg artifacts on fully idle and on fully loaded systems

Ville Syrjälä (2):
      drm/i915: Don't leave old junk in ilk active watermarks on readout
      dma-debug: avoid spinlock recursion when disabling dma-debug

Vineet Gupta (1):
      ARC: unwind: ensure that .debug_frame is generated (vs. .eh_frame)

WANG Cong (2):
      net_sched: introduce qdisc_replace() helper
      net_sched: update hierarchical backlog too

Wei Fang (1):
      scsi: fix race between simultaneous decrements of ->host_failed

Will Deacon (2):
      irqchip/gic: Ensure ordering between read of INTACK and shared data
      ARM: 8578/1: mm: ensure pmd_present only checks the valid bit

William Breathitt Gray (1):
      isa: Call isa_bus_init before dependent ISA bus drivers register

Wolfgang Grandegger (1):
      can: at91_can: RX queue could get stuck at high bus load

Wolfram Sang (1):
      of: fix autoloading due to broken modalias with no 'compatible'

Xiubo Li (1):
      kvm: Fix irq route entries exceeding KVM_MAX_IRQ_ROUTES

Yishai Hadas (3):
      IB/mlx4: Fix the SQ size of an RC QP
      IB/mlx4: Fix error flow when sending mads under SRIOV IB/mlx4: Verify port number in flow steering create flow

Yuchung Cheng (1):
      tcp: record TLP and ER timer stats in v6 stats

daniel (1):
      Bridge: Fix ipv6 mc snooping if bridge has no ipv6 address

lei liu (1):
      USB: serial: option: add more ZTE device ids

wang yanqing (1):
      rtlwifi: Fix logic error in enter/exit power-save mode

[email protected] (1):
      net: ehea: avoid null pointer dereference

Signature · 2 lines
Ben Hutchings
The program is absolutely right; therefore, the computer must be wrong.
Documentation/ABI/testing/sysfs-bus-iio-proximity-as3935 +1 -1
index 6708c5e264aa..33e96f740639 100644
@@ -1,4 +1,4 @@
-What		/sys/bus/iio/devices/iio:deviceX/in_proximity_raw
+What		/sys/bus/iio/devices/iio:deviceX/in_proximity_input
 Date:		March 2014
 KernelVersion:	3.15
 Contact:	Matt Ranostay <[email protected]>
Documentation/scsi/scsi_eh.txt +6 -2
index a0c85110a07e..689ab9b9953a 100644
@@ -263,19 +263,23 @@ scmd->allowed.
 
  3. scmd recovered
     ACTION: scsi_eh_finish_cmd() is invoked to EH-finish scmd
-	- shost->host_failed--
 	- clear scmd->eh_eflags
 	- scsi_setup_cmd_retry()
 	- move from local eh_work_q to local eh_done_q
     LOCKING: none
+    CONCURRENCY: at most one thread per separate eh_work_q to
+		 keep queue manipulation lockless
 
  4. EH completes
     ACTION: scsi_eh_flush_done_q() retries scmds or notifies upper
-	    layer of failure.
+	    layer of failure. May be called concurrently but must have
+	    a no more than one thread per separate eh_work_q to
+	    manipulate the queue locklessly
 	- scmd is removed from eh_done_q and scmd->eh_entry is cleared
 	- if retry is necessary, scmd is requeued using
           scsi_queue_insert()
 	- otherwise, scsi_finish_command() is invoked for scmd
+	- zero shost->host_failed
     LOCKING: queue or finish function performs appropriate locking
 
 
Documentation/serial/driver +1 -1
index 3bba1aeb799c..c86d002486f1 100644
@@ -28,7 +28,7 @@ The serial core provides a few helper functions.  This includes identifing
 the correct port structure (via uart_get_console) and decoding command line
 arguments (uart_parse_options).
 
-There is also a helper function (uart_write_console) which performs a
+There is also a helper function (uart_console_write) which performs a
 character by character write, translating newlines to CRLF sequences.
 Driver writers are recommended to use this function rather than implementing
 their own version.
Makefile +5 -4
index 50b4f93c0054..e49d13717d31 100644
@@ -1,6 +1,6 @@
 VERSION = 3
 PATCHLEVEL = 16
-SUBLEVEL = 36
+SUBLEVEL = 37
 EXTRAVERSION =
 NAME = Museum of Fishiegoodies
 
@@ -381,7 +381,7 @@ AFLAGS_MODULE   =
 LDFLAGS_MODULE  =
 CFLAGS_KERNEL	=
 AFLAGS_KERNEL	=
-CFLAGS_GCOV	= -fprofile-arcs -ftest-coverage
+CFLAGS_GCOV	= -fprofile-arcs -ftest-coverage -fno-tree-loop-im
 
 
 # Use USERINCLUDE when you must reference the UAPI directories only.
@@ -671,9 +671,10 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare)
 KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,)
 else
 
-# This warning generated too much noise in a regular build.
-# Use make W=1 to enable this warning (see scripts/Makefile.build)
+# These warnings generated too much noise in a regular build.
+# Use make W=1 to enable them (see scripts/Makefile.build)
 KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
+KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)
 endif
 
 ifdef CONFIG_FRAME_POINTER
arch/alpha/kernel/pci-sysfs.c +2 -2
index 99e8d4796c96..92c0d460815b 100644
@@ -77,10 +77,10 @@ static int pci_mmap_resource(struct kobject *kobj,
 	if (i >= PCI_ROM_RESOURCE)
 		return -ENODEV;
 
-	if (!__pci_mmap_fits(pdev, i, vma, sparse))
+	if (res->flags & IORESOURCE_MEM && iomem_is_exclusive(res->start))
 		return -EINVAL;
 
-	if (iomem_is_exclusive(res->start))
+	if (!__pci_mmap_fits(pdev, i, vma, sparse))
 		return -EINVAL;
 
 	pcibios_resource_to_bus(pdev->bus, &bar, res);
arch/arc/Makefile +0 -2
index 429279bc3028..e8f8b5133d4d 100644
@@ -35,8 +35,6 @@ cflags-$(atleast_gcc44)			+= -fsection-anchors
 cflags-$(CONFIG_ARC_HAS_LLSC)		+= -mlock
 cflags-$(CONFIG_ARC_HAS_SWAPE)		+= -mswape
 cflags-$(CONFIG_ARC_HAS_RTSC)		+= -mrtsc
-cflags-$(CONFIG_ARC_DW2_UNWIND)		+= -fasynchronous-unwind-tables
-
 # By default gcc 4.8 generates dwarf4 which kernel unwinder can't grok
 ifeq ($(atleast_gcc48),y)
 cflags-$(CONFIG_ARC_DW2_UNWIND)		+= -gdwarf-2
arch/arc/kernel/stacktrace.c +1 -1
index fb98769b6a98..3e349aefdb9e 100644
@@ -131,7 +131,7 @@ arc_unwind_core(struct task_struct *tsk, struct pt_regs *regs,
 	 * prelogue is setup (callee regs saved and then fp set and not other
 	 * way around
 	 */
-	pr_warn("CONFIG_ARC_DW2_UNWIND needs to be enabled\n");
+	pr_warn_once("CONFIG_ARC_DW2_UNWIND needs to be enabled\n");
 	return 0;
 
 #endif
arch/arm/boot/dts/Makefile +2 -0
index c04db0ae0895..160eda4cde48 100644
@@ -102,6 +102,7 @@ kirkwood := \
 	kirkwood-ds109.dtb \
 	kirkwood-ds110jv10.dtb \
 	kirkwood-ds111.dtb \
+	kirkwood-ds112.dtb \
 	kirkwood-ds209.dtb \
 	kirkwood-ds210.dtb \
 	kirkwood-ds212.dtb \
@@ -131,6 +132,7 @@ kirkwood := \
 	kirkwood-ns2mini.dtb \
 	kirkwood-nsa310.dtb \
 	kirkwood-nsa310a.dtb \
+	kirkwood-nsa320.dtb \
 	kirkwood-openblocks_a6.dtb \
 	kirkwood-openblocks_a7.dtb \
 	kirkwood-openrd-base.dtb \
arch/arm/boot/dts/exynos4210-trats.dts +2 -0
index f516da9e8b3a..37d434dcf25a 100644
@@ -188,6 +188,8 @@
 			compatible = "maxim,max8997-pmic";
 
 			reg = <0x66>;
+			interrupt-parent = <&gpx0>;
+			interrupts = <7 0>;
 
 			max8997,pmic-buck1-uses-gpio-dvs;
 			max8997,pmic-buck2-uses-gpio-dvs;
arch/arm/include/asm/pgtable-2level.h +1 -0
index 219ac88a9542..bed6c8fa54b5 100644
@@ -163,6 +163,7 @@ static inline pmd_t *pmd_offset(pud_t *pud, unsigned long addr)
 
 #define pmd_large(pmd)		(pmd_val(pmd) & 2)
 #define pmd_bad(pmd)		(pmd_val(pmd) & 2)
+#define pmd_present(pmd)	(pmd_val(pmd))
 
 #define copy_pmd(pmdpd,pmdps)		\
 	do {				\
arch/arm/include/asm/pgtable-3level.h +6 -2
index 06e0bc0f8b00..40d60a679fc8 100644
@@ -212,6 +212,7 @@ static inline pmd_t *pmd_offset(pud_t *pud, unsigned long addr)
 						: !!(pmd_val(pmd) & (val)))
 #define pmd_isclear(pmd, val)	(!(pmd_val(pmd) & (val)))
 
+#define pmd_present(pmd)	(pmd_isset((pmd), L_PMD_SECT_VALID))
 #define pmd_young(pmd)		(pmd_isset((pmd), PMD_SECT_AF))
 
 #define __HAVE_ARCH_PMD_WRITE
@@ -242,8 +243,11 @@ PMD_BIT_FUNC(mkyoung,   |= PMD_SECT_AF);
 #define pfn_pmd(pfn,prot)	(__pmd(((phys_addr_t)(pfn) << PAGE_SHIFT) | pgprot_val(prot)))
 #define mk_pmd(page,prot)	pfn_pmd(page_to_pfn(page),prot)
 
-/* represent a notpresent pmd by zero, this is used by pmdp_invalidate */
-#define pmd_mknotpresent(pmd)	(__pmd(0))
+/* represent a notpresent pmd by faulting entry, this is used by pmdp_invalidate */
+static inline pmd_t pmd_mknotpresent(pmd_t pmd)
+{
+	return __pmd(pmd_val(pmd) & ~L_PMD_SECT_VALID);
+}
 
 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot)
 {
arch/arm/include/asm/pgtable.h +0 -1
index 01baef07cd0c..38bbf1e2a9b6 100644
@@ -182,7 +182,6 @@ extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
 #define pgd_offset_k(addr)	pgd_offset(&init_mm, addr)
 
 #define pmd_none(pmd)		(!pmd_val(pmd))
-#define pmd_present(pmd)	(pmd_val(pmd))
 
 static inline pte_t *pmd_page_vaddr(pmd_t pmd)
 {
arch/arm/kernel/ptrace.c +1 -1
index 0c27ed6f3f23..a20ebfeac471 100644
@@ -733,8 +733,8 @@ static int vfp_set(struct task_struct *target,
 	if (ret)
 		return ret;
 
-	vfp_flush_hwstate(thread);
 	thread->vfpstate.hard = new_vfp;
+	vfp_flush_hwstate(thread);
 
 	return 0;
 }
arch/arm/kvm/arm.c +1 -0
index 17c7ac58f887..499b236873d2 100644
@@ -258,6 +258,7 @@ void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu)
 {
 	kvm_mmu_free_memory_caches(vcpu);
 	kvm_timer_vcpu_terminate(vcpu);
+	kvm_vcpu_uninit(vcpu);
 	kmem_cache_free(kvm_vcpu_cache, vcpu);
 }
 
arch/arm/kvm/mmu.c +11 -6
index c65db5d7ea92..c61da3e6a629 100644
@@ -682,11 +682,14 @@ static int stage2_set_pmd_huge(struct kvm *kvm, struct kvm_mmu_memory_cache
 	VM_BUG_ON(pmd_present(*pmd) && pmd_pfn(*pmd) != pmd_pfn(*new_pmd));
 
 	old_pmd = *pmd;
-	kvm_set_pmd(pmd, *new_pmd);
-	if (pmd_present(old_pmd))
+	if (pmd_present(old_pmd)) {
+		pmd_clear(pmd);
 		kvm_tlb_flush_vmid_ipa(kvm, addr);
-	else
+	} else {
 		get_page(virt_to_page(pmd));
+	}
+
+	kvm_set_pmd(pmd, *new_pmd);
 	return 0;
 }
 
@@ -723,12 +726,14 @@ static int stage2_set_pte(struct kvm *kvm, struct kvm_mmu_memory_cache *cache,
 
 	/* Create 2nd stage page table mapping - Level 3 */
 	old_pte = *pte;
-	kvm_set_pte(pte, *new_pte);
-	if (pte_present(old_pte))
+	if (pte_present(old_pte)) {
+		kvm_set_pte(pte, __pte(0));
 		kvm_tlb_flush_vmid_ipa(kvm, addr);
-	else
+	} else {
 		get_page(virt_to_page(pte));
+	}
 
+	kvm_set_pte(pte, *new_pte);
 	return 0;
 }
 
arch/arm/mach-omap2/gpmc.c +1 -1
index 8bc13380f0a0..2e57435c0775 100644
@@ -274,7 +274,7 @@ static void gpmc_cs_bool_timings(int cs, const struct gpmc_bool_timings *p)
 	gpmc_cs_modify_reg(cs, GPMC_CS_CONFIG4,
 			   GPMC_CONFIG4_OEEXTRADELAY, p->oe_extra_delay);
 	gpmc_cs_modify_reg(cs, GPMC_CS_CONFIG4,
-			   GPMC_CONFIG4_OEEXTRADELAY, p->we_extra_delay);
+			   GPMC_CONFIG4_WEEXTRADELAY, p->we_extra_delay);
 	gpmc_cs_modify_reg(cs, GPMC_CS_CONFIG6,
 			   GPMC_CONFIG6_CYCLE2CYCLESAMECSEN,
 			   p->cycle2cyclesamecsen);
arch/arm/mach-omap2/omap_hwmod.c +6 -6
index 6849ae81a560..a0ec4616d7a5 100644
@@ -2263,15 +2263,15 @@ static int _idle(struct omap_hwmod *oh)
 {
 	pr_debug("omap_hwmod: %s: idling\n", oh->name);
 
+	if (_are_all_hardreset_lines_asserted(oh))
+		return 0;
+
 	if (oh->_state != _HWMOD_STATE_ENABLED) {
 		WARN(1, "omap_hwmod: %s: idle state can only be entered from enabled state\n",
 			oh->name);
 		return -EINVAL;
 	}
 
-	if (_are_all_hardreset_lines_asserted(oh))
-		return 0;
-
 	if (oh->class->sysc)
 		_idle_sysc(oh);
 	_del_initiator_dep(oh, mpu_oh);
@@ -2318,6 +2318,9 @@ static int _shutdown(struct omap_hwmod *oh)
 	int ret, i;
 	u8 prev_state;
 
+	if (_are_all_hardreset_lines_asserted(oh))
+		return 0;
+
 	if (oh->_state != _HWMOD_STATE_IDLE &&
 	    oh->_state != _HWMOD_STATE_ENABLED) {
 		WARN(1, "omap_hwmod: %s: disabled state can only be entered from idle, or enabled state\n",
@@ -2325,9 +2328,6 @@ static int _shutdown(struct omap_hwmod *oh)
 		return -EINVAL;
 	}
 
-	if (_are_all_hardreset_lines_asserted(oh))
-		return 0;
-
 	pr_debug("omap_hwmod: %s: disabling\n", oh->name);
 
 	if (oh->class->pre_shutdown) {
arch/arm64/include/asm/elf.h +2 -2
index 01d3aab64b79..2009daf52bf1 100644
@@ -161,14 +161,14 @@ struct mm_struct;
 extern unsigned long arch_randomize_brk(struct mm_struct *mm);
 #define arch_randomize_brk arch_randomize_brk
 
-#ifdef CONFIG_COMPAT
-
 #ifdef __AARCH64EB__
 #define COMPAT_ELF_PLATFORM		("v8b")
 #else
 #define COMPAT_ELF_PLATFORM		("v8l")
 #endif
 
+#ifdef CONFIG_COMPAT
+
 #define COMPAT_ELF_ET_DYN_BASE		(randomize_et_dyn(2 * TASK_SIZE_32 / 3))
 
 /* AArch32 registers. */
arch/arm64/include/asm/pgtable-hwdef.h +0 -1
index 955e8c5f0afb..1696c1312462 100644
@@ -45,7 +45,6 @@
  * Section
  */
 #define PMD_SECT_VALID		(_AT(pmdval_t, 1) << 0)
-#define PMD_SECT_PROT_NONE	(_AT(pmdval_t, 1) << 58)
 #define PMD_SECT_USER		(_AT(pmdval_t, 1) << 6)		/* AP[1] */
 #define PMD_SECT_RDONLY		(_AT(pmdval_t, 1) << 7)		/* AP[2] */
 #define PMD_SECT_S		(_AT(pmdval_t, 3) << 8)
arch/arm64/include/asm/pgtable.h +2 -2
index 2a1508cdead0..7b2b696a1b8c 100644
@@ -250,6 +250,7 @@ static inline pmd_t pte_pmd(pte_t pte)
 #define pmd_trans_splitting(pmd)	pte_special(pmd_pte(pmd))
 #endif
 
+#define pmd_present(pmd)	pte_present(pmd_pte(pmd))
 #define pmd_young(pmd)		pte_young(pmd_pte(pmd))
 #define pmd_wrprotect(pmd)	pte_pmd(pte_wrprotect(pmd_pte(pmd)))
 #define pmd_mksplitting(pmd)	pte_pmd(pte_mkspecial(pmd_pte(pmd)))
@@ -257,7 +258,7 @@ static inline pmd_t pte_pmd(pte_t pte)
 #define pmd_mkwrite(pmd)	pte_pmd(pte_mkwrite(pmd_pte(pmd)))
 #define pmd_mkdirty(pmd)	pte_pmd(pte_mkdirty(pmd_pte(pmd)))
 #define pmd_mkyoung(pmd)	pte_pmd(pte_mkyoung(pmd_pte(pmd)))
-#define pmd_mknotpresent(pmd)	(__pmd(pmd_val(pmd) & ~PMD_TYPE_MASK))
+#define pmd_mknotpresent(pmd)	(__pmd(pmd_val(pmd) & ~PMD_SECT_VALID))
 
 #define __HAVE_ARCH_PMD_WRITE
 #define pmd_write(pmd)		pte_write(pmd_pte(pmd))
@@ -294,7 +295,6 @@ extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
 				     unsigned long size, pgprot_t vma_prot);
 
 #define pmd_none(pmd)		(!pmd_val(pmd))
-#define pmd_present(pmd)	(pmd_val(pmd))
 
 #define pmd_bad(pmd)		(!(pmd_val(pmd) & 2))
 
arch/arm64/kernel/setup.c +9 -2
index 5da0da6e7cf0..528942d8db3a 100644
@@ -44,6 +44,8 @@
 #include <linux/of_platform.h>
 #include <linux/efi.h>
 #include <linux/personality.h>
+#include <linux/compat.h>
+#include <linux/elf.h>
 
 #include <asm/fixmap.h>
 #include <asm/cputype.h>
@@ -481,13 +483,15 @@ static const char *compat_hwcap_str[] = {
 	"idivt",
 	"vfpd32",
 	"lpae",
-	"evtstrm"
+	"evtstrm",
+	NULL
 };
 #endif /* CONFIG_COMPAT */
 
 static int c_show(struct seq_file *m, void *v)
 {
 	int i, j;
+	bool compat = personality(current->personality) == PER_LINUX32;
 
 	for_each_online_cpu(i) {
 		struct cpuinfo_arm64 *cpuinfo = &per_cpu(cpu_data, i);
@@ -499,6 +503,9 @@ static int c_show(struct seq_file *m, void *v)
 		 * "processor".  Give glibc what it expects.
 		 */
 #ifdef CONFIG_SMP
+		if (compat)
+			seq_printf(m, "model name\t: ARMv8 Processor rev %d (%s)\n",
+				   midr & 0xf, COMPAT_ELF_PLATFORM);
 		seq_printf(m, "processor\t: %d\n", i);
 #endif
 
@@ -513,7 +520,7 @@ static int c_show(struct seq_file *m, void *v)
 		 * software which does already (at least for 32-bit).
 		 */
 		seq_puts(m, "Features\t:");
-		if (personality(current->personality) == PER_LINUX32) {
+		if (compat) {
 #ifdef CONFIG_COMPAT
 			for (j = 0; compat_hwcap_str[j]; j++)
 				if (compat_elf_hwcap & (1 << j))
arch/arm64/mm/flush.c +0 -4
index 0d64089d28b5..112cf05691c0 100644
@@ -74,10 +74,6 @@ void __sync_icache_dcache(pte_t pte, unsigned long addr)
 {
 	struct page *page = pte_page(pte);
 
-	/* no flushing needed for anonymous pages */
-	if (!page_mapping(page))
-		return;
-
 	if (!test_and_set_bit(PG_dcache_clean, &page->flags)) {
 		__flush_dcache_area(page_address(page),
 				PAGE_SIZE << compound_order(page));
arch/mips/ath79/early_printk.c +4 -2
index b955fafc58ba..d1adc59af5bf 100644
@@ -31,13 +31,15 @@ static inline void prom_putchar_wait(void __iomem *reg, u32 mask, u32 val)
 	} while (1);
 }
 
+#define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)
+
 static void prom_putchar_ar71xx(unsigned char ch)
 {
 	void __iomem *base = (void __iomem *)(KSEG1ADDR(AR71XX_UART_BASE));
 
-	prom_putchar_wait(base + UART_LSR * 4, UART_LSR_THRE, UART_LSR_THRE);
+	prom_putchar_wait(base + UART_LSR * 4, BOTH_EMPTY, BOTH_EMPTY);
 	__raw_writel(ch, base + UART_TX * 4);
-	prom_putchar_wait(base + UART_LSR * 4, UART_LSR_THRE, UART_LSR_THRE);
+	prom_putchar_wait(base + UART_LSR * 4, BOTH_EMPTY, BOTH_EMPTY);
 }
 
 static void prom_putchar_ar933x(unsigned char ch)
arch/mips/include/asm/cacheflush.h +23 -15
index e08381a37f8b..723229f4cf27 100644
@@ -29,6 +29,20 @@
  *  - flush_icache_all() flush the entire instruction cache
  *  - flush_data_cache_page() flushes a page from the data cache
  */
+
+ /*
+ * This flag is used to indicate that the page pointed to by a pte
+ * is dirty and requires cleaning before returning it to the user.
+ */
+#define PG_dcache_dirty			PG_arch_1
+
+#define Page_dcache_dirty(page)		\
+	test_bit(PG_dcache_dirty, &(page)->flags)
+#define SetPageDcacheDirty(page)	\
+	set_bit(PG_dcache_dirty, &(page)->flags)
+#define ClearPageDcacheDirty(page)	\
+	clear_bit(PG_dcache_dirty, &(page)->flags)
+
 extern void (*flush_cache_all)(void);
 extern void (*__flush_cache_all)(void);
 extern void (*flush_cache_mm)(struct mm_struct *mm);
@@ -37,13 +51,15 @@ extern void (*flush_cache_range)(struct vm_area_struct *vma,
 	unsigned long start, unsigned long end);
 extern void (*flush_cache_page)(struct vm_area_struct *vma, unsigned long page, unsigned long pfn);
 extern void __flush_dcache_page(struct page *page);
+extern void __flush_icache_page(struct vm_area_struct *vma, struct page *page);
 
 #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1
 static inline void flush_dcache_page(struct page *page)
 {
-	if (cpu_has_dc_aliases || !cpu_has_ic_fills_f_dc)
+	if (cpu_has_dc_aliases)
 		__flush_dcache_page(page);
-
+	else if (!cpu_has_ic_fills_f_dc)
+		SetPageDcacheDirty(page);
 }
 
 #define flush_dcache_mmap_lock(mapping)		do { } while (0)
@@ -61,6 +77,11 @@ static inline void flush_anon_page(struct vm_area_struct *vma,
 static inline void flush_icache_page(struct vm_area_struct *vma,
 	struct page *page)
 {
+	if (!cpu_has_ic_fills_f_dc && (vma->vm_flags & VM_EXEC) &&
+	    Page_dcache_dirty(page)) {
+		__flush_icache_page(vma, page);
+		ClearPageDcacheDirty(page);
+	}
 }
 
 extern void (*flush_icache_range)(unsigned long start, unsigned long end);
@@ -95,19 +116,6 @@ extern void (*flush_icache_all)(void);
 extern void (*local_flush_data_cache_page)(void * addr);
 extern void (*flush_data_cache_page)(unsigned long addr);
 
-/*
- * This flag is used to indicate that the page pointed to by a pte
- * is dirty and requires cleaning before returning it to the user.
- */
-#define PG_dcache_dirty			PG_arch_1
-
-#define Page_dcache_dirty(page)		\
-	test_bit(PG_dcache_dirty, &(page)->flags)
-#define SetPageDcacheDirty(page)	\
-	set_bit(PG_dcache_dirty, &(page)->flags)
-#define ClearPageDcacheDirty(page)	\
-	clear_bit(PG_dcache_dirty, &(page)->flags)
-
 /* Run kernel code uncached, useful for cache probing functions. */
 unsigned long run_uncached(void *func);
 
arch/mips/include/asm/kvm_host.h +1 -1
index 5a8defbad431..5bddbc63fc3b 100644
@@ -718,7 +718,7 @@ extern enum emulation_result kvm_mips_complete_mmio_load(struct kvm_vcpu *vcpu,
 
 uint32_t kvm_mips_read_count(struct kvm_vcpu *vcpu);
 void kvm_mips_write_count(struct kvm_vcpu *vcpu, uint32_t count);
-void kvm_mips_write_compare(struct kvm_vcpu *vcpu, uint32_t compare);
+void kvm_mips_write_compare(struct kvm_vcpu *vcpu, uint32_t compare, bool ack);
 void kvm_mips_init_count(struct kvm_vcpu *vcpu);
 int kvm_mips_set_count_ctl(struct kvm_vcpu *vcpu, s64 count_ctl);
 int kvm_mips_set_count_resume(struct kvm_vcpu *vcpu, s64 count_resume);
arch/mips/include/asm/msa.h +4 -4
index 538f6d482db8..d2227285383f 100644
@@ -112,10 +112,10 @@ static inline unsigned int read_msa_##name(void)		\
 	"	.set	push\n"					\
 	"	.set	noat\n"					\
 	"	.insn\n"					\
-	"	.word	#CFC_MSA_INSN | (" #cs " << 11)\n"	\
+	"	.word	%1 | (" #cs " << 11)\n"			\
 	"	move	%0, $1\n"				\
 	"	.set	pop\n"					\
-	: "=r"(reg));						\
+	: "=r"(reg) : "i"(CFC_MSA_INSN));			\
 	return reg;						\
 }								\
 								\
@@ -126,9 +126,9 @@ static inline void write_msa_##name(unsigned int val)		\
 	"	.set	noat\n"					\
 	"	move	$1, %0\n"				\
 	"	.insn\n"					\
-	"	.word	#CTC_MSA_INSN | (" #cs " << 6)\n"	\
+	"	.word	%1 | (" #cs " << 6)\n"			\
 	"	.set	pop\n"					\
-	: : "r"(val));						\
+	: : "r"(val), "i"(CTC_MSA_INSN));			\
 }
 
 #endif /* !TOOLCHAIN_SUPPORTS_MSA */
arch/mips/include/asm/pgtable.h +32 -13

52 lines not on this page · raw message

arch/mips/include/uapi/asm/siginfo.h +9 -9
index e81174432bab..6e1218ae916c 100644
@@ -48,13 +48,13 @@ typedef struct siginfo {
 
 		/* kill() */
 		struct {
-			pid_t _pid;		/* sender's pid */
+			__kernel_pid_t _pid;	/* sender's pid */
 			__ARCH_SI_UID_T _uid;	/* sender's uid */
 		} _kill;
 
 		/* POSIX.1b timers */
 		struct {
-			timer_t _tid;		/* timer id */
+			__kernel_timer_t _tid;	/* timer id */
 			int _overrun;		/* overrun count */
 			char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)];
 			sigval_t _sigval;	/* same as below */
@@ -63,26 +63,26 @@ typedef struct siginfo {
 
 		/* POSIX.1b signals */
 		struct {
-			pid_t _pid;		/* sender's pid */
+			__kernel_pid_t _pid;	/* sender's pid */
 			__ARCH_SI_UID_T _uid;	/* sender's uid */
 			sigval_t _sigval;
 		} _rt;
 
 		/* SIGCHLD */
 		struct {
-			pid_t _pid;		/* which child */
+			__kernel_pid_t _pid;	/* which child */
 			__ARCH_SI_UID_T _uid;	/* sender's uid */
 			int _status;		/* exit code */
-			clock_t _utime;
-			clock_t _stime;
+			__kernel_clock_t _utime;
+			__kernel_clock_t _stime;
 		} _sigchld;
 
 		/* IRIX SIGCHLD */
 		struct {
-			pid_t _pid;		/* which child */
-			clock_t _utime;
+			__kernel_pid_t _pid;	/* which child */
+			__kernel_clock_t _utime;
 			int _status;		/* exit code */
-			clock_t _stime;
+			__kernel_clock_t _stime;
 		} _irix_sigchld;
 
 		/* SIGILL, SIGFPE, SIGSEGV, SIGBUS */
arch/mips/kernel/bmips_vec.S +7 -2
index 290c23b51678..d4614d31d828 100644
@@ -93,7 +93,8 @@ NESTED(bmips_reset_nmi_vec, PT_SIZE, sp)
 #if defined(CONFIG_CPU_BMIPS5000)
 	mfc0	k0, CP0_PRID
 	li	k1, PRID_IMP_BMIPS5000
-	andi	k0, 0xff00
+	/* mask with PRID_IMP_BMIPS5000 to cover both variants */
+	andi	k0, PRID_IMP_BMIPS5000
 	bne	k0, k1, 1f
 
 	/* if we're not on core 0, this must be the SMP boot signal */
@@ -166,10 +167,12 @@ bmips_smp_entry:
 2:
 #endif /* CONFIG_CPU_BMIPS4350 || CONFIG_CPU_BMIPS4380 */
 #if defined(CONFIG_CPU_BMIPS5000)
-	/* set exception vector base */
+	/* mask with PRID_IMP_BMIPS5000 to cover both variants */
 	li	k1, PRID_IMP_BMIPS5000
+	andi	k0, PRID_IMP_BMIPS5000
 	bne	k0, k1, 3f
 
+	/* set exception vector base */
 	la	k0, ebase
 	lw	k0, 0(k0)
 	mtc0	k0, $15, 1
@@ -264,6 +267,8 @@ LEAF(bmips_enable_xks01)
 #endif /* CONFIG_CPU_BMIPS4380 */
 #if defined(CONFIG_CPU_BMIPS5000)
 	li	t1, PRID_IMP_BMIPS5000
+	/* mask with PRID_IMP_BMIPS5000 to cover both variants */
+	andi	t2, PRID_IMP_BMIPS5000
 	bne	t2, t1, 2f
 
 	mfc0	t0, $22, 5
arch/mips/kernel/process.c +1 -1
index 0a1ec0f3beff..f206dd3c1b4f 100644
@@ -489,7 +489,7 @@ unsigned long notrace unwind_stack_by_address(unsigned long stack_page,
 		    *sp + sizeof(*regs) <= stack_page + THREAD_SIZE - 32) {
 			regs = (struct pt_regs *)*sp;
 			pc = regs->cp0_epc;
-			if (__kernel_text_address(pc)) {
+			if (!user_mode(regs) && __kernel_text_address(pc)) {
 				*sp = regs->regs[29];
 				*ra = regs->regs[31];
 				return pc;
arch/mips/kernel/traps.c +1 -1
index bdf9139fd92b..2868b3927cb4 100644
@@ -140,7 +140,7 @@ static void show_backtrace(struct task_struct *task, const struct pt_regs *regs)
 	if (!task)
 		task = current;
 
-	if (raw_show_trace || !__kernel_text_address(pc)) {
+	if (raw_show_trace || user_mode(regs) || !__kernel_text_address(pc)) {
 		show_raw_backtrace(sp);
 		return;
 	}
arch/mips/kvm/kvm_mips_emul.c +50 -39

134 lines not on this page · raw message

arch/mips/kvm/kvm_trap_emul.c +1 -1
index 0c521c356553..69c605e9d201 100644
@@ -451,7 +451,7 @@ static int kvm_trap_emul_set_one_reg(struct kvm_vcpu *vcpu,
 		kvm_mips_write_count(vcpu, v);
 		break;
 	case KVM_REG_MIPS_CP0_COMPARE:
-		kvm_mips_write_compare(vcpu, v);
+		kvm_mips_write_compare(vcpu, v, false);
 		break;
 	case KVM_REG_MIPS_CP0_CAUSE:
 		/*
arch/mips/math-emu/cp1emu.c +5 -3
index 51a0fde4bec1..bc5ab0dbdf91 100644
@@ -443,9 +443,11 @@ static int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
 	case spec_op:
 		switch (insn.r_format.func) {
 		case jalr_op:
-			regs->regs[insn.r_format.rd] =
-				regs->cp0_epc + dec_insn.pc_inc +
-				dec_insn.next_pc_inc;
+			if (insn.r_format.rd != 0) {
+				regs->regs[insn.r_format.rd] =
+					regs->cp0_epc + dec_insn.pc_inc +
+					dec_insn.next_pc_inc;
+			}
 			/* Fall through */
 		case jr_op:
 			*contpc = regs->regs[insn.r_format.rs];
arch/mips/mm/cache.c +12 -0
index f7b91d3a371d..77d96db8253c 100644
@@ -119,6 +119,18 @@ void __flush_anon_page(struct page *page, unsigned long vmaddr)
 
 EXPORT_SYMBOL(__flush_anon_page);
 
+void __flush_icache_page(struct vm_area_struct *vma, struct page *page)
+{
+	unsigned long addr;
+
+	if (PageHighMem(page))
+		return;
+
+	addr = (unsigned long) page_address(page);
+	flush_data_cache_page(addr);
+}
+EXPORT_SYMBOL_GPL(__flush_icache_page);
+
 void __update_cache(struct vm_area_struct *vma, unsigned long address,
 	pte_t pte)
 {
arch/parisc/kernel/unaligned.c +9 -1
index d7c0acb35ec2..8d49614d600d 100644
@@ -666,7 +666,7 @@ void handle_unaligned(struct pt_regs *regs)
 		break;
 	}
 
-	if (modify && R1(regs->iir))
+	if (ret == 0 && modify && R1(regs->iir))
 		regs->gr[R1(regs->iir)] = newbase;
 
 
@@ -677,6 +677,14 @@ void handle_unaligned(struct pt_regs *regs)
 
 	if (ret)
 	{
+		/*
+		 * The unaligned handler failed.
+		 * If we were called by __get_user() or __put_user() jump
+		 * to it's exception fixup handler instead of crashing.
+		 */
+		if (!user_mode(regs) && fixup_exception(regs))
+			return;
+
 		printk(KERN_CRIT "Unaligned handler failed, ret = %d\n", ret);
 		die_if_kernel("Unaligned data reference", regs, 28);
 
arch/powerpc/Kconfig +1 -1
index 80b94b0add1f..5ff5ab0411b3 100644
@@ -124,7 +124,7 @@ config PPC
 	select IRQ_FORCED_THREADING
 	select HAVE_RCU_TABLE_FREE if SMP
 	select HAVE_SYSCALL_TRACEPOINTS
-	select HAVE_BPF_JIT if PPC64
+	select HAVE_BPF_JIT if PPC64 && CPU_BIG_ENDIAN
 	select HAVE_ARCH_JUMP_LABEL
 	select ARCH_HAVE_NMI_SAFE_CMPXCHG
 	select GENERIC_SMP_IDLE_THREAD
arch/powerpc/include/asm/reg.h +3 -3
index c34b2d302f0e..5df8e5cde4a6 100644
@@ -704,7 +704,7 @@
 #define   MMCR0_FCWAIT	0x00000002UL /* freeze counter in WAIT state */
 #define   MMCR0_FCHV	0x00000001UL /* freeze conditions in hypervisor mode */
 #define SPRN_MMCR1	798
-#define SPRN_MMCR2	769
+#define SPRN_MMCR2	785
 #define SPRN_MMCRA	0x312
 #define   MMCRA_SDSYNC	0x80000000UL /* SDAR synced with SIAR */
 #define   MMCRA_SDAR_DCACHE_MISS 0x40000000UL
@@ -740,13 +740,13 @@
 #define SPRN_PMC6	792
 #define SPRN_PMC7	793
 #define SPRN_PMC8	794
-#define SPRN_SIAR	780
-#define SPRN_SDAR	781
 #define SPRN_SIER	784
 #define   SIER_SIPR		0x2000000	/* Sampled MSR_PR */
 #define   SIER_SIHV		0x1000000	/* Sampled MSR_HV */
 #define   SIER_SIAR_VALID	0x0400000	/* SIAR contents valid */
 #define   SIER_SDAR_VALID	0x0200000	/* SDAR contents valid */
+#define SPRN_SIAR	796
+#define SPRN_SDAR	797
 #define SPRN_TACR	888
 #define SPRN_TCSCR	889
 #define SPRN_CSIGR	890
arch/powerpc/kernel/exceptions-64s.S +11 -5
index 246740cc796e..9ff25dcbfb87 100644
@@ -965,11 +965,6 @@ hv_facility_unavailable_relon_trampoline:
 #endif
 	STD_RELON_EXCEPTION_PSERIES(0x5700, 0x1700, altivec_assist)
 
-	/* Other future vectors */
-	.align	7
-	.globl	__end_interrupts
-__end_interrupts:
-
 	.align	7
 system_call_entry_direct:
 #if defined(CONFIG_RELOCATABLE)
@@ -1323,6 +1318,17 @@ __end_handlers:
 	STD_RELON_EXCEPTION_PSERIES_OOL(0xf60, facility_unavailable)
 	STD_RELON_EXCEPTION_HV_OOL(0xf80, hv_facility_unavailable)
 
+	/*
+	 * The __end_interrupts marker must be past the out-of-line (OOL)
+	 * handlers, so that they are copied to real address 0x100 when running
+	 * a relocatable kernel. This ensures they can be reached from the short
+	 * trampoline handlers (like 0x4f00, 0x4f20, etc.) which branch
+	 * directly, without using LOAD_HANDLER().
+	 */
+	.align	7
+	.globl	__end_interrupts
+__end_interrupts:
+
 #if defined(CONFIG_PPC_PSERIES) || defined(CONFIG_PPC_POWERNV)
 /*
  * Data area reserved for FWNMI option.
arch/powerpc/kernel/process.c +10 -0
index 7ecc2f9dfa86..9a084ab1b78d 100644
@@ -1237,6 +1237,16 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
 		current->thread.regs = regs - 1;
 	}
 
+#ifdef CONFIG_PPC_TRANSACTIONAL_MEM
+	/*
+	 * Clear any transactional state, we're exec()ing. The cause is
+	 * not important as there will never be a recheckpoint so it's not
+	 * user visible.
+	 */
+	if (MSR_TM_SUSPENDED(mfmsr()))
+		tm_reclaim_current(0);
+#endif
+
 	memset(regs->gpr, 0, sizeof(regs->gpr));
 	regs->ctr = 0;
 	regs->link = 0;
arch/powerpc/kernel/tm.S +44 -17

95 lines not on this page · raw message

arch/powerpc/kvm/book3s_hv_rmhandlers.S +250 -212

498 lines not on this page · raw message

arch/powerpc/mm/hash_utils_64.c +25 -4
index 88fdd9d25077..8089998dbca3 100644
@@ -1196,6 +1196,30 @@ bail:
 }
 EXPORT_SYMBOL_GPL(hash_page);
 
+#ifdef CONFIG_PPC_MM_SLICES
+static bool should_hash_preload(struct mm_struct *mm, unsigned long ea)
+{
+	int psize = get_slice_psize(mm, ea);
+
+	/* We only prefault standard pages for now */
+	if (unlikely(psize != mm->context.user_psize))
+		return false;
+
+	/*
+	 * Don't prefault if subpage protection is enabled for the EA.
+	 */
+	if (unlikely((psize == MMU_PAGE_4K) && subpage_protection(mm, ea)))
+		return false;
+
+	return true;
+}
+#else
+static bool should_hash_preload(struct mm_struct *mm, unsigned long ea)
+{
+	return true;
+}
+#endif
+
 void hash_preload(struct mm_struct *mm, unsigned long ea,
 		  unsigned long access, unsigned long trap)
 {
@@ -1208,11 +1232,8 @@ void hash_preload(struct mm_struct *mm, unsigned long ea,
 
 	BUG_ON(REGION_ID(ea) != USER_REGION_ID);
 
-#ifdef CONFIG_PPC_MM_SLICES
-	/* We only prefault standard pages for now */
-	if (unlikely(get_slice_psize(mm, ea) != mm->context.user_psize))
+	if (!should_hash_preload(mm, ea))
 		return;
-#endif
 
 	DBG_LOW("hash_preload(mm=%p, mm->pgdir=%p, ea=%016lx, access=%lx,"
 		" trap=%lx\n", mm, mm->pgd, ea, access, trap);
arch/powerpc/platforms/pseries/eeh_pseries.c +36 -15

65 lines not on this page · raw message

arch/powerpc/platforms/pseries/iommu.c +12 -12
index 78723292c883..ed874816d7f4 100644
@@ -826,7 +826,8 @@ machine_arch_initcall(pseries, find_existing_ddw_windows);
 static int query_ddw(struct pci_dev *dev, const u32 *ddw_avail,
 			struct ddw_query_response *query)
 {
-	struct eeh_dev *edev;
+	struct device_node *dn;
+	struct pci_dn *pdn;
 	u32 cfg_addr;
 	u64 buid;
 	int ret;
@@ -837,11 +838,10 @@ static int query_ddw(struct pci_dev *dev, const u32 *ddw_avail,
 	 * Retrieve them from the pci device, not the node with the
 	 * dma-window property
 	 */
-	edev = pci_dev_to_eeh_dev(dev);
-	cfg_addr = edev->config_addr;
-	if (edev->pe_config_addr)
-		cfg_addr = edev->pe_config_addr;
-	buid = edev->phb->buid;
+	dn = pci_device_to_OF_node(dev);
+	pdn = PCI_DN(dn);
+	buid = pdn->phb->buid;
+	cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8));
 
 	ret = rtas_call(ddw_avail[0], 3, 5, (u32 *)query,
 		  cfg_addr, BUID_HI(buid), BUID_LO(buid));
@@ -855,7 +855,8 @@ static int create_ddw(struct pci_dev *dev, const u32 *ddw_avail,
 			struct ddw_create_response *create, int page_shift,
 			int window_shift)
 {
-	struct eeh_dev *edev;
+	struct device_node *dn;
+	struct pci_dn *pdn;
 	u32 cfg_addr;
 	u64 buid;
 	int ret;
@@ -866,11 +867,10 @@ static int create_ddw(struct pci_dev *dev, const u32 *ddw_avail,
 	 * Retrieve them from the pci device, not the node with the
 	 * dma-window property
 	 */
-	edev = pci_dev_to_eeh_dev(dev);
-	cfg_addr = edev->config_addr;
-	if (edev->pe_config_addr)
-		cfg_addr = edev->pe_config_addr;
-	buid = edev->phb->buid;
+	dn = pci_device_to_OF_node(dev);
+	pdn = PCI_DN(dn);
+	buid = pdn->phb->buid;
+	cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8));
 
 	do {
 		/* extra outputs are LIOBN and dma-addr (hi, lo) */
arch/s390/include/asm/switch_to.h +1 -1
index 18ea9e3f8142..716df3a992d0 100644
@@ -28,7 +28,7 @@ static inline int test_fp_ctl(u32 fpc)
 		"	la	%0,0\n"
 		"1:\n"
 		EX_TABLE(0b,1b)
-		: "=d" (rc), "=d" (orig_fpc)
+		: "=d" (rc), "=&d" (orig_fpc)
 		: "d" (fpc), "0" (-EINVAL));
 	return rc;
 }
arch/s390/mm/vmem.c +1 -1
index fe9012a49aa5..4f0b2864fd76 100644
@@ -380,7 +380,7 @@ void __init vmem_map_init(void)
 	ro_end = (unsigned long)&_eshared & PAGE_MASK;
 	for_each_memblock(memory, reg) {
 		start = reg->base;
-		end = reg->base + reg->size - 1;
+		end = reg->base + reg->size;
 		if (start >= ro_end || end <= ro_start)
 			vmem_add_mem(start, end - start, 0);
 		else if (start >= ro_start && end <= ro_end)
arch/x86/boot/Makefile +3 -0
index dbe8dd2fe247..cd75e3e76efc 100644
@@ -156,6 +156,9 @@ isoimage: $(obj)/bzImage
 	for i in lib lib64 share end ; do \
 		if [ -f /usr/$$i/syslinux/isolinux.bin ] ; then \
 			cp /usr/$$i/syslinux/isolinux.bin $(obj)/isoimage ; \
+			if [ -f /usr/$$i/syslinux/ldlinux.c32 ]; then \
+				cp /usr/$$i/syslinux/ldlinux.c32 $(obj)/isoimage ; \
+			fi ; \
 			break ; \
 		fi ; \
 		if [ $$i = end ] ; then exit 1 ; fi ; \
arch/x86/kernel/amd_nb.c +2 -2
index f04dbb3069b8..29f0c55d6efc 100644
@@ -69,8 +69,8 @@ int amd_cache_northbridges(void)
 	while ((misc = next_northbridge(misc, amd_nb_misc_ids)) != NULL)
 		i++;
 
-	if (i == 0)
-		return 0;
+	if (!i)
+		return -ENODEV;
 
 	nb = kzalloc(i * sizeof(struct amd_northbridge), GFP_KERNEL);
 	if (!nb)
arch/x86/kernel/kprobes/core.c +12 -0
index f2e281cf8c19..a78aa118afc2 100644
@@ -931,7 +931,19 @@ int kprobe_fault_handler(struct pt_regs *regs, int trapnr)
 		 * normal page fault.
 		 */
 		regs->ip = (unsigned long)cur->addr;
+		/*
+		 * Trap flag (TF) has been set here because this fault
+		 * happened where the single stepping will be done.
+		 * So clear it by resetting the current kprobe:
+		 */
+		regs->flags &= ~X86_EFLAGS_TF;
+
+		/*
+		 * If the TF flag was set before the kprobe hit,
+		 * don't touch it:
+		 */
 		regs->flags |= kcb->kprobe_old_flags;
+
 		if (kcb->kprobe_status == KPROBE_REENTER)
 			restore_previous_kprobe(kcb);
 		else
arch/x86/kvm/x86.c +5 -0
index ba6f9822c474..4226d8fd93d1 100644
@@ -3069,6 +3069,11 @@ static int kvm_vcpu_ioctl_x86_set_debugregs(struct kvm_vcpu *vcpu,
 	if (dbgregs->flags)
 		return -EINVAL;
 
+	if (dbgregs->dr6 & ~0xffffffffull)
+		return -EINVAL;
+	if (dbgregs->dr7 & ~0xffffffffull)
+		return -EINVAL;
+
 	memcpy(vcpu->arch.db, dbgregs->db, sizeof(vcpu->arch.db));
 	vcpu->arch.dr6 = dbgregs->dr6;
 	kvm_update_dr6(vcpu);
arch/x86/pci/fixup.c +7 -0
index f16af96c60a2..156fbb69031c 100644
@@ -554,9 +554,16 @@ static void twinhead_reserve_killing_zone(struct pci_dev *dev)
 }
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x27B9, twinhead_reserve_killing_zone);
 
+/*
+ * Broadwell EP Home Agent BARs erroneously return non-zero values when read.
+ *
+ * See http://www.intel.com/content/www/us/en/processors/xeon/xeon-e5-v4-spec-update.html
+ * entry BDF2.
+ */
 static void pci_bdwep_bar(struct pci_dev *dev)
 {
 	dev->non_compliant_bars = 1;
 }
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x6f60, pci_bdwep_bar);
 DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x6fa0, pci_bdwep_bar);
 DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x6fc0, pci_bdwep_bar);
arch/x86/power/hibernate_64.c +85 -12

156 lines not on this page · raw message

arch/x86/power/hibernate_asm_64.S +24 -31

87 lines not on this page · raw message

block/blk-mq.c +1 -1
index 50dd29bc4972..31c4fa508e77 100644
@@ -1385,7 +1385,7 @@ static struct blk_mq_tags *blk_mq_init_rq_map(struct blk_mq_tag_set *set,
 		int to_do;
 		void *p;
 
-		while (left < order_to_size(this_order - 1) && this_order)
+		while (this_order && left < order_to_size(this_order - 1))
 			this_order--;
 
 		do {
block/ioprio.c +2 -0
index 31666c92b46a..563435684c3c 100644
@@ -149,8 +149,10 @@ static int get_task_ioprio(struct task_struct *p)
 	if (ret)
 		goto out;
 	ret = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, IOPRIO_NORM);
+	task_lock(p);
 	if (p->io_context)
 		ret = p->io_context->ioprio;
+	task_unlock(p);
 out:
 	return ret;
 }
crypto/asymmetric_keys/Kconfig +1 -0
index 03a6eb95ab50..f25fd337e81a 100644
@@ -14,6 +14,7 @@ config ASYMMETRIC_PUBLIC_KEY_SUBTYPE
 	select MPILIB
 	select PUBLIC_KEY_ALGO_RSA
 	select CRYPTO_HASH_INFO
+	select CRYPTO_AKCIPHER
 	help
 	  This option provides support for asymmetric public key type handling.
 	  If signature generation and/or verification are to be used,
drivers/acpi/acpi_processor.c +0 -9
index 1c085742644f..69af230636d6 100644
@@ -311,15 +311,6 @@ static int acpi_processor_get_info(struct acpi_device *device)
 		pr->throttling.duty_width = acpi_gbl_FADT.duty_width;
 
 		pr->pblk = object.processor.pblk_address;
-
-		/*
-		 * We don't care about error returns - we just try to mark
-		 * these reserved so that nobody else is confused into thinking
-		 * that this region might be unused..
-		 *
-		 * (In particular, allocating the IO range for Cardbus)
-		 */
-		request_region(pr->throttling.address, 6, "ACPI CPU throttle");
 	}
 
 	/*
drivers/acpi/processor_throttling.c +9 -0
index 84243c32e29c..f3df4b5e5fc9 100644
@@ -680,6 +680,15 @@ static int acpi_processor_get_throttling_fadt(struct acpi_processor *pr)
 	if (!pr->flags.throttling)
 		return -ENODEV;
 
+	/*
+	 * We don't care about error returns - we just try to mark
+	 * these reserved so that nobody else is confused into thinking
+	 * that this region might be unused..
+	 *
+	 * (In particular, allocating the IO range for Cardbus)
+	 */
+	request_region(pr->throttling.address, 6, "ACPI CPU throttle");
+
 	pr->throttling.state = 0;
 
 	duty_mask = pr->throttling.state_count - 1;
drivers/acpi/sysfs.c +3 -4
index 38cb9782d4b8..3454fce84515 100644
@@ -492,23 +492,22 @@ static void acpi_global_event_handler(u32 event_type, acpi_handle device,
 static int get_status(u32 index, acpi_event_status *status,
 		      acpi_handle *handle)
 {
-	int result = 0;
+	int result;
 
 	if (index >= num_gpes + ACPI_NUM_FIXED_EVENTS)
-		goto end;
+		return -EINVAL;
 
 	if (index < num_gpes) {
 		result = acpi_get_gpe_device(index, handle);
 		if (result) {
 			ACPI_EXCEPTION((AE_INFO, AE_NOT_FOUND,
 					"Invalid GPE 0x%x", index));
-			goto end;
+			return result;
 		}
 		result = acpi_get_gpe_status(*handle, index, status);
 	} else if (index < (num_gpes + ACPI_NUM_FIXED_EVENTS))
 		result = acpi_get_event_status(index - num_gpes, status);
 
-end:
 	return result;
 }
 
drivers/ata/libata-eh.c +1 -1
index 4ec95b76f6a1..0550c76f4e6c 100644
@@ -605,7 +605,7 @@ void ata_scsi_error(struct Scsi_Host *host)
 	ata_scsi_port_error_handler(host, ap);
 
 	/* finish or retry handled scmd's and clean up */
-	WARN_ON(host->host_failed || !list_empty(&eh_work_q));
+	WARN_ON(!list_empty(&eh_work_q));
 
 	DPRINTK("EXIT\n");
 }
drivers/ata/sata_dwc_460ex.c +1 -3
index 4ebaa1e7b2d3..5b25dbe78989 100644
@@ -1392,15 +1392,13 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
 					 struct ata_taskfile *tf,
 					 u8 tag, u32 cmd_issued)
 {
-	unsigned long flags;
 	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
 
 	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command,
 		ata_get_cmd_descript(tf->command), tag);
 
-	spin_lock_irqsave(&ap->host->lock, flags);
 	hsdevp->cmd_issued[tag] = cmd_issued;
-	spin_unlock_irqrestore(&ap->host->lock, flags);
+
 	/*
 	 * Clear SError before executing a new command.
 	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
drivers/base/isa.c +1 -1
index 91dba65d7264..cd6ccdcf9df0 100644
@@ -180,4 +180,4 @@ static int __init isa_bus_init(void)
 	return error;
 }
 
-device_initcall(isa_bus_init);
+postcore_initcall(isa_bus_init);
drivers/base/module.c +5 -3
index db930d3ee312..2a215780eda2 100644
@@ -24,10 +24,12 @@ static char *make_driver_name(struct device_driver *drv)
 
 static void module_create_drivers_dir(struct module_kobject *mk)
 {
-	if (!mk || mk->drivers_dir)
-		return;
+	static DEFINE_MUTEX(drivers_dir_mutex);
 
-	mk->drivers_dir = kobject_create_and_add("drivers", &mk->kobj);
+	mutex_lock(&drivers_dir_mutex);
+	if (mk && !mk->drivers_dir)
+		mk->drivers_dir = kobject_create_and_add("drivers", &mk->kobj);
+	mutex_unlock(&drivers_dir_mutex);
 }
 
 void module_add_driver(struct module *mod, struct device_driver *drv)
drivers/base/power/main.c +3 -2
index 1f6da3ad6db0..0f632958a4dd 100644
@@ -1247,14 +1247,15 @@ static int dpm_suspend_late(pm_message_t state)
 		error = device_suspend_late(dev);
 
 		mutex_lock(&dpm_list_mtx);
+		if (!list_empty(&dev->power.entry))
+			list_move(&dev->power.entry, &dpm_late_early_list);
+
 		if (error) {
 			pm_dev_err(dev, state, " late", error);
 			dpm_save_failed_dev(dev_name(dev));
 			put_device(dev);
 			break;
 		}
-		if (!list_empty(&dev->power.entry))
-			list_move(&dev->power.entry, &dpm_late_early_list);
 		put_device(dev);
 
 		if (async_error)
drivers/base/power/runtime.c +7 -2
index 67c7938e430b..f6f1f90e9448 100644
@@ -1474,11 +1474,16 @@ int pm_runtime_force_resume(struct device *dev)
 		goto out;
 	}
 
-	ret = callback(dev);
+	ret = pm_runtime_set_active(dev);
 	if (ret)
 		goto out;
 
-	pm_runtime_set_active(dev);
+	ret = callback(dev);
+	if (ret) {
+		pm_runtime_set_suspended(dev);
+		goto out;
+	}
+
 	pm_runtime_mark_last_busy(dev);
 out:
 	pm_runtime_enable(dev);
drivers/base/regmap/regcache.c +1 -1
index 5c1cc008af9e..3568186a77a7 100644
@@ -473,7 +473,7 @@ EXPORT_SYMBOL_GPL(regcache_mark_dirty);
  * regcache_cache_bypass: Put a register map into cache bypass mode
  *
  * @map: map to configure
- * @cache_bypass: flag if changes should not be written to the hardware
+ * @cache_bypass: flag if changes should not be written to the cache
  *
  * When a register map is marked with the cache bypass option, writes
  * to the register map API will only update the hardware and not the
drivers/bluetooth/hci_vhci.c +21 -7
index add1c6a72063..e26eb6b606e1 100644
@@ -50,6 +50,7 @@ struct vhci_data {
 	wait_queue_head_t read_wait;
 	struct sk_buff_head readq;
 
+	struct mutex open_mutex;
 	struct delayed_work open_timeout;
 };
 
@@ -95,11 +96,14 @@ static int vhci_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
 	return 0;
 }
 
-static int vhci_create_device(struct vhci_data *data, __u8 dev_type)
+static int __vhci_create_device(struct vhci_data *data, __u8 dev_type)
 {
 	struct hci_dev *hdev;
 	struct sk_buff *skb;
 
+	if (data->hdev)
+		return -EBADFD;
+
 	skb = bt_skb_alloc(4, GFP_KERNEL);
 	if (!skb)
 		return -ENOMEM;
@@ -140,6 +144,17 @@ static int vhci_create_device(struct vhci_data *data, __u8 dev_type)
 	return 0;
 }
 
+static int vhci_create_device(struct vhci_data *data, __u8 opcode)
+{
+	int err;
+
+	mutex_lock(&data->open_mutex);
+	err = __vhci_create_device(data, opcode);
+	mutex_unlock(&data->open_mutex);
+
+	return err;
+}
+
 static inline ssize_t vhci_get_user(struct vhci_data *data,
 				    const struct iovec *iov,
 				    unsigned long count)
@@ -183,11 +198,6 @@ static inline ssize_t vhci_get_user(struct vhci_data *data,
 		break;
 
 	case HCI_VENDOR_PKT:
-		if (data->hdev) {
-			kfree_skb(skb);
-			return -EBADFD;
-		}
-
 		cancel_delayed_work_sync(&data->open_timeout);
 
 		dev_type = *((__u8 *) skb->data);
@@ -318,6 +328,7 @@ static int vhci_open(struct inode *inode, struct file *file)
 	skb_queue_head_init(&data->readq);
 	init_waitqueue_head(&data->read_wait);
 
+	mutex_init(&data->open_mutex);
 	INIT_DELAYED_WORK(&data->open_timeout, vhci_open_timeout);
 
 	file->private_data = data;
@@ -331,15 +342,18 @@ static int vhci_open(struct inode *inode, struct file *file)
 static int vhci_release(struct inode *inode, struct file *file)
 {
 	struct vhci_data *data = file->private_data;
-	struct hci_dev *hdev = data->hdev;
+	struct hci_dev *hdev;
 
 	cancel_delayed_work_sync(&data->open_timeout);
 
+	hdev = data->hdev;
+
 	if (hdev) {
 		hci_unregister_dev(hdev);
 		hci_free_dev(hdev);
 	}
 
+	skb_queue_purge(&data->readq);
 	file->private_data = NULL;
 	kfree(data);
 
drivers/char/Kconfig +0 -1
index 6e9f74a5c095..f3a46b956abe 100644
@@ -575,7 +575,6 @@ config TELCLOCK
 
 config DEVPORT
 	bool
-	depends on !M68K
 	depends on ISA || PCI
 	default y
 
drivers/char/i8k.c +12 -7
index 93dcad0c1cbe..89d1284e67f0 100644
@@ -62,6 +62,7 @@
 
 static DEFINE_MUTEX(i8k_mutex);
 static char bios_version[4];
+static char bios_machineid[16];
 static struct device *i8k_hwmon_dev;
 static u32 i8k_hwmon_flags;
 static int i8k_fan_mult;
@@ -85,13 +86,13 @@ static bool ignore_dmi;
 module_param(ignore_dmi, bool, 0);
 MODULE_PARM_DESC(ignore_dmi, "Continue probing hardware even if DMI data does not match");
 
-static bool restricted;
+static bool restricted = true;
 module_param(restricted, bool, 0);
-MODULE_PARM_DESC(restricted, "Allow fan control if SYS_ADMIN capability set");
+MODULE_PARM_DESC(restricted, "Restrict fan control and serial number to CAP_SYS_ADMIN (default: 1)");
 
 static bool power_status;
 module_param(power_status, bool, 0600);
-MODULE_PARM_DESC(power_status, "Report power status in /proc/i8k");
+MODULE_PARM_DESC(power_status, "Report power status in /proc/i8k (default: 0)");
 
 static int fan_mult = I8K_FAN_MULT;
 module_param(fan_mult, int, 0);
@@ -350,9 +351,11 @@ i8k_ioctl_unlocked(struct file *fp, unsigned int cmd, unsigned long arg)
 		break;
 
 	case I8K_MACHINE_ID:
-		memset(buff, 0, 16);
-		strlcpy(buff, i8k_get_dmi_data(DMI_PRODUCT_SERIAL),
-			sizeof(buff));
+		if (restricted && !capable(CAP_SYS_ADMIN))
+			return -EPERM;
+
+		memset(buff, 0, sizeof(buff));
+		strlcpy(buff, bios_machineid, sizeof(buff));
 		break;
 
 	case I8K_FN_STATUS:
@@ -469,7 +472,7 @@ static int i8k_proc_show(struct seq_file *seq, void *offset)
 	return seq_printf(seq, "%s %s %s %d %d %d %d %d %d %d\n",
 			  I8K_PROC_FMT,
 			  bios_version,
-			  i8k_get_dmi_data(DMI_PRODUCT_SERIAL),
+			  (restricted && !capable(CAP_SYS_ADMIN)) ? "-1" : bios_machineid,
 			  cpu_temp,
 			  left_fan, right_fan, left_speed, right_speed,
 			  ac_power, fn_key);
@@ -765,6 +768,8 @@ static int __init i8k_probe(void)
 
 	strlcpy(bios_version, i8k_get_dmi_data(DMI_BIOS_VERSION),
 		sizeof(bios_version));
+	strlcpy(bios_machineid, i8k_get_dmi_data(DMI_PRODUCT_SERIAL),
+		sizeof(bios_machineid));
 
 	/*
 	 * Get SMM Dell signature
drivers/cpufreq/cpufreq_userspace.c +38 -5

95 lines not on this page · raw message

drivers/cpufreq/intel_pstate.c +5 -2
index dad4346189ae..087b5c32a6a1 100644
@@ -877,8 +877,11 @@ static int intel_pstate_cpu_init(struct cpufreq_policy *policy)
 
 	/* cpuinfo and default policy values */
 	policy->cpuinfo.min_freq = cpu->pstate.min_pstate * cpu->pstate.scaling;
-	policy->cpuinfo.max_freq =
-		cpu->pstate.turbo_pstate * cpu->pstate.scaling;
+	update_turbo_state();
+	policy->cpuinfo.max_freq = limits.turbo_disabled ?
+			cpu->pstate.max_pstate : cpu->pstate.turbo_pstate;
+	policy->cpuinfo.max_freq *= cpu->pstate.scaling;
+
 	policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
 	cpumask_set_cpu(policy->cpu, policy->cpus);
 
drivers/cpuidle/cpuidle.c +3 -1
index d3185606473a..4cfa952edafd 100644
@@ -125,7 +125,7 @@ int cpuidle_enter_state(struct cpuidle_device *dev, struct cpuidle_driver *drv,
 
 	time_end = ktime_get();
 
-	if (!cpuidle_state_is_coupled(dev, drv, entered_state))
+	if (!cpuidle_state_is_coupled(dev, drv, index))
 		local_irq_enable();
 
 	diff = ktime_to_us(ktime_sub(time_end, time_start));
@@ -347,6 +347,8 @@ static void __cpuidle_unregister_device(struct cpuidle_device *dev)
 	list_del(&dev->device_list);
 	per_cpu(cpuidle_devices, dev->cpu) = NULL;
 	module_put(drv->owner);
+
+	dev->registered = 0;
 }
 
 static void __cpuidle_device_init(struct cpuidle_device *dev)
drivers/crypto/caam/jr.c +1 -1
index b512a4ba7569..33308810d1b5 100644
@@ -244,7 +244,7 @@ static void caam_jr_dequeue(unsigned long devarg)
 struct device *caam_jr_alloc(void)
 {
 	struct caam_drv_private_jr *jrpriv, *min_jrpriv = NULL;
-	struct device *dev = NULL;
+	struct device *dev = ERR_PTR(-ENODEV);
 	int min_tfm_cnt	= INT_MAX;
 	int tfm_cnt;
 
drivers/crypto/ccp/ccp-crypto-aes-xts.c +12 -5
index 0cc5594b7de3..8b294c27c8b1 100644
@@ -123,6 +123,7 @@ static int ccp_aes_xts_crypt(struct ablkcipher_request *req,
 	struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm);
 	struct ccp_aes_req_ctx *rctx = ablkcipher_request_ctx(req);
 	unsigned int unit;
+	u32 unit_size;
 	int ret;
 
 	if (!ctx->u.aes.key_len)
@@ -134,11 +135,17 @@ static int ccp_aes_xts_crypt(struct ablkcipher_request *req,
 	if (!req->info)
 		return -EINVAL;
 
-	for (unit = 0; unit < ARRAY_SIZE(unit_size_map); unit++)
-		if (!(req->nbytes & (unit_size_map[unit].size - 1)))
-			break;
+	unit_size = CCP_XTS_AES_UNIT_SIZE__LAST;
+	if (req->nbytes <= unit_size_map[0].size) {
+		for (unit = 0; unit < ARRAY_SIZE(unit_size_map); unit++) {
+			if (!(req->nbytes & (unit_size_map[unit].size - 1))) {
+				unit_size = unit_size_map[unit].value;
+				break;
+			}
+		}
+	}
 
-	if ((unit_size_map[unit].value == CCP_XTS_AES_UNIT_SIZE__LAST) ||
+	if ((unit_size == CCP_XTS_AES_UNIT_SIZE__LAST) ||
 	    (ctx->u.aes.key_len != AES_KEYSIZE_128)) {
 		/* Use the fallback to process the request for any
 		 * unsupported unit sizes or key sizes
@@ -159,7 +166,7 @@ static int ccp_aes_xts_crypt(struct ablkcipher_request *req,
 	rctx->cmd.engine = CCP_ENGINE_XTS_AES_128;
 	rctx->cmd.u.xts.action = (encrypt) ? CCP_AES_ACTION_ENCRYPT
 					   : CCP_AES_ACTION_DECRYPT;
-	rctx->cmd.u.xts.unit_size = unit_size_map[unit].value;
+	rctx->cmd.u.xts.unit_size = unit_size;
 	rctx->cmd.u.xts.key = &ctx->u.aes.key_sg;
 	rctx->cmd.u.xts.key_len = ctx->u.aes.key_len;
 	rctx->cmd.u.xts.iv = &rctx->iv_sg;
drivers/crypto/s5p-sss.c +43 -18

127 lines not on this page · raw message

drivers/crypto/ux500/hash/hash_core.c +2 -2
index 8e5e0187506f..3ff21c3e9ab2 100644
@@ -797,7 +797,7 @@ static int hash_process_data(struct hash_device_data *device_data,
 						&device_data->state);
 				memmove(req_ctx->state.buffer,
 					device_data->state.buffer,
-					HASH_BLOCK_SIZE / sizeof(u32));
+					HASH_BLOCK_SIZE);
 				if (ret) {
 					dev_err(device_data->dev,
 						"%s: hash_resume_state() failed!\n",
@@ -848,7 +848,7 @@ static int hash_process_data(struct hash_device_data *device_data,
 
 			memmove(device_data->state.buffer,
 				req_ctx->state.buffer,
-				HASH_BLOCK_SIZE / sizeof(u32));
+				HASH_BLOCK_SIZE);
 			if (ret) {
 				dev_err(device_data->dev, "%s: hash_save_state() failed!\n",
 					__func__);
drivers/edac/edac_mc.c +1 -1
index 9e471c5e185b..6238143aa476 100644
@@ -962,7 +962,7 @@ static void edac_inc_ue_error(struct mem_ctl_info *mci,
 	mci->ue_mc += count;
 
 	if (!enable_per_layer_report) {
-		mci->ce_noinfo_count += count;
+		mci->ue_noinfo_count += count;
 		return;
 	}
 
drivers/gpio/gpio-bcm-kona.c +2 -2
index 3f6b33ce9bd4..39805c87034c 100644
@@ -549,11 +549,11 @@ static void bcm_kona_gpio_reset(struct bcm_kona_gpio *kona_gpio)
 	/* disable interrupts and clear status */
 	for (i = 0; i < kona_gpio->num_bank; i++) {
 		/* Unlock the entire bank first */
-		bcm_kona_gpio_write_lock_regs(kona_gpio, i, UNLOCK_CODE);
+		bcm_kona_gpio_write_lock_regs(reg_base, i, UNLOCK_CODE);
 		writel(0xffffffff, reg_base + GPIO_INT_MASK(i));
 		writel(0xffffffff, reg_base + GPIO_INT_STATUS(i));
 		/* Now re-lock the bank */
-		bcm_kona_gpio_write_lock_regs(kona_gpio, i, LOCK_CODE);
+		bcm_kona_gpio_write_lock_regs(reg_base, i, LOCK_CODE);
 	}
 }
 
drivers/gpu/drm/drm_fb_helper.c +2 -3
index 20e820c3abbb..a61dcb35606d 100644
@@ -1396,7 +1396,6 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper,
 			  int n, int width, int height)
 {
 	int c, o;
-	struct drm_device *dev = fb_helper->dev;
 	struct drm_connector *connector;
 	struct drm_connector_helper_funcs *connector_funcs;
 	struct drm_encoder *encoder;
@@ -1415,7 +1414,7 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper,
 	if (modes[n] == NULL)
 		return best_score;
 
-	crtcs = kzalloc(dev->mode_config.num_connector *
+	crtcs = kzalloc(fb_helper->connector_count *
 			sizeof(struct drm_fb_helper_crtc *), GFP_KERNEL);
 	if (!crtcs)
 		return best_score;
@@ -1461,7 +1460,7 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper,
 		if (score > best_score) {
 			best_score = score;
 			memcpy(best_crtcs, crtcs,
-			       dev->mode_config.num_connector *
+			       fb_helper->connector_count *
 			       sizeof(struct drm_fb_helper_crtc *));
 		}
 	}
drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c +1 -1
index 87885d8c06e8..4869117b69eb 100644
@@ -85,7 +85,7 @@ static const char *const dsi_errors[] = {
 	"RX Prot Violation",
 	"HS Generic Write FIFO Full",
 	"LP Generic Write FIFO Full",
-	"Generic Read Data Avail"
+	"Generic Read Data Avail",
 	"Special Packet Sent",
 	"Tearing Effect",
 };
drivers/gpu/drm/i915/i915_gem_context.c +12 -2
index 14f92644828a..c1dc47202021 100644
@@ -566,7 +566,7 @@ mi_set_context(struct intel_engine_cs *ring,
 
 	len = 4;
 	if (INTEL_INFO(ring->dev)->gen >= 7)
-		len += 2 + (num_rings ? 4*num_rings + 2 : 0);
+		len += 2 + (num_rings ? 4*num_rings + 6 : 0);
 
 	ret = intel_ring_begin(ring, len);
 	if (ret)
@@ -605,15 +605,25 @@ mi_set_context(struct intel_engine_cs *ring,
 	if (INTEL_INFO(ring->dev)->gen >= 7) {
 		if (num_rings) {
 			struct intel_engine_cs *signaller;
+			u32 last_reg = 0; /* keep gcc quiet */
 
 			intel_ring_emit(ring, MI_LOAD_REGISTER_IMM(num_rings));
 			for_each_ring(signaller, to_i915(ring->dev), i) {
 				if (signaller == ring)
 					continue;
 
-				intel_ring_emit(ring, RING_PSMI_CTL(signaller->mmio_base));
+				last_reg = RING_PSMI_CTL(signaller->mmio_base);
+				intel_ring_emit(ring, last_reg);
 				intel_ring_emit(ring, _MASKED_BIT_DISABLE(GEN6_PSMI_SLEEP_MSG_DISABLE));
 			}
+
+			/* Insert a delay before the next switch! */
+			intel_ring_emit(ring,
+					MI_STORE_REGISTER_MEM(1) |
+					MI_SRM_LRM_GLOBAL_GTT);
+			intel_ring_emit(ring, last_reg);
+			intel_ring_emit(ring, ring->scratch.gtt_offset);
+			intel_ring_emit(ring, MI_NOOP);
 		}
 		intel_ring_emit(ring, MI_ARB_ON_OFF | MI_ARB_ENABLE);
 	}
drivers/gpu/drm/i915/intel_display.c +34 -14

86 lines not on this page · raw message

drivers/gpu/drm/i915/intel_fbdev.c +3 -3
index 088fe9378a4c..6f859fff3bc4 100644
@@ -323,12 +323,12 @@ static bool intel_fb_initial_config(struct drm_fb_helper *fb_helper,
 			return false;
 	}
 
-	save_enabled = kcalloc(dev->mode_config.num_connector, sizeof(bool),
+	save_enabled = kcalloc(fb_helper->connector_count, sizeof(bool),
 			       GFP_KERNEL);
 	if (!save_enabled)
 		return false;
 
-	memcpy(save_enabled, enabled, dev->mode_config.num_connector);
+	memcpy(save_enabled, enabled, fb_helper->connector_count);
 
 	for (i = 0; i < fb_helper->connector_count; i++) {
 		struct drm_fb_helper_connector *fb_conn;
@@ -443,7 +443,7 @@ static bool intel_fb_initial_config(struct drm_fb_helper *fb_helper,
 out:
 	if (fallback) {
 		DRM_DEBUG_KMS("Not using firmware configuration\n");
-		memcpy(enabled, save_enabled, dev->mode_config.num_connector);
+		memcpy(enabled, save_enabled, fb_helper->connector_count);
 		kfree(save_enabled);
 		return false;
 	}
drivers/gpu/drm/i915/intel_pm.c +2 -0
index e6f131db18cc..700a7d068204 100644
@@ -2751,6 +2751,8 @@ static void ilk_pipe_wm_get_hw_state(struct drm_crtc *crtc)
 	if (IS_HASWELL(dev) || IS_BROADWELL(dev))
 		hw->wm_linetime[pipe] = I915_READ(PIPE_WM_LINETIME(pipe));
 
+	memset(active, 0, sizeof(*active));
+
 	active->pipe_enabled = intel_crtc_active(crtc);
 
 	if (active->pipe_enabled) {
drivers/gpu/drm/nouveau/nouveau_fbcon.c +1 -0
index b9d6bf22cc5a..f6cbc9f66c18 100644
@@ -562,6 +562,7 @@ nouveau_fbcon_init(struct drm_device *dev)
 	drm_helper_disable_unused_functions(dev);
 
 	drm_fb_helper_initial_config(&fbcon->helper, preferred_bpp);
+	fbcon->helper.fbdev->pixmap.buf_align = 4;
 	return 0;
 }
 
drivers/gpu/drm/nouveau/nv04_fbcon.c +2 -5
index 8fe32bbed99a..cf4ad5142f21 100644
@@ -84,7 +84,6 @@ nv04_fbcon_imageblit(struct fb_info *info, const struct fb_image *image)
 	uint32_t fg;
 	uint32_t bg;
 	uint32_t dsize;
-	uint32_t width;
 	uint32_t *data = (uint32_t *)image->data;
 	int ret;
 
@@ -95,9 +94,6 @@ nv04_fbcon_imageblit(struct fb_info *info, const struct fb_image *image)
 	if (ret)
 		return ret;
 
-	width = ALIGN(image->width, 8);
-	dsize = ALIGN(width * image->height, 32) >> 5;
-
 	if (info->fix.visual == FB_VISUAL_TRUECOLOR ||
 	    info->fix.visual == FB_VISUAL_DIRECTCOLOR) {
 		fg = ((uint32_t *) info->pseudo_palette)[image->fg_color];
@@ -113,10 +109,11 @@ nv04_fbcon_imageblit(struct fb_info *info, const struct fb_image *image)
 			 ((image->dx + image->width) & 0xffff));
 	OUT_RING(chan, bg);
 	OUT_RING(chan, fg);
-	OUT_RING(chan, (image->height << 16) | width);
+	OUT_RING(chan, (image->height << 16) | image->width);
 	OUT_RING(chan, (image->height << 16) | image->width);
 	OUT_RING(chan, (image->dy << 16) | (image->dx & 0xffff));
 
+	dsize = ALIGN(image->width * image->height, 32) >> 5;
 	while (dsize) {
 		int iter_len = dsize > 128 ? 128 : dsize;
 
drivers/gpu/drm/nouveau/nv50_fbcon.c +2 -4
index 52068a0910dc..3860b7443e90 100644
@@ -95,7 +95,7 @@ nv50_fbcon_imageblit(struct fb_info *info, const struct fb_image *image)
 	struct nouveau_fbdev *nfbdev = info->par;
 	struct nouveau_drm *drm = nouveau_drm(nfbdev->dev);
 	struct nouveau_channel *chan = drm->channel;
-	uint32_t width, dwords, *data = (uint32_t *)image->data;
+	uint32_t dwords, *data = (uint32_t *)image->data;
 	uint32_t mask = ~(~0 >> (32 - info->var.bits_per_pixel));
 	uint32_t *palette = info->pseudo_palette;
 	int ret;
@@ -107,9 +107,6 @@ nv50_fbcon_imageblit(struct fb_info *info, const struct fb_image *image)
 	if (ret)
 		return ret;
 
-	width = ALIGN(image->width, 32);
-	dwords = (width * image->height) >> 5;
-
 	BEGIN_NV04(chan, NvSub2D, 0x0814, 2);
 	if (info->fix.visual == FB_VISUAL_TRUECOLOR ||
 	    info->fix.visual == FB_VISUAL_DIRECTCOLOR) {
@@ -128,6 +125,7 @@ nv50_fbcon_imageblit(struct fb_info *info, const struct fb_image *image)
 	OUT_RING(chan, 0);
 	OUT_RING(chan, image->dy);
 
+	dwords = ALIGN(image->width * image->height, 32) >> 5;
 	while (dwords) {
 		int push = dwords > 2047 ? 2047 : dwords;
 
drivers/gpu/drm/nouveau/nvc0_fbcon.c +2 -4
index 9dcd30f3e1e0..fff0a1a33df0 100644
@@ -95,7 +95,7 @@ nvc0_fbcon_imageblit(struct fb_info *info, const struct fb_image *image)
 	struct nouveau_fbdev *nfbdev = info->par;
 	struct nouveau_drm *drm = nouveau_drm(nfbdev->dev);
 	struct nouveau_channel *chan = drm->channel;
-	uint32_t width, dwords, *data = (uint32_t *)image->data;
+	uint32_t dwords, *data = (uint32_t *)image->data;
 	uint32_t mask = ~(~0 >> (32 - info->var.bits_per_pixel));
 	uint32_t *palette = info->pseudo_palette;
 	int ret;
@@ -107,9 +107,6 @@ nvc0_fbcon_imageblit(struct fb_info *info, const struct fb_image *image)
 	if (ret)
 		return ret;
 
-	width = ALIGN(image->width, 32);
-	dwords = (width * image->height) >> 5;
-
 	BEGIN_NVC0(chan, NvSub2D, 0x0814, 2);
 	if (info->fix.visual == FB_VISUAL_TRUECOLOR ||
 	    info->fix.visual == FB_VISUAL_DIRECTCOLOR) {
@@ -128,6 +125,7 @@ nvc0_fbcon_imageblit(struct fb_info *info, const struct fb_image *image)
 	OUT_RING  (chan, 0);
 	OUT_RING  (chan, image->dy);
 
+	dwords = ALIGN(image->width * image->height, 32) >> 5;
 	while (dwords) {
 		int push = dwords > 2047 ? 2047 : dwords;
 
drivers/gpu/drm/radeon/radeon_device.c +21 -0
index e8122c91edcf..821c86bc70c2 100644
@@ -598,6 +598,23 @@ void radeon_gtt_location(struct radeon_device *rdev, struct radeon_mc *mc)
 /*
  * GPU helpers function.
  */
+
+/**
+ * radeon_device_is_virtual - check if we are running is a virtual environment
+ *
+ * Check if the asic has been passed through to a VM (all asics).
+ * Used at driver startup.
+ * Returns true if virtual or false if not.
+ */
+static bool radeon_device_is_virtual(void)
+{
+#ifdef CONFIG_X86
+	return boot_cpu_has(X86_FEATURE_HYPERVISOR);
+#else
+	return false;
+#endif
+}
+
 /**
  * radeon_card_posted - check if the hw has already been initialized
  *
@@ -611,6 +628,10 @@ bool radeon_card_posted(struct radeon_device *rdev)
 {
 	uint32_t reg;
 
+	/* for pass through, always force asic_init */
+	if (radeon_device_is_virtual())
+		return false;
+
 	/* required for EFI mode on macbook2,1 which uses an r5xx asic */
 	if (efi_enabled(EFI_BOOT) &&
 	    (rdev->pdev->subsystem_vendor == PCI_VENDOR_ID_APPLE) &&
drivers/hid/hid-elo.c +1 -1
index 4e49462870ab..d0c8a1c1e1fe 100644
@@ -259,7 +259,7 @@ static void elo_remove(struct hid_device *hdev)
 	struct elo_priv *priv = hid_get_drvdata(hdev);
 
 	hid_hw_stop(hdev);
-	flush_workqueue(wq);
+	cancel_delayed_work_sync(&priv->work);
 	kfree(priv);
 }
 
drivers/hid/usbhid/hiddev.c +5 -5
index 2f1ddca6f2e0..700145b15088 100644
@@ -516,13 +516,13 @@ static noinline int hiddev_ioctl_usage(struct hiddev *hiddev, unsigned int cmd,
 					goto inval;
 			} else if (uref->usage_index >= field->report_count)
 				goto inval;
-
-			else if ((cmd == HIDIOCGUSAGES || cmd == HIDIOCSUSAGES) &&
-				 (uref_multi->num_values > HID_MAX_MULTI_USAGES ||
-				  uref->usage_index + uref_multi->num_values > field->report_count))
-				goto inval;
 		}
 
+		if ((cmd == HIDIOCGUSAGES || cmd == HIDIOCSUSAGES) &&
+		    (uref_multi->num_values > HID_MAX_MULTI_USAGES ||
+		     uref->usage_index + uref_multi->num_values > field->report_count))
+			goto inval;
+
 		switch (cmd) {
 		case HIDIOCGUSAGE:
 			uref->value = field->value[uref->usage_index];
drivers/iio/accel/kxsd9.c +2 -2
index 98ba761cbb9c..d8738d4f8df3 100644
@@ -81,7 +81,7 @@ static int kxsd9_write_scale(struct iio_dev *indio_dev, int micro)
 
 	mutex_lock(&st->buf_lock);
 	ret = spi_w8r8(st->us, KXSD9_READ(KXSD9_REG_CTRL_C));
-	if (ret)
+	if (ret < 0)
 		goto error_ret;
 	st->tx[0] = KXSD9_WRITE(KXSD9_REG_CTRL_C);
 	st->tx[1] = (ret & ~KXSD9_FS_MASK) | i;
@@ -163,7 +163,7 @@ static int kxsd9_read_raw(struct iio_dev *indio_dev,
 		break;
 	case IIO_CHAN_INFO_SCALE:
 		ret = spi_w8r8(st->us, KXSD9_READ(KXSD9_REG_CTRL_C));
-		if (ret)
+		if (ret < 0)
 			goto error_ret;
 		*val2 = kxsd9_micro_scales[ret & KXSD9_FS_MASK];
 		ret = IIO_VAL_INT_PLUS_MICRO;
drivers/iio/adc/ad7266.c +5 -2
index 70f78c3062a7..8e2b9e70511d 100644
@@ -396,8 +396,8 @@ static int ad7266_probe(struct spi_device *spi)
 
 	st = iio_priv(indio_dev);
 
-	st->reg = devm_regulator_get(&spi->dev, "vref");
-	if (!IS_ERR_OR_NULL(st->reg)) {
+	st->reg = devm_regulator_get_optional(&spi->dev, "vref");
+	if (!IS_ERR(st->reg)) {
 		ret = regulator_enable(st->reg);
 		if (ret)
 			return ret;
@@ -408,6 +408,9 @@ static int ad7266_probe(struct spi_device *spi)
 
 		st->vref_mv = ret / 1000;
 	} else {
+		/* Any other error indicates that the regulator does exist */
+		if (PTR_ERR(st->reg) != -ENODEV)
+			return PTR_ERR(st->reg);
 		/* Use internal reference */
 		st->vref_mv = 2500;
 	}
drivers/iio/industrialio-trigger.c +18 -5
index 3383b025f62e..68e3611787a6 100644
@@ -203,22 +203,35 @@ static int iio_trigger_attach_poll_func(struct iio_trigger *trig,
 
 	/* Prevent the module from being removed whilst attached to a trigger */
 	__module_get(pf->indio_dev->info->driver_module);
+
+	/* Get irq number */
 	pf->irq = iio_trigger_get_irq(trig);
+	if (pf->irq < 0)
+		goto out_put_module;
+
+	/* Request irq */
 	ret = request_threaded_irq(pf->irq, pf->h, pf->thread,
 				   pf->type, pf->name,
 				   pf);
-	if (ret < 0) {
-		module_put(pf->indio_dev->info->driver_module);
-		return ret;
-	}
+	if (ret < 0)
+		goto out_put_irq;
 
+	/* Enable trigger in driver */
 	if (trig->ops && trig->ops->set_trigger_state && notinuse) {
 		ret = trig->ops->set_trigger_state(trig, true);
 		if (ret < 0)
-			module_put(pf->indio_dev->info->driver_module);
+			goto out_free_irq;
 	}
 
 	return ret;
+
+out_free_irq:
+	free_irq(pf->irq, pf);
+out_put_irq:
+	iio_trigger_put_irq(trig, pf->irq);
+out_put_module:
+	module_put(pf->indio_dev->info->driver_module);
+	return ret;
 }
 
 static int iio_trigger_detach_poll_func(struct iio_trigger *trig,
drivers/iio/pressure/st_pressure_core.c +50 -30

23 lines not on this page · raw message

drivers/iio/proximity/as3935.c +12 -5
index d102210b207d..37c1bb2afd08 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/core/cma.c +2 -1
index 06441a43c3aa..cf3d9dee8aff 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/core/iwpm_util.c +1 -0
index 69e9f84c1605..e532ba6d3627 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/hw/cxgb3/cxio_hal.c +1 -1
index de1c61b417d6..ada2e5009c86 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/hw/cxgb4/cm.c +2 -10
index 768a0fb67dd6..bf488ae4dbe4 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/hw/mlx4/ah.c +1 -1
index 6dc27ffa1cec..4c2686514ced 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/hw/mlx4/mad.c +18 -6
index 35df708ffa53..1cc83abb9b44 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/hw/mlx4/main.c +3 -0
index e48e96528657..85c47a0e524c 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/hw/mlx4/qp.c +4 -2
index 6914462e4b5b..5fe3646b248f 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/hw/mlx5/main.c +1 -4
index 364d4b6937f5..cad8cab43559 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/hw/mlx5/qp.c +13 -8
index 44f4f3976f7c..aaa3a0b0ec95 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/ulp/ipoib/ipoib.h +1 -0
index c639f90cfda4..2a7c7dc28726 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/ulp/ipoib/ipoib_cm.c +4 -0
index 933efcea0d03..105eebd77ad4 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/ulp/ipoib/ipoib_main.c +6 -1
index 5786a78ff8bc..7e4a6efbf2ce 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/ulp/ipoib/ipoib_vlan.c +6 -0
index 9fad7b5ac8b9..91da685cdafd 100644

Lines of this file are not shown. View the raw message.

drivers/input/joystick/xpad.c +4 -0
index 18558f73b4a3..e2c655964711 100644

Lines of this file are not shown. View the raw message.

drivers/input/misc/pwm-beeper.c +48 -22

70 lines not on this page · raw message

drivers/input/misc/uinput.c +6 -0
index 856936247500..5a63c274ae1c 100644

Lines of this file are not shown. View the raw message.

drivers/input/mouse/elantech.c +1 -7
index 447b4545c7f7..92cebaf5d621 100644

Lines of this file are not shown. View the raw message.

drivers/input/touchscreen/wacom_w8001.c +1 -1
index 2792ca397dd0..3ed0ce1e4dcb 100644

Lines of this file are not shown. View the raw message.

drivers/iommu/dmar.c +27 -20

47 lines not on this page · raw message

drivers/irqchip/irq-gic.c +8 -0
index 7c131cf7cc13..605e65713093 100644

Lines of this file are not shown. View the raw message.

drivers/mcb/mcb-parse.c +1 -1
index 004926955263..b0155b05cddb 100644

Lines of this file are not shown. View the raw message.

drivers/media/pci/cx23885/cx23885-av.c +1 -1
index c443b7ac5adf..cf91fa220993 100644

Lines of this file are not shown. View the raw message.

drivers/media/usb/uvc/uvc_v4l2.c +18 -21
index 378ae02e593b..836c252c12f4 100644

Lines of this file are not shown. View the raw message.

drivers/mfd/lp8788-irq.c +1 -1
index c84ded5f8ece..3bf5fac21640 100644

Lines of this file are not shown. View the raw message.

drivers/mfd/omap-usb-tll.c +9 -4
index 532eacab6b46..0f8cd6bbe914 100644

Lines of this file are not shown. View the raw message.

drivers/misc/mic/host/mic_virtio.c +5 -0
index 7e1ef0ebbb80..dba3c19929db 100644

Lines of this file are not shown. View the raw message.

drivers/mmc/card/block.c +3 -2
index 76efef5af670..c51e164dfae0 100644

Lines of this file are not shown. View the raw message.

drivers/mmc/core/core.c +2 -2
index aba0b8c632ee..2b051b32f38f 100644

Lines of this file are not shown. View the raw message.

drivers/mmc/core/mmc.c +7 -0
index 793c6f7ddb04..094ba8b8dc3a 100644

Lines of this file are not shown. View the raw message.

drivers/mtd/ubi/eba.c +35 -7

42 lines not on this page · raw message

drivers/mtd/ubi/fastmap.c +1 -0
index c701369090fb..5c0b66ed1ddb 100644

Lines of this file are not shown. View the raw message.

drivers/mtd/ubi/ubi.h +2 -0
index 7bf416329c19..c1f1087b6939 100644

Lines of this file are not shown. View the raw message.

drivers/net/bonding/bond_3ad.c +8 -5
index 0dfeaf5da3f2..f65bfbbefd28 100644

Lines of this file are not shown. View the raw message.

drivers/net/bonding/bond_alb.c +2 -5
index 76c0dade233f..cd440dfffad1 100644

Lines of this file are not shown. View the raw message.

drivers/net/bonding/bonding.h +3 -0
index 0b4d9cde0b05..0aadbae041f4 100644

Lines of this file are not shown. View the raw message.

drivers/net/can/at91_can.c +3 -2
index 05e1aa090add..2c4e54f764c5 100644

Lines of this file are not shown. View the raw message.

drivers/net/can/c_can/c_can.c +31 -7
index 60285820f7b4..055457619c1e 100644

Lines of this file are not shown. View the raw message.

drivers/net/can/dev.c +6 -0
index 5635c6e7af57..edb3b86eb118 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/bcmsysport.c +1 -1
index 6e4a6bddf56e..c583dd58268b 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/bgmac.c +1 -1
index 05c6af6c418f..41877a3f8596 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/ibm/ehea/ehea_main.c +4 -5
index a0b418e007a0..50f9f98c0657 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/i40e/i40e_hmc.c +1 -1
index 9b987ccc9e82..a91503099a9a 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx4/en_netdev.c +11 -7
index 50b1f909ce0d..dea92f1af362 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx4/mcg.c +2 -2
index 4c36def8e10f..d9afcffee737 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx5/core/cmd.c +67 -56

123 lines not on this page · raw message

drivers/net/ethernet/mellanox/mlx5/core/qp.c +1 -1
index 8145b4668229..e7c94a58864b 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c +1 -1
index e45bf09af0c9..df081f64c5c2 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/sfc/ef10.c +16 -0
index b5ed30a39144..f41d07bcb400 100644

Lines of this file are not shown. View the raw message.

drivers/net/phy/fixed.c +11 -11
index 5ea82da50ceb..28157ceadc48 100644

Lines of this file are not shown. View the raw message.

drivers/net/tun.c +3 -3
index 999484feb377..4d4527c13f52 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/ath/ath5k/led.c +1 -1
index f77ef36acf87..61879b1f7083 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/mac80211_hwsim.c +1 -0
index d7cc36304e58..b6eca0cdfd46 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/rtlwifi/base.c +2 -2
index 93bb384eb001..0484de7847e9 100644

Lines of this file are not shown. View the raw message.

drivers/of/irq.c +10 -9
index b97363adca0b..8e557ebb8d84 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pci-sysfs.c +3 -4
index 045b63ae97d5..ca5434b97ef4 100644

Lines of this file are not shown. View the raw message.

drivers/pci/probe.c +3 -3
index 57d884c7412e..28b557c5563d 100644

Lines of this file are not shown. View the raw message.

drivers/pinctrl/pinctrl-single.c +3 -0
index 8fda801c5c48..0d19ac11ab9e 100644

Lines of this file are not shown. View the raw message.

drivers/s390/char/sclp_ctl.c +7 -5
index 648cb86afd42..ea607a4a1bdd 100644

Lines of this file are not shown. View the raw message.

drivers/s390/net/qeth_l2_main.c +1 -0
index 12339e6bd23e..c75bddfaa837 100644

Lines of this file are not shown. View the raw message.

drivers/s390/net/qeth_l3_main.c +1 -0
index 3cbe133a0d96..3e5ba1ac9e2a 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/aacraid/commsup.c +8 -4
index 6b32ddcefc11..ce177a50ec05 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/ipr.c +1 -0
index de2bfa24b91a..ee38ab64422b 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/scsi_devinfo.c +1 -0
index 6e2256f7d7d6..7439304f01d0 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/scsi_error.c +3 -1
index 48790f1dbf79..07ab11da83a0 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/scsi_lib.c +5 -2
index d7062a06f72e..7e817b1f95f0 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/scsi_scan.c +1 -0
index 44458696c7b6..98996ba87f3b 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/scsi_sysfs.c +3 -3
index 6c26b9743c52..1b30a65554f9 100644

Lines of this file are not shown. View the raw message.

drivers/spi/spi-sun4i.c +19 -4
index 85204c93f3d3..36f39a331a01 100644

Lines of this file are not shown. View the raw message.

drivers/spi/spi-sun6i.c +9 -1
index bd24093f4038..97f2e9bb3c24 100644

Lines of this file are not shown. View the raw message.

drivers/staging/iio/accel/sca3000_core.c +1 -1
index ed30e32e60de..3a6a56d62c9f 100644

Lines of this file are not shown. View the raw message.

drivers/tty/n_tty.c +8 -9
index cdf72bcb3d78..2d7c57e11dd5 100644

Lines of this file are not shown. View the raw message.

drivers/tty/vt/vt.c +3 -2
index 53c25bca7d05..9062636d3154 100644

Lines of this file are not shown. View the raw message.

drivers/usb/core/devio.c +5 -4
index a85eadff6bea..dfcb5f8b8f18 100644

Lines of this file are not shown. View the raw message.

drivers/usb/core/hcd.c +6 -8
index c4dc63ad580a..7f2144eb58d9 100644

Lines of this file are not shown. View the raw message.

drivers/usb/core/quirks.c +15 -12
index 0e8e656a045f..0673a5abc21d 100644

Lines of this file are not shown. View the raw message.

drivers/usb/dwc3/dwc3-exynos.c +11 -8
index f9fb8adb785b..abc334546156 100644

Lines of this file are not shown. View the raw message.

drivers/usb/gadget/f_fs.c +5 -7
index 7a5167088de1..4d6c0630f1f9 100644

Lines of this file are not shown. View the raw message.

drivers/usb/gadget/f_uac2.c +1 -0
index 6261db4a9910..a9a6341e866b 100644

Lines of this file are not shown. View the raw message.

drivers/usb/gadget/inode.c +13 -4
index c44dc6ef2500..1ceaf0e6a859 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/xhci-pci.c +5 -0
index 3a8696c2c228..4b36d8562eef 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/xhci-plat.c +3 -0
index bbf86db713ce..b1e4031d081a 100644

Lines of this file are not shown. View the raw message.

drivers/usb/musb/musb_host.c +13 -8
index 0ae35ab5c392..2314186738ba 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/io_edgeport.c +38 -18

56 lines not on this page · raw message

drivers/usb/serial/keyspan.c +4 -0
index e07b15ed5814..7faa901ee47f 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/mxuport.c +10 -0
index 460a40669967..d029b2fc0f75 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/option.c +148 -7

155 lines not on this page · raw message

drivers/usb/serial/quatech2.c +1 -0
index 504f5bff79c0..b18974cbd995 100644

Lines of this file are not shown. View the raw message.

drivers/xen/events/events_base.c +4 -2
index 6be0ef01b8e6..b254b7d20dfa 100644

Lines of this file are not shown. View the raw message.

drivers/xen/xen-acpi-processor.c +3 -32
index 59fc190f1e92..b96e207bf250 100644

Lines of this file are not shown. View the raw message.

drivers/xen/xen-pciback/conf_space.c +2 -4
index 9c234209d8b5..47a4177b16d2 100644

Lines of this file are not shown. View the raw message.

drivers/xen/xenbus/xenbus_xs.c +0 -3
index ba804f3d8278..ce65591b4168 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/ctree.h +1 -0
index efb0b8953fa5..796f1d2374ff 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/file.c +1 -1
index 8d60cf519578..085a90d0d2e4 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/inode.c +1 -1
index 17472ba1615c..a09ec5e7f3e2 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/ioctl.c +21 -0
index d0733078e5c5..b69285f0593b 100644

Lines of this file are not shown. View the raw message.

fs/cifs/cifs_spnego.c +67 -0

67 lines not on this page · raw message

fs/cifs/cifsfs.c +2 -2
index d678cda1cd81..445e1b01191a 100644

Lines of this file are not shown. View the raw message.

fs/cifs/cifsproto.h +2 -0
index ca7980a1e303..05ce3072fb09 100644

Lines of this file are not shown. View the raw message.

fs/cifs/connect.c +3 -1
index 3a4fc1bcde43..3c393b9759d8 100644

Lines of this file are not shown. View the raw message.

fs/cifs/ntlmssp.h +1 -1
index 848249fa120f..3079b38f0afb 100644

Lines of this file are not shown. View the raw message.

fs/cifs/sess.c +118 -92

210 lines not on this page · raw message

fs/cifs/smb2glob.h +1 -0
index bc0bb9c34f72..0ffa18094335 100644

Lines of this file are not shown. View the raw message.

fs/cifs/smb2inode.c +6 -2
index 215f8d3e3e53..f970c5d5b253 100644

Lines of this file are not shown. View the raw message.

fs/cifs/smb2pdu.c +45 -8

53 lines not on this page · raw message

fs/cifs/smb2proto.h +2 -0
index 0ce48db20a65..8e0d57bf446b 100644

Lines of this file are not shown. View the raw message.

fs/dcache.c +3 -2
index f9dcd166d878..40b3fc1fb608 100644

Lines of this file are not shown. View the raw message.

fs/ecryptfs/file.c +14 -1
index 0682699519af..b6c9410f3d04 100644

Lines of this file are not shown. View the raw message.

fs/ecryptfs/main.c +7 -0
index 34eb8433d93f..d9eb84bda559 100644

Lines of this file are not shown. View the raw message.

fs/ext4/ialloc.c +27 -28

55 lines not on this page · raw message

fs/ext4/inode.c +14 -9
index c9d21642ca79..a2c4495d40e9 100644

Lines of this file are not shown. View the raw message.

fs/ext4/namei.c +1 -1
index 5dbec667d75b..e253213b39e3 100644

Lines of this file are not shown. View the raw message.

fs/hpfs/super.c +32 -10

42 lines not on this page · raw message

fs/namespace.c +1 -1
index 506a9921ea46..c957d044b13f 100644

Lines of this file are not shown. View the raw message.

fs/nfs/dir.c +1 -1
index 82253864acf7..c832599669bc 100644

Lines of this file are not shown. View the raw message.

fs/nfs/nfs4proc.c +2 -3
index 864b3214cc89..7dc0bf73e76a 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfs2acl.c +10 -10
index 12b023a7ab7d..e5c420c130c6 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfs3acl.c +7 -9
index 2a514e21dc74..3b90faef79e3 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfs4acl.c +8 -8
index d714156a19fd..5a2c9660099d 100644

Lines of this file are not shown. View the raw message.

fs/nilfs2/the_nilfs.c +1 -1
index 8ba8229ba076..06ece8cccaee 100644

Lines of this file are not shown. View the raw message.

fs/posix_acl.c +21 -17
index 0855f772cd41..b1c249115aaa 100644

Lines of this file are not shown. View the raw message.

fs/proc/root.c +7 -0
index dd77e1483196..98992cb44c35 100644

Lines of this file are not shown. View the raw message.

fs/ubifs/file.c +24 -0
index b5b593c45270..d37140e5b722 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_inode.c +18 -8
index 634dbe50c292..174379ddf22f 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_super.c +10 -0
index a4fcd32134fa..2616ddea6756 100644

Lines of this file are not shown. View the raw message.

include/asm-generic/preempt.h +2 -2
index 54352f4dde1a..25c09df2c046 100644

Lines of this file are not shown. View the raw message.

include/linux/device.h +5 -2
index af424acd393d..81c5be31dd05 100644

Lines of this file are not shown. View the raw message.

include/linux/fs.h +11 -0
index e032a8a40c30..545837db9468 100644

Lines of this file are not shown. View the raw message.

include/linux/mlx5/driver.h +1 -0
index fd152032d779..8ab4eac0292b 100644

Lines of this file are not shown. View the raw message.

include/linux/mlx5/qp.h +2 -0
index 9709b30e2d69..ab1c14a56e6d 100644

Lines of this file are not shown. View the raw message.

include/linux/netfilter/x_tables.h +11 -1
index a3e215bb0241..7741efa43b35 100644

Lines of this file are not shown. View the raw message.

include/linux/sunrpc/msg_prot.h +2 -2
index aadc6a04e1ac..9dd47cba12f2 100644

Lines of this file are not shown. View the raw message.

include/net/codel.h +4 -0
index fe0eab32ce76..6262ce0517f4 100644

Lines of this file are not shown. View the raw message.

include/net/sch_generic.h +19 -1
index 624f9857c83e..ee2060f507b7 100644

Lines of this file are not shown. View the raw message.

include/scsi/scsi_device.h +1 -0
index 758bc9f0f399..72a1b3aba1a0 100644

Lines of this file are not shown. View the raw message.

kernel/auditsc.c +165 -170

335 lines not on this page · raw message

kernel/exit.c +20 -9
index ab2472332043..52f4aa336f5e 100644

Lines of this file are not shown. View the raw message.

kernel/sched/core.c +4 -2
index 8cbf68e6985d..7c90f805e457 100644

Lines of this file are not shown. View the raw message.

kernel/sched/proc.c +7 -4
index 16f5a30f9c88..b672d78160cf 100644

Lines of this file are not shown. View the raw message.

kernel/trace/ring_buffer.c +18 -17
index 56ce06143148..79bf62b4e740 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace_printk.c +6 -1
index 7b900474209d..6973eeca7d99 100644

Lines of this file are not shown. View the raw message.

lib/dma-debug.c +1 -1
index 1cbfc16d0b37..1ba298a9e15d 100644

Lines of this file are not shown. View the raw message.

mm/migrate.c +2 -0
index 56d273e828d6..5193433d8605 100644

Lines of this file are not shown. View the raw message.

mm/shmem.c +5 -3
index e53ab3a8a8d3..a2b87affdc23 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/bat_iv_ogm.c +4 -5
index f04224c32005..3637024b9143 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/routing.c +4 -1
index fb0c4e6069a7..22bbdd082546 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/soft-interface.c +9 -0
index ad40f170824d..765c89ccc3fb 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/translation-table.c +44 -8

52 lines not on this page · raw message

net/batman-adv/types.h +2 -0
index 53f2833552f3..0cc890bab7a4 100644

Lines of this file are not shown. View the raw message.

net/bridge/br_multicast.c +4 -0
index 46ac609d0882..3b104a6d796c 100644

Lines of this file are not shown. View the raw message.

net/bridge/br_private.h +20 -5
index 4fd47a1a0e9a..eb8248c9af26 100644

Lines of this file are not shown. View the raw message.

net/ipv4/netfilter/arp_tables.c +78 -201

279 lines not on this page · raw message

net/ipv4/netfilter/ip_tables.c +75 -230

305 lines not on this page · raw message

net/ipv4/tcp_input.c +9 -4
index 036615125532..d3b64bfedd18 100644

Lines of this file are not shown. View the raw message.

net/ipv6/addrconf.c +6 -4
index c844b31c767e..0002aa9ca91a 100644

Lines of this file are not shown. View the raw message.

net/ipv6/icmp.c +1 -1
index f6c84a6eb238..d69f84e5df03 100644

Lines of this file are not shown. View the raw message.

net/ipv6/netfilter/ip6_tables.c +69 -231

300 lines not on this page · raw message

net/ipv6/tcp_ipv6.c +3 -1
index 2350f12eb318..427d164aad46 100644

Lines of this file are not shown. View the raw message.

net/mac80211/mesh.c +9 -2
index 3e328131afb5..27b5b3b43744 100644

Lines of this file are not shown. View the raw message.

net/netfilter/x_tables.c +242 -3

245 lines not on this page · raw message

net/netlink/af_netlink.c +5 -2
index 46cac8e31a16..24876492f26a 100644

Lines of this file are not shown. View the raw message.

net/rds/recv.c +2 -0
index bd82522534fc..f6839107d020 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_api.c +5 -3
index 04de05ae7c5e..8b7e7e25bd72 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_cbq.c +4 -8
index ead526467cca..fc0ea5c63521 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_choke.c +4 -2
index ed30e436128b..ee0223aaf399 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_codel.c +6 -4
index 2f9ab17db85a..ebdb01fbdd24 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_drr.c +3 -6
index 7bbbfe112192..faf83886e7ad 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_dsmark.c +1 -7
index 49d6ef338b55..5b766242af94 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_fifo.c +4 -0
index e15a9eb29087..6475419633e1 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_fq.c +3 -1
index ba32c2b005d0..820eceb98d24 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_fq_codel.c +12 -5
index 063b726bf1f8..633be4b72e20 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_hfsc.c +3 -6
index ec8aeaac1dd7..90bc6e56f112 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_hhf.c +7 -3
index d85b6812a7d4..cdc1836810c2 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_htb.c +7 -12
index 9f949abcacef..718b015da5c3 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_multiq.c +6 -10
index afb050a735fa..946392276385 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_netem.c +7 -14
index 111d70fddaea..73f1db8e8039 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_pie.c +3 -2
index fefeeb73f15f..9c2b8efdb154 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_prio.c +5 -10
index 79359b69ad8d..fcdc6bc23e56 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_qfq.c +3 -6
index 8056fb4e618a..85b5bee2c6d8 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_red.c +3 -7
index 633e32defdcc..f4972baf8881 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_sfb.c +3 -7
index 9b0f7093d970..1d7e94670c77 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_sfq.c +9 -7
index 1af2f73906d0..78a5d7d43634 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_tbf.c +6 -9
index 18ff63433709..7c9545f1a391 100644

Lines of this file are not shown. View the raw message.

net/sunrpc/auth_gss/svcauth_gss.c +2 -2
index 4ce5eccec1f6..efac1201c55d 100644

Lines of this file are not shown. View the raw message.

net/tipc/node.c +2 -1
index 5b44c3041be4..1719d277ed60 100644

Lines of this file are not shown. View the raw message.

scripts/Makefile.extrawarn +1 -0
index 65643506c71c..17533969a837 100644

Lines of this file are not shown. View the raw message.

scripts/mod/file2alias.c +1 -1
index e614ef689eee..268acec72c4f 100644

Lines of this file are not shown. View the raw message.

security/keys/key.c +1 -1
index 2048a110e7f1..07cd1fe2a496 100644

Lines of this file are not shown. View the raw message.

sound/core/compress_offload.c +1 -1
index 91525fafe73b..53cd5d69293e 100644

Lines of this file are not shown. View the raw message.

sound/core/timer.c +4 -1
index 17538961e357..cdc22503fdb8 100644

Lines of this file are not shown. View the raw message.

sound/drivers/dummy.c +1 -0
index 387bb8f603ac..35cc884bca6b 100644

Lines of this file are not shown. View the raw message.

sound/pci/au88x0/au88x0_core.c +2 -3
index ae59dbaa53d9..42d4b13f1fa7 100644

Lines of this file are not shown. View the raw message.

sound/pci/echoaudio/echoaudio.c +2 -2
index 9f10c9e0df5e..2838de08be9b 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_realtek.c +7 -0
index 50d661fe4da0..4dd1538c1257 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/perf_regs.c +4 -4
index 43168fb0d9a2..2fb6f2afb84f 100644

Lines of this file are not shown. View the raw message.

virt/kvm/irqchip.c +1 -1
index b43c275775cd..2a1f6a0a0dff 100644

Lines of this file are not shown. View the raw message.

virt/kvm/kvm_main.c +1 -1
index 18fac68fb0e7..a63127acc67d 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.