Skip to contentSkip to conversation

Linux 3.16.39

PATCH Ben Hutchings 1 participant 1 message Nov 20, 2016 Stable branch

lore
Share & tools
lore
#0 lore raw

I'm announcing the release of the 3.16.39 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.38 is attached to this message.

Ben.

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

 Documentation/filesystems/porting                  |   4 +-
 Documentation/module-signing.txt                   |   6 +
 Makefile                                           |   2 +-
 arch/alpha/include/asm/uaccess.h                   |  19 ++-
 arch/arc/include/asm/irqflags.h                    |   2 +-
 arch/arc/include/asm/uaccess.h                     |  11 +-
 arch/arc/mm/tlbex.S                                |   6 +-
 arch/arm/boot/compressed/head.S                    |   2 +-
 arch/arm/boot/dts/kirkwood-ib62x0.dts              |   2 +-
 arch/arm/common/sa1111.c                           |  22 +--
 arch/arm/include/asm/dma-mapping.h                 |   2 +-
 arch/arm/kernel/sys_oabi-compat.c                  |   8 +-
 arch/arm/kvm/arm.c                                 |   2 -
 arch/arm/kvm/mmu.c                                 |   1 +
 arch/arm/mach-mvebu/coherency.c                    |  22 ++-
 .../mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c |   1 +
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c         |  12 ++
 arch/arm/mach-omap2/prcm43xx.h                     |   1 +
 arch/arm/mach-sa1100/generic.c                     |   3 +
 arch/arm/mm/dma-mapping.c                          |  59 +++++---
 arch/arm64/crypto/aes-glue.c                       |   2 +-
 arch/arm64/include/asm/elf.h                       |   1 +
 arch/arm64/include/asm/spinlock.h                  |  10 ++
 arch/arm64/include/uapi/asm/auxvec.h               |   2 +
 arch/arm64/kernel/debug-monitors.c                 |   1 -
 arch/arm64/kernel/perf_event.c                     |  21 ++-
 arch/arm64/kernel/smp.c                            |   1 -
 arch/arm64/mm/proc.S                               |   2 +
 arch/avr32/include/asm/uaccess.h                   |  11 +-
 arch/avr32/kernel/avr32_ksyms.c                    |   2 +-
 arch/avr32/lib/copy_user.S                         |   8 +-
 arch/avr32/mach-at32ap/pio.c                       |   2 +-
 arch/blackfin/include/asm/uaccess.h                |   9 +-
 arch/cris/include/asm/uaccess.h                    |  71 +++++-----
 arch/frv/include/asm/uaccess.h                     |  12 +-
 arch/hexagon/include/asm/uaccess.h                 |   3 +-
 arch/ia64/include/asm/uaccess.h                    |  20 ++-
 arch/m32r/include/asm/uaccess.h                    |   2 +-
 arch/metag/include/asm/cmpxchg_lnkget.h            |   2 +-
 arch/metag/include/asm/uaccess.h                   |   3 +-
 arch/microblaze/include/asm/uaccess.h              |  11 +-
 .../include/asm/mach-paravirt/kernel-entry-init.h  |   2 +
 arch/mips/include/asm/pgtable.h                    |   6 +-
 arch/mips/include/asm/r4kcache.h                   |   4 +
 arch/mips/include/asm/uaccess.h                    |   3 +
 arch/mips/kernel/scall64-n32.S                     |   2 +-
 arch/mips/kernel/scall64-o32.S                     |   2 +-
 arch/mips/kvm/kvm_mips.c                           |   2 +-
 arch/mips/kvm/kvm_mips_emul.c                      |  98 ++++++++++---
 arch/mips/kvm/kvm_tlb.c                            |  64 ++++++---
 arch/mips/mm/sc-rm7k.c                             |   2 +-
 arch/mips/mti-malta/malta-setup.c                  |   8 +-
 arch/mips/net/bpf_jit.c                            |   2 +-
 arch/mn10300/include/asm/uaccess.h                 |   1 +
 arch/mn10300/lib/usercopy.c                        |   4 +-
 arch/openrisc/include/asm/uaccess.h                |  35 ++---
 arch/parisc/include/asm/uaccess.h                  |   7 +-
 arch/parisc/include/uapi/asm/errno.h               |   4 +-
 arch/powerpc/include/asm/pci-bridge.h              |   1 +
 arch/powerpc/include/asm/uaccess.h                 |  21 +--
 arch/powerpc/kernel/exceptions-64s.S               |  39 ++----
 arch/powerpc/kernel/mce.c                          |   3 +-
 arch/powerpc/kernel/pci-common.c                   |  36 +++++
 arch/powerpc/kernel/prom_init.c                    |   9 +-
 arch/powerpc/kernel/tm.S                           |   3 +-
 arch/powerpc/platforms/powernv/opal-dump.c         |   7 +-
 arch/powerpc/platforms/powernv/opal-elog.c         |   7 +-
 arch/powerpc/platforms/powernv/opal.c              |   1 +
 arch/powerpc/platforms/pseries/pci.c               |   4 +
 arch/powerpc/platforms/pseries/pci_dlpar.c         |   7 +-
 arch/s390/include/asm/elf.h                        |   1 +
 arch/s390/include/asm/tlbflush.h                   |   3 +-
 arch/s390/include/asm/uaccess.h                    |   8 +-
 arch/s390/include/uapi/asm/auxvec.h                |   2 +
 arch/s390/mm/pgtable.c                             |   4 +-
 arch/score/include/asm/uaccess.h                   |  46 +++---
 arch/sh/include/asm/uaccess.h                      |   5 +-
 arch/sh/include/asm/uaccess_64.h                   |   1 +
 arch/sparc/include/asm/uaccess_32.h                |   4 +-
 arch/tile/include/asm/elf.h                        |   1 +
 arch/tile/include/uapi/asm/auxvec.h                |   2 +
 arch/x86/boot/compressed/eboot.c                   |  20 ++-
 arch/x86/include/asm/tlbflush.h                    |   7 +
 arch/x86/kernel/apic/apic.c                        |   3 +
 arch/x86/kernel/cpu/amd.c                          |  14 ++
 arch/x86/kernel/cpu/perf_event_amd.c               |   4 +-
 arch/x86/kernel/early-quirks.c                     | 105 ++++++++++++--
 arch/x86/kernel/paravirt.c                         |   4 +-
 arch/x86/kvm/vmx.c                                 |  77 +++++++---
 arch/x86/syscalls/syscall_32.tbl                   |   2 +-
 block/genhd.c                                      |   3 +-
 crypto/blkcipher.c                                 |   3 +-
 crypto/cryptd.c                                    |   9 +-
 crypto/gcm.c                                       |   4 +-
 crypto/scatterwalk.c                               |   3 +-
 drivers/bcma/bcma_private.h                        |   2 -
 drivers/bluetooth/ath3k.c                          |   4 +
 drivers/bluetooth/btusb.c                          |   2 +
 drivers/char/hw_random/omap-rng.c                  |  16 ++-
 drivers/char/random.c                              |  13 +-
 drivers/char/tpm/tpm_tis.c                         |   9 +-
 drivers/clocksource/sun4i_timer.c                  |   9 +-
 drivers/crypto/caam/caamhash.c                     |   1 +
 drivers/crypto/nx/nx.c                             |   2 +-
 drivers/devfreq/devfreq.c                          |   2 +-
 drivers/firewire/net.c                             |  51 ++++---
 drivers/firmware/efi/efi-stub-helper.c             |  96 +++++++++----
 drivers/firmware/efi/fdt.c                         |  13 +-
 drivers/gpio/Kconfig                               |   1 +
 drivers/gpio/gpio-intel-mid.c                      |  19 ---
 drivers/gpio/gpio-pca953x.c                        |   2 +-
 drivers/gpu/drm/drm_crtc.c                         |   3 +
 drivers/gpu/drm/drm_edid.c                         |   8 ++
 drivers/gpu/drm/i915/intel_display.c               |  20 +--
 drivers/gpu/drm/msm/msm_drv.h                      |   6 +
 drivers/gpu/drm/msm/msm_gem.c                      |   9 ++
 drivers/gpu/drm/msm/msm_gem_submit.c               |  37 ++++-
 drivers/gpu/drm/nouveau/nouveau_acpi.c             |  76 +++++-----
 drivers/gpu/drm/nouveau/nouveau_drm.c              |   5 +-
 drivers/gpu/drm/nouveau/nv04_fbcon.c               |   4 +-
 drivers/gpu/drm/nouveau/nv50_fbcon.c               |   2 +-
 drivers/gpu/drm/nouveau/nvc0_fbcon.c               |   2 +-
 drivers/gpu/drm/qxl/qxl_draw.c                     |   2 +
 drivers/gpu/drm/radeon/atombios_encoders.c         |   1 +
 drivers/gpu/drm/radeon/radeon_atombios.c           |   4 +-
 drivers/gpu/drm/radeon/radeon_atpx_handler.c       |   5 +
 drivers/gpu/drm/radeon/radeon_connectors.c         |  15 +-
 drivers/gpu/drm/radeon/radeon_device.c             |   4 +
 drivers/gpu/drm/radeon/radeon_kms.c                |   4 +-
 drivers/gpu/drm/radeon/radeon_ttm.c                |   4 +-
 drivers/gpu/drm/radeon/si_dpm.c                    |   6 +
 drivers/hid/uhid.c                                 |  33 +++--
 drivers/hv/vmbus_drv.c                             |   3 +
 drivers/hwmon/adt7411.c                            |   5 +-
 drivers/i2c/busses/i2c-efm32.c                     |   2 +-
 drivers/i2c/busses/i2c-eg20t.c                     |  18 ++-
 drivers/i2c/busses/i2c-qup.c                       |   3 +-
 drivers/i2c/muxes/i2c-mux-pca954x.c                |   2 +-
 drivers/iio/accel/kxsd9.c                          |   2 +
 drivers/iio/adc/at91_adc.c                         |   4 +-
 drivers/iio/adc/ti_am335x_adc.c                    |  14 +-
 .../iio/common/hid-sensors/hid-sensor-attributes.c |   4 +-
 drivers/iio/industrialio-core.c                    |   5 +-
 drivers/iio/proximity/as3935.c                     |   2 +-
 drivers/infiniband/core/multicast.c                |  13 +-
 drivers/infiniband/hw/mlx4/mad.c                   |  23 +++
 drivers/infiniband/hw/mlx4/mcg.c                   |  14 +-
 drivers/infiniband/hw/mlx4/mlx4_ib.h               |   2 +-
 drivers/infiniband/hw/mlx4/qp.c                    |  37 ++---
 drivers/infiniband/ulp/ipoib/ipoib.h               |   1 +
 drivers/infiniband/ulp/ipoib/ipoib_cm.c            |  16 +++
 drivers/infiniband/ulp/ipoib/ipoib_ib.c            |   9 ++
 drivers/infiniband/ulp/ipoib/ipoib_main.c          |   2 +-
 drivers/input/joystick/xpad.c                      |   3 +
 drivers/input/keyboard/tegra-kbc.c                 |   2 +-
 drivers/input/serio/i8042.c                        |  17 +--
 drivers/input/serio/libps2.c                       |  10 +-
 drivers/md/bcache/super.c                          |  11 +-
 drivers/md/dm-crypt.c                              |   2 +-
 drivers/md/dm-flakey.c                             |  23 +--
 drivers/media/dvb-core/dvb_ringbuffer.c            |  96 +++++++++++--
 drivers/media/dvb-core/dvb_ringbuffer.h            |   2 +
 drivers/media/pci/ngene/ngene-dvb.c                |   2 +-
 drivers/media/platform/s5p-mfc/s5p_mfc.c           |  11 ++
 drivers/media/usb/em28xx/em28xx-i2c.c              |   5 +-
 drivers/media/usb/usbvision/usbvision-video.c      |   7 -
 drivers/mmc/card/block.c                           |  12 +-
 drivers/mtd/maps/pmcmsp-flash.c                    |   6 +-
 drivers/mtd/nand/davinci_nand.c                    |   3 +
 drivers/mtd/nand/nand_base.c                       |   2 +-
 drivers/mtd/ubi/attach.c                           |  27 +++-
 drivers/mtd/ubi/build.c                            |   5 +-
 drivers/mtd/ubi/ubi.h                              |   3 +
 drivers/mtd/ubi/vmt.c                              |  25 +++-
 drivers/net/can/dev.c                              |  27 ++--
 drivers/net/can/flexcan.c                          |  13 +-
 drivers/net/ethernet/ethoc.c                       |  10 +-
 drivers/net/ethernet/marvell/mvneta.c              |   2 +-
 drivers/net/ethernet/mellanox/mlx5/core/cmd.c      |  85 +++++++----
 drivers/net/macvlan.c                              |  10 +-
 drivers/net/ppp/ppp_generic.c                      |   5 +-
 drivers/net/tun.c                                  |   5 +-
 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c     |   2 +-
 drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c   |   4 +-
 .../net/wireless/brcm80211/brcmfmac/wl_cfg80211.c  |   2 +-
 drivers/net/wireless/brcm80211/brcmsmac/dma.c      |   4 +-
 drivers/net/wireless/brcm80211/brcmsmac/stf.c      |   2 +-
 drivers/net/wireless/iwlwifi/pcie/tx.c             |   4 +-
 drivers/pci/quirks.c                               |  10 +-
 drivers/platform/x86/hp-wmi.c                      |   7 +-
 drivers/power/max17042_battery.c                   |  15 +-
 drivers/pps/clients/pps_parport.c                  |   2 +-
 drivers/rtc/rtc-ds1307.c                           |  28 +++-
 drivers/s390/block/dasd.c                          |  10 +-
 drivers/scsi/aacraid/commctrl.c                    |  13 +-
 drivers/scsi/arcmsr/arcmsr_hba.c                   |   8 +-
 drivers/scsi/constants.c                           |   5 +-
 drivers/scsi/megaraid/megaraid_sas_base.c          |   6 +-
 drivers/scsi/megaraid/megaraid_sas_fusion.c        |   2 +-
 drivers/staging/comedi/drivers/daqboard2000.c      |   2 +-
 drivers/staging/comedi/drivers/ni_mio_common.c     |  12 +-
 drivers/staging/lustre/lustre/llite/llite_lib.c    |   2 +-
 drivers/target/iscsi/iscsi_target.c                |  22 ++-
 drivers/target/iscsi/iscsi_target_login.c          |   5 +-
 drivers/target/target_core_device.c                |   8 +-
 drivers/target/target_core_file.c                  |   3 +-
 drivers/target/target_core_iblock.c                |   3 +-
 drivers/target/target_core_transport.c             |   9 +-
 drivers/tty/serial/8250/8250_pci.c                 | 139 ++++++++++++++++++
 drivers/tty/serial/atmel_serial.c                  |  14 +-
 drivers/tty/serial/samsung.c                       |  16 ++-
 drivers/tty/serial/sunhv.c                         |   6 -
 drivers/tty/vt/keyboard.c                          |  30 ++--
 drivers/usb/class/cdc-acm.c                        |   5 +-
 drivers/usb/class/cdc-acm.h                        |   1 -
 drivers/usb/core/config.c                          |  93 ++++++++++--
 drivers/usb/core/devio.c                           |  16 ++-
 drivers/usb/core/quirks.c                          |   6 +
 drivers/usb/dwc3/gadget.c                          |  23 +--
 drivers/usb/gadget/fsl_qe_udc.c                    |   9 +-
 drivers/usb/gadget/udc-core.c                      |   2 +-
 drivers/usb/host/xhci-hub.c                        |   3 +
 drivers/usb/host/xhci-pci.c                        |   3 +-
 drivers/usb/host/xhci-ring.c                       |  13 +-
 drivers/usb/misc/usbtest.c                         |   7 +-
 drivers/usb/renesas_usbhs/fifo.c                   |  22 ++-
 drivers/usb/renesas_usbhs/mod.c                    |  11 +-
 drivers/usb/renesas_usbhs/mod_gadget.c             |   9 +-
 drivers/usb/serial/ftdi_sio.c                      |   3 +
 drivers/usb/serial/ftdi_sio_ids.h                  |  12 ++
 drivers/usb/serial/mos7720.c                       |   2 +-
 drivers/usb/serial/mos7840.c                       |   4 +-
 drivers/usb/serial/option.c                        |  34 +++++
 drivers/usb/serial/usb-serial-simple.c             |   3 +-
 drivers/usb/serial/usb-serial.c                    |   4 +-
 drivers/vfio/pci/vfio_pci.c                        |  33 +++--
 drivers/vfio/pci/vfio_pci_intrs.c                  |  69 +++++----
 drivers/virtio/virtio_balloon.c                    |   2 +
 drivers/xen/xenbus/xenbus_dev_frontend.c           |  14 +-
 fs/9p/acl.c                                        |  40 +++---
 fs/9p/vfs_inode.c                                  |   2 +-
 fs/9p/vfs_inode_dotl.c                             |   2 +-
 fs/adfs/inode.c                                    |   2 +-
 fs/affs/inode.c                                    |   2 +-
 fs/attr.c                                          |  35 +++--
 fs/btrfs/acl.c                                     |   6 +-
 fs/btrfs/inode.c                                   |   2 +-
 fs/btrfs/ioctl.c                                   |  12 ++
 fs/btrfs/tree-log.c                                |   2 +
 fs/ceph/acl.c                                      |   6 +-
 fs/ceph/file.c                                     |  12 +-
 fs/ceph/inode.c                                    |   2 +-
 fs/cifs/cifsencrypt.c                              |  16 ++-
 fs/cifs/dir.c                                      |  24 +++-
 fs/cifs/inode.c                                    |   4 +-
 fs/cifs/smb2ops.c                                  |  30 +++-
 fs/ecryptfs/inode.c                                |   2 +-
 fs/exofs/inode.c                                   |   2 +-
 fs/ext2/acl.c                                      |  12 +-
 fs/ext2/inode.c                                    |   2 +-
 fs/ext3/acl.c                                      |  12 +-
 fs/ext3/inode.c                                    |   2 +-
 fs/ext4/acl.c                                      |  12 +-
 fs/ext4/balloc.c                                   |   3 +
 fs/ext4/extents.c                                  |   8 +-
 fs/ext4/inode.c                                    |  37 ++++-
 fs/ext4/mballoc.c                                  |  17 +--
 fs/ext4/super.c                                    |  35 ++++-
 fs/f2fs/acl.c                                      |   6 +-
 fs/f2fs/file.c                                     |   2 +-
 fs/fat/file.c                                      |   2 +-
 fs/fuse/dir.c                                      |   9 +-
 fs/fuse/file.c                                     |  24 ++++
 fs/fuse/fuse_i.h                                   |   2 +-
 fs/fuse/inode.c                                    |   2 +-
 fs/gfs2/acl.c                                      |  12 +-
 fs/gfs2/inode.c                                    |   2 +-
 fs/hfs/inode.c                                     |   2 +-
 fs/hfsplus/inode.c                                 |   2 +-
 fs/hfsplus/posix_acl.c                             |   4 +-
 fs/hostfs/hostfs_kern.c                            |   9 +-
 fs/hpfs/inode.c                                    |   2 +-
 fs/hugetlbfs/inode.c                               |   2 +-
 fs/jffs2/acl.c                                     |   9 +-
 fs/jffs2/fs.c                                      |   2 +-
 fs/jfs/acl.c                                       |   6 +-
 fs/jfs/file.c                                      |   2 +-
 fs/kernfs/file.c                                   |  28 +++-
 fs/kernfs/inode.c                                  |   2 +-
 fs/libfs.c                                         |   2 +-
 fs/logfs/file.c                                    |   2 +-
 fs/minix/file.c                                    |   2 +-
 fs/ncpfs/inode.c                                   |   2 +-
 fs/nfs/callback.c                                  |   1 +
 fs/nfs/callback_xdr.c                              |   6 +-
 fs/nfs/nfs4proc.c                                  |  13 +-
 fs/nfs/write.c                                     |   5 +-
 fs/nfsd/vfs.c                                      |  12 +-
 fs/nilfs2/inode.c                                  |   2 +-
 fs/notify/fanotify/fanotify.c                      |  13 +-
 fs/notify/fanotify/fanotify_user.c                 |  36 +++--
 fs/notify/group.c                                  |  19 +++
 fs/notify/notification.c                           |  23 +--
 fs/ntfs/inode.c                                    |   2 +-
 fs/ocfs2/acl.c                                     |   9 +-
 fs/ocfs2/dlm/dlmconvert.c                          |  12 +-
 fs/ocfs2/dlmfs/dlmfs.c                             |   2 +-
 fs/ocfs2/file.c                                    |  36 +++--
 fs/omfs/file.c                                     |   2 +-
 fs/posix_acl.c                                     |  31 ++++
 fs/proc/base.c                                     |   2 +-
 fs/proc/generic.c                                  |   2 +-
 fs/proc/proc_sysctl.c                              |   2 +-
 fs/ramfs/file-nommu.c                              |   2 +-
 fs/reiserfs/inode.c                                |   2 +-
 fs/reiserfs/xattr_acl.c                            |   8 +-
 fs/seq_file.c                                      |   4 +-
 fs/sysv/file.c                                     |   2 +-
 fs/ubifs/file.c                                    |   2 +-
 fs/ubifs/tnc_commit.c                              |   2 +-
 fs/udf/file.c                                      |   2 +-
 fs/ufs/truncate.c                                  |   2 +-
 fs/utimes.c                                        |   4 +-
 fs/xfs/xfs_acl.c                                   |  16 +--
 fs/xfs/xfs_file.c                                  |   2 +-
 fs/xfs/xfs_ioctl.c                                 |   2 +-
 fs/xfs/xfs_iops.c                                  |  16 ++-
 fs/xfs/xfs_iops.h                                  |   6 +-
 include/asm-generic/uaccess.h                      |  20 ++-
 include/linux/backing-dev.h                        |   2 +
 include/linux/bcma/bcma.h                          |   1 +
 include/linux/can/dev.h                            |   3 +-
 include/linux/compiler-gcc.h                       |   2 +-
 include/linux/efi.h                                |   9 ++
 include/linux/fs.h                                 |   2 +-
 include/linux/fsnotify_backend.h                   |   6 +-
 include/linux/i8042.h                              |   6 -
 include/linux/mlx5/qp.h                            |   4 +-
 include/linux/mroute.h                             |   2 +-
 include/linux/mroute6.h                            |   2 +-
 include/linux/netfilter/x_tables.h                 |   4 +
 include/linux/pagemap.h                            |  38 ++---
 include/linux/posix_acl.h                          |   1 +
 include/linux/radix-tree.h                         |   1 +
 include/linux/serio.h                              |  24 +++-
 include/linux/swap.h                               |   2 +
 include/net/inet_ecn.h                             |   3 +-
 include/net/tcp.h                                  |   2 +
 include/target/target_core_backend.h               |   2 +-
 ipc/msg.c                                          |   2 +-
 ipc/sem.c                                          |  12 +-
 kernel/cpuset.c                                    |  15 ++
 kernel/fork.c                                      |  10 +-
 kernel/module.c                                    |  13 +-
 kernel/posix-cpu-timers.c                          |   1 +
 kernel/power/hibernate.c                           |   4 +-
 kernel/printk/braille.c                            |   4 +-
 kernel/sched/core.c                                |  23 ++-
 kernel/sched/sched.h                               |  13 --
 kernel/time/timekeeping_debug.c                    |   9 +-
 kernel/trace/trace.c                               |  15 +-
 lib/mpi/mpicoder.c                                 |   2 +-
 mm/backing-dev.c                                   |  19 +++
 mm/filemap.c                                       |  93 ++++++------
 mm/hugetlb.c                                       |   4 +
 mm/ksm.c                                           |   3 +-
 mm/shmem.c                                         |   2 +-
 mm/workingset.c                                    |  10 +-
 net/batman-adv/bridge_loop_avoidance.c             | 137 +++++++++++++++---
 net/batman-adv/distributed-arp-table.c             |  10 +-
 net/batman-adv/originator.c                        |  15 ++
 net/batman-adv/routing.c                           |  80 +++++++++--
 net/batman-adv/send.c                              |   4 +-
 net/batman-adv/types.h                             |  20 ++-
 net/bluetooth/l2cap_sock.c                         |   2 +-
 net/bluetooth/rfcomm/sock.c                        |  20 +--
 net/ceph/osdmap.c                                  | 156 +++++++++++++++------
 net/ipv4/ipmr.c                                    |   3 +-
 net/ipv4/netfilter/arp_tables.c                    |  36 +++--
 net/ipv4/netfilter/ip_tables.c                     |  33 ++++-
 net/ipv4/route.c                                   |   3 +-
 net/ipv4/tcp_fastopen.c                            |   1 +
 net/ipv4/tcp_input.c                               |   3 +-
 net/ipv4/tcp_output.c                              |   3 +-
 net/ipv6/addrconf.c                                |   9 ++
 net/ipv6/ip6_gre.c                                 |   2 +-
 net/ipv6/ip6mr.c                                   |   5 +-
 net/ipv6/netfilter/ip6_tables.c                    |  33 ++++-
 net/ipv6/route.c                                   |   4 +-
 net/irda/af_irda.c                                 |  12 +-
 net/l2tp/l2tp_core.c                               |   3 +
 net/l2tp/l2tp_ppp.c                                |   7 +-
 net/mac80211/cfg.c                                 |   2 +-
 net/mac80211/tx.c                                  |   6 +-
 net/netfilter/nf_conntrack_expect.c                |   2 +-
 net/netfilter/nfnetlink_queue_core.c               |   6 +-
 net/netfilter/x_tables.c                           |  50 +++++++
 net/netlabel/netlabel_kapi.c                       |  12 +-
 net/sched/sch_generic.c                            |   9 +-
 net/sunrpc/auth_gss/auth_gss.c                     |   8 +-
 net/sunrpc/svc.c                                   |   7 +-
 net/wireless/nl80211.c                             |   2 +-
 net/xfrm/xfrm_state.c                              |   1 +
 net/xfrm/xfrm_user.c                               |  15 +-
 scripts/recordmcount.c                             |   9 +-
 security/keys/proc.c                               |   2 +-
 sound/core/control.c                               |   2 +
 sound/core/pcm.c                                   |  14 +-
 sound/core/rawmidi.c                               |   4 +-
 sound/core/timer.c                                 |  34 ++++-
 sound/firewire/fireworks/fireworks.h               |   1 -
 sound/firewire/fireworks/fireworks_hwdep.c         |  71 +++++++---
 sound/firewire/fireworks/fireworks_proc.c          |   4 +-
 sound/firewire/fireworks/fireworks_transaction.c   |   5 +-
 sound/pci/hda/hda_codec.c                          |   4 +-
 sound/pci/hda/hda_intel.c                          |   4 +-
 sound/pci/hda/patch_realtek.c                      |   9 ++
 sound/soc/omap/omap-mcpdm.c                        |   5 +-
 tools/vm/slabinfo.c                                |   3 +-
 virt/kvm/kvm_main.c                                |   2 +
 420 files changed, 3506 insertions(+), 1566 deletions(-)

