Skip to contentSkip to conversation

Linux 3.16.60

PATCH Ben Hutchings 1 participant 1 message Oct 22, 2018 Stable branch

lore
Share & tools
lore
#0 lore raw

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

Ben.

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

 Documentation/networking/ppp_generic.txt         |   6 -
 Makefile                                         |   2 +-
 arch/arc/include/asm/Kbuild                      |   1 +
 arch/arm/boot/compressed/head.S                  |  16 +-
 arch/arm/boot/compressed/misc.c                  |   9 +-
 arch/arm/boot/dts/at91sam9g25.dtsi               |   2 +-
 arch/arm/crypto/Makefile                         |   2 +
 arch/arm/include/asm/assembler.h                 |  10 +
 arch/arm/kernel/traps.c                          |   5 +-
 arch/arm/kvm/arm.c                               |  15 +-
 arch/arm/lib/getuser.S                           |   4 +
 arch/arm/mach-davinci/board-dm646x-evm.c         |   3 +-
 arch/arm/mach-keystone/pm_domain.c               |   1 +
 arch/avr32/include/asm/Kbuild                    |   1 +
 arch/blackfin/include/asm/Kbuild                 |   1 +
 arch/c6x/include/asm/Kbuild                      |   1 +
 arch/cris/include/asm/Kbuild                     |   1 +
 arch/frv/include/asm/Kbuild                      |   1 +
 arch/hexagon/include/asm/Kbuild                  |   1 +
 arch/ia64/include/asm/Kbuild                     |   1 +
 arch/m32r/include/asm/Kbuild                     |   1 +
 arch/metag/include/asm/Kbuild                    |   1 +
 arch/microblaze/include/asm/Kbuild               |   1 +
 arch/mips/include/asm/Kbuild                     |   1 +
 arch/mips/include/asm/uaccess.h                  |  11 +-
 arch/mips/kernel/ptrace.c                        |  24 ++-
 arch/mips/kernel/ptrace32.c                      |   6 +-
 arch/mips/kvm/kvm_mips.c                         |   2 +-
 arch/mips/lib/memset.S                           |  11 +-
 arch/mn10300/include/asm/Kbuild                  |   1 +
 arch/parisc/kernel/drivers.c                     |   4 +
 arch/parisc/kernel/hpmc.S                        |   6 +-
 arch/powerpc/include/asm/barrier.h               |   3 +-
 arch/powerpc/include/asm/opal.h                  |   3 +
 arch/powerpc/include/asm/synch.h                 |   4 -
 arch/powerpc/kernel/cpu_setup_power.S            |   4 +
 arch/powerpc/kernel/eeh_driver.c                 |  61 ++++--
 arch/powerpc/kernel/eeh_pe.c                     |   3 +-
 arch/powerpc/lib/feature-fixups.c                |   2 +-
 arch/powerpc/mm/hugetlbpage.c                    |  17 +-
 arch/powerpc/platforms/powernv/opal-nvram.c      |  21 +-
 arch/s390/hypfs/inode.c                          |   2 +-
 arch/s390/include/asm/Kbuild                     |   1 +
 arch/s390/kernel/ipl.c                           |   1 +
 arch/s390/kernel/perf_cpum_sf.c                  |   4 +
 arch/score/include/asm/Kbuild                    |   1 +
 arch/tile/include/asm/Kbuild                     |   1 +
 arch/um/include/asm/Kbuild                       |   1 +
 arch/um/os-Linux/signal.c                        |   2 +-
 arch/unicore32/include/asm/Kbuild                |   1 +
 arch/x86/boot/compressed/eboot.c                 |   6 +-
 arch/x86/crypto/cast5_avx_glue.c                 |   3 +-
 arch/x86/include/asm/apic.h                      |   4 +-
 arch/x86/include/asm/x2apic.h                    |   2 +-
 arch/x86/kernel/acpi/boot.c                      |  18 +-
 arch/x86/kernel/apic/apic_numachip.c             |   2 +-
 arch/x86/kernel/apic/x2apic_uv_x.c               |   2 +-
 arch/x86/kernel/cpu/perf_event.c                 |   8 +-
 arch/x86/kernel/machine_kexec_32.c               |   6 +-
 arch/x86/kernel/machine_kexec_64.c               |   4 +-
 arch/x86/kernel/smpboot.c                        |   2 +
 arch/x86/kernel/tsc.c                            |   2 +-
 arch/x86/kvm/x86.c                               |   7 +-
 arch/x86/mm/dump_pagetables.c                    |  10 +-
 arch/x86/net/bpf_jit_comp.c                      |   3 +-
 arch/x86/um/stub_segv.c                          |   2 +-
 arch/x86/xen/mmu.c                               |   6 +-
 arch/xtensa/include/asm/Kbuild                   |   1 +
 crypto/af_alg.c                                  |   8 +-
 crypto/ahash.c                                   |   7 +-
 drivers/ata/ahci.c                               |   1 +
 drivers/ata/libata-core.c                        |   8 +
 drivers/atm/zatm.c                               |   3 +
 drivers/base/regmap/regmap.c                     |  22 +-
 drivers/char/virtio_console.c                    | 157 +++++++-------
 drivers/gpu/drm/drm_fops.c                       |   1 +
 drivers/gpu/drm/i915/i915_cmd_parser.c           |  80 ++++---
 drivers/gpu/drm/i915/i915_drv.h                  |   5 +
 drivers/gpu/drm/i915/i915_gem_userptr.c          |   3 +
 drivers/gpu/drm/i915/intel_hdmi.c                |  14 +-
 drivers/gpu/drm/i915/intel_lvds.c                |  11 +-
 drivers/gpu/drm/msm/msm_gem.c                    |  30 ++-
 drivers/gpu/drm/radeon/radeon_device.c           |  15 +-
 drivers/gpu/drm/radeon/si_dpm.c                  |   4 +-
 drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c        |  10 +-
 drivers/hid/hid-core.c                           |  12 +-
 drivers/hid/hidraw.c                             |   5 +
 drivers/hid/i2c-hid/i2c-hid.c                    |  13 +-
 drivers/hwmon/nct6683.c                          |   4 +-
 drivers/hwmon/nct6775.c                          |  10 +-
 drivers/hwmon/pmbus/adm1275.c                    |   4 +-
 drivers/hwmon/pmbus/max8688.c                    |   2 +-
 drivers/i2c/busses/i2c-pmcmsp.c                  |   4 +-
 drivers/i2c/busses/i2c-viperboard.c              |   2 +-
 drivers/iio/kfifo_buf.c                          |  11 +-
 drivers/infiniband/core/addr.c                   |  16 ++
 drivers/infiniband/core/iwpm_util.c              |   5 +-
 drivers/infiniband/core/ucma.c                   |  43 ++--
 drivers/infiniband/hw/cxgb4/cq.c                 |  11 +-
 drivers/infiniband/hw/cxgb4/device.c             |   8 +
 drivers/infiniband/hw/cxgb4/iw_cxgb4.h           |   6 +-
 drivers/infiniband/hw/cxgb4/qp.c                 |   4 +-
 drivers/infiniband/hw/cxgb4/resource.c           |  26 ++-
 drivers/infiniband/hw/mlx5/qp.c                  |  39 ++--
 drivers/infiniband/ulp/srp/ib_srp.c              |   8 +-
 drivers/input/serio/i8042-x86ia64io.h            |  24 +++
 drivers/media/pci/cx25821/cx25821-core.c         |   7 +-
 drivers/media/platform/s3c-camif/camif-capture.c |   7 +-
 drivers/media/rc/rc-main.c                       |   4 +-
 drivers/media/v4l2-core/v4l2-compat-ioctl32.c    |   4 +-
 drivers/message/fusion/mptsas.c                  |   1 +
 drivers/mmc/host/jz4740_mmc.c                    |   2 +-
 drivers/mtd/chips/cfi_cmdset_0001.c              |  33 ++-
 drivers/mtd/chips/cfi_cmdset_0002.c              |   9 +-
 drivers/mtd/ubi/block.c                          |   2 +-
 drivers/mtd/ubi/build.c                          |  11 +
 drivers/net/bonding/bond_main.c                  |   3 +-
 drivers/net/can/usb/kvaser_usb.c                 |   2 +-
 drivers/net/ethernet/broadcom/bcmsysport.c       |  11 +-
 drivers/net/ethernet/broadcom/genet/bcmgenet.c   |  11 +-
 drivers/net/ethernet/cisco/enic/enic_main.c      |   8 +-
 drivers/net/ethernet/marvell/sky2.c              |   2 +-
 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c  |  16 ++
 drivers/net/ethernet/mellanox/mlx4/main.c        |   4 +-
 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h     |   7 +-
 drivers/net/ethernet/mellanox/mlx4/qp.c          |   4 +-
 drivers/net/ethernet/ti/cpsw.c                   |  13 +-
 drivers/net/ethernet/ti/davinci_cpdma.c          |   2 +-
 drivers/net/ethernet/ti/davinci_emac.c           |  62 ++++--
 drivers/net/ppp/ppp_generic.c                    | 136 +++++++-----
 drivers/net/ppp/pppoe.c                          |   4 +
 drivers/net/team/team.c                          |  38 +++-
 drivers/net/usb/qmi_wwan.c                       |  13 ++
 drivers/net/vmxnet3/vmxnet3_drv.c                | 137 ++++++++----
 drivers/net/vmxnet3/vmxnet3_int.h                |   8 +-
 drivers/net/wireless/rtl818x/rtl8187/dev.c       |   2 +-
 drivers/parport/parport_pc.c                     |   4 +
 drivers/pci/hotplug/acpiphp_glue.c               |  23 +-
 drivers/pci/quirks.c                             |  13 ++
 drivers/pinctrl/pinctrl-single.c                 |  22 +-
 drivers/rtc/rtc-snvs.c                           |  15 +-
 drivers/rtc/rtc-tx4939.c                         |   6 +-
 drivers/s390/block/dasd_alias.c                  |  16 +-
 drivers/s390/cio/chsc.c                          |  14 +-
 drivers/s390/cio/qdio_main.c                     |  42 ++--
 drivers/s390/cio/qdio_setup.c                    |  12 +-
 drivers/s390/net/qeth_core_main.c                |   8 +-
 drivers/s390/scsi/zfcp_dbf.c                     |  23 +-
 drivers/s390/scsi/zfcp_ext.h                     |   5 +-
 drivers/s390/scsi/zfcp_scsi.c                    |  14 +-
 drivers/scsi/qla2xxx/qla_init.c                  |   3 +-
 drivers/scsi/sd.c                                |   2 +
 drivers/staging/line6/midi.c                     |   2 +-
 drivers/staging/rtl8192u/r8192U_core.c           |   2 +
 drivers/staging/usbip/usbip_common.h             |   2 +-
 drivers/staging/usbip/vhci_hcd.c                 |   8 +-
 drivers/thermal/imx_thermal.c                    |  19 +-
 drivers/tty/Makefile                             |   3 +-
 drivers/tty/n_null.c                             |  80 +++++++
 drivers/tty/pty.c                                |  21 +-
 drivers/tty/serial/altera_uart.c                 |   6 +-
 drivers/tty/serial/arc_uart.c                    |   8 +-
 drivers/tty/serial/fsl_lpuart.c                  |   4 +
 drivers/tty/serial/imx.c                         |   6 +
 drivers/tty/serial/mxs-auart.c                   |   5 +
 drivers/tty/serial/pxa.c                         |   4 +
 drivers/tty/serial/xilinx_uartps.c               |   2 +-
 drivers/tty/tty_io.c                             |  42 ++--
 drivers/tty/tty_ldisc.c                          |  68 +++---
 drivers/tty/vt/vt.c                              |   6 +-
 drivers/usb/core/config.c                        |   4 +-
 drivers/usb/core/generic.c                       |   9 +-
 drivers/usb/core/hcd.c                           |   1 +
 drivers/usb/core/hub.c                           |  10 +-
 drivers/usb/core/quirks.c                        |   3 +
 drivers/usb/dwc3/dwc3-pci.c                      |   2 +-
 drivers/usb/host/xhci-pci.c                      |   5 +-
 drivers/usb/musb/musb_gadget_ep0.c               |  14 +-
 drivers/usb/musb/musb_host.c                     |   4 +-
 drivers/usb/serial/Kconfig                       |   1 +
 drivers/usb/serial/cp210x.c                      |   2 +
 drivers/usb/serial/ftdi_sio.c                    |   5 +-
 drivers/usb/serial/ftdi_sio_ids.h                |   9 +
 drivers/usb/serial/usb-serial-simple.c           |   7 +
 drivers/usb/serial/visor.c                       |  69 +++---
 drivers/video/fbdev/stifb.c                      |   2 +-
 drivers/watchdog/f71808e_wdt.c                   |   2 +-
 drivers/xen/swiotlb-xen.c                        |   2 +-
 drivers/xen/xen-acpi-processor.c                 |   6 +-
 fs/affs/namei.c                                  |  10 +-
 fs/afs/security.c                                |  13 +-
 fs/aio.c                                         |   7 +-
 fs/autofs4/root.c                                |   2 +-
 fs/btrfs/ctree.c                                 |  16 +-
 fs/btrfs/extent-tree.c                           |   1 +
 fs/btrfs/inode.c                                 | 231 +++++++++++++-------
 fs/btrfs/ioctl.c                                 |  22 +-
 fs/btrfs/tests/qgroup-tests.c                    |   2 +-
 fs/btrfs/tree-log.c                              |  12 +-
 fs/buffer.c                                      |   2 +-
 fs/ceph/inode.c                                  |  10 +-
 fs/cifs/cifsfs.c                                 |  13 ++
 fs/cifs/dir.c                                    |   9 +-
 fs/cifs/smb2pdu.c                                |  49 +++--
 fs/dcache.c                                      |  22 ++
 fs/ecryptfs/inode.c                              |   3 +-
 fs/ext2/inode.c                                  |  10 -
 fs/ext2/namei.c                                  |   6 +-
 fs/ext3/namei.c                                  |   6 +-
 fs/ext4/balloc.c                                 |   3 +-
 fs/ext4/dir.c                                    |   8 +-
 fs/ext4/ialloc.c                                 |  43 +---
 fs/ext4/indirect.c                               |   5 +-
 fs/ext4/namei.c                                  |   6 +-
 fs/ext4/xattr.c                                  |  86 +++++---
 fs/ext4/xattr.h                                  |  11 +
 fs/f2fs/f2fs.h                                   |   1 +
 fs/f2fs/gc.c                                     |   2 +-
 fs/f2fs/inode.c                                  |  23 ++
 fs/f2fs/namei.c                                  |  52 ++---
 fs/fs-writeback.c                                |   2 +-
 fs/hugetlbfs/inode.c                             |  10 +-
 fs/jbd2/journal.c                                |   5 +-
 fs/jbd2/transaction.c                            |   1 +
 fs/jffs2/dir.c                                   |  12 +-
 fs/jffs2/super.c                                 |   2 +-
 fs/jfs/namei.c                                   |  12 +-
 fs/namespace.c                                   |   3 +-
 fs/nilfs2/namei.c                                |   6 +-
 fs/notify/fanotify/fanotify.c                    |  34 ++-
 fs/ocfs2/dlm/dlmcommon.h                         |   1 +
 fs/ocfs2/dlm/dlmdomain.c                         |  15 ++
 fs/ocfs2/dlm/dlmrecovery.c                       |  13 +-
 fs/proc/proc_sysctl.c                            |   3 +
 fs/reiserfs/journal.c                            |   2 +-
 fs/reiserfs/namei.c                              |  12 +-
 fs/ubifs/super.c                                 |  14 +-
 fs/udf/ialloc.c                                  |   7 +-
 fs/udf/namei.c                                   | 106 ++++-----
 fs/ufs/ialloc.c                                  |   6 +-
 fs/ufs/namei.c                                   |  14 +-
 include/asm-generic/word-at-a-time.h             |  80 ++++++-
 include/linux/clk-provider.h                     |   3 +-
 include/linux/dcache.h                           |   1 +
 include/linux/efi.h                              |   8 +-
 include/linux/hid.h                              |   4 +-
 include/linux/iio/buffer.h                       |   6 +-
 include/linux/log2.h                             |  13 +-
 include/linux/msg.h                              |   4 +-
 include/linux/mtd/flashchip.h                    |   1 +
 include/linux/shm.h                              |   4 +-
 include/linux/string.h                           |   3 +
 include/linux/tty.h                              |   6 +-
 include/linux/virtio.h                           |   3 +
 include/net/dst.h                                |   1 +
 include/net/inet_timewait_sock.h                 |   1 +
 include/net/nexthop.h                            |   2 +-
 include/rdma/ib_addr.h                           |   2 +
 include/sound/control.h                          |   7 +-
 include/sound/pcm_oss.h                          |   1 +
 include/trace/events/xen.h                       |  16 --
 include/uapi/linux/ppp-ioctl.h                   |   2 +-
 include/uapi/linux/tty.h                         |   1 +
 ipc/msg.c                                        |  19 +-
 ipc/msgutil.c                                    |   2 +-
 ipc/sem.c                                        |  38 ++--
 ipc/shm.c                                        | 116 +++++++---
 ipc/util.c                                       |   9 +
 ipc/util.h                                       |  11 +
 kernel/resource.c                                |   3 +-
 kernel/sched/auto_group.c                        |   9 +-
 kernel/sched/core.c                              |   3 +
 kernel/sys.c                                     |   4 +
 kernel/time/clocksource.c                        |   2 +
 kernel/time/tick-broadcast.c                     |   8 +
 kernel/trace/trace_events_filter.c               |   3 +
 kernel/trace/trace_events_trigger.c              |   5 +-
 kernel/trace/trace_uprobe.c                      |  32 ++-
 kernel/tracepoint.c                              |   4 +-
 lib/string.c                                     |  88 ++++++++
 mm/filemap.c                                     |   7 +-
 mm/mmap.c                                        |  32 +++
 net/atm/lec.c                                    |   9 +-
 net/batman-adv/translation-table.c               |  93 ++++++--
 net/bridge/netfilter/ebtables.c                  |   3 +-
 net/ceph/messenger.c                             |   7 +
 net/compat.c                                     |   6 +-
 net/core/dev.c                                   |   3 +-
 net/core/dev_addr_lists.c                        |   4 +-
 net/core/neighbour.c                             |  30 ++-
 net/core/skbuff.c                                |   1 +
 net/dccp/ccids/ccid2.c                           |  14 +-
 net/dccp/timer.c                                 |   2 +-
 net/dns_resolver/dns_key.c                       |  14 +-
 net/ipv4/inet_timewait_sock.c                    |   1 +
 net/ipv4/ip_output.c                             |   3 +-
 net/ipv4/ip_tunnel.c                             |  17 +-
 net/ipv4/ping.c                                  |   7 +-
 net/ipv4/route.c                                 | 118 +++++-----
 net/ipv4/tcp.c                                   |   8 +-
 net/ipv4/tcp_input.c                             |   7 +-
 net/ipv4/tcp_output.c                            |   7 +-
 net/ipv4/udp.c                                   |   7 +-
 net/ipv6/ip6_gre.c                               |   8 +-
 net/ipv6/ip6_output.c                            |   3 +-
 net/ipv6/ip6_tunnel.c                            |   8 +-
 net/ipv6/ip6_vti.c                               |   7 +-
 net/ipv6/route.c                                 |   2 +
 net/ipv6/sit.c                                   |   8 +-
 net/ipv6/xfrm6_policy.c                          |   2 +-
 net/l2tp/l2tp_core.c                             | 260 ++++++++++-------------
 net/l2tp/l2tp_core.h                             |   7 +-
 net/l2tp/l2tp_debugfs.c                          |  18 +-
 net/l2tp/l2tp_netlink.c                          |  28 ++-
 net/l2tp/l2tp_ppp.c                              |  43 +++-
 net/llc/af_llc.c                                 |  17 +-
 net/netfilter/ipvs/ip_vs_core.c                  |   8 +
 net/netfilter/ipvs/ip_vs_ctl.c                   |  15 +-
 net/netfilter/ipvs/ip_vs_sync.c                  |  10 +-
 net/netfilter/nf_tables_api.c                    |  59 ++---
 net/netlink/af_netlink.c                         |   2 +
 net/packet/af_packet.c                           |  86 +++++---
 net/packet/internal.h                            |  10 +-
 net/rfkill/rfkill-gpio.c                         |   7 +-
 net/sched/sch_fq.c                               |  37 ++--
 net/sctp/inqueue.c                               |   2 +-
 net/sctp/ipv6.c                                  |  65 +++---
 net/sunrpc/rpc_pipe.c                            |   1 +
 security/selinux/ss/services.c                   |   2 +-
 sound/core/control_compat.c                      |   3 +-
 sound/core/oss/pcm_oss.c                         | 186 ++++++++++++----
 sound/core/pcm.c                                 |   8 +-
 sound/core/pcm_compat.c                          |   2 +
 sound/core/pcm_native.c                          |   1 +
 sound/core/rawmidi_compat.c                      |  18 +-
 sound/core/seq/oss/seq_oss_event.c               |  15 +-
 sound/core/seq/oss/seq_oss_midi.c                |   2 +
 sound/core/seq/oss/seq_oss_synth.c               |  85 ++++----
 sound/core/seq/oss/seq_oss_synth.h               |   3 +-
 sound/core/seq/seq_virmidi.c                     |   4 +-
 sound/core/timer.c                               | 222 +++++++++----------
 sound/drivers/aloop.c                            |  17 +-
 sound/drivers/opl3/opl3_synth.c                  |   7 +-
 sound/pci/asihpi/hpimsginit.c                    |  39 ++--
 sound/pci/asihpi/hpioctl.c                       |   4 +-
 sound/pci/hda/hda_hwdep.c                        |  12 +-
 sound/pci/rme9652/hdspm.c                        |  24 ++-
 sound/pci/rme9652/rme9652.c                      |   6 +-
 sound/soc/codecs/ssm2602.c                       |  19 +-
 sound/soc/fsl/fsl_esai.c                         |   7 +
 sound/usb/mixer.c                                |   8 +
 sound/usb/mixer_maps.c                           |   3 +
 tools/perf/Documentation/perf-top.txt            |   3 +
 tools/perf/builtin-record.c                      |   2 +-
 354 files changed, 3603 insertions(+), 1941 deletions(-)

Aaron Ma (2):
HID: i2c-hid: fix size check and type usage
HID: core: Fix size as type u32

Al Viro (12):
hypfs_kill_super(): deal with failed allocations jffs2_kill_sb(): deal with failed allocations
rpc_pipefs: fix double-dput()
Don't leak MNT_INTERNAL away from internal mounts
udf: merge the pieces inserting a new non-directory object into directory
udf: fix the udf_iget() vs. udf_new_inode() races
ufs: deal with nfsd/iget races
do d_instantiate/unlock_new_inode combinations safely affs_lookup(): close a race with affs_remove_link()
ext2: fix a block leak
aio: fix io_destroy(2) vs. lookup_ioctx() race
fix io_destroy()/aio_complete() race

Alan Cox (1):
tty: handle the case where we cannot restore a line discipline

Alan Stern (1):
USB: Accept bulk endpoints with 1024-byte maxpacket

Alex Smith (1):
mmc: jz4740: Fix race condition in IRQ mask update

Alexander Gerasiov (1):
parport_pc: Add support for WCH CH382L PCI-E single parallel port card.

Alexey Khoroshilov (2):
vmxnet3: fix checks for dma mapping errors
vmxnet3: avoid assumption about invalid dma_pa in vmxnet3_set_mc()

Amir Goldstein (1):
fanotify: fix logic of events on child

Andrew Morton (1):
fs/reiserfs/journal.c: add missing resierfs_warning() arg

Andrey Ignatov (1):
ipv4: fix memory leaks in udp_sendmsg, ping_v4_sendmsg

Andy King (1):
VMXNET3: Check for map error in vmxnet3_set_mc

Aneesh Kumar K.V (1):
powerpc/mm/hugetlb: initialize the pagetable cache correctly for hugetlb

Ard Biesheuvel (1):
efi: Avoid potential crashes, fix the 'struct efi_pci_io_protocol_32' definition for mixed mode

Arnaldo Carvalho de Melo (1):

      perf top: Document --ignore-vmlinux

