Linux 3.16.61
I'm announcing the release of the 3.16.61 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.60 is attached to this message.
Ben.
------------
Documentation/filesystems/proc.txt | 31 +- Makefile | 2 +- arch/arc/include/asm/page.h | 2 +- arch/arc/include/asm/pgtable.h | 2 +- arch/arm/boot/dts/da850.dtsi | 6 +- arch/arm/include/asm/kgdb.h | 2 +- arch/arm64/include/asm/barrier.h | 20 ++ arch/arm64/include/uapi/asm/kvm.h | 2 +- arch/m68k/include/asm/delay.h | 11 +- arch/m68k/mm/kmap.c | 3 +- arch/mips/include/asm/asmmacro.h | 11 + arch/mips/include/asm/compiler.h | 6 + arch/mips/include/asm/io.h | 2 + arch/mips/include/asm/pci.h | 2 +- arch/powerpc/Makefile | 1 + arch/powerpc/kernel/entry_64.S | 1 + arch/powerpc/kernel/fadump.c | 3 + arch/powerpc/kernel/hw_breakpoint.c | 4 +- arch/powerpc/kernel/ptrace.c | 1 + arch/powerpc/lib/feature-fixups-test.S | 4 +- arch/powerpc/lib/feature-fixups.c | 180 +++++------ arch/s390/include/asm/cpu_mf.h | 6 +- arch/x86/include/asm/apm.h | 6 - arch/x86/include/asm/barrier.h | 4 +- arch/x86/include/asm/cpufeature.h | 8 +- arch/x86/include/uapi/asm/msr-index.h | 4 +- arch/x86/kernel/apic/apic.c | 3 +- arch/x86/kernel/apm_32.c | 5 + arch/x86/kernel/cpu/bugs.c | 17 +- arch/x86/kernel/cpu/common.c | 13 +- arch/x86/kernel/cpu/mcheck/mce.c | 21 +- arch/x86/kernel/traps.c | 14 +- arch/x86/kvm/cpuid.c | 10 +- arch/x86/kvm/cpuid.h | 2 +- arch/x86/kvm/svm.c | 2 +- arch/x86/kvm/x86.c | 6 + arch/xtensa/kernel/traps.c | 2 +- block/blk-mq-tag.c | 42 ++- crypto/asymmetric_keys/x509_cert_parser.c | 9 + drivers/acpi/acpi_lpss.c | 1 + drivers/ata/ahci.c | 59 ++++ drivers/ata/libata-core.c | 6 +- drivers/ata/libata-zpodd.c | 4 +- drivers/base/core.c | 14 +- drivers/base/power/wakeup.c | 1 - drivers/char/ipmi/ipmi_bt_sm.c | 3 +- drivers/char/random.c | 10 +- drivers/char/tpm/tpm-dev.c | 41 ++- drivers/clk/clk-si5351.c | 10 +- drivers/clk/qcom/clk-rcg2.c | 1 + drivers/crypto/padlock-aes.c | 8 +- drivers/dma/k3dma.c | 2 +- drivers/gpu/drm/drm_context.c | 2 +- drivers/gpu/drm/nouveau/nouveau_drm.c | 7 - drivers/gpu/drm/nouveau/nouveau_gem.c | 4 +- drivers/gpu/drm/udl/udl_fb.c | 5 +- drivers/gpu/drm/udl/udl_transfer.c | 11 +- drivers/hid/hid-ids.h | 3 + drivers/hid/hid-input.c | 20 +- drivers/hid/usbhid/hid-quirks.c | 1 + drivers/hid/usbhid/hiddev.c | 11 + drivers/infiniband/core/uverbs_cmd.c | 27 +- drivers/infiniband/hw/mlx4/mad.c | 1 - drivers/infiniband/hw/mlx5/srq.c | 18 +- drivers/infiniband/hw/qib/qib.h | 3 +- drivers/infiniband/hw/qib/qib_file_ops.c | 10 +- drivers/infiniband/hw/qib/qib_user_pages.c | 20 +- drivers/infiniband/ulp/ipoib/ipoib.h | 2 +- drivers/infiniband/ulp/ipoib/ipoib_main.c | 33 +- drivers/infiniband/ulp/isert/ib_isert.c | 27 +- drivers/input/mouse/elantech.c | 28 +- drivers/input/serio/i8042-x86ia64io.h | 14 + drivers/iommu/dmar.c | 8 +- drivers/leds/led-triggers.c | 12 +- drivers/md/dm-bufio.c | 15 +- drivers/md/dm-thin.c | 11 +- drivers/media/dvb-core/dvb_frontend.c | 23 +- drivers/media/dvb-frontends/drxd_hard.c | 3 +- drivers/media/dvb-frontends/drxk_hard.c | 3 +- drivers/media/i2c/smiapp/smiapp-core.c | 11 +- drivers/media/platform/davinci/ccdc_hw_device.h | 10 - drivers/media/platform/davinci/dm355_ccdc.c | 92 +----- drivers/media/platform/davinci/dm644x_ccdc.c | 151 +-------- drivers/media/platform/davinci/vpfe_capture.c | 75 ----- drivers/media/platform/omap3isp/isp.c | 7 - drivers/media/rc/imon.c | 2 +- drivers/media/rc/ir-mce_kbd-decoder.c | 2 + drivers/media/usb/cx231xx/cx231xx-cards.c | 3 + drivers/media/usb/uvc/uvc_video.c | 24 +- drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 2 +- drivers/media/v4l2-core/v4l2-event.c | 38 +-- drivers/media/v4l2-core/v4l2-fh.c | 2 + drivers/mfd/tps65911-comparator.c | 17 +- drivers/misc/ibmasm/ibmasmfs.c | 27 +- drivers/mmc/host/sdhci-esdhc-imx.c | 18 +- drivers/mtd/chips/cfi_cmdset_0002.c | 51 ++-- drivers/mtd/nand/mxc_nand.c | 5 +- drivers/mtd/nand/omap2.c | 340 +++++++-------------- drivers/net/can/cc770/cc770_platform.c | 2 +- drivers/net/can/dev.c | 78 +++++ drivers/net/can/grcan.c | 2 +- drivers/net/can/mscan/mpc5xxx_can.c | 7 +- drivers/net/can/sja1000/sja1000_platform.c | 2 +- drivers/net/can/usb/ems_usb.c | 1 + drivers/net/can/xilinx_can.c | 323 ++++++++++++++++---- drivers/net/ethernet/8390/ax88796.c | 1 - drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 1 + drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c | 2 +- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 1 - drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | 2 + .../net/ethernet/mellanox/mlx4/resource_tracker.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 8 +- drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c | 2 + drivers/net/ethernet/renesas/sh_eth.c | 47 +-- drivers/net/ethernet/ti/davinci_emac.c | 4 +- drivers/net/usb/smsc75xx.c | 62 ++++ drivers/net/wireless/brcm80211/brcmfmac/p2p.c | 2 +- .../net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 7 +- .../net/wireless/brcm80211/brcmfmac/wl_cfg80211.h | 2 +- drivers/net/wireless/mwifiex/pcie.c | 3 +- drivers/net/wireless/p54/fwio.c | 2 +- drivers/net/wireless/rtlwifi/rtl8723be/hw.c | 2 +- drivers/net/xen-netfront.c | 295 +++++++----------- drivers/of/platform.c | 4 +- drivers/of/selftest.c | 8 +- drivers/pci/hotplug/ibmphp_core.c | 2 +- drivers/pci/hotplug/pciehp.h | 2 +- drivers/pci/hotplug/pciehp_core.c | 2 +- drivers/pci/hotplug/pciehp_hpc.c | 13 +- drivers/pci/hotplug/shpchp_ctrl.c | 8 +- drivers/pinctrl/pinctrl-exynos.c | 2 +- drivers/platform/x86/eeepc-laptop.c | 36 +-- drivers/pwm/pwm-lpss.c | 24 ++ drivers/regulator/max8998.c | 3 +- drivers/s390/net/qeth_core.h | 11 + drivers/s390/net/qeth_core_main.c | 22 +- drivers/s390/scsi/zfcp_dbf.c | 39 +++ drivers/s390/scsi/zfcp_erp.c | 123 ++++++-- drivers/s390/scsi/zfcp_ext.h | 5 + drivers/s390/scsi/zfcp_scsi.c | 18 +- drivers/scsi/fnic/fnic_fcs.c | 3 +- drivers/scsi/qla2xxx/qla_init.c | 10 +- drivers/scsi/qla2xxx/qla_os.c | 5 +- drivers/scsi/qlogicpti.c | 6 +- drivers/scsi/sg.c | 42 ++- drivers/scsi/sr.c | 33 +- drivers/spi/spi-pxa2xx.c | 18 +- drivers/staging/android/ion/ion.c | 5 +- drivers/staging/android/ion/ion_heap.c | 2 +- drivers/staging/iio/meter/ade7854-i2c.c | 26 +- drivers/staging/iio/meter/ade7854.c | 10 +- .../staging/iio/trigger/iio-trig-periodic-rtc.c | 6 +- .../staging/rtl8192ee/btcoexist/halbtc8821a2ant.c | 4 +- drivers/staging/rtl8192ee/rtl8192ee/hw.c | 14 +- drivers/staging/usbip/stub_rx.c | 11 +- drivers/staging/vt6656/dpc.c | 4 +- drivers/staging/vt6656/main_usb.c | 23 +- drivers/target/target_core_pr.c | 22 +- drivers/tty/n_tty.c | 55 ++-- drivers/tty/serial/amba-pl011.c | 15 + drivers/tty/vt/vt.c | 76 ++--- drivers/usb/class/cdc-acm.c | 6 + drivers/usb/core/hub.c | 12 +- drivers/usb/core/quirks.c | 4 + drivers/usb/gadget/f_uac2.c | 8 +- drivers/usb/gadget/printer.c | 13 +- drivers/usb/host/xhci-mem.c | 2 +- drivers/usb/misc/usb3503.c | 3 +- drivers/usb/serial/ch341.c | 2 +- drivers/usb/serial/cp210x.c | 15 + drivers/usb/serial/keyspan_pda.c | 4 +- drivers/usb/serial/mos7840.c | 3 + drivers/vhost/net.c | 3 +- drivers/video/backlight/as3711_bl.c | 45 ++- drivers/video/backlight/max8925_bl.c | 4 +- drivers/video/backlight/tps65217_bl.c | 4 +- drivers/video/fbdev/omap/lcd_ams_delta.c | 4 + drivers/video/fbdev/omap/lcd_h3.c | 4 + drivers/video/fbdev/omap/lcd_htcherald.c | 4 + drivers/video/fbdev/omap/lcd_inn1510.c | 4 + drivers/video/fbdev/omap/lcd_inn1610.c | 4 + drivers/video/fbdev/omap/lcd_osk.c | 4 + drivers/video/fbdev/omap/lcd_palmte.c | 4 + drivers/video/fbdev/omap/lcd_palmtt.c | 4 + drivers/video/fbdev/omap/lcd_palmz71.c | 4 + drivers/virtio/virtio_balloon.c | 2 + drivers/w1/masters/mxc_w1.c | 20 +- drivers/w1/slaves/w1_bq27000.c | 4 +- drivers/w1/w1.c | 2 +- drivers/w1/w1_family.h | 1 + drivers/xen/events/events_base.c | 2 - fs/binfmt_elf.c | 46 +-- fs/binfmt_misc.c | 12 +- fs/btrfs/inode.c | 33 +- fs/cachefiles/bind.c | 3 +- fs/cachefiles/namei.c | 3 +- fs/cachefiles/rdwr.c | 17 +- fs/ceph/dir.c | 39 +++ fs/ceph/inode.c | 1 + fs/ceph/super.h | 9 + fs/ceph/xattr.c | 10 +- fs/cifs/cifsglob.h | 5 +- fs/cifs/cifsproto.h | 1 + fs/cifs/cifssmb.c | 10 +- fs/cifs/connect.c | 7 +- fs/cifs/smb1ops.c | 1 + fs/cifs/smb2file.c | 11 +- fs/cifs/smb2ops.c | 13 +- fs/cifs/smb2pdu.c | 33 +- fs/cifs/smb2pdu.h | 6 +- fs/cifs/smb2transport.c | 1 + fs/cifs/transport.c | 18 +- fs/dcache.c | 85 +++--- fs/ext4/balloc.c | 3 + fs/ext4/file.c | 90 +++--- fs/ext4/ialloc.c | 5 +- fs/ext4/inline.c | 18 +- fs/ext4/inode.c | 70 +++-- fs/ext4/resize.c | 2 +- fs/ext4/super.c | 75 +++-- fs/ext4/xattr.c | 31 +- fs/fat/inode.c | 20 +- fs/fscache/cache.c | 2 +- fs/fscache/cookie.c | 7 +- fs/fscache/object.c | 1 + fs/fscache/operation.c | 6 +- fs/fuse/control.c | 13 +- fs/fuse/dir.c | 13 +- fs/fuse/inode.c | 1 + fs/namespace.c | 27 +- fs/nfs/idmap.c | 5 +- fs/nfsd/auth.c | 2 +- fs/nfsd/nfs4xdr.c | 5 +- fs/proc/task_mmu.c | 74 ++--- fs/proc/task_nommu.c | 32 +- fs/reiserfs/prints.c | 141 +++++---- fs/squashfs/block.c | 2 + fs/squashfs/cache.c | 3 + fs/squashfs/file.c | 8 +- fs/squashfs/fragment.c | 4 +- fs/squashfs/squashfs_fs.h | 6 + fs/udf/directory.c | 3 + include/linux/blkdev.h | 4 +- include/linux/can/dev.h | 3 + include/linux/compiler.h | 2 +- include/linux/cred.h | 9 + include/linux/dcache.h | 17 -- include/linux/fs.h | 5 + include/linux/libata.h | 1 + include/linux/mfd/as3711.h | 4 +- include/linux/mm.h | 3 +- include/linux/perf_event.h | 8 + include/linux/ring_buffer.h | 1 + include/linux/string.h | 2 +- include/media/davinci/dm644x_ccdc.h | 12 - include/media/davinci/vpfe_capture.h | 10 - include/media/v4l2-fh.h | 1 + include/net/af_vsock.h | 4 +- include/net/net_namespace.h | 1 + include/net/netns/ipv6.h | 1 - include/sound/core.h | 2 +- include/uapi/linux/can/error.h | 1 + include/uapi/linux/kexec.h | 6 - include/uapi/linux/vt.h | 1 - kernel/events/core.c | 21 +- kernel/gcov/base.c | 12 + kernel/gcov/gcc_4_7.c | 6 +- kernel/kthread.c | 8 +- kernel/power/wakelock.c | 1 + kernel/sched/core.c | 2 +- kernel/sched/fair.c | 14 +- kernel/sched/sched.h | 2 + kernel/time.c | 6 +- kernel/time/tick-sched.c | 2 +- kernel/trace/ring_buffer.c | 16 + kernel/trace/trace.c | 6 + kernel/trace/trace_events_trigger.c | 18 +- kernel/trace/trace_functions_graph.c | 7 +- kernel/trace/trace_kprobe.c | 15 +- mm/hugetlb.c | 1 + mm/ksm.c | 16 +- mm/mlock.c | 2 - mm/mmap.c | 13 +- mm/page_alloc.c | 3 +- mm/rmap.c | 4 + mm/swapfile.c | 2 +- mm/util.c | 34 +-- net/batman-adv/Makefile | 2 +- net/batman-adv/debugfs.c | 48 ++- net/batman-adv/debugfs.h | 45 +++ net/batman-adv/hard-interface.c | 37 ++- net/batman-adv/translation-table.c | 7 +- net/caif/caif_dev.c | 4 +- net/core/rtnetlink.c | 8 +- net/core/skbuff.c | 1 + net/dccp/ccids/ccid2.c | 6 +- net/dns_resolver/dns_key.c | 28 +- net/ipv4/fib_frontend.c | 5 +- net/ipv4/fib_semantics.c | 2 + net/ipv4/igmp.c | 3 +- net/ipv6/ip6mr.c | 3 +- net/ipv6/mcast.c | 12 +- net/ipv6/netfilter/nf_conntrack_reasm.c | 6 +- net/l2tp/l2tp_netlink.c | 6 + net/l2tp/l2tp_ppp.c | 76 +++-- net/netfilter/nf_log.c | 9 +- net/netfilter/nfnetlink_queue_core.c | 3 + net/netlink/af_netlink.c | 5 + net/packet/af_packet.c | 10 +- net/sched/act_simple.c | 14 +- net/sctp/outqueue.c | 48 ++- net/socket.c | 2 + net/vmw_vsock/af_vsock.c | 15 +- net/vmw_vsock/vmci_transport.c | 3 +- net/wireless/util.c | 2 + net/xfrm/xfrm_policy.c | 3 + net/xfrm/xfrm_user.c | 18 +- scripts/kconfig/confdata.c | 2 +- scripts/mod/devicetable-offsets.c | 3 + scripts/mod/file2alias.c | 11 + sound/core/device.c | 9 + sound/core/timer.c | 2 +- sound/isa/msnd/msnd_pinnacle_mixer.c | 3 +- sound/pci/hda/hda_controller.c | 4 +- sound/pci/hda/patch_ca0132.c | 8 +- sound/pci/hda/patch_conexant.c | 1 + sound/pci/hda/patch_realtek.c | 1 + sound/soc/cirrus/edb93xx.c | 2 +- sound/soc/cirrus/ep93xx-i2s.c | 26 +- sound/soc/cirrus/snappercl15.c | 2 +- sound/soc/soc-dapm.c | 2 + tools/arch/x86/include/asm/unistd_32.h | 9 + tools/arch/x86/include/asm/unistd_64.h | 9 + tools/include/linux/compiler.h | 9 + tools/perf/Makefile.perf | 2 - tools/perf/builtin-script.c | 82 +++-- tools/perf/builtin-top.c | 2 +- tools/perf/builtin-trace.c | 5 +- tools/perf/config/Makefile | 1 + tools/perf/perf-sys.h | 18 -- tools/perf/tests/attr.c | 4 +- tools/perf/tests/pmu.c | 2 +- tools/perf/util/cgroup.c | 2 +- tools/perf/util/event.c | 12 +- tools/perf/util/include/asm/unistd_32.h | 1 - tools/perf/util/include/asm/unistd_64.h | 1 - tools/perf/util/pager.c | 5 +- tools/perf/util/parse-events.c | 64 ++-- tools/perf/util/pmu.c | 2 +- tools/perf/util/setup.py | 1 + tools/perf/util/thread.c | 2 +- tools/perf/util/thread_map.c | 10 +- tools/perf/util/util.h | 2 + tools/power/x86/turbostat/turbostat.c | 4 +- 354 files changed, 3349 insertions(+), 2345 deletions(-)
??? (1):
Input: elantech - fix V4 report decoding for module with middle key
Aaron Ma (1):
Input: elantech - enable middle button of touchpads on ThinkPad P52
Al Viro (6):
root dentries need RCU-delayed freeing
fix mntput/mntput race
fix __legitimize_mnt()/mntput() race
use ->d_seq to get coherency between ->d_inode and ->d_flags unify dentry_iput() and dentry_unlink_inode()
make sure that __dentry_kill() always invalidates d_seq, unhashed or not
Alex Estrin (1):
IB/isert: Fix for lib/dma_debug check_sync warning
Alex Vesker (2):
net/mlx5: Fix incorrect raw command length parsing net/mlx5: Fix command interface race in polling mode
Alexander Potapenko (1):
vt: prevent leaking uninitialized data to userspace via /dev/vcs*
Alexander Sverdlin (2):
ASoC: cirrus: i2s: Fix LRCLK configuration
ASoC: cirrus: i2s: Fix {TX|RX}LinCtrlData setup
Alexey Brodkin (1):
ARC: Fix CONFIG_SWAP
Alexey Kodanev (1):
dccp: fix undefined behavior with 'cwnd' shift in ccid2_cwnd_restart()
Amir Goldstein (3):
ext4: factor out helper ext4_sample_last_mounted()
vfs: add the sb_start_intwrite_trylock() helper
ext4: do not update s_last_mounted of a frozen fs
Andre Przywara (1):
arm64: add missing data types in smp_load_acquire/smp_store_release
Andrea Arcangeli (1):
ksm: add cond_resched() to the rmap_walks
Andrew F. Davis (1):
rpmsg: Correct support for MODULE_DEVICE_TABLE()
Andrew Morton (1):
arch/x86/kernel/cpu/common.c: fix unused symbol warning
Andri Yngvason (1):
can: dev: Consolidate and unify state change handling
Andy Lutomirski (1):
fs/proc: Stop trying to report thread stacks
Aneesh Kumar K.V (1):
powerpc/mm/hash: Add missing isync prior to kernel stack SLB switch
Anil Gurumurthy (1):
scsi: qla2xxx: Return error when TMF returns
Anna-Maria Gleixner (1):
nohz: Fix local_timer_softirq_pending()
Anssi Hannula (6):
can: xilinx_can: fix device dropping off bus on RX overrun
can: xilinx_can: fix RX loop if RXNEMP is asserted without RXOK
can: xilinx_can: fix recovery from error states not being propagated
can: xilinx_can: keep only 1-2 frames in TX FIFO to fix TX accounting
can: xilinx_can: fix RX overflow interrupt not being enabled
can: xilinx_can: fix incorrect clear of non-processed interrupts
Anton Vasilyev (1):
can: ems_usb: Fix memory leak on ems_usb_disconnect()
Arnaldo Carvalho de Melo (10):
perf tools: Move syscall number fallbacks from perf-sys.h to tools/arch/x86/include/asm/ perf script: Use readdir() instead of deprecated readdir_r()
perf thread_map: Use readdir() instead of deprecated readdir_r()
perf tools: Use readdir() instead of deprecated readdir_r()
perf tools: Use readdir() instead of deprecated readdir_r()
tools include: Add a __fallthrough statement
perf top: Use __fallthrough
perf trace: Fix up fd -> pathname resolution
perf trace: Do not process PERF_RECORD_LOST twice
perf thread_map: Correctly size buffer used with dirent->dt_name
Arnd Bergmann (3):
video/omap: add module license tags
ir-core: fix gcc-7 warning on bool arithmetic
arm64: use linux/types.h in kvm.h
Artem Savkov (1):
tracing/kprobes: Fix trace_probe flags on enable_trace_kprobe() failure
Bart Van Assche (1):
scsi: sr: Avoid that opening a CD-ROM hangs with runtime power management enabled
Ben Hutchings (11):
staging: vt6656: Fix misleading indentation
bcmgenet: Delete unused variable
staging: rtl8192ee: Fix misleading indentation
fnic: Fix misleading indentation
rtl8723be: Fix misleading indentation
Revert "mtd: nand: omap2: Fix subpage write" x86/cpufeatures: Hide AMD-specific speculation flags
string: drop __must_check from strscpy()
iio: iio-trig-periodic-rtc: Free trigger resource correctly x86/apic: Fix build failure with X86_IO_APIC disabled Linux 3.16.61
Bin Liu (1):
usb: core: handle hub C_PORT_OVER_CURRENT condition
Bjorn Helgaas (1):
PCI: shpchp: Fix AMD POGO identification
Bo Chen (1):
ALSA: hda - Handle kzalloc() failure in snd_hda_attach_pcm_stream()
Boris Brezillon (1):
m68k: Implement ndelay() as an inline function to force type checking/casting
Boris Ostrovsky (1):
xen: Remove unnecessary BUG_ON from __unbind_from_irq()
Borislav Petkov (1):
x86/mce: Do not overwrite MCi_STATUS in mce_no_way_out()
Cannon Matthews (1):
mm: hugetlb: yield when prepping struct pages
Changbin Du (1):
tracing: Fix missing return symbol in function_graph output
Chanho Park (1):
perf tools: define _DEFAULT_SOURCE for glibc_2.20
Chas Williams (1):
net/xen-netfront: only clean up queues if present
Chen-Yu Tsai (1):
Input: i8042 - add Lenovo LaVie Z to the i8042 reset list
Christophe Jaillet (1):
scsi: qlogicpti: Fix an error handling path in 'qpti_sbus_probe()'
Colin Ian King (2):
media: smiapp: fix timeout checking in smiapp_read_nvm
libata: zpodd: make arrays cdb static, reduces object code size
Cong Wang (1):
vsock: split dwork to avoid reinitializations
Corey Minyard (1):
ipmi:bt: Set the timeout before doing a capabilities check
Dan Carpenter (10):
PCI: ibmphp: Fix use-before-set in get_max_bus_speed()
mwifiex: pcie: tighten a check in mwifiex_pcie_process_event_ready()
mfd: tps65911-comparator: Fix a build error
libata: zpodd: small read overflow in eject_tray()
dmaengine: k3dma: Off by one in k3_of_dma_simple_xlate()
USB: serial: ch341: fix type promotion bug in ch341_control_in()
xhci: xhci-mem: off by one in xhci_stream_id_to_ring()
qlogic: check kstrtoul() for errors
drm/nouveau/gem: off by one bugs in nouveau_gem_pushbuf_reloc_apply()
ALSA: msnd: add some missing curly braces
Dan Williams (2):
x86/speculation: Fix up array_index_nospec_mask() asm constraint x86/spectre_v1: Disable compiler optimizations over array_index_mask_nospec()
Daniel Axtens (1):
powerpc: make feature-fixup tests fortify-safe
Daniel Jordan (1):
mm/swapfile.c: fix swap_count comment about nonexistent SWAP_HAS_CONT
Dave Martin (1):
tty: pl011: Avoid spuriously stuck-off interrupts
Dave Wysochanski (1):
NFSv4: Fix possible 1-byte stack overflow in nfs_idmap_read_and_verify_message
David Disseldorp (1):
scsi: target: Fix truncated PR-in ReadKeys response
David Howells (1):
VFS: Impose ordering on accesses of d_inode and d_flags
David Rivshin (1):
ARM: 8764/1: kgdb: fix NUMREGBYTES so that gdb_regs[] is the correct size
David Vrabel (4):
xen-netfront: fix locking in connect error path
xen-netfront: release per-queue Tx and Rx resource when disconnecting
xen-netfront: use different locks for Rx and Tx stats
xen-netfront: properly destroy queues when removing device
Davide Caratti (1):
net/sched: act_simple: fix parsing of TCA_DEF_DATA
Dewet Thibaut (1):
x86/MCE: Remove min interval polling limitation
Dmitry Safonov (4):
iommu/vt-d: Ratelimit each dmar fault printing
netlink: Do not subscribe to non-existent groups
netlink: Don't shift with UB on nlk->ngroups
netlink: Don't shift on 64 for ngroups
Dmitry Torokhov (1):
Input: i8042 - add TUXEDO BU1406 (N24_25BU) to the nomux list
Doug Berger (1):
PM / wakeup: Only update last time for active wakeup sources
Doug Ledford (1):
RDMA/ipoib: Update paths on CLIENT_REREG/SM_CHANGE events
Douglas Anderson (1):
dm bufio: avoid sleeping while holding the dm_bufio lock
Eric Biggers (4):
ext4: correct endianness conversion in __xattr_check_inode()
ext4: don't read out of bounds when checking for in-inode xattrs
reiserfs: fix buffer overflow with long warning messages
KEYS: DNS: fix parsing multiple options
Eric Dumazet (6):
net/packet: refine check for priv area size
net: metrics: add proper netlink validation
rtnetlink: validate attributes in do_setlink()
netfilter: nf_queue: augment nfqa_cfg_policy
netfilter: ipv6: nf_defrag: reduce struct net memory waste
xfrm_user: prevent leaking 2 bytes of kernel memory
Eric Engestrom (1):
perf tools: Remove duplicate const qualifier
Eric W. Biederman (1):
signal/xtensa: Consistenly use SIGBUS in do_unaligned_user
Evan Green (1):
clk: qcom: Base rcg parent rate off plan frequency
Fabian Frederick (1):
can: constify of_device_id array
Florian Fainelli (1):
net: ethernet: davinci_emac: Fix printing of base address
Florian Meier (1):
gcov: add support for gcc version >= 6
Florian Westphal (2):
xfrm: free skb if nlsk pointer is NULL
atl1c: reserve min skb headroom
Geert Uytterhoeven (1):
time: Make sure jiffies_to_msecs() preserves non-zero time periods
Geoff Levand (1):
kexec: Fix make headers_check
Guillaume Nault (8):
l2tp: fix refcount leakage on PPPoL2TP sockets
l2tp: fix pseudo-wire type for sessions created by pppol2tp_connect()
l2tp: only accept PPP sessions in pppol2tp_connect()
l2tp: prevent pppol2tp_connect() from creating kernel sockets
l2tp: clean up stale tunnel or session in pppol2tp_connect's error path
l2tp: reject creation of non-PPP sessions on L2TPv2 tunnels
l2tp: filter out non-PPP sessions in pppol2tp_tunnel_ioctl()
l2tp: fix missing refcount drop in pppol2tp_tunnel_ioctl()
Gustavo A. R. Silva (2):
HID: hiddev: fix potential Spectre v1
net: cxgb3_main: fix potential Spectre v1
Hangbin Liu (2):
ipv6: mcast: fix unsolicited report interval after receiving querys
multicast: do not restore deleted record source filter mode to new one
Hans de Goede (4):
libata: Drop SanDisk SD7UB3Q*G1001 NOLPM quirk
pwm: lpss: platform: Save/restore the ctrl register over a suspend/resume ACPI / LPSS: Add missing prv_offset setting for byt/cht PWM devices
ahci: Disable LPM on Lenovo 50 series laptops with a too old BIOS
Herbert Xu (1):
crypto: padlock-aes - Fix Nano workaround data corruption
Himanshu Madhani (1):
scsi: qla2xxx: Fix setting lower transfer speed if GPSC fails
Houston Yaroschoff (1):
usb: cdc_acm: Add quirk for Uniden UBC125 scanner
Huacai Chen (1):
MIPS: io: Add barrier after register read in inX()
Huang Ying (1):
mm: /proc/pid/pagemap: hide swap entries from unprivileged users
Ingo Flaschberger (1):
1wire: family module autoload fails because of upper/lower case mismatch.
Jack Morgenstein (1):
net/mlx4_core: Save the qpn from the input modifier in RST2INIT wrapper
Jan Kara (2):
ext4: fix fencepost error in check for inode count overflow during resize
udf: Detect incorrect directory size
Jann Horn (3):
netfilter: nf_log: don't hold nf_log_mutex during user access
scsi: sg: mitigate read/write abuse
ibmasm: don't write out of bounds in read handler
Jason Wang (1):
vhost_net: validate sock before trying to put its fd
Jeff Layton (3):
nfsd: silence sparse warning about accessing credentials
ceph: don't set req->r_locked_dir in ceph_d_revalidate
ceph: fix endianness of getattr mask in ceph_d_revalidate
Jens Axboe (1):
sbitmap: fix race in wait batch accounting
Jeremy Cline (1):
net: socket: fix potential spectre v1 gadget in socketcall
Jia He (1):
mm/ksm.c: ignore STABLE_FLAG of rmap_item->address in rmap_walk_ksm()
Jiang Biao (1):
virtio_balloon: fix another race between migration and ballooning
Jiri Olsa (2):
perf tools: Fix snprint warnings for gcc 8 perf tools: Fix python extension build for gcc 8
Jiri Slaby (3):
tty: vt, remove reduntant check
tty: vt, get rid of weird source code flow
p54: memset(0) whole array
Joakim Tjernlund (4):
mtd: cfi_cmdset_0002: Use right chip in do_ppb_xxlock()
mtd: cfi_cmdset_0002: fix SEGV unlocking multiple chips
mtd: cfi_cmdset_0002: Fix unlocking requests crossing a chip boudary
mtd: cfi_cmdset_0002: Avoid walking all chips when unlocking.
Johan Hovold (7):
backlight: as3711_bl: Fix Device Tree node lookup
backlight: max8925_bl: Fix Device Tree node lookup
backlight: tps65217_bl: Fix Device Tree node lookup
backlight: as3711_bl: Fix Device Tree node leaks
USB: serial: cp210x: add CESINEL device ids
USB: serial: keyspan_pda: fix modem-status error handling
USB: serial: mos7840: fix status-register error handling
John Syne (2):
staging:iio:ade7854: Fix error handling on read/write staging:iio:ade7854: Fix the wrong number of bits to read
Jon Derrick (1):
ext4: check superblock mapped prior to committing
Joshua Frkuska (1):
usb: gadget: u_audio: update hw_ptr in iso_complete after data copied
Juergen Gross (1):
xen/netfront: don't cache skb_shinfo()
Julia Lawall (1):
bnx2x: use the right constant
Julian Wiedmann (1):
s390/qeth: don't clobber buffer on async TX completion
Kai-Heng Feng (1):
media: cx231xx: Add support for AverMedia DVD EZMaker 7
Kamal Heib (1):
RDMA/mlx5: Fix memory leak in mlx5_ib_create_srq() error path
Karoly Pados (1):
USB: serial: cp210x: add Silicon Labs IDs for Windows Update
Keerthy (1):
ARM: dts: da850: Fix interrups property for gpio
Kees Cook (2):
binfmt_elf: fix calculations for bss padding
mm: refuse wrapped vm_brk requests
Keith Busch (1):
block: Fix transfer when chunk sectors exceeds max
Kiran Kumar Modukuri (5):
fscache: Allow cancelled operations to be enqueued
cachefiles: Fix refcounting bug in backing-file read monitoring
fscache: Fix reference overput in fscache_attach_object() error handling
cachefiles: Fix missing clear of the CACHEFILES_OBJECT_ACTIVE flag
cachefiles: Wait rather than BUG'ing on "Unexpected object collision"
Konrad Rzeszutek Wilk (3):
x86/bugs: Add AMD's variant of SSB_NO
x86/bugs: Add AMD's SPEC_CTRL MSR usage
x86/bugs: Switch the selection of mitigation from CPU vendor to CPU features
Konstantin Khlebnikov (1):
pagemap: hide physical addresses from non-privileged users
Krzysztof Kozlowski (1):
clk: si5351: Constify clock names and struct regmap_config
Lars Persson (1):
cifs: Fix use after free of a mid_q_entry
Laura Abbott (2):
staging: android: ion: Switch to pr_warn_once in ion_buffer_destroy
staging: android: ion: Return an ERR_PTR in ion_map_kernel
Lee Jones (1):
mfd: tps65911-comparator: Fix an off by one bug
Leon Romanovsky (4):
RDMA/mlx4: Discard unknown SQP work requests RDMA/uverbs: Protect from attempts to create flows on unsupported QP RDMA/uverbs: Fix slab-out-of-bounds in ib_uverbs_ex_create_flow RDMA/uverbs: Don't fail in creation of multiple flows
Li, Liang Z (1):
xen-netfront: Remove the meaningless code
Linus Lüssing (2):
batman-adv: Avoid storing non-TT-sync flags on singular entries too
batman-adv: Fix multicast TT issues with bogus ROAM flags
Linus Torvalds (2):
squashfs: be more careful about metadata corruption
squashfs: more metadata hardening
Lorenzo Bianconi (1):
ipv4: remove BUG_ON() from fib_compute_spec_dst
Lorenzo Stoakes (1):
gcov: add support for GCC 5.1
Lubomir Rintel (1):
usb: cdc_acm: Add quirk for Castles VEGA3000
Lukas Czerner (1):
ext4: update mtime in ext4_punch_hole even if no blocks are released
Lyude Paul (1):
drm/nouveau: Remove bogus crtc check in pmops_runtime_idle
Maciej S. Szmigiero (1):
X.509: unpack RSA signatureValue field from BIT STRING
Mahesh Salgaonkar (1):
powerpc/fadump: Unregister fadump on kexec down path.
Marcelo Ricardo Leitner (1):
sctp: fix identification of new acks for SFR-CACC
Mark Rutland (1):
arm64: ensure extension of smp_store_release value
Markos Chandras (2):
MIPS: asm: compiler: Add new macros to set ISA and arch asm annotations
MIPS: asmmacro: Ensure 64-bit FP registers are used with MSA
Markus Pargmann (1):
batman-adv: debugfs, avoid compiling for !DEBUG_FS
Martin Kaiser (1):
mtd: rawnand: mxc: set spare area size register explicitly
Martin Liska (1):
gcov: support GCC 7.1
Masami Hiramatsu (1):
ring_buffer: tracing: Inherit the tracing setting to next ring buffer
Matt Turner (2):
tools/power turbostat: Correct SNB_C1/C3_AUTO_UNDEMOTE defines
x86: msr-index.h: Correct SNB_C1/C3_AUTO_UNDEMOTE defines
Mauro Carvalho Chehab (5):
drxk_hard: fix bad alignments
drxd_hard: fix bad alignments
media: omap3isp/isp: remove an unused static var
media: dvb_frontend: fix locking issues at dvb_frontend_get_event()
media: v4l2-compat-ioctl32: prevent go past max size
Max Gurtovoy (1):
IB/isert: fix T10-pi check mask setting
Maxim Moseychuk (1):
usb: do not reset if a low-speed or full-speed device timed out
Michael Ellerman (2):
powerpc/lib: Fix feature fixup test of external branch powerpc/lib: Fix the feature fixup tests to actually work
Michael Jeanson (1):
powerpc/e500mc: Set assembler machine type to e500mc
Michael Karcher (1):
net-next: ax88796: Do not free IRQ in ax_remove() (already freed in ax_close()).
Michael Neuling (2):
powerpc/ptrace: Fix enforcement of DAWR constraints powerpc/ptrace: Fix setting 512B aligned breakpoints with PTRACE_SET_DEBUGREG
Michael Schmitz (1):
m68k/mm: Adjust VM area to be unmapped by gap size for __iounmap()
Michal Hocko (2):
mm, elf: handle vm_brk error
mm: do not bug_on on incorrect length in __mm_populate()
Mika Westerberg (1):
PCI: pciehp: Clear Presence Detect and Data Link Layer Status Changed on resume
Mike Marciniszyn (1):
IB/qib: Fix DMA api warning with debug kernel
Mike Snitzer (1):
dm thin: handle running out of data space vs concurrent discard
Miklos Szeredi (2):
fuse: atomic_o_trunc should truncate pagecache
fuse: fix control dir setup and teardown
Mikulas Patocka (3):
branch-check: fix long->int truncation when profiling branches drm/udl: fix display corruption of the last line
dm bufio: drop the lock when doing GFP_NOIO allocation
Nathan Chancellor (1):
kconfig: Avoid format overflow warning from GCC 8.1
Nathan Sullivan (1):
leds: do not overflow sysfs buffer in led_trigger_show
NeilBrown (1):
w1: support auto-load of w1_bq27000 module.
Nicholas Mc Guire (2):
drm: re-enable error handling
can: mpc5xxx_can: check of_iomap return before use
Nico Sneck (1):
usb: quirks: add delay quirks for Corsair Strafe
OGAWA Hirofumi (1):
fat: fix memory allocation failure handling of match_strdup()
Olli Salonen (1):
USB: serial: cp210x: add another USB ID for Qivicon ZigBee stick
Omar Sandoval (3):
Btrfs: don't BUG_ON() in btrfs_truncate_inode_items()
Btrfs: don't return ino to ino cache if inode item removal fails
Btrfs: reserve space for O_TMPFILE orphan item deletion
Oscar Salvador (1):
fs, elf: make sure to page align bss in load_elf_library
Paul Bolle (1):
eeepc-laptop: simplify parse_arg()
Paul Burton (1):
MIPS: Fix off-by-one in pci_resource_to_user()
Paulo Alcantara (1):
cifs: Fix infinite loop when using hard mount option
Paweł Chmiel (2):
pinctrl: samsung: Correct EINTG banks order
regulator: max8998: Fix platform data retrieval.
Prabhakar Lad (1):
media: platform: davinci: drop VPFE_CMD_S_CCDC_RAW_PARAMS
Pranay Kr. Srivastava (1):
ext4: Fix WARN_ON_ONCE in ext4_commit_super()
Quinn Tran (1):
scsi: qla2xxx: Fix ISP recovery on unload
Rasmus Villemoes (1):
net/wireless/brcm80211/brcmfmac: Make return type and name reflect actual semantics
Ronnie Sahlberg (1):
cifs: store the leaseKey in the fid on SMB2_open
Ross Lagerwall (4):
xen-netfront: Improve error handling during initialization
xen-netfront: Fix race between device setup and open
xen-netfront: Fix mismatched rtnl_unlock
xen-netfront: Update features after registering netdev
Sabrina Dubroca (1):
ip6mr: only set ip6mr_table from setsockopt when ip6mr_new_table succeeds
Sakari Ailus (1):
media: v4l: event: Prevent freeing event subscriptions while accessed
Scott Mayhew (1):
nfsd: restrict rd_maxcount to svc_max_payload in nfsd_encode_readdir
Sean Young (1):
media: rc: mce_kbd decoder: fix stuck keys
Sergey Senozhatsky (1):
tools/lib/subcmd/pager.c: do not alias select() params
Shuah Khan (1):
usbip: stub_rx: fix static checker warning on unnecessary checks
Siarhei Liakh (1):
x86: Call fixup_exception() before notify_die() in math_error()
Simon Wunderlich (1):
batman-adv: unify flags access style in tt global add
Snild Dolkow (1):
kthread, tracing: Don't expose half-written comm when creating kthreads
Song Liu (1):
perf/core: Fix group scheduling with mixed hw and sw events
Srinivas Kandagatla (2):
ASoC: dapm: delete dapm_kcontrol_data paths list before freeing it
of: platform: stop accessing invalid dev in of_platform_device_destroy
Stefan Agner (1):
mmc: sdhci-esdhc-imx: allow 1.8V modes without 100/200MHz pinctrl states
Stefan M Schaeckeler (1):
of: unittest: for strings, account for trailing \0 in property length field
Stefan Potyra (1):
w1: mxc_w1: Enable clock before calling clk_get_rate() on it
Stefano Brivio (2):
cifs: Fix stack out-of-bounds in smb{2,3}_create_lease_buf()
skbuff: Unconditionally copy pfmemalloc in __skb_clone()
Steffen Maier (7):
scsi: zfcp: fix missing SCSI trace for result of eh_host_reset_handler
scsi: zfcp: fix missing SCSI trace for retry of abort / scsi_eh TMF
scsi: zfcp: fix misleading REC trigger trace where erp_action setup failed
scsi: zfcp: fix missing REC trigger trace on terminate_rport_io early return
scsi: zfcp: fix missing REC trigger trace on terminate_rport_io for ERP_FAILED
scsi: zfcp: fix missing REC trigger trace for all objects in ERP_FAILED
scsi: zfcp: fix missing REC trigger trace on enqueue without ERP thread
Steven Rostedt (VMware) (3):
tracing: Fix double free of event_trigger_data
tracing: Fix possible double free in event_enable_trigger_func()
tracing: Quiet gcc warning about maybe unused link variable
Sven Eckelmann (3):
cfg80211: initialize sinfo in cfg80211_get_station
batman-adv: Fix debugfs path for renamed hardif
batman-adv: Fix debugfs path for renamed softif
Tadeusz Struk (1):
tpm: fix race condition in tpm_common_write()
Takashi Iwai (5):
ALSA: core: Assure control device to be registered at last
ALSA: hda/conexant - Add fixup for HP Z2 G4 workstation
xen-netfront: Use static attribute groups for sysfs entries
ALSA: hda/realtek - Add a quirk for FSC ESPRIMO U9210
ALSA: timer: Fix UBSAN warning at SNDRV_TIMER_IOCTL_NEXT_DEVICE ioctl
Takashi Sakamoto (1):
ALSA: hda/ca0132: fix build failure when a local macro is defined
Tetsuo Handa (4):
driver core: Don't ignore class_dir_create_and_add() failure.
fuse: don't keep dead fuse_conn at fuse_fill_super().
n_tty: Fix stall at n_tty_receive_char_special().
n_tty: Access echo_* variables carefully.
Thadeu Lima de Souza Cascardo (1):
fs/binfmt_misc.c: do not allow offset overflow
Theodore Ts'o (7):
ext4: check if in-inode xattr is corrupted in ext4_expand_extra_isize_ea()
ext4: bubble errors from ext4_find_inline_data_nolock() up to ext4_iget()
ext4: include the illegal physical block in the bad map ext4_error msg
ext4: add more mount time checks of the superblock
ext4: fix inline data updates with checksums enabled
ext4: check for allocation block validity with block group locked
random: mix rdrand with entropy sent in from userspace
Thomas Richter (2):
perf: fix invalid bit in diagnostic entry s390/cpum_sf: Add data entry sizes to sampling trailer entry
Tobias Jordan (1):
spi: pxa2xx: check clk_prepare_enable() return value
Tokunori Ikegami (4):
mtd: cfi_cmdset_0002: Change write buffer to check correct value
mtd: cfi_cmdset_0002: Change definition naming to retry write operation
mtd: cfi_cmdset_0002: Change erase functions to retry for error
mtd: cfi_cmdset_0002: Change erase functions to check chip good only
Tom Lendacky (1):
x86/bugs: Fix the AMD SSBD usage of the SPEC_CTRL MSR
Tomasz Kramkowski (2):
HID: usbhid: add quirk for innomedia INNEX GENESIS/ATARI adapter
HID: clamp input to logical range if no null state
Tommi Rantala (1):
xfrm: fix missing dst_release() after policy blocking lbcast and multicast
Tushar Behera (1):
usb: misc: usb3503: Update error code in print message
Ulrik De Bie (1):
Input: elantech - report the middle button of the touchpad
Valtteri Heikkilä (1):
HID: reject input outside logical range only if null state is set
Ville Syrjälä (1):
x86/apm: Don't access __preempt_count with zeroed fs
Vineet Gupta (1):
ARC: mm: allow mprotect to make stack mappings executable
Vitaly Kuznetsov (1):
xen-netfront: avoid crashing on resume after a failure in talk_to_netback()
Vladimir Zapolskiy (1):
sh_eth: fix invalid context bug while changing link options by ethtool
Vlastimil Babka (1):
mm, page_alloc: do not break __GFP_THISNODE by zonelist reset
Wanpeng Li (1):
KVM: x86: fix escape of guest dr6 to the host
Willem de Bruijn (1):
packet: refine ring v3 block size test to hold one frame
Xunlei Pang (1):
sched/fair: Fix bandwidth timer clock drift condition
Yan, Zheng (2):
ceph: fix llistxattr on symlink
ceph: use lookup request to revalidate dentry
Yoshihiro Shimoda (2):
usb: gadget: function: printer: avoid spinlock recursion
usb: gadget: function: printer: avoid wrong list handling in printer_write()
YueHaibing (1):
net: caif: Add a missing rcu_read_unlock() in caif_flow_cb
Yuiko Oshino (1):
smsc75xx: Add workaround for gigabit link up hardware errata.
ming_qian (1):
media: uvcvideo: Support realtek's UVC 1.5 device
zhong jiang (1):
sched/topology: Make local variables static
Documentation/filesystems/proc.txt +1 -30
@@ -335,7 +335,7 @@ address perms offset dev inode pathname a7cb1000-a7cb2000 ---p 00000000 00:00 0 a7cb2000-a7eb2000 rw-p 00000000 00:00 0 a7eb2000-a7eb3000 ---p 00000000 00:00 0 -a7eb3000-a7ed5000 rw-p 00000000 00:00 0 [stack:1001] +a7eb3000-a7ed5000 rw-p 00000000 00:00 0 a7ed5000-a8008000 r-xp 00000000 03:00 4222 /lib/libc.so.6 a8008000-a800a000 r--p 00133000 03:00 4222 /lib/libc.so.6 a800a000-a800b000 rw-p 00135000 03:00 4222 /lib/libc.so.6
@@ -367,40 +367,11 @@ The "pathname" shows the name associated file for this mapping. If the mapping [heap] = the heap of the program [stack] = the stack of the main process - [stack:1001] = the stack of the thread with tid 1001 [vdso] = the "virtual dynamic shared object", the kernel system call handler or if empty, the mapping is anonymous. -The /proc/PID/task/TID/maps is a view of the virtual memory from the viewpoint -of the individual tasks of a process. In this file you will see a mapping marked -as [stack] if that task sees it as a stack. This is a key difference from the -content of /proc/PID/maps, where you will see all mappings that are being used -as stack by all of those tasks. Hence, for the example above, the task-level -map, i.e. /proc/PID/task/TID/maps for thread 1001 will look like this: - -08048000-08049000 r-xp 00000000 03:00 8312 /opt/test -08049000-0804a000 rw-p 00001000 03:00 8312 /opt/test -0804a000-0806b000 rw-p 00000000 00:00 0 [heap] -a7cb1000-a7cb2000 ---p 00000000 00:00 0 -a7cb2000-a7eb2000 rw-p 00000000 00:00 0 -a7eb2000-a7eb3000 ---p 00000000 00:00 0 -a7eb3000-a7ed5000 rw-p 00000000 00:00 0 [stack] -a7ed5000-a8008000 r-xp 00000000 03:00 4222 /lib/libc.so.6 -a8008000-a800a000 r--p 00133000 03:00 4222 /lib/libc.so.6 -a800a000-a800b000 rw-p 00135000 03:00 4222 /lib/libc.so.6 -a800b000-a800e000 rw-p 00000000 00:00 0 -a800e000-a8022000 r-xp 00000000 03:00 14462 /lib/libpthread.so.0 -a8022000-a8023000 r--p 00013000 03:00 14462 /lib/libpthread.so.0 -a8023000-a8024000 rw-p 00014000 03:00 14462 /lib/libpthread.so.0 -a8024000-a8027000 rw-p 00000000 00:00 0 -a8027000-a8043000 r-xp 00000000 03:00 8317 /lib/ld-linux.so.2 -a8043000-a8044000 r--p 0001b000 03:00 8317 /lib/ld-linux.so.2 -a8044000-a8045000 rw-p 0001c000 03:00 8317 /lib/ld-linux.so.2 -aff35000-aff4a000 rw-p 00000000 00:00 0 -ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] - The /proc/PID/smaps is an extension based on maps, showing the memory consumption for each of the process's mappings. For each of mappings there is a series of lines such as the following:
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 16 -SUBLEVEL = 60 +SUBLEVEL = 61 EXTRAVERSION = NAME = Museum of Fishiegoodies
arch/arc/include/asm/page.h +1 -1
@@ -97,7 +97,7 @@ typedef unsigned long pgtable_t;#define virt_addr_valid (kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)/* Default Permissions for stack/heaps pages (Non Executable) */ -#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE) +#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)#define WANT_PAGE_VIRTUAL 1
arch/arc/include/asm/pgtable.h +1 -1
@@ -361,7 +361,7 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,/* Decode a PTE containing swap "identifier "into constituents */ #define __swp_type (pte_lookalike) (((pte_lookalike).val) & 0x1f) -#define __swp_offset (pte_lookalike) ((pte_lookalike).val << 13) +#define __swp_offset (pte_lookalike) ((pte_lookalike).val >> 13)/* NOPs, to keep generic kernel happy */ #define __pte_to_swp_entry (pte) ((swp_entry_t) { pte_val(pte) })
arch/arm/boot/dts/da850.dtsi +1 -5
@@ -261,11 +261,7 @@ compatible = "ti,dm6441-gpio"; gpio-controller; reg = <0x226000 0x1000>; - interrupts = <42 IRQ_TYPE_EDGE_BOTH - 43 IRQ_TYPE_EDGE_BOTH 44 IRQ_TYPE_EDGE_BOTH - 45 IRQ_TYPE_EDGE_BOTH 46 IRQ_TYPE_EDGE_BOTH - 47 IRQ_TYPE_EDGE_BOTH 48 IRQ_TYPE_EDGE_BOTH - 49 IRQ_TYPE_EDGE_BOTH 50 IRQ_TYPE_EDGE_BOTH>; + interrupts = <42 43 44 45 46 47 48 49 50>; ti,ngpio = <144>; ti,davinci-gpio-unbanked = <0>; status = "disabled";
arch/arm/include/asm/kgdb.h +1 -1
@@ -76,7 +76,7 @@ extern int kgdb_fault_expected;#define KGDB_MAX_NO_CPUS 1#define BUFMAX 400 -#define NUMREGBYTES (DBG_MAX_REG_NUM << 2) +#define NUMREGBYTES (GDB_MAX_REGS << 2)#define NUMCRITREGBYTES (32 << 2)#define _R0 0
arch/arm64/include/asm/barrier.h +20 -0
@@ -64,6 +64,18 @@ do { \ { .__val = (__force typeof(*p)) (v) }; \compiletime_assert_atomic_type (*p); \switch (sizeof (*p)) { \ +case 1 : \ + asmvolatile ("stlrb %w1, %0" \ + :"=Q" (*p) \ + :"r" (*(__u8 *)__u.__c) \ + :"memory" ); \ +break ; \ +case 2 : \ + asmvolatile ("stlrh %w1, %0" \ + :"=Q" (*p) \ + :"r" (*(__u16 *)__u.__c) \ + :"memory" ); \ +break ; \case 4 : \ asmvolatile ("stlr %w1, %0" \ : "=Q" (*p) \
@@ -84,6 +96,14 @@ do { \ typeof(*p) ___p1; \compiletime_assert_atomic_type (*p); \switch (sizeof (*p)) { \ +case 1 : \ + asmvolatile ("ldarb %w0, %1" \ + :"=r" (___p1) :"Q" (*p) :"memory" ); \ +break ; \ +case 2 : \ + asmvolatile ("ldarh %w0, %1" \ + :"=r" (___p1) :"Q" (*p) :"memory" ); \ +break ; \case 4 : \ asmvolatile ("ldar %w0, %1" \ :"=r" (___p1) :"Q" (*p) :"memory" ); \
arch/arm64/include/uapi/asm/kvm.h +1 -1
@@ -32,7 +32,7 @@#ifndef __ASSEMBLY__#include <linux/psci.h> -#include <asm/types.h> +#include <linux/types.h> #include <asm/ptrace.h> #define __KVM_HAVE_GUEST_DEBUG
arch/m68k/include/asm/delay.h +8 -3
@@ -48,8 +48,6 @@ extern void __bad_udelay(void);* The simpler m68k and ColdFire processors do not have a 32*32->64 * multiply instruction. So we need to handle them a little differently. * We use a bit of shifting and a single 32*32->32 multiply to get close. -* This is a macro so that the const version can factor out the first -* multiply and shift. */ #define HZSCALE (268435456 / (1000000 / HZ))
@@ -114,6 +112,13 @@ static inline void __udelay(unsigned long usecs)*/ #define HZSCALE (268435456 / (1000000 / HZ)) -#define ndelay (n) __delay(DIV_ROUND_UP((n) * ((((HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6), 1000)) +static inline void ndelay (unsigned long nsec) +{ +__delay (DIV_ROUND_UP (nsec * + ((((HZSCALE ) >>11 ) * + (loops_per_jiffy >>11 )) >>6 ), +1000 )); +} +#define ndelay (n) ndelay(n)#endif /* defined(_M68K_DELAY_H) */
arch/m68k/mm/kmap.c +2 -1
@@ -88,7 +88,8 @@ static inline void free_io_area(void *addr)for (p = &iolist ; (tmp = *p) ; p = &tmp->next) {if (tmp->addr == addr) { *p = tmp->next; -__iounmap (tmp->addr, tmp->size); +/* remove gap added in get_io_area() */ +__iounmap (tmp->addr, tmp->size -IO_SIZE );kfree (tmp);return ; }
arch/mips/include/asm/asmmacro.h +11 -0
@@ -209,9 +209,13 @@ .endm#ifdef TOOLCHAIN_SUPPORTS_MSA +/* preprocessor replaces the fp in ".set fp=64" with $30 otherwise */ +#undef fp + .macro _cfcmsa rd, cs .set push .set mips32r2 + .set fp=64 .set msa cfcmsa \rd, $\cs .set pop
@@ -220,6 +224,7 @@ .macro _ctcmsa cd, rs .set push .set mips32r2 + .set fp=64 .set msa ctcmsa $\cd, \rs .set pop
@@ -228,6 +233,7 @@ .macro ld_d wd, off, base .set push .set mips32r2 + .set fp=64 .set msa ld.d $w\wd, \off(\base) .set pop
@@ -236,6 +242,7 @@ .macro st_d wd, off, base .set push .set mips32r2 + .set fp=64 .set msa st.d $w\wd, \off(\base) .set pop
@@ -244,6 +251,7 @@ .macro copy_u_w ws, n .set push .set mips32r2 + .set fp=64 .set msa copy_u.w $1, $w\ws[\n] .set pop
@@ -252,6 +260,7 @@ .macro copy_u_d ws, n .set push .set mips64r2 + .set fp=64 .set msa copy_u.d $1, $w\ws[\n] .set pop
@@ -260,6 +269,7 @@ .macro insert_w wd, n .set push .set mips32r2 + .set fp=64 .set msa insert.w $w\wd[\n], $1 .set pop
@@ -268,6 +278,7 @@ .macro insert_d wd, n .set push .set mips64r2 + .set fp=64 .set msa insert.d $w\wd[\n], $1 .set pop
arch/mips/include/asm/compiler.h +6 -0
@@ -16,4 +16,10 @@#define GCC_REG_ACCUM "accum"#endif +/* MIPS64 is a superset of MIPS32 */ +#define MIPS_ISA_LEVEL "mips64r2" +#define MIPS_ISA_ARCH_LEVEL "arch=r4000" +#define MIPS_ISA_LEVEL_RAW mips64r2 +#define MIPS_ISA_ARCH_LEVEL_RAW MIPS_ISA_LEVEL_RAW +#endif /* _ASM_COMPILER_H */
arch/mips/include/asm/io.h +2 -0
@@ -410,6 +410,8 @@ static inline type pfx##in##bwlq##p(unsigned long port) \ __val = *__addr; \ slow; \ \ +/* prevent prefetching of coherent DMA data prematurely */ \ +rmb (); \ return pfx##ioswab##bwlq(__addr, __val); \ }
arch/mips/include/asm/pci.h +1 -1
@@ -87,7 +87,7 @@ static inline void pci_resource_to_user(const struct pci_dev *dev, int bar,phys_t size =resource_size (rsrc); *start =fixup_bigphys_addr (rsrc->start, size); - *end = rsrc->start + size; + *end = rsrc->start + size -1 ; }/*
arch/powerpc/Makefile +1 -0
@@ -205,6 +205,7 @@ endif cpu-as-$(CONFIG_4xx) += -Wa,-m405 cpu-as-$(CONFIG_ALTIVEC) += -Wa,-maltivec cpu-as-$(CONFIG_E200) += -Wa,-me200 +cpu-as-$(CONFIG_PPC_E500MC) += $(call as-option,-Wa$(comma)-me500mc) KBUILD_AFLAGS += $(cpu-as-y) KBUILD_CFLAGS += $(cpu-as-y)
arch/powerpc/kernel/entry_64.S +1 -0
@@ -525,6 +525,7 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_1T_SEGMENT) * actually hit this code path. */ + isync slbie r6 slbie r6 /* Workaround POWER5 < DD2.1 issue */ slbmte r7,r0
arch/powerpc/kernel/fadump.c +3 -0
@@ -1025,6 +1025,9 @@ void fadump_cleanup(void)init_fadump_mem_struct (&fdm, fdm_active->cpu_state_data.destination_address);fadump_invalidate_dump (&fdm); + }else if (fw_dump.dump_registered) { +/* Un-register Firmware-assisted dump if it was registered. */ +fadump_unregister_dump (&fdm); } }
arch/powerpc/kernel/hw_breakpoint.c +2 -2
@@ -174,8 +174,8 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp)if (cpu_has_feature (CPU_FTR_DAWR )) { length_max =512 ;/* 64 doublewords */ /* DAWR region can't cross 512 boundary */ -if ((bp->attr.bp_addr >>10 ) != - ((bp->attr.bp_addr + bp->attr.bp_len -1 ) >>10 )) +if ((bp->attr.bp_addr >>9 ) != + ((bp->attr.bp_addr + bp->attr.bp_len -1 ) >>9 ))return -EINVAL ; } if (info->len >
arch/powerpc/kernel/ptrace.c +1 -0
@@ -1011,6 +1011,7 @@ int ptrace_set_debugreg(struct task_struct *task, unsigned long addr,/* Create a new breakpoint request if one doesn't exist already */ hw_breakpoint_init (&attr); attr.bp_addr = hw_brk.address; + attr.bp_len =8 ;arch_bp_generic_fields (hw_brk.type, &attr.bp_type);
arch/powerpc/lib/feature-fixups-test.S +2 -2
@@ -167,9 +167,9 @@ globl(ftr_fixup_test6_expected) blt 2b b 3f b 1b -2: or 1,1,1 +3: or 1,1,1 or 2,2,2 -3: or 3,3,3 + or 3,3,3 #if 0
arch/powerpc/lib/feature-fixups.c +90 -90
282 lines not on this page · raw message
arch/s390/include/asm/cpu_mf.h +4 -2
@@ -118,7 +118,7 @@ struct hws_basic_entry {struct hws_diag_entry {unsigned int def:16 ;/* 0-15 Data Entry Format */ -unsigned int R:14 ;/* 16-19 and 20-30 reserved */ +unsigned int R:15 ;/* 16-19 and 20-30 reserved */ unsigned int I:1 ;/* 31 entry valid or invalid */ u8 data[];/* Machine-dependent sample data */ } __packed;
@@ -134,7 +134,9 @@ struct hws_trailer_entry { unsigned int f:1; /* 0 - Block Full Indicator */ unsigned int a:1; /* 1 - Alert request control */ unsigned int t:1; /* 2 - Timestamp format */ - unsigned long long:61; /* 3 - 63: Reserved */ + unsigned int :29; /* 3 - 31: Reserved */ + unsigned int bsdes:16; /* 32-47: size of basic SDE */ + unsigned int dsdes:16; /* 48-63: size of diagnostic SDE */ };unsigned long long flags;/* 0 - 63: All indicators */ };
arch/x86/include/asm/apm.h +0 -6
@@ -6,8 +6,6 @@#ifndef _ASM_X86_MACH_DEFAULT_APM_H#define _ASM_X86_MACH_DEFAULT_APM_H -#include <asm/nospec-branch.h> -#ifdef APM_ZERO_SEGS # define APM_DO_ZERO_SEGS \ "pushl %%ds\n\t" \
@@ -33,7 +31,6 @@ static inline void apm_bios_call_asm(u32 func, u32 ebx_in, u32 ecx_in,* N.B. We do NOT need a cld after the BIOS call * because we always save and restore the flags. */ -firmware_restrict_branch_speculation_start (); __asm__ __volatile__(APM_DO_ZERO_SEGS "pushl %%edi\n\t" "pushl %%ebp\n\t"
@@ -46,7 +43,6 @@ static inline void apm_bios_call_asm(u32 func, u32 ebx_in, u32 ecx_in, "=S" (*esi) : "a" (func), "b" (ebx_in), "c" (ecx_in) : "memory", "cc"); -firmware_restrict_branch_speculation_end (); } static inline u8 apm_bios_call_simple_asm(u32 func, u32 ebx_in,
@@ -59,7 +55,6 @@ static inline u8 apm_bios_call_simple_asm(u32 func, u32 ebx_in,* N.B. We do NOT need a cld after the BIOS call * because we always save and restore the flags. */ -firmware_restrict_branch_speculation_start (); __asm__ __volatile__(APM_DO_ZERO_SEGS "pushl %%edi\n\t" "pushl %%ebp\n\t"
@@ -72,7 +67,6 @@ static inline u8 apm_bios_call_simple_asm(u32 func, u32 ebx_in, "=S" (si) : "a" (func), "b" (ebx_in), "c" (ecx_in) : "memory", "cc"); -firmware_restrict_branch_speculation_end ();return error; }
arch/x86/include/asm/barrier.h +2 -2
@@ -38,9 +38,9 @@ static inline unsigned long array_index_mask_nospec(unsigned long index, {unsigned long mask; - asm ("cmp %1,%2; sbb %0,%0;" + asmvolatile ("cmp %1,%2; sbb %0,%0;" :"=r" (mask) - :"r" (size),"r" (index) + :"g" (size),"r" (index) :"cc" );return mask; }
arch/x86/include/asm/cpufeature.h +5 -3
@@ -253,10 +253,12 @@#define X86_FEATURE_SPEC_CTRL_SSBD (10*32+31)/* "" Speculative Store Bypass Disable */ /* AMD-defined CPU features, CPUID level 0x80000008 (EBX), word 11 */ -#define X86_FEATURE_AMD_IBPB (11*32+12)/* Indirect Branch Prediction Barrier */ -#define X86_FEATURE_AMD_IBRS (11*32+14)/* Indirect Branch Restricted Speculation */ -#define X86_FEATURE_AMD_STIBP (11*32+15)/* Single Thread Indirect Branch Predictors */ +#define X86_FEATURE_AMD_IBPB (11*32+12)/* "" Indirect Branch Prediction Barrier */ +#define X86_FEATURE_AMD_IBRS (11*32+14)/* "" Indirect Branch Restricted Speculation */ +#define X86_FEATURE_AMD_STIBP (11*32+15)/* "" Single Thread Indirect Branch Predictors */ +#define X86_FEATURE_AMD_SSBD (11*32+24)/* "" Speculative Store Bypass Disable */ #define X86_FEATURE_VIRT_SSBD (11*32+25)/* Virtualized Speculative Store Bypass Disable */ +#define X86_FEATURE_AMD_SSB_NO (11*32+26)/* "" Speculative Store Bypass is fixed in hardware. */ /* * BUG word(s)
arch/x86/include/uapi/asm/msr-index.h +2 -2
@@ -50,8 +50,8 @@#define NHM_C3_AUTO_DEMOTE (1UL << 25)#define NHM_C1_AUTO_DEMOTE (1UL << 26)#define ATM_LNC_C6_AUTO_DEMOTE (1UL << 25) -#define SNB_C1_AUTO_UNDEMOTE (1UL << 27) -#define SNB_C3_AUTO_UNDEMOTE (1UL << 28) +#define SNB_C3_AUTO_UNDEMOTE (1UL << 27) +#define SNB_C1_AUTO_UNDEMOTE (1UL << 28)#define MSR_PLATFORM_INFO 0x000000ce#define MSR_MTRRcap 0x000000fe
arch/x86/kernel/apic/apic.c +2 -1
@@ -1609,6 +1609,8 @@ int __init enable_IR(void)return -1 ; } +#ifdef CONFIG_X86_64 +void __init enable_IR_x2apic (void ) {unsigned long flags;
@@ -1683,7 +1685,6 @@ void __init enable_IR_x2apic(void)local_irq_restore (flags); } -#ifdef CONFIG_X86_64 /* * Detect and enable local APICs on non-SMP boards. * Original code written by Keir Fraser.
arch/x86/kernel/apm_32.c +5 -0
@@ -239,6 +239,7 @@#include <asm/olpc.h> #include <asm/paravirt.h> #include <asm/reboot.h> +#include <asm/nospec-branch.h> #if defined(CONFIG_APM_DISPLAY_BLANK ) && defined(CONFIG_VT )extern int (*console_blank_hook)(int );
@@ -614,11 +615,13 @@ static long __apm_bios_call(void *_call) gdt[0x40 /8 ] = bad_bios_desc;apm_irq_save (flags); +firmware_restrict_branch_speculation_start ();APM_DO_SAVE_SEGS ;apm_bios_call_asm (call->func, call->ebx, call->ecx, &call->eax, &call->ebx, &call->ecx, &call->edx, &call->esi);APM_DO_RESTORE_SEGS ; +firmware_restrict_branch_speculation_end ();apm_irq_restore (flags); gdt[0x40 /8 ] = save_desc_40;put_cpu ();
@@ -690,10 +693,12 @@ static long __apm_bios_call_simple(void *_call) gdt[0x40 /8 ] = bad_bios_desc;apm_irq_save (flags); +firmware_restrict_branch_speculation_start ();APM_DO_SAVE_SEGS ; error =apm_bios_call_simple_asm (call->func, call->ebx, call->ecx, &call->eax);APM_DO_RESTORE_SEGS ; +firmware_restrict_branch_speculation_end ();apm_irq_restore (flags); gdt[0x40 /8 ] = save_desc_40;put_cpu ();
arch/x86/kernel/cpu/bugs.c +8 -9
@@ -219,7 +219,8 @@ x86_virt_spec_ctrl(u64 guest_spec_ctrl, u64 guest_virt_spec_ctrl, bool setguest) guestval |= guest_spec_ctrl & x86_spec_ctrl_mask;/* SSBD controlled in MSR_SPEC_CTRL */ -if (static_cpu_has (X86_FEATURE_SPEC_CTRL_SSBD )) +if (static_cpu_has (X86_FEATURE_SPEC_CTRL_SSBD ) || +static_cpu_has (X86_FEATURE_AMD_SSBD )) hostval |=ssbd_tif_to_spec_ctrl (ti->flags);if (hostval != guestval) {
@@ -570,18 +571,16 @@ static enum ssb_mitigation __init __ssb_select_mitigation(void)if (mode ==SPEC_STORE_BYPASS_DISABLE ) {setup_force_cpu_cap (X86_FEATURE_SPEC_STORE_BYPASS_DISABLE );/* -* Intel uses the SPEC CTRL MSR Bit(2) for this, while AMD uses -* a completely different MSR and bit dependent on family. +* Intel uses the SPEC CTRL MSR Bit(2) for this, while AMD may +* use a completely different MSR and bit dependent on family. */ -switch (boot_cpu_data.x86_vendor) { -case X86_VENDOR_INTEL : +if (!static_cpu_has (X86_FEATURE_SPEC_CTRL_SSBD ) && + !static_cpu_has (X86_FEATURE_AMD_SSBD )) { +x86_amd_ssb_disable (); + }else { x86_spec_ctrl_base |=SPEC_CTRL_SSBD ; x86_spec_ctrl_mask |=SPEC_CTRL_SSBD ;wrmsrl (MSR_IA32_SPEC_CTRL , x86_spec_ctrl_base); -break ; -case X86_VENDOR_AMD : -x86_amd_ssb_disable (); -break ; } }
arch/x86/kernel/cpu/common.c +11 -2
@@ -716,6 +716,12 @@ static void init_speculation_control(struct cpuinfo_x86 *c)set_cpu_cap (c,X86_FEATURE_STIBP );set_cpu_cap (c,X86_FEATURE_MSR_SPEC_CTRL ); } + +if (cpu_has (c,X86_FEATURE_AMD_SSBD )) { +set_cpu_cap (c,X86_FEATURE_SSBD ); +set_cpu_cap (c,X86_FEATURE_MSR_SPEC_CTRL ); +clear_cpu_cap (c,X86_FEATURE_VIRT_SSBD ); + } }void get_cpu_cap (struct cpuinfo_x86 *c)
@@ -865,7 +871,8 @@ static void __init cpu_set_bug_bits(struct cpuinfo_x86 *c)rdmsrl (MSR_IA32_ARCH_CAPABILITIES , ia32_cap);if (!x86_match_cpu (cpu_no_spec_store_bypass) && - !(ia32_cap &ARCH_CAP_SSB_NO )) + !(ia32_cap &ARCH_CAP_SSB_NO ) && + !cpu_has (c,X86_FEATURE_AMD_SSB_NO ))setup_force_cpu_bug (X86_BUG_SPEC_STORE_BYPASS );if (x86_match_cpu (cpu_no_speculation))
@@ -1156,6 +1163,7 @@ static void vgetcpu_set_mode(void) vgetcpu_mode =VGETCPU_LSL ; } +#ifdef CONFIG_IA32_EMULATION /* May not be __init: called during resume */ static void syscall32_cpu_init (void ) {
@@ -1167,7 +1175,8 @@ static void syscall32_cpu_init(void)wrmsrl (MSR_CSTAR , ia32_cstar_target); } -#endif +#endif /* CONFIG_IA32_EMULATION */ +#endif /* CONFIG_X86_64 */ #ifdef CONFIG_X86_32 void enable_sep_cpu (void )
arch/x86/kernel/cpu/mcheck/mce.c +10 -11
@@ -666,23 +666,25 @@ EXPORT_SYMBOL_GPL(machine_check_poll);static int mce_no_way_out (struct mce *m,char **msg,unsigned long *validp,struct pt_regs *regs) { -int i, ret =0 ;char *tmp; +int i;for (i =0 ; i < mca_cfg.banks; i++) { m->status =mce_rdmsrl (MSR_IA32_MCx_STATUS (i)); -if (m->status &MCI_STATUS_VAL ) { -__set_bit (i, validp); -if (quirk_no_way_out) -quirk_no_way_out (i, m, regs); - } +if (!(m->status &MCI_STATUS_VAL )) +continue ; + +__set_bit (i, validp); +if (quirk_no_way_out) +quirk_no_way_out (i, m, regs);if (mce_severity (m, mca_cfg.tolerant, &tmp) >=MCE_PANIC_SEVERITY ) { +mce_read_aux (m, i); *msg = tmp; - ret =1 ; +return 1 ; } } -return ret; +return 0 ; }/*
@@ -2258,9 +2260,6 @@ static ssize_t store_int_with_restart(struct device *s,if (check_interval == old_check_interval)return ret; -if (check_interval <1 ) - check_interval =1 ; -mutex_lock (&mce_sysfs_mutex);mce_restart ();mutex_unlock (&mce_sysfs_mutex);
arch/x86/kernel/traps.c +8 -6
@@ -556,17 +556,19 @@ static void math_error(struct pt_regs *regs, int error_code, int trapnr)char *str = (trapnr ==X86_TRAP_MF ) ?"fpu exception" :"simd exception" ; -if (notify_die (DIE_TRAP , str, regs, error_code, trapnr,SIGFPE ) ==NOTIFY_STOP ) -return ;conditional_sti (regs);if (!user_mode_vm (regs)) { -if (!fixup_exception (regs)) { - task->thread.error_code = error_code; - task->thread.trap_nr = trapnr; +if (fixup_exception (regs)) +return ; + + task->thread.error_code = error_code; + task->thread.trap_nr = trapnr; + +if (notify_die (DIE_TRAP , str, regs, error_code, + trapnr,SIGFPE ) !=NOTIFY_STOP )die (str, regs, error_code); - }return ; }
arch/x86/kvm/cpuid.c +8 -2
@@ -302,7 +302,8 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,/* cpuid 0x80000008.ebx */ const u32 kvm_cpuid_8000_0008_ebx_x86_features = -F (AMD_IBPB ) |F (AMD_IBRS ) |F (VIRT_SSBD ); +F (AMD_IBPB ) |F (AMD_IBRS ) |F (AMD_SSBD ) |F (VIRT_SSBD ) | +F (AMD_SSB_NO );/* cpuid 0xC0000001.edx */ const u32 kvm_supported_word5_x86_features =
@@ -536,7 +537,12 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, entry->ebx |=F (VIRT_SSBD ); entry->ebx &= kvm_cpuid_8000_0008_ebx_x86_features;cpuid_mask (&entry->ebx,11 ); -if (boot_cpu_has (X86_FEATURE_LS_CFG_SSBD )) +/* +* The preference is to use SPEC CTRL MSR instead of the +* VIRT_SPEC MSR. +*/ +if (boot_cpu_has (X86_FEATURE_LS_CFG_SSBD ) && + !boot_cpu_has (X86_FEATURE_AMD_SSBD )) entry->ebx |=F (VIRT_SSBD );break ; }
arch/x86/kvm/cpuid.h +1 -1
@@ -120,7 +120,7 @@ static inline bool guest_cpuid_has_spec_ctrl(struct kvm_vcpu *vcpu)struct kvm_cpuid_entry2 *best; best =kvm_find_cpuid_entry (vcpu,0x80000008 ,0 ); -if (best && (best->ebx &bit (X86_FEATURE_AMD_IBRS ))) +if (best && (best->ebx & (bit (X86_FEATURE_AMD_IBRS |bit (X86_FEATURE_AMD_SSBD )))))return true; best =kvm_find_cpuid_entry (vcpu,7 ,0 );return best && (best->edx & (bit (X86_FEATURE_SPEC_CTRL ) |bit (X86_FEATURE_SPEC_CTRL_SSBD )));
arch/x86/kvm/svm.c +1 -1
@@ -3236,7 +3236,7 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr)return 1 ;/* The STIBP bit doesn't fault even if it's not advertised */ -if (data & ~(SPEC_CTRL_IBRS |SPEC_CTRL_STIBP )) +if (data & ~(SPEC_CTRL_IBRS |SPEC_CTRL_STIBP |SPEC_CTRL_SSBD ))return 1 ; svm->spec_ctrl = data;
arch/x86/kvm/x86.c +6 -0
@@ -2892,6 +2892,12 @@ void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) kvm_x86_ops->vcpu_put (vcpu);kvm_put_guest_fpu (vcpu); vcpu->arch.last_host_tsc =native_read_tsc (); +/* +* If userspace has set any breakpoints or watchpoints, dr6 is restored +* on every vmexit, but if not, we might have a stale dr6 from the +* guest. do_debug expects dr6 to be cleared after it runs, do the same. +*/ +set_debugreg (0 ,6 ); } static int kvm_vcpu_ioctl_get_lapic(struct kvm_vcpu *vcpu,
arch/xtensa/kernel/traps.c +1 -1
@@ -282,7 +282,7 @@ do_unaligned_user (struct pt_regs *regs) info.si_errno =0 ; info.si_code =BUS_ADRALN ; info.si_addr = (void *) regs->excvaddr; - force_sig_info(SIGSEGV, &info, current); + force_sig_info(SIGBUS, &info, current); }#endif
block/blk-mq-tag.c +29 -13
71 lines not on this page · raw message
crypto/asymmetric_keys/x509_cert_parser.c +9 -0
@@ -205,6 +205,15 @@ int x509_note_signature(void *context, size_t hdrlen,return -EINVAL ; } +if (ctx->cert->sig.pkey_algo ==PKEY_ALGO_RSA ) { +/* Discard the BIT STRING metadata */ +if (vlen <1 || *(const u8 *)value !=0 ) +return -EBADMSG ; + + value++; + vlen--; + } + ctx->cert->raw_sig = value; ctx->cert->raw_sig_size = vlen;return 0 ;
drivers/acpi/acpi_lpss.c +1 -0
@@ -150,6 +150,7 @@ static struct lpss_shared_clock pwm_clock = {static struct lpss_device_desc byt_pwm_dev_desc = { .clk_required = true, + .prv_offset =0x800 , .save_ctx = true, .shared_clock = &pwm_clock, };
drivers/ata/ahci.c +59 -0
71 lines not on this page · raw message
drivers/ata/libata-core.c +3 -3
@@ -2227,6 +2227,9 @@ int ata_dev_configure(struct ata_device *dev) (id[ATA_ID_SATA_CAPABILITY] & 0xe) == 0x2) dev->horkage |= ATA_HORKAGE_NOLPM; +if (ap->flags &ATA_FLAG_NO_LPM ) + dev->horkage |=ATA_HORKAGE_NOLPM ; +if (dev->horkage &ATA_HORKAGE_NOLPM ) {ata_dev_warn (dev,"LPM support broken, forcing max_power\n" ); dev->link->ap->target_lpm_policy =ATA_LPM_MAX_POWER ;
@@ -4243,9 +4246,6 @@ 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, },
drivers/ata/libata-zpodd.c +2 -2
@@ -34,7 +34,7 @@ struct zpodd {static int eject_tray (struct ata_device *dev) {struct ata_taskfile tf; -const char cdb[] = {GPCMD_START_STOP_UNIT , +static const char cdb[ATAPI_CDB_LEN ] = {GPCMD_START_STOP_UNIT ,0 ,0 ,0 ,0x02 ,/* LoEj */ 0 ,0 ,0 ,0 ,0 ,0 ,0 ,
@@ -55,7 +55,7 @@ static enum odd_mech_type zpodd_get_mech_type(struct ata_device *dev)unsigned int ret;struct rm_feature_desc *desc = (void *)(buf +8 );struct ata_taskfile tf; -char cdb[] = {GPCMD_GET_CONFIGURATION , +static const char cdb[] = {GPCMD_GET_CONFIGURATION ,2 ,/* only 1 feature descriptor requested */ 0 ,3 ,/* 3, removable medium feature */ 0 ,0 ,0 ,/* reserved */
drivers/base/core.c +12 -2
@@ -709,7 +709,7 @@ class_dir_create_and_add(struct class *class, struct kobject *parent_kobj) dir =kzalloc (sizeof (*dir),GFP_KERNEL );if (!dir) -return NULL ; +return ERR_PTR (-ENOMEM ); dir->class = class;kobject_init (&dir->kobj, &class_dir_ktype);
@@ -719,7 +719,7 @@ class_dir_create_and_add(struct class *class, struct kobject *parent_kobj) retval =kobject_add (&dir->kobj, parent_kobj,"%s" , class->name);if (retval <0 ) {kobject_put (&dir->kobj); -return NULL ; +return ERR_PTR (retval); }return &dir->kobj; }
@@ -1000,6 +1000,10 @@ int device_add(struct device *dev) parent =get_device (dev->parent); kobj =get_device_parent (dev, parent); +if (IS_ERR (kobj)) { + error =PTR_ERR (kobj); + goto parent_error; + }if (kobj) dev->kobj.parent = kobj;
@@ -1097,6 +1101,7 @@ int device_add(struct device *dev)kobject_del (&dev->kobj); Error:cleanup_device_parent (dev); +parent_error:if (parent)put_device (parent); name_error:
@@ -1867,6 +1872,11 @@ int device_move(struct device *dev, struct device *new_parent,device_pm_lock (); new_parent =get_device (new_parent); new_parent_kobj =get_device_parent (dev, new_parent); +if (IS_ERR (new_parent_kobj)) { + error =PTR_ERR (new_parent_kobj); +put_device (new_parent); + goto out; + }pr_debug ("device: '%s': %s: moving to '%s'\n" ,dev_name (dev), __func__, new_parent ?dev_name (new_parent) :"<NULL>" );
drivers/base/power/wakeup.c +0 -1
@@ -135,7 +135,6 @@ void wakeup_source_add(struct wakeup_source *ws)spin_lock_init (&ws->lock);setup_timer (&ws->timer, pm_wakeup_timer_fn, (unsigned long )ws); ws->active = false; - ws->last_time =ktime_get ();spin_lock_irqsave (&events_lock, flags);list_add_rcu (&ws->entry, &wakeup_sources);
drivers/char/ipmi/ipmi_bt_sm.c +2 -1
@@ -522,11 +522,12 @@ static enum si_sm_result bt_event(struct si_sm_data *bt, long time)if (status &BT_H_BUSY )/* clear a leftover H_BUSY */ BT_CONTROL (BT_H_BUSY ); + bt->timeout = bt->BT_CAP_req2rsp; +/* Read BT capabilities if it hasn't been done yet */ if (!bt->BT_CAP_outreqs)BT_STATE_CHANGE (BT_STATE_CAPABILITIES_BEGIN ,SI_SM_CALL_WITHOUT_DELAY ); - bt->timeout = bt->BT_CAP_req2rsp;BT_SI_SM_RETURN (SI_SM_IDLE );case BT_STATE_XACTION_START :
drivers/char/random.c +9 -1
@@ -1418,14 +1418,22 @@ static int write_pool(struct entropy_store *r, const char __user *buffer, size_t count) { size_t bytes; -__u32 buf[16 ]; +__u32 t, buf[16 ];const char __user *p = buffer;while (count >0 ) { +int b, i =0 ; + bytes =min (count,sizeof (buf));if (copy_from_user (&buf, p, bytes))return -EFAULT ; +for (b = bytes ; b >0 ; b -=sizeof (__u32), i++) { +if (!arch_get_random_int (&t)) +break ; + buf[i] ^= t; + } + count -= bytes; p += bytes;
drivers/char/tpm/tpm-dev.c +19 -22
99 lines not on this page · raw message
drivers/clk/clk-si5351.c +5 -5
@@ -68,16 +68,16 @@ struct si5351_driver_data {struct si5351_hw_data *clkout; }; -static const char const *si5351_input_names[] = { +static const char *const si5351_input_names[] = {"xtal" ,"clkin" }; -static const char const *si5351_pll_names[] = { +static const char *const si5351_pll_names[] = {"plla" ,"pllb" ,"vxco" }; -static const char const *si5351_msynth_names[] = { +static const char *const si5351_msynth_names[] = {"ms0" ,"ms1" ,"ms2" ,"ms3" ,"ms4" ,"ms5" ,"ms6" ,"ms7" }; -static const char const *si5351_clkout_names[] = { +static const char *const si5351_clkout_names[] = {"clk0" ,"clk1" ,"clk2" ,"clk3" ,"clk4" ,"clk5" ,"clk6" ,"clk7" };
@@ -207,7 +207,7 @@ static bool si5351_regmap_is_writeable(struct device *dev, unsigned int reg)return true; } -static struct regmap_config si5351_regmap_config = { +static const struct regmap_config si5351_regmap_config = { .reg_bits =8 , .val_bits =8 , .cache_type =REGCACHE_RBTREE ,
drivers/clk/qcom/clk-rcg2.c +1 -0
@@ -199,6 +199,7 @@ static long _freq_tbl_determine_rate(struct clk_hw *hw, clk_flags =__clk_get_flags (hw->clk); *p =clk_get_parent_by_index (hw->clk, f->src);if (clk_flags &CLK_SET_RATE_PARENT ) { + rate = f->freq;if (f->pre_div) { rate /=2 ; rate *= f->pre_div +1 ;
drivers/crypto/padlock-aes.c +6 -2
@@ -266,6 +266,8 @@ static inline void padlock_xcrypt_ecb(const u8 *input, u8 *output, void *key,return ; } + count -= initial; +if (initial) asmvolatile (".byte 0xf3,0x0f,0xa7,0xc8" /* rep xcryptecb */ : "+S"(input), "+D"(output)
@@ -273,7 +275,7 @@ static inline void padlock_xcrypt_ecb(const u8 *input, u8 *output, void *key, asmvolatile (".byte 0xf3,0x0f,0xa7,0xc8" /* rep xcryptecb */ :"+S" (input),"+D" (output) - :"d" (control_word),"b" (key),"c" (count - initial)); + :"d" (control_word),"b" (key),"c" (count)); } static inline u8 *padlock_xcrypt_cbc(const u8 *input, u8 *output, void *key,
@@ -284,6 +286,8 @@ static inline u8 *padlock_xcrypt_cbc(const u8 *input, u8 *output, void *key,if (count < cbc_fetch_blocks)return cbc_crypt (input, output, key, iv, control_word, count); + count -= initial; +if (initial) asmvolatile (".byte 0xf3,0x0f,0xa7,0xd0" /* rep xcryptcbc */ : "+S" (input), "+D" (output), "+a" (iv)
@@ -291,7 +295,7 @@ static inline u8 *padlock_xcrypt_cbc(const u8 *input, u8 *output, void *key, asmvolatile (".byte 0xf3,0x0f,0xa7,0xd0" /* rep xcryptcbc */ :"+S" (input),"+D" (output),"+a" (iv) - :"d" (control_word),"b" (key),"c" (count-initial)); + :"d" (control_word),"b" (key),"c" (count));return iv; }
drivers/dma/k3dma.c +1 -1
@@ -652,7 +652,7 @@ static struct dma_chan *k3_of_dma_simple_xlate(struct of_phandle_args *dma_spec,struct k3_dma_dev *d = ofdma->of_dma_data;unsigned int request = dma_spec->args[0 ]; -if (request > d->dma_requests) +if (request >= d->dma_requests)return NULL ;return dma_get_slave_channel (&(d->chans[request].vc.chan));
drivers/gpu/drm/drm_context.c +1 -1
@@ -316,7 +316,7 @@ int drm_addctx(struct drm_device *dev, void *data, ctx->handle =drm_ctxbitmap_next (dev); }DRM_DEBUG ("%d\n" , ctx->handle); -if (ctx->handle ==-1 ) { +if (ctx->handle <0 ) {DRM_DEBUG ("Not enough free contexts.\n" );/* Should this return -EBUSY instead? */ return -ENOMEM ;
drivers/gpu/drm/nouveau/nouveau_drm.c +0 -7
@@ -927,7 +927,6 @@ static int nouveau_pmops_runtime_idle(struct device *dev)struct pci_dev *pdev =to_pci_dev (dev);struct drm_device *drm_dev =pci_get_drvdata (pdev);struct nouveau_drm *drm =nouveau_drm (drm_dev); -struct drm_crtc *crtc;if (nouveau_runtime_pm ==0 ) {pm_runtime_forbid (dev);
@@ -950,12 +949,6 @@ static int nouveau_pmops_runtime_idle(struct device *dev) } } -list_for_each_entry (crtc, &drm->dev->mode_config.crtc_list, head) { -if (crtc->enabled) { -DRM_DEBUG_DRIVER ("failing to power off - crtc active\n" ); -return -EBUSY ; - } - }pm_runtime_mark_last_busy (dev);pm_runtime_autosuspend (dev);/* we don't want the main rpm_idle to call suspend - we want to autosuspend */
drivers/gpu/drm/nouveau/nouveau_gem.c +2 -2
@@ -613,7 +613,7 @@ nouveau_gem_pushbuf_reloc_apply(struct nouveau_cli *cli,struct nouveau_bo *nvbo;uint32_t data; -if (unlikely (r->bo_index > req->nr_buffers)) { +if (unlikely (r->bo_index >= req->nr_buffers)) {NV_ERROR (cli,"reloc bo index invalid\n" ); ret = -EINVAL ;break ;
@@ -623,7 +623,7 @@ nouveau_gem_pushbuf_reloc_apply(struct nouveau_cli *cli,if (b->presumed.valid)continue ; -if (unlikely (r->reloc_bo_index > req->nr_buffers)) { +if (unlikely (r->reloc_bo_index >= req->nr_buffers)) {NV_ERROR (cli,"reloc container bo index invalid\n" ); ret = -EINVAL ;break ;
drivers/gpu/drm/udl/udl_fb.c +4 -1
@@ -234,7 +234,10 @@ int udl_handle_damage(struct udl_framebuffer *fb, int x, int y,if (cmd > (char *) urb->transfer_buffer) {/* Send partial buffer remaining before exiting */ -int len = cmd - (char *) urb->transfer_buffer; +int len; +if (cmd < (char *) urb->transfer_buffer + urb->transfer_buffer_length) + *cmd++ =0xAF ; + len = cmd - (char *) urb->transfer_buffer; ret =udl_submit_urb (dev, urb, len); bytes_sent += len; }else
drivers/gpu/drm/udl/udl_transfer.c +7 -4
@@ -149,11 +149,11 @@ static void udl_compress_hline16( raw_pixels_count_byte = cmd++;/* we'll know this later */ raw_pixel_start = pixel; - cmd_pixel_end = pixel + (min (MAX_CMD_PIXELS +1 , -min ((int )(pixel_end - pixel) / bpp, - (int )(cmd_buffer_end - cmd) /2 ))) * bpp; + cmd_pixel_end = pixel +min3 (MAX_CMD_PIXELS +1UL , + (unsigned long )(pixel_end - pixel) / bpp, + (unsigned long )(cmd_buffer_end -1 - cmd) /2 ) * bpp; -prefetch_range ((void *) pixel, (cmd_pixel_end - pixel) * bpp); +prefetch_range ((void *) pixel, cmd_pixel_end - pixel);while (pixel < cmd_pixel_end) {const u8 *const start = pixel;
@@ -193,6 +193,9 @@ static void udl_compress_hline16(if (pixel > raw_pixel_start) {/* finalize last RAW span */ *raw_pixels_count_byte = ((pixel-raw_pixel_start) / bpp) &0xFF ; + }else { +/* undo unused byte */ + cmd--; } *cmd_pixels_count_byte = ((pixel - cmd_pixel_start) / bpp) &0xFF ;
drivers/hid/hid-ids.h +3 -0
@@ -530,6 +530,9 @@#define USB_VENDOR_ID_IRTOUCHSYSTEMS 0x6615#define USB_DEVICE_ID_IRTOUCH_INFRARED_USB 0x0070 +#define USB_VENDOR_ID_INNOMEDIA 0x1292 +#define USB_DEVICE_ID_INNEX_GENESIS_ATARI 0x4745 +#define USB_VENDOR_ID_JABRA 0x0b0e#define USB_DEVICE_ID_JABRA_SPEAK_410 0x0412#define USB_DEVICE_ID_JABRA_SPEAK_510 0x0420
drivers/hid/hid-input.c +14 -6
@@ -1087,18 +1087,26 @@ void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct/* * Ignore out-of-range values as per HID specification, -* section 5.10 and 6.2.25. +* section 5.10 and 6.2.25, when NULL state bit is present. +* When it's not, clamp the value to match Microsoft's input +* driver as mentioned in "Required HID usages for digitizers": +* https://msdn.microsoft.com/en-us/library/windows/hardware/dn672278(v=vs.85).asp * * The logical_minimum < logical_maximum check is done so that we * don't unintentionally discard values sent by devices which * don't specify logical min and max. */ if ((field->flags &HID_MAIN_ITEM_VARIABLE ) && - (field->logical_minimum < field->logical_maximum) && - (value < field->logical_minimum || - value > field->logical_maximum)) { -dbg_hid ("Ignoring out-of-range value %x\n" , value); -return ; + (field->logical_minimum < field->logical_maximum)) { +if (field->flags &HID_MAIN_ITEM_NULL_STATE && + (value < field->logical_minimum || + value > field->logical_maximum)) { +dbg_hid ("Ignoring out-of-range value %x\n" , value); +return ; + } + value =clamp (value, + field->logical_minimum, + field->logical_maximum); }/*
drivers/hid/usbhid/hid-quirks.c +1 -0
@@ -175,6 +175,7 @@ static const struct hid_blacklist { { USB_VENDOR_ID_MULTIPLE_1781, USB_DEVICE_ID_RAPHNET_4NES4SNES_OLD, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_DRACAL_RAPHNET, USB_DEVICE_ID_RAPHNET_2NES2SNES, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_DRACAL_RAPHNET, USB_DEVICE_ID_RAPHNET_4NES4SNES, HID_QUIRK_MULTI_INPUT }, + { USB_VENDOR_ID_INNOMEDIA, USB_DEVICE_ID_INNEX_GENESIS_ATARI, HID_QUIRK_MULTI_INPUT }, { 0, 0 } };
drivers/hid/usbhid/hiddev.c +11 -0
@@ -35,6 +35,7 @@#include <linux/hiddev.h> #include <linux/compat.h> #include <linux/vmalloc.h> +#include <linux/nospec.h> #include "usbhid.h" #ifdef CONFIG_USB_DYNAMIC_MINORS
@@ -478,10 +479,14 @@ static noinline int hiddev_ioctl_usage(struct hiddev *hiddev, unsigned int cmd,if (uref->field_index >= report->maxfield) goto inval; + uref->field_index =array_index_nospec (uref->field_index, + report->maxfield); field = report->field[uref->field_index];if (uref->usage_index >= field->maxusage) goto inval; + uref->usage_index =array_index_nospec (uref->usage_index, + field->maxusage); uref->usage_code = field->usage[uref->usage_index].hid;
@@ -508,6 +513,8 @@ static noinline int hiddev_ioctl_usage(struct hiddev *hiddev, unsigned int cmd,if (uref->field_index >= report->maxfield) goto inval; + uref->field_index =array_index_nospec (uref->field_index, + report->maxfield); field = report->field[uref->field_index];
@@ -761,6 +768,8 @@ static long hiddev_ioctl(struct file *file, unsigned int cmd, unsigned long arg)if (finfo.field_index >= report->maxfield)break ; + finfo.field_index =array_index_nospec (finfo.field_index, + report->maxfield); field = report->field[finfo.field_index];memset (&finfo,0 ,sizeof (finfo));
@@ -801,6 +810,8 @@ static long hiddev_ioctl(struct file *file, unsigned int cmd, unsigned long arg)if (cinfo.index >= hid->maxcollection)break ; + cinfo.index =array_index_nospec (cinfo.index, + hid->maxcollection); cinfo.type = hid->collection[cinfo.index].type; cinfo.usage = hid->collection[cinfo.index].usage;
drivers/infiniband/core/uverbs_cmd.c +17 -10
@@ -2674,8 +2674,8 @@ int ib_uverbs_ex_create_flow(struct ib_uverbs_file *file,struct ib_uverbs_flow_attr *kern_flow_attr;struct ib_flow_attr *flow_attr;struct ib_qp *qp; +struct ib_uverbs_flow_spec_hdr *kern_spec;int err =0 ; -void *kern_spec;void *ib_spec;int i;
@@ -2717,8 +2717,8 @@ int ib_uverbs_ex_create_flow(struct ib_uverbs_file *file,if (!kern_flow_attr)return -ENOMEM ; -memcpy (kern_flow_attr, &cmd.flow_attr,sizeof (*kern_flow_attr)); - err =ib_copy_from_udata (kern_flow_attr +1 , ucore, + *kern_flow_attr = cmd.flow_attr; + err =ib_copy_from_udata (&kern_flow_attr->flow_specs, ucore, cmd.flow_attr.size);if (err) goto err_free_attr;
@@ -2740,6 +2740,11 @@ int ib_uverbs_ex_create_flow(struct ib_uverbs_file *file, goto err_uobj; } +if (qp->qp_type !=IB_QPT_UD && qp->qp_type !=IB_QPT_RAW_PACKET ) { + err = -EINVAL ; + goto err_put; + } + flow_attr =kmalloc (sizeof (*flow_attr) + cmd.flow_attr.size,GFP_KERNEL );if (!flow_attr) { err = -ENOMEM ;
@@ -2753,19 +2758,21 @@ int ib_uverbs_ex_create_flow(struct ib_uverbs_file *file, flow_attr->flags = kern_flow_attr->flags; flow_attr->size =sizeof (*flow_attr); - kern_spec = kern_flow_attr +1 ; + kern_spec = kern_flow_attr->flow_specs; ib_spec = flow_attr +1 ;for (i =0 ; i < flow_attr->num_of_specs && - cmd.flow_attr.size > offsetof(struct ib_uverbs_flow_spec , reserved) && - cmd.flow_attr.size >= - ((struct ib_uverbs_flow_spec *)kern_spec)->size; i++) { - err =kern_spec_to_ib_spec (kern_spec, ib_spec); + cmd.flow_attr.size >=sizeof (*kern_spec) && + cmd.flow_attr.size >= kern_spec->size; + i++) { + err =kern_spec_to_ib_spec ( + (struct ib_uverbs_flow_spec *)kern_spec, + ib_spec);if (err) goto err_free; flow_attr->size += ((union ib_flow_spec *) ib_spec)->size; - cmd.flow_attr.size -= ((struct ib_uverbs_flow_spec *)kern_spec)->size; - kern_spec += ((struct ib_uverbs_flow_spec *) kern_spec)->size; + cmd.flow_attr.size -= kern_spec->size; + kern_spec = ((void *)kern_spec) + kern_spec->size; ib_spec += ((union ib_flow_spec *) ib_spec)->size; }if (cmd.flow_attr.size || (i != flow_attr->num_of_specs)) {
drivers/infiniband/hw/mlx4/mad.c +0 -1
@@ -1748,7 +1748,6 @@ static void mlx4_ib_sqp_comp_worker(struct work_struct *work) "buf:%lld\n", wc.wr_id);break ;default : -BUG_ON (1 );break ; } }else {
drivers/infiniband/hw/mlx5/srq.c +12 -6
@@ -261,18 +261,24 @@ struct ib_srq *mlx5_ib_create_srq(struct ib_pd *pd, desc_size =sizeof (struct mlx5_wqe_srq_next_seg ) + srq->msrq.max_gs *sizeof (struct mlx5_wqe_data_seg ); -if (desc_size ==0 || srq->msrq.max_gs > desc_size) -return ERR_PTR (-EINVAL ); +if (desc_size ==0 || srq->msrq.max_gs > desc_size) { + err = -EINVAL ; + goto err_srq; + } desc_size =roundup_pow_of_two (desc_size); desc_size =max_t (size_t,32 , desc_size); -if (desc_size <sizeof (struct mlx5_wqe_srq_next_seg )) -return ERR_PTR (-EINVAL ); +if (desc_size <sizeof (struct mlx5_wqe_srq_next_seg )) { + err = -EINVAL ; + goto err_srq; + } srq->msrq.max_avail_gather = (desc_size -sizeof (struct mlx5_wqe_srq_next_seg )) /sizeof (struct mlx5_wqe_data_seg ); srq->msrq.wqe_shift =ilog2 (desc_size); buf_size = srq->msrq.max * desc_size; -if (buf_size < desc_size) -return ERR_PTR (-EINVAL ); +if (buf_size < desc_size) { + err = -EINVAL ; + goto err_srq; + }if (pd->uobject) err =create_srq_user (pd, srq, &in, udata, buf_size, &inlen);
drivers/infiniband/hw/qib/qib.h +1 -2
@@ -1452,8 +1452,7 @@ u64 qib_sps_ints(void);/* * dma_addr wrappers - all 0's invalid for hw */ -dma_addr_t qib_map_page (struct pci_dev *,struct page *,unsigned long , -size_t ,int ); +int qib_map_page (struct pci_dev *d,struct page *p,dma_addr_t *daddr);const char *qib_get_unit_name (int unit);/*
drivers/infiniband/hw/qib/qib_file_ops.c +7 -3
@@ -359,6 +359,8 @@ static int qib_tid_update(struct qib_ctxtdata *rcd, struct file *fp, goto done; }for (i =0 ; i < cnt; i++, vaddr +=PAGE_SIZE ) { +dma_addr_t daddr; +for (; ntids--; tid++) {if (tid == tidcnt) tid =0 ;
@@ -375,12 +377,14 @@ static int qib_tid_update(struct qib_ctxtdata *rcd, struct file *fp, ret = -ENOMEM ;break ; } + ret =qib_map_page (dd->pcidev, pagep[i], &daddr); +if (ret) +break ; + tidlist[i] = tid + tidoff;/* we "know" system pages and TID pages are same size */ dd->pageshadow[ctxttid + tid] = pagep[i]; - dd->physshadow[ctxttid + tid] = -qib_map_page (dd->pcidev, pagep[i],0 ,PAGE_SIZE , -PCI_DMA_FROMDEVICE ); + dd->physshadow[ctxttid + tid] = daddr;/* * don't need atomic or it's overhead */
drivers/infiniband/hw/qib/qib_user_pages.c +12 -8
@@ -98,23 +98,27 @@ static int __qib_get_user_pages(unsigned long start_page, size_t num_pages,* * I'm sure we won't be so lucky with other iommu's, so FIXME. */ -dma_addr_t qib_map_page (struct pci_dev *hwdev,struct page *page, -unsigned long offset,size_t size,int direction) +int qib_map_page (struct pci_dev *hwdev,struct page *page,dma_addr_t *daddr) {dma_addr_t phys; - phys =pci_map_page (hwdev, page, offset, size, direction); + phys =pci_map_page (hwdev, page,0 ,PAGE_SIZE ,PCI_DMA_FROMDEVICE ); +if (pci_dma_mapping_error (hwdev, phys)) +return -ENOMEM ; -if (phys ==0 ) { -pci_unmap_page (hwdev, phys, size, direction); - phys =pci_map_page (hwdev, page, offset, size, direction); +if (!phys) { +pci_unmap_page (hwdev, phys,PAGE_SIZE ,PCI_DMA_FROMDEVICE ); + phys =pci_map_page (hwdev, page,0 ,PAGE_SIZE , +PCI_DMA_FROMDEVICE ); +if (pci_dma_mapping_error (hwdev, phys)) +return -ENOMEM ;/* * FIXME: If we get 0 again, we should keep this page, * map another, then free the 0 page. */ } - -return phys; + *daddr = phys; +return 0 ; }/**
drivers/infiniband/ulp/ipoib/ipoib.h +1 -1
@@ -384,6 +384,7 @@ struct ipoib_ah {struct list_head list;struct kref ref;unsigned last_send; +int valid; };struct ipoib_path {
@@ -400,7 +401,6 @@ struct ipoib_path {struct rb_node rb_node;struct list_head list; -int valid; };struct ipoib_neigh {
drivers/infiniband/ulp/ipoib/ipoib_main.c +27 -6
@@ -426,7 +426,8 @@ void ipoib_mark_paths_invalid(struct net_device *dev)ipoib_dbg (priv,"mark path LID 0x%04x GID %pI6 invalid\n" ,be16_to_cpu (path->pathrec.dlid), path->pathrec.dgid.raw); - path->valid =0 ; +if (path->ah) + path->ah->valid =0 ; }spin_unlock_irq (&priv->lock);
@@ -535,7 +536,7 @@ static void path_rec_completion(int status,while ((skb =__skb_dequeue (&neigh->queue)))__skb_queue_tail (&skqueue, skb); } - path->valid =1 ; + path->ah->valid =1 ; } path->query =NULL ;
@@ -615,6 +616,24 @@ static int path_rec_start(struct net_device *dev,return 0 ; } +static void neigh_refresh_path (struct ipoib_neigh *neigh,u8 *daddr, +struct net_device *dev) +{ +struct ipoib_dev_priv *priv =netdev_priv (dev); +struct ipoib_path *path; +unsigned long flags; + +spin_lock_irqsave (&priv->lock, flags); + + path =__path_find (dev, daddr +4 ); +if (!path) + goto out; +if (!path->query) +path_rec_start (dev, path); +out: +spin_unlock_irqrestore (&priv->lock, flags); +} +static struct ipoib_neigh *neigh_add_path (struct sk_buff *skb,u8 *daddr,struct net_device *dev) {
@@ -651,7 +670,7 @@ static struct ipoib_neigh *neigh_add_path(struct sk_buff *skb, u8 *daddr,list_add_tail (&neigh->list, &path->neigh_list); -if (path->ah) { +if (path->ah && path->ah->valid) {kref_get (&path->ah->ref); neigh->ah = path->ah;
@@ -710,7 +729,7 @@ static void unicast_arp_send(struct sk_buff *skb, struct net_device *dev,spin_lock_irqsave (&priv->lock, flags); path =__path_find (dev, cb->hwaddr +4 ); -if (!path || !path->valid) { +if (!path || !path->ah || !path->ah->valid) {int new_path =0 ;if (!path) {
@@ -736,7 +755,7 @@ static void unicast_arp_send(struct sk_buff *skb, struct net_device *dev,return ; } -if (path->ah) { +if (path->ah && path->ah->valid) {ipoib_dbg (priv,"Send unicast ARP to %04x\n" ,be16_to_cpu (path->pathrec.dlid));
@@ -818,9 +837,11 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)ipoib_cm_send (dev, skb,ipoib_cm_get (neigh)); goto unref; } - }else if (neigh->ah) { + }else if (neigh->ah && neigh->ah->valid) {ipoib_send (dev, skb, neigh->ah,IPOIB_QPN (cb->hwaddr)); goto unref; + }else if (neigh->ah) { +neigh_refresh_path (neigh, cb->hwaddr, dev); }if (skb_queue_len (&neigh->queue) <IPOIB_MAX_PATH_REC_QUEUE ) {
drivers/infiniband/ulp/isert/ib_isert.c +18 -9
@@ -1033,14 +1033,10 @@ isert_post_send(struct isert_conn *isert_conn, struct iser_tx_desc *tx_desc) }static void -isert_create_send_desc (struct isert_conn *isert_conn, -struct isert_cmd *isert_cmd, -struct iser_tx_desc *tx_desc) +__isert_create_send_desc (struct isert_conn *isert_conn, +struct isert_cmd *isert_cmd, +struct iser_tx_desc *tx_desc) { -struct ib_device *ib_dev = isert_conn->conn_cm_id->device; - -ib_dma_sync_single_for_cpu (ib_dev, tx_desc->dma_addr, -ISER_HEADERS_LEN ,DMA_TO_DEVICE );memset (&tx_desc->iser_header,0 ,sizeof (struct iser_hdr )); tx_desc->iser_header.flags =ISER_VER ;
@@ -1054,6 +1050,19 @@ isert_create_send_desc(struct isert_conn *isert_conn, } } +static void +isert_create_send_desc (struct isert_conn *isert_conn, +struct isert_cmd *isert_cmd, +struct iser_tx_desc *tx_desc) +{ +struct ib_device *ib_dev = isert_conn->conn_cm_id->device; + +ib_dma_sync_single_for_cpu (ib_dev, tx_desc->dma_addr, +ISER_HEADERS_LEN ,DMA_TO_DEVICE ); + +__isert_create_send_desc (isert_conn, isert_cmd, tx_desc); +} +static int isert_init_tx_hdrs (struct isert_conn *isert_conn,struct iser_tx_desc *tx_desc)
@@ -1150,7 +1159,7 @@ isert_put_login_tx(struct iscsi_conn *conn, struct iscsi_login *login,struct iser_tx_desc *tx_desc = &isert_conn->conn_login_tx_desc;int ret; -isert_create_send_desc (isert_conn,NULL , tx_desc); +__isert_create_send_desc (isert_conn,NULL , tx_desc);memcpy (&tx_desc->iscsi_header, &login->rsp[0 ],sizeof (struct iscsi_hdr ));
@@ -2813,7 +2822,7 @@ static inline u8 isert_set_prot_checks(u8 prot_checks) {return (prot_checks &TARGET_DIF_CHECK_GUARD ?0xc0 :0 ) | - (prot_checks &TARGET_DIF_CHECK_REFTAG ?0x30 :0 ) | + (prot_checks &TARGET_DIF_CHECK_APPTAG ?0x30 :0 ) | (prot_checks &TARGET_DIF_CHECK_REFTAG ?0x0f :0 ); }
drivers/input/mouse/elantech.c +27 -1
@@ -500,6 +500,7 @@ static void elantech_input_sync_v4(struct psmouse *psmouse) }else {input_report_key (dev,BTN_LEFT , packet[0 ] &0x01 );input_report_key (dev,BTN_RIGHT , packet[0 ] &0x02 ); +input_report_key (dev,BTN_MIDDLE , packet[0 ] &0x04 ); }input_mt_report_pointer_emulation (dev, true);
@@ -736,7 +737,7 @@ static int elantech_packet_check_v4(struct psmouse *psmouse)if (etd->crc_enabled) sanity_check = ((packet[3 ] &0x08 ) ==0x00 );else - sanity_check = ((packet[0 ] &0x0c ) ==0x04 && + sanity_check = ((packet[0 ] &0x08 ) ==0x00 && (packet[3 ] &0x1c ) ==0x10 );if (!sanity_check)
@@ -1063,6 +1064,28 @@ static void elantech_set_buttonpad_prop(struct psmouse *psmouse) } } +/* +* Some hw_version 4 models do have a middle button +*/ +static const struct dmi_system_id elantech_dmi_has_middle_button[] = { +#if defined(CONFIG_DMI) && defined(CONFIG_X86) + { +/* Fujitsu H730 has a middle button */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"FUJITSU" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"CELSIUS H730" ), + }, + }, +#endif + { } +}; + +static const char *const middle_button_pnp_ids[] = { +"LEN2131" ,/* ThinkPad P52 w/ NFC */ +"LEN2132" ,/* ThinkPad P52 */ +NULL +}; +/* * Set the appropriate event bits for the input subsystem */
@@ -1082,6 +1105,9 @@ static int elantech_set_input_params(struct psmouse *psmouse)__clear_bit (EV_REL , dev->evbit);__set_bit (BTN_LEFT , dev->keybit); +if (dmi_check_system (elantech_dmi_has_middle_button) || +psmouse_matches_pnp_id (psmouse, middle_button_pnp_ids)) +__set_bit (BTN_MIDDLE , dev->keybit);__set_bit (BTN_RIGHT , dev->keybit);__set_bit (BTN_TOUCH , dev->keybit);
drivers/input/serio/i8042-x86ia64io.h +14 -0
@@ -513,6 +513,20 @@ static const struct dmi_system_id __initconst i8042_dmi_nomux_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "IC4I"), }, }, + { + /* TUXEDO BU1406 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Notebook"), + DMI_MATCH(DMI_PRODUCT_NAME, "N24_25BU"), + }, + }, + { +/* Lenovo LaVie Z */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo LaVie Z"), + }, + }, { } };
drivers/iommu/dmar.c +3 -5
@@ -1483,17 +1483,13 @@ irqreturn_t dmar_fault(int irq, void *dev_id)int reg, fault_index;u32 fault_status;unsigned long flag; -bool ratelimited; static DEFINE_RATELIMIT_STATE(rs, DEFAULT_RATELIMIT_INTERVAL, DEFAULT_RATELIMIT_BURST); -/* Disable printing, simply clear the fault when ratelimited */ - ratelimited = !__ratelimit (&rs); -raw_spin_lock_irqsave (&iommu->register_lock, flag); fault_status =readl (iommu->reg +DMAR_FSTS_REG ); -if (fault_status && !ratelimited) +if (fault_status &&__ratelimit (&rs))pr_err ("DRHD: handling fault status reg %x\n" , fault_status);/* TBD: ignore advanced fault log currently */
@@ -1503,6 +1499,8 @@ irqreturn_t dmar_fault(int irq, void *dev_id) fault_index =dma_fsts_fault_record_index (fault_status); reg =cap_fault_reg_offset (iommu->cap);while (1 ) { +/* Disable printing, simply clear the fault when ratelimited */ +bool ratelimited = !__ratelimit (&rs);u8 fault_reason;u16 source_id;u64 guest_addr;
drivers/leds/led-triggers.c +7 -5
@@ -78,21 +78,23 @@ ssize_t led_trigger_show(struct device *dev, struct device_attribute *attr,down_read (&led_cdev->trigger_lock);if (!led_cdev->trigger) - len +=sprintf (buf+len,"[none] " ); + len +=scnprintf (buf+len,PAGE_SIZE - len,"[none] " );else - len +=sprintf (buf+len,"none " ); + len +=scnprintf (buf+len,PAGE_SIZE - len,"none " );list_for_each_entry (trig, &trigger_list, next_trig) {if (led_cdev->trigger && !strcmp (led_cdev->trigger->name, trig->name)) - len +=sprintf (buf+len,"[%s] " , trig->name); + len +=scnprintf (buf+len,PAGE_SIZE - len,"[%s] " , + trig->name);else - len +=sprintf (buf+len,"%s " , trig->name); + len +=scnprintf (buf+len,PAGE_SIZE - len,"%s " , + trig->name); }up_read (&led_cdev->trigger_lock);up_read (&triggers_list_lock); - len +=sprintf (len+buf,"\n" ); + len +=scnprintf (len+buf,PAGE_SIZE - len,"\n" );return len; }EXPORT_SYMBOL_GPL (led_trigger_show);
drivers/md/dm-bufio.c +13 -2
@@ -773,12 +773,14 @@ enum new_flag {static struct dm_buffer *__alloc_buffer_wait_no_callback (struct dm_bufio_client *c,enum new_flag nf) {struct dm_buffer *b; +bool tried_noio_alloc = false;/* * dm-bufio is resistant to allocation failures (it just keeps * one buffer reserved in cases all the allocations fail). * So set flags to not try too hard: -* GFP_NOIO: don't recurse into the I/O layer +* GFP_NOWAIT: don't wait; if we need to sleep we'll release our +* mutex and wait ourselves. * __GFP_NORETRY: don't retry and rather return failure * __GFP_NOMEMALLOC: don't use emergency reserves * __GFP_NOWARN: don't print a warning in case of failure
@@ -788,7 +790,7 @@ static struct dm_buffer *__alloc_buffer_wait_no_callback(struct dm_bufio_client*/ while (1 ) {if (dm_bufio_cache_size_latch !=1 ) { - b =alloc_buffer (c,GFP_NOIO | __GFP_NORETRY | __GFP_NOMEMALLOC | __GFP_NOWARN); + b =alloc_buffer (c,GFP_NOWAIT | __GFP_NORETRY | __GFP_NOMEMALLOC | __GFP_NOWARN);if (b)return b; }
@@ -796,6 +798,15 @@ static struct dm_buffer *__alloc_buffer_wait_no_callback(struct dm_bufio_clientif (nf ==NF_PREFETCH )return NULL ; +if (dm_bufio_cache_size_latch !=1 && !tried_noio_alloc) { +dm_bufio_unlock (c); + b =alloc_buffer (c,GFP_NOIO | __GFP_NORETRY | __GFP_NOMEMALLOC | __GFP_NOWARN); +dm_bufio_lock (c); +if (b) +return b; + tried_noio_alloc = true; + } +if (!list_empty (&c->reserved_buffers)) { b =list_entry (c->reserved_buffers.next, struct dm_buffer, lru_list);
drivers/md/dm-thin.c +9 -2
@@ -938,6 +938,8 @@ static void schedule_zero(struct thin_c *tc, dm_block_t virt_block,static void set_pool_mode (struct pool *pool,enum pool_mode new_mode); +static void requeue_bios (struct pool *pool); +static void check_for_space (struct pool *pool) {int r;
@@ -950,8 +952,10 @@ static void check_for_space(struct pool *pool)if (r)return ; -if (nr_free) +if (nr_free) {set_pool_mode (pool,PM_WRITE ); +requeue_bios (pool); + } }/*
@@ -1028,7 +1032,10 @@ static int alloc_data_block(struct thin_c *tc, dm_block_t *result) r =dm_pool_alloc_data_block (pool->pmd, result);if (r) { -metadata_operation_failed (pool,"dm_pool_alloc_data_block" , r); +if (r == -ENOSPC ) +set_pool_mode (pool,PM_OUT_OF_DATA_SPACE ); +else +metadata_operation_failed (pool,"dm_pool_alloc_data_block" , r);return r; }
drivers/media/dvb-core/dvb_frontend.c +15 -8
@@ -229,8 +229,20 @@ static void dvb_frontend_add_event(struct dvb_frontend *fe, fe_status_t status)wake_up_interruptible (&events->wait_queue); } +static int dvb_frontend_test_event (struct dvb_frontend_private *fepriv, +struct dvb_fe_events *events) +{ +int ret; + +up (&fepriv->sem); + ret = events->eventw != events->eventr; +down (&fepriv->sem); + +return ret; +} +static int dvb_frontend_get_event (struct dvb_frontend *fe, -struct dvb_frontend_event *event,int flags) +struct dvb_frontend_event *event,int flags) {struct dvb_frontend_private *fepriv = fe->frontend_priv;struct dvb_fe_events *events = &fepriv->events;
@@ -248,13 +260,8 @@ static int dvb_frontend_get_event(struct dvb_frontend *fe,if (flags &O_NONBLOCK )return -EWOULDBLOCK ; -up (&fepriv->sem); - - ret =wait_event_interruptible (events->wait_queue, - events->eventw != events->eventr); - -if (down_interruptible (&fepriv->sem)) -return -ERESTARTSYS ; + ret =wait_event_interruptible (events->wait_queue, +dvb_frontend_test_event (fepriv, events));if (ret <0 )return ret;
drivers/media/dvb-frontends/drxd_hard.c +2 -1
@@ -2628,10 +2628,11 @@ static int DRXD_init(struct drxd_state *state, const u8 *fw, u32 fw_size)break ;/* Apply I2c address patch to B1 */ -if (!state->type_A && state->m_HiI2cPatch !=NULL ) +if (!state->type_A && state->m_HiI2cPatch !=NULL ) { status =WriteTable (state, state->m_HiI2cPatch);if (status <0 )break ; + }if (state->type_A) {/* HI firmware patch for UIO readout,
drivers/media/dvb-frontends/drxk_hard.c +2 -1
@@ -2220,12 +2220,13 @@ static int set_agc_rf(struct drxk_state *state, }/* Set TOP, only if IF-AGC is in AUTO mode */ -if (p_if_agc_settings->ctrl_mode ==DRXK_AGC_CTRL_AUTO ) +if (p_if_agc_settings->ctrl_mode ==DRXK_AGC_CTRL_AUTO ) { status =write16 (state,SCU_RAM_AGC_IF_IACCU_HI_TGT_MAX__A , p_agc_cfg->top);if (status <0 ) goto error; + }/* Cut-Off current */ status = write16(state, SCU_RAM_AGC_RF_IACCU_HI_CO__A,
drivers/media/i2c/smiapp/smiapp-core.c +5 -6
@@ -899,7 +899,7 @@ static int smiapp_read_nvm(struct smiapp_sensor *sensor,if (rval) goto out; -for (i =0 ; i <1000 ; i++) { +for (i =1000 ; i >0 ; i--) { rval =smiapp_read ( sensor,SMIAPP_REG_U8_DATA_TRANSFER_IF_1_STATUS , &s);
@@ -910,11 +910,10 @@ static int smiapp_read_nvm(struct smiapp_sensor *sensor,if (s &SMIAPP_DATA_TRANSFER_IF_1_STATUS_RD_READY )break ; -if (--i ==0 ) { - rval = -ETIMEDOUT ; - goto out; - } - + } +if (!i) { + rval = -ETIMEDOUT ; + goto out; }for (i =0 ; i <SMIAPP_NVM_PAGE_SIZE ; i++) {
drivers/media/platform/davinci/ccdc_hw_device.h +0 -10
@@ -46,16 +46,6 @@ struct ccdc_hw_ops {int (*set_hw_if_params) (struct vpfe_hw_if_param *param);/* get interface parameters */ int (*get_hw_if_params) (struct vpfe_hw_if_param *param); -/* -* Pointer to function to set parameters. Used -* for implementing VPFE_S_CCDC_PARAMS -*/ -int (*set_params) (void *params); -/* -* Pointer to function to get parameter. Used -* for implementing VPFE_G_CCDC_PARAMS -*/ -int (*get_params) (void *params);/* Pointer to function to configure ccdc */ int (*configure) (void );
drivers/media/platform/davinci/dm355_ccdc.c +1 -91
110 lines not on this page · raw message
drivers/media/platform/davinci/dm644x_ccdc.c +3 -148
189 lines not on this page · raw message
drivers/media/platform/davinci/vpfe_capture.c +0 -75
93 lines not on this page · raw message
drivers/media/platform/omap3isp/isp.c +0 -7
@@ -279,13 +279,6 @@ static const struct clk_ops isp_xclk_ops = {static const char *isp_xclk_parent_name ="cam_mclk" ; -static const struct clk_init_data isp_xclk_init_data = { - .name ="cam_xclk" , - .ops = &isp_xclk_ops, - .parent_names = &isp_xclk_parent_name, - .num_parents =1 , -}; -static int isp_xclk_init (struct isp_device *isp) {struct isp_platform_data *pdata = isp->pdata;
drivers/media/rc/imon.c +1 -1
@@ -1530,7 +1530,7 @@ static void imon_incoming_packet(struct imon_context *ictx,if (kc ==KEY_KEYBOARD && !ictx->release_code) { ictx->last_keycode = kc;if (!nomouse) { - ictx->pad_mouse = ~(ictx->pad_mouse) &0x1 ; + ictx->pad_mouse = !ictx->pad_mouse;dev_dbg (dev,"toggling to %s mode\n" , ictx->pad_mouse ?"mouse" :"keyboard" );spin_unlock_irqrestore (&ictx->kc_lock, flags);
drivers/media/rc/ir-mce_kbd-decoder.c +2 -0
@@ -130,6 +130,8 @@ static void mce_kbd_rx_timeout(unsigned long data)for (i =0 ; i <MCIR2_MASK_KEYS_START ; i++)input_report_key (mce_kbd->idev, kbd_keycodes[i],0 ); + +input_sync (mce_kbd->idev); }static enum mce_kbd_mode mce_kbd_mode (struct mce_kbd_dec *data)
drivers/media/usb/cx231xx/cx231xx-cards.c +3 -0
@@ -727,6 +727,9 @@ struct usb_device_id cx231xx_id_table[] = { .driver_info = CX231XX_BOARD_CNXT_RDE_250}, {USB_DEVICE(0x0572, 0x58A0), .driver_info = CX231XX_BOARD_CNXT_RDU_250}, + /* AverMedia DVD EZMaker 7 */ + {USB_DEVICE(0x07ca, 0xc039), + .driver_info = CX231XX_BOARD_CNXT_VIDEO_GRABBER}, {USB_DEVICE(0x2040, 0xb110), .driver_info = CX231XX_BOARD_HAUPPAUGE_USB2_FM_PAL}, {USB_DEVICE(0x2040, 0xb111),
drivers/media/usb/uvc/uvc_video.c +18 -6
@@ -155,14 +155,27 @@ static void uvc_fixup_video_ctrl(struct uvc_streaming *stream, } } +static size_t uvc_video_ctrl_size (struct uvc_streaming *stream) +{ +/* +* Return the size of the video probe and commit controls, which depends +* on the protocol version. +*/ +if (stream->dev->uvc_version <0x0110 ) +return 26 ; +else if (stream->dev->uvc_version <0x0150 ) +return 34 ; +else +return 48 ; +} +static int uvc_get_video_ctrl (struct uvc_streaming *stream,struct uvc_streaming_control *ctrl,int probe,__u8 query) { +u16 size =uvc_video_ctrl_size (stream);__u8 *data; -__u16 size;int ret; - size = stream->dev->uvc_version >=0x0110 ?34 :26 ;if ((stream->dev->quirks &UVC_QUIRK_PROBE_DEF ) && query ==UVC_GET_DEF )return -EIO ;
@@ -217,7 +230,7 @@ static int uvc_get_video_ctrl(struct uvc_streaming *stream, ctrl->dwMaxVideoFrameSize =get_unaligned_le32 (&data[18 ]); ctrl->dwMaxPayloadTransferSize =get_unaligned_le32 (&data[22 ]); -if (size ==34 ) { +if (size >=34 ) { ctrl->dwClockFrequency =get_unaligned_le32 (&data[26 ]); ctrl->bmFramingInfo = data[30 ]; ctrl->bPreferedVersion = data[31 ];
@@ -246,11 +259,10 @@ static int uvc_get_video_ctrl(struct uvc_streaming *stream,static int uvc_set_video_ctrl (struct uvc_streaming *stream,struct uvc_streaming_control *ctrl,int probe) { +u16 size =uvc_video_ctrl_size (stream);__u8 *data; -__u16 size;int ret; - size = stream->dev->uvc_version >=0x0110 ?34 :26 ; data =kzalloc (size,GFP_KERNEL );if (data ==NULL )return -ENOMEM ;
@@ -267,7 +279,7 @@ static int uvc_set_video_ctrl(struct uvc_streaming *stream,put_unaligned_le32 (ctrl->dwMaxVideoFrameSize, &data[18 ]);put_unaligned_le32 (ctrl->dwMaxPayloadTransferSize, &data[22 ]); -if (size ==34 ) { +if (size >=34 ) {put_unaligned_le32 (ctrl->dwClockFrequency, &data[26 ]); data[30 ] = ctrl->bmFramingInfo; data[31 ] = ctrl->bPreferedVersion;
drivers/media/v4l2-core/v4l2-compat-ioctl32.c +1 -1
@@ -848,7 +848,7 @@ static int put_v4l2_ext_controls32(struct file *file, get_user(kcontrols, &kp->controls))return -EFAULT ; -if (!count) +if (!count || count > (U32_MAX /sizeof (*ucontrols)))return 0 ;if (get_user (p, &up->controls))return -EFAULT ;
drivers/media/v4l2-core/v4l2-event.c +20 -18
@@ -119,14 +119,6 @@ static void __v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *eif (sev ==NULL )return ; -/* -* If the event has been added to the fh->subscribed list, but its -* add op has not completed yet elems will be 0, treat this as -* not being subscribed. -*/ -if (!sev->elems) -return ; -/* Increase event sequence number on fh. */ fh->sequence++;
@@ -209,6 +201,7 @@ int v4l2_event_subscribe(struct v4l2_fh *fh,struct v4l2_subscribed_event *sev, *found_ev;unsigned long flags;unsigned i; +int ret =0 ;if (sub->type ==V4L2_EVENT_ALL )return -EINVAL ;
@@ -226,31 +219,36 @@ int v4l2_event_subscribe(struct v4l2_fh *fh, sev->flags = sub->flags; sev->fh = fh; sev->ops = ops; + sev->elems = elems; + +mutex_lock (&fh->subscribe_lock);spin_lock_irqsave (&fh->vdev->fh_lock, flags); found_ev =v4l2_event_subscribed (fh, sub->type, sub->id); -if (!found_ev) -list_add (&sev->list, &fh->subscribed);spin_unlock_irqrestore (&fh->vdev->fh_lock, flags);if (found_ev) { +/* Already listening */ kfree (sev); -return 0 ;/* Already listening */ + goto out_unlock; }if (sev->ops && sev->ops->add) { -int ret = sev->ops->add (sev, elems); + ret = sev->ops->add (sev, elems);if (ret) { - sev->ops =NULL ; -v4l2_event_unsubscribe (fh, sub); -return ret; +kfree (sev); + goto out_unlock; } } -/* Mark as ready for use */ - sev->elems = elems; +spin_lock_irqsave (&fh->vdev->fh_lock, flags); +list_add (&sev->list, &fh->subscribed); +spin_unlock_irqrestore (&fh->vdev->fh_lock, flags); -return 0 ; +out_unlock: +mutex_unlock (&fh->subscribe_lock); + +return ret; }EXPORT_SYMBOL_GPL (v4l2_event_subscribe);
@@ -289,6 +287,8 @@ int v4l2_event_unsubscribe(struct v4l2_fh *fh,return 0 ; } +mutex_lock (&fh->subscribe_lock); +spin_lock_irqsave (&fh->vdev->fh_lock, flags); sev =v4l2_event_subscribed (fh, sub->type, sub->id);
@@ -306,6 +306,8 @@ int v4l2_event_unsubscribe(struct v4l2_fh *fh,if (sev && sev->ops && sev->ops->del) sev->ops->del (sev); +mutex_unlock (&fh->subscribe_lock); +kfree (sev);return 0 ;
drivers/media/v4l2-core/v4l2-fh.c +2 -0
@@ -42,6 +42,7 @@ void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev)INIT_LIST_HEAD (&fh->available);INIT_LIST_HEAD (&fh->subscribed); fh->sequence =-1 ; +mutex_init (&fh->subscribe_lock); }EXPORT_SYMBOL_GPL (v4l2_fh_init);
@@ -88,6 +89,7 @@ void v4l2_fh_exit(struct v4l2_fh *fh)if (fh->vdev ==NULL )return ;v4l2_event_unsubscribe_all (fh); +mutex_destroy (&fh->subscribe_lock); fh->vdev =NULL ; }EXPORT_SYMBOL_GPL (v4l2_fh_exit);
drivers/mfd/tps65911-comparator.c +5 -12
@@ -22,9 +22,8 @@#include <linux/gpio.h> #include <linux/mfd/tps65910.h> -#define COMP 0 -#define COMP1 1 -#define COMP2 2 +#define COMP1 0 +#define COMP2 1/* Comparator 1 voltage selection table in millivolts */ static const u16 COMP_VSEL_TABLE [] = {
@@ -63,9 +62,6 @@ static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage)int ret;u8 index =0 , val; -if (id ==COMP ) -return 0 ; -while (curr_voltage < tps_comp.uV_max) { curr_voltage = tps_comp.vsel_table[index];if (curr_voltage >= voltage)
@@ -78,7 +74,7 @@ static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage)return -EINVAL ; val = index <<1 ; - ret = tps65910->write (tps65910, tps_comp.reg,1 , &val); + ret =tps65910_reg_write (tps65910, tps_comp.reg, val);return ret; }
@@ -86,13 +82,10 @@ static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage)static int comp_threshold_get (struct tps65910 *tps65910,int id) {struct comparator tps_comp = tps_comparators[id]; +unsigned int val;int ret; -u8 val; - -if (id ==COMP ) -return 0 ; - ret = tps65910->read (tps65910, tps_comp.reg,1 , &val); + ret =tps65910_reg_read (tps65910, tps_comp.reg, &val);if (ret <0 )return ret;
drivers/misc/ibmasm/ibmasmfs.c +3 -24
@@ -507,35 +507,14 @@ static int remote_settings_file_close(struct inode *inode, struct file *file)static ssize_t remote_settings_file_read (struct file *file,char __user *buf,size_t count,loff_t *offset) {void __iomem *address = (void __iomem *)file->private_data; -unsigned char *page; -int retval;int len =0 ;unsigned int value; - -if (*offset <0 ) -return -EINVAL ; -if (count ==0 || count >1024 ) -return 0 ; -if (*offset !=0 ) -return 0 ; - - page = (unsigned char *)__get_free_page (GFP_KERNEL ); -if (!page) -return -ENOMEM ; +char lbuf[20 ]; value =readl (address); - len =sprintf (page,"%d\n" , value); - -if (copy_to_user (buf, page, len)) { - retval = -EFAULT ; - goto exit; - } - *offset += len; - retval = len; + len =snprintf (lbuf,sizeof (lbuf),"%d\n" , value); -exit: -free_page ((unsigned long )page); -return retval; +return simple_read_from_buffer (buf, count, offset, lbuf, len); }static ssize_t remote_settings_file_write (struct file *file,const char __user *ubuff,size_t count,loff_t *offset)
drivers/mmc/host/sdhci-esdhc-imx.c +9 -9
@@ -261,6 +261,15 @@ static u32 esdhc_readl_le(struct sdhci_host *host, int reg) val =SDHCI_SUPPORT_DDR50 |SDHCI_SUPPORT_SDR104 |SDHCI_SUPPORT_SDR50 |SDHCI_USE_SDR50_TUNING ; + +/* +* Do not advertise faster UHS modes if there are no +* pinctrl states for 100MHz/200MHz. +*/ +if (IS_ERR_OR_NULL (imx_data->pins_100mhz) || +IS_ERR_OR_NULL (imx_data->pins_200mhz)) + val &= ~(SDHCI_SUPPORT_SDR50 |SDHCI_SUPPORT_DDR50 + |SDHCI_SUPPORT_SDR104 ); } }
@@ -1108,15 +1117,6 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev) ESDHC_PINCTRL_STATE_100MHZ); imx_data->pins_200mhz =pinctrl_lookup_state (imx_data->pinctrl,ESDHC_PINCTRL_STATE_200MHZ ); -if (IS_ERR (imx_data->pins_100mhz) || -IS_ERR (imx_data->pins_200mhz)) { -dev_warn (mmc_dev (host->mmc), -"could not get ultra high speed state, work on normal mode\n" ); -/* fall back to not support uhs by specify no 1.8v quirk */ - host->quirks2 |=SDHCI_QUIRK2_NO_1_8_V ; - } - }else { - host->quirks2 |=SDHCI_QUIRK2_NO_1_8_V ; } err =sdhci_add_host (host);
drivers/mtd/chips/cfi_cmdset_0002.c +33 -18
150 lines not on this page · raw message
drivers/mtd/nand/omap2.c +115 -225
340 lines not on this page · raw message
drivers/net/can/dev.c +78 -0
78 lines not on this page · raw message
drivers/net/can/sja1000/sja1000_platform.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/can/xilinx_can.c +260 -63
323 lines not on this page · raw message
drivers/net/ethernet/atheros/atl1c/atl1c_main.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/genet/bcmgenet.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/cmd.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/renesas/sh_eth.c +15 -32
47 lines not on this page · raw message
drivers/net/usb/smsc75xx.c +62 -0
62 lines not on this page · raw message
drivers/net/wireless/brcm80211/brcmfmac/p2p.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +3 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/rtlwifi/rtl8723be/hw.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/xen-netfront.c +104 -191
295 lines not on this page · raw message
drivers/s390/scsi/zfcp_erp.c +96 -27
123 lines not on this page · raw message
drivers/scsi/sg.c +40 -2
42 lines not on this page · raw message
drivers/staging/iio/meter/ade7854-i2c.c +13 -13
Lines of this file are not shown. View the raw message.
drivers/staging/iio/trigger/iio-trig-periodic-rtc.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8192ee/btcoexist/halbtc8821a2ant.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8192ee/rtl8192ee/hw.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/tty/n_tty.c +32 -23
55 lines not on this page · raw message
drivers/tty/vt/vt.c +40 -36
76 lines not on this page · raw message
drivers/video/backlight/as3711_bl.c +29 -16
45 lines not on this page · raw message
drivers/video/fbdev/omap/lcd_ams_delta.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/video/fbdev/omap/lcd_htcherald.c +4 -0
Lines of this file are not shown. View the raw message.
fs/binfmt_elf.c +25 -21
46 lines not on this page · raw message
fs/dcache.c +42 -43
85 lines not on this page · raw message
fs/ext4/file.c +53 -37
90 lines not on this page · raw message
fs/ext4/inode.c +37 -33
70 lines not on this page · raw message
fs/ext4/super.c +50 -25
75 lines not on this page · raw message
fs/proc/task_mmu.c +33 -41
74 lines not on this page · raw message
fs/reiserfs/prints.c +81 -60
141 lines not on this page · raw message
net/batman-adv/debugfs.c +40 -8
48 lines not on this page · raw message
net/batman-adv/debugfs.h +45 -0
45 lines not on this page · raw message
net/ipv6/netfilter/nf_conntrack_reasm.c +3 -3
Lines of this file are not shown. View the raw message.
net/l2tp/l2tp_ppp.c +54 -22
76 lines not on this page · raw message
net/sctp/outqueue.c +23 -25
48 lines not on this page · raw message
tools/arch/x86/include/asm/unistd_32.h new file +9 -0
Lines of this file are not shown. View the raw message.
tools/arch/x86/include/asm/unistd_64.h new file +9 -0
Lines of this file are not shown. View the raw message.
tools/perf/builtin-script.c +40 -42
82 lines not on this page · raw message
tools/perf/util/include/asm/unistd_32.h deleted +0 -1
Lines of this file are not shown. View the raw message.
tools/perf/util/include/asm/unistd_64.h deleted +0 -1
Lines of this file are not shown. View the raw message.
tools/perf/util/parse-events.c +32 -32
64 lines not on this page · 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.