Adrien Vergé (1):
USB: quirks: Fix another ELAN touchscreen

Al Viro (26):
alpha: fix copy_from_user()
asm-generic: make copy_from_user() zero the destination properly
asm-generic: make get_user() clear the destination on errors
cris: buggered copy_from_user/copy_to_user/clear_user
frv: fix clear_user()
hexagon: fix strncpy_from_user() error return
ia64: copy_from_user() should zero the destination on access_ok() failure
metag: copy_from_user() should zero the destination on access_ok() failure
mips: copy_from_user() must zero the destination on access_ok() failure
mn10300: failing __get_user() and get_user() should zero
mn10300: copy_from_user() should zero on access_ok() failure...
openrisc: fix copy_from_user()
parisc: fix copy_from_user()
ppc32: fix copy_from_user()
s390: get_user() should zero on failure
score: fix __get_user/get_user
score: fix copy_from_user() and friends
sh64: failing __get_user() should zero
sh: fix copy_from_user()
sparc32: fix copy_from_user()
blackfin: fix copy_from_user()
m32r: fix __get_user()
microblaze: fix copy_from_user()
microblaze: fix __get_user()
avr32: fix copy_from_user()
fix fault_in_multipages_...() on architectures with no-op access_ok()

Alan Stern (4):
USB: validate wMaxPacketValue entries in endpoint descriptors
USB: fix typo in wMaxPacketSize validation
USB: avoid left shift by -1
USB: change bInterval default to 10 ms

Aleksandr Makarov (2):
USB: serial: option: add WeTelecom WM-D200
USB: serial: option: add WeTelecom 0x6802 and 0x6803 products

Alex Deucher (4):
drm/radeon: add a delay after ATPX dGPU power off drm/radeon: support backlight control for UNIPHY3 drm/radeon: fix firmware info version checks drm/radeon/si/dpm: add workaround for for Jet parts

Alex Hung (1):
hp-wmi: Fix wifi cannot be hard-unblocked

Alex Vesker (2):
IB/ipoib: Don't allow MC joins during light MC flush IB/mlx4: Fix incorrect MC join state bit-masking on SR-IOV

Alex Williamson (1):
vfio/pci: Fix NULL pointer oops in error interrupt setup handling

Alexandre Belloni (1):
tty/serial: atmel: fix RS485 half duplex with DMA

Alexey Dobriyan (1):
posix_cpu_timer: Exit early when process has been reaped

Alexey Khoroshilov (3):
i2c: efm32: fix a failure path in efm32_i2c_probe()
USB: serial: mos7720: fix non-atomic allocation in write path
USB: serial: mos7840: fix non-atomic allocation in write path

Alexey Klimov (1):
USB: serial: fix memleak in driver-registration error path

Alexey Kuznetsov (1):
fuse: fsync() did not return IO errors

Alison Schofield (1):
iio: proximity: as3935: set up buffer timestamps for non-zero values

Amadeusz Sławiński (1):
Bluetooth: Fix l2cap_sock_setsockopt() with optname BT_RCVMTU

Anders Darander (1):
iio: adc: at91: unbreak channel adc channel 3

Andrey Pronin (1):
tpm: read burstcount from TPM_STS in one 32-bit transaction

Andrey Ryabinin (1):
radix-tree: fix radix_tree_iter_retry() for tagged iterators.

Andy Shevchenko (1):
gpio: intel-mid: Remove potentially harmful code

Ard Biesheuvel (2):
crypto: cryptd - initialize child shash_desc on import
crypto: arm64/aes-ctr - fix NULL dereference in tail processing

Arend Van Spriel (1):
brcmfmac: avoid potential stack overflow in brcmf_cfg80211_start_ap()

Artemy Kovalyov (1):
IB/mlx5: Fix MODIFY_QP command input structure

Ashish Samant (1):
ocfs2: fix start offset to ocfs2_zero_range_for_truncate()

Balbir Singh (1):
sched/core: Fix a race between try_to_wake_up() and a woken up task

Ben Hutchings (3):
module: Invalidate signatures on force-loaded modules Documentation/module-signing.txt: Note need for version info if reusing a key Linux 3.16.39

Benjamin Coddington (1):
nfs: don't create zero-length requests

Cameron Gutman (1):
Input: xpad - validate USB endpoint count during probe

Chen-Yu Tsai (1):
clocksource/drivers/sun4i: Clear interrupts after stopping timer in probe function

Chris Blake (1):
PCI: Mark Atheros AR9485 and QCA9882 to avoid bus reset

Chris Mason (1):
Btrfs: remove root_log_ctx from ctx list before btrfs_sync_log returns

Christian König (1):
drm/radeon: fix radeon_move_blit on 32bit systems

Chuck Lever (2):
svc: Avoid garbage replies when pc_func() returns rpc_drop_reply
NFS: Don't drop CB requests with invalid principals

Dan Carpenter (12):
em28xx-i2c: rt_mutex_trylock() returns zero on failure
qxl: check for kmap failures
mtd: pmcmsp-flash: Allocating too much in init_msp_flash()
crypto: nx - off by one bug in nx_of_update_msc()
MIPS: RM7000: Double locking bug in rm7k_tc_disable() tools/vm/slabinfo: fix an unintentional printf
sparc: serial: sunhv: fix a double lock bug
avr32: off by one in at32_init_pio()
hostfs: Freeing an ERR_PTR in hostfs_fill_sb_common()
usb: gadget: fsl_qe_udc: off by one in setup_received_handle()
usb: gadget: fsl_qe_udc: signedness bug in qe_get_frame()
scsi: arcmsr: Buffer overflow in arcmsr_iop_message_xfer()

Dan Williams (1):
block: fix bdi vs gendisk lifetime mismatch

Daniel Borkmann (1):
bpf, mips: fix off-by-one in ctx offset allocation

Daniel Mentz (1):
ARC: Call trace_hardirqs_on() before enabling irqs

Daniel Vetter (1):
drm: Reject page_flip for !DRIVER_MODESET

Daniele Palmas (3):
USB: serial: option: add support for Telit LE910 PID 0x1206
USB: serial: option: add support for Telit LE920A4
USB: serial: simple: add support for another Infineon flashloader

Dave Carroll (1):
aacraid: Check size values after double-fetch from user

Dave Weinstein (1):
arm: oabi compat: add missing access checks

David Daney (1):
MIPS: Fix page table corruption on THP permission changes.

David Hildenbrand (1):
s390/mm: fix gmap tlb flush issues

David Howells (3):
KEYS: 64-bit MIPS needs to use compat_sys_keyctl for 32-bit userspace x86/syscalls/64: Add compat_sys_keyctl for 32-bit userspace
KEYS: Fix short sprintf buffer in /proc/keys show function

Dmitri Epshtein (1):
net: mvneta: set real interrupt per packet for tx_done

Dmitry Torokhov (3):
tty/vt/keyboard: fix OOB access in do_compute_shiftstate()
Input: i8042 - break load dependency between atkbd/psmouse and i8042
Input: i8042 - set up shared ps2_cmd_mutex for AUX ports

Dmitry Tunin (1):

      Bluetooth: Add support of 13d3:3490 AR3012 device

Emanuel Czirai (1):
x86/AMD: Apply erratum 665 on machines without a BIOS fix

Erez Shitrit (2):
IB/core: Fix use after free in send_leave function IB/ipoib: Fix memory corruption in ipoib cm mode connect flow

Eric Biggers (1):
dm crypt: fix free of bad values after tfm allocation failure

Eric Dumazet (3):
tcp: fix use after free in tcp_xmit_retransmit_queue()
qdisc: fix a module refcount leak in qdisc_create_dflt()
tcp: fix a compile error in DBGUNDO()

Eric Wheeler (1):
bcache: register_bcache(): call blkdev_put() when cache_alloc() fails

Fabian Frederick (1):
sysv, ipc: fix security-layer leaking

Fabio Estevam (1):
can: flexcan: fix resume function

Felipe Balbi (2):
usb: dwc3: gadget: increment request->actual once
usb: gadget: udc: core: don't starve DMA resources

Felix Fietkau (1):
mac80211: fix purging multicast PS buffer queue

Feng Li (1):
iscsi-target: Fix panic when adding second TCP connection to iSCSI session

Florian Fainelli (4):
net: ethoc: Fix early error paths
brcmfmac: Fix glob_skb leak in brcmf_sdiod_recv_chain
brcmsmac: Free packet if dma_mapping_error() fails in dma_rxfill
brcmsmac: Initialize power in brcms_c_stf_ss_algo_channel_get()

Florian Westphal (2):
netfilter: x_tables: validate targets of jumps
netfilter: x_tables: speed up jump target validation

Forrest Liu (1):
Btrfs: add missing blk_finish_plug in btrfs_sync_log()

Gavin Li (1):
cdc-acm: fix wrong pipe type on rx interrupt xfers

Gregor Boirie (1):
iio:core: fix IIO_VAL_FRACTIONAL sign handling

Gregory CLEMENT (1):
ARM: 8561/3: dma-mapping: Don't use outer_flush_range when the L2C is coherent

Guenter Roeck (2):
avr32: fix 'undefined reference to `___copy_from_user'
openrisc: fix the fix of copy_from_user()

Haishuang Yan (1):
ip6_gre: Set flowi6_proto as IPPROTO_GRE in xmit path.

Hector Palacios (1):
mtd: nand: fix bug writing 1 byte less than page size

Helge Deller (1):
parisc: Fix order of EREFUSED define in errno.h

Herbert Xu (4):
macvlan: Fix potential use-after free for broadcasts
crypto: gcm - Filter out async ghash if necessary
crypto: scatterwalk - Fix test in scatterwalk_done
crypto: skcipher - Fix blkcipher walk OOM crash

Ian Abbott (3):
staging: comedi: daqboard2000: bug fix board type matching code
staging: comedi: ni_mio_common: fix AO inttrig backwards compatibility
staging: comedi: ni_mio_common: fix wrong insn_write handler

Ilan Tayari (1):
xfrm: Fix memory leak of aead algorithm name

Ilya Dryomov (1):
libceph: apply new_state before new_up_client on incrementals

Iosif Harutyunov (1):
ubi: Fix race condition between ubi device creation and udev

Jack Morgenstein (2):
IB/mlx4: Fix code indentation in QP1 MAD flow IB/mlx4: Use correct subnet-prefix in QP1 mads under SR-IOV

Jaganath Kanakkassery (1):
Bluetooth: Fix potential NULL dereference in RFCOMM bind callback

James Hogan (11):
tile: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO
MIPS: c-r4k: Fix protected_writeback_scache_line for EVA
arm64: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO
s390: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO
metag: Fix __cmpxchg_u32 asm constraint for CMP
MIPS: KVM: Fix mapped fault broken commpage handling
MIPS: KVM: Add missing gfn range check
MIPS: KVM: Fix gfn range check in kseg0 tlb faults
MIPS: KVM: Propagate kseg0/mapped tlb fault errors
MIPS: KVM: Check for pfn noslot case
KVM: MIPS: Drop other CPU ASIDs on guest MMU changes

Jan Beulich (2):
xenbus: don't BUG() on user mode induced condition
xenbus: don't look up transaction IDs for ordinary writes

Jan Kara (6):
ext4: fix deadlock during page writeback
fsnotify: add a way to stop queueing events on group shutdown
fanotify: fix list corruption in fanotify_get_response()
fs: Give dentry to inode_change_ok() instead of inode
fs: Avoid premature clearing of capabilities
posix_acl: Clear SGID bit when setting file permissions

Javier Martinez Canillas (2):
s5p-mfc: Set device name for reserved memory region devs
s5p-mfc: Add release callback for memory region devs

Jeff Mahoney (1):
btrfs: ensure that file descriptor used with subvol ioctls is a dir

Jeffrey Hugo (1):
efi/libstub: Allocate headspace in efi_get_memory_map()

Jia He (1):
mm/hugetlb: avoid soft lockup in set_max_huge_pages()

Jim Lin (1):
usb: xhci: Fix panic if disconnect

Jim Mattson (1):
KVM: nVMX: Fix memory corruption when using VMCS shadowing

Jimi Damon (1):
serial: 8250: added acces i/o products quad and octal serial cards

Jiri Slaby (1):
pps: do not crash when failed to register

Johannes Berg (2):
ipv6: suppress sparse warnings in IP6_ECN_set_ce()
nl80211: validate number of probe response CSA counters

Johannes Weiner (2):
mm: workingset: fix crash in shadow node shrinker caused by replace_page_cache_page()
mm: filemap: don't plant shadow entries without radix tree node

John Stultz (1):
timekeeping: Cap array access in timekeeping_debug

Joseph Qi (1):
ocfs2/dlm: fix race between convert and migration

Joseph Salisbury (1):
usb: quirks: Add no-lpm quirk for Elan

Karl Beldan (1):
mtd: nand: davinci: Reinitialize the HW ECC engine in 4bit hwctl

Keerthy (2):
ARM: AM43XX: hwmod: Fix RSTST register offset for pruss
rtc: ds1307: Fix relying on reset value for weekday

Kent Overstreet (1):
bcache: RESERVE_PRIO is too small by one when prio_buckets() is a power of two.

Konrad Leszczynski (1):
usb: dwc3: fix for the isoc transfer EP_BUSY flag

Konstantin Neumoin (1):
balloon: check the number of available pages in leak balloon

Krzysztof Kozlowski (2):
serial: samsung: Fix ERR pointer dereference on deferred probe
serial: samsung: Fix possible out of bounds access on non-DT platform

Kweh, Hock Leong (1):
iio: fix pressure data output unit in hid-sensor-attributes

Lance Richardson (1):
ip6_gre: fix flowi6_proto value in ip6gre_xmit_other()

Laura Abbott (1):
ftrace/recordmcount: Work around for addition of metag magic but not relocations

Lauro Costa (1):
Bluetooth: Add USB ID 13D3:3487 to ath3k

Linus Torvalds (1):
Using BUG_ON() as an assert() is _never_ acceptable

Linus Walleij (3):
gpio: Fix OF build problem on UM
iio: accel: kxsd9: Fix raw read return
iio: accel: kxsd9: Fix scaling bug

Liping Zhang (2):
netfilter: nf_ct_expect: remove the redundant slash when policy name is empty
netfilter: nfnetlink_queue: reject verdict request from different portid

Lu Baolu (1):
usb: misc: usbtest: add fix for driver hang

Lubomir Rintel (1):
USB: serial: option: add D-Link DWM-156/A3

Lukas Wunner (6):
drm/nouveau: Don't leak runtime pm ref on driver unload drm/radeon: Don't leak runtime pm ref on driver unload drm/radeon: Don't leak runtime pm ref on driver load x86/quirks: Apply nvidia_bugs quirk only on root bus x86/quirks: Reintroduce scanning of secondary buses x86/quirks: Add early quirk to reset Apple AirPort card

Lyude (1):
drm/radeon: Poll for both connect/disconnect on analog connectors

Mahesh Salgaonkar (2):
powerpc/powernv: Fix MCE handler to avoid trashing CR0/CR1 registers. powerpc/book3s: Fix MCE console messages for unrecoverable MCE.

Mario Kleiner (2):
drm/edid: Add 6 bpc quirk for display AEO model 0.
drm/i915/dp: Revert "drm/i915/dp: fall back to 18 bpp when sink capability is unknown"

Masahiro Yamada (1):
Input: tegra-kbc - fix inverted reset logic

Mathias Krause (1):
xfrm_user: propagate sec ctx allocation errors

Mathias Nyman (2):
xhci: always handle "Command Ring Stopped" events
xhci: don't dereference a xhci member after removing xhci

Matt Fleming (1):
perf/x86/amd: Make HW_CACHE_REFERENCES and HW_CACHE_MISSES measure L2

Matt Redfearn (1):
MIPS: paravirt: Fix undefined reference to smp_bootstrap

Mauricio Faria de Oliveira (1):
powerpc/pseries: use pci_host_bridge.release_fn() to kfree(phb)

Mauro Carvalho Chehab (1):
ngene: properly handle __user ptr

Maxim Patlasov (1):

      fuse: fuse_flush must check mapping->flags for errors

Michael Ellerman (1):
powerpc/prom: Fix sub-processor option passed to ibm, client-architecture-support

Michael Neuling (1):
powerpc/tm: Fix stack pointer corruption in __tm_recheckpoint()

Michael Walle (1):
hwmon: (adt7411) set bit 3 in CFG1 register

Michal Hocko (1):
kernel/fork: fix CLONE_CHILD_CLEARTID regression in nscd

Mike Christie (1):
target: Fix max_unmap_lba_count calc overflow

Mike Snitzer (1):
dm flakey: error READ bios during the down_interval

Mikulas Patocka (1):
drm/nouveau/fbcon: fix font width not divisible by 8

Mukesh Ojha (1):
powerpc/powernv : Drop reference added by kset_find_obj()

Neal Cardwell (1):
tcp: fastopen: fix rcv_wup initialization for TFO server on SYN/data

Nicholas Bellinger (2):
target: Fix missing complete during ABORT_TASK + CMD_T_FABRIC_STOP
target: Fix race between iscsi-target connection shutdown + ABORT_TASK

Nicolai Stange (1):
lib/mpi: mpi_read_raw_data(): fix nbits calculation

Nicolas Dichtel (1):
ipv6: add missing netconf notif when 'all' is updated

Nicolas Iooss (1):
printk: fix parsing of "brl=" option

Nikolay Aleksandrov (1):
ipmr, ip6mr: fix scheduling while atomic and a deadlock with ipmr_get_route

Nishanth Menon (1):
hwrng: omap - Fix assumption that runtime_get_sync will always succeed

Olga Kornievskaia (1):
SUNRPC: allow for upcalls for same uid but different gss service

Paolo Bonzini (2):
KVM: nVMX: fix lifetime issues for vmcs02
compiler-gcc: disable -ftracer for __noclone functions

Paul Blakey (1):
net/mlx5: Added missing check of msg length in verifying its signature

Paul Burton (1):
MIPS: Malta: Fix IOCU disable switch read for MIPS64

Paul Moore (1):
netlabel: add address family checks to netlbl_{sock,req}_delattr()

Pavel Shilovsky (1):
CIFS: Fix a possible invalid memory access in smb2_query_symlink()

Peter Rosin (1):
i2c: mux: pca954x: retry updating the mux selection on failure

Peter Ujfalusi (1):
ASoC: omap-mcpdm: Fix irq resource handling

Peter Wu (4):
ALSA: hda - fix use-after-free after module unload drm/nouveau/acpi: ensure matching ACPI handle and supported functions drm/nouveau/acpi: return supported DSM functions drm/nouveau/acpi: check for function 0x1B before using it