Arnd Bergmann (1):
media: s3c-camif: fix out-of-bounds array access

Bai Ping (1):
thermal: imx: register irq handler later in probe

Bart Van Assche (1):
IB/srp: Fix srp_abort()

Ben Hutchings (5):
scsi: qla2xxx: Avoid double completion of abort command drm/msm: Fix possible null dereference on failure of get_pages()
ALSA: timer: Fix pause event notification
ppp: Fix null pointer dereference on registration failure Linux 3.16.60

Bharat Potnuri (1):
iw_cxgb4: Atomically flush per QP HW CQEs

Bin Liu (1):
usb: musb: host: fix potential NULL pointer dereference

Bjorn Helgaas (1):
drm/radeon: make MacBook Pro d3_delay quirk more generic

Bjørn Mork (1):
qmi_wwan: do not steal interfaces from class drivers

Brad Volkin (1):
drm/i915: Log a message when rejecting LRM to OACONTROL

Bryan O'Donoghue (1):
rtc: snvs: Fix usage of snvs_rtc_enable

Chao Yu (2):
f2fs: reposition unlock_new_inode to prevent accessing invalid inode
udf: avoid unneeded up_write when fail to add entry in ->symlink

Charles Keepax (2):
regmap: Correct offset handling in regmap_volatile_range
regmap: Don't use format_val in regmap_bulk_read

Chris Mason (1):
Btrfs: use insert_inode_locked4 for inode creation

Chris Metcalf (3):
Make asm/word-at-a-time.h available on all architectures word-at-a-time.h: fix some Kbuild files
string: provide strscpy()

Clemens Werther (1):
USB: serial: ftdi_sio: add support for Harman FirmwareHubEmulator

Colin Ian King (5):
media: cx25821: prevent out-of-bounds read on array card
rtc: tx4939: avoid unintended sign extension on a 24 bit shift
staging: rtl8192u: return -ENOMEM on failed allocation of priv->oldaddr RDMA/iwpm: fix memory leak on map_info
KVM: Fix spelling mistake: "cop_unsuable" -> "cop_unusable"

Collin May (1):
USB: serial: simple: add libtransistor console

Cong Wang (2):
llc: hold llc_sap before release_sock()
llc: fix NULL pointer deref for SOCK_ZAPPED

Dan Carpenter (2):
xen/acpi: off by one in read_acpi_id()
net: ethernet: davinci_emac: fix error handling in probe()

Daniel Borkmann (1):
bpf, x64: fix memleak when not converging after image

Danilo Krummrich (1):
fs/proc/proc_sysctl.c: fix potential page fault while unregistering sysctl table

Danit Goldberg (1):
IB/mlx5: Use unlimited rate when static rate is not supported

Dave Airlie (1):
drm: set FMODE_UNSIGNED_OFFSET for drm files

David Henningsson (1):
ALSA: core: Report audio_tstamp in snd_pcm_sync_ptr

David Howells (1):
afs: Fix directory permissions check

David Lechner (1):

      pinctrl: pinctrl-single: Fix pcs_request_gpio() when bits_per_mux != 0

Davidlohr Bueso (5):
ipc,shm: move BUG_ON check into shm_lock
ipc: convert invalid scenarios to use WARN_ON ipc/sem: make semctl setting sempid consistent
Revert "ipc/shm: Fix shmat mmap nil-page protection" ipc/shm: fix shmat() nil address after round-down when remapping

Dennis Wassenberg (1):
Input: i8042 - add Lenovo ThinkPad L460 to i8042 reset list

Dexuan Cui (1):
tick/broadcast: Use for_each_cpu() specially on UP kernels

Dmitry Safonov (1):
tracing/uprobe: Drop isdigit() check in create_trace_uprobe

Dou Liyang (1):

      x86/acpi: Prevent X2APIC id 0xffffffff from being accounted

Eliot Blennerhassett (1):
ALSA: asihpi: used parts of message/response are zeroed before use

Eric Biggers (5):
crypto: x86/cast5-avx - fix ECB encryption when long sg follows short one ipc/shm: fix use-after-free of shm file via remap_file_pages()
ext4: correctly detect when an xattr value has an invalid size
KEYS: DNS: limit the length of option strings
ppp: remove the PPPIOCDETACH ioctl

Eric Dumazet (21):
ip_tunnel: better validate user provided tunnel names
ipv6: sit: better validate user provided tunnel names
ip6_gre: better validate user provided tunnel names
ip6_tunnel: better validate user provided tunnel names
vti6: better validate user provided tunnel names
crypto: af_alg - fix possible uninit-value in alg_bind()
netlink: fix uninit-value in netlink_sendmsg
net: fix rtnh_ok()
net: initialize skb->peeked when cloning
net: fix uninit-value in __hw_addr_add_ex()
soreuseport: initialise timewait reuseport field
sctp: do not leak kernel memory to user space
tcp: md5: reject TCP_MD5SIG or TCP_MD5SIG_EXT on established sockets
net: af_packet: fix race in PACKET_{R|T}X_RING
ipv6: add RTA_TABLE and RTA_PREFSRC to rtm_ipv6_policy
tcp: fix TCP_REPAIR_QUEUE bound checking
net_sched: fq: take care of throttled flows before reuse
dccp: fix tasklet usage
llc: better deal with too small mtu
xfrm6: avoid potential infinite loop in _decode_session6()
tcp: purge write queue in tcp_connect_init()

Eric W. Biederman (4):
ipc/util: Helpers for making the sysvipc operations pid namespace aware ipc/shm: Fix shmctl(..., IPC_STAT, ...) between pid namespaces. ipc/msg: Fix msgctl(..., IPC_STAT, ...) between pid namespaces ipc/sem: Fix semctl(..., GETPID, ...) between pid namespaces

Eryu Guan (1):
ext4: protect i_disksize update by i_data_sem in direct write path

Fabián Inostroza (1):
ALSA: line6: Use correct endpoint type for midi output

Federico Cuello (1):

      ALSA: usb: mixer: volume quirk for CM102-A+/102S+

Filipe Manana (3):
Btrfs: fix copy_items() return value when logging an inode
Btrfs: ensure tmpfile inode is always persisted with link count of 0
Btrfs: don't leave dangling dentry if symlink creation failed

Florent Flament (1):
drm/i915: Fix drm:intel_enable_lvds ERROR message in kernel log

Florian Fainelli (2):
net: bcmgenet: Fix sparse warnings in bcmgenet_put_tx_csum()
net: systemport: Fix sparse warnings in bcm_sysport_insert_tsb()

Florian Westphal (1):
netfilter: nf_tables: can't fail after linking rule into active rule list

Francisco Jerez (1):
drm/i915: Fix command parser to validate multiple register access with the same command.

Geert Uytterhoeven (6):
serial: arc_uart: Fix out-of-bounds access through DT alias
serial: fsl_lpuart: Fix out-of-bounds access through DT alias
serial: imx: Fix out-of-bounds access through serial port index
serial: mxs-auart: Fix out-of-bounds access through serial port index
serial: pxa: Fix out-of-bounds access through serial port index
serial: xuartps: Fix out-of-bounds access through DT alias

Govindarajulu Varadarajan (1):
enic: set DMA mask to 47 bit

Greg Kroah-Hartman (1):
USB: serial: visor: handle potential invalid device configuration

Guenter Roeck (4):
hwmon: (pmbus/max8688) Accept negative page register values
hwmon: (pmbus/adm1275) Accept negative page register values
hwmon: (nct6775) Fix writing pwmX_mode
hwmon: (nct6683) Enable EC access if disabled at boot

Guillaume Nault (12):
l2tp: fix races in tunnel creation
l2tp: fix race in duplicate tunnel detection
l2tp: hold reference on tunnels in netlink dumps
l2tp: hold reference on tunnels printed in pppol2tp proc file
l2tp: hold reference on tunnels printed in l2tp/tunnels debugfs file
l2tp: fix {pppol2tp, l2tp_dfs}_seq_stop() in case of seq_file overflow
l2tp: check sockaddr length in pppol2tp_connect()
pppoe: check sockaddr length in pppoe_connect()
ppp: fix device unregistration upon netns deletion
ppp: fix lockdep splat in ppp_dev_uninit()
ppp: fix race in ppp device destruction
ppp: unlock all_ppp_mutex before registering device

Gustavo A. R. Silva (3):
atm: zatm: Fix potential Spectre v1
net: atm: Fix potential Spectre v1 kernel/sys.c: fix potential Spectre v1 issue

Hans de Goede (1):
libata: Apply NOLPM quirk for SanDisk SD7UB3Q*G1001 SSDs

Heinrich Schuchardt (1):
usb: musb: gadget: misplaced out of bounds check

Helge Deller (2):
parisc: Fix HPMC handler by increasing size to multiple of 16 bytes
parisc: Fix out of array access in match_pci_device()

Hendrik Brueckner (1):
s390/cpum_sf: ensure sample frequency of perf event attributes is non-zero

Herbert Xu (1):
crypto: ahash - Fix early termination in hash walk

Huacai Chen (1):
zboot: fix stack protector in compressed boot phase

Ian Kent (1):
autofs: mount point create should honour passed in mode

Igor Pylypiv (1):
watchdog: f71808e_wdt: Fix WD_EN register read

Ilya Dryomov (1):

      libceph: validate con->state at the top of try_write()

Ivan Khoronzhuk (1):
net: ethernet: ti: cpdma: correct error handling for chan create

Jack Morgenstein (1):
net/mlx4: Fix irq-unsafe spinlock usage

Jaegeuk Kim (2):
f2fs: call f2fs_unlock_op after error was handled
f2fs: go out for insert_inode_locked failure

James Kelly (1):
ASoC: ssm2602: Replace reg_default_raw with reg_default

Jan Kara (3):
bdi: Fix oops in wb_workfn()
ufs: Fix warning from unlock_new_inode()
ufs: Fix possible deadlock when looking up directories

Jann Horn (1):
tcp: don't read out-of-bounds opsize

Jason Andryuk (1):
HID: i2c-hid: Fix "incomplete report" noise

Jeff Moyer (1):
block_invalidatepage(): only release page if the full page was invalidated

Jens Remus (1):
scsi: zfcp: fix infinite iteration on ERP ready list

Jerome Brunet (1):
clk: fix mux clock documentation

Jimmy Assarsson (1):
can: kvaser_usb: Increase correct stats counter in kvaser_usb_rx_can_msg()

Jiri Olsa (1):
perf record: Put new line after target override warning

Joakim Tjernlund (3):
mtd: cfi: cmdset_0001: Do not allow read/write to suspend erase block.
mtd: cfi: cmdset_0001: Workaround Micron Erase suspend bug.
mtd: cfi: cmdset_0002: Do not allow read/write to suspend erase block.

Joe Jin (1):
xen-swiotlb: fix the check condition for xen_swiotlb_free_coherent

Joerg Roedel (1):
x86/mm: Prevent kernel Oops in PTDUMP code with HIGHPTE=y

Johan Hovold (2):
USB: serial: cp210x: add ELDAT Easywave RX09 id
rfkill: gpio: fix memory leak in probe error path

Jonathan Neuschäfer (1):
net: core: dst: Add kernel-doc for 'net' parameter

Julian Anastasov (3):
ipv4: fix fnhe usage by non-cached routes
ipvs: fix stats update from local clients
ipvs: fix buffer overflow with sync daemon and service

Julian Wiedmann (5):
s390/qdio: don't merge ERROR output buffers s390/qdio: don't retry EQBS after CCQ 96 s390/qeth: handle failure on workqueue creation s390/qdio: fix access to uninitialized qdio_q fields s390/qdio: don't release memory in qdio_setup_irq()

Kai-Heng Feng (2):
sky2: Increase D3 delay to sky2 stops working after suspend
xhci: Fix USB ports for Dell Inspiron 5775

Kamil Lulko (1):
usb: core: Add quirk for HP v222w 16GB Mini

Kenny Yu (1):
uprobe: Find last occurrence of ':' when parsing uprobe PATH:OFFSET

Kirill A. Shutemov (1):
ipc/shm: handle removed segments gracefully in shm_mmap()

Krzysztof Mazur (1):
um: Use POSIX ucontext_t instead of struct ucontext

Kyle Roeschley (1):

      USB: serial: cp210x: add ID for NI USB serial console

Lance Richardson (1):
net: support compat 64-bit time in {s,g}etsockopt

Leon Romanovsky (1):
RDMA/mlx5: Protect from shift operand overflow

Leonard Crestez (1):
crypto: arm,arm64 - Fix random regeneration of S_shipped

Li RongQing (1):
x86/apic: Fix signedness bug in APIC ID validity checks

Linus Lüssing (1):
batman-adv: Fix TT sync flags for intermediate TT responses

Linus Torvalds (3):
mmap: introduce sane default mmap limits
mmap: relax file size limit for regular files give up on gcc ilog2() constant optimizations

Liu Bo (3):
Btrfs: fix unexpected cow in run_delalloc_nocow
Btrfs: fix NULL pointer dereference in log_dir_items
Btrfs: bail out on error during replay_dir_deletes

Long Li (1):
cifs: Allocate validate negotiation request through kmalloc

Maciej W. Rozycki (3):
MIPS: ptrace: Expose FIR register through FP regset
MIPS: Fix ptrace(2) PTRACE_PEEKUSR and PTRACE_POKEUSR accesses to o32 FGRs
MIPS: ptrace: Fix PTRACE_PEEKUSR requests for 64-bit FGRs

Mahesh Rajashekhara (1):
scsi: sd: Defer spinning up drive while SANITIZE is in progress

Major Hayden (1):
USB: serial: ftdi_sio: add RT Systems VX-8 cable

Marc Dionne (1):
afs: Ignore AFS_ACE_READ and AFS_ACE_WRITE for directories

Marc Zyngier (1):
KVM: arm/arm64: Close VMID generation race

Marek Lindner (1):
batman-adv: prevent TT request storms by not sending inconsistent TT TLVLs

Mark Brown (1):
regmap: Support bulk reads for devices without raw formatting

Markus Elfring (2):
video/fbdev/stifb: Return -ENOMEM after a failed kzalloc() in stifb_init_fb()
tracing: Deletion of an unnecessary check before iput()

Martin K. Petersen (1):
scsi: mptsas: Disable WRITE SAME

Martin Kelly (2):
iio:buffer: make length types match kfifo types iio:kfifo_buf: check for uint overflow

Masami Hiramatsu (3):
tracing/uprobe_event: Fix strncpy corner case
ARM: 8771/1: kprobes: Prohibit kprobes on do_undefinstr
ARM: 8772/1: kprobes: Prohibit kprobes on get_user functions

Mathieu Desnoyers (1):
tracepoint: Do not warn on ENOMEM

Matt Redfearn (4):
MIPS: memset.S: EVA & fault support for small_memset
MIPS: memset.S: Fix return of __clear_user from Lpartial_fixup
MIPS: memset.S: Fix clobber of v1 in last_fixup
MIPS: uaccess: Add micromips clobbers to bzero invocation

Matthew Auld (1):
drm/i915/userptr: reject zero user_size

Matthew Wilcox (1):
mm/filemap.c: fix NULL pointer in page_cache_tree_insert()

Mauro Carvalho Chehab (1):
media: v4l2-compat-ioctl32: don't oops on overlay

Michael Ellerman (1):
powerpc/lib: Fix off-by-one in alternate feature patching

Michael Neuling (3):
powerpc/eeh: Fix race with driver un/bind powerpc/eeh: Fix enabling bridge MMIO windows powerpc/64s: Clear PCR on boot

Michael S. Tsirkin (6):
virtio_console: don't tie bufs to a vq
virtio: add ability to iterate over vqs
virtio_console: free buffers after reset
virtio_console: drop custom control queue cleanup
virtio_console: move removal code
virtio_console: reset on out of memory

Michal Srb (1):
drm/i915/cmdparser: Do not check past the cmd length.

Mika Westerberg (2):
ACPI / hotplug / PCI: Check presence of slot itself in get_slot_status()
ahci: Add PCI ID for Cannon Lake PCH-LP AHCI

Mike Frysinger (1):
vt: change SGR 21 to follow the standards

Mike Galbraith (1):
sched/autogroup: Fix 64-bit kernel nice level adjustment

Mike Kravetz (1):
hugetlbfs: fix bug in pgoff overflow checking

Mikhail Lappo (1):
thermal: imx: Fix race condition in imx_thermal_probe()

Moshe Shemesh (1):
net/mlx4_en: Verify coalescing parameters are in range

Nicholas Piggin (5):
powerpc/powernv: Handle unknown OPAL errors in opal_nvram_write() powerpc/64: Fix smp_wmb barrier definition use use lwsync consistently powerpc/powernv: define a standard delay for OPAL_BUSY type retry loops powerpc/powernv: Fix OPAL NVRAM driver OPAL_BUSY loops powerpc/powernv: Fix NVRAM sleep in invalid context when crashing

Nico Sneck (1):
drm/radeon: add PX quirk for Asus K73TK

Nicolas Dichtel (1):
ip_tunnel: restore binding to ifaces with a large mtu

Nicolas Ferre (1):
ARM: dts: at91: at91sam9g25: fix mux-mask pinctrl property

Nicolin Chen (1):
ASoC: fsl_esai: Fix divisor calculation failure at lower ratio

Nikolay Borisov (3):
btrfs: Refactor transaction handling in received subvolume ioctl
btrfs: Handle error from btrfs_uuid_tree_rem call in _btrfs_ioctl_set_received_subvol
btrfs: Fix possible softlock on single core machines

Ondrej Zary (2):
Input: i8042 - enable MUX on Sony VAIO VGN-CS series to fix touchpad drm/i915: Disable LVDS on Radiant P845

Paolo Abeni (2):
team: avoid adding twice the same option to the event list
netfilter: ebtables: handle string from userspace with care

Paul Parsons (1):
drm/radeon: Fix PCIe lane width calculation

Peng Hao (1):
kvm: x86: fix a compile warning

Peter Rosin (3):
i2c: pmcmsp: return message count on master_xfer success
i2c: pmcmsp: fix error return from master_xfer
i2c: viperboard: return message count on master_xfer success

Peter Zijlstra (5):

      clocksource: Initialize cs->wd_list
      sched/core: Fix possible Spectre-v1 indexing for sched_prio_to_weight[]
      sched/autogroup: Fix possible Spectre-v1 indexing for sched_prio_to_weight[]
      perf/x86: Fix possible Spectre-v1 indexing for x86_pmu::event_map()
      perf/x86: Fix possible Spectre-v1 indexing for hw_perf_event cache_*

Prakash Kamliya (1):
drm/msm: fix leak in failed get_pages

Qu Wenruo (1):
btrfs: tests/qgroup: Fix wrong tree backref level

Raju Rangoju (1):
RDMA/cxgb4: release hw resources on device removal

Rasmus Villemoes (2):
drivers: tty: Merge alloc_tty_struct and initialize_tty_struct
drivers: tty: Fix use-after-free in pty_common_install

Ravi Chandra Sadineni (1):
USB: Increment wakeup count on remote wakeup.

Richard Weinberger (2):
ubifs: Check ubifs_wbuf_sync() return code
ubi: Reject MLC NAND

Robbie Ko (1):
Btrfs: send, fix invalid access to commit roots due to concurrent snapshotting

Rodrigo Rivas Costa (1):
HID: hidraw: Fix crash on HIDIOCGFEATURE with a destroyed device

Roland Dreier (3):
RDMA/ucma: Don't allow setting RDMA_OPTION_IB_PATH without an RDMA device RDMA/ucma: Introduce safer rdma_addr_size() variants RDMA/ucma: Allow resolving address w/o specifying source address

Romain Izard (1):
ubi: Fix error for write access

Ronnie Sahlberg (1):
cifs: fix memory leak in SMB2_open()

Russell King (1):
ARM: keystone: fix platform_domain_notifier array overrun

SZ Lin (林上智) (1):

      NET: usb: qmi_wwan: add support for ublox R410M PID 0x90b2

Sachin Grover (1):
selinux: KASAN: slab-out-of-bounds in xattr_getsecurity

Sean Young (1):
media: rc: oops in ir_timer_keyup after device unplug

Sebastian Ott (1):
s390/cio: update chpid descriptor after resource accessibility event

Sekhar Nori (1):
ARM: davinci: board-dm646x-evm: set VPIF capture card name

Sergei Shtylyov (1):
drm: rcar-du: lvds: Fix LVDS startup on R-Car Gen2

Shamir Rabinovitch (1):
RDMA/ucma: ucma_context reference leak in error path

Shuah Khan (2):
usbip: vhci_hcd: check rhport before using in vhci_hub_control()
usbip: vhci_hcd: Fix usb device and sockfd leaks

Song Liu (1):
tracing: Fix bad use of igrab in trace_uprobe.c

Stefan Brüns (1):
drm/i915: Try EDID bitbanging on HDMI after failed read

Stefan Haberland (1):
s390/dasd: fix IO error for newly defined devices

Steve French (2):
cifs: do not allow creating sockets except with SMB1 posix exensions
smb3: directory sync should not return an error

Steven Rostedt (VMware) (3):
tracing: Fix regex_match_front() to not over compare the test string tracing/x86/xen: Remove zero data size trace events trace_xen_mmu_flush_tlb{_all}
tracing: Fix crash when freeing instances with event triggers

Sudhir Sreedharan (1):

      rtl8187: Fix NULL pointer dereference in priv->conf_mutex

Sudip Mukherjee (1):
libata: blacklist Micron 500IT SSD with MU01 firmware

Sven Eckelmann (1):
batman-adv: Avoid race in TT TVLV allocator helper

Takashi Iwai (21):
ALSA: pcm: Use ERESTARTSYS instead of EINTR in OSS emulation
ALSA: pcm: Avoid potential races between OSS ioctls and read/write
ALSA: pcm: Return -EBUSY for OSS ioctls changing busy streams
ALSA: pcm: Fix mutex unbalance in OSS emulation ioctls
ALSA: pcm: Fix UAF at PCM release via PCM timer access
ALSA: pcm: Fix endless loop for XRUN recovery in OSS emulation
resource: fix integer overflow at reallocation
ALSA: rawmidi: Fix missing input substream checks in compat ioctls
ALSA: usb-audio: Skip broken EU on Dell dock USB-audio
ALSA: seq: oss: Fix unbalanced use lock for synth MIDI device
ALSA: seq: oss: Hardening for potential Spectre v1
ALSA: control: Hardening for potential Spectre v1
ALSA: hda: Hardening for potential Spectre v1
ALSA: opl3: Hardening for potential Spectre v1
ALSA: asihpi: Hardening for potential Spectre v1
ALSA: hdspm: Hardening for potential Spectre v1
ALSA: rme9652: Hardening for potential Spectre v1
ALSA: seq: Fix races at MIDI encoding in snd_virmidi_output_trigger()
ALSA: aloop: Add missing cable lock to ctl API callbacks
ALSA: pcm: Check PCM state at xfern compat ioctl
ALSA: timer: Call notifier in the same spinlock

Tarick Bedeir (1):
net/mlx4_core: Fix error handling in mlx4_init_port_info.

Tejun Heo (1):
libata: Blacklist some Sandisk SSDs for NCQ

Tetsuo Handa (4):
tty: Avoid possible error pointer dereference at tty_ldisc_restore().
tty: Don't call panic() at tty_ldisc_init()
tty: Use __GFP_NOFAIL for tty_ldisc_get()
x86/kexec: Avoid double free_page() upon do_kexec_load() failure

Theodore Ts'o (6):
jbd2: if the journal is aborted then don't allow update of the log tail
ext4: don't update checksum of new initialized bitmaps
ext4: add bounds checking to ext4_xattr_find_entry()
ext4: add extra checks to ext4_xattr_block_get()
ext4: force revalidation of directory pointer after seekdir(2)
ext4: set h_journal if there is a failure starting a reserved handle

Thinh Nguyen (1):
usb: dwc3: pci: Properly cleanup resource

Tony Lindgren (1):
net: davinci_emac: Fix runtime pm calls for davinci_emac

Toshiaki Makita (1):

      vlan: Fix reading memory beyond skb->tail in skb_vlan_tagged_multi

Uwe Kleine-König (1):

      serial: altera: ensure port->regshift is honored consistently

Vasily Gorbik (1):
s390/ipl: ensure loadparm valid flag is set

