Linux 3.16.39
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 ;
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/radeon/atombios_encoders.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/radeon/radeon_atombios.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/radeon/radeon_atpx_handler.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/radeon/radeon_connectors.c +9 -6
Lines of this file are not shown. View the raw message.
drivers/iio/common/hid-sensors/hid-sensor-attributes.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/ipoib/ipoib_cm.c +16 -0
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/ipoib/ipoib_ib.c +9 -0
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/ipoib/ipoib_main.c +1 -1
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
Lines of this file are not shown. View the raw message.
drivers/media/platform/s5p-mfc/s5p_mfc.c +11 -0
Lines of this file are not shown. View the raw message.
drivers/media/usb/usbvision/usbvision-video.c +0 -7
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/wireless/ath/ath9k/ar9003_eeprom.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/brcm80211/brcmsmac/dma.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/brcm80211/brcmsmac/stf.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/scsi/megaraid/megaraid_sas_base.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/scsi/megaraid/megaraid_sas_fusion.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/comedi/drivers/daqboard2000.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/comedi/drivers/ni_mio_common.c +10 -2
Lines of this file are not shown. View the raw message.
drivers/staging/lustre/lustre/llite/llite_lib.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_login.c +3 -2
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/usb/core/config.c +79 -14
93 lines not on this page · raw message
drivers/vfio/pci/vfio_pci_intrs.c +43 -26
69 lines not on this page · raw message
drivers/xen/xenbus/xenbus_dev_frontend.c +8 -6
Lines of this file are not shown. View the raw message.
mm/filemap.c +50 -43
93 lines not on this page · raw message
net/batman-adv/bridge_loop_avoidance.c +115 -22
137 lines not on this page · raw message
net/batman-adv/routing.c +66 -14
80 lines not on this page · raw message
net/ceph/osdmap.c +113 -43
156 lines not on this page · raw message
net/netfilter/x_tables.c +50 -0
50 lines not on this page · 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
Lines of this file are not shown. View the raw message.
sound/firewire/fireworks/fireworks_transaction.c +2 -3
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.