Phil Turnbull (1):
ceph: Correctly return NXIO errors from ceph_llseek

Rabin Vincent (1):
cifs: fix crash due to race in hmac(md5) handling

Radim Krčmář (1):
KVM: nVMX: postpone VMCS changes on MSR_IA32_APICBASE write

Richard Weinberger (2):
ubi: Make volume resize power cut aware
ubi: Be more paranoid while seaching for the most recent Fastmap

Rob Clark (3):
drm/msm: use mutex_lock_interruptible for submit ioctl drm/msm: fix use of copy_from_user() while holding spinlock drm/msm: protect against faults from copy_from_user() in submit ioctl

Robert Deliën (1):
USB: serial: ftdi_sio: add PIDs for Ivium Technologies devices

Roderick Colenbrander (1):
HID: uhid: fix timeout when probe races with IO

Roger Quadros (1):

      ARM: 8617/1: dma: fix dma_max_pfn()

Russell King (3):
crypto: caam - fix non-hmac hashes
ARM: sa1100: clear reset status prior to reboot
ARM: sa1111: fix pcmcia suspend/resume

Sabrina Dubroca (1):
l2tp: fix use-after-free during module unload

Sachin Prabhu (1):
cifs: Check for existing directory when opening file with O_CREAT

Sara Sharon (1):
iwlwifi: pcie: fix access to scratch buffer

Sebastian Andrzej Siewior (1):
x86/mm: Disable preemption during CR3 read+write

Sebastian Reichel (1):
ARM: OMAP3: hwmod data: Add sysc information for DSI

Sergei Miroshnichenko (1):
can: dev: fix deadlock reported after bus-off

Sheng-Hui J. Chu (1):
USB: serial: ftdi_sio: add device ID for WICED USB UART dev board

Shrirang Bagul (1):
ALSA: hda - On-board speaker fixup on ACER Veriton

Simon Baatz (1):
ARM: kirkwood: ib62x0: fix size of u-boot environment partition

Simon Wunderlich (1):
batman-adv: lock crc access in bridge loop avoidance

Soeren Moch (1):
media: dvb_ringbuffer: Add memory barriers

Soheil Hassas Yeganeh (2):
tcp: consider recv buf for the initial window scale
tun: fix transmit timestamp support

Srinivas Ramana (1):
ARM: 8618/1: decompressor: reset ttbcr fields to use TTBR0 on ARMv7

Stefan Haberland (1):
s390/dasd: fix hanging device after clear subchannel

Stefan Richter (1):
firewire: net: guard against rx buffer overflows

Stephan Mueller (1):
random: add interrupt callback to VMBus IRQ handler

Steven Rostedt (1):
x86/paravirt: Do not trace _paravirt_ident_*() functions

Steven Rostedt (Red Hat) (1):
tracing: Move mutex to protect against resetting of seq data

Sudeep Holla (1):
i2c: qup: skip qup_i2c_suspend if the device is already runtime suspended

Suzuki K Poulose (1):
kvm-arm: Unmap shadow pagetables properly

Suzuki K. Poulose (1):
arm64: perf: reject groups spanning multiple HW PMUs

Sven Eckelmann (10):
ath9k: Fix programming of minCCA power threshold
batman-adv: Avoid nullptr dereference in bla after vlan_insert_tag
batman-adv: Avoid nullptr dereference in dat after vlan_insert_tag
batman-adv: Fix orig_node_vlan leak on orig_node_release
batman-adv: Fix kerneldoc member names in for main structs
batman-adv: Fix non-atomic bla_claim::backbone_gw access
batman-adv: Fix reference leak in batadv_find_router
batman-adv: Free last_bonding_candidate on release of orig_node
batman-adv: Fix speedy join in gateway client mode
batman-adv: Add missing refcnt for last_candidate

Sven Van Asbroeck (1):
power: supply: max17042_battery: fix model download bug.

Takashi Iwai (5):
ALSA: ctl: Stop notification after disconnection
ALSA: pcm: Free chmap at PCM free callback, too
ALSA: hda: Fix krealloc() with __GFP_ZERO usage
ALSA: timer: Fix zero-division by continue of uninitialized instance
ALSA: rawmidi: Fix possible deadlock with virmidi registration

Takashi Sakamoto (1):
ALSA: fireworks: accessing to user space outside spinlock

Taras Kondratiuk (1):
mmc: block: fix packed command header endianness

Tejun Heo (1):
kernfs: don't depend on d_find_any_alias() when generating notifications

Theodore Ts'o (3):
random: print a warning for the first ten uninitialized random users
ext4: validate s_reserved_gdt_blocks on mount
ext4: validate that metadata blocks do not overlap superblock

Thomas Garnier (1):
PM / hibernate: Restore processor state before using per-CPU variables

Thomas Petazzoni (1):
ARM: mvebu: fix HW I/O coherency related deadlocks

Trond Myklebust (2):
NFSv4.x: Fix a refcount leak in nfs_callback_up_net NFSv4.1: Fix the CREATE_SESSION slot number accounting

Tyrel Datwyler (1):
scsi: fix upper bounds check of sense key in scsi_sense_key_string()

Vegard Nossum (11):
ext4: check for extents that wrap around
ext4: don't call ext4_should_journal_data() on the journal inode
ext4: fix reference counting bug on block allocation error
ext4: short-cut orphan cleanup on error
xfrm: fix crash in XFRM_MSG_GETSA netlink handler net/irda: fix NULL pointer dereference on memory allocation failure
block: fix use-after-free in seq file
fs/seq_file: fix out-of-bounds read
ALSA: timer: fix division by zero after SNDRV_TIMER_IOCTL_CONTINUE
ALSA: timer: fix NULL pointer dereference on memory allocation failure
ALSA: timer: fix NULL pointer dereference in read()/ioctl() race

Vignesh R (2):
gpio: pca953x: Fix NBANK calculation for PCA9536
iio: adc: ti_am335x_adc: Protect FIFO1 from concurrent access

Vincent Stehlé (1):
ubifs: Fix assertion in layout_in_gaps()

Vineet Gupta (2):
ARC: uaccess: get_user to zero out dest in cause of fault
ARC: use ASL assembler mnemonic

Vlad Tsyrklevich (1):
vfio/pci: Fix integer overflows, bitmask check

Vladis Dronov (1):
usbvision: revert commit 588afcc1

WANG Cong (1):
ppp: defer netns reference release for ppp channel

Wanpeng Li (2):
sched/cputime: Fix prev steal time accouting during CPU hotplug x86/apic: Do not init irq remapping if ioapic is disabled

Wei Fang (1):

      fuse: fix wrong assignment of ->flags in fuse_send_init()

Wei Yongjun (1):
ipv6: addrconf: fix dev refcont leak when DAD failed

Will Deacon (2):
arm64: debug: unmask PSTATE.D earlier
arm64: spinlocks: implement smp_mb__before_spinlock() as smp_mb()

Xiaolong Ye (1):
PM / devfreq: Fix incorrect type issue.

Yadi.hu (1):
i2c-eg20t: fix race between i2c init and interrupt enable

Yan, Zheng (1):
libceph: set 'exists' flag for newly up osd

Yinghai Lu (1):
megaraid_sas: Fix probing cards without io port

Yoshihiro Shimoda (4):
usb: renesas_usbhs: fix the sequence in xfer_work()
usb: renesas_usbhs: fix NULL pointer dereference in xfer_work()
usb: renesas_usbhs: protect the CFIFOSEL setting in usbhsg_ep_enable()
usb: renesas_usbhs: fix clearing the {BRDY,BEMP}STS condition

Zefan Li (1):
cpuset: make sure new tasks conform to the current config of the cpuset

[email protected] (2):
l2tp: Correctly return -EBADF from pppol2tp_getname.
irda: Free skb on irda_accept error path.

zhong jiang (1):
mm,ksm: fix endless looping in allocating memory when ksm enable

Documentation/filesystems/porting +2 -2
index 0f3a1390bf00..4f65ae209a65 100644
@@ -287,8 +287,8 @@ implementing on-disk size changes.  Start with a copy of the old inode_setattr
 and vmtruncate, and the reorder the vmtruncate + foofs_vmtruncate sequence to
 be in order of zeroing blocks using block_truncate_page or similar helpers,
 size update and on finally on-disk truncation which should not fail.
-inode_change_ok now includes the size checks for ATTR_SIZE and must be called
-in the beginning of ->setattr unconditionally.
+setattr_prepare (which used to be inode_change_ok) now includes the size checks
+for ATTR_SIZE and must be called in the beginning of ->setattr unconditionally.
 
 [mandatory]
 
Documentation/module-signing.txt +6 -0
index 09c2382ad055..e3af8c27eef2 100644
@@ -239,3 +239,9 @@ Since the private key is used to sign modules, viruses and malware could use
 the private key to sign modules and compromise the operating system.  The
 private key must be either destroyed or moved to a secure location and not kept
 in the root node of the kernel source tree.
+
+If you use the same private key to sign modules for multiple kernel
+configurations, you must ensure that the module version information is
+sufficient to prevent loading a module into a different kernel.  Either
+set CONFIG_MODVERSIONS=y or ensure that each configuration has a different
+kernel release string by changing EXTRAVERSION or CONFIG_LOCALVERSION.
Makefile +1 -1
index 37083fbc8784..444ddb666ef8 100644
@@ -1,6 +1,6 @@
 VERSION = 3
 PATCHLEVEL = 16
-SUBLEVEL = 38
+SUBLEVEL = 39
 EXTRAVERSION =
 NAME = Museum of Fishiegoodies
 
arch/alpha/include/asm/uaccess.h +8 -11
index 766fdfde2b7a..6e9d27ad5103 100644
@@ -371,14 +371,6 @@ __copy_tofrom_user_nocheck(void *to, const void *from, long len)
 	return __cu_len;
 }
 