Vasyl Vavrychuk (1):
USB: serial: ftdi_sio: use jtag quirk for Arrow USB Blaster

Wei Huang (1):
KVM: x86: Update cpuid properly when CR4.OSXAVE or CR4.PKE is changed

Wenwen Wang (1):
ALSA: control: fix a redundant-copy issue

Willem de Bruijn (2):
packet: fix bitfield update race
net: test tailroom before appending to linear skb

Wolfgang Bumiller (1):
net: fix deadlock while clearing neighbor proxy table

Xiaoming Gao (1):
x86/tsc: Prevent 32bit truncation in calc_hpet_ref()

Xin Long (5):
sctp: do not check port in sctp_inet6_cmp_addr
bonding: do not set slave_dev npinfo before slave_enable_netpoll in bond_enslave
team: fix netconsole setup over team
sctp: handle two v4 addrs comparison in sctp_inet6_cmp_addr
sctp: fix the issue that the cookie-ack with auth can't get processed

Yan, Zheng (1):
ceph: always update atime/mtime/ctime for new inode

Yazen Ghannam (1):
x86/smpboot: Don't use mwait_play_dead() on AMD systems

Yishai Hadas (1):
RDMA/mlx5: Don't assume that medium blueFlame register exists

Zhengjun Xing (1):
USB:fix USB3 devices behind USB3 hubs not resuming at hibernate thaw

[email protected] (1):
scsi: qla2xxx: Fix NULL pointer crash due to active timer for ABTS

[email protected] (1):
vmxnet3: set the DMA mask before the first DMA map operation

piaojun (1):
ocfs2/dlm: wait for dlm recovery done when migrating all lock resources

Łukasz Stelmach (1):
ARM: 8753/1: decompressor: add a missing parameter to the addruart macro

Documentation/networking/ppp_generic.txt +0 -6
index 091d20273dcb..61daf4b39600 100644
@@ -300,12 +300,6 @@ to a PPP channel.  The ioctl calls which are available on an
 The ioctl calls available on an instance of /dev/ppp attached to a
 channel are:
 
-* PPPIOCDETACH detaches the instance from the channel.  This ioctl is
-  deprecated since the same effect can be achieved by closing the
-  instance.  In order to prevent possible races this ioctl will fail
-  with an EINVAL error if more than one file descriptor refers to this
-  instance (i.e. as a result of dup(), dup2() or fork()).
-
 * PPPIOCCONNECT connects this channel to a PPP interface.  The
   argument should point to an int containing the interface unit
   number.  It will return an EINVAL error if the channel is already
Makefile +1 -1
index d548dd129f44..1e4f63055a10 100644
@@ -1,6 +1,6 @@
 VERSION = 3
 PATCHLEVEL = 16
-SUBLEVEL = 59
+SUBLEVEL = 60
 EXTRAVERSION =
 NAME = Museum of Fishiegoodies
 
arch/arc/include/asm/Kbuild +1 -0
index e76fd79f32b0..66437e516623 100644
@@ -49,4 +49,5 @@ generic-y += types.h
 generic-y += ucontext.h
 generic-y += user.h
 generic-y += vga.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
arch/arm/boot/compressed/head.S +8 -8
index 624bd3ea0adf..c8b1eac82d2c 100644
@@ -24,19 +24,19 @@
 #if defined(CONFIG_DEBUG_ICEDCC)
 
 #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) || defined(CONFIG_CPU_V7)
-		.macro	loadsp, rb, tmp
+		.macro	loadsp, rb, tmp1, tmp2
 		.endm
 		.macro	writeb, ch, rb
 		mcr	p14, 0, \ch, c0, c5, 0
 		.endm
 #elif defined(CONFIG_CPU_XSCALE)
-		.macro	loadsp, rb, tmp
+		.macro	loadsp, rb, tmp1, tmp2
 		.endm
 		.macro	writeb, ch, rb
 		mcr	p14, 0, \ch, c8, c0, 0
 		.endm
 #else
-		.macro	loadsp, rb, tmp
+		.macro	loadsp, rb, tmp1, tmp2
 		.endm
 		.macro	writeb, ch, rb
 		mcr	p14, 0, \ch, c1, c0, 0
@@ -52,7 +52,7 @@
 		.endm
 
 #if defined(CONFIG_ARCH_SA1100)
-		.macro	loadsp, rb, tmp
+		.macro	loadsp, rb, tmp1, tmp2
 		mov	\rb, #0x80000000	@ physical base address
 #ifdef CONFIG_DEBUG_LL_SER3
 		add	\rb, \rb, #0x00050000	@ Ser3
@@ -61,8 +61,8 @@
 #endif
 		.endm
 #else
-		.macro	loadsp,	rb, tmp
-		addruart \rb, \tmp
+		.macro	loadsp,	rb, tmp1, tmp2
+		addruart \rb, \tmp1, \tmp2
 		.endm
 #endif
 #endif
@@ -1219,7 +1219,7 @@ phex:		adr	r3, phexbuf
 		b	1b
 
 @ puts corrupts {r0, r1, r2, r3}
-puts:		loadsp	r3, r1
+puts:		loadsp	r3, r2, r1
 1:		ldrb	r2, [r0], #1
 		teq	r2, #0
 		moveq	pc, lr
@@ -1236,8 +1236,8 @@ puts:		loadsp	r3, r1
 @ putc corrupts {r0, r1, r2, r3}
 putc:
 		mov	r2, r0
+		loadsp	r3, r1, r0
 		mov	r0, #0
-		loadsp	r3, r1
 		b	2b
 
 @ memdump corrupts {r0, r1, r2, r3, r10, r11, r12, lr}
arch/arm/boot/compressed/misc.c +1 -8
index d4f891f56996..d39edb1f7f41 100644
@@ -127,12 +127,7 @@ asmlinkage void __div0(void)
 	error("Attempting division by 0!");
 }
 
-unsigned long __stack_chk_guard;
-
-void __stack_chk_guard_setup(void)
-{
-	__stack_chk_guard = 0x000a0dff;
-}
+const unsigned long __stack_chk_guard = 0x000a0dff;
 
 void __stack_chk_fail(void)
 {
@@ -149,8 +144,6 @@ decompress_kernel(unsigned long output_start, unsigned long free_mem_ptr_p,
 {
 	int ret;
 
-	__stack_chk_guard_setup();
-
 	output_data		= (unsigned char *)output_start;
 	free_mem_ptr		= free_mem_ptr_p;
 	free_mem_end_ptr	= free_mem_ptr_end_p;
arch/arm/boot/dts/at91sam9g25.dtsi +1 -1
index 17b879990914..d69cfb540a07 100644
@@ -20,7 +20,7 @@
 				atmel,mux-mask = <
 				      /*    A         B          C     */
 				       0xffffffff 0xffe0399f 0xc000001c  /* pioA */
-				       0x0007ffff 0x8000fe3f 0x00000000  /* pioB */
+				       0x0007ffff 0x00047e3f 0x00000000  /* pioB */
 				       0x80000000 0x07c0ffff 0xb83fffff  /* pioC */
 				       0x003fffff 0x003f8000 0x00000000  /* pioD */
 				      >;
arch/arm/crypto/Makefile +2 -0
index 81cda39860c5..81720285f2ba 100644
@@ -10,10 +10,12 @@ aes-arm-y	:= aes-armv4.o aes_glue.o
 aes-arm-bs-y	:= aesbs-core.o aesbs-glue.o
 sha1-arm-y	:= sha1-armv4-large.o sha1_glue.o
 
+ifdef REGENERATE_ARM_CRYPTO
 quiet_cmd_perl = PERL    $@
       cmd_perl = $(PERL) $(<) > $(@)
 
 $(src)/aesbs-core.S_shipped: $(src)/bsaes-armv7.pl
 	$(call cmd,perl)
+endif
 
 .PRECIOUS: $(obj)/aesbs-core.S
arch/arm/include/asm/assembler.h +10 -0
index 57f0584e8d97..6a1658ee2ba1 100644
@@ -425,4 +425,14 @@ THUMB(	orr	\reg , \reg , #PSR_T_BIT	)
 #endif
 	.endm
 
+#ifdef CONFIG_KPROBES
+#define _ASM_NOKPROBE(entry)				\
+	.pushsection "_kprobe_blacklist", "aw" ;	\
+	.balign 4 ;					\
+	.long entry;					\
+	.popsection
+#else
+#define _ASM_NOKPROBE(entry)
+#endif
+
 #endif /* __ASM_ASSEMBLER_H__ */
arch/arm/kernel/traps.c +4 -1
index cba3cb0b1a47..a19a69003a6e 100644
@@ -19,6 +19,7 @@
 #include <linux/uaccess.h>
 #include <linux/hardirq.h>
 #include <linux/kdebug.h>
+#include <linux/kprobes.h>
 #include <linux/module.h>
 #include <linux/kexec.h>
 #include <linux/bug.h>
@@ -392,7 +393,8 @@ void unregister_undef_hook(struct undef_hook *hook)
 	raw_spin_unlock_irqrestore(&undef_lock, flags);
 }
 
-static int call_undef_hook(struct pt_regs *regs, unsigned int instr)
+static nokprobe_inline
+int call_undef_hook(struct pt_regs *regs, unsigned int instr)
 {
 	struct undef_hook *hook;
 	unsigned long flags;
@@ -465,6 +467,7 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs)
 
 	arm_notify_die("Oops - undefined instruction", regs, &info, 0, 6);
 }
+NOKPROBE_SYMBOL(do_undefinstr)
 
 asmlinkage void do_unexp_fiq (struct pt_regs *regs)
 {
arch/arm/kvm/arm.c +10 -5
index d75c6e3ed78c..03ab35a58836 100644
@@ -59,7 +59,7 @@ static DEFINE_PER_CPU(struct kvm_vcpu *, kvm_arm_running_vcpu);
 /* The VMID used in the VTTBR */
 static atomic64_t kvm_vmid_gen = ATOMIC64_INIT(1);
 static u8 kvm_next_vmid;
-static DEFINE_SPINLOCK(kvm_vmid_lock);
+static DEFINE_RWLOCK(kvm_vmid_lock);
 
 static bool vgic_present;
 
@@ -391,11 +391,16 @@ static void update_vttbr(struct kvm *kvm)
 {
 	phys_addr_t pgd_phys;
 	u64 vmid;
+	bool new_gen;
 
-	if (!need_new_vmid_gen(kvm))
+	read_lock(&kvm_vmid_lock);
+	new_gen = need_new_vmid_gen(kvm);
+	read_unlock(&kvm_vmid_lock);
+
+	if (!new_gen)
 		return;
 
-	spin_lock(&kvm_vmid_lock);
+	write_lock(&kvm_vmid_lock);
 
 	/*
 	 * We need to re-check the vmid_gen here to ensure that if another vcpu
@@ -403,7 +408,7 @@ static void update_vttbr(struct kvm *kvm)
 	 * use the same vmid.
 	 */
 	if (!need_new_vmid_gen(kvm)) {
-		spin_unlock(&kvm_vmid_lock);
+		write_unlock(&kvm_vmid_lock);
 		return;
 	}
 
@@ -436,7 +441,7 @@ static void update_vttbr(struct kvm *kvm)
 	vmid = ((u64)(kvm->arch.vmid) << VTTBR_VMID_SHIFT) & VTTBR_VMID_MASK;
 	kvm->arch.vttbr = pgd_phys | vmid;
 
-	spin_unlock(&kvm_vmid_lock);
+	write_unlock(&kvm_vmid_lock);
 }
 
 static int kvm_vcpu_first_run_init(struct kvm_vcpu *vcpu)
arch/arm/lib/getuser.S +4 -0
index 9b06bb41fca6..75764388f849 100644
@@ -38,6 +38,7 @@ ENTRY(__get_user_1)
 	mov	r0, #0
 	mov	pc, lr
 ENDPROC(__get_user_1)
+_ASM_NOKPROBE(__get_user_1)
 
 ENTRY(__get_user_2)
 	check_uaccess r0, 2, r1, r2, __get_user_bad
@@ -58,6 +59,7 @@ rb	.req	r0
 	mov	r0, #0
 	mov	pc, lr
 ENDPROC(__get_user_2)
+_ASM_NOKPROBE(__get_user_2)
 
 ENTRY(__get_user_4)
 	check_uaccess r0, 4, r1, r2, __get_user_bad
@@ -65,12 +67,14 @@ ENTRY(__get_user_4)
 	mov	r0, #0
 	mov	pc, lr
 ENDPROC(__get_user_4)
+_ASM_NOKPROBE(__get_user_4)
 
 __get_user_bad:
 	mov	r2, #0
 	mov	r0, #-EFAULT
 	mov	pc, lr
 ENDPROC(__get_user_bad)
+_ASM_NOKPROBE(__get_user_bad)
 
 .pushsection __ex_table, "a"
 	.long	1b, __get_user_bad
arch/arm/mach-davinci/board-dm646x-evm.c +2 -1
index 3e3e83b974ca..03248445f24c 100644
@@ -541,7 +541,7 @@ static struct vpif_display_config dm646x_vpif_display_config = {
 		.outputs = dm6467_ch0_outputs,
 		.output_count = ARRAY_SIZE(dm6467_ch0_outputs),
 	},
-	.card_name	= "DM646x EVM",
+	.card_name	= "DM646x EVM Video Display",
 };
 
 /**
@@ -699,6 +699,7 @@ static struct vpif_capture_config dm646x_vpif_capture_cfg = {
 			.fid_pol = 0,
 		},
 	},
+	.card_name = "DM646x EVM Video Capture",
 };
 
 static void __init evm_init_video(void)
arch/arm/mach-keystone/pm_domain.c +1 -0
index ca79ddac38bc..2c95d5706717 100644
@@ -59,6 +59,7 @@ static struct dev_pm_domain keystone_pm_domain = {
 
 static struct pm_clk_notifier_block platform_domain_notifier = {
 	.pm_domain = &keystone_pm_domain,
+	.con_ids = { NULL },
 };
 
 static struct of_device_id of_keystone_table[] = {
arch/avr32/include/asm/Kbuild +1 -0
index 00a0f3ccd6eb..52b54b19c5bb 100644
@@ -20,4 +20,5 @@ generic-y += sections.h
 generic-y += topology.h
 generic-y += trace_clock.h
 generic-y += vga.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
arch/blackfin/include/asm/Kbuild +1 -0
index 0d93b9a79ca9..328ffecb066e 100644
@@ -46,4 +46,5 @@ generic-y += types.h
 generic-y += ucontext.h
 generic-y += unaligned.h
 generic-y += user.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
arch/c6x/include/asm/Kbuild +1 -0
index 8dbdce8421b0..91b1ed0b185a 100644
@@ -58,4 +58,5 @@ generic-y += types.h
 generic-y += ucontext.h
 generic-y += user.h
 generic-y += vga.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
arch/cris/include/asm/Kbuild +1 -0
index afff5105909d..30684d08b1f7 100644
@@ -15,4 +15,5 @@ generic-y += module.h
 generic-y += preempt.h
 generic-y += trace_clock.h
 generic-y += vga.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
arch/frv/include/asm/Kbuild +1 -0
index 87b95eb8aee5..f53f76249b8b 100644
@@ -6,3 +6,4 @@ generic-y += hash.h
 generic-y += mcs_spinlock.h
 generic-y += preempt.h
 generic-y += trace_clock.h
+generic-y += word-at-a-time.h
arch/hexagon/include/asm/Kbuild +1 -0
index 0e69796b58c7..8462f9081738 100644
@@ -58,4 +58,5 @@ generic-y += types.h
 generic-y += ucontext.h
 generic-y += unaligned.h
 generic-y += vga.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
arch/ia64/include/asm/Kbuild +1 -0
index 0da4aa2602ae..0cbf13f261de 100644
@@ -7,3 +7,4 @@ generic-y += mcs_spinlock.h
 generic-y += preempt.h
 generic-y += trace_clock.h
 generic-y += vtime.h
+generic-y += word-at-a-time.h
arch/m32r/include/asm/Kbuild +1 -0
index 67779a74b62d..e351b3ef0b10 100644
@@ -7,3 +7,4 @@ generic-y += mcs_spinlock.h
 generic-y += module.h
 generic-y += preempt.h
 generic-y += trace_clock.h
+generic-y += word-at-a-time.h
arch/metag/include/asm/Kbuild +1 -0
index c29ead89a317..b7d38f05fb0e 100644
@@ -54,4 +54,5 @@ generic-y += ucontext.h
 generic-y += unaligned.h
 generic-y += user.h
 generic-y += vga.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
arch/microblaze/include/asm/Kbuild +1 -0
index 35b3ecaf25d5..57da9a75130c 100644
@@ -9,3 +9,4 @@ generic-y += mcs_spinlock.h
 generic-y += preempt.h
 generic-y += syscalls.h
 generic-y += trace_clock.h
+generic-y += word-at-a-time.h
arch/mips/include/asm/Kbuild +1 -0
index 05439187891d..4743a034957c 100644
@@ -15,4 +15,5 @@ generic-y += segment.h
 generic-y += serial.h
 generic-y += trace_clock.h
 generic-y += ucontext.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
arch/mips/include/asm/uaccess.h +9 -2
index a752de97840f..5f675d3c86da 100644
@@ -1210,6 +1210,13 @@ __clear_user(void __user *addr, __kernel_size_t size)
 {
 	__kernel_size_t res;
 
+#ifdef CONFIG_CPU_MICROMIPS
+/* micromips memset / bzero also clobbers t7 & t8 */
+#define bzero_clobbers "$4", "$5", "$6", __UA_t0, __UA_t1, "$15", "$24", "$31"
+#else
+#define bzero_clobbers "$4", "$5", "$6", __UA_t0, __UA_t1, "$31"
+#endif /* CONFIG_CPU_MICROMIPS */
+
 	if (config_enabled(CONFIG_EVA) && segment_eq(get_fs(), get_ds())) {
 		__asm__ __volatile__(
 			"move\t$4, %1\n\t"
@@ -1219,7 +1226,7 @@ __clear_user(void __user *addr, __kernel_size_t size)
 			"move\t%0, $6"
 			: "=r" (res)
 			: "r" (addr), "r" (size)
-			: "$4", "$5", "$6", __UA_t0, __UA_t1, "$31");
+			: bzero_clobbers);
 	} else {
 		might_fault();
 		__asm__ __volatile__(
@@ -1230,7 +1237,7 @@ __clear_user(void __user *addr, __kernel_size_t size)
 			"move\t%0, $6"
 			: "=r" (res)
 			: "r" (addr), "r" (size)
-			: "$4", "$5", "$6", __UA_t0, __UA_t1, "$31");
+			: bzero_clobbers);
 	}
 
 	return res;
arch/mips/kernel/ptrace.c +19 -5
index cc0f9ee7cf48..3d5b457be415 100644
@@ -481,7 +481,7 @@ static int fpr_get_msa(struct task_struct *target,
 /*
  * Copy the floating-point context to the supplied NT_PRFPREG buffer.
  * Choose the appropriate helper for general registers, and then copy
- * the FCSR register separately.
+ * the FCSR and FIR registers separately.
  */
 static int fpr_get(struct task_struct *target,
 		   const struct user_regset *regset,
@@ -489,6 +489,7 @@ static int fpr_get(struct task_struct *target,
 		   void *kbuf, void __user *ubuf)
 {
 	const int fcr31_pos = NUM_FPU_REGS * sizeof(elf_fpreg_t);
+	const int fir_pos = fcr31_pos + sizeof(u32);
 	int err;
 
 	if (sizeof(target->thread.fpu.fpr[0]) == sizeof(elf_fpreg_t))
@@ -501,6 +502,12 @@ static int fpr_get(struct task_struct *target,
 	err = user_regset_copyout(&pos, &count, &kbuf, &ubuf,
 				  &target->thread.fpu.fcr31,
 				  fcr31_pos, fcr31_pos + sizeof(u32));
+	if (err)
+		return err;
+
+	err = user_regset_copyout(&pos, &count, &kbuf, &ubuf,
+				  &boot_cpu_data.fpu_id,
+				  fir_pos, fir_pos + sizeof(u32));
 
 	return err;
 }
@@ -549,7 +556,8 @@ static int fpr_set_msa(struct task_struct *target,
 /*
  * Copy the supplied NT_PRFPREG buffer to the floating-point context.
  * Choose the appropriate helper for general registers, and then copy
- * the FCSR register separately.
+ * the FCSR register separately.  Ignore the incoming FIR register
+ * contents though, as the register is read-only.
  *
  * We optimize for the case where `count % sizeof(elf_fpreg_t) == 0',
  * which is supposed to have been guaranteed by the kernel before
@@ -563,6 +571,7 @@ static int fpr_set(struct task_struct *target,
 		   const void *kbuf, const void __user *ubuf)
 {
 	const int fcr31_pos = NUM_FPU_REGS * sizeof(elf_fpreg_t);
+	const int fir_pos = fcr31_pos + sizeof(u32);
 	u32 fcr31;
 	int err;
 
@@ -590,6 +599,11 @@ static int fpr_set(struct task_struct *target,
 		ptrace_setfcr31(target, fcr31);
 	}
 
+	if (count > 0)
+		err = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf,
+						fir_pos,
+						fir_pos + sizeof(u32));
+
 	return err;
 }
 
@@ -727,7 +741,7 @@ long arch_ptrace(struct task_struct *child, long request,
 			fregs = get_fpu_regs(child);
 
 #ifdef CONFIG_32BIT
-			if (test_thread_flag(TIF_32BIT_FPREGS)) {
+			if (test_tsk_thread_flag(child, TIF_32BIT_FPREGS)) {
 				/*
 				 * The odd registers are actually the high
 				 * order bits of the values stored in the even
@@ -738,7 +752,7 @@ long arch_ptrace(struct task_struct *child, long request,
 				break;
 			}
 #endif
-			tmp = get_fpr32(&fregs[addr - FPR_BASE], 0);
+			tmp = get_fpr64(&fregs[addr - FPR_BASE], 0);
 			break;
 		case PC:
 			tmp = regs->cp0_epc;
@@ -816,7 +830,7 @@ long arch_ptrace(struct task_struct *child, long request,
 
 			init_fp_ctx(child);
 #ifdef CONFIG_32BIT
-			if (test_thread_flag(TIF_32BIT_FPREGS)) {
+			if (test_tsk_thread_flag(child, TIF_32BIT_FPREGS)) {
 				/*
 				 * The odd registers are actually the high
 				 * order bits of the values stored in the even
arch/mips/kernel/ptrace32.c +3 -3
index fdd26c104c6c..38d99886300c 100644
@@ -97,7 +97,7 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
 				break;
 			}
 			fregs = get_fpu_regs(child);
-			if (test_thread_flag(TIF_32BIT_FPREGS)) {
+			if (test_tsk_thread_flag(child, TIF_32BIT_FPREGS)) {
 				/*
 				 * The odd registers are actually the high
 				 * order bits of the values stored in the even
@@ -107,7 +107,7 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
 						addr & 1);
 				break;
 			}
-			tmp = get_fpr32(&fregs[addr - FPR_BASE], 0);
+			tmp = get_fpr64(&fregs[addr - FPR_BASE], 0);
 			break;
 		case PC:
 			tmp = regs->cp0_epc;
@@ -203,7 +203,7 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
 				       sizeof(child->thread.fpu));
 				child->thread.fpu.fcr31 = 0;
 			}
-			if (test_thread_flag(TIF_32BIT_FPREGS)) {
+			if (test_tsk_thread_flag(child, TIF_32BIT_FPREGS)) {
 				/*
 				 * The odd registers are actually the high
 				 * order bits of the values stored in the even
arch/mips/kvm/kvm_mips.c +1 -1
index 64f14f6bca52..4d264a77ff92 100644
@@ -38,7 +38,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = {
 	{ "cache", VCPU_STAT(cache_exits) },
 	{ "signal", VCPU_STAT(signal_exits) },
 	{ "interrupt", VCPU_STAT(int_exits) },
-	{ "cop_unsuable", VCPU_STAT(cop_unusable_exits) },
+	{ "cop_unusable", VCPU_STAT(cop_unusable_exits) },
 	{ "tlbmod", VCPU_STAT(tlbmod_exits) },
 	{ "tlbmiss_ld", VCPU_STAT(tlbmiss_ld_exits) },
 	{ "tlbmiss_st", VCPU_STAT(tlbmiss_st_exits) },
arch/mips/lib/memset.S +8 -3
index fd83406ceccc..3d3377ca2b22 100644
@@ -178,7 +178,7 @@
 1:	PTR_ADDIU	a0, 1			/* fill bytewise */
 	R10KCBARRIER(0(ra))
 	bne		t1, a0, 1b
-	sb		a1, -1(a0)
+	 EX(sb, a1, -1(a0), .Lsmall_fixup\@)
 
 2:	jr		ra			/* done */
 	move		a2, zero
@@ -204,13 +204,18 @@
 	PTR_L		t0, TI_TASK($28)
 	andi		a2, STORMASK
 	LONG_L		t0, THREAD_BUADDR(t0)
-	LONG_ADDU	a2, t1
+	LONG_ADDU	a2, a0
 	jr		ra
 	LONG_SUBU	a2, t0
 
 .Llast_fixup\@:
 	jr		ra
-	andi		v1, a2, STORMASK
+	 nop
+
+.Lsmall_fixup\@:
+	PTR_SUBU	a2, t1, a0
+	jr		ra
+	 PTR_ADDIU	a2, 1
 
 	.endm
 
arch/mn10300/include/asm/Kbuild +1 -0
index 654d5ba6e310..686af432e5f0 100644
@@ -7,3 +7,4 @@ generic-y += hash.h
 generic-y += mcs_spinlock.h
 generic-y += preempt.h
 generic-y += trace_clock.h
+generic-y += word-at-a-time.h
arch/parisc/kernel/drivers.c +4 -0
index dba508fe1683..4f7060ec6875 100644
@@ -648,6 +648,10 @@ static int match_pci_device(struct device *dev, int index,
 					(modpath->mod == PCI_FUNC(devfn)));
 	}
 
+	/* index might be out of bounds for bc[] */
+	if (index >= 6)
+		return 0;
+
 	id = PCI_SLOT(pdev->devfn) | (PCI_FUNC(pdev->devfn) << 5);
 	return (modpath->bc[index] == id);
 }
arch/parisc/kernel/hpmc.S +5 -1
index e158b6fbf1b4..e59bde1637c9 100644
@@ -79,6 +79,7 @@ END(hpmc_pim_data)
 	.text
 
 	.import intr_save, code
+	.align 16
 ENTRY(os_hpmc)
 .os_hpmc:
 
@@ -295,11 +296,14 @@ ENTRY(os_hpmc)
 
 	b .
 	nop
+	.align 16	/* make function length multiple of 16 bytes */
 ENDPROC(os_hpmc)
 .os_hpmc_end:
 	nop
 .data
+.globl os_hpmc_size
 .align 4
-	.export os_hpmc_size
+	.type   os_hpmc_size, @object
+	.size   os_hpmc_size, 4
 os_hpmc_size:
 	.word .os_hpmc_end-.os_hpmc
arch/powerpc/include/asm/barrier.h +2 -1
index bab79a110c7b..7c63ec5d4fa9 100644
@@ -39,7 +39,8 @@
 
 #ifdef CONFIG_SMP
 
-#ifdef __SUBARCH_HAS_LWSYNC
+/* The sub-arch has lwsync */
+#if defined(__powerpc64__) || defined(CONFIG_PPC_E500MC)
 #    define SMPWMB      LWSYNC
 #else
 #    define SMPWMB      eieio
arch/powerpc/include/asm/opal.h +3 -0
index 0da1dbd42e02..f7a13fb5c3a0 100644
@@ -707,6 +707,9 @@ typedef struct oppanel_line {
 	uint64_t 	line_len;
 } oppanel_line_t;
 
+/* Default time to sleep or delay between OPAL_BUSY/OPAL_BUSY_EVENT loops */
+#define OPAL_BUSY_DELAY_MS	10
+
 /* /sys/firmware/opal */
 extern struct kobject *opal_kobj;
 
arch/powerpc/include/asm/synch.h +0 -4
index c50868681f9e..e8d6a842f4bb 100644
@@ -5,10 +5,6 @@
 #include <linux/stringify.h>
 #include <asm/feature-fixups.h>
 
-#if defined(__powerpc64__) || defined(CONFIG_PPC_E500MC)
-#define __SUBARCH_HAS_LWSYNC
-#endif
-
 #ifndef __ASSEMBLY__
 extern unsigned int __start___lwsync_fixup, __stop___lwsync_fixup;
 extern void do_lwsync_fixups(unsigned long value, void *fixup_start,
arch/powerpc/kernel/cpu_setup_power.S +4 -0
index 46733535cc0b..4fadf576ec46 100644
@@ -27,6 +27,7 @@ _GLOBAL(__setup_cpu_power7)
 	beqlr
 	li	r0,0
 	mtspr	SPRN_LPID,r0
+	mtspr	SPRN_PCR,r0
 	mfspr	r3,SPRN_LPCR
 	bl	__init_LPCR
 	bl	__init_tlb_power7
@@ -40,6 +41,7 @@ _GLOBAL(__restore_cpu_power7)
 	beqlr
 	li	r0,0
 	mtspr	SPRN_LPID,r0
+	mtspr	SPRN_PCR,r0
 	mfspr	r3,SPRN_LPCR
 	bl	__init_LPCR
 	bl	__init_tlb_power7
@@ -55,6 +57,7 @@ _GLOBAL(__setup_cpu_power8)
 	beqlr
 	li	r0,0
 	mtspr	SPRN_LPID,r0
+	mtspr	SPRN_PCR,r0
 	mfspr	r3,SPRN_LPCR
 	ori	r3, r3, LPCR_PECEDH
 	bl	__init_LPCR
@@ -74,6 +77,7 @@ _GLOBAL(__restore_cpu_power8)
 	beqlr
 	li	r0,0
 	mtspr	SPRN_LPID,r0
+	mtspr	SPRN_PCR,r0
 	mfspr   r3,SPRN_LPCR
 	ori	r3, r3, LPCR_PECEDH
 	bl	__init_LPCR
arch/powerpc/kernel/eeh_driver.c +38 -23

156 lines not on this page · raw message

arch/powerpc/kernel/eeh_pe.c +2 -1
index b38e8f127f5d..56cf020cc3fc 100644
@@ -723,7 +723,8 @@ static void eeh_restore_bridge_bars(struct eeh_dev *edev,
 	eeh_ops->write_config(dn, 15*4, 4, edev->config_space[15]);
 
 	/* PCI Command: 0x4 */
-	eeh_ops->write_config(dn, PCI_COMMAND, 4, edev->config_space[1]);
+	eeh_ops->write_config(dn, PCI_COMMAND, 4, edev->config_space[1] |
+			      PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER);
 
 	/* Check the PCIe link is ready */
 	eeh_bridge_check_link(edev, dn);
arch/powerpc/lib/feature-fixups.c +1 -1
index 7a8a7487cee8..11cd36c622c1 100644
@@ -52,7 +52,7 @@ static int patch_alt_instruction(unsigned int *src, unsigned int *dest,
 		unsigned int *target = (unsigned int *)branch_target(src);
 
 		/* Branch within the section doesn't need translating */
-		if (target < alt_start || target >= alt_end) {
+		if (target < alt_start || target > alt_end) {
 			instr = translate_branch(dest, src);
 			if (!instr)
 				return 1;
arch/powerpc/mm/hugetlbpage.c +8 -9
index 7e70ae968e5f..e95f95996a5b 100644
@@ -175,9 +175,6 @@ static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp,
 #ifdef CONFIG_PPC_FSL_BOOK3E
 #define HUGEPD_PGD_SHIFT PGDIR_SHIFT
 #define HUGEPD_PUD_SHIFT PUD_SHIFT
-#else
-#define HUGEPD_PGD_SHIFT PUD_SHIFT
-#define HUGEPD_PUD_SHIFT PMD_SHIFT
 #endif
 
 #ifdef CONFIG_PPC_BOOK3S_64
@@ -871,15 +868,17 @@ static int __init hugetlbpage_init(void)
 
 		shift = mmu_psize_to_shift(psize);
 
-		if (add_huge_page_size(1ULL << shift) < 0)
+		if (shift > PGDIR_SHIFT)
 			continue;
-
-		if (shift < PMD_SHIFT)
-			pdshift = PMD_SHIFT;
-		else if (shift < PUD_SHIFT)
+		else if (shift > PUD_SHIFT)
+			pdshift = PGDIR_SHIFT;
+		else if (shift > PMD_SHIFT)
 			pdshift = PUD_SHIFT;
 		else
-			pdshift = PGDIR_SHIFT;
+			pdshift = PMD_SHIFT;
+
+		if (add_huge_page_size(1ULL << shift) < 0)
+			continue;
 		/*
 		 * if we have pdshift and shift value same, we don't
 		 * use pgt cache for hugepd.
arch/powerpc/platforms/powernv/opal-nvram.c +20 -1
index acd9f7e96678..b02efba0632a 100644
@@ -11,6 +11,7 @@
 
 #define DEBUG
 
+#include <linux/delay.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/of.h>
@@ -42,6 +43,10 @@ static ssize_t opal_nvram_read(char *buf, size_t count, loff_t *index)
 	return count;
 }
 
+/*
+ * This can be called in the panic path with interrupts off, so use
+ * mdelay in that case.
+ */
 static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index)
 {
 	s64 rc = OPAL_BUSY;
@@ -55,9 +60,23 @@ static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index)
 
 	while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) {
 		rc = opal_write_nvram(__pa(buf), count, off);
-		if (rc == OPAL_BUSY_EVENT)
+		if (rc == OPAL_BUSY_EVENT) {
+			if (in_interrupt() || irqs_disabled())
+				mdelay(OPAL_BUSY_DELAY_MS);
+			else
+				msleep(OPAL_BUSY_DELAY_MS);
 			opal_poll_events(NULL);
+		} else if (rc == OPAL_BUSY) {
+			if (in_interrupt() || irqs_disabled())
+				mdelay(OPAL_BUSY_DELAY_MS);
+			else
+				msleep(OPAL_BUSY_DELAY_MS);
+		}
 	}
+
+	if (rc)
+		return -EIO;
+
 	*index += count;
 	return count;
 }
arch/s390/hypfs/inode.c +1 -1
index e86bbf105bdb..c6570e1d6763 100644
@@ -326,7 +326,7 @@ static void hypfs_kill_super(struct super_block *sb)
 
 	if (sb->s_root)
 		hypfs_delete_tree(sb->s_root);
-	if (sb_info->update_file)
+	if (sb_info && sb_info->update_file)
 		hypfs_remove(sb_info->update_file);
 	kfree(sb->s_fs_info);
 	sb->s_fs_info = NULL;
arch/s390/include/asm/Kbuild +1 -0
index 57892a8a9055..f2befb3b16a5 100644
@@ -5,3 +5,4 @@ generic-y += hash.h
 generic-y += mcs_spinlock.h
 generic-y += preempt.h
 generic-y += trace_clock.h
+generic-y += word-at-a-time.h
arch/s390/kernel/ipl.c +1 -0
index 633ca7504536..1b7a9ef45a6d 100644
@@ -825,6 +825,7 @@ static ssize_t reipl_generic_loadparm_store(struct ipl_parameter_block *ipb,
 	/* copy and convert to ebcdic */
 	memcpy(ipb->ipl_info.ccw.load_parm, buf, lp_len);
 	ASCEBC(ipb->ipl_info.ccw.load_parm, LOADPARM_LEN);
+	ipb->hdr.flags |= DIAG308_FLAGS_LP_VALID;
 	return len;
 }
 
arch/s390/kernel/perf_cpum_sf.c +4 -0
index ea0c7b2ef030..d56489d26982 100644
@@ -744,6 +744,10 @@ static int __hw_perf_event_init(struct perf_event *event)
 	 */
 	rate = 0;
 	if (attr->freq) {
+		if (!attr->sample_freq) {
+			err = -EINVAL;
+			goto out;
+		}
 		rate = freq_to_sample_rate(&si, attr->sample_freq);
 		rate = hw_limit_rate(&si, rate);
 		attr->freq = 0;
arch/score/include/asm/Kbuild +1 -0
index 2f947aba4bd4..b3ef43fc6270 100644
@@ -10,3 +10,4 @@ generic-y += mcs_spinlock.h
 generic-y += preempt.h
 generic-y += trace_clock.h
 generic-y += xor.h
+generic-y += word-at-a-time.h
arch/tile/include/asm/Kbuild +1 -0
index 0aa5675e7025..53b907eadca0 100644
@@ -40,4 +40,5 @@ generic-y += termbits.h
 generic-y += termios.h
 generic-y += trace_clock.h
 generic-y += types.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
arch/um/include/asm/Kbuild +1 -0
index a5e4b6068213..3c5957b85072 100644
@@ -25,4 +25,5 @@ generic-y += sections.h
 generic-y += switch_to.h
 generic-y += topology.h
 generic-y += trace_clock.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
arch/um/os-Linux/signal.c +1 -1
index 7b605e4dfffa..2ac6a7e5a179 100644
@@ -135,7 +135,7 @@ static void (*handlers[_NSIG])(int sig, struct siginfo *si, mcontext_t *mc) = {
 
 static void hard_handler(int sig, siginfo_t *si, void *p)
 {
-	struct ucontext *uc = p;
+	ucontext_t *uc = p;
 	mcontext_t *mc = &uc->uc_mcontext;
 	unsigned long pending = 1UL << sig;
 
arch/unicore32/include/asm/Kbuild +1 -0
index 1e5fb872a4aa..f6d220b71a97 100644
@@ -62,4 +62,5 @@ generic-y += ucontext.h
 generic-y += unaligned.h
 generic-y += user.h
 generic-y += vga.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
arch/x86/boot/compressed/eboot.c +4 -2
index cec4d620843e..a1f905ca1c48 100644
@@ -358,7 +358,8 @@ __setup_efi_pci32(efi_pci_io_protocol_32 *pci, struct pci_setup_rom **__rom)
 	if (status != EFI_SUCCESS)
 		goto free_struct;
 
-	memcpy(rom->romdata, pci->romimage, pci->romsize);
+	memcpy(rom->romdata, (void *)(unsigned long)pci->romimage,
+	       pci->romsize);
 	return status;
 
 free_struct:
@@ -460,7 +461,8 @@ __setup_efi_pci64(efi_pci_io_protocol_64 *pci, struct pci_setup_rom **__rom)
 	if (status != EFI_SUCCESS)
 		goto free_struct;
 
-	memcpy(rom->romdata, pci->romimage, pci->romsize);
+	memcpy(rom->romdata, (void *)(unsigned long)pci->romimage,
+	       pci->romsize);
 	return status;
 
 free_struct:
arch/x86/crypto/cast5_avx_glue.c +1 -2
index 60ada677a928..0fe3365debef 100644
@@ -67,8 +67,6 @@ static int ecb_crypt(struct blkcipher_desc *desc, struct blkcipher_walk *walk,
 	void (*fn)(struct cast5_ctx *ctx, u8 *dst, const u8 *src);
 	int err;
 
-	fn = (enc) ? cast5_ecb_enc_16way : cast5_ecb_dec_16way;
-
 	err = blkcipher_walk_virt(desc, walk);
 	desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;
 
@@ -80,6 +78,7 @@ static int ecb_crypt(struct blkcipher_desc *desc, struct blkcipher_walk *walk,
 
 		/* Process multi-block batch */
 		if (nbytes >= bsize * CAST5_PARALLEL_BLOCKS) {
+			fn = (enc) ? cast5_ecb_enc_16way : cast5_ecb_dec_16way;
 			do {
 				fn(ctx, wdst, wsrc);
 
arch/x86/include/asm/apic.h +2 -2
index d24018ef197a..d98aa3bb133c 100644
@@ -288,7 +288,7 @@ struct apic {
 
 	int (*probe)(void);
 	int (*acpi_madt_oem_check)(char *oem_id, char *oem_table_id);
-	int (*apic_id_valid)(int apicid);
+	int (*apic_id_valid)(u32 apicid);
 	int (*apic_id_registered)(void);
 
 	u32 irq_delivery_mode;
@@ -547,7 +547,7 @@ static inline unsigned int read_apic_id(void)
 	return apic->get_apic_id(reg);
 }
 
-static inline int default_apic_id_valid(int apicid)
+static inline int default_apic_id_valid(u32 apicid)
 {
 	return (apicid < 255);
 }
arch/x86/include/asm/x2apic.h +1 -1
index f90f0a587c66..5ef84234422a 100644
@@ -9,7 +9,7 @@
 #include <asm/ipi.h>
 #include <linux/cpumask.h>
 
-static int x2apic_apic_id_valid(int apicid)
+static int x2apic_apic_id_valid(u32 apicid)
 {
 	return 1;
 }
arch/x86/kernel/acpi/boot.c +13 -5
index 239cd7913df6..fc4ebc0e3a8f 100644
@@ -215,7 +215,7 @@ static int __init
 acpi_parse_x2apic(struct acpi_subtable_header *header, const unsigned long end)
 {
 	struct acpi_madt_local_x2apic *processor = NULL;
-	int apic_id;
+	u32 apic_id;
 	u8 enabled;
 
 	processor = (struct acpi_madt_local_x2apic *)header;
@@ -227,6 +227,11 @@ acpi_parse_x2apic(struct acpi_subtable_header *header, const unsigned long end)
 
 	apic_id = processor->local_apic_id;
 	enabled = processor->lapic_flags & ACPI_MADT_ENABLED;
+
+	/* Ignore invalid ID */
+	if (apic_id == 0xffffffff)
+		return 0;
+
 #ifdef CONFIG_X86_X2APIC
 	/*
 	 * We need to register disabled CPU as well to permit
@@ -235,10 +240,13 @@ acpi_parse_x2apic(struct acpi_subtable_header *header, const unsigned long end)
 	 * to not preallocating memory for all NR_CPUS
 	 * when we use CPU hotplug.
 	 */
-	if (!apic->apic_id_valid(apic_id) && enabled)
-		printk(KERN_WARNING PREFIX "x2apic entry ignored\n");
-	else
-		acpi_register_lapic(apic_id, enabled);
+	if (!apic->apic_id_valid(apic_id)) {
+		if (enabled)
+			pr_warn(PREFIX "x2apic entry ignored\n");
+		return 0;
+	}
+
+	acpi_register_lapic(apic_id, enabled);
 #else
 	printk(KERN_WARNING PREFIX "x2apic entry ignored\n");
 #endif
arch/x86/kernel/apic/apic_numachip.c +1 -1
index a5b45df8bc88..3aa94cb856a8 100644
@@ -58,7 +58,7 @@ static unsigned int read_xapic_id(void)
 	return get_apic_id(apic_read(APIC_ID));
 }
 
-static int numachip_apic_id_valid(int apicid)
+static int numachip_apic_id_valid(u32 apicid)
 {
 	/* Trust what bootloader passes in MADT */
 	return 1;
arch/x86/kernel/apic/x2apic_uv_x.c +1 -1
index 4bf4b01696f3..d5dd71c4cfdc 100644
@@ -272,7 +272,7 @@ static void uv_send_IPI_all(int vector)
 	uv_send_IPI_mask(cpu_online_mask, vector);
 }
 
-static int uv_apic_id_valid(int apicid)
+static int uv_apic_id_valid(u32 apicid)
 {
 	return 1;
 }
arch/x86/kernel/cpu/perf_event.c +7 -1
index 33f549ccdcf1..8b969708cb5d 100644
@@ -25,6 +25,7 @@
 #include <linux/cpu.h>
 #include <linux/bitops.h>
 #include <linux/device.h>
+#include <linux/nospec.h>
 
 #include <asm/apic.h>
 #include <asm/stacktrace.h>
@@ -273,17 +274,20 @@ set_ext_hw_attr(struct hw_perf_event *hwc, struct perf_event *event)
 
 	config = attr->config;
 
-	cache_type = (config >>  0) & 0xff;
+	cache_type = (config >> 0) & 0xff;
 	if (cache_type >= PERF_COUNT_HW_CACHE_MAX)
 		return -EINVAL;
+	cache_type = array_index_nospec(cache_type, PERF_COUNT_HW_CACHE_MAX);
 
 	cache_op = (config >>  8) & 0xff;
 	if (cache_op >= PERF_COUNT_HW_CACHE_OP_MAX)
 		return -EINVAL;
+	cache_op = array_index_nospec(cache_op, PERF_COUNT_HW_CACHE_OP_MAX);
 
 	cache_result = (config >> 16) & 0xff;
 	if (cache_result >= PERF_COUNT_HW_CACHE_RESULT_MAX)
 		return -EINVAL;
+	cache_result = array_index_nospec(cache_result, PERF_COUNT_HW_CACHE_RESULT_MAX);
 
 	val = hw_cache_event_ids[cache_type][cache_op][cache_result];
 
@@ -319,6 +323,8 @@ int x86_setup_perfctr(struct perf_event *event)
 	if (attr->config >= x86_pmu.max_events)
 		return -EINVAL;
 
+	attr->config = array_index_nospec((unsigned long)attr->config, x86_pmu.max_events);
+
 	/*
 	 * The generic map:
 	 */
arch/x86/kernel/machine_kexec_32.c +5 -1
index 1667b1de8d5d..2eef0723b4ed 100644
@@ -70,12 +70,17 @@ static void load_segments(void)
 static void machine_kexec_free_page_tables(struct kimage *image)
 {
 	free_page((unsigned long)image->arch.pgd);
+	image->arch.pgd = NULL;
 #ifdef CONFIG_X86_PAE
 	free_page((unsigned long)image->arch.pmd0);
+	image->arch.pmd0 = NULL;
 	free_page((unsigned long)image->arch.pmd1);
+	image->arch.pmd1 = NULL;
 #endif
 	free_page((unsigned long)image->arch.pte0);
+	image->arch.pte0 = NULL;
 	free_page((unsigned long)image->arch.pte1);
+	image->arch.pte1 = NULL;
 }
 
 static int machine_kexec_alloc_page_tables(struct kimage *image)
@@ -92,7 +97,6 @@ static int machine_kexec_alloc_page_tables(struct kimage *image)
 	    !image->arch.pmd0 || !image->arch.pmd1 ||
 #endif
 	    !image->arch.pte0 || !image->arch.pte1) {
-		machine_kexec_free_page_tables(image);
 		return -ENOMEM;
 	}
 	return 0;
arch/x86/kernel/machine_kexec_64.c +3 -1
index 679cef0791cd..9d4f0beb7989 100644
@@ -25,8 +25,11 @@
 static void free_transition_pgtable(struct kimage *image)
 {
 	free_page((unsigned long)image->arch.pud);
+	image->arch.pud = NULL;
 	free_page((unsigned long)image->arch.pmd);
+	image->arch.pmd = NULL;
 	free_page((unsigned long)image->arch.pte);
+	image->arch.pte = NULL;
 }
 
 static int init_transition_pgtable(struct kimage *image, pgd_t *pgd)
@@ -67,7 +70,6 @@ static int init_transition_pgtable(struct kimage *image, pgd_t *pgd)
 	set_pte(pte, pfn_pte(paddr >> PAGE_SHIFT, PAGE_KERNEL_EXEC));
 	return 0;
 err:
-	free_transition_pgtable(image);
 	return result;
 }
 
arch/x86/kernel/smpboot.c +2 -0
index 93ffaccb2f48..f59310ac3261 100644
@@ -1397,6 +1397,8 @@ static inline void mwait_play_dead(void)
 	void *mwait_ptr;
 	int i;
 
+	if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD)
+		return;
 	if (!this_cpu_has(X86_FEATURE_MWAIT))
 		return;
 	if (!this_cpu_has(X86_FEATURE_CLFLUSH))
arch/x86/kernel/tsc.c +1 -1
index 541bb5fc9d7e..2938f198ee79 100644
@@ -398,7 +398,7 @@ static unsigned long calc_hpet_ref(u64 deltatsc, u64 hpet1, u64 hpet2)
 	hpet2 -= hpet1;
 	tmp = ((u64)hpet2 * hpet_readl(HPET_PERIOD));
 	do_div(tmp, 1000000);
-	do_div(deltatsc, tmp);
+	deltatsc = div64_u64(deltatsc, tmp);
 
 	return (unsigned long) deltatsc;
 }
arch/x86/kvm/x86.c +5 -2
index 6f38c8385aa9..47e5aff3bf04 100644
@@ -6640,7 +6640,7 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int idt_index,
 }
 EXPORT_SYMBOL_GPL(kvm_task_switch);
 
-int kvm_valid_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs)
+static int kvm_valid_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs)
 {
 	if ((sregs->efer & EFER_LME) && (sregs->cr0 & X86_CR0_PG)) {
 		/*
@@ -6668,6 +6668,7 @@ int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu,
 {
 	struct msr_data apic_base_msr;
 	int mmu_reset_needed = 0;
+	int cpuid_update_needed = 0;
 	int pending_vec, max_bits, idx;
 	struct desc_ptr dt;
 
@@ -6702,8 +6703,10 @@ int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu,
 	vcpu->arch.cr0 = sregs->cr0;
 
 	mmu_reset_needed |= kvm_read_cr4(vcpu) != sregs->cr4;
+	cpuid_update_needed |= ((kvm_read_cr4(vcpu) ^ sregs->cr4) &
+				X86_CR4_OSXSAVE);
 	kvm_x86_ops->set_cr4(vcpu, sregs->cr4);
-	if (sregs->cr4 & X86_CR4_OSXSAVE)
+	if (cpuid_update_needed)
 		kvm_update_cpuid(vcpu);
 
 	idx = srcu_read_lock(&vcpu->kvm->srcu);
arch/x86/mm/dump_pagetables.c +6 -4
index 167ffcac16ed..c67c7219e9ab 100644
@@ -16,6 +16,7 @@
 #include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/seq_file.h>
+#include <linux/highmem.h>
 
 #include <asm/pgtable.h>
 
@@ -263,15 +264,16 @@ static void walk_pte_level(struct seq_file *m, struct pg_state *st, pmd_t addr,
 							unsigned long P)
 {
 	int i;
-	pte_t *start;
+	pte_t *pte;
 
-	start = (pte_t *) pmd_page_vaddr(addr);
 	for (i = 0; i < PTRS_PER_PTE; i++) {
-		pgprot_t prot = pte_pgprot(*start);
+		pgprot_t prot;
 
 		st->current_address = normalize_addr(P + i * PTE_LEVEL_MULT);
+		pte = pte_offset_map(&addr, st->current_address);
+		prot = pte_pgprot(*pte);
 		note_page(m, st, prot, 4);
-		start++;
+		pte_unmap(pte);
 	}
 }
 
arch/x86/net/bpf_jit_comp.c +2 -1
index cde88080969b..1c1eefa34f8b 100644
@@ -914,6 +914,7 @@ void bpf_int_jit_compile(struct sk_filter *prog)
 	for (pass = 0; pass < 10 || image; pass++) {
 		proglen = do_jit(prog, addrs, image, oldproglen, &ctx);
 		if (proglen <= 0) {
+out_image:
 			image = NULL;
 			if (header)
 				module_free(NULL, header);
@@ -923,7 +924,7 @@ void bpf_int_jit_compile(struct sk_filter *prog)
 			if (proglen != oldproglen) {
 				pr_err("bpf_jit: proglen=%d != oldproglen=%d\n",
 				       proglen, oldproglen);
-				goto out;
+				goto out_image;
 			}
 			break;
 		}
arch/x86/um/stub_segv.c +1 -1
index 1518d2805ae8..fd6825537b97 100644
@@ -10,7 +10,7 @@
 void __attribute__ ((__section__ (".__syscall_stub")))
 stub_segv_handler(int sig, siginfo_t *info, void *p)
 {
-	struct ucontext *uc = p;
+	ucontext_t *uc = p;
 
 	GET_FAULTINFO_FROM_MC(*((struct faultinfo *) STUB_DATA),
 			      &uc->uc_mcontext);
arch/x86/xen/mmu.c +1 -5
index 85003e57b1a3..6ecb05699952 100644
@@ -1283,8 +1283,6 @@ void xen_flush_tlb_all(void)
 	struct mmuext_op *op;
 	struct multicall_space mcs;
 
-	trace_xen_mmu_flush_tlb_all(0);
-
 	preempt_disable();
 
 	mcs = xen_mc_entry(sizeof(*op));
@@ -1297,13 +1295,11 @@ void xen_flush_tlb_all(void)
 
 	preempt_enable();
 }
-static void xen_flush_tlb(void)
+static noinline void xen_flush_tlb(void)
 {
 	struct mmuext_op *op;
 	struct multicall_space mcs;
 
-	trace_xen_mmu_flush_tlb(0);
-
 	preempt_disable();
 
 	mcs = xen_mc_entry(sizeof(*op));
arch/xtensa/include/asm/Kbuild +1 -0
index c3d20ba6eb86..98d092cc2c17 100644
@@ -29,4 +29,5 @@ generic-y += statfs.h
 generic-y += termios.h
 generic-y += topology.h
 generic-y += trace_clock.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
crypto/af_alg.c +4 -4
index 9821a116047e..7f06df512f24 100644
@@ -157,16 +157,16 @@ static int alg_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
 	void *private;
 	int err;
 
-	/* If caller uses non-allowed flag, return error. */
-	if ((sa->salg_feat & ~allowed) || (sa->salg_mask & ~allowed))
-		return -EINVAL;
-
 	if (sock->state == SS_CONNECTED)
 		return -EINVAL;
 
 	if (addr_len != sizeof(*sa))
 		return -EINVAL;
 
+	/* If caller uses non-allowed flag, return error. */
+	if ((sa->salg_feat & ~allowed) || (sa->salg_mask & ~allowed))
+		return -EINVAL;
+
 	sa->salg_type[sizeof(sa->salg_type) - 1] = 0;
 	sa->salg_name[sizeof(sa->salg_name) - 1] = 0;
 
crypto/ahash.c +4 -3
index d5f9c1586c42..8ed4d42f9de5 100644
@@ -90,13 +90,14 @@ int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err)
 
 	if (nbytes && walk->offset & alignmask && !err) {
 		walk->offset = ALIGN(walk->offset, alignmask + 1);
-		walk->data += walk->offset;
-
 		nbytes = min(nbytes,
 			     ((unsigned int)(PAGE_SIZE)) - walk->offset);
 		walk->entrylen -= nbytes;
 
-		return nbytes;
+		if (nbytes) {
+			walk->data += walk->offset;
+			return nbytes;
+		}
 	}
 
 	if (walk->flags & CRYPTO_ALG_ASYNC)
drivers/ata/ahci.c +1 -0
index bc4ff68c9816..61017659621b 100644
@@ -316,6 +316,7 @@ static const struct pci_device_id ahci_pci_tbl[] = {
 	{ PCI_VDEVICE(INTEL, 0x9c07), board_ahci }, /* Lynx Point-LP RAID */
 	{ PCI_VDEVICE(INTEL, 0x9c0e), board_ahci }, /* Lynx Point-LP RAID */
 	{ PCI_VDEVICE(INTEL, 0x9c0f), board_ahci }, /* Lynx Point-LP RAID */
+	{ PCI_VDEVICE(INTEL, 0x9dd3), board_ahci }, /* Cannon Lake PCH-LP AHCI */
 	{ PCI_VDEVICE(INTEL, 0x1f22), board_ahci }, /* Avoton AHCI */
 	{ PCI_VDEVICE(INTEL, 0x1f23), board_ahci }, /* Avoton AHCI */
 	{ PCI_VDEVICE(INTEL, 0x1f24), board_ahci }, /* Avoton RAID */
drivers/ata/libata-core.c +8 -0
index d5fb981acec9..ebe2c296bd92 100644
@@ -4187,6 +4187,10 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
 	/* https://bugzilla.kernel.org/show_bug.cgi?id=15573 */
 	{ "C300-CTFDDAC128MAG",	"0001",		ATA_HORKAGE_NONCQ, },
 
+	/* Some Sandisk SSDs lock up hard with NCQ enabled.  Reported on
+	   SD7SN6S256G and SD8SN8U256G */
+	{ "SanDisk SD[78]SN*G",	NULL,		ATA_HORKAGE_NONCQ, },
+
 	/* devices which puke on READ_NATIVE_MAX */
 	{ "HDS724040KLSA80",	"KFAOA20N",	ATA_HORKAGE_BROKEN_HPA, },
 	{ "WDC WD3200JD-00KLB0", "WD-WCAMR1130137", ATA_HORKAGE_BROKEN_HPA },
@@ -4239,7 +4243,11 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
 	{ "Crucial_CT960M500*",		NULL,	ATA_HORKAGE_NO_NCQ_TRIM |
 						ATA_HORKAGE_NOLPM, },
 
+	/* Sandisk devices which are known to not handle LPM well */
+	{ "SanDisk SD7UB3Q*G1001",	NULL,	ATA_HORKAGE_NOLPM, },
+
 	/* devices that don't properly handle queued TRIM commands */
+	{ "Micron_M500IT_*",		"MU01",	ATA_HORKAGE_NO_NCQ_TRIM, },
 	{ "Micron_M500_*",		NULL,	ATA_HORKAGE_NO_NCQ_TRIM, },
 	{ "Crucial_CT*M500*",		NULL,	ATA_HORKAGE_NO_NCQ_TRIM, },
 	{ "Micron_M5[15]0_*",		"MU01",	ATA_HORKAGE_NO_NCQ_TRIM, },
drivers/atm/zatm.c +3 -0
index 969c3c29000c..377d52976ddd 100644
@@ -28,6 +28,7 @@
 #include <asm/io.h>
 #include <linux/atomic.h>
 #include <asm/uaccess.h>
+#include <linux/nospec.h>
 
 #include "uPD98401.h"
 #include "uPD98402.h"
@@ -1455,6 +1456,8 @@ static int zatm_ioctl(struct atm_dev *dev,unsigned int cmd,void __user *arg)
 					return -EFAULT;
 				if (pool < 0 || pool > ZATM_LAST_POOL)
 					return -EINVAL;
+				pool = array_index_nospec(pool,
+							  ZATM_LAST_POOL + 1);
 				spin_lock_irqsave(&zatm_dev->lock, flags);
 				info = zatm_dev->pool_info[pool];
 				if (cmd == ZATM_GETPOOLZ) {
drivers/base/regmap/regmap.c +20 -2
index 27487c289ee0..85ad29f2b718 100644
@@ -144,7 +144,7 @@ static bool regmap_volatile_range(struct regmap *map, unsigned int reg,
 	unsigned int i;
 
 	for (i = 0; i < num; i++)
-		if (!regmap_volatile(map, reg + i))
+		if (!regmap_volatile(map, reg + (i * map->reg_stride)))
 			return false;
 
 	return true;
@@ -2240,13 +2240,31 @@ int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
 		for (i = 0; i < val_count * val_bytes; i += val_bytes)
 			map->format.parse_inplace(val + i);
 	} else {
+		u32 *u32 = val;
+		u16 *u16 = val;
+		u8 *u8 = val;
+
 		for (i = 0; i < val_count; i++) {
 			unsigned int ival;
+
 			ret = regmap_read(map, reg + (i * map->reg_stride),
 					  &ival);
 			if (ret != 0)
 				return ret;
-			map->format.format_val(val + (i * val_bytes), ival, 0);
+
+			switch (map->format.val_bytes) {
+			case 4:
+				u32[i] = ival;
+				break;
+			case 2:
+				u16[i] = ival;
+				break;
+			case 1:
+				u8[i] = ival;
+				break;
+			default:
+				return -EINVAL;
+			}
 		}
 	}
 
drivers/char/virtio_console.c +71 -86

284 lines not on this page · raw message

drivers/gpu/drm/drm_fops.c +1 -0
index 394bdc6617c7..45e85609fd7e 100644
@@ -251,6 +251,7 @@ static int drm_open_helper(struct file *filp, struct drm_minor *minor)
 		return -ENOMEM;
 
 	filp->private_data = priv;
+	filp->f_mode |= FMODE_UNSIGNED_OFFSET;
 	priv->filp = filp;
 	priv->uid = current_euid();
 	priv->pid = get_pid(task_pid(current));
drivers/gpu/drm/i915/i915_cmd_parser.c +50 -30

113 lines not on this page · raw message

drivers/gpu/drm/i915/i915_drv.h +5 -0
index 1378dadc618e..7d9ceaa9ab01 100644
@@ -1828,10 +1828,15 @@ struct drm_i915_cmd_descriptor {
 	 * Describes where to find a register address in the command to check
 	 * against the ring's register whitelist. Only valid if flags has the
 	 * CMD_DESC_REGISTER bit set.
+	 *
+	 * A non-zero step value implies that the command may access multiple
+	 * registers in sequence (e.g. LRI), in that case step gives the
+	 * distance in dwords between individual offset fields.
 	 */
 	struct {
 		u32 offset;
 		u32 mask;
+		u32 step;
 	} reg;
 
 #define MAX_CMD_DESC_BITMASKS 3
drivers/gpu/drm/i915/i915_gem_userptr.c +3 -0
index 3ac65a3c7124..ff290fc691c8 100644
@@ -657,6 +657,9 @@ i915_gem_userptr_ioctl(struct drm_device *dev, void *data, struct drm_file *file
 			    I915_USERPTR_UNSYNCHRONIZED))
 		return -EINVAL;
 
+	if (!args->user_size)
+		return -EINVAL;
+
 	if (offset_in_page(args->user_ptr | args->user_size))
 		return -EINVAL;
 
drivers/gpu/drm/i915/intel_hdmi.c +11 -3
index 057366453d27..86377d339144 100644
@@ -971,6 +971,7 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
 	struct edid *edid;
 	enum intel_display_power_domain power_domain;
 	enum drm_connector_status status = connector_status_disconnected;
+	struct i2c_adapter *i2c;
 
 	DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n",
 		      connector->base.id, connector->name);
@@ -981,9 +982,16 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
 	intel_hdmi->has_hdmi_sink = false;
 	intel_hdmi->has_audio = false;
 	intel_hdmi->rgb_quant_range_selectable = false;
-	edid = drm_get_edid(connector,
-			    intel_gmbus_get_adapter(dev_priv,
-						    intel_hdmi->ddc_bus));
+	i2c = intel_gmbus_get_adapter(dev_priv, intel_hdmi->ddc_bus);
+
+	edid = drm_get_edid(connector, i2c);
+
+	if (!edid && !intel_gmbus_is_forced_bit(i2c)) {
+		DRM_DEBUG_KMS("HDMI GMBUS EDID read failed, retry using GPIO bit-banging\n");
+		intel_gmbus_force_bit(i2c, true);
+		edid = drm_get_edid(connector, i2c);
+		intel_gmbus_force_bit(i2c, false);
+	}
 
 	if (edid) {
 		if (edid->input & DRM_EDID_INPUT_DIGITAL) {
drivers/gpu/drm/i915/intel_lvds.c +10 -1
index 2ec2d77e3393..1ec6b87c01bf 100644
@@ -219,7 +219,8 @@ static void intel_enable_lvds(struct intel_encoder *encoder)
 
 	I915_WRITE(ctl_reg, I915_READ(ctl_reg) | POWER_TARGET_ON);
 	POSTING_READ(lvds_encoder->reg);
-	if (wait_for((I915_READ(stat_reg) & PP_ON) != 0, 1000))
+
+	if (wait_for((I915_READ(stat_reg) & PP_ON) != 0, 5000))
 		DRM_ERROR("timed out waiting for panel to power on\n");
 
 	intel_panel_enable_backlight(intel_connector);
@@ -738,6 +739,14 @@ static const struct dmi_system_id intel_no_lvds[] = {
 			DMI_EXACT_MATCH(DMI_BOARD_NAME, "D525MW"),
 		},
 	},
+	{
+		.callback = intel_no_lvds_dmi_callback,
+		.ident = "Radiant P845",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Radiant Systems Inc"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "P845"),
+		},
+	},
 
 	{ }	/* terminating entry */
 };
drivers/gpu/drm/msm/msm_gem.c +19 -11
index f611b079a360..ef6dd28504ce 100644
@@ -83,14 +83,17 @@ static struct page **get_pages(struct drm_gem_object *obj)
 			return p;
 		}
 
+		msm_obj->pages = p;
+
 		msm_obj->sgt = drm_prime_pages_to_sg(p, npages);
 		if (IS_ERR(msm_obj->sgt)) {
+			void *ptr = ERR_CAST(msm_obj->sgt);
+
 			dev_err(dev->dev, "failed to allocate sgt\n");
-			return ERR_CAST(msm_obj->sgt);
+			msm_obj->sgt = NULL;
+			return ptr;
 		}
 
-		msm_obj->pages = p;
-
 		/* For non-cached buffers, ensure the new pages are clean
 		 * because display controller, GPU, etc. are not coherent:
 		 */
@@ -107,14 +110,19 @@ static void put_pages(struct drm_gem_object *obj)
 	struct msm_gem_object *msm_obj = to_msm_bo(obj);
 
 	if (msm_obj->pages) {
-		/* For non-cached buffers, ensure the new pages are clean
-		 * because display controller, GPU, etc. are not coherent:
-		 */
-		if (msm_obj->flags & (MSM_BO_WC|MSM_BO_UNCACHED))
-			dma_unmap_sg(obj->dev->dev, msm_obj->sgt->sgl,
-					msm_obj->sgt->nents, DMA_BIDIRECTIONAL);
-		sg_free_table(msm_obj->sgt);
-		kfree(msm_obj->sgt);
+		if (msm_obj->sgt) {
+			/* For non-cached buffers, ensure the new
+			 * pages are clean because display controller,
+			 * GPU, etc. are not coherent:
+			 */
+			if (msm_obj->flags & (MSM_BO_WC|MSM_BO_UNCACHED))
+				dma_unmap_sg(obj->dev->dev, msm_obj->sgt->sgl,
+					     msm_obj->sgt->nents,
+					     DMA_BIDIRECTIONAL);
+
+			sg_free_table(msm_obj->sgt);
+			kfree(msm_obj->sgt);
+		}
 
 		if (iommu_present(&platform_bus_type))
 			drm_gem_put_pages(obj, msm_obj->pages, true, false);
drivers/gpu/drm/radeon/radeon_device.c +4 -11
index edff18760031..ed631fc6d0c7 100644
@@ -105,7 +105,6 @@ static const char radeon_family_name[][16] = {
 };
 
 #define RADEON_PX_QUIRK_DISABLE_PX  (1 << 0)
-#define RADEON_PX_QUIRK_LONG_WAKEUP (1 << 1)
 
 struct radeon_px_quirk {
 	u32 chip_vendor;
@@ -132,8 +131,10 @@ static struct radeon_px_quirk radeon_px_quirk_list[] = {
 	 * https://bugs.freedesktop.org/show_bug.cgi?id=101491
 	 */
 	{ PCI_VENDOR_ID_ATI, 0x6741, 0x1043, 0x2122, RADEON_PX_QUIRK_DISABLE_PX },
-	/* macbook pro 8.2 */
-	{ PCI_VENDOR_ID_ATI, 0x6741, PCI_VENDOR_ID_APPLE, 0x00e2, RADEON_PX_QUIRK_LONG_WAKEUP },
+	/* Asus K73TK laptop with AMD A6-3420M APU and Radeon 7670m GPU
+	 * https://bugzilla.kernel.org/show_bug.cgi?id=51381#c52
+	 */
+	{ PCI_VENDOR_ID_ATI, 0x6840, 0x1043, 0x2123, RADEON_PX_QUIRK_DISABLE_PX },
 	{ 0, 0, 0, 0, 0 },
 };
 
@@ -1180,25 +1181,17 @@ static void radeon_check_arguments(struct radeon_device *rdev)
 static void radeon_switcheroo_set_state(struct pci_dev *pdev, enum vga_switcheroo_state state)
 {
 	struct drm_device *dev = pci_get_drvdata(pdev);
-	struct radeon_device *rdev = dev->dev_private;
 
 	if (radeon_is_px(dev) && state == VGA_SWITCHEROO_OFF)
 		return;
 
 	if (state == VGA_SWITCHEROO_ON) {
-		unsigned d3_delay = dev->pdev->d3_delay;
-
 		printk(KERN_INFO "radeon: switched on\n");
 		/* don't suspend or resume card normally */
 		dev->switch_power_state = DRM_SWITCH_POWER_CHANGING;
 
-		if (d3_delay < 20 && (rdev->px_quirk_flags & RADEON_PX_QUIRK_LONG_WAKEUP))
-			dev->pdev->d3_delay = 20;
-
 		radeon_resume_kms(dev, true, true);
 
-		dev->pdev->d3_delay = d3_delay;
-
 		dev->switch_power_state = DRM_SWITCH_POWER_ON;
 		drm_kms_helper_poll_enable(dev);
 	} else {
drivers/gpu/drm/radeon/si_dpm.c +2 -2
index b5ef48fdef14..80f659d109f9 100644
@@ -5828,9 +5828,9 @@ static void si_set_pcie_lane_width_in_smc(struct radeon_device *rdev,
 {
 	u32 lane_width;
 	u32 new_lane_width =
-		(radeon_new_state->caps & ATOM_PPLIB_PCIE_LINK_WIDTH_MASK) >> ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT;
+		((radeon_new_state->caps & ATOM_PPLIB_PCIE_LINK_WIDTH_MASK) >> ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT) + 1;
 	u32 current_lane_width =
-		(radeon_current_state->caps & ATOM_PPLIB_PCIE_LINK_WIDTH_MASK) >> ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT;
+		((radeon_current_state->caps & ATOM_PPLIB_PCIE_LINK_WIDTH_MASK) >> ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT) + 1;
 
 	if (new_lane_width != current_lane_width) {
 		radeon_set_pcie_lanes(rdev, new_lane_width);
drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c +6 -4
index df30a075d793..4bc3c467642e 100644
@@ -87,10 +87,8 @@ static int rcar_du_lvdsenc_start(struct rcar_du_lvdsenc *lvds,
 
 	rcar_lvds_write(lvds, LVDCHCR, lvdhcr);
 
-	/* Select the input, hardcode mode 0, enable LVDS operation and turn
-	 * bias circuitry on.
-	 */
-	lvdcr0 = LVDCR0_BEN | LVDCR0_LVEN;
+	/* Select the input and set the LVDS mode. */
+	lvdcr0 = 0;
 	if (rcrtc->index == 2)
 		lvdcr0 |= LVDCR0_DUSEL;
 	rcar_lvds_write(lvds, LVDCR0, lvdcr0);
@@ -99,6 +97,10 @@ static int rcar_du_lvdsenc_start(struct rcar_du_lvdsenc *lvds,
 	rcar_lvds_write(lvds, LVDCR1, LVDCR1_CHSTBY(3) | LVDCR1_CHSTBY(2) |
 			LVDCR1_CHSTBY(1) | LVDCR1_CHSTBY(0) | LVDCR1_CLKSTBY);
 
+	/* Enable LVDS operation and turn bias circuitry on. */
+	lvdcr0 |= LVDCR0_BEN | LVDCR0_LVEN;
+	rcar_lvds_write(lvds, LVDCR0, lvdcr0);
+
 	/* Turn the PLL on, wait for the startup delay, and turn the output
 	 * on.
 	 */
drivers/hid/hid-core.c +6 -6
index 631622fecaa8..30544beb1a12 100644
@@ -1284,7 +1284,7 @@ void hid_output_report(struct hid_report *report, __u8 *data)
 }
 EXPORT_SYMBOL_GPL(hid_output_report);
 
-static int hid_report_len(struct hid_report *report)
+static u32 hid_report_len(struct hid_report *report)
 {
 	/* equivalent to DIV_ROUND_UP(report->size, 8) + !!(report->id > 0) */
 	return ((report->size - 1) >> 3) + 1 + (report->id > 0);
@@ -1300,7 +1300,7 @@ u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags)
 	 * of implement() working on 8 byte chunks
 	 */
 
-	int len = hid_report_len(report) + 7;
+	u32 len = hid_report_len(report) + 7;
 
 	return kmalloc(len, flags);
 }
@@ -1365,7 +1365,7 @@ void __hid_request(struct hid_device *hid, struct hid_report *report,
 {
 	char *buf;
 	int ret;
-	int len;
+	u32 len;
 
 	buf = hid_alloc_report_buf(report, GFP_KERNEL);
 	if (!buf)
@@ -1391,14 +1391,14 @@ void __hid_request(struct hid_device *hid, struct hid_report *report,
 }
 EXPORT_SYMBOL_GPL(__hid_request);
 
-int hid_report_raw_event(struct hid_device *hid, int type, u8 *data, int size,
+int hid_report_raw_event(struct hid_device *hid, int type, u8 *data, u32 size,
 		int interrupt)
 {
 	struct hid_report_enum *report_enum = hid->report_enum + type;
 	struct hid_report *report;
 	struct hid_driver *hdrv;
 	unsigned int a;
-	int rsize, csize = size;
+	u32 rsize, csize = size;
 	u8 *cdata = data;
 	int ret = 0;
 
@@ -1456,7 +1456,7 @@ EXPORT_SYMBOL_GPL(hid_report_raw_event);
  *
  * This is data entry for lower layers.
  */
-int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int interrupt)
+int hid_input_report(struct hid_device *hid, int type, u8 *data, u32 size, int interrupt)
 {
 	struct hid_report_enum *report_enum;
 	struct hid_driver *hdrv;
drivers/hid/hidraw.c +5 -0
index 9c2d7c23f296..c0c4df198725 100644
@@ -197,6 +197,11 @@ static ssize_t hidraw_get_report(struct file *file, char __user *buffer, size_t
 	int ret = 0, len;
 	unsigned char report_number;
 
+	if (!hidraw_table[minor] || !hidraw_table[minor]->exist) {
+		ret = -ENODEV;
+		goto out;
+	}
+
 	dev = hidraw_table[minor]->hid;
 
 	if (!dev->ll_driver->raw_request) {
drivers/hid/i2c-hid/i2c-hid.c +7 -6
index 149d1da033c0..b6fc3bd5174e 100644
@@ -136,10 +136,10 @@ struct i2c_hid {
 						   * register of the HID
 						   * descriptor. */
 	unsigned int		bufsize;	/* i2c buffer size */
-	char			*inbuf;		/* Input buffer */
-	char			*rawbuf;	/* Raw Input buffer */
-	char			*cmdbuf;	/* Command buffer */
-	char			*argsbuf;	/* Command arguments buffer */
+	u8			*inbuf;		/* Input buffer */
+	u8			*rawbuf;	/* Raw Input buffer */
+	u8			*cmdbuf;	/* Command buffer */
+	u8			*argsbuf;	/* Command arguments buffer */
 
 	unsigned long		flags;		/* device flags */
 
@@ -373,7 +373,8 @@ static int i2c_hid_hwreset(struct i2c_client *client)
 
 static void i2c_hid_get_input(struct i2c_hid *ihid)
 {
-	int ret, ret_size;
+	int ret;
+	u32 ret_size;
 	int size = le16_to_cpu(ihid->hdesc.wMaxInputLength);
 
 	if (size > ihid->bufsize)
@@ -398,7 +399,7 @@ static void i2c_hid_get_input(struct i2c_hid *ihid)
 		return;
 	}
 
-	if (ret_size > size) {
+	if ((ret_size > size) || (ret_size < 2)) {
 		dev_err(&ihid->client->dev, "%s: incomplete report (%d/%d)\n",
 			__func__, size, ret_size);
 		return;
drivers/hwmon/nct6683.c +2 -2
index 7710f4694ba1..0dc1f1be24f8 100644
@@ -1335,8 +1335,8 @@ static int __init nct6683_find(int sioaddr, struct nct6683_sio_data *sio_data)
 	/* Activate logical device if needed */
 	val = superio_inb(sioaddr, SIO_REG_ENABLE);
 	if (!(val & 0x01)) {
-		pr_err("EC is disabled\n");
-		goto fail;
+		pr_warn("Forcibly enabling EC access. Data may be unusable.\n");
+		superio_outb(sioaddr, SIO_REG_ENABLE, val | 0x01);
 	}
 
 	superio_exit(sioaddr);
drivers/hwmon/nct6775.c +5 -5
index 5ce32bbc41eb..a720a75fd5a6 100644
@@ -1287,7 +1287,7 @@ static void nct6775_update_pwm(struct device *dev)
 		duty_is_dc = data->REG_PWM_MODE[i] &&
 		  (nct6775_read_value(data, data->REG_PWM_MODE[i])
 		   & data->PWM_MODE_MASK[i]);
-		data->pwm_mode[i] = duty_is_dc;
+		data->pwm_mode[i] = !duty_is_dc;
 
 		fanmodecfg = nct6775_read_value(data, data->REG_FAN_MODE[i]);
 		for (j = 0; j < ARRAY_SIZE(data->REG_PWM); j++) {
@@ -2146,7 +2146,7 @@ show_pwm_mode(struct device *dev, struct device_attribute *attr, char *buf)
 	struct nct6775_data *data = nct6775_update_device(dev);
 	struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr);
 
-	return sprintf(buf, "%d\n", !data->pwm_mode[sattr->index]);
+	return sprintf(buf, "%d\n", data->pwm_mode[sattr->index]);
 }
 
 static ssize_t
@@ -2167,9 +2167,9 @@ store_pwm_mode(struct device *dev, struct device_attribute *attr,
 	if (val > 1)
 		return -EINVAL;
 
-	/* Setting DC mode is not supported for all chips/channels */
+	/* Setting DC mode (0) is not supported for all chips/channels */
 	if (data->REG_PWM_MODE[nr] == 0) {
-		if (val)
+		if (!val)
 			return -EINVAL;
 		return count;
 	}
@@ -2178,7 +2178,7 @@ store_pwm_mode(struct device *dev, struct device_attribute *attr,
 	data->pwm_mode[nr] = val;
 	reg = nct6775_read_value(data, data->REG_PWM_MODE[nr]);
 	reg &= ~data->PWM_MODE_MASK[nr];
-	if (val)
+	if (!val)
 		reg |= data->PWM_MODE_MASK[nr];
 	nct6775_write_value(data, data->REG_PWM_MODE[nr], reg);
 	mutex_unlock(&data->update_lock);
drivers/hwmon/pmbus/adm1275.c +2 -2
index 60aad9570f01..4876129c8337 100644
@@ -67,7 +67,7 @@ static int adm1275_read_word_data(struct i2c_client *client, int page, int reg)
 	const struct adm1275_data *data = to_adm1275_data(info);
 	int ret = 0;
 
-	if (page)
+	if (page > 0)
 		return -ENXIO;
 
 	switch (reg) {
@@ -144,7 +144,7 @@ static int adm1275_write_word_data(struct i2c_client *client, int page, int reg,
 {
 	int ret;
 
-	if (page)
+	if (page > 0)
 		return -ENXIO;
 
 	switch (reg) {
drivers/hwmon/pmbus/max8688.c +1 -1
index f04454a42fdd..893df4dffae4 100644
@@ -44,7 +44,7 @@ static int max8688_read_word_data(struct i2c_client *client, int page, int reg)
 {
 	int ret;
 
-	if (page)
+	if (page > 0)
 		return -ENXIO;
 
 	switch (reg) {
drivers/i2c/busses/i2c-pmcmsp.c +2 -2
index 8564768fee32..27d87a02bbd4 100644
@@ -596,10 +596,10 @@ static int pmcmsptwi_master_xfer(struct i2c_adapter *adap,
 		 * TODO: We could potentially loop and retry in the case
 		 * of MSP_TWI_XFER_TIMEOUT.
 		 */
-		return -1;
+		return -EIO;
 	}
 
-	return 0;
+	return num;
 }
 
 static u32 pmcmsptwi_i2c_func(struct i2c_adapter *adapter)
drivers/i2c/busses/i2c-viperboard.c +1 -1
index 7533fa34d737..d5f600c75aaf 100644
@@ -341,7 +341,7 @@ static int vprbrd_i2c_xfer(struct i2c_adapter *i2c, struct i2c_msg *msgs,
 		}
 		mutex_unlock(&vb->lock);
 	}
-	return 0;
+	return num;
 error:
 	mutex_unlock(&vb->lock);
 	return error;
drivers/iio/kfifo_buf.c +9 -2
index 7134e8ada09a..2d6cece4893f 100644
@@ -19,11 +19,18 @@ struct iio_kfifo {
 #define iio_to_kfifo(r) container_of(r, struct iio_kfifo, buffer)
 
 static inline int __iio_allocate_kfifo(struct iio_kfifo *buf,
-				int bytes_per_datum, int length)
+			size_t bytes_per_datum, unsigned int length)
 {
 	if ((length == 0) || (bytes_per_datum == 0))
 		return -EINVAL;
 
+	/*
+	 * Make sure we don't overflow an unsigned int after kfifo rounds up to
+	 * the next power of 2.
+	 */
+	if (roundup_pow_of_two(length) > UINT_MAX / bytes_per_datum)
+		return -EINVAL;
+
 	return __kfifo_alloc((struct __kfifo *)&buf->kf, length,
 			     bytes_per_datum, GFP_KERNEL);
 }
@@ -87,7 +94,7 @@ static int iio_set_bytes_per_datum_kfifo(struct iio_buffer *r, size_t bpd)
 	return 0;
 }
 
-static int iio_set_length_kfifo(struct iio_buffer *r, int length)
+static int iio_set_length_kfifo(struct iio_buffer *r, unsigned int length)
 {
 	/* Avoid an invalid state */
 	if (length < 2)
drivers/infiniband/core/addr.c +16 -0
index 8172d37f9add..6ee9bac5ab17 100644
@@ -86,6 +86,22 @@ int rdma_addr_size(struct sockaddr *addr)
 }
 EXPORT_SYMBOL(rdma_addr_size);
 
+int rdma_addr_size_in6(struct sockaddr_in6 *addr)
+{
+	int ret = rdma_addr_size((struct sockaddr *) addr);
+
+	return ret <= sizeof(*addr) ? ret : 0;
+}
+EXPORT_SYMBOL(rdma_addr_size_in6);
+
+int rdma_addr_size_kss(struct __kernel_sockaddr_storage *addr)
+{
+	int ret = rdma_addr_size((struct sockaddr *) addr);
+
+	return ret <= sizeof(*addr) ? ret : 0;
+}
+EXPORT_SYMBOL(rdma_addr_size_kss);
+
 static struct rdma_addr_client self;
 
 void rdma_addr_register_client(struct rdma_addr_client *client)
drivers/infiniband/core/iwpm_util.c +4 -1
index 140209c52571..b626447d761d 100644
@@ -96,7 +96,7 @@ int iwpm_create_mapinfo(struct sockaddr_storage *local_sockaddr,
 			struct sockaddr_storage *mapped_sockaddr,
 			u8 nl_client)
 {
-	struct hlist_head *hash_bucket_head;
+	struct hlist_head *hash_bucket_head = NULL;
 	struct iwpm_mapping_info *map_info;
 	unsigned long flags;
 
@@ -121,6 +121,9 @@ int iwpm_create_mapinfo(struct sockaddr_storage *local_sockaddr,
 		hlist_add_head(&map_info->hlist_node, hash_bucket_head);
 	}
 	spin_unlock_irqrestore(&iwpm_mapinfo_lock, flags);
+
+	if (!hash_bucket_head)
+		kfree(map_info);
 	return 0;
 }
 EXPORT_SYMBOL(iwpm_create_mapinfo);
drivers/infiniband/core/ucma.c +23 -20

131 lines not on this page · raw message

drivers/infiniband/hw/cxgb4/cq.c +10 -1
index c46dce3d5154..2961e6080450 100644
@@ -331,7 +331,7 @@ static void advance_oldest_read(struct t4_wq *wq)
  * Deal with out-of-order and/or completions that complete
  * prior unsignalled WRs.
  */
-void c4iw_flush_hw_cq(struct c4iw_cq *chp)
+void c4iw_flush_hw_cq(struct c4iw_cq *chp, struct c4iw_qp *flush_qhp)
 {
 	struct t4_cqe *hw_cqe, *swcqe, read_cqe;
 	struct c4iw_qp *qhp;
@@ -355,6 +355,13 @@ void c4iw_flush_hw_cq(struct c4iw_cq *chp)
 		if (qhp == NULL)
 			goto next_cqe;
 
+		if (flush_qhp != qhp) {
+			spin_lock(&qhp->lock);
+
+			if (qhp->wq.flushed == 1)
+				goto next_cqe;
+		}
+
 		if (CQE_OPCODE(hw_cqe) == FW_RI_TERMINATE)
 			goto next_cqe;
 
@@ -406,6 +413,8 @@ void c4iw_flush_hw_cq(struct c4iw_cq *chp)
 next_cqe:
 		t4_hwcq_consume(&chp->cq);
 		ret = t4_next_hw_cqe(&chp->cq, &hw_cqe);
+		if (qhp && flush_qhp != qhp)
+			spin_unlock(&qhp->lock);
 	}
 }
 
drivers/infiniband/hw/cxgb4/device.c +8 -0
index ea8ce383e57d..5e42f584df59 100644
@@ -698,6 +698,12 @@ static int c4iw_rdev_open(struct c4iw_rdev *rdev)
 		goto err4;
 	}
 	rdev->status_page->db_off = 0;
+
+	init_completion(&rdev->rqt_compl);
+	init_completion(&rdev->pbl_compl);
+	kref_init(&rdev->rqt_kref);
+	kref_init(&rdev->pbl_kref);
+
 	return 0;
 err4:
 	c4iw_rqtpool_destroy(rdev);
@@ -714,6 +720,8 @@ static void c4iw_rdev_close(struct c4iw_rdev *rdev)
 	free_page((unsigned long)rdev->status_page);
 	c4iw_pblpool_destroy(rdev);
 	c4iw_rqtpool_destroy(rdev);
+	wait_for_completion(&rdev->pbl_compl);
+	wait_for_completion(&rdev->rqt_compl);
 	c4iw_destroy_resource(&rdev->resource);
 }
 
drivers/infiniband/hw/cxgb4/iw_cxgb4.h +5 -1
index 361fff7a0742..47bc55f1d6fb 100644
@@ -157,6 +157,10 @@ struct c4iw_rdev {
 	void __iomem *oc_mw_kva;
 	struct c4iw_stats stats;
 	struct t4_dev_status_page *status_page;
+	struct completion rqt_compl;
+	struct completion pbl_compl;
+	struct kref rqt_kref;
+	struct kref pbl_kref;
 };
 
 static inline int c4iw_fatal_error(struct c4iw_rdev *rdev)
@@ -973,7 +977,7 @@ void c4iw_pblpool_free(struct c4iw_rdev *rdev, u32 addr, int size);
 u32 c4iw_ocqp_pool_alloc(struct c4iw_rdev *rdev, int size);
 void c4iw_ocqp_pool_free(struct c4iw_rdev *rdev, u32 addr, int size);
 int c4iw_ofld_send(struct c4iw_rdev *rdev, struct sk_buff *skb);
-void c4iw_flush_hw_cq(struct c4iw_cq *chp);
+void c4iw_flush_hw_cq(struct c4iw_cq *chp, struct c4iw_qp *flush_qhp);
 void c4iw_count_rcqes(struct t4_cq *cq, struct t4_wq *wq, int *count);
 int c4iw_ep_disconnect(struct c4iw_ep *ep, int abrupt, gfp_t gfp);
 int c4iw_flush_rq(struct t4_wq *wq, struct t4_cq *cq, int count);
drivers/infiniband/hw/cxgb4/qp.c +2 -2
index 086f62f5dc9e..a8d4ffc0bea8 100644
@@ -1082,7 +1082,7 @@ static void __flush_qp(struct c4iw_qp *qhp, struct c4iw_cq *rchp,
 	}
 	qhp->wq.flushed = 1;
 
-	c4iw_flush_hw_cq(rchp);
+	c4iw_flush_hw_cq(rchp, qhp);
 	c4iw_count_rcqes(&rchp->cq, &qhp->wq, &count);
 	flushed = c4iw_flush_rq(&qhp->wq, &rchp->cq, count);
 	spin_unlock(&qhp->lock);
@@ -1097,7 +1097,7 @@ static void __flush_qp(struct c4iw_qp *qhp, struct c4iw_cq *rchp,
 	spin_lock_irqsave(&schp->lock, flag);
 	spin_lock(&qhp->lock);
 	if (schp != rchp)
-		c4iw_flush_hw_cq(schp);
+		c4iw_flush_hw_cq(schp, qhp);
 	flushed = c4iw_flush_sq(qhp);
 	spin_unlock(&qhp->lock);
 	spin_unlock_irqrestore(&schp->lock, flag);
drivers/infiniband/hw/cxgb4/resource.c +24 -2
index 67df71a7012e..803c677e21cd 100644
@@ -260,12 +260,22 @@ u32 c4iw_pblpool_alloc(struct c4iw_rdev *rdev, int size)
 		rdev->stats.pbl.cur += roundup(size, 1 << MIN_PBL_SHIFT);
 		if (rdev->stats.pbl.cur > rdev->stats.pbl.max)
 			rdev->stats.pbl.max = rdev->stats.pbl.cur;
+		kref_get(&rdev->pbl_kref);
 	} else
 		rdev->stats.pbl.fail++;
 	mutex_unlock(&rdev->stats.lock);
 	return (u32)addr;
 }
 
+static void destroy_pblpool(struct kref *kref)
+{
+	struct c4iw_rdev *rdev;
+
+	rdev = container_of(kref, struct c4iw_rdev, pbl_kref);
+	gen_pool_destroy(rdev->pbl_pool);
+	complete(&rdev->pbl_compl);
+}
+
 void c4iw_pblpool_free(struct c4iw_rdev *rdev, u32 addr, int size)
 {
 	PDBG("%s addr 0x%x size %d\n", __func__, addr, size);
@@ -273,6 +283,7 @@ void c4iw_pblpool_free(struct c4iw_rdev *rdev, u32 addr, int size)
 	rdev->stats.pbl.cur -= roundup(size, 1 << MIN_PBL_SHIFT);
 	mutex_unlock(&rdev->stats.lock);
 	gen_pool_free(rdev->pbl_pool, (unsigned long)addr, size);
+	kref_put(&rdev->pbl_kref, destroy_pblpool);
 }
 
 int c4iw_pblpool_create(struct c4iw_rdev *rdev)
@@ -312,7 +323,7 @@ int c4iw_pblpool_create(struct c4iw_rdev *rdev)
 
 void c4iw_pblpool_destroy(struct c4iw_rdev *rdev)
 {
-	gen_pool_destroy(rdev->pbl_pool);
+	kref_put(&rdev->pbl_kref, destroy_pblpool);
 }
 
 /*
@@ -333,12 +344,22 @@ u32 c4iw_rqtpool_alloc(struct c4iw_rdev *rdev, int size)
 		rdev->stats.rqt.cur += roundup(size << 6, 1 << MIN_RQT_SHIFT);
 		if (rdev->stats.rqt.cur > rdev->stats.rqt.max)
 			rdev->stats.rqt.max = rdev->stats.rqt.cur;
+		kref_get(&rdev->rqt_kref);
 	} else
 		rdev->stats.rqt.fail++;
 	mutex_unlock(&rdev->stats.lock);
 	return (u32)addr;
 }
 
+static void destroy_rqtpool(struct kref *kref)
+{
+	struct c4iw_rdev *rdev;
+
+	rdev = container_of(kref, struct c4iw_rdev, rqt_kref);
+	gen_pool_destroy(rdev->rqt_pool);
+	complete(&rdev->rqt_compl);
+}
+
 void c4iw_rqtpool_free(struct c4iw_rdev *rdev, u32 addr, int size)
 {
 	PDBG("%s addr 0x%x size %d\n", __func__, addr, size << 6);
@@ -346,6 +367,7 @@ void c4iw_rqtpool_free(struct c4iw_rdev *rdev, u32 addr, int size)
 	rdev->stats.rqt.cur -= roundup(size << 6, 1 << MIN_RQT_SHIFT);
 	mutex_unlock(&rdev->stats.lock);
 	gen_pool_free(rdev->rqt_pool, (unsigned long)addr, size << 6);
+	kref_put(&rdev->rqt_kref, destroy_rqtpool);
 }
 
 int c4iw_rqtpool_create(struct c4iw_rdev *rdev)
@@ -383,7 +405,7 @@ int c4iw_rqtpool_create(struct c4iw_rdev *rdev)
 
 void c4iw_rqtpool_destroy(struct c4iw_rdev *rdev)
 {
-	gen_pool_destroy(rdev->rqt_pool);
+	kref_put(&rdev->rqt_kref, destroy_rqtpool);
 }
 
 /*
drivers/infiniband/hw/mlx5/qp.c +23 -16
index 8761cf4c003f..074c5d993b33 100644
@@ -174,7 +174,11 @@ static int set_rq_size(struct mlx5_ib_dev *dev, struct ib_qp_cap *cap,
 	} else {
 		if (ucmd) {
 			qp->rq.wqe_cnt = ucmd->rq_wqe_count;
+			if (ucmd->rq_wqe_shift > BITS_PER_BYTE * sizeof(ucmd->rq_wqe_shift))
+				return -EINVAL;
 			qp->rq.wqe_shift = ucmd->rq_wqe_shift;
+			if ((1 << qp->rq.wqe_shift) / sizeof(struct mlx5_wqe_data_seg) < qp->wq_sig)
+				return -EINVAL;
 			qp->rq.max_gs = (1 << qp->rq.wqe_shift) / sizeof(struct mlx5_wqe_data_seg) - qp->wq_sig;
 			qp->rq.max_post = qp->rq.wqe_cnt;
 		} else {
@@ -352,11 +356,6 @@ static int qp_has_rq(struct ib_qp_init_attr *attr)
 	return 1;
 }
 
-static int first_med_uuar(void)
-{
-	return 1;
-}
-
 static int next_uuar(int n)
 {
 	n++;
@@ -391,6 +390,11 @@ static int max_uuari(struct mlx5_uuar_info *uuari)
 	return uuari->num_uars * 4;
 }
 
+static int first_med_uuar(struct mlx5_uuar_info *uuari)
+{
+	return num_med_uuar(uuari) ? 1 : -ENOMEM;
+}
+
 static int first_hi_uuar(struct mlx5_uuar_info *uuari)
 {
 	int med;
@@ -416,10 +420,13 @@ static int alloc_high_class_uuar(struct mlx5_uuar_info *uuari)
 
 static int alloc_med_class_uuar(struct mlx5_uuar_info *uuari)
 {
-	int minidx = first_med_uuar();
+	int minidx = first_med_uuar(uuari);
 	int i;
 
-	for (i = first_med_uuar(); i < first_hi_uuar(uuari); i = next_uuar(i)) {
+	if (minidx < 0)
+		return minidx;
+
+	for (i = minidx; i < first_hi_uuar(uuari); i = next_uuar(i)) {
 		if (uuari->count[i] < uuari->count[minidx])
 			minidx = i;
 		if (!uuari->count[minidx])
@@ -1281,18 +1288,18 @@ enum {
 
 static int ib_rate_to_mlx5(struct mlx5_ib_dev *dev, u8 rate)
 {
-	if (rate == IB_RATE_PORT_CURRENT) {
+	if (rate == IB_RATE_PORT_CURRENT)
 		return 0;
-	} else if (rate < IB_RATE_2_5_GBPS || rate > IB_RATE_300_GBPS) {
+
+	if (rate < IB_RATE_2_5_GBPS || rate > IB_RATE_300_GBPS)
 		return -EINVAL;
-	} else {
-		while (rate != IB_RATE_2_5_GBPS &&
-		       !(1 << (rate + MLX5_STAT_RATE_OFFSET) &
-			 dev->mdev.caps.stat_rate_support))
-			--rate;
-	}
 
-	return rate + MLX5_STAT_RATE_OFFSET;
+	while (rate != IB_RATE_PORT_CURRENT &&
+	       !(1 << (rate + MLX5_STAT_RATE_OFFSET) &
+		 dev->mdev.caps.stat_rate_support))
+		--rate;
+
+	return rate ? rate + MLX5_STAT_RATE_OFFSET : rate;
 }
 
 static int mlx5_set_path(struct mlx5_ib_dev *dev, const struct ib_ah_attr *ah,
drivers/infiniband/ulp/srp/ib_srp.c +5 -3
index 4591cc7b8240..bdc61a935088 100644
@@ -2393,9 +2393,11 @@ static int srp_abort(struct scsi_cmnd *scmnd)
 		ret = FAST_IO_FAIL;
 	else
 		ret = FAILED;
-	srp_free_req(target, req, scmnd, 0);
-	scmnd->result = DID_ABORT << 16;
-	scmnd->scsi_done(scmnd);
+	if (ret == SUCCESS) {
+		srp_free_req(target, req, scmnd, 0);
+		scmnd->result = DID_ABORT << 16;
+		scmnd->scsi_done(scmnd);
+	}
 
 	return ret;
 }
drivers/input/serio/i8042-x86ia64io.h +24 -0
index 822d3f6e666b..29ac9d450e8e 100644
@@ -516,6 +516,20 @@ static const struct dmi_system_id __initconst i8042_dmi_nomux_table[] = {
 	{ }
 };
 
+static const struct dmi_system_id i8042_dmi_forcemux_table[] __initconst = {
+	{
+		/*
+		 * Sony Vaio VGN-CS series require MUX or the touch sensor
+		 * buttons will disturb touchpad operation
+		 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "VGN-CS"),
+		},
+	},
+	{ }
+};
+
 static const struct dmi_system_id __initconst i8042_dmi_reset_table[] = {
 	{
 		/* MSI Wind U-100 */
@@ -594,6 +608,13 @@ static const struct dmi_system_id __initconst i8042_dmi_reset_table[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "20046"),
 		},
 	},
+	{
+		/* Lenovo ThinkPad L460 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad L460"),
+		},
+	},
 	{
 		/* Clevo P650RS, 650RP6, Sager NP8152-S, and others */
 		.matches = {
@@ -1109,6 +1130,9 @@ static int __init i8042_platform_init(void)
 	if (dmi_check_system(i8042_dmi_nomux_table))
 		i8042_nomux = true;
 
+	if (dmi_check_system(i8042_dmi_forcemux_table))
+		i8042_nomux = false;
+
 	if (dmi_check_system(i8042_dmi_notimeout_table))
 		i8042_notimeout = true;
 
drivers/media/pci/cx25821/cx25821-core.c +4 -3
index e81173c41e5a..34335ced002e 100644
@@ -871,6 +871,10 @@ static int cx25821_dev_setup(struct cx25821_dev *dev)
 	dev->nr = ++cx25821_devcount;
 	sprintf(dev->name, "cx25821[%d]", dev->nr);
 
+	if (dev->nr >= ARRAY_SIZE(card)) {
+		CX25821_INFO("dev->nr >= %zd", ARRAY_SIZE(card));
+		return -ENODEV;
+	}
 	if (dev->pci->device != 0x8210) {
 		pr_info("%s(): Exiting. Incorrect Hardware device = 0x%02x\n",
 			__func__, dev->pci->device);
@@ -887,9 +891,6 @@ static int cx25821_dev_setup(struct cx25821_dev *dev)
 		dev->channels[i].sram_channels = &cx25821_sram_channels[i];
 	}
 
-	if (dev->nr > 1)
-		CX25821_INFO("dev->nr > 1!");
-
 	/* board config */
 	dev->board = 1;		/* card[dev->nr]; */
 	dev->_max_num_decoders = MAX_DECODERS;
drivers/media/platform/s3c-camif/camif-capture.c +4 -3
index deba425e3d8f..10eea821275c 100644
@@ -1280,16 +1280,17 @@ static void __camif_subdev_try_format(struct camif_dev *camif,
 {
 	const struct s3c_camif_variant *variant = camif->variant;
 	const struct vp_pix_limits *pix_lim;
-	int i = ARRAY_SIZE(camif_mbus_formats);
+	unsigned int i;
 
 	/* FIXME: constraints against codec or preview path ? */
 	pix_lim = &variant->vp_pix_limits[VP_CODEC];
 
-	while (i-- >= 0)
+	for (i = 0; i < ARRAY_SIZE(camif_mbus_formats); i++)
 		if (camif_mbus_formats[i] == mf->code)
 			break;
 
-	mf->code = camif_mbus_formats[i];
+	if (i == ARRAY_SIZE(camif_mbus_formats))
+		mf->code = camif_mbus_formats[0];
 
 	if (pad == CAMIF_SD_PAD_SINK) {
 		v4l_bound_align_image(&mf->width, 8, CAMIF_MAX_PIX_WIDTH,
drivers/media/rc/rc-main.c +2 -2
index c5a64a111284..0c227ed69b0f 100644
@@ -1427,13 +1427,13 @@ void rc_unregister_device(struct rc_dev *dev)
 	if (!dev)
 		return;
 
-	del_timer_sync(&dev->timer_keyup);
-
 	clear_bit(dev->devno, ir_core_dev_number);
 
 	if (dev->driver_type == RC_DRIVER_IR_RAW)
 		ir_raw_event_unregister(dev);
 
+	del_timer_sync(&dev->timer_keyup);
+
 	/* Freeing the table should also call the stop callback */
 	ir_free_table(&dev->rc_map);
 	IR_dprintk(1, "Freed keycode table\n");
drivers/media/v4l2-core/v4l2-compat-ioctl32.c +3 -1
index 412abcc9b6f6..acf4dc31fb79 100644
@@ -101,7 +101,7 @@ static int get_v4l2_window32(struct v4l2_window __user *kp,
 static int put_v4l2_window32(struct v4l2_window __user *kp,
 			     struct v4l2_window32 __user *up)
 {
-	struct v4l2_clip __user *kclips = kp->clips;
+	struct v4l2_clip __user *kclips;
 	struct v4l2_clip32 __user *uclips;
 	compat_caddr_t p;
 	u32 clipcount;
@@ -116,6 +116,8 @@ static int put_v4l2_window32(struct v4l2_window __user *kp,
 	if (!clipcount)
 		return 0;
 
+	if (get_user(kclips, &kp->clips))
+		return -EFAULT;
 	if (get_user(p, &up->clips))
 		return -EFAULT;
 	uclips = compat_ptr(p);
drivers/message/fusion/mptsas.c +1 -0
index 711fcb5cec87..06a52f823282 100644
@@ -1996,6 +1996,7 @@ static struct scsi_host_template mptsas_driver_template = {
 	.cmd_per_lun			= 7,
 	.use_clustering			= ENABLE_CLUSTERING,
 	.shost_attrs			= mptscsih_host_attrs,
+	.no_write_same			= 1,
 };
 
 static int mptsas_get_linkerrors(struct sas_phy *phy)
drivers/mmc/host/jz4740_mmc.c +1 -1
index 537d6c7a5ae4..c4a5b6811cd6 100644
@@ -148,9 +148,9 @@ static void jz4740_mmc_set_irq_enabled(struct jz4740_mmc_host *host,
 		host->irq_mask &= ~irq;
 	else
 		host->irq_mask |= irq;
-	spin_unlock_irqrestore(&host->lock, flags);
 
 	writew(host->irq_mask, host->base + JZ_REG_MMC_IMASK);
+	spin_unlock_irqrestore(&host->lock, flags);
 }
 
 static void jz4740_mmc_clock_enable(struct jz4740_mmc_host *host,
drivers/mtd/chips/cfi_cmdset_0001.c +28 -5
index 3096f3ded3ad..8e2a7d077b16 100644
@@ -45,6 +45,7 @@
 #define I82802AB	0x00ad
 #define I82802AC	0x00ac
 #define PF38F4476	0x881c
+#define M28F00AP30	0x8963
 /* STMicroelectronics chips */
 #define M50LPW080       0x002F
 #define M50FLW080A	0x0080
@@ -375,6 +376,17 @@ static void cfi_fixup_major_minor(struct cfi_private *cfi,
 		extp->MinorVersion = '1';
 }
 
+static int cfi_is_micron_28F00AP30(struct cfi_private *cfi, struct flchip *chip)
+{
+	/*
+	 * Micron(was Numonyx) 1Gbit bottom boot are buggy w.r.t
+	 * Erase Supend for their small Erase Blocks(0x8000)
+	 */
+	if (cfi->mfr == CFI_MFR_INTEL && cfi->id == M28F00AP30)
+		return 1;
+	return 0;
+}
+
 static inline struct cfi_pri_intelext *
 read_pri_intelext(struct map_info *map, __u16 adr)
 {
@@ -825,21 +837,30 @@ static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long
 		     (mode == FL_WRITING && (cfip->SuspendCmdSupport & 1))))
 			goto sleep;
 
+		/* Do not allow suspend iff read/write to EB address */
+		if ((adr & chip->in_progress_block_mask) ==
+		    chip->in_progress_block_addr)
+			goto sleep;
+
+		/* do not suspend small EBs, buggy Micron Chips */
+		if (cfi_is_micron_28F00AP30(cfi, chip) &&
+		    (chip->in_progress_block_mask == ~(0x8000-1)))
+			goto sleep;
 
 		/* Erase suspend */
-		map_write(map, CMD(0xB0), adr);
+		map_write(map, CMD(0xB0), chip->in_progress_block_addr);
 
 		/* If the flash has finished erasing, then 'erase suspend'
 		 * appears to make some (28F320) flash devices switch to
 		 * 'read' mode.  Make sure that we switch to 'read status'
 		 * mode so we get the right data. --rmk
 		 */
-		map_write(map, CMD(0x70), adr);
+		map_write(map, CMD(0x70), chip->in_progress_block_addr);
 		chip->oldstate = FL_ERASING;
 		chip->state = FL_ERASE_SUSPENDING;
 		chip->erase_suspended = 1;
 		for (;;) {
-			status = map_read(map, adr);
+			status = map_read(map, chip->in_progress_block_addr);
 			if (map_word_andequal(map, status, status_OK, status_OK))
 			        break;
 
@@ -1035,8 +1056,8 @@ static void put_chip(struct map_info *map, struct flchip *chip, unsigned long ad
 		   sending the 0x70 (Read Status) command to an erasing
 		   chip and expecting it to be ignored, that's what we
 		   do. */
-		map_write(map, CMD(0xd0), adr);
-		map_write(map, CMD(0x70), adr);
+		map_write(map, CMD(0xd0), chip->in_progress_block_addr);
+		map_write(map, CMD(0x70), chip->in_progress_block_addr);
 		chip->oldstate = FL_READY;
 		chip->state = FL_ERASING;
 		break;
@@ -1927,6 +1948,8 @@ static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip,
 	map_write(map, CMD(0xD0), adr);
 	chip->state = FL_ERASING;
 	chip->erase_suspended = 0;
+	chip->in_progress_block_addr = adr;
+	chip->in_progress_block_mask = ~(len - 1);
 
 	ret = INVAL_CACHE_AND_WAIT(map, chip, adr,
 				   adr, len,
drivers/mtd/chips/cfi_cmdset_0002.c +6 -3
index e21fde9d4d7e..573d843a73a9 100644
@@ -780,9 +780,10 @@ static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr
 		    (mode == FL_WRITING && (cfip->EraseSuspend & 0x2))))
 			goto sleep;
 
-		/* We could check to see if we're trying to access the sector
-		 * that is currently being erased. However, no user will try
-		 * anything like that so we just wait for the timeout. */
+		/* Do not allow suspend iff read/write to EB address */
+		if ((adr & chip->in_progress_block_mask) ==
+		    chip->in_progress_block_addr)
+			goto sleep;
 
 		/* Erase suspend */
 		/* It's harmless to issue the Erase-Suspend and Erase-Resume
@@ -1926,6 +1927,7 @@ static int __xipram do_erase_chip(struct map_info *map, struct flchip *chip)
 	chip->state = FL_ERASING;
 	chip->erase_suspended = 0;
 	chip->in_progress_block_addr = adr;
+	chip->in_progress_block_mask = ~(map->size - 1);
 
 	INVALIDATE_CACHE_UDELAY(map, chip,
 				adr, map->size,
@@ -2015,6 +2017,7 @@ static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip,
 	chip->state = FL_ERASING;
 	chip->erase_suspended = 0;
 	chip->in_progress_block_addr = adr;
+	chip->in_progress_block_mask = ~(len - 1);
 
 	INVALIDATE_CACHE_UDELAY(map, chip,
 				adr, len,
drivers/mtd/ubi/block.c +1 -1
index 8b4a182d7cf9..d9580663544d 100644
@@ -322,7 +322,7 @@ static int ubiblock_open(struct block_device *bdev, fmode_t mode)
 	 * in any case.
 	 */
 	if (mode & FMODE_WRITE) {
-		ret = -EPERM;
+		ret = -EROFS;
 		goto out_unlock;
 	}
 
drivers/mtd/ubi/build.c +11 -0
index c3db383a9000..7bbd11e25f23 100644
@@ -905,6 +905,17 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
 		return -EINVAL;
 	}
 
+	/*
+	 * Both UBI and UBIFS have been designed for SLC NAND and NOR flashes.
+	 * MLC NAND is different and needs special care, otherwise UBI or UBIFS
+	 * will die soon and you will lose all your data.
+	 */
+	if (mtd->type == MTD_MLCNANDFLASH) {
+		pr_err("ubi: refuse attaching mtd%d - MLC NAND is not supported\n",
+			mtd->index);
+		return -EINVAL;
+	}
+
 	if (ubi_num == UBI_DEV_NUM_AUTO) {
 		/* Search for an empty slot in the @ubi_devices array */
 		for (ubi_num = 0; ubi_num < UBI_MAX_DEVICES; ubi_num++)
drivers/net/bonding/bond_main.c +1 -2
index d87c0d275aba..54516a8502a6 100644
@@ -1535,8 +1535,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
 	} /* switch(bond_mode) */
 
 #ifdef CONFIG_NET_POLL_CONTROLLER
-	slave_dev->npinfo = bond->dev->npinfo;
-	if (slave_dev->npinfo) {
+	if (bond->dev->npinfo) {
 		if (slave_enable_netpoll(new_slave)) {
 			pr_info("Error, %s: master_dev is using netpoll, but new slave device does not support netpoll\n",
 				bond_dev->name);
drivers/net/can/usb/kvaser_usb.c +1 -1
index c5443345d243..e4d9e8be982f 100644
@@ -845,7 +845,7 @@ static void kvaser_usb_rx_can_msg(const struct kvaser_usb *dev,
 
 	skb = alloc_can_skb(priv->netdev, &cf);
 	if (!skb) {
-		stats->tx_dropped++;
+		stats->rx_dropped++;
 		return;
 	}
 
drivers/net/ethernet/broadcom/bcmsysport.c +6 -5
index 2d2c6703819e..3d85750a14ab 100644
@@ -772,7 +772,7 @@ static struct sk_buff *bcm_sysport_insert_tsb(struct sk_buff *skb,
 	u32 csum_info;
 	u8 ip_proto;
 	u16 csum_start;
-	u16 ip_ver;
+	__be16 ip_ver;
 
 	/* Re-allocate SKB if needed */
 	if (unlikely(skb_headroom(skb) < sizeof(*tsb))) {
@@ -791,12 +791,12 @@ static struct sk_buff *bcm_sysport_insert_tsb(struct sk_buff *skb,
 	memset(tsb, 0, sizeof(*tsb));
 
 	if (skb->ip_summed == CHECKSUM_PARTIAL) {
-		ip_ver = htons(skb->protocol);
+		ip_ver = skb->protocol;
 		switch (ip_ver) {
-		case ETH_P_IP:
+		case htons(ETH_P_IP):
 			ip_proto = ip_hdr(skb)->protocol;
 			break;
-		case ETH_P_IPV6:
+		case htons(ETH_P_IPV6):
 			ip_proto = ipv6_hdr(skb)->nexthdr;
 			break;
 		default:
@@ -810,7 +810,8 @@ static struct sk_buff *bcm_sysport_insert_tsb(struct sk_buff *skb,
 
 		if (ip_proto == IPPROTO_TCP || ip_proto == IPPROTO_UDP) {
 			csum_info |= L4_LENGTH_VALID;
-			if (ip_proto == IPPROTO_UDP && ip_ver == ETH_P_IP)
+			if (ip_proto == IPPROTO_UDP &&
+			    ip_ver == htons(ETH_P_IP))
 				csum_info |= L4_UDP;
 		} else
 			csum_info = 0;
drivers/net/ethernet/broadcom/genet/bcmgenet.c +6 -5
index ebf18200d76d..e65a43287ede 100644
@@ -1093,7 +1093,7 @@ static int bcmgenet_put_tx_csum(struct net_device *dev, struct sk_buff *skb)
 	struct sk_buff *new_skb;
 	u16 offset;
 	u8 ip_proto;
-	u16 ip_ver;
+	__be16 ip_ver;
 	u32 tx_csum_info;
 
 	if (unlikely(skb_headroom(skb) < sizeof(*status))) {
@@ -1114,12 +1114,12 @@ static int bcmgenet_put_tx_csum(struct net_device *dev, struct sk_buff *skb)
 	status = (struct status_64 *)skb->data;
 
 	if (skb->ip_summed  == CHECKSUM_PARTIAL) {
-		ip_ver = htons(skb->protocol);
+		ip_ver = skb->protocol;
 		switch (ip_ver) {
-		case ETH_P_IP:
+		case htons(ETH_P_IP):
 			ip_proto = ip_hdr(skb)->protocol;
 			break;
-		case ETH_P_IPV6:
+		case htons(ETH_P_IPV6):
 			ip_proto = ipv6_hdr(skb)->nexthdr;
 			break;
 		default:
@@ -1135,7 +1135,8 @@ static int bcmgenet_put_tx_csum(struct net_device *dev, struct sk_buff *skb)
 		 */
 		if (ip_proto == IPPROTO_TCP || ip_proto == IPPROTO_UDP) {
 			tx_csum_info |= STATUS_TX_CSUM_LV;
-			if (ip_proto == IPPROTO_UDP && ip_ver == ETH_P_IP)
+			if (ip_proto == IPPROTO_UDP &&
+			    ip_ver == htons(ETH_P_IP))
 				tx_csum_info |= STATUS_TX_CSUM_PROTO_UDP;
 		} else
 			tx_csum_info = 0;
drivers/net/ethernet/cisco/enic/enic_main.c +4 -4
index 720eed57d255..965260edb010 100644
@@ -2198,11 +2198,11 @@ static int enic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 	pci_set_master(pdev);
 
 	/* Query PCI controller on system for DMA addressing
-	 * limitation for the device.  Try 64-bit first, and
+	 * limitation for the device.  Try 47-bit first, and
 	 * fail to 32-bit.
 	 */
 
-	err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
+	err = pci_set_dma_mask(pdev, DMA_BIT_MASK(47));
 	if (err) {
 		err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
 		if (err) {
@@ -2216,10 +2216,10 @@ static int enic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 			goto err_out_release_regions;
 		}
 	} else {
-		err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
+		err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(47));
 		if (err) {
 			dev_err(dev, "Unable to obtain %u-bit DMA "
-				"for consistent allocations, aborting\n", 64);
+				"for consistent allocations, aborting\n", 47);
 			goto err_out_release_regions;
 		}
 		using_dac = 1;
drivers/net/ethernet/marvell/sky2.c +1 -1
index d72c33cbaeeb..1bebdf650f94 100644
@@ -5070,7 +5070,7 @@ static int sky2_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 	INIT_WORK(&hw->restart_work, sky2_restart);
 
 	pci_set_drvdata(pdev, hw);
-	pdev->d3_delay = 150;
+	pdev->d3_delay = 200;
 
 	return 0;
 
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c +16 -0
index d187819b1340..9885108fcd1b 100644
@@ -441,6 +441,22 @@ static int mlx4_en_set_coalesce(struct net_device *dev,
 	if (!coal->tx_max_coalesced_frames_irq)
 		return -EINVAL;
 
+	if (coal->tx_coalesce_usecs > MLX4_EN_MAX_COAL_TIME ||
+	    coal->rx_coalesce_usecs > MLX4_EN_MAX_COAL_TIME ||
+	    coal->rx_coalesce_usecs_low > MLX4_EN_MAX_COAL_TIME ||
+	    coal->rx_coalesce_usecs_high > MLX4_EN_MAX_COAL_TIME) {
+		netdev_info(dev, "%s: maximum coalesce time supported is %d usecs\n",
+			    __func__, MLX4_EN_MAX_COAL_TIME);
+		return -ERANGE;
+	}
+
+	if (coal->tx_max_coalesced_frames > MLX4_EN_MAX_COAL_PKTS ||
+	    coal->rx_max_coalesced_frames > MLX4_EN_MAX_COAL_PKTS) {
+		netdev_info(dev, "%s: maximum coalesced frames supported is %d\n",
+			    __func__, MLX4_EN_MAX_COAL_PKTS);
+		return -ERANGE;
+	}
+
 	priv->rx_frames = (coal->rx_max_coalesced_frames ==
 			   MLX4_EN_AUTO_CONF) ?
 				MLX4_EN_RX_COAL_TARGET :
drivers/net/ethernet/mellanox/mlx4/main.c +3 -1
index 0996af50ad5b..8a5992b8f29a 100644
@@ -2048,6 +2048,7 @@ static int mlx4_init_port_info(struct mlx4_dev *dev, int port)
 	if (err) {
 		mlx4_err(dev, "Failed to create file for port %d\n", port);
 		info->port = -1;
+		return err;
 	}
 
 	sprintf(info->dev_mtu_name, "mlx4_port%d_mtu", port);
@@ -2066,9 +2067,10 @@ static int mlx4_init_port_info(struct mlx4_dev *dev, int port)
 		mlx4_err(dev, "Failed to create mtu file for port %d\n", port);
 		device_remove_file(&info->dev->pdev->dev, &info->port_attr);
 		info->port = -1;
+		return err;
 	}
 
-	return err;
+	return 0;
 }
 
 static void mlx4_cleanup_port_info(struct mlx4_port_info *info)
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h +5 -2
index 625537010876..feb76d675d68 100644
@@ -136,6 +136,9 @@ enum {
 #define MLX4_EN_TX_COAL_PKTS	16
 #define MLX4_EN_TX_COAL_TIME	0x10
 
+#define MLX4_EN_MAX_COAL_PKTS	U16_MAX
+#define MLX4_EN_MAX_COAL_TIME	U16_MAX
+
 #define MLX4_EN_RX_RATE_LOW		400000
 #define MLX4_EN_RX_COAL_TIME_LOW	0
 #define MLX4_EN_RX_RATE_HIGH		450000
@@ -522,8 +525,8 @@ struct mlx4_en_priv {
 	u16 rx_usecs_low;
 	u32 pkt_rate_high;
 	u16 rx_usecs_high;
-	u16 sample_interval;
-	u16 adaptive_rx_coal;
+	u32 sample_interval;
+	u32 adaptive_rx_coal;
 	u32 msg_enable;
 	u32 loopback_ok;
 	u32 validate_loopback;
drivers/net/ethernet/mellanox/mlx4/qp.c +2 -2
index 230832628116..96afaaf58832 100644
@@ -363,11 +363,11 @@ struct mlx4_qp *mlx4_qp_lookup(struct mlx4_dev *dev, u32 qpn)
 	struct mlx4_qp_table *qp_table = &mlx4_priv(dev)->qp_table;
 	struct mlx4_qp *qp;
 
-	spin_lock(&qp_table->lock);
+	spin_lock_irq(&qp_table->lock);
 
 	qp = __mlx4_qp_lookup(dev, qpn);
 
-	spin_unlock(&qp_table->lock);
+	spin_unlock_irq(&qp_table->lock);
 	return qp;
 }
 
drivers/net/ethernet/ti/cpsw.c +9 -4
index d7e04d3daf13..5cc2eda1bdd5 100644
@@ -2216,12 +2216,17 @@ static int cpsw_probe(struct platform_device *pdev)
 
 	priv->txch = cpdma_chan_create(priv->dma, tx_chan_num(0),
 				       cpsw_tx_handler);
+	if (IS_ERR(priv->txch)) {
+		dev_err(priv->dev, "error initializing tx dma channel\n");
+		ret = PTR_ERR(priv->txch);
+		goto clean_dma_ret;
+	}
+
 	priv->rxch = cpdma_chan_create(priv->dma, rx_chan_num(0),
 				       cpsw_rx_handler);
-
-	if (WARN_ON(!priv->txch || !priv->rxch)) {
-		dev_err(priv->dev, "error initializing dma channels\n");
-		ret = -ENOMEM;
+	if (IS_ERR(priv->rxch)) {
+		dev_err(priv->dev, "error initializing rx dma channel\n");
+		ret = PTR_ERR(priv->rxch);
 		goto clean_dma_ret;
 	}
 
drivers/net/ethernet/ti/davinci_cpdma.c +1 -1
index 4a000f6dd6fc..619b815f9bac 100644
@@ -503,7 +503,7 @@ struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num,
 	unsigned long flags;
 
 	if (__chan_linear(chan_num) >= ctlr->num_chan)
-		return NULL;
+		return ERR_PTR(-EINVAL);
 
 	chan = devm_kzalloc(ctlr->dev, sizeof(*chan), GFP_KERNEL);
 	if (!chan)
drivers/net/ethernet/ti/davinci_emac.c +48 -14

17 lines not on this page · raw message

drivers/net/ppp/ppp_generic.c +77 -59

136 lines not on this page · raw message

drivers/net/ppp/pppoe.c +4 -0
index 38712e0b719c..942b887d2d27 100644

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

drivers/net/team/team.c +31 -7
index 6b38cbafef09..d0f9aa4c59fc 100644

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

drivers/net/usb/qmi_wwan.c +13 -0
index 010ff1a92747..fff2c6f26b8b 100644

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

drivers/net/vmxnet3/vmxnet3_drv.c +95 -42

137 lines not on this page · raw message

drivers/net/vmxnet3/vmxnet3_int.h +5 -3
index 29ee77f2c97f..10219fc9e38b 100644

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

drivers/net/wireless/rtl818x/rtl8187/dev.c +1 -1
index 629ad8cfa17b..6952aaa232f7 100644

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

drivers/parport/parport_pc.c +4 -0
index 76ee7750bc5e..6b9737d392e2 100644

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

drivers/pci/hotplug/acpiphp_glue.c +16 -7
index 0e7399056e23..5e71f485d9ba 100644

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

drivers/pci/quirks.c +13 -0
index 354026cf7ce9..35a6fc073730 100644

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

drivers/pinctrl/pinctrl-single.c +19 -3
index 0d19ac11ab9e..925018da84ad 100644

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

drivers/rtc/rtc-snvs.c +11 -4
index fa384fe28988..90beb49e7382 100644

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

drivers/rtc/rtc-tx4939.c +4 -2
index 2e678c681b13..5d91852af497 100644

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

drivers/s390/block/dasd_alias.c +12 -4
index 6a64e86e8ccd..0aa661f3e453 100644

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

drivers/s390/cio/chsc.c +11 -3
index e3bf885f4a6c..d5f02c3da878 100644

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

drivers/s390/cio/qdio_main.c +22 -20

42 lines not on this page · raw message

drivers/s390/cio/qdio_setup.c +3 -9
index f5f4a91fab44..2c707f8a3521 100644

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

drivers/s390/net/qeth_core_main.c +7 -1
index 0aacf78d5b19..035529daf379 100644

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

drivers/s390/scsi/zfcp_dbf.c +22 -1
index 581f5e0ab10a..f22aeb3bab8a 100644

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

drivers/s390/scsi/zfcp_ext.h +4 -1
index 0c8c8b8fc1de..35420ef81de3 100644

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

drivers/s390/scsi/zfcp_scsi.c +7 -7
index 0c03ae19b689..2c6cdc22533b 100644

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

drivers/scsi/qla2xxx/qla_init.c +2 -1
index e2184412617d..a70d1947629a 100644

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

drivers/scsi/sd.c +2 -0
index c50cfd16a976..f88e3748cb18 100644

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

drivers/staging/line6/midi.c +1 -1
index 1ac343b649c1..9c0ca7d3d76f 100644

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

drivers/staging/rtl8192u/r8192U_core.c +2 -0
index 24272c51bc9d..c551545c1f8e 100644

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

drivers/staging/usbip/usbip_common.h +1 -1
index 01be15a2066e..58787c49fb68 100644

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

drivers/staging/usbip/vhci_hcd.c +7 -1
index 2ae3b63741bd..30fcbac8f162 100644

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

drivers/thermal/imx_thermal.c +11 -8
index 2c516f2eebed..0678f12cae02 100644

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

drivers/tty/Makefile +2 -1
index 58ad1c05b7f8..dd9d779c64d4 100644

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

drivers/tty/n_null.c new file +80 -0

80 lines not on this page · raw message

drivers/tty/pty.c +10 -11
index c3f9b9920d8d..4cf54fe45d99 100644

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

drivers/tty/serial/altera_uart.c +3 -3
index 323376668b72..3695897fac39 100644

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

drivers/tty/serial/arc_uart.c +7 -1
index 008c223eaf26..99c567ee18d3 100644

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

drivers/tty/serial/fsl_lpuart.c +4 -0
index 2b49f2abd8b5..aff7c5d63a53 100644

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

drivers/tty/serial/imx.c +6 -0
index e30e52e378fe..7450561a2326 100644

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

drivers/tty/serial/mxs-auart.c +5 -0
index 7f4bc4845100..8f6d6b5a2eeb 100644

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

drivers/tty/serial/pxa.c +4 -0
index c638c53cd2b6..94c6994e4060 100644

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

drivers/tty/serial/xilinx_uartps.c +1 -1
index efbfddf93471..0f646cb2e130 100644

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

drivers/tty/tty_io.c +17 -25

42 lines not on this page · raw message

drivers/tty/tty_ldisc.c +41 -27

68 lines not on this page · raw message

drivers/tty/vt/vt.c +5 -1
index 23f7f96c7508..d7b435af42d3 100644

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

drivers/usb/core/config.c +3 -1
index b09b4ecb8797..cee00dc829b6 100644

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

drivers/usb/core/generic.c +7 -2
index 358ca8dd784f..a5240b4d7ab9 100644

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

drivers/usb/core/hcd.c +1 -0
index 865bc662b28c..23d28382057a 100644

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

drivers/usb/core/hub.c +9 -1
index 7c89f5e32d88..e97bb39bc53f 100644

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

drivers/usb/core/quirks.c +3 -0
index 25391bef0642..e5e6a728190a 100644

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

drivers/usb/dwc3/dwc3-pci.c +1 -1
index a60bab7dfa0a..69f27169081b 100644

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

drivers/usb/host/xhci-pci.c +4 -1
index 33cf347e754b..3a1f57ea174e 100644

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

drivers/usb/musb/musb_gadget_ep0.c +9 -5
index 2af45a0c8930..a4b991992595 100644

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

drivers/usb/musb/musb_host.c +3 -1
index 2314186738ba..9e34777dc68d 100644

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

drivers/usb/serial/Kconfig +1 -0
index f73009bc7268..6123e9e16f78 100644

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

drivers/usb/serial/cp210x.c +2 -0
index 08f5274ffd61..791061cbee48 100644

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

drivers/usb/serial/ftdi_sio.c +4 -1
index dbbf6f382344..d9d4175e01df 100644

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

drivers/usb/serial/ftdi_sio_ids.h +9 -0
index b73023fa9904..69db398b352e 100644

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

drivers/usb/serial/usb-serial-simple.c +7 -0
index a084d4578420..9745f714ee80 100644

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

drivers/usb/serial/visor.c +35 -34

69 lines not on this page · raw message

drivers/video/fbdev/stifb.c +1 -1
index cfe8a2f905c5..14e78f575765 100644

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

drivers/watchdog/f71808e_wdt.c +1 -1
index 016bd9355190..aa93df5833dc 100644

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

drivers/xen/swiotlb-xen.c +1 -1
index c9d0d5a0e662..42212c8e4453 100644

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

drivers/xen/xen-acpi-processor.c +3 -3
index 57dbeef2d667..f999548ad702 100644

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

fs/affs/namei.c +7 -3
index 035bd31556fc..5f15d97bef0e 100644

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

fs/afs/security.c +4 -9
index 8d010422dc89..fcf2b07b1571 100644

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

fs/aio.c +3 -4
index d01069c5e4b5..4dddb2a5298f 100644

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

fs/autofs4/root.c +1 -1
index 9e016e6fb582..080cb24a09e7 100644

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

fs/btrfs/ctree.c +14 -2
index 5d4adb55b07b..ccfeca9105be 100644

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

fs/btrfs/extent-tree.c +1 -0
index d7b34e35f34c..f34b210aaed8 100644

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

fs/btrfs/inode.c +156 -75

231 lines not on this page · raw message

fs/btrfs/ioctl.c +12 -10
index c740b0202931..9568810444ea 100644

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

fs/btrfs/tests/qgroup-tests.c +1 -1
index ec3dcb202357..84f5ddd3f332 100644

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

fs/btrfs/tree-log.c +9 -3
index fb049cb4571d..63d9e0a784a1 100644

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

fs/buffer.c +1 -1
index cdd0320e8f84..8c0ce7d3a967 100644

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

fs/ceph/inode.c +7 -3
index 50efb2a5d3f6..bf29a9972e5b 100644

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

fs/cifs/cifsfs.c +13 -0
index a0bf3f135a92..bd6ebe78809d 100644

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

fs/cifs/dir.c +5 -4
index a30006636796..75eac1424c5b 100644

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

fs/cifs/smb2pdu.c +29 -20

49 lines not on this page · raw message

fs/dcache.c +22 -0
index e1380da5c183..7befa3a373cf 100644

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

fs/ecryptfs/inode.c +1 -2
index 8bc9ec714467..9819a544a160 100644

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

fs/ext2/inode.c +0 -10
index b822e4a447d6..829fb1e01898 100644

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

fs/ext2/namei.c +2 -4
index c268d0af1db9..b31b12ddb99b 100644

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

fs/ext3/namei.c +2 -4
index f197736dccfa..e0053011ce6e 100644

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

fs/ext4/balloc.c +1 -2
index 75aa5bac77d4..a6a13ad3d537 100644

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

fs/ext4/dir.c +5 -3
index ef1bed66c14f..8dd5c51e2200 100644

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

fs/ext4/ialloc.c +3 -40

43 lines not on this page · raw message

fs/ext4/indirect.c +2 -3
index 0c9ed67fe055..8df46f49a3d5 100644

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

fs/ext4/namei.c +2 -4
index 6d6848a9891b..7edf1bee591b 100644

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

fs/ext4/xattr.c +61 -25

86 lines not on this page · raw message

fs/ext4/xattr.h +11 -0
index 2e8f23e78bc2..829f473277e4 100644

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

fs/f2fs/f2fs.h +1 -0
index 22e6307b25e2..c1970422ac47 100644

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

fs/f2fs/gc.c +1 -1
index b3524f06fd82..140f939a88da 100644

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

fs/f2fs/inode.c +23 -0
index 4d333b643cc8..d06b36ddbe75 100644

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

fs/f2fs/namei.c +15 -37

52 lines not on this page · raw message

fs/fs-writeback.c +1 -1
index cd4fd8aa3c80..108d3612430b 100644

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

fs/hugetlbfs/inode.c +7 -3
index 69546f170ccf..e585baa9f037 100644

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

fs/jbd2/journal.c +4 -1
index 834a9c2585a9..7cc112108df6 100644

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

fs/jbd2/transaction.c +1 -0
index 3ab84e02c6dd..398565726b92 100644

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

fs/jffs2/dir.c +4 -8
index 938556025d64..1313e32f66ea 100644

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

fs/jffs2/super.c +1 -1
index 0918f0e2e266..10902f70883d 100644

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

fs/jfs/namei.c +4 -8
index d59c7defb1ef..d071500a2afa 100644

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

fs/namespace.c +2 -1
index c1c0c8179498..fcf636e37c8e 100644

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

fs/nilfs2/namei.c +2 -4
index 0f84b257932c..da65882b5407 100644

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

fs/notify/fanotify/fanotify.c +15 -19
index 0439f6cdb931..0ad2fe727dbd 100644

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

fs/ocfs2/dlm/dlmcommon.h +1 -0
index fae17c640df3..3626a6a39135 100644

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

fs/ocfs2/dlm/dlmdomain.c +15 -0
index 39efc5057a36..b9933c528d24 100644

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

fs/ocfs2/dlm/dlmrecovery.c +10 -3
index 44f93043b2e9..42a941dcb193 100644

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

fs/proc/proc_sysctl.c +3 -0
index 75a00557cfea..bfb8e8d588b8 100644

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

fs/reiserfs/journal.c +1 -1
index a88b1b3e7db3..1e7cb5e45b7d 100644

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

fs/reiserfs/namei.c +4 -8
index cd11358b10c7..2e9d82f7c35c 100644

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

fs/ubifs/super.c +10 -4
index eb25aa9d7710..41433bde933e 100644

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

fs/udf/ialloc.c +6 -1
index 6eaf5edf1ea1..99c4b1364786 100644

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

fs/udf/namei.c +36 -70

106 lines not on this page · raw message

fs/ufs/ialloc.c +5 -1
index 758ab7c305a4..fd0203ce1f7f 100644

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

fs/ufs/namei.c +11 -3
index 90d74b8f8eba..2f446e79de9f 100644

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

include/asm-generic/word-at-a-time.h +72 -8

80 lines not on this page · raw message

include/linux/clk-provider.h +2 -1
index a4ebe5b78e74..069bf4b0fcb1 100644

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

include/linux/dcache.h +1 -0
index aa586fb8ee1a..de26c9463a5f 100644

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

include/linux/efi.h +4 -4
index 1431089c54dc..fac828d0de08 100644

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

include/linux/hid.h +2 -2
index 05eb71003b52..690aa85276fb 100644

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

include/linux/iio/buffer.h +3 -3
index 519392763393..04e9bb96a5d5 100644

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

include/linux/log2.h +2 -11
index fd7ff3d91e6a..f38fae23bdac 100644

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

include/linux/msg.h +2 -2
index f3f302f9c197..7f9ea9104535 100644

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

include/linux/mtd/flashchip.h +1 -0
index b63fa457febd..3529683f691e 100644

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

include/linux/shm.h +2 -2
index 57d77709fbe2..559033e5b9f5 100644

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

include/linux/string.h +3 -0
index 3b42b3732da6..54c9b66f1c29 100644

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

include/linux/tty.h +2 -4
index 1d02392fa3bd..38394e5a242b 100644

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

include/linux/virtio.h +3 -0
index b46671e28de2..ba845ff92e12 100644

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

include/net/dst.h +1 -0
index 673e69d1d7be..707c95b3d184 100644

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

include/net/inet_timewait_sock.h +1 -0
index 61474ea02152..d85cfb5dcef9 100644

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

include/net/nexthop.h +1 -1
index 3334dbfa5aa4..7fc78663ec9d 100644

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

include/rdma/ib_addr.h +2 -0
index bc45acc195b1..858df4feec0f 100644

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

include/sound/control.h +5 -2
index 5358892b1b39..2d1f2c14ebec 100644

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

include/sound/pcm_oss.h +1 -0
index 760c969d885d..12bbf8c81112 100644

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

include/trace/events/xen.h +0 -16
index d06b6da5c1e3..79c42ed1bcb5 100644

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

include/uapi/linux/ppp-ioctl.h +1 -1
index 63a23a3b8bb7..c71599145824 100644

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

include/uapi/linux/tty.h +1 -0
index dac199a2dba5..512892743489 100644

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

ipc/msg.c +11 -8
index c804e11bcbf6..813076a6a053 100644

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

ipc/msgutil.c +1 -1
index 7e7095974d54..d86417fc2160 100644

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

ipc/sem.c +25 -13
index e289fa838a20..f78977354ba4 100644

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

ipc/shm.c +87 -29

116 lines not on this page · raw message

ipc/util.c +9 -0
index 8085966a1d74..36a066ff4881 100644

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

ipc/util.h +11 -0
index 1a5a0fcd099c..597405b485b6 100644

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

kernel/resource.c +2 -1
index db48bab5ea18..a1c3023d318b 100644

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

kernel/sched/auto_group.c +7 -2
index 798e912842d5..fbc22ef5b1f8 100644

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

kernel/sched/core.c +3 -0
index c2e902a52c6d..9f14c79576f5 100644

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

kernel/sys.c +4 -0
index 3fb42f9897f1..6afd3be8b57d 100644

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

kernel/time/clocksource.c +2 -0
index 64ebaca04fc9..7d890e157452 100644

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

kernel/time/tick-broadcast.c +8 -0
index 64c5990fd500..c91a974ed11c 100644

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

kernel/trace/trace_events_filter.c +3 -0
index ebbb24147d51..7b5c9a63dfdb 100644

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

kernel/trace/trace_events_trigger.c +3 -2
index 4747b476a030..b743e758241e 100644

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

kernel/trace/trace_uprobe.c +13 -19
index 5224e836acde..68fdc53487a8 100644

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

kernel/tracepoint.c +2 -2
index 3490407dc7b7..4b12034e15b0 100644

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

lib/string.c +88 -0

88 lines not on this page · raw message

mm/filemap.c +3 -4
index 94d69f277dae..cdc89ee6af5f 100644

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

mm/mmap.c +32 -0
index 77118da138fc..9b7beabd9ccc 100644

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

net/atm/lec.c +7 -2
index 4c5b8ba0f84f..3a4a737f14db 100644

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

net/batman-adv/translation-table.c +72 -21

93 lines not on this page · raw message

net/bridge/netfilter/ebtables.c +2 -1
index 72142370bd98..2df71bc7959d 100644

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

net/ceph/messenger.c +7 -0
index 6a2236aee1ce..a1edd9bd70ad 100644

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

net/compat.c +4 -2
index 53e933eb78b8..3c8f9daeb6d7 100644

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

net/core/dev.c +2 -1
index f8f03ebd0507..24afa7203884 100644

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

net/core/dev_addr_lists.c +2 -2
index b6b230600b97..41aad226c69b 100644

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

net/core/neighbour.c +19 -11
index 0478423afd29..be085a7b48df 100644

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

net/core/skbuff.c +1 -0
index 9bb9a01a1478..98352d7fd570 100644

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

net/dccp/ccids/ccid2.c +12 -2
index 4dbea29d53ca..e66e9f2ed473 100644

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

net/dccp/timer.c +1 -1
index 1cd46a345cb0..851a212f4915 100644

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

net/dns_resolver/dns_key.c +6 -8
index bf8584339048..d11e032f2276 100644

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

net/ipv4/inet_timewait_sock.c +1 -0
index 6d592f8555fb..04ec29ec670a 100644

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

net/ipv4/ip_output.c +2 -1
index 6561c103e216..109eddf0248a 100644

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

net/ipv4/ip_tunnel.c +9 -8
index 34fce09c5fd1..32f685b35302 100644

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

net/ipv4/ping.c +5 -2
index 3e3bd0819987..0dd42abce335 100644

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

net/ipv4/route.c +53 -65

118 lines not on this page · raw message

net/ipv4/tcp.c +5 -3
index 17d425067d27..5fc281b60515 100644

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

net/ipv4/tcp_input.c +2 -5
index 9a36ff6346f2..00ffa3d3bcae 100644

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

net/ipv4/tcp_output.c +5 -2
index 52d89fc2b297..0d7ed41b40be 100644

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

net/ipv4/udp.c +5 -2
index 41c96cacdbaa..183531ca499d 100644

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

net/ipv6/ip6_gre.c +5 -3
index b277098ed426..3597cfe5416f 100644

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

net/ipv6/ip6_output.c +2 -1
index 0d30c9192da3..a94432384bc4 100644

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

net/ipv6/ip6_tunnel.c +5 -3
index 88a2d0ce326e..28736de12459 100644

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

net/ipv6/ip6_vti.c +5 -2
index de67f5bd9bf9..922353050495 100644

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

net/ipv6/route.c +2 -0
index d791d769d858..0086660a5370 100644

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

net/ipv6/sit.c +5 -3
index 96b442ea904a..65597cf87c47 100644

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

net/ipv6/xfrm6_policy.c +1 -1
index b7a06749fa11..e79ad58d628f 100644

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

net/l2tp/l2tp_core.c +115 -145

260 lines not on this page · raw message

net/l2tp/l2tp_core.h +5 -2
index 48e19b58e334..eb80a6c4ba08 100644

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

net/l2tp/l2tp_debugfs.c +16 -2
index d100aed3d06f..467aeb3f33a1 100644

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

net/l2tp/l2tp_netlink.c +19 -9
index 0fc9e31d1edc..a8b4da65a7ed 100644

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

net/l2tp/l2tp_ppp.c +36 -7

43 lines not on this page · raw message

net/llc/af_llc.c +15 -2
index a76a67d38ec3..9735705f0618 100644

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

net/netfilter/ipvs/ip_vs_core.c +8 -0
index 4ae958906a6b..963019520174 100644

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

net/netfilter/ipvs/ip_vs_ctl.c +11 -4
index 7311cc206d0f..509405afd174 100644

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

net/netfilter/ipvs/ip_vs_sync.c +6 -4
index a108953a8c2c..a198b664ed9a 100644

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

net/netfilter/nf_tables_api.c +32 -27

59 lines not on this page · raw message

net/netlink/af_netlink.c +2 -0
index 95700e349463..555f5b6157f3 100644

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

net/packet/af_packet.c +60 -26

86 lines not on this page · raw message

net/packet/internal.h +5 -5
index cdddf6a30399..68aa14802768 100644

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

net/rfkill/rfkill-gpio.c +6 -1
index 14c98e48f261..54da0f8d46c4 100644

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

net/sched/sch_fq.c +25 -12
index bdcedfedc489..da3621feae74 100644

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

net/sctp/inqueue.c +1 -1
index 7e8a16c77039..8d9b7ad25b65 100644

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

net/sctp/ipv6.c +35 -30

65 lines not on this page · raw message

net/sunrpc/rpc_pipe.c +1 -0
index b18554898562..b23156e73469 100644

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

security/selinux/ss/services.c +1 -1
index 4bca49414a40..45387e2e6bbe 100644

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

sound/core/control_compat.c +1 -2
index 0608f216f359..ac0a40b9ba1e 100644

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

sound/core/oss/pcm_oss.c +150 -36

186 lines not on this page · raw message

sound/core/pcm.c +7 -1
index f98703c5ae29..2326e239e8bd 100644

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

sound/core/pcm_compat.c +2 -0
index 1bb1a43c7d03..f8b6cd1c900c 100644

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

sound/core/pcm_native.c +1 -0
index 3835b818efa8..d38c60671969 100644

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

sound/core/rawmidi_compat.c +12 -6
index 09a89094dcf7..4e304a24924a 100644

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

sound/core/seq/oss/seq_oss_event.c +9 -6
index c3908862bc8b..86ca584c27b2 100644

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

sound/core/seq/oss/seq_oss_midi.c +2 -0
index 86353dc0439c..ef3e82a269df 100644

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

sound/core/seq/oss/seq_oss_synth.c +49 -36

85 lines not on this page · raw message

sound/core/seq/oss/seq_oss_synth.h +2 -1
index dbdfcbb80eaa..4db5658a8c6e 100644

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

sound/core/seq/seq_virmidi.c +2 -2
index 3b126af4a026..ef494ffc1369 100644

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

sound/core/timer.c +103 -119

222 lines not on this page · raw message

sound/drivers/aloop.c +15 -2
index 6c5b4e057521..2b23cb3dfa66 100644

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

sound/drivers/opl3/opl3_synth.c +5 -2
index ddcc1a325a61..42920a243328 100644

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

sound/pci/asihpi/hpimsginit.c +27 -12
index 032d563e3708..a31a70dccecf 100644

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

sound/pci/asihpi/hpioctl.c +3 -1
index 7f0272032fbb..d6ac0b2ec3d2 100644

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

sound/pci/hda/hda_hwdep.c +11 -1
index 014a7849e8fd..6af0385d73ad 100644

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

sound/pci/rme9652/hdspm.c +14 -10
index 811d3c1eb338..a2cad1dccfad 100644

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

sound/pci/rme9652/rme9652.c +4 -2
index 1d9be90f7748..25f497c46d04 100644

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

sound/soc/codecs/ssm2602.c +13 -6
index eb1bb7414b8b..b3c6186d6177 100644

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

sound/soc/fsl/fsl_esai.c +7 -0
index d719caf26dc2..cd326bbf9c62 100644

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

sound/usb/mixer.c +8 -0
index 600c20d157f5..9bce76497c48 100644

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

sound/usb/mixer_maps.c +3 -0
index bfcc295c7412..f0f526ca86e5 100644

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

tools/perf/Documentation/perf-top.txt +3 -0
index 180ae02137a5..a9c03256fb8c 100644

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

tools/perf/builtin-record.c +1 -1
index 87cebac99533..5b394a862323 100644

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

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

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