-extern inline long
-__copy_tofrom_user(void *to, const void *from, long len, const void __user *validate)
-{
-	if (__access_ok((unsigned long)validate, len, get_fs()))
-		len = __copy_tofrom_user_nocheck(to, from, len);
-	return len;
-}
-
 #define __copy_to_user(to,from,n)					\
 ({									\
 	__chk_user_ptr(to);						\
@@ -393,17 +385,22 @@ __copy_tofrom_user(void *to, const void *from, long len, const void __user *vali
 #define __copy_to_user_inatomic __copy_to_user
 #define __copy_from_user_inatomic __copy_from_user
 
-
 extern inline long
 copy_to_user(void __user *to, const void *from, long n)
 {
-	return __copy_tofrom_user((__force void *)to, from, n, to);
+	if (likely(__access_ok((unsigned long)to, n, get_fs())))
+		n = __copy_tofrom_user_nocheck((__force void *)to, from, n);
+	return n;
 }
 
 extern inline long
 copy_from_user(void *to, const void __user *from, long n)
 {
-	return __copy_tofrom_user(to, (__force void *)from, n, from);
+	if (likely(__access_ok((unsigned long)from, n, get_fs())))
+		n = __copy_tofrom_user_nocheck(to, (__force void *)from, n);
+	else
+		memset(to, 0, n);
+	return n;
 }
 
 extern void __do_clear_user(void);
arch/arc/include/asm/irqflags.h +1 -1
index cb7efc29f16f..d98d3bd5ecf6 100644
@@ -179,10 +179,10 @@ static inline void arch_unmask_irq(unsigned int irq)
 .endm
 
 .macro IRQ_ENABLE  scratch
+	TRACE_ASM_IRQ_ENABLE
 	lr	\scratch, [status32]
 	or	\scratch, \scratch, (STATUS_E1_MASK | STATUS_E2_MASK)
 	flag	\scratch
-	TRACE_ASM_IRQ_ENABLE
 .endm
 
 #endif	/* __ASSEMBLY__ */
arch/arc/include/asm/uaccess.h +9 -2
index 30c9baffa96f..08770c750696 100644
@@ -83,7 +83,10 @@
 	"2:	;nop\n"				\
 	"	.section .fixup, \"ax\"\n"	\
 	"	.align 4\n"			\
-	"3:	mov %0, %3\n"			\
+	"3:	# return -EFAULT\n"		\
+	"	mov %0, %3\n"			\
+	"	# zero out dst ptr\n"		\
+	"	mov %1,  0\n"			\
 	"	j   2b\n"			\
 	"	.previous\n"			\
 	"	.section __ex_table, \"a\"\n"	\
@@ -101,7 +104,11 @@
 	"2:	;nop\n"				\
 	"	.section .fixup, \"ax\"\n"	\
 	"	.align 4\n"			\
-	"3:	mov %0, %3\n"			\
+	"3:	# return -EFAULT\n"		\
+	"	mov %0, %3\n"			\
+	"	# zero out dst ptr\n"		\
+	"	mov %1,  0\n"			\
+	"	mov %R1, 0\n"			\
 	"	j   2b\n"			\
 	"	.previous\n"			\
 	"	.section __ex_table, \"a\"\n"	\
arch/arc/mm/tlbex.S +3 -3
index 79bfc81358c9..41043f204fa4 100644
@@ -89,7 +89,7 @@ ex_saved_reg1:
 #ifdef CONFIG_SMP
 	sr  r0, [ARC_REG_SCRATCH_DATA0]	; freeup r0 to code with
 	GET_CPU_ID  r0			; get to per cpu scratch mem,
-	lsl r0, r0, L1_CACHE_SHIFT	; cache line wide per cpu
+	asl r0, r0, L1_CACHE_SHIFT	; cache line wide per cpu
 	add r0, @ex_saved_reg1, r0
 #else
 	st    r0, [@ex_saved_reg1]
@@ -108,7 +108,7 @@ ex_saved_reg1:
 .macro TLBMISS_RESTORE_REGS
 #ifdef CONFIG_SMP
 	GET_CPU_ID  r0			; get to per cpu scratch mem
-	lsl r0, r0, L1_CACHE_SHIFT	; each is cache line wide
+	asl r0, r0, L1_CACHE_SHIFT	; each is cache line wide
 	add r0, @ex_saved_reg1, r0
 	ld_s  r3, [r0,12]
 	ld_s  r2, [r0, 8]
@@ -220,7 +220,7 @@ ex_saved_reg1:
 
 .macro CONV_PTE_TO_TLB
 	and    r3, r0, PTE_BITS_RWX	;       r w x
-	lsl    r2, r3, 3		; r w x 0 0 0
+	asl    r2, r3, 3		; r w x 0 0 0
 	and.f  0,  r0, _PAGE_GLOBAL
 	or.z   r2, r2, r3		; r w x r w x
 
arch/arm/boot/compressed/head.S +1 -1
index d35692b63cfd..624bd3ea0adf 100644
@@ -726,7 +726,7 @@ __armv7_mmu_cache_on:
 		orrne	r0, r0, #1		@ MMU enabled
 		movne	r1, #0xfffffffd		@ domain 0 = client
 		bic     r6, r6, #1 << 31        @ 32-bit translation system
-		bic     r6, r6, #3 << 0         @ use only ttbr0
+		bic     r6, r6, #(7 << 0) | (1 << 4)	@ use only ttbr0
 		mcrne	p15, 0, r3, c2, c0, 0	@ load page table pointer
 		mcrne	p15, 0, r1, c3, c0, 0	@ load domain access control
 		mcrne   p15, 0, r6, c2, c0, 2   @ load ttb control
arch/arm/boot/dts/kirkwood-ib62x0.dts +1 -1
index bfa5edde179c..2c1e7f09205f 100644
@@ -113,7 +113,7 @@
 
 	partition@e0000 {
 		label = "u-boot environment";
-		reg = <0xe0000 0x100000>;
+		reg = <0xe0000 0x20000>;
 	};
 
 	partition@100000 {
arch/arm/common/sa1111.c +13 -9
index e57d7e5bf96a..932125a20877 100644
@@ -872,9 +872,9 @@ struct sa1111_save_data {
 
 #ifdef CONFIG_PM
 
-static int sa1111_suspend(struct platform_device *dev, pm_message_t state)
+static int sa1111_suspend_noirq(struct device *dev)
 {
-	struct sa1111 *sachip = platform_get_drvdata(dev);
+	struct sa1111 *sachip = dev_get_drvdata(dev);
 	struct sa1111_save_data *save;
 	unsigned long flags;
 	unsigned int val;
@@ -937,9 +937,9 @@ static int sa1111_suspend(struct platform_device *dev, pm_message_t state)
  *	restored by their respective drivers, and must be called
  *	via LDM after this function.
  */
-static int sa1111_resume(struct platform_device *dev)
+static int sa1111_resume_noirq(struct device *dev)
 {
-	struct sa1111 *sachip = platform_get_drvdata(dev);
+	struct sa1111 *sachip = dev_get_drvdata(dev);
 	struct sa1111_save_data *save;
 	unsigned long flags, id;
 	void __iomem *base;
@@ -955,7 +955,7 @@ static int sa1111_resume(struct platform_device *dev)
 	id = sa1111_readl(sachip->base + SA1111_SKID);
 	if ((id & SKID_ID_MASK) != SKID_SA1111_ID) {
 		__sa1111_remove(sachip);
-		platform_set_drvdata(dev, NULL);
+		dev_set_drvdata(dev, NULL);
 		kfree(save);
 		return 0;
 	}
@@ -1006,8 +1006,8 @@ static int sa1111_resume(struct platform_device *dev)
 }
 
 #else
-#define sa1111_suspend NULL
-#define sa1111_resume  NULL
+#define sa1111_suspend_noirq NULL
+#define sa1111_resume_noirq  NULL
 #endif
 
 static int sa1111_probe(struct platform_device *pdev)
@@ -1041,6 +1041,11 @@ static int sa1111_remove(struct platform_device *pdev)
 	return 0;
 }
 
+static struct dev_pm_ops sa1111_pm_ops = {
+	.suspend_noirq = sa1111_suspend_noirq,
+	.resume_noirq = sa1111_resume_noirq,
+};
+
 /*
  *	Not sure if this should be on the system bus or not yet.
  *	We really want some way to register a system device at
@@ -1053,11 +1058,10 @@ static int sa1111_remove(struct platform_device *pdev)
 static struct platform_driver sa1111_device_driver = {
 	.probe		= sa1111_probe,
 	.remove		= sa1111_remove,
-	.suspend	= sa1111_suspend,
-	.resume		= sa1111_resume,
 	.driver		= {
 		.name	= "sa1111",
 		.owner	= THIS_MODULE,
+		.pm	= &sa1111_pm_ops,
 	},
 };
 
arch/arm/include/asm/dma-mapping.h +1 -1
index c45b61a4b4a5..911dcd456123 100644
@@ -117,7 +117,7 @@ static inline dma_addr_t virt_to_dma(struct device *dev, void *addr)
 /* The ARM override for dma_max_pfn() */
 static inline unsigned long dma_max_pfn(struct device *dev)
 {
-	return PHYS_PFN_OFFSET + dma_to_pfn(dev, *dev->dma_mask);
+	return dma_to_pfn(dev, *dev->dma_mask);
 }
 #define dma_max_pfn(dev) dma_max_pfn(dev)
 
arch/arm/kernel/sys_oabi-compat.c +7 -1
index eb821e7b80f9..8a1c2c8a1a64 100644
@@ -279,8 +279,12 @@ asmlinkage long sys_oabi_epoll_wait(int epfd,
 	mm_segment_t fs;
 	long ret, err, i;
 
-	if (maxevents <= 0 || maxevents > (INT_MAX/sizeof(struct epoll_event)))
+	if (maxevents <= 0 ||
+			maxevents > (INT_MAX/sizeof(*kbuf)) ||
+			maxevents > (INT_MAX/sizeof(*events)))
 		return -EINVAL;
+	if (!access_ok(VERIFY_WRITE, events, sizeof(*events) * maxevents))
+		return -EFAULT;
 	kbuf = kmalloc(sizeof(*kbuf) * maxevents, GFP_KERNEL);
 	if (!kbuf)
 		return -ENOMEM;
@@ -317,6 +321,8 @@ asmlinkage long sys_oabi_semtimedop(int semid,
 
 	if (nsops < 1 || nsops > SEMOPM)
 		return -EINVAL;
+	if (!access_ok(VERIFY_READ, tsops, sizeof(*tsops) * nsops))
+		return -EFAULT;
 	sops = kmalloc(sizeof(*sops) * nsops, GFP_KERNEL);
 	if (!sops)
 		return -ENOMEM;
arch/arm/kvm/arm.c +0 -2
index 499b236873d2..d75c6e3ed78c 100644
@@ -164,8 +164,6 @@ void kvm_arch_destroy_vm(struct kvm *kvm)
 {
 	int i;
 
-	kvm_free_stage2_pgd(kvm);
-
 	for (i = 0; i < KVM_MAX_VCPUS; ++i) {
 		if (kvm->vcpus[i]) {
 			kvm_arch_vcpu_free(kvm->vcpus[i]);
arch/arm/kvm/mmu.c +1 -0
index c61da3e6a629..1c89e49a2467 100644
@@ -1257,6 +1257,7 @@ void kvm_arch_memslots_updated(struct kvm *kvm)
 
 void kvm_arch_flush_shadow_all(struct kvm *kvm)
 {
+	kvm_free_stage2_pgd(kvm);
 }
 
 void kvm_arch_flush_shadow_memslot(struct kvm *kvm,
arch/arm/mach-mvebu/coherency.c +8 -14
index 01efe130912e..9e5c29df91f5 100644
@@ -315,22 +315,16 @@ static void __init armada_370_coherency_init(struct device_node *np)
 }
 
 /*
- * This ioremap hook is used on Armada 375/38x to ensure that PCIe
- * memory areas are mapped as MT_UNCACHED instead of MT_DEVICE. This
- * is needed as a workaround for a deadlock issue between the PCIe
- * interface and the cache controller.
+ * This ioremap hook is used on Armada 375/38x to ensure that all MMIO
+ * areas are mapped as MT_UNCACHED instead of MT_DEVICE. This is
+ * needed for the HW I/O coherency mechanism to work properly without
+ * deadlock.
  */
 static void __iomem *
-armada_pcie_wa_ioremap_caller(phys_addr_t phys_addr, size_t size,
-			      unsigned int mtype, void *caller)
+armada_wa_ioremap_caller(phys_addr_t phys_addr, size_t size,
+			 unsigned int mtype, void *caller)
 {
-	struct resource pcie_mem;
-
-	mvebu_mbus_get_pcie_mem_aperture(&pcie_mem);
-
-	if (pcie_mem.start <= phys_addr && (phys_addr + size) <= pcie_mem.end)
-		mtype = MT_UNCACHED;
-
+	mtype = MT_UNCACHED;
 	return __arm_ioremap_caller(phys_addr, size, mtype, caller);
 }
 
@@ -339,7 +333,7 @@ static void __init armada_375_380_coherency_init(struct device_node *np)
 	struct device_node *cache_dn;
 
 	coherency_cpu_base = of_iomap(np, 0);
-	arch_ioremap_caller = armada_pcie_wa_ioremap_caller;
+	arch_ioremap_caller = armada_wa_ioremap_caller;
 
 	/*
 	 * We should switch the PL310 to I/O coherency mode only if
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c +1 -0
index a579b89ce9b7..b08605cc93ff 100644
@@ -1460,6 +1460,7 @@ static void omap_hwmod_am43xx_rst(void)
 {
 	RSTCTRL(am33xx_pruss_hwmod, AM43XX_RM_PER_RSTCTRL_OFFSET);
 	RSTCTRL(am33xx_gfx_hwmod, AM43XX_RM_GFX_RSTCTRL_OFFSET);
+	RSTST(am33xx_pruss_hwmod, AM43XX_RM_PER_RSTST_OFFSET);
 	RSTST(am33xx_gfx_hwmod, AM43XX_RM_GFX_RSTST_OFFSET);
 }
 
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +12 -0
index 1cd0cfdc03e0..3ec3ed945221 100644
@@ -724,8 +724,20 @@ static struct omap_hwmod omap3xxx_dss_dispc_hwmod = {
  * display serial interface controller
  */
 
+static struct omap_hwmod_class_sysconfig omap3xxx_dsi_sysc = {
+	.rev_offs	= 0x0000,
+	.sysc_offs	= 0x0010,
+	.syss_offs	= 0x0014,
+	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
+			   SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
+			   SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
+	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
+	.sysc_fields	= &omap_hwmod_sysc_type1,
+};
+
 static struct omap_hwmod_class omap3xxx_dsi_hwmod_class = {
 	.name = "dsi",
+	.sysc	= &omap3xxx_dsi_sysc,
 };
 
 static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs[] = {
arch/arm/mach-omap2/prcm43xx.h +1 -0
index 7785be984edd..4c60d3464a87 100644
@@ -32,6 +32,7 @@
 
 /* RM RSTST offsets */
 #define AM43XX_RM_GFX_RSTST_OFFSET			0x0014
+#define AM43XX_RM_PER_RSTST_OFFSET			0x0014
 #define AM43XX_RM_WKUP_RSTST_OFFSET			0x0014
 
 /* CM instances */
arch/arm/mach-sa1100/generic.c +3 -0
index d4ea142c4edd..186e3f8729ef 100644
@@ -31,6 +31,7 @@
 
 #include <mach/hardware.h>
 #include <mach/irqs.h>
+#include <mach/reset.h>
 
 #include "generic.h"
 
@@ -91,6 +92,8 @@ static void sa1100_power_off(void)
 
 void sa11x0_restart(enum reboot_mode mode, const char *cmd)
 {
+	clear_reset_status(RESET_STATUS_ALL);
+
 	if (mode == REBOOT_SOFT) {
 		/* Jump into ROM at address 0 */
 		soft_restart(0);
arch/arm/mm/dma-mapping.c +39 -20

170 lines not on this page · raw message

arch/arm64/crypto/aes-glue.c +1 -1
index 5f63a791b2fb..31d014f01574 100644
@@ -205,7 +205,7 @@ static int ctr_encrypt(struct blkcipher_desc *desc, struct scatterlist *dst,
 		err = blkcipher_walk_done(desc, &walk,
 					  walk.nbytes % AES_BLOCK_SIZE);
 	}
-	if (nbytes) {
+	if (walk.nbytes % AES_BLOCK_SIZE) {
 		u8 *tdst = walk.dst.virt.addr + blocks * AES_BLOCK_SIZE;
 		u8 *tsrc = walk.src.virt.addr + blocks * AES_BLOCK_SIZE;
 		u8 __aligned(8) tail[AES_BLOCK_SIZE];
arch/arm64/include/asm/elf.h +1 -0
index 2009daf52bf1..922ff638669e 100644
@@ -137,6 +137,7 @@ extern unsigned long randomize_et_dyn(unsigned long base);
 
 #define SET_PERSONALITY(ex)		clear_thread_flag(TIF_32BIT);
 
+/* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */
 #define ARCH_DLINFO							\
 do {									\
 	NEW_AUX_ENT(AT_SYSINFO_EHDR,					\
arch/arm64/include/asm/spinlock.h +10 -0
index c45b7b1b7197..3c0bb9b303e8 100644
@@ -231,4 +231,14 @@ static inline int arch_read_trylock(arch_rwlock_t *rw)
 #define arch_read_relax(lock)	cpu_relax()
 #define arch_write_relax(lock)	cpu_relax()
 
+/*
+ * Accesses appearing in program order before a spin_lock() operation
+ * can be reordered with accesses inside the critical section, by virtue
+ * of arch_spin_lock being constructed using acquire semantics.
+ *
+ * In cases where this is problematic (e.g. try_to_wake_up), an
+ * smp_mb__before_spinlock() can restore the required ordering.
+ */
+#define smp_mb__before_spinlock()	smp_mb()
+
 #endif /* __ASM_SPINLOCK_H */
arch/arm64/include/uapi/asm/auxvec.h +2 -0
index 22d6d8885854..4cf0c17787a8 100644
@@ -19,4 +19,6 @@
 /* vDSO location */
 #define AT_SYSINFO_EHDR	33
 
+#define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */
+
 #endif
arch/arm64/kernel/debug-monitors.c +0 -1
index fe5b94078d82..a2db6f219bbe 100644
@@ -159,7 +159,6 @@ static int debug_monitors_init(void)
 	/* Clear the OS lock. */
 	on_each_cpu(clear_os_lock, NULL, 1);
 	isb();
-	local_dbg_enable();
 
 	/* Register hotplug handler. */
 	__register_cpu_notifier(&os_lock_nb);
arch/arm64/kernel/perf_event.c +15 -6
index 6166745ecb93..be0ff66e4894 100644
@@ -316,22 +316,31 @@ out:
 }
 
 static int
-validate_event(struct pmu_hw_events *hw_events,
-	       struct perf_event *event)
+validate_event(struct pmu *pmu, struct pmu_hw_events *hw_events,
+				struct perf_event *event)
 {
-	struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
+	struct arm_pmu *armpmu;
 	struct hw_perf_event fake_event = event->hw;
 	struct pmu *leader_pmu = event->group_leader->pmu;
 
 	if (is_software_event(event))
 		return 1;
 
+	/*
+	 * Reject groups spanning multiple HW PMUs (e.g. CPU + CCI). The
+	 * core perf code won't check that the pmu->ctx == leader->ctx
+	 * until after pmu->event_init(event).
+	 */
+	if (event->pmu != pmu)
+		return 0;
+
 	if (event->pmu != leader_pmu || event->state < PERF_EVENT_STATE_OFF)
 		return 1;
 
 	if (event->state == PERF_EVENT_STATE_OFF && !event->attr.enable_on_exec)
 		return 1;
 
+	armpmu = to_arm_pmu(event->pmu);
 	return armpmu->get_event_idx(hw_events, &fake_event) >= 0;
 }
 
@@ -349,15 +358,15 @@ validate_group(struct perf_event *event)
 	memset(fake_used_mask, 0, sizeof(fake_used_mask));
 	fake_pmu.used_mask = fake_used_mask;
 
-	if (!validate_event(&fake_pmu, leader))
+	if (!validate_event(event->pmu, &fake_pmu, leader))
 		return -EINVAL;
 
 	list_for_each_entry(sibling, &leader->sibling_list, group_entry) {
-		if (!validate_event(&fake_pmu, sibling))
+		if (!validate_event(event->pmu, &fake_pmu, sibling))
 			return -EINVAL;
 	}
 
-	if (!validate_event(&fake_pmu, event))
+	if (!validate_event(event->pmu, &fake_pmu, event))
 		return -EINVAL;
 
 	return 0;
arch/arm64/kernel/smp.c +0 -1
index 9df272c0d240..c684be1e9942 100644
@@ -174,7 +174,6 @@ asmlinkage void secondary_start_kernel(void)
 	set_cpu_online(cpu, true);
 	complete(&cpu_running);
 
-	local_dbg_enable();
 	local_irq_enable();
 	local_async_enable();
 
arch/arm64/mm/proc.S +2 -0
index dc34442ff728..10e94cbc3192 100644
@@ -189,6 +189,8 @@ ENTRY(__cpu_setup)
 	msr	cpacr_el1, x0			// Enable FP/ASIMD
 	mov	x0, #1 << 12			// Reset mdscr_el1 and disable
 	msr	mdscr_el1, x0			// access to the DCC from EL0
+	isb					// Unmask debug exceptions now,
+	enable_dbg				// since this is per-cpu
 	reset_pmuserenr_el0 x0			// Disable PMU access from EL0
 	/*
 	 * Memory region attributes for LPAE:
arch/avr32/include/asm/uaccess.h +10 -1
index 245b2ee213c9..a0a9b8c31041 100644
@@ -74,7 +74,7 @@ extern __kernel_size_t __copy_user(void *to, const void *from,
 
 extern __kernel_size_t copy_to_user(void __user *to, const void *from,
 				    __kernel_size_t n);
-extern __kernel_size_t copy_from_user(void *to, const void __user *from,
+extern __kernel_size_t ___copy_from_user(void *to, const void __user *from,
 				      __kernel_size_t n);
 
 static inline __kernel_size_t __copy_to_user(void __user *to, const void *from,
@@ -88,6 +88,15 @@ static inline __kernel_size_t __copy_from_user(void *to,
 {
 	return __copy_user(to, (const void __force *)from, n);
 }
+static inline __kernel_size_t copy_from_user(void *to,
+					       const void __user *from,
+					       __kernel_size_t n)
+{
+	size_t res = ___copy_from_user(to, from, n);
+	if (unlikely(res))
+		memset(to + (n - res), 0, res);
+	return res;
+}
 
 #define __copy_to_user_inatomic __copy_to_user
 #define __copy_from_user_inatomic __copy_from_user
arch/avr32/kernel/avr32_ksyms.c +1 -1
index d93ead02daed..7c6cf14f0985 100644
@@ -36,7 +36,7 @@ EXPORT_SYMBOL(copy_page);
 /*
  * Userspace access stuff.
  */
-EXPORT_SYMBOL(copy_from_user);
+EXPORT_SYMBOL(___copy_from_user);
 EXPORT_SYMBOL(copy_to_user);
 EXPORT_SYMBOL(__copy_user);
 EXPORT_SYMBOL(strncpy_from_user);
arch/avr32/lib/copy_user.S +4 -4
index ea59c04b07de..075373471da1 100644
@@ -23,13 +23,13 @@
 	 */
 	.text
 	.align	1
-	.global	copy_from_user
-	.type	copy_from_user, @function
-copy_from_user:
+	.global	___copy_from_user
+	.type	___copy_from_user, @function
+___copy_from_user:
 	branch_if_kernel r8, __copy_user
 	ret_if_privileged r8, r11, r10, r10
 	rjmp	__copy_user
-	.size	copy_from_user, . - copy_from_user
+	.size	___copy_from_user, . - ___copy_from_user
 
 	.global	copy_to_user
 	.type	copy_to_user, @function
arch/avr32/mach-at32ap/pio.c +1 -1
index 903c7d81d0d5..a8e208eaf2a4 100644
@@ -435,7 +435,7 @@ void __init at32_init_pio(struct platform_device *pdev)
 	struct resource *regs;
 	struct pio_device *pio;
 
-	if (pdev->id > MAX_NR_PIO_DEVICES) {
+	if (pdev->id >= MAX_NR_PIO_DEVICES) {
 		dev_err(&pdev->dev, "only %d PIO devices supported\n",
 			MAX_NR_PIO_DEVICES);
 		return;
arch/blackfin/include/asm/uaccess.h +5 -4
index 57701c3b8a59..a992a788409c 100644
@@ -177,11 +177,12 @@ static inline int bad_user_access_length(void)
 static inline unsigned long __must_check
 copy_from_user(void *to, const void __user *from, unsigned long n)
 {
-	if (access_ok(VERIFY_READ, from, n))
+	if (likely(access_ok(VERIFY_READ, from, n))) {
 		memcpy(to, (const void __force *)from, n);
-	else
-		return n;
-	return 0;
+		return 0;
+	}
+	memset(to, 0, n);
+	return n;
 }
 
 static inline unsigned long __must_check
arch/cris/include/asm/uaccess.h +32 -39

102 lines not on this page · raw message

arch/frv/include/asm/uaccess.h +9 -3
index 3ac9a59d65d4..87d9e34c5df8 100644
@@ -263,19 +263,25 @@ do {							\
 extern long __memset_user(void *dst, unsigned long count);
 extern long __memcpy_user(void *dst, const void *src, unsigned long count);
 
-#define clear_user(dst,count)			__memset_user(____force(dst), (count))
+#define __clear_user(dst,count)			__memset_user(____force(dst), (count))
 #define __copy_from_user_inatomic(to, from, n)	__memcpy_user((to), ____force(from), (n))
 #define __copy_to_user_inatomic(to, from, n)	__memcpy_user(____force(to), (from), (n))
 
 #else
 
-#define clear_user(dst,count)			(memset(____force(dst), 0, (count)), 0)
+#define __clear_user(dst,count)			(memset(____force(dst), 0, (count)), 0)
 #define __copy_from_user_inatomic(to, from, n)	(memcpy((to), ____force(from), (n)), 0)
 #define __copy_to_user_inatomic(to, from, n)	(memcpy(____force(to), (from), (n)), 0)
 
 #endif
 
-#define __clear_user clear_user
+static inline unsigned long __must_check
+clear_user(void __user *to, unsigned long n)
+{
+	if (likely(__access_ok(to, n)))
+		n = __clear_user(to, n);
+	return n;
+}
 
 static inline unsigned long __must_check
 __copy_to_user(void __user *to, const void *from, unsigned long n)
arch/hexagon/include/asm/uaccess.h +2 -1
index e4127e4d6a5b..25fc9049db8a 100644
@@ -102,7 +102,8 @@ static inline long hexagon_strncpy_from_user(char *dst, const char __user *src,
 {
 	long res = __strnlen_user(src, n);
 
-	/* return from strnlen can't be zero -- that would be rubbish. */
+	if (unlikely(!res))
+		return -EFAULT;
 
 	if (res > n) {
 		copy_from_user(dst, src, n);
arch/ia64/include/asm/uaccess.h +9 -11
index 449c8c0fa2bd..810926c56e31 100644
@@ -262,17 +262,15 @@ __copy_from_user (void *to, const void __user *from, unsigned long count)
 	__cu_len;									\
 })
 
-#define copy_from_user(to, from, n)							\
-({											\
-	void *__cu_to = (to);								\
-	const void __user *__cu_from = (from);						\
-	long __cu_len = (n);								\
-											\
-	__chk_user_ptr(__cu_from);							\
-	if (__access_ok(__cu_from, __cu_len, get_fs()))					\
-		__cu_len = __copy_user((__force void __user *) __cu_to, __cu_from, __cu_len);	\
-	__cu_len;									\
-})
+static inline unsigned long
+copy_from_user(void *to, const void __user *from, unsigned long n)
+{
+	if (likely(__access_ok(from, n, get_fs())))
+		n = __copy_user((__force void __user *) to, from, n);
+	else
+		memset(to, 0, n);
+	return n;
+}
 
 #define __copy_in_user(to, from, size)	__copy_user((to), (from), (size))
 
arch/m32r/include/asm/uaccess.h +1 -1
index 84fe7ba53035..c393e8f57cf7 100644
@@ -215,7 +215,7 @@ extern int fixup_exception(struct pt_regs *regs);
 #define __get_user_nocheck(x,ptr,size)					\
 ({									\
 	long __gu_err = 0;						\
-	unsigned long __gu_val;						\
+	unsigned long __gu_val = 0;					\
 	might_fault();							\
 	__get_user_size(__gu_val,(ptr),(size),__gu_err);		\
 	(x) = (__typeof__(*(ptr)))__gu_val;				\
arch/metag/include/asm/cmpxchg_lnkget.h +1 -1
index 0154e2807ebb..2369ad394876 100644
@@ -73,7 +73,7 @@ static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old,
 		      "	DCACHE	[%2], %0\n"
 #endif
 		      "2:\n"
-		      : "=&d" (temp), "=&da" (retval)
+		      : "=&d" (temp), "=&d" (retval)
 		      : "da" (m), "bd" (old), "da" (new)
 		      : "cc"
 		      );
arch/metag/include/asm/uaccess.h +2 -1
index 0748b0a97986..7841f2290385 100644
@@ -199,8 +199,9 @@ extern unsigned long __must_check __copy_user_zeroing(void *to,
 static inline unsigned long
 copy_from_user(void *to, const void __user *from, unsigned long n)
 {
-	if (access_ok(VERIFY_READ, from, n))
+	if (likely(access_ok(VERIFY_READ, from, n)))
 		return __copy_user_zeroing(to, from, n);
+	memset(to, 0, n);
 	return n;
 }
 
arch/microblaze/include/asm/uaccess.h +7 -4
index 0aa005703a0b..1858887105ba 100644
@@ -226,7 +226,7 @@ extern long __user_bad(void);
 
 #define __get_user(x, ptr)						\
 ({									\
-	unsigned long __gu_val;						\
+	unsigned long __gu_val = 0;					\
 	/*unsigned long __gu_ptr = (unsigned long)(ptr);*/		\
 	long __gu_err;							\
 	switch (sizeof(*(ptr))) {					\
@@ -371,10 +371,13 @@ extern long __user_bad(void);
 static inline long copy_from_user(void *to,
 		const void __user *from, unsigned long n)
 {
+	unsigned long res = n;
 	might_fault();
-	if (access_ok(VERIFY_READ, from, n))
-		return __copy_from_user(to, from, n);
-	return n;
+	if (likely(access_ok(VERIFY_READ, from, n)))
+		res = __copy_from_user(to, from, n);
+	if (unlikely(res))
+		memset(to + (n - res), 0, res);
+	return res;
 }
 
 #define __copy_to_user(to, from, n)	\
arch/mips/include/asm/mach-paravirt/kernel-entry-init.h +2 -0
index 2f82bfa3a773..c9f5769dfc8f 100644
@@ -11,11 +11,13 @@
 #define CP0_EBASE $15, 1
 
 	.macro  kernel_entry_setup
+#ifdef CONFIG_SMP
 	mfc0	t0, CP0_EBASE
 	andi	t0, t0, 0x3ff		# CPUNum
 	beqz	t0, 1f
 	# CPUs other than zero goto smp_bootstrap
 	j	smp_bootstrap
+#endif /* CONFIG_SMP */
 
 1:
 	.endm
arch/mips/include/asm/pgtable.h +5 -1
index 148a4766bf4d..f94d39f9e21d 100644
@@ -572,7 +572,11 @@ static inline struct page *pmd_page(pmd_t pmd)
 
 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot)
 {
-	pmd_val(pmd) = (pmd_val(pmd) & _PAGE_CHG_MASK) | pgprot_val(newprot);
+	pmd_val(pmd) = (pmd_val(pmd) & (_PAGE_CHG_MASK
+#ifdef _PAGE_HUGE
+					| _PAGE_HUGE
+#endif
+				)) | pgprot_val(newprot);
 	return pmd;
 }
 
arch/mips/include/asm/r4kcache.h +4 -0
index ed038d7c3410..7b74668d3e20 100644
@@ -263,7 +263,11 @@ static inline void protected_writeback_dcache_line(unsigned long addr)
 
 static inline void protected_writeback_scache_line(unsigned long addr)
 {
+#ifdef CONFIG_EVA
+	protected_cachee_op(Hit_Writeback_Inv_SD, addr);
+#else
 	protected_cache_op(Hit_Writeback_Inv_SD, addr);
+#endif
 }
 
 /*
arch/mips/include/asm/uaccess.h +3 -0
index 16e0ea6b99d8..cb4a3ee31983 100644
@@ -14,6 +14,7 @@
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/thread_info.h>
+#include <linux/string.h>
 #include <asm/asm-eva.h>
 
 /*
@@ -1139,6 +1140,8 @@ extern size_t __copy_in_user_eva(void *__to, const void *__from, size_t __n);
 			__cu_len = __invoke_copy_from_user(__cu_to,	\
 							   __cu_from,	\
 							   __cu_len);   \
+		} else {						\
+			memset(__cu_to, 0, __cu_len);			\
 		}							\
 	}								\
 	__cu_len;							\
arch/mips/kernel/scall64-n32.S +1 -1
index 47dd5f9016c1..28a2cb2c6c9b 100644
@@ -353,7 +353,7 @@ EXPORT(sysn32_call_table)
 	PTR	sys_ni_syscall			/* available, was setaltroot */
 	PTR	sys_add_key
 	PTR	sys_request_key
-	PTR	sys_keyctl			/* 6245 */
+	PTR	compat_sys_keyctl		/* 6245 */
 	PTR	sys_set_thread_area
 	PTR	sys_inotify_init
 	PTR	sys_inotify_add_watch
arch/mips/kernel/scall64-o32.S +1 -1
index 7f5feb25ae04..3b726b9229b4 100644
@@ -491,7 +491,7 @@ EXPORT(sys32_call_table)
 	PTR	sys_ni_syscall			/* available, was setaltroot */
 	PTR	sys_add_key			/* 4280 */
 	PTR	sys_request_key
-	PTR	sys_keyctl
+	PTR	compat_sys_keyctl
 	PTR	sys_set_thread_area
 	PTR	sys_inotify_init
 	PTR	sys_inotify_add_watch		/* 4285 */
arch/mips/kvm/kvm_mips.c +1 -1
index 2c81c2c9e8dc..72aad2a9a6b4 100644
@@ -1211,7 +1211,7 @@ int __init kvm_mips_init(void)
 	 */
 	kvm_mips_gfn_to_pfn = gfn_to_pfn;
 	kvm_mips_release_pfn_clean = kvm_release_pfn_clean;
-	kvm_mips_is_error_pfn = is_error_pfn;
+	kvm_mips_is_error_pfn = is_error_noslot_pfn;
 
 	pr_info("KVM/MIPS Initialized\n");
 	return 0;
arch/mips/kvm/kvm_mips_emul.c +80 -18

148 lines not on this page · raw message

arch/mips/kvm/kvm_tlb.c +44 -20

98 lines not on this page · raw message

arch/mips/mm/sc-rm7k.c +1 -1
index 9ac1efcfbcc7..78f900c59276 100644
@@ -161,7 +161,7 @@ static void rm7k_tc_disable(void)
 	local_irq_save(flags);
 	blast_rm7k_tcache();
 	clear_c0_config(RM7K_CONF_TE);
-	local_irq_save(flags);
+	local_irq_restore(flags);
 }
 
 static void rm7k_sc_disable(void)
arch/mips/mti-malta/malta-setup.c +7 -1
index db7c9e5826a6..89251e595d8a 100644
@@ -36,6 +36,9 @@
 #include <linux/console.h>
 #endif
 
+#define ROCIT_CONFIG_GEN0		0x1f403000
+#define  ROCIT_CONFIG_GEN0_PCI_IOCU	BIT(7)
+
 extern void malta_be_init(void);
 extern int malta_be_handler(struct pt_regs *regs, int is_fixup);
 
@@ -104,6 +107,8 @@ static void __init fd_activate(void)
 static int __init plat_enable_iocoherency(void)
 {
 	int supported = 0;
+	u32 cfg;
+
 	if (mips_revision_sconid == MIPS_REVISION_SCON_BONITO) {
 		if (BONITO_PCICACHECTRL & BONITO_PCICACHECTRL_CPUCOH_PRES) {
 			BONITO_PCICACHECTRL |= BONITO_PCICACHECTRL_CPUCOH_EN;
@@ -126,7 +131,8 @@ static int __init plat_enable_iocoherency(void)
 	} else if (mips_cm_numiocu() != 0) {
 		/* Nothing special needs to be done to enable coherency */
 		pr_info("CMP IOCU detected\n");
-		if ((*(unsigned int *)0xbf403000 & 0x81) != 0x81) {
+		cfg = __raw_readl((u32 *)CKSEG1ADDR(ROCIT_CONFIG_GEN0));
+		if (!(cfg & ROCIT_CONFIG_GEN0_PCI_IOCU)) {
 			pr_crit("IOCU OPERATION DISABLED BY SWITCH - DEFAULTING TO SW IO COHERENCY\n");
 			return 0;
 		}
arch/mips/net/bpf_jit.c +1 -1
index 32751a0bba58..0de0bf0a638c 100644
@@ -1365,7 +1365,7 @@ void bpf_jit_compile(struct sk_filter *fp)
 
 	memset(&ctx, 0, sizeof(ctx));
 
-	ctx.offsets = kcalloc(fp->len, sizeof(*ctx.offsets), GFP_KERNEL);
+	ctx.offsets = kcalloc(fp->len + 1, sizeof(*ctx.offsets), GFP_KERNEL);
 	if (ctx.offsets == NULL)
 		return;
 
arch/mn10300/include/asm/uaccess.h +1 -0
index 537278746a15..4af43d9ba495 100644
@@ -181,6 +181,7 @@ struct __large_struct { unsigned long buf[100]; };
 		"2:\n"						\
 		"	.section	.fixup,\"ax\"\n"	\
 		"3:\n\t"					\
+		"	mov		0,%1\n"			\
 		"	mov		%3,%0\n"		\
 		"	jmp		2b\n"			\
 		"	.previous\n"				\
arch/mn10300/lib/usercopy.c +3 -1
index 7826e6c364e7..ce8899e5e171 100644
@@ -9,7 +9,7 @@
  * as published by the Free Software Foundation; either version
  * 2 of the Licence, or (at your option) any later version.
  */
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>
 
 unsigned long
 __generic_copy_to_user(void *to, const void *from, unsigned long n)
@@ -24,6 +24,8 @@ __generic_copy_from_user(void *to, const void *from, unsigned long n)
 {
 	if (access_ok(VERIFY_READ, from, n))
 		__copy_user_zeroing(to, from, n);
+	else
+		memset(to, 0, n);
 	return n;
 }
 
arch/openrisc/include/asm/uaccess.h +11 -24
index ab2e7a198a4c..d441480a4af4 100644
@@ -273,28 +273,20 @@ __copy_tofrom_user(void *to, const void *from, unsigned long size);
 static inline unsigned long
 copy_from_user(void *to, const void *from, unsigned long n)
 {
-	unsigned long over;
-
-	if (access_ok(VERIFY_READ, from, n))
-		return __copy_tofrom_user(to, from, n);
-	if ((unsigned long)from < TASK_SIZE) {
-		over = (unsigned long)from + n - TASK_SIZE;
-		return __copy_tofrom_user(to, from, n - over) + over;
-	}
-	return n;
+	unsigned long res = n;
+
+	if (likely(access_ok(VERIFY_READ, from, n)))
+		res = __copy_tofrom_user(to, from, n);
+	if (unlikely(res))
+		memset(to + (n - res), 0, res);
+	return res;
 }
 
 static inline unsigned long
 copy_to_user(void *to, const void *from, unsigned long n)
 {
-	unsigned long over;
-
-	if (access_ok(VERIFY_WRITE, to, n))
-		return __copy_tofrom_user(to, from, n);
-	if ((unsigned long)to < TASK_SIZE) {
-		over = (unsigned long)to + n - TASK_SIZE;
-		return __copy_tofrom_user(to, from, n - over) + over;
-	}
+	if (likely(access_ok(VERIFY_WRITE, to, n)))
+		n = __copy_tofrom_user(to, from, n);
 	return n;
 }
 
@@ -303,13 +295,8 @@ extern unsigned long __clear_user(void *addr, unsigned long size);
 static inline __must_check unsigned long
 clear_user(void *addr, unsigned long size)
 {
-
-	if (access_ok(VERIFY_WRITE, addr, size))
-		return __clear_user(addr, size);
-	if ((unsigned long)addr < TASK_SIZE) {
-		unsigned long over = (unsigned long)addr + size - TASK_SIZE;
-		return __clear_user(addr, size - over) + over;
-	}
+	if (likely(access_ok(VERIFY_WRITE, addr, size)))
+		size = __clear_user(addr, size);
 	return size;
 }
 
arch/parisc/include/asm/uaccess.h +5 -2
index de2db1910755..9392458b6e86 100644
@@ -9,6 +9,8 @@
 #include <asm/errno.h>
 #include <asm-generic/uaccess-unaligned.h>
 
+#include <linux/string.h>
+
 #define VERIFY_READ 0
 #define VERIFY_WRITE 1
 
@@ -248,13 +250,14 @@ static inline unsigned long __must_check copy_from_user(void *to,
                                           unsigned long n)
 {
         int sz = __compiletime_object_size(to);
-        int ret = -EFAULT;
+        unsigned long ret = n;
 
         if (likely(sz == -1 || !__builtin_constant_p(n) || sz >= n))
                 ret = __copy_from_user(to, from, n);
         else
                 copy_from_user_overflow();
-
+	if (unlikely(ret))
+		memset(to + (n - ret), 0, ret);
         return ret;
 }
 
arch/parisc/include/uapi/asm/errno.h +2 -2
index c0ae62520d15..274d5bc6ecce 100644
@@ -97,10 +97,10 @@
 #define	ENOTCONN	235	/* Transport endpoint is not connected */
 #define	ESHUTDOWN	236	/* Cannot send after transport endpoint shutdown */
 #define	ETOOMANYREFS	237	/* Too many references: cannot splice */
-#define EREFUSED	ECONNREFUSED	/* for HP's NFS apparently */
 #define	ETIMEDOUT	238	/* Connection timed out */
 #define	ECONNREFUSED	239	/* Connection refused */
-#define EREMOTERELEASE	240	/* Remote peer released connection */
+#define	EREFUSED	ECONNREFUSED	/* for HP's NFS apparently */
+#define	EREMOTERELEASE	240	/* Remote peer released connection */
 #define	EHOSTDOWN	241	/* Host is down */
 #define	EHOSTUNREACH	242	/* No route to host */
 
arch/powerpc/include/asm/pci-bridge.h +1 -0
index 4ca90a39d6d0..1c92606ca792 100644
@@ -246,6 +246,7 @@ extern void pci_process_bridge_OF_ranges(struct pci_controller *hose,
 /* Allocate & free a PCI host bridge structure */
 extern struct pci_controller *pcibios_alloc_controller(struct device_node *dev);
 extern void pcibios_free_controller(struct pci_controller *phb);
+extern void pcibios_free_controller_deferred(struct pci_host_bridge *bridge);
 
 #ifdef CONFIG_PCI
 extern int pcibios_vaddr_is_ioport(void __iomem *address);
arch/powerpc/include/asm/uaccess.h +2 -19
index 9485b43a7c00..46c486599645 100644
@@ -323,30 +323,17 @@ extern unsigned long __copy_tofrom_user(void __user *to,
 static inline unsigned long copy_from_user(void *to,
 		const void __user *from, unsigned long n)
 {
-	unsigned long over;
-
-	if (access_ok(VERIFY_READ, from, n))
+	if (likely(access_ok(VERIFY_READ, from, n)))
 		return __copy_tofrom_user((__force void __user *)to, from, n);
-	if ((unsigned long)from < TASK_SIZE) {
-		over = (unsigned long)from + n - TASK_SIZE;
-		return __copy_tofrom_user((__force void __user *)to, from,
-				n - over) + over;
-	}
+	memset(to, 0, n);
 	return n;
 }
 
 static inline unsigned long copy_to_user(void __user *to,
 		const void *from, unsigned long n)
 {
-	unsigned long over;
-
 	if (access_ok(VERIFY_WRITE, to, n))
 		return __copy_tofrom_user(to, (__force void __user *)from, n);
-	if ((unsigned long)to < TASK_SIZE) {
-		over = (unsigned long)to + n - TASK_SIZE;
-		return __copy_tofrom_user(to, (__force void __user *)from,
-				n - over) + over;
-	}
 	return n;
 }
 
@@ -437,10 +424,6 @@ static inline unsigned long clear_user(void __user *addr, unsigned long size)
 	might_fault();
 	if (likely(access_ok(VERIFY_WRITE, addr, size)))
 		return __clear_user(addr, size);
-	if ((unsigned long)addr < TASK_SIZE) {
-		unsigned long over = (unsigned long)addr + size - TASK_SIZE;
-		return __clear_user(addr, size - over) + over;
-	}
 	return size;
 }
 
arch/powerpc/kernel/exceptions-64s.S +12 -27
index 9ff25dcbfb87..7d8a755f5558 100644
@@ -153,29 +153,14 @@ machine_check_pSeries_1:
 	 */
 	HMT_MEDIUM_PPR_DISCARD
 	SET_SCRATCH0(r13)		/* save r13 */
-#ifdef CONFIG_PPC_P7_NAP
-BEGIN_FTR_SECTION
-	/* Running native on arch 2.06 or later, check if we are
-	 * waking up from nap. We only handle no state loss and
-	 * supervisor state loss. We do -not- handle hypervisor
-	 * state loss at this time.
+	/*
+	 * Running native on arch 2.06 or later, we may wakeup from winkle
+	 * inside machine check. If yes, then last bit of HSPGR0 would be set
+	 * to 1. Hence clear it unconditionally.
 	 */
-	mfspr	r13,SPRN_SRR1
-	rlwinm.	r13,r13,47-31,30,31
-	OPT_GET_SPR(r13, SPRN_CFAR, CPU_FTR_CFAR)
-	beq	9f
-
-	mfspr	r13,SPRN_SRR1
-	rlwinm.	r13,r13,47-31,30,31
-	/* waking up from powersave (nap) state */
-	cmpwi	cr1,r13,2
-	/* Total loss of HV state is fatal. let's just stay stuck here */
-	OPT_GET_SPR(r13, SPRN_CFAR, CPU_FTR_CFAR)
-	bgt	cr1,.
-9:
-	OPT_SET_SPR(r13, SPRN_CFAR, CPU_FTR_CFAR)
-END_FTR_SECTION_IFSET(CPU_FTR_HVMODE | CPU_FTR_ARCH_206)
-#endif /* CONFIG_PPC_P7_NAP */
+	GET_PACA(r13)
+	clrrdi	r13,r13,1
+	SET_PACA(r13)
 	EXCEPTION_PROLOG_0(PACA_EXMC)
 BEGIN_FTR_SECTION
 	b	machine_check_pSeries_early
@@ -1418,17 +1403,17 @@ machine_check_handle_early:
 	 * Check if thread was in power saving mode. We come here when any
 	 * of the following is true:
 	 * a. thread wasn't in power saving mode
-	 * b. thread was in power saving mode with no state loss or
-	 *    supervisor state loss
+	 * b. thread was in power saving mode with no state loss,
+	 *    supervisor state loss or hypervisor state loss.
 	 *
-	 * Go back to nap again if (b) is true.
+	 * Go back to nap/sleep/winkle mode again if (b) is true.
 	 */
 	rlwinm.	r11,r12,47-31,30,31	/* Was it in power saving mode? */
 	beq	4f			/* No, it wasn;t */
 	/* Thread was in power saving mode. Go back to nap again. */
 	cmpwi	r11,2
-	bne	3f
-	/* Supervisor state loss */
+	blt	3f
+	/* Supervisor/Hypervisor state loss */
 	li	r0,1
 	stb	r0,PACA_NAPSTATELOST(r13)
 3:	bl	machine_check_queue_event
arch/powerpc/kernel/mce.c +2 -1
index a7fd4cb78b78..1c75f9777ce3 100644
@@ -92,7 +92,8 @@ void save_mce_event(struct pt_regs *regs, long handled,
 	mce->in_use = 1;
 
 	mce->initiator = MCE_INITIATOR_CPU;
-	if (handled)
+	/* Mark it recovered if we have handled it and MSR(RI=1). */
+	if (handled && (regs->msr & MSR_RI))
 		mce->disposition = MCE_DISPOSITION_RECOVERED;
 	else
 		mce->disposition = MCE_DISPOSITION_NOT_RECOVERED;
arch/powerpc/kernel/pci-common.c +36 -0
index b49c72fd7f16..d4f779654f1d 100644
@@ -102,6 +102,42 @@ void pcibios_free_controller(struct pci_controller *phb)
 }
 
 /*
+ * This function is used to call pcibios_free_controller()
+ * in a deferred manner: a callback from the PCI subsystem.
+ *
+ * _*DO NOT*_ call pcibios_free_controller() explicitly if
+ * this is used (or it may access an invalid *phb pointer).
+ *
+ * The callback occurs when all references to the root bus
+ * are dropped (e.g., child buses/devices and their users).
+ *
+ * It's called as .release_fn() of 'struct pci_host_bridge'
+ * which is associated with the 'struct pci_controller.bus'
+ * (root bus) - it expects .release_data to hold a pointer
+ * to 'struct pci_controller'.
+ *
+ * In order to use it, register .release_fn()/release_data
+ * like this:
+ *
+ * pci_set_host_bridge_release(bridge,
+ *                             pcibios_free_controller_deferred
+ *                             (void *) phb);
+ *
+ * e.g. in the pcibios_root_bridge_prepare() callback from
+ * pci_create_root_bus().
+ */
+void pcibios_free_controller_deferred(struct pci_host_bridge *bridge)
+{
+	struct pci_controller *phb = (struct pci_controller *)
+					 bridge->release_data;
+
+	pr_debug("domain %d, dynamic %d\n", phb->global_number, phb->is_dynamic);
+
+	pcibios_free_controller(phb);
+}
+EXPORT_SYMBOL_GPL(pcibios_free_controller_deferred);
+
+/*
  * The function is used to return the minimal alignment
  * for memory or I/O windows of the associated P2P bridge.
  * By default, 4KiB alignment for I/O windows and 1MiB for
arch/powerpc/kernel/prom_init.c +6 -3
index 1a85d8f96739..69be680f7184 100644
@@ -685,7 +685,7 @@ unsigned char ibm_architecture_vec[] = {
 	OV4_MIN_ENT_CAP,		/* minimum VP entitled capacity */
 
 	/* option vector 5: PAPR/OF options */
-	19 - 2,				/* length */
+	22 - 2,				/* length */
 	0,				/* don't ignore, don't halt */
 	OV5_FEAT(OV5_LPAR) | OV5_FEAT(OV5_SPLPAR) | OV5_FEAT(OV5_LARGE_PAGES) |
 	OV5_FEAT(OV5_DRCONF_MEMORY) | OV5_FEAT(OV5_DONATE_DEDICATE_CPU) |
@@ -716,8 +716,11 @@ unsigned char ibm_architecture_vec[] = {
 	0,
 	0,
 	OV5_FEAT(OV5_PFO_HW_RNG) | OV5_FEAT(OV5_PFO_HW_ENCR) |
-	OV5_FEAT(OV5_PFO_HW_842),
-	OV5_FEAT(OV5_SUB_PROCESSORS),
+	OV5_FEAT(OV5_PFO_HW_842),				/* Byte 17 */
+	0,							/* Byte 18 */
+	0,							/* Byte 19 */
+	0,							/* Byte 20 */
+	OV5_FEAT(OV5_SUB_PROCESSORS),				/* Byte 21 */
 	/* option vector 6: IBM PAPR hints */
 	4 - 2,				/* length */
 	0,
arch/powerpc/kernel/tm.S +1 -2
index f81d900a562a..08225a352477 100644
@@ -338,8 +338,6 @@ _GLOBAL(__tm_recheckpoint)
 	 */
 	subi	r7, r7, STACK_FRAME_OVERHEAD
 
-	SET_SCRATCH0(r1)
-
 	mfmsr	r6
 	/* R4 = original MSR to indicate whether thread used FP/Vector etc. */
 
@@ -468,6 +466,7 @@ restore_gprs:
 	 * until we turn MSR RI back on.
 	 */
 
+	SET_SCRATCH0(r1)
 	ld	r5, -8(r1)
 	ld	r1, -16(r1)
 
arch/powerpc/platforms/powernv/opal-dump.c +6 -1
index 788a1977b9a5..2f420f9e4c54 100644
@@ -365,6 +365,7 @@ static int process_dump(void)
 	uint32_t dump_id, dump_size, dump_type;
 	struct dump_obj *dump;
 	char name[22];
+	struct kobject *kobj;
 
 	rc = dump_read_info(&dump_id, &dump_size, &dump_type);
 	if (rc != OPAL_SUCCESS)
@@ -376,8 +377,12 @@ static int process_dump(void)
 	 * that gracefully and not create two conflicting
 	 * entries.
 	 */
-	if (kset_find_obj(dump_kset, name))
+	kobj = kset_find_obj(dump_kset, name);
+	if (kobj) {
+		/* Drop reference added by kset_find_obj() */
+		kobject_put(kobj);
 		return 0;
+	}
 
 	dump = create_dump_obj(dump_id, dump_size, dump_type);
 	if (!dump)
arch/powerpc/platforms/powernv/opal-elog.c +6 -1
index 0ad533b617f7..c4ae2958de9c 100644
@@ -246,6 +246,7 @@ static void elog_work_fn(struct work_struct *work)
 	uint64_t elog_type;
 	int rc;
 	char name[2+16+1];
+	struct kobject *kobj;
 
 	rc = opal_get_elog_size(&id, &size, &type);
 	if (rc != OPAL_SUCCESS) {
@@ -268,8 +269,12 @@ static void elog_work_fn(struct work_struct *work)
 	 * that gracefully and not create two conflicting
 	 * entries.
 	 */
-	if (kset_find_obj(elog_kset, name))
+	kobj = kset_find_obj(elog_kset, name);
+	if (kobj) {
+		/* Drop reference added by kset_find_obj() */
+		kobject_put(kobj);
 		return;
+	}
 
 	create_elog_obj(log_id, elog_size, elog_type);
 }
arch/powerpc/platforms/powernv/opal.c +1 -0
index 0fa7178d36dc..12833e486d9b 100644
@@ -459,6 +459,7 @@ static int opal_recover_mce(struct pt_regs *regs,
 
 	if (!(regs->msr & MSR_RI)) {
 		/* If MSR_RI isn't set, we cannot recover */
+		pr_err("Machine check interrupt unrecoverable: MSR(RI=0)\n");
 		recovered = 0;
 	} else if (evt->disposition == MCE_DISPOSITION_RECOVERED) {
 		/* Platform corrected itself */
arch/powerpc/platforms/pseries/pci.c +4 -0
index c413ec158ff5..1017734bdc78 100644
@@ -118,6 +118,10 @@ int pseries_root_bridge_prepare(struct pci_host_bridge *bridge)
 
 	bus = bridge->bus;
 
+	/* Rely on the pcibios_free_controller_deferred() callback. */
+	pci_set_host_bridge_release(bridge, pcibios_free_controller_deferred,
+					(void *) pci_bus_to_host(bus));
+
 	dn = pcibios_get_phb_of_node(bus);
 	if (!dn)
 		return 0;
arch/powerpc/platforms/pseries/pci_dlpar.c +5 -2
index 89e23811199c..e161a25bc64b 100644
@@ -135,8 +135,11 @@ int remove_phb_dynamic(struct pci_controller *phb)
 		release_resource(res);
 	}
 
-	/* Free pci_controller data structure */
-	pcibios_free_controller(phb);
+	/*
+	 * The pci_controller data structure is freed by
+	 * the pcibios_free_controller_deferred() callback;
+	 * see pseries_root_bridge_prepare().
+	 */
 
 	return 0;
 }
arch/s390/include/asm/elf.h +1 -0
index 78f4f8711d58..977afc2674e2 100644
@@ -210,6 +210,7 @@ do {								\
 
 #define STACK_RND_MASK	0x7ffUL
 
+/* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */
 #define ARCH_DLINFO							    \
 do {									    \
 	if (vdso_enabled)						    \
arch/s390/include/asm/tlbflush.h +2 -1
index 16c9c88658c8..1f2fa85091ce 100644
@@ -88,7 +88,8 @@ static inline void __tlb_flush_full(struct mm_struct *mm)
 }
 
 /*
- * Flush TLB entries for a specific ASCE on all CPUs.
+ * Flush TLB entries for a specific ASCE on all CPUs. Should never be used
+ * when more than one asce (e.g. gmap) ran on this mm.
  */
 static inline void __tlb_flush_asce(struct mm_struct *mm, unsigned long asce)
 {
arch/s390/include/asm/uaccess.h +4 -4
index cd4c68e0398d..528f08c1d584 100644
@@ -213,28 +213,28 @@ int __put_user_bad(void) __attribute__((noreturn));
 	__chk_user_ptr(ptr);					\
 	switch (sizeof(*(ptr))) {				\
 	case 1: {						\
-		unsigned char __x;				\
+		unsigned char __x = 0;				\
 		__gu_err = __get_user_fn(&__x, ptr,		\
 					 sizeof(*(ptr)));	\
 		(x) = *(__force __typeof__(*(ptr)) *) &__x;	\
 		break;						\
 	};							\
 	case 2: {						\
-		unsigned short __x;				\
+		unsigned short __x = 0;				\
 		__gu_err = __get_user_fn(&__x, ptr,		\
 					 sizeof(*(ptr)));	\
 		(x) = *(__force __typeof__(*(ptr)) *) &__x;	\
 		break;						\
 	};							\
 	case 4: {						\
-		unsigned int __x;				\
+		unsigned int __x = 0;				\
 		__gu_err = __get_user_fn(&__x, ptr,		\
 					 sizeof(*(ptr)));	\
 		(x) = *(__force __typeof__(*(ptr)) *) &__x;	\
 		break;						\
 	};							\
 	case 8: {						\
-		unsigned long long __x;				\
+		unsigned long long __x = 0;			\
 		__gu_err = __get_user_fn(&__x, ptr,		\
 					 sizeof(*(ptr)));	\
 		(x) = *(__force __typeof__(*(ptr)) *) &__x;	\
arch/s390/include/uapi/asm/auxvec.h +2 -0
index a1f153e89133..c53e08442255 100644
@@ -3,4 +3,6 @@
 
 #define AT_SYSINFO_EHDR		33
 
+#define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */
+
 #endif
arch/s390/mm/pgtable.c +2 -2
index 98eeb823342c..80fcdfb8a810 100644
@@ -202,7 +202,7 @@ static int gmap_unlink_segment(struct gmap *gmap, unsigned long *table)
 static void gmap_flush_tlb(struct gmap *gmap)
 {
 	if (MACHINE_HAS_IDTE)
-		__tlb_flush_asce(gmap->mm, (unsigned long) gmap->table |
+		__tlb_flush_idte((unsigned long) gmap->table |
 				 _ASCE_TYPE_REGION1);
 	else
 		__tlb_flush_global();
@@ -221,7 +221,7 @@ void gmap_free(struct gmap *gmap)
 
 	/* Flush tlb. */
 	if (MACHINE_HAS_IDTE)
-		__tlb_flush_asce(gmap->mm, (unsigned long) gmap->table |
+		__tlb_flush_idte((unsigned long) gmap->table |
 				 _ASCE_TYPE_REGION1);
 	else
 		__tlb_flush_global();
arch/score/include/asm/uaccess.h +24 -22

95 lines not on this page · raw message

arch/sh/include/asm/uaccess.h +4 -1
index 9486376605f4..c04cc18ae9cd 100644
@@ -151,7 +151,10 @@ copy_from_user(void *to, const void __user *from, unsigned long n)
 	__kernel_size_t __copy_size = (__kernel_size_t) n;
 
 	if (__copy_size && __access_ok(__copy_from, __copy_size))
-		return __copy_user(to, from, __copy_size);
+		__copy_size = __copy_user(to, from, __copy_size);
+
+	if (unlikely(__copy_size))
+		memset(to + (n - __copy_size), 0, __copy_size);
 
 	return __copy_size;
 }
arch/sh/include/asm/uaccess_64.h +1 -0
index 2e07e0f40c6a..a2f9d0531328 100644
@@ -24,6 +24,7 @@
 #define __get_user_size(x,ptr,size,retval)			\
 do {								\
 	retval = 0;						\
+	x = 0;							\
 	switch (size) {						\
 	case 1:							\
 		retval = __get_user_asm_b((void *)&x,		\
arch/sparc/include/asm/uaccess_32.h +3 -1
index 9634d086fc56..79b03872e165 100644
@@ -265,8 +265,10 @@ static inline unsigned long copy_from_user(void *to, const void __user *from, un
 {
 	if (n && __access_ok((unsigned long) from, n))
 		return __copy_user((__force void __user *) to, from, n);
-	else
+	else {
+		memset(to, 0, n);
 		return n;
+	}
 }
 
 static inline unsigned long __copy_from_user(void *to, const void __user *from, unsigned long n)
arch/tile/include/asm/elf.h +1 -0
index 41d9878a9686..581f1414b6ca 100644
@@ -131,6 +131,7 @@ extern int dump_task_regs(struct task_struct *, elf_gregset_t *);
 struct linux_binprm;
 extern int arch_setup_additional_pages(struct linux_binprm *bprm,
 				       int executable_stack);
+/* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */
 #define ARCH_DLINFO \
 do { \
 	NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE); \
arch/tile/include/uapi/asm/auxvec.h +2 -0
index c93e92709f14..f497123ed980 100644
@@ -18,4 +18,6 @@
 /* The vDSO location. */
 #define AT_SYSINFO_EHDR         33
 
+#define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */
+
 #endif /* _ASM_TILE_AUXVEC_H */
arch/x86/boot/compressed/eboot.c +13 -7
index b77310833b03..cec4d620843e 100644
@@ -1266,7 +1266,7 @@ static efi_status_t exit_boot(struct boot_params *boot_params,
 			      void *handle, bool is64)
 {
 	struct efi_info *efi = &boot_params->efi_info;
-	unsigned long map_sz, key, desc_size;
+	unsigned long map_sz, key, desc_size, buff_size;
 	efi_memory_desc_t *mem_map;
 	struct setup_data *e820ext;
 	const char *signature;
@@ -1277,14 +1277,20 @@ static efi_status_t exit_boot(struct boot_params *boot_params,
 	bool called_exit = false;
 	u8 nr_entries;
 	int i;
-
-	nr_desc = 0;
-	e820ext = NULL;
-	e820ext_size = 0;
+	struct efi_boot_memmap map;
+
+	nr_desc =	0;
+	e820ext =	NULL;
+	e820ext_size =	0;
+	map.map =	&mem_map;
+	map.map_size =	&map_sz;
+	map.desc_size =	&desc_size;
+	map.desc_ver =	&desc_version;
+	map.key_ptr =	&key;
+	map.buff_size =	&buff_size;
 
 get_map:
-	status = efi_get_memory_map(sys_table, &mem_map, &map_sz, &desc_size,
-				    &desc_version, &key);
+	status = efi_get_memory_map(sys_table, &map);
 
 	if (status != EFI_SUCCESS)
 		return status;
arch/x86/include/asm/tlbflush.h +7 -0
index 04905bfc508b..5e4b0cc54e43 100644
@@ -17,7 +17,14 @@
 
 static inline void __native_flush_tlb(void)
 {
+	/*
+	 * If current->mm == NULL then we borrow a mm which may change during a
+	 * task switch and therefore we must not be preempted while we write CR3
+	 * back:
+	 */
+	preempt_disable();
 	native_write_cr3(native_read_cr3());
+	preempt_enable();
 }
 
 static inline void __native_flush_tlb_global_irq_disabled(void)
arch/x86/kernel/apic/apic.c +3 -0
index c385d14dadc3..42937ccb8573 100644
@@ -1615,6 +1615,9 @@ void __init enable_IR_x2apic(void)
 	int ret, x2apic_enabled = 0;
 	int hardware_init_ret;
 
+	if (skip_ioapic_setup)
+		return;
+
 	/* Make sure irq_remap_ops are initialized */
 	setup_irq_remapping_ops();
 
arch/x86/kernel/cpu/amd.c +14 -0
index edefacacc2cc..80e35e8522e4 100644
@@ -522,6 +522,17 @@ static const int amd_erratum_383[];
 static const int amd_erratum_400[];
 static bool cpu_has_amd_erratum(struct cpuinfo_x86 *cpu, const int *erratum);
 
+#define MSR_AMD64_DE_CFG	0xC0011029
+
+static void init_amd_ln(struct cpuinfo_x86 *c)
+{
+	/*
+	 * Apply erratum 665 fix unconditionally so machines without a BIOS
+	 * fix work.
+	 */
+	msr_set_bit(MSR_AMD64_DE_CFG, 31);
+}
+
 static void init_amd(struct cpuinfo_x86 *c)
 {
 	u32 dummy;
@@ -614,6 +625,9 @@ static void init_amd(struct cpuinfo_x86 *c)
 		}
 	}
 
+	if (c->x86 == 0x12)
+		init_amd_ln(c);
+
 	/* re-enable TopologyExtensions if switched off by BIOS */
 	if ((c->x86 == 0x15) &&
 	    (c->x86_model >= 0x10) && (c->x86_model <= 0x1f) &&
arch/x86/kernel/cpu/perf_event_amd.c +2 -2
index beeb7cc07044..dc4c3b89c3f5 100644
@@ -119,8 +119,8 @@ static const u64 amd_perfmon_event_map[] =
 {
   [PERF_COUNT_HW_CPU_CYCLES]			= 0x0076,
   [PERF_COUNT_HW_INSTRUCTIONS]			= 0x00c0,
-  [PERF_COUNT_HW_CACHE_REFERENCES]		= 0x0080,
-  [PERF_COUNT_HW_CACHE_MISSES]			= 0x0081,
+  [PERF_COUNT_HW_CACHE_REFERENCES]		= 0x077d,
+  [PERF_COUNT_HW_CACHE_MISSES]			= 0x077e,
   [PERF_COUNT_HW_BRANCH_INSTRUCTIONS]		= 0x00c2,
   [PERF_COUNT_HW_BRANCH_MISSES]			= 0x00c3,
   [PERF_COUNT_HW_STALLED_CYCLES_FRONTEND]	= 0x00d0, /* "Decoder empty" event */
arch/x86/kernel/early-quirks.c +92 -13

176 lines not on this page · raw message

arch/x86/kernel/paravirt.c +2 -2
index 8d12f0546dfc..8819ec730be4 100644
@@ -55,12 +55,12 @@ asm (".pushsection .entry.text, \"ax\"\n"
      ".popsection");
 
 /* identity function, which can be inlined */
-u32 _paravirt_ident_32(u32 x)
+u32 notrace _paravirt_ident_32(u32 x)
 {
 	return x;
 }
 
-u64 _paravirt_ident_64(u64 x)
+u64 notrace _paravirt_ident_64(u64 x)
 {
 	return x;
 }
arch/x86/kvm/vmx.c +61 -16

133 lines not on this page · raw message

arch/x86/syscalls/syscall_32.tbl +1 -1
index d6b867921612..50aa58be7933 100644
@@ -294,7 +294,7 @@
 # 285 sys_setaltroot
 286	i386	add_key			sys_add_key
 287	i386	request_key		sys_request_key
-288	i386	keyctl			sys_keyctl
+288	i386	keyctl			sys_keyctl			compat_sys_keyctl
 289	i386	ioprio_set		sys_ioprio_set
 290	i386	ioprio_get		sys_ioprio_get
 291	i386	inotify_init		sys_inotify_init
block/genhd.c +2 -1
index 9316f5fd416f..548e9e698610 100644
@@ -611,7 +611,7 @@ void add_disk(struct gendisk *disk)
 
 	/* Register BDI before referencing it from bdev */
 	bdi = &disk->queue->backing_dev_info;
-	bdi_register_dev(bdi, disk_devt(disk));
+	bdi_register_owner(bdi, disk_to_dev(disk));
 
 	blk_register_region(disk_devt(disk), disk->minors, NULL,
 			    exact_match, exact_lock, disk);
@@ -829,6 +829,7 @@ static void disk_seqf_stop(struct seq_file *seqf, void *v)
 	if (iter) {
 		class_dev_iter_exit(iter);
 		kfree(iter);
+		seqf->private = NULL;
 	}
 }
 
crypto/blkcipher.c +2 -1
index 3c551d46aa3b..37130b81d0d4 100644
@@ -233,6 +233,8 @@ static int blkcipher_walk_next(struct blkcipher_desc *desc,
 		return blkcipher_walk_done(desc, walk, -EINVAL);
 	}
 
+	bsize = min(walk->walk_blocksize, n);
+
 	walk->flags &= ~(BLKCIPHER_WALK_SLOW | BLKCIPHER_WALK_COPY |
 			 BLKCIPHER_WALK_DIFF);
 	if (!scatterwalk_aligned(&walk->in, walk->alignmask) ||
@@ -245,7 +247,6 @@ static int blkcipher_walk_next(struct blkcipher_desc *desc,
 		}
 	}
 
-	bsize = min(walk->walk_blocksize, n);
 	n = scatterwalk_clamp(&walk->in, n);
 	n = scatterwalk_clamp(&walk->out, n);
 
crypto/cryptd.c +7 -2
index 75c415d37086..d85fab975514 100644
@@ -565,9 +565,14 @@ static int cryptd_hash_export(struct ahash_request *req, void *out)
 
 static int cryptd_hash_import(struct ahash_request *req, const void *in)
 {
-	struct cryptd_hash_request_ctx *rctx = ahash_request_ctx(req);
+	struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
+	struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(tfm);
+	struct shash_desc *desc = cryptd_shash_desc(req);
+
+	desc->tfm = ctx->child;
+	desc->flags = req->base.flags;
 
-	return crypto_shash_import(&rctx->desc, in);
+	return crypto_shash_import(desc, in);
 }
 
 static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb,
crypto/gcm.c +3 -1
index f0bd00b15f26..d2a0f7371cf0 100644
@@ -716,7 +716,9 @@ static struct crypto_instance *crypto_gcm_alloc_common(struct rtattr **tb,
 
 	ghash_alg = crypto_find_alg(ghash_name, &crypto_ahash_type,
 				    CRYPTO_ALG_TYPE_HASH,
-				    CRYPTO_ALG_TYPE_AHASH_MASK);
+				    CRYPTO_ALG_TYPE_AHASH_MASK |
+				    crypto_requires_sync(algt->type,
+							 algt->mask));
 	if (IS_ERR(ghash_alg))
 		return ERR_CAST(ghash_alg);
 
crypto/scatterwalk.c +2 -1
index 79ca2278c2a3..0ec7a6fa3d4d 100644
@@ -68,7 +68,8 @@ static void scatterwalk_pagedone(struct scatter_walk *walk, int out,
 
 void scatterwalk_done(struct scatter_walk *walk, int out, int more)
 {
-	if (!(scatterwalk_pagelen(walk) & (PAGE_SIZE - 1)) || !more)
+	if (!more || walk->offset >= walk->sg->offset + walk->sg->length ||
+	    !(walk->offset & (PAGE_SIZE - 1)))
 		scatterwalk_pagedone(walk, out, more);
 }
 EXPORT_SYMBOL_GPL(scatterwalk_done);
drivers/bcma/bcma_private.h +0 -2
index 09b632ad0fe2..7ded994c6dd0 100644
@@ -8,8 +8,6 @@
 #include <linux/bcma/bcma.h>
 #include <linux/delay.h>
 
-#define BCMA_CORE_SIZE		0x1000
-
 #define bcma_err(bus, fmt, ...) \
 	pr_err("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
 #define bcma_warn(bus, fmt, ...) \
drivers/bluetooth/ath3k.c +4 -0
index 8e51b6c8ccac..1af9fd3202c1 100644
@@ -122,6 +122,8 @@ static const struct usb_device_id ath3k_table[] = {
 	{ USB_DEVICE(0x13d3, 0x3432) },
 	{ USB_DEVICE(0x13d3, 0x3472) },
 	{ USB_DEVICE(0x13d3, 0x3474) },
+	{ USB_DEVICE(0x13d3, 0x3487) },
+	{ USB_DEVICE(0x13d3, 0x3490) },
 
 	/* Atheros AR5BBU12 with sflash firmware */
 	{ USB_DEVICE(0x0489, 0xE02C) },
@@ -188,6 +190,8 @@ static const struct usb_device_id ath3k_blist_tbl[] = {
 	{ USB_DEVICE(0x13d3, 0x3432), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x13d3, 0x3472), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x13d3, 0x3474), .driver_info = BTUSB_ATH3012 },
+	{ USB_DEVICE(0x13d3, 0x3487), .driver_info = BTUSB_ATH3012 },
+	{ USB_DEVICE(0x13d3, 0x3490), .driver_info = BTUSB_ATH3012 },
 
 	/* Atheros AR5BBU22 with sflash firmware */
 	{ USB_DEVICE(0x0489, 0xE036), .driver_info = BTUSB_ATH3012 },
drivers/bluetooth/btusb.c +2 -0
index a9ccee35973e..876654772092 100644
@@ -216,6 +216,8 @@ static const struct usb_device_id blacklist_table[] = {
 	{ USB_DEVICE(0x13d3, 0x3432), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x13d3, 0x3472), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x13d3, 0x3474), .driver_info = BTUSB_ATH3012 },
+	{ USB_DEVICE(0x13d3, 0x3487), .driver_info = BTUSB_ATH3012 },
+	{ USB_DEVICE(0x13d3, 0x3490), .driver_info = BTUSB_ATH3012 },
 
 	/* Atheros AR5BBU12 with sflash firmware */
 	{ USB_DEVICE(0x0489, 0xe02c), .driver_info = BTUSB_IGNORE },
drivers/char/hw_random/omap-rng.c +14 -2
index f66ea258382f..710aec7820a4 100644
@@ -384,7 +384,12 @@ static int omap_rng_probe(struct platform_device *pdev)
 	}
 
 	pm_runtime_enable(&pdev->dev);
-	pm_runtime_get_sync(&pdev->dev);
+	ret = pm_runtime_get_sync(&pdev->dev);
+	if (ret) {
+		dev_err(&pdev->dev, "Failed to runtime_get device: %d\n", ret);
+		pm_runtime_put_noidle(&pdev->dev);
+		goto err_ioremap;
+	}
 
 	ret = (dev->of_node) ? of_get_omap_rng_device_details(priv, pdev) :
 				get_omap_rng_device_details(priv);
@@ -437,8 +442,15 @@ static int omap_rng_suspend(struct device *dev)
 static int omap_rng_resume(struct device *dev)
 {
 	struct omap_rng_dev *priv = dev_get_drvdata(dev);
+	int ret;
+
+	ret = pm_runtime_get_sync(dev);
+	if (ret) {
+		dev_err(dev, "Failed to runtime_get device: %d\n", ret);
+		pm_runtime_put_noidle(dev);
+		return ret;
+	}
 
-	pm_runtime_get_sync(dev);
 	priv->pdata->init(priv);
 
 	return 0;
drivers/char/random.c +9 -4
index dde8da31dcae..692482b7c2fb 100644
@@ -956,6 +956,7 @@ static void _xfer_secondary_pool(struct entropy_store *r, size_t nbytes)
 	mix_pool_bytes(r, tmp, bytes, NULL);
 	credit_entropy_bits(r, bytes*8);
 }
+EXPORT_SYMBOL_GPL(add_interrupt_randomness);
 
 /*
  * Used as a workqueue function so that when the input pool is getting
@@ -1379,12 +1380,16 @@ random_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos)
 static ssize_t
 urandom_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos)
 {
+	static int maxwarn = 10;
 	int ret;
 
-	if (unlikely(nonblocking_pool.initialized == 0))
-		printk_once(KERN_NOTICE "random: %s urandom read "
-			    "with %d bits of entropy available\n",
-			    current->comm, nonblocking_pool.entropy_total);
+	if (unlikely(nonblocking_pool.initialized == 0) &&
+	    maxwarn > 0) {
+		maxwarn--;
+		printk(KERN_NOTICE "random: %s: uninitialized urandom read "
+		       "(%zd bytes read, %d bits of entropy available)\n",
+		       current->comm, nbytes, nonblocking_pool.entropy_total);
+	}
 
 	nbytes = min_t(size_t, nbytes, INT_MAX >> (ENTROPY_SHIFT + 3));
 	ret = extract_entropy_user(&nonblocking_pool, buf, nbytes);
drivers/char/tpm/tpm_tis.c +4 -5
index 51350cd0847e..415e47d79a46 100644
@@ -197,16 +197,15 @@ static int get_burstcount(struct tpm_chip *chip)
 {
 	unsigned long stop;
 	int burstcnt;
+	u32 value;
 
 	/* wait for burstcount */
 	/* which timeout value, spec has 2 answers (c & d) */
 	stop = jiffies + chip->vendor.timeout_d;
 	do {
-		burstcnt = ioread8(chip->vendor.iobase +
-				   TPM_STS(chip->vendor.locality) + 1);
-		burstcnt += ioread8(chip->vendor.iobase +
-				    TPM_STS(chip->vendor.locality) +
-				    2) << 8;
+		value = ioread32(chip->vendor.iobase +
+				 TPM_STS(chip->vendor.locality));
+		burstcnt = (value >> 8) & 0xFFFF;
 		if (burstcnt)
 			return burstcnt;
 		msleep(TPM_TIMEOUT);
drivers/clocksource/sun4i_timer.c +8 -1
index f4a9c0058b4d..501c95941882 100644
@@ -120,12 +120,16 @@ static struct clock_event_device sun4i_clockevent = {
 	.set_next_event = sun4i_clkevt_next_event,
 };
 
+static void sun4i_timer_clear_interrupt(void)
+{
+	writel(TIMER_IRQ_EN(0), timer_base + TIMER_IRQ_ST_REG);
+}
 
 static irqreturn_t sun4i_timer_interrupt(int irq, void *dev_id)
 {
 	struct clock_event_device *evt = (struct clock_event_device *)dev_id;
 
-	writel(0x1, timer_base + TIMER_IRQ_ST_REG);
+	sun4i_timer_clear_interrupt();
 	evt->event_handler(evt);
 
 	return IRQ_HANDLED;
@@ -182,6 +186,9 @@ static void __init sun4i_timer_init(struct device_node *node)
 	/* Make sure timer is stopped before playing with interrupts */
 	sun4i_clkevt_time_stop(0);
 
+	/* clear timer0 interrupt */
+	sun4i_timer_clear_interrupt();
+
 	sun4i_clockevent.cpumask = cpu_possible_mask;
 	sun4i_clockevent.irq = irq;
 
drivers/crypto/caam/caamhash.c +1 -0
index a22f9b473c22..4f03b1a14d62 100644
@@ -1778,6 +1778,7 @@ caam_hash_alloc(struct caam_hash_template *template,
 			 template->name);
 		snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s",
 			 template->driver_name);
+		t_alg->ahash_alg.setkey = NULL;
 	}
 	alg->cra_module = THIS_MODULE;
 	alg->cra_init = caam_hash_cra_init;
drivers/crypto/nx/nx.c +1 -1
index 5533fe31c90d..433a7696bf0f 100644
@@ -330,7 +330,7 @@ static void nx_of_update_msc(struct device   *dev,
 		     ((bytes_so_far + sizeof(struct msc_triplet)) <= lenp) &&
 		     i < msc->triplets;
 		     i++) {
-			if (msc->fc > NX_MAX_FC || msc->mode > NX_MAX_MODE) {
+			if (msc->fc >= NX_MAX_FC || msc->mode >= NX_MAX_MODE) {
 				dev_err(dev, "unknown function code/mode "
 					"combo: %d/%d (ignored)\n", msc->fc,
 					msc->mode);
drivers/devfreq/devfreq.c +1 -1
index 9f90369dd6bd..ba850eb2d275 100644
@@ -483,7 +483,7 @@ struct devfreq *devfreq_add_device(struct device *dev,
 						devfreq->profile->max_state *
 						devfreq->profile->max_state,
 						GFP_KERNEL);
-	devfreq->time_in_state = devm_kzalloc(dev, sizeof(unsigned int) *
+	devfreq->time_in_state = devm_kzalloc(dev, sizeof(unsigned long) *
 						devfreq->profile->max_state,
 						GFP_KERNEL);
 	devfreq->last_stat_updated = jiffies;
drivers/firewire/net.c +35 -16

91 lines not on this page · raw message

drivers/firmware/efi/efi-stub-helper.c +66 -30

163 lines not on this page · raw message

drivers/firmware/efi/fdt.c +10 -3
index 507a3df46a5d..519448aeaffd 100644
@@ -178,12 +178,20 @@ efi_status_t allocate_new_fdt_and_exit_boot(efi_system_table_t *sys_table,
 					    unsigned long fdt_addr,
 					    unsigned long fdt_size)
 {
-	unsigned long map_size, desc_size;
+	unsigned long map_size, desc_size, buff_size;
 	u32 desc_ver;
 	unsigned long mmap_key;
 	efi_memory_desc_t *memory_map;
 	unsigned long new_fdt_size;
 	efi_status_t status;
+	struct efi_boot_memmap map;
+
+	map.map =	&memory_map;
+	map.map_size =	&map_size;
+	map.desc_size =	&desc_size;
+	map.desc_ver =	&desc_ver;
+	map.key_ptr =	&mmap_key;
+	map.buff_size =	&buff_size;
 
 	/*
 	 * Estimate size of new FDT, and allocate memory for it. We
@@ -204,8 +212,7 @@ efi_status_t allocate_new_fdt_and_exit_boot(efi_system_table_t *sys_table,
 		 * we can get the memory map key  needed for
 		 * exit_boot_services().
 		 */
-		status = efi_get_memory_map(sys_table, &memory_map, &map_size,
-					    &desc_size, &desc_ver, &mmap_key);
+		status = efi_get_memory_map(sys_table, &map);
 		if (status != EFI_SUCCESS)
 			goto fail_free_new_fdt;
 
drivers/gpio/Kconfig +1 -0
index 4a1b5113e527..53a2f65fb166 100644
@@ -50,6 +50,7 @@ config GPIO_DEVRES
 config OF_GPIO
 	def_bool y
 	depends on OF
+	depends on HAS_IOMEM
 
 config GPIO_ACPI
 	def_bool y
drivers/gpio/gpio-intel-mid.c +0 -19
index 118a6bf455d9..39d0bc81657e 100644
@@ -17,7 +17,6 @@
  * Moorestown platform Langwell chip.
  * Medfield platform Penwell chip.
  * Clovertrail platform Cloverview chip.
- * Merrifield platform Tangier chip.
  */
 
 #include <linux/module.h>
@@ -66,10 +65,6 @@ enum GPIO_REG {
 /* intel_mid gpio driver data */
 struct intel_mid_gpio_ddata {
 	u16 ngpio;		/* number of gpio pins */
-	u32 gplr_offset;	/* offset of first GPLR register from base */
-	u32 flis_base;		/* base address of FLIS registers */
-	u32 flis_len;		/* length of FLIS registers */
-	u32 (*get_flis_offset)(int gpio);
 	u32 chip_irq_type;	/* chip interrupt type */
 };
 
@@ -284,15 +279,6 @@ static const struct intel_mid_gpio_ddata gpio_cloverview_core = {
 	.chip_irq_type = INTEL_MID_IRQ_TYPE_EDGE,
 };
 
-static const struct intel_mid_gpio_ddata gpio_tangier = {
-	.ngpio = 192,
-	.gplr_offset = 4,
-	.flis_base = 0xff0c0000,
-	.flis_len = 0x8000,
-	.get_flis_offset = NULL,
-	.chip_irq_type = INTEL_MID_IRQ_TYPE_EDGE,
-};
-
 static const struct pci_device_id intel_gpio_ids[] = {
 	{
 		/* Lincroft */
@@ -319,11 +305,6 @@ static const struct pci_device_id intel_gpio_ids[] = {
 		PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x08f7),
 		.driver_data = (kernel_ulong_t)&gpio_cloverview_core,
 	},
-	{
-		/* Tangier */
-		PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x1199),
-		.driver_data = (kernel_ulong_t)&gpio_tangier,
-	},
 	{ 0 }
 };
 MODULE_DEVICE_TABLE(pci, intel_gpio_ids);
drivers/gpio/gpio-pca953x.c +1 -1
index 103de0f01934..7a92eb0dad6b 100644
@@ -76,7 +76,7 @@ MODULE_DEVICE_TABLE(i2c, pca953x_id);
 #define MAX_BANK 5
 #define BANK_SZ 8
 
-#define NBANK(chip) (chip->gpio_chip.ngpio / BANK_SZ)
+#define NBANK(chip) DIV_ROUND_UP(chip->gpio_chip.ngpio, BANK_SZ)
 
 struct pca953x_chip {
 	unsigned gpio_start;
drivers/gpu/drm/drm_crtc.c +3 -0
index 0dd2c26c55ab..8cbc8ea28e0e 100644
@@ -4236,6 +4236,9 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev,
 	unsigned long flags;
 	int ret = -EINVAL;
 
+	if (!drm_core_check_feature(dev, DRIVER_MODESET))
+		return -EINVAL;
+
 	if (page_flip->flags & ~DRM_MODE_PAGE_FLIP_FLAGS ||
 	    page_flip->reserved != 0)
 		return -EINVAL;
drivers/gpu/drm/drm_edid.c +8 -0
index dfa9769b26b5..0149b1e6dd5b 100644
@@ -72,6 +72,8 @@
 #define EDID_QUIRK_FORCE_8BPC			(1 << 8)
 /* Force 12bpc */
 #define EDID_QUIRK_FORCE_12BPC			(1 << 9)
+/* Force 6bpc */
+#define EDID_QUIRK_FORCE_6BPC			(1 << 10)
 
 struct detailed_mode_closure {
 	struct drm_connector *connector;
@@ -98,6 +100,9 @@ static struct edid_quirk {
 	/* Unknown Acer */
 	{ "ACR", 2423, EDID_QUIRK_FIRST_DETAILED_PREFERRED },
 
+	/* AEO model 0 reports 8 bpc, but is a 6 bpc panel */
+	{ "AEO", 0, EDID_QUIRK_FORCE_6BPC },
+
 	/* Belinea 10 15 55 */
 	{ "MAX", 1516, EDID_QUIRK_PREFER_LARGE_60 },
 	{ "MAX", 0x77e, EDID_QUIRK_PREFER_LARGE_60 },
@@ -3667,6 +3672,9 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid)
 
 	drm_add_display_info(edid, &connector->display_info, connector);
 
+	if (quirks & EDID_QUIRK_FORCE_6BPC)
+		connector->display_info.bpc = 6;
+
 	if (quirks & EDID_QUIRK_FORCE_8BPC)
 		connector->display_info.bpc = 8;
 
drivers/gpu/drm/i915/intel_display.c +5 -15
index a62393650307..2041c5bbb929 100644
@@ -9475,21 +9475,11 @@ connected_sink_compute_bpp(struct intel_connector *connector,
 		pipe_config->pipe_bpp = connector->base.display_info.bpc*3;
 	}
 
-	/* Clamp bpp to default limit on screens without EDID 1.4 */
-	if (connector->base.display_info.bpc == 0) {
-		int type = connector->base.connector_type;
-		int clamp_bpp = 24;
-
-		/* Fall back to 18 bpp when DP sink capability is unknown. */
-		if (type == DRM_MODE_CONNECTOR_DisplayPort ||
-		    type == DRM_MODE_CONNECTOR_eDP)
-			clamp_bpp = 18;
-
-		if (bpp > clamp_bpp) {
-			DRM_DEBUG_KMS("clamping display bpp (was %d) to default limit of %d\n",
-				      bpp, clamp_bpp);
-			pipe_config->pipe_bpp = clamp_bpp;
-		}
+	/* Clamp bpp to 8 on screens without EDID 1.4 */
+	if (connector->base.display_info.bpc == 0 && bpp > 24) {
+		DRM_DEBUG_KMS("clamping display bpp (was %d) to default limit of 24\n",
+			      bpp);
+		pipe_config->pipe_bpp = 24;
 	}
 }
 
drivers/gpu/drm/msm/msm_drv.h +6 -0
index 8a2c5fd0893e..cb4a95b75dd7 100644
@@ -124,6 +124,12 @@ struct msm_drm_private {
 		 */
 		struct drm_mm mm;
 	} vram;
+
+	/* task holding struct_mutex.. currently only used in submit path
+	 * to detect and reject faults from copy_from_user() for submit
+	 * ioctl.
+	 */
+	struct task_struct *struct_mutex_task;
 };
 
 struct msm_format {
drivers/gpu/drm/msm/msm_gem.c +9 -0
index 690d7e7b6d1e..f611b079a360 100644
@@ -188,11 +188,20 @@ int msm_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
 {
 	struct drm_gem_object *obj = vma->vm_private_data;
 	struct drm_device *dev = obj->dev;
+	struct msm_drm_private *priv = dev->dev_private;
 	struct page **pages;
 	unsigned long pfn;
 	pgoff_t pgoff;
 	int ret;
 
+	/* This should only happen if userspace tries to pass a mmap'd
+	 * but unfaulted gem bo vaddr into submit ioctl, triggering
+	 * a page fault while struct_mutex is already held.  This is
+	 * not a valid use-case so just bail.
+	 */
+	if (priv->struct_mutex_task == current)
+		return VM_FAULT_SIGBUS;
+
 	/* Make sure we don't parallel update on a fault, nor move or remove
 	 * something from beneath our feet
 	 */
drivers/gpu/drm/msm/msm_gem_submit.c +30 -7
index cd0554f68316..057951163126 100644
@@ -55,6 +55,14 @@ static struct msm_gem_submit *submit_create(struct drm_device *dev,
 	return submit;
 }
 
+static inline unsigned long __must_check
+copy_from_user_inatomic(void *to, const void __user *from, unsigned long n)
+{
+	if (access_ok(VERIFY_READ, from, n))
+		return __copy_from_user_inatomic(to, from, n);
+	return -EFAULT;
+}
+
 static int submit_lookup_objects(struct msm_gem_submit *submit,
 		struct drm_msm_gem_submit *args, struct drm_file *file)
 {
@@ -62,6 +70,7 @@ static int submit_lookup_objects(struct msm_gem_submit *submit,
 	int ret = 0;
 
 	spin_lock(&file->table_lock);
+	pagefault_disable();
 
 	for (i = 0; i < args->nr_bos; i++) {
 		struct drm_msm_gem_submit_bo submit_bo;
@@ -70,10 +79,15 @@ static int submit_lookup_objects(struct msm_gem_submit *submit,
 		void __user *userptr =
 			to_user_ptr(args->bos + (i * sizeof(submit_bo)));
 
-		ret = copy_from_user(&submit_bo, userptr, sizeof(submit_bo));
-		if (ret) {
-			ret = -EFAULT;
-			goto out_unlock;
+		ret = copy_from_user_inatomic(&submit_bo, userptr, sizeof(submit_bo));
+		if (unlikely(ret)) {
+			pagefault_enable();
+			spin_unlock(&file->table_lock);
+			ret = copy_from_user(&submit_bo, userptr, sizeof(submit_bo));
+			if (ret)
+				goto out;
+			spin_lock(&file->table_lock);
+			pagefault_disable();
 		}
 
 		if (submit_bo.flags & ~MSM_SUBMIT_BO_FLAGS) {
@@ -113,9 +127,12 @@ static int submit_lookup_objects(struct msm_gem_submit *submit,
 	}
 
 out_unlock:
-	submit->nr_bos = i;
+	pagefault_enable();
 	spin_unlock(&file->table_lock);
 
+out:
+	submit->nr_bos = i;
+
 	return ret;
 }
 
@@ -339,12 +356,16 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data,
 	if (args->nr_cmds > MAX_CMDS)
 		return -EINVAL;
 
-	mutex_lock(&dev->struct_mutex);
+	ret = mutex_lock_interruptible(&dev->struct_mutex);
+	if (ret)
+		return ret;
+
+	priv->struct_mutex_task = current;
 
 	submit = submit_create(dev, gpu, args->nr_bos);
 	if (!submit) {
 		ret = -ENOMEM;
-		goto out;
+		goto out_unlock;
 	}
 
 	ret = submit_lookup_objects(submit, args, file);
@@ -422,6 +443,8 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data,
 out:
 	if (submit)
 		submit_cleanup(submit, !!ret);
+out_unlock:
+	priv->struct_mutex_task = NULL;
[… more lines in the raw message]

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

drivers/gpu/drm/nouveau/nouveau_acpi.c +40 -36

76 lines not on this page · raw message

drivers/gpu/drm/nouveau/nouveau_drm.c +4 -1
index 84a8b9fb20c8..9604d14e2094 100644

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

drivers/gpu/drm/nouveau/nv04_fbcon.c +2 -2
index cf4ad5142f21..fba084558969 100644

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

drivers/gpu/drm/nouveau/nv50_fbcon.c +1 -1
index 3860b7443e90..e9f65ac0fb78 100644

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

drivers/gpu/drm/nouveau/nvc0_fbcon.c +1 -1
index fff0a1a33df0..4327d8e85dfc 100644

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

drivers/gpu/drm/qxl/qxl_draw.c +2 -0
index 56e1d633875e..6e6c76080d6a 100644

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

drivers/gpu/drm/radeon/atombios_encoders.c +1 -0
index 6af1728c5c2b..d38799899ca9 100644

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

drivers/gpu/drm/radeon/radeon_atombios.c +2 -2
index 0bf38157dfc3..dc86c87e01a0 100644

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

drivers/gpu/drm/radeon/radeon_atpx_handler.c +5 -0
index a9fb0d016d38..ba95c4934c8d 100644

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

drivers/gpu/drm/radeon/radeon_connectors.c +9 -6
index 508eed9f8071..e77ddbcc9d56 100644

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

drivers/gpu/drm/radeon/radeon_device.c +4 -0
index 821c86bc70c2..7a7a4af75630 100644

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

drivers/gpu/drm/radeon/radeon_kms.c +3 -1
index b63094746b50..907ad15a8485 100644

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

drivers/gpu/drm/radeon/radeon_ttm.c +2 -2
index c4675b9729c9..56ff46e68c54 100644

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

drivers/gpu/drm/radeon/si_dpm.c +6 -0
index 92d849e68f14..12527d69877c 100644

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

drivers/hid/uhid.c +24 -9
index 0cb92e347258..e0453b6a21a8 100644

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

drivers/hv/vmbus_drv.c +3 -0
index 233da0b9f4b9..1f2fff71dbe3 100644

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

drivers/hwmon/adt7411.c +4 -1
index d9299dee37d1..dddaa161aadb 100644

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

drivers/i2c/busses/i2c-efm32.c +1 -1
index f7eccd682de9..599e620fd8da 100644

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

drivers/i2c/busses/i2c-eg20t.c +11 -7
index a44ea13d1434..85f33003c38b 100644

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

drivers/i2c/busses/i2c-qup.c +2 -1
index eb47c98131ec..d9e6738db72c 100644

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

drivers/i2c/muxes/i2c-mux-pca954x.c +1 -1
index 9bd4212782ab..f1b945509477 100644

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

drivers/iio/accel/kxsd9.c +2 -0
index d8738d4f8df3..6bf81d95a3f4 100644

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

drivers/iio/adc/at91_adc.c +2 -2
index fa5d299d9222..e98515fc469f 100644

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

drivers/iio/adc/ti_am335x_adc.c +11 -3
index 9d2957696b23..222cdb1caad9 100644

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

drivers/iio/common/hid-sensors/hid-sensor-attributes.c +2 -2
index 403dd3d8986e..b321a253eba8 100644

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

drivers/iio/industrialio-core.c +2 -3
index 7995c68c2a34..230cbdda6ce1 100644

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

drivers/iio/proximity/as3935.c +1 -1
index 37c1bb2afd08..758c14703ad8 100644

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

drivers/infiniband/core/multicast.c +2 -11
index d2360a8ef0b2..180d7f436ed5 100644

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

drivers/infiniband/hw/mlx4/mad.c +23 -0
index 1cc83abb9b44..841cdc1554f5 100644

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

drivers/infiniband/hw/mlx4/mcg.c +7 -7
index a0559a8af4f4..0948963a7493 100644

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

drivers/infiniband/hw/mlx4/mlx4_ib.h +1 -1
index 369da3ca5d64..5b6b3a3cf9a9 100644

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

drivers/infiniband/hw/mlx4/qp.c +20 -17
index 5fe3646b248f..6f50a21331ed 100644

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

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

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

drivers/infiniband/ulp/ipoib/ipoib_cm.c +16 -0
index 105eebd77ad4..9bf0c8f59d54 100644

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

drivers/infiniband/ulp/ipoib/ipoib_ib.c +9 -0
index 6a7003ddb0be..fcbfdda0e585 100644

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

drivers/infiniband/ulp/ipoib/ipoib_main.c +1 -1
index 7e4a6efbf2ce..dbfe8f1e6d7e 100644

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

drivers/input/joystick/xpad.c +3 -0
index e2c655964711..a137a3738128 100644

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

drivers/input/keyboard/tegra-kbc.c +1 -1
index 9757a58bc897..5d39b966dd28 100644

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

drivers/input/serio/i8042.c +2 -15
index eb796fff9e62..9a0cc5b5561a 100644

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

drivers/input/serio/libps2.c +4 -6
index 75516996db20..ded0c6f65c9f 100644

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

drivers/md/bcache/super.c +8 -3
index 3b260c67db75..af7bae7b4daf 100644

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

drivers/md/dm-crypt.c +1 -1
index f87223056696..34e7db1e7304 100644

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

drivers/md/dm-flakey.c +15 -8
index b257e46876d3..0f5e1820c92d 100644

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

drivers/media/dvb-core/dvb_ringbuffer.c +85 -11

96 lines not on this page · raw message

drivers/media/dvb-core/dvb_ringbuffer.h +2 -0
index 41f04dae69b6..9e1e11b7c39c 100644

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

drivers/media/pci/ngene/ngene-dvb.c +1 -1
index fcb16a615aab..3263d71b4808 100644

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

drivers/media/platform/s5p-mfc/s5p_mfc.c +11 -0
index 41723180d10c..19c25e0245d1 100644

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

drivers/media/usb/em28xx/em28xx-i2c.c +2 -3
index b58d4ebf6419..6c1737828d5f 100644

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

drivers/media/usb/usbvision/usbvision-video.c +0 -7
index 0dd73a9caf32..354f5a7ae887 100644

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

drivers/mmc/card/block.c +6 -6
index c51e164dfae0..619c67b71ecb 100644

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

drivers/mtd/maps/pmcmsp-flash.c +3 -3
index 744ca5cacc9b..f9fa3fad728e 100644

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

drivers/mtd/nand/davinci_nand.c +3 -0
index b922c8efcf40..0ba96f9e1aa5 100644

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

drivers/mtd/nand/nand_base.c +1 -1
index 4f3e80c68a26..529f42a8d7f8 100644

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

drivers/mtd/ubi/attach.c +23 -4
index 21841fe25ad3..d86742a0fefd 100644

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

drivers/mtd/ubi/build.c +4 -1
index 6e30a3c280d0..c3db383a9000 100644

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

drivers/mtd/ubi/ubi.h +3 -0
index c1f1087b6939..92774b7c6230 100644

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

drivers/mtd/ubi/vmt.c +18 -7
index 8330703c098f..96131eb34c9f 100644

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

drivers/net/can/dev.c +17 -10
index edb3b86eb118..e47ad8a789ca 100644

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

drivers/net/can/flexcan.c +8 -5
index bf83639888a9..7c06df557e37 100644

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

drivers/net/ethernet/ethoc.c +5 -5
index f3658bdb64cc..00d0a05b9d7f 100644

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

drivers/net/ethernet/marvell/mvneta.c +1 -1
index 99a69490f39b..4d468707a866 100644

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

drivers/net/ethernet/mellanox/mlx5/core/cmd.c +54 -31

85 lines not on this page · raw message

drivers/net/macvlan.c +8 -2
index bb33b0410a22..8432521408a7 100644

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

drivers/net/ppp/ppp_generic.c +3 -2
index 2b5ac1818797..03054f55073c 100644

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

drivers/net/tun.c +1 -4
index 4d4527c13f52..343a71ad865b 100644

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

drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +1 -1
index 235053ba7737..d429dcbcb055 100644

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

drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c +3 -1
index a16e644e7c08..8367ad77ca43 100644

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

drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +1 -1
index d8fa276e368b..9e6502a9648c 100644

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

drivers/net/wireless/brcm80211/brcmsmac/dma.c +3 -1
index 4fb9635d3919..7660b523dcf1 100644

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

drivers/net/wireless/brcm80211/brcmsmac/stf.c +1 -1
index dd9162722495..0ab865de1491 100644

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

drivers/net/wireless/iwlwifi/pcie/tx.c +2 -2
index 452bb1b0c791..5d2ff0e149f0 100644

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

drivers/pci/quirks.c +6 -4
index 1f5ea2403d94..89ee38869334 100644

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

drivers/platform/x86/hp-wmi.c +6 -1
index 301386c4d85b..450d790c8bbf 100644

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

drivers/power/max17042_battery.c +9 -6
index 66da691c41cf..2ca452743609 100644

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

drivers/pps/clients/pps_parport.c +1 -1
index 38a8bbe74810..83797d89c30f 100644

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

drivers/rtc/rtc-ds1307.c +27 -1
index f182dae3a4b7..5236842d28aa 100644

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

drivers/s390/block/dasd.c +9 -1
index 1eef0f586950..cf0214005fca 100644

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

drivers/scsi/aacraid/commctrl.c +11 -2
index fbcd48d0bfc3..16b2db3cd9f1 100644

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

drivers/scsi/arcmsr/arcmsr_hba.c +7 -1
index 652b41b4ddbd..4494529c4a60 100644

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

drivers/scsi/constants.c +3 -2
index d35a5d6c8d7c..2cde21be80c1 100644

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

drivers/scsi/megaraid/megaraid_sas_base.c +3 -3
index acecd7de4ea1..0f6f296eaff9 100644

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

drivers/scsi/megaraid/megaraid_sas_fusion.c +1 -1
index f16764bf9964..560bbbd03788 100644

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

drivers/staging/comedi/drivers/daqboard2000.c +1 -1
index a8f6036ad82b..746d7360cfed 100644

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

drivers/staging/comedi/drivers/ni_mio_common.c +10 -2
index 7ffdcc07ef92..83a96bcb21b6 100644

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

drivers/staging/lustre/lustre/llite/llite_lib.c +1 -1
index 0e507f53fd9b..17cfa99b4fc0 100644

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

drivers/target/iscsi/iscsi_target.c +16 -6
index 00b801df7322..ef9c33fe2617 100644

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

drivers/target/iscsi/iscsi_target_login.c +3 -2
index 09dac9ac305e..d534738ff3c7 100644

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

drivers/target/target_core_device.c +5 -3
index 07425b8d606e..5638b60b4192 100644

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

drivers/target/target_core_file.c +1 -2
index 703f885deac1..03bfa49b5590 100644

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

drivers/target/target_core_iblock.c +1 -2
index 91c625ac40d1..7ee927d9c3ac 100644

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

drivers/target/target_core_transport.c +2 -7
index 33fc58d514d3..7769af94aee2 100644

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

drivers/tty/serial/8250/8250_pci.c +139 -0

139 lines not on this page · raw message

drivers/tty/serial/atmel_serial.c +8 -6
index 0d39ae4ff533..d806657ca53e 100644

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

drivers/tty/serial/samsung.c +11 -5
index 7268409dfc68..2a2a54db86ff 100644

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

drivers/tty/serial/sunhv.c +0 -6
index dc697cee248a..233103adad2d 100644

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

drivers/tty/vt/keyboard.c +9 -21
index d0e3a4497707..adf4d3124cc6 100644

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

drivers/usb/class/cdc-acm.c +2 -3
index 54061a3bc5e9..73b3b054771f 100644

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

drivers/usb/class/cdc-acm.h +0 -1
index 70d24d7e9dc5..6050d8e92c5e 100644

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

drivers/usb/core/config.c +79 -14

93 lines not on this page · raw message

drivers/usb/core/devio.c +11 -5
index dfcb5f8b8f18..39a8bb8f8820 100644

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

drivers/usb/core/quirks.c +6 -0
index 0673a5abc21d..6c7e47f67dd4 100644

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

drivers/usb/dwc3/gadget.c +15 -8
index 4a279bb9092a..ede2814702c4 100644

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

drivers/usb/gadget/fsl_qe_udc.c +3 -6
index ad5483335167..8214773321ef 100644

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

drivers/usb/gadget/udc-core.c +1 -1
index 38913eac6e7c..d7ef85f38847 100644

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

drivers/usb/host/xhci-hub.c +3 -0
index 69a70f880429..8ae80088d348 100644

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

drivers/usb/host/xhci-pci.c +2 -1
index 4b36d8562eef..015d4c08a3cb 100644

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

drivers/usb/host/xhci-ring.c +7 -6
index f15e2df4448c..58edc5478d6e 100644

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

drivers/usb/misc/usbtest.c +4 -3
index 829f446064ea..419a5b3cb924 100644

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

drivers/usb/renesas_usbhs/fifo.c +16 -6
index 50763ebff015..2a540e4b5c61 100644

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

drivers/usb/renesas_usbhs/mod.c +9 -2
index 6a030b931a3b..254194d61915 100644

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

drivers/usb/renesas_usbhs/mod_gadget.c +8 -1
index e344d50f4697..6583c04cc35e 100644

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

drivers/usb/serial/ftdi_sio.c +3 -0
index fb3a832d86e3..6103727cd060 100644

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

drivers/usb/serial/ftdi_sio_ids.h +12 -0
index 334bc600282d..48db84f25cc9 100644

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

drivers/usb/serial/mos7720.c +1 -1
index dfd728a263d2..c3b8ae360424 100644

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

drivers/usb/serial/mos7840.c +2 -2
index 393be562d875..f5f3b49ff9d5 100644

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

drivers/usb/serial/option.c +34 -0
index 9d8fe3d2feca..f243c734eb05 100644

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

drivers/usb/serial/usb-serial-simple.c +2 -1
index 5c19d3e7b4b8..790452c7a9e4 100644

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

drivers/usb/serial/usb-serial.c +3 -1
index 6fbfc8fc2f5d..d3bf8348e638 100644

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

drivers/vfio/pci/vfio_pci.c +21 -12
index a1e77f570b19..431fb1e25830 100644

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

drivers/vfio/pci/vfio_pci_intrs.c +43 -26

69 lines not on this page · raw message

drivers/virtio/virtio_balloon.c +2 -0
index 7490e92c03d5..447571d19ecb 100644

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

drivers/xen/xenbus/xenbus_dev_frontend.c +8 -6
index 85534ea63555..6bd06f9d737d 100644

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

fs/9p/acl.c +17 -23
index 8482f2d11606..d3f5d487ae46 100644

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

fs/9p/vfs_inode.c +1 -1
index bdfcea010c9f..d0b7320b17c4 100644

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

fs/9p/vfs_inode_dotl.c +1 -1
index d3fb85871921..f03024e5bcbe 100644

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

fs/adfs/inode.c +1 -1
index b9acadafa4a1..247b351f3005 100644

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

fs/affs/inode.c +1 -1
index bec2d1a0c91c..55a931da9917 100644

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

fs/attr.c +23 -12
index 6530ced19697..ee697ddc6c2e 100644

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

fs/btrfs/acl.c +2 -4
index 9a0124a95851..fb3e64d37cb4 100644

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

fs/btrfs/inode.c +1 -1
index a09ec5e7f3e2..4292500ef241 100644

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

fs/btrfs/ioctl.c +12 -0
index b69285f0593b..eb4348781a97 100644

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

fs/btrfs/tree-log.c +2 -0
index 2c3fcb38068f..830952d045c9 100644

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

fs/ceph/acl.c +2 -4
index 469f2e8657e8..a02b900c1ed6 100644

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

fs/ceph/file.c +5 -7
index 302085100c28..293d1cdf3645 100644

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

fs/ceph/inode.c +1 -1
index c3e103ff18bd..122d60506ab9 100644

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

fs/cifs/cifsencrypt.c +10 -6
index 0bd335a393f8..f1aa100758df 100644

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

fs/cifs/dir.c +21 -3
index 3db0c5fd9a11..3f2dd87b899a 100644

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

fs/cifs/inode.c +2 -2
index 8dc1cfcb534f..6a5ca969c301 100644

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

fs/cifs/smb2ops.c +29 -1
index b241a2a7683b..1059ba829774 100644

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

fs/ecryptfs/inode.c +1 -1
index 57ee4c53b4f8..8bc9ec714467 100644

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

fs/exofs/inode.c +1 -1
index 3f9cafd73931..799e7d4562fe 100644

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

fs/ext2/acl.c +4 -8
index 27695e6f4e46..d6aeb84e90b6 100644

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

fs/ext2/inode.c +1 -1
index 36d35c36311d..b822e4a447d6 100644

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

fs/ext3/acl.c +4 -8
index 8bbaf5bcf982..c4509495a104 100644

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

fs/ext3/inode.c +1 -1
index 2c6ccc49ba27..215972e94e17 100644

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

fs/ext4/acl.c +4 -8
index d40c8dbbb0d6..87d9bbf6a53f 100644

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

fs/ext4/balloc.c +3 -0
index 06b65be20d48..5fb1195f602f 100644

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

fs/ext4/extents.c +6 -2
index e41ec5034bad..d24d6fc1df4f 100644

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

fs/ext4/inode.c +30 -7
index a2c4495d40e9..ae4271d5c6ca 100644

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

fs/ext4/mballoc.c +3 -14
index 47f7af78675a..62d0c5cbcad6 100644

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

fs/ext4/super.c +34 -1
index 83026f40d9cd..1c239bba4344 100644

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

fs/f2fs/acl.c +2 -4
index dbe2141d10ad..ff4737033823 100644

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

fs/f2fs/file.c +1 -1
index 7d8b96275092..010c2af33858 100644

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

fs/fat/file.c +1 -1
index 85f79a89e747..17982aac0ef3 100644

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

fs/fuse/dir.c +5 -4
index 0c6048247a34..31ad5fc879b8 100644

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

fs/fuse/file.c +24 -0
index a6442041ab64..5f747cf3a412 100644

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

fs/fuse/fuse_i.h +1 -1
index e8e47a6ab518..300619ba8591 100644

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

fs/fuse/inode.c +1 -1
index 6abafb11f214..fdf7b33306be 100644

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

fs/gfs2/acl.c +3 -9
index 7b3143064af1..88e66aa516c4 100644

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

fs/gfs2/inode.c +1 -1
index ba4b2e5377db..b6657ddd1de5 100644

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

fs/hfs/inode.c +1 -1
index d0929bc81782..a4a3f8a674b9 100644

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

fs/hfsplus/inode.c +1 -1
index 0cf786f2d046..9cd897cc2384 100644

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

fs/hfsplus/posix_acl.c +2 -2
index df0c9af68d05..71b3087b7e32 100644

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

fs/hostfs/hostfs_kern.c +5 -4
index 070e249f7d0f..50f0b4f0480e 100644

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

fs/hpfs/inode.c +1 -1
index 7ce4b74234a1..5ada7b73b5d9 100644

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

fs/hugetlbfs/inode.c +1 -1
index 1e2872b25343..e3ac491424fc 100644

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

fs/jffs2/acl.c +4 -5
index 009ec0b5993d..4f43deb09a5a 100644

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

fs/jffs2/fs.c +1 -1
index 601afd1afddf..bb9460ea36e8 100644

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

fs/jfs/acl.c +2 -4
index 0c8ca830b113..9fad9f4fe883 100644

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

fs/jfs/file.c +1 -1
index 33aa0cc1f8b8..b43cc9a6dba1 100644

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

fs/kernfs/file.c +21 -7
index d895b4b7b661..b120e85aa7b9 100644

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

fs/kernfs/inode.c +1 -1
index 5b8ab29494b7..8b6cb8cbf887 100644

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

fs/libfs.c +1 -1
index 5ba7e10d6b23..51994a562aca 100644

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

fs/logfs/file.c +1 -1
index 8538752df2f6..34f4d33b6ee9 100644

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

fs/minix/file.c +1 -1
index a967de085ac0..6b569161325e 100644

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

fs/ncpfs/inode.c +1 -1
index e31e589369a4..f8d3f461a01f 100644

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

fs/nfs/callback.c +1 -0
index 8c849947d34f..c1f955e2d809 100644

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

fs/nfs/callback_xdr.c +5 -1
index 02f8d09e119f..b06c6ba9765d 100644

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

fs/nfs/nfs4proc.c +11 -2
index 7dc0bf73e76a..1522ec81c26f 100644

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

fs/nfs/write.c +4 -1
index ecb0f9fd5632..34f18294817a 100644

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

fs/nfsd/vfs.c +7 -5
index 140c496f612c..521f717b4a99 100644

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

fs/nilfs2/inode.c +1 -1
index 31b6b2953c59..80e61bad215d 100644

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

fs/notify/fanotify/fanotify.c +1 -12
index 7e948ffba461..0439f6cdb931 100644

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

fs/notify/fanotify/fanotify_user.c +24 -12
index ec50a8385b13..394da4dc45e1 100644

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

fs/notify/group.c +19 -0
index ad1995980456..f3e3188f3568 100644

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

fs/notify/notification.c +7 -16
index 25a07c70f1c9..1646ff5dca5c 100644

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

fs/ntfs/inode.c +1 -1
index f47af5e6e230..a5589470373f 100644

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

fs/ocfs2/acl.c +3 -6
index 7f9e4484c6f6..293ab80f3fe2 100644

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

fs/ocfs2/dlm/dlmconvert.c +6 -6
index f90931335c6b..2e11658676eb 100644

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

fs/ocfs2/dlmfs/dlmfs.c +1 -1
index 09b7d9dac71d..4d129dfcc1c7 100644

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

fs/ocfs2/file.c +25 -11
index fd106d136983..cd3b06f600a2 100644

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

fs/omfs/file.c +1 -1
index 902e88527fce..b53f0602cc03 100644

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

fs/posix_acl.c +31 -0
index b1c249115aaa..a767c594f17a 100644

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

fs/proc/base.c +1 -1
index 0897f5cb4957..944c6be58199 100644

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

fs/proc/generic.c +1 -1
index c18d9b05cea9..d95c6868b5f5 100644

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

fs/proc/proc_sysctl.c +1 -1
index b45db1ddb8e0..728c4657188f 100644

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

fs/ramfs/file-nommu.c +1 -1
index dda012ad4208..a6b6083176d3 100644

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

fs/reiserfs/inode.c +1 -1
index 63b2b0ec49e6..27b402e05aa2 100644

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

fs/reiserfs/xattr_acl.c +2 -6
index 44503e293790..7071c2230a92 100644

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

fs/seq_file.c +3 -1
index 3857b720cb1b..fbb1688bff87 100644

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

fs/sysv/file.c +1 -1
index b00811c75b24..3bb4ccd69731 100644

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

fs/ubifs/file.c +1 -1
index d37140e5b722..68d7fe857ba9 100644

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

fs/ubifs/tnc_commit.c +1 -1
index 3600994f8411..1512f3490848 100644

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

fs/udf/file.c +1 -1
index d80738fdf424..1aaf63a5f32f 100644

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

fs/ufs/truncate.c +1 -1
index f04f89fbd4d9..92cde998aead 100644

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

fs/utimes.c +2 -2
index aa138d64560a..61abc3051377 100644

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

fs/xfs/xfs_acl.c +6 -10
index 6888ad886ff6..d1229033a22f 100644

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

fs/xfs/xfs_file.c +1 -1
index d2f4cb598b46..eb04981b03b4 100644

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

fs/xfs/xfs_ioctl.c +1 -1
index afc859f44d01..cee62a5afbee 100644

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

fs/xfs/xfs_iops.c +9 -7
index 125da8969c72..cfc5c260ecbe 100644

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

fs/xfs/xfs_iops.h +3 -3
index 1c34e4335920..f66a37c0a88a 100644

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

include/asm-generic/uaccess.h +13 -7
index 72d8803832ff..ae88865a3d67 100644

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

include/linux/backing-dev.h +2 -0
index e488e9459a93..f0069a94d9cc 100644

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

include/linux/bcma/bcma.h +1 -0
index 0b3bb16c705a..b19c7ed88cff 100644

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

include/linux/can/dev.h +2 -1
index 6992afc6ba7f..e90bdfc4d0b7 100644

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

include/linux/compiler-gcc.h +1 -1
index bb2cdcd929c6..633716ef19b0 100644

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

include/linux/efi.h +9 -0
index 8cb09c9d81ef..1431089c54dc 100644

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

include/linux/fs.h +1 -1
index 545837db9468..3b69a82bbdd9 100644

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

include/linux/fsnotify_backend.h +3 -3
index d2be2526ec48..e36f4e76ba94 100644

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

include/linux/i8042.h +0 -6
index 0f9bafa17a02..d98780ca9604 100644

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

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

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

include/linux/mroute.h +1 -1
index 79aaa9fc1a15..d5277fc3ce2e 100644

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

include/linux/mroute6.h +1 -1
index 66982e764051..f831155dc7d1 100644

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

include/linux/netfilter/x_tables.h +4 -0
index 7741efa43b35..cc615e273f80 100644

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

include/linux/pagemap.h +19 -19
index 25f106b0375b..10b57940dc62 100644

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

include/linux/posix_acl.h +1 -0
index 3e96a6a76103..d1a8ad7e5ae4 100644

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

include/linux/radix-tree.h +1 -0
index 5d5174b59802..673dee29a9b9 100644

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

include/linux/serio.h +19 -5
index 9f779c7a2da4..27ae809edd70 100644

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

include/linux/swap.h +2 -0
index 4bdbee80eede..c28e936c8116 100644

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

include/net/inet_ecn.h +2 -1
index 0dc0a51da38f..dce2d586d9ce 100644

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

include/net/tcp.h +2 -0
index d587ff0f8828..60e2dc5cef26 100644

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

include/target/target_core_backend.h +1 -1
index e006e10e08a9..a09a83603c52 100644

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

ipc/msg.c +1 -1
index cfc8b388332d..02e72d3db498 100644

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

ipc/sem.c +6 -6
index 541cb0ff9bd6..fb0c4c96e50a 100644

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

kernel/cpuset.c +15 -0
index 524a8eef2965..533494236c12 100644

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

kernel/fork.c +4 -6
index a4ca06e80972..602dbac0b201 100644

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

kernel/module.c +9 -4
index c3ca760edaf0..8c3baf05f7bd 100644

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

kernel/posix-cpu-timers.c +1 -0
index 3b8946416a5f..4bd1dd7db1a1 100644

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

kernel/power/hibernate.c +2 -2
index 286ef6072714..2daeb2ec1979 100644

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

kernel/printk/braille.c +2 -2
index 276762f3a460..d5760c42f042 100644

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

kernel/sched/core.c +22 -1
index 7c90f805e457..f2c0bcc4ba6c 100644

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

kernel/sched/sched.h +0 -13
index 3b45ba18f7f4..88379724fc5b 100644

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

kernel/time/timekeeping_debug.c +7 -2
index 4d54f97558df..bbda623aafa7 100644

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

kernel/trace/trace.c +8 -7
index 6d3c38966eda..8df0ed9af291 100644

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

lib/mpi/mpicoder.c +1 -1
index 4cc6442733f4..fe8b9ffbbb50 100644

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

mm/backing-dev.c +19 -0
index afc8593327d6..5df7b79513ea 100644

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

mm/filemap.c +50 -43

93 lines not on this page · raw message

mm/hugetlb.c +4 -0
index c83332d80152..0225f1c6263a 100644

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

mm/ksm.c +2 -1
index 691f1bf55858..d8c9c689862c 100644

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

mm/shmem.c +1 -1
index a2b87affdc23..efab7a79b05f 100644

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

mm/workingset.c +4 -6
index f7216fa7da27..c068f8c84f07 100644

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

net/batman-adv/bridge_loop_avoidance.c +115 -22

137 lines not on this page · raw message

net/batman-adv/distributed-arp-table.c +8 -2
index f49badcfd8a1..dc240a8d99d4 100644

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

net/batman-adv/originator.c +15 -0
index 6b4adf1810d3..9e6967a1f23e 100644

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

net/batman-adv/routing.c +66 -14

80 lines not on this page · raw message

net/batman-adv/send.c +2 -2
index 6004c2de7b2a..2cfd5ddbb404 100644

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

net/batman-adv/types.h +13 -7
index 0cc890bab7a4..61f34f889555 100644

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

net/bluetooth/l2cap_sock.c +1 -1
index d0fd8b04f2e6..071d35c9f3b4 100644

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

net/bluetooth/rfcomm/sock.c +12 -8
index 8bbbb5ec468c..bcb3160fefb4 100644

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

net/ceph/osdmap.c +113 -43

156 lines not on this page · raw message

net/ipv4/ipmr.c +2 -1
index da9f18156ba9..65a28620006c 100644

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

net/ipv4/netfilter/arp_tables.c +27 -9
index 3bdb46b325ab..106db177a91c 100644

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

net/ipv4/netfilter/ip_tables.c +26 -7
index baa1f65e5142..9e20b99bf325 100644

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

net/ipv4/route.c +2 -1
index 5df7ed8c62d9..2548c2274cb8 100644

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

net/ipv4/tcp_fastopen.c +1 -0
index 6088c58bc54c..2b986576e5ad 100644

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

net/ipv4/tcp_input.c +1 -2
index d3b64bfedd18..50023e8af668 100644

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

net/ipv4/tcp_output.c +2 -1
index 9d26f4569a2e..8b5c457b40cd 100644

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

net/ipv6/addrconf.c +9 -0
index 0002aa9ca91a..213fc4f9b265 100644

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

net/ipv6/ip6_gre.c +1 -1
index 1ee013644bb2..473bb5031af2 100644

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

net/ipv6/ip6mr.c +3 -2
index 5e739bb6ae90..17049f81c750 100644

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

net/ipv6/netfilter/ip6_tables.c +26 -7
index 9802b2469662..d0fe5a92b2f1 100644

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

net/ipv6/route.c +3 -1
index 4967b50cdf52..889e06626c26 100644

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

net/irda/af_irda.c +7 -5
index f945293c17f0..a34379892d85 100644

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

net/l2tp/l2tp_core.c +3 -0
index 0c6a8f18b0fc..76f4c5c9a466 100644

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

net/l2tp/l2tp_ppp.c +2 -5
index b704a9356208..1ae69a4695de 100644

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

net/mac80211/cfg.c +1 -1
index 592f4b152ba8..708bc2074d90 100644

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

net/mac80211/tx.c +3 -3
index c344e0bc00b7..ca6131c452b5 100644

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

net/netfilter/nf_conntrack_expect.c +1 -1
index c45186f91cc8..16120a636bd4 100644

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

net/netfilter/nfnetlink_queue_core.c +2 -4
index 7a83e57ad3f1..bd55f0c31795 100644

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

net/netfilter/x_tables.c +50 -0

50 lines not on this page · raw message

net/netlabel/netlabel_kapi.c +10 -2
index 3045a964f39c..8473d34f2e3a 100644

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

net/sched/sch_generic.c +5 -4
index e1543b03e39d..c0bdd3bce189 100644

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

net/sunrpc/auth_gss/auth_gss.c +5 -3
index b6e440baccc3..265be00a4ac5 100644

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

net/sunrpc/svc.c +6 -1
index 78c809c1f819..a7e5624a1cf2 100644

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

net/wireless/nl80211.c +1 -1
index 56918f89a1d6..d4fb275c4c20 100644

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

net/xfrm/xfrm_state.c +1 -0
index 86f381b09d8d..725cf243860c 100644

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

net/xfrm/xfrm_user.c +9 -6
index d4db6ebb089d..8059e412c9f3 100644

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

scripts/recordmcount.c +8 -1
index 56f497b27c49..a97ae04f5d2a 100644

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

security/keys/proc.c +1 -1
index d3f6f2fd21db..62a86e8cb907 100644

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

sound/core/control.c +2 -0
index 1d395d865f1b..665020b7c82e 100644

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

sound/core/pcm.c +10 -4
index 43932e8dce66..2c9dc3106340 100644

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

sound/core/rawmidi.c +3 -1
index 857741431fc6..b5c88e08f3fe 100644

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

sound/core/timer.c +32 -2
index cdc22503fdb8..d32c631cca6b 100644

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

sound/firewire/fireworks/fireworks.h +0 -1
index 084d414b228c..b431c34b2d74 100644

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

sound/firewire/fireworks/fireworks_hwdep.c +52 -19

71 lines not on this page · raw message

sound/firewire/fireworks/fireworks_proc.c +2 -2
index f29d4aaf56a1..5b3753b05006 100644

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

sound/firewire/fireworks/fireworks_transaction.c +2 -3
index 2a85e4209f0b..8e9abbb6b68c 100644

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

sound/pci/hda/hda_codec.c +3 -1
index 68bea67c3ca3..22b7038cff0d 100644

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

sound/pci/hda/hda_intel.c +3 -1
index 2f523b08f576..8ff15d834ace 100644

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

sound/pci/hda/patch_realtek.c +9 -0
index 4dd1538c1257..187d33729b50 100644

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

sound/soc/omap/omap-mcpdm.c +3 -2
index f0e2ebeab02b..301acfe5aab7 100644

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

tools/vm/slabinfo.c +2 -1
index 808d5a9d5dcf..bcc6125657e5 100644

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

virt/kvm/kvm_main.c +2 -0
index a63127acc67d..6103f9238774 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.