Linux 3.16.62
I'm announcing the release of the 3.16.62 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.61 is attached to this message.
Ben.
------------
Makefile | 2 +- arch/arc/kernel/process.c | 20 + arch/arm/boot/dts/tegra30-cardhu.dtsi | 1 + arch/arm/kvm/mmu.c | 42 ++- arch/arm/mach-hisi/hotplug.c | 19 +- arch/arm/mm/ioremap.c | 2 +- arch/arm64/kvm/guest.c | 45 +++ arch/arm64/mm/init.c | 6 +- arch/mips/include/asm/processor.h | 15 +- arch/mips/kernel/ptrace.c | 2 +- arch/mips/kernel/ptrace32.c | 2 +- arch/mips/lib/memset.S | 4 +- arch/powerpc/include/asm/fadump.h | 3 - arch/powerpc/kernel/fadump.c | 92 ++++- arch/powerpc/kvm/book3s_64_mmu_hv.c | 2 +- arch/powerpc/mm/numa.c | 4 +- arch/powerpc/platforms/powernv/pci-ioda.c | 37 ++ arch/powerpc/platforms/pseries/ras.c | 4 +- arch/powerpc/sysdev/mpic_msgr.c | 2 +- arch/s390/include/asm/qdio.h | 1 - arch/s390/mm/fault.c | 2 + arch/s390/pci/pci.c | 2 + arch/x86/include/asm/kdebug.h | 12 +- arch/x86/include/asm/microcode_intel.h | 15 + arch/x86/include/asm/percpu.h | 8 +- arch/x86/include/asm/pgtable_64.h | 16 +- arch/x86/include/asm/processor.h | 4 +- arch/x86/kernel/Makefile | 1 + arch/x86/kernel/cpu/bugs.c | 46 ++- arch/x86/kernel/cpu/common.c | 1 + arch/x86/kernel/cpu/intel.c | 14 +- arch/x86/kernel/cpu/microcode/amd.c | 22 +- arch/x86/kernel/cpu/microcode/intel.c | 31 +- arch/x86/kernel/cpu/microcode/intel_early.c | 33 +- arch/x86/kernel/dumpstack_32.c | 2 +- arch/x86/kernel/dumpstack_64.c | 2 +- arch/x86/kernel/eisa.c | 24 ++ arch/x86/kernel/paravirt.c | 4 +- arch/x86/kernel/process_32.c | 4 +- arch/x86/kernel/process_64.c | 11 +- arch/x86/kernel/traps.c | 13 - arch/x86/mm/kmemcheck/error.c | 2 +- arch/x86/mm/pgtable.c | 6 +- arch/x86/vdso/vclock_gettime.c | 18 +- arch/xtensa/include/asm/cacheasm.h | 69 ++-- block/bio-integrity.c | 26 -- block/partitions/aix.c | 13 +- crypto/ablkcipher.c | 57 ++- crypto/blkcipher.c | 54 ++- crypto/cts.c | 3 +- crypto/sha1_generic.c | 2 +- crypto/sha256_generic.c | 5 +- crypto/sha512_generic.c | 2 +- crypto/tgr192.c | 4 +- crypto/vmac.c | 412 +++++++++------------ crypto/wp512.c | 8 +- drivers/acpi/bus.c | 13 +- drivers/base/power/main.c | 5 +- drivers/block/nbd.c | 3 + drivers/cdrom/cdrom.c | 2 +- drivers/char/ipmi/ipmi_bt_sm.c | 92 ++--- drivers/crypto/mxs-dcp.c | 53 +-- drivers/edac/edac_mc_sysfs.c | 6 +- drivers/edac/i7core_edac.c | 24 +- drivers/gpu/drm/drm_fb_helper.c | 91 ++--- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_ddi.c | 4 + drivers/gpu/drm/i915/intel_display.c | 8 +- drivers/gpu/drm/nouveau/nouveau_connector.c | 20 +- drivers/gpu/drm/panel/panel-s6e8aa0.c | 2 +- drivers/gpu/drm/udl/udl_fb.c | 10 +- drivers/gpu/drm/udl/udl_main.c | 35 +- drivers/hv/connection.c | 8 +- drivers/hwmon/nct6775.c | 28 +- drivers/i2c/busses/i2c-xiic.c | 4 + drivers/iio/frequency/ad9523.c | 4 +- drivers/infiniband/core/cma.c | 12 +- drivers/infiniband/core/ucm.c | 3 + drivers/infiniband/core/ucma.c | 9 + drivers/infiniband/hw/cxgb4/ev.c | 1 + drivers/infiniband/hw/cxgb4/qp.c | 62 +++- drivers/infiniband/hw/cxgb4/t4.h | 11 + drivers/infiniband/ulp/ipoib/ipoib_cm.c | 2 + drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 1 + drivers/infiniband/ulp/srpt/ib_srpt.c | 6 +- drivers/infiniband/ulp/srpt/ib_srpt.h | 4 +- drivers/input/mouse/elantech.c | 2 + drivers/leds/leds-max8997.c | 2 +- drivers/md/bcache/bcache.h | 1 + drivers/md/bcache/closure.h | 3 - drivers/md/bcache/io.c | 1 + drivers/md/bcache/journal.c | 8 +- drivers/md/bcache/request.c | 14 +- drivers/md/bcache/super.c | 29 +- drivers/md/dm-cache-metadata.c | 3 +- drivers/md/dm-cache-target.c | 5 +- drivers/md/dm-crypt.c | 8 +- drivers/media/platform/exynos4-is/fimc-isp-video.c | 11 +- drivers/media/platform/omap3isp/isp.c | 2 +- drivers/media/usb/dvb-usb-v2/gl861.c | 17 +- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 2 +- drivers/mfd/sm501.c | 1 + drivers/misc/hmc6352.c | 2 + drivers/misc/mei/nfc.c | 2 +- drivers/misc/vmw_vmci/vmci_queue_pair.c | 4 +- drivers/mtd/mtdchar.c | 10 +- drivers/mtd/nand/mxc_nand.c | 4 +- drivers/mtd/spi-nor/fsl-quadspi.c | 20 +- drivers/net/ethernet/cadence/macb.c | 10 +- drivers/net/ethernet/marvell/mvneta.c | 1 - drivers/net/ethernet/qlogic/qlcnic/qlcnic.h | 8 +- .../net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | 3 +- .../net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h | 3 +- drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h | 3 +- drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c | 12 +- drivers/net/ethernet/realtek/r8169.c | 8 +- drivers/net/ppp/pppoe.c | 3 + drivers/net/team/team.c | 5 + drivers/net/usb/asix_common.c | 3 + drivers/net/usb/ax88179_178a.c | 3 + drivers/net/usb/r8152.c | 3 + drivers/net/usb/smsc75xx.c | 3 + drivers/net/usb/smsc95xx.c | 3 + drivers/net/usb/sr9800.c | 3 + drivers/net/vxlan.c | 103 ++++-- drivers/net/wireless/ath/ath10k/mac.c | 7 + drivers/net/wireless/ath/wil6210/wmi.c | 7 +- drivers/net/wireless/b43/leds.c | 2 +- drivers/net/wireless/b43legacy/leds.c | 2 +- drivers/net/wireless/libertas/dev.h | 1 + drivers/net/wireless/libertas/if_sdio.c | 34 +- drivers/net/wireless/rndis_wlan.c | 2 + drivers/net/xen-netfront.c | 6 +- drivers/of/selftest.c | 28 +- drivers/pci/host/pci-mvebu.c | 2 +- drivers/pci/hotplug/pci_hotplug_core.c | 9 + drivers/pci/hotplug/pciehp.h | 1 + drivers/pci/hotplug/pciehp_core.c | 5 + drivers/pci/hotplug/pciehp_hpc.c | 18 +- drivers/pci/pci.c | 27 +- drivers/pinctrl/berlin/berlin.c | 13 +- drivers/pinctrl/pinctrl-imx.c | 2 +- drivers/pinctrl/pinctrl-imx1-core.c | 2 +- drivers/pinctrl/pinctrl-msm.c | 10 +- drivers/platform/x86/alienware-wmi.c | 1 + drivers/platform/x86/ideapad-laptop.c | 7 + drivers/power/generic-adc-battery.c | 25 +- drivers/ptp/ptp_chardev.c | 4 + drivers/pwm/pwm-tiehrpwm.c | 13 +- drivers/regulator/core.c | 3 +- drivers/s390/cio/qdio_main.c | 5 +- drivers/scsi/aic94xx/aic94xx_init.c | 4 +- drivers/scsi/scsi_sysfs.c | 20 +- drivers/scsi/virtio_scsi.c | 6 +- drivers/spi/spi-rspi.c | 140 +++++-- drivers/spi/spi-sh-msiof.c | 57 ++- drivers/spi/spi-tegra20-slink.c | 31 +- drivers/staging/rts5208/sd.c | 2 +- drivers/staging/usbip/vhci_hcd.c | 43 ++- drivers/target/iscsi/iscsi_target_login.c | 35 +- drivers/target/iscsi/iscsi_target_tpg.c | 3 +- drivers/tty/serial/cpm_uart/cpm_uart_core.c | 10 +- drivers/tty/serial/pxa.c | 3 +- drivers/tty/serial/serial_core.c | 17 +- drivers/tty/tty_ioctl.c | 15 +- drivers/tty/vt/vt_ioctl.c | 4 + drivers/uio/uio.c | 3 +- drivers/usb/core/devio.c | 24 +- drivers/usb/core/driver.c | 50 +-- drivers/usb/core/hcd-pci.c | 2 - drivers/usb/core/message.c | 11 + drivers/usb/core/quirks.c | 7 + drivers/usb/core/usb.c | 2 + drivers/usb/gadget/f_mass_storage.c | 3 + drivers/usb/gadget/net2280.c | 36 +- drivers/usb/host/u132-hcd.c | 2 +- drivers/usb/host/xhci-pci.c | 2 + drivers/usb/misc/uss720.c | 4 +- drivers/usb/misc/yurex.c | 5 +- drivers/usb/serial/io_ti.h | 2 +- drivers/usb/serial/kobil_sct.c | 12 +- drivers/usb/serial/sierra.c | 4 +- drivers/usb/serial/ti_usb_3410_5052.c | 13 +- drivers/usb/serial/ti_usb_3410_5052.h | 2 - drivers/usb/serial/usb-serial-simple.c | 3 +- drivers/usb/storage/scsiglue.c | 9 + drivers/usb/storage/uas.c | 20 + drivers/usb/storage/unusual_devs.h | 7 + drivers/video/fbdev/aty/atyfb.h | 3 +- drivers/video/fbdev/aty/atyfb_base.c | 7 +- drivers/video/fbdev/aty/mach64_ct.c | 10 +- drivers/video/fbdev/core/fbmem.c | 38 +- drivers/video/fbdev/omap/omapfb_main.c | 2 +- drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c | 5 +- drivers/video/fbdev/udlfb.c | 140 ++++--- fs/9p/xattr.c | 6 +- fs/binfmt_elf.c | 2 +- fs/btrfs/disk-io.c | 10 +- fs/btrfs/inode.c | 25 -- fs/btrfs/super.c | 1 - fs/btrfs/volumes.c | 10 +- fs/cachefiles/namei.c | 2 +- fs/cifs/cifs_debug.c | 30 +- fs/cifs/cifsfs.c | 20 +- fs/cifs/connect.c | 9 +- fs/cifs/inode.c | 2 + fs/cifs/readdir.c | 11 +- fs/cifs/sess.c | 6 + fs/cifs/smb2ops.c | 23 +- fs/cifs/smb2pdu.c | 40 +- fs/cifs/smb2pdu.h | 11 + fs/ext4/dir.c | 20 +- fs/ext4/inline.c | 4 +- fs/ext4/mballoc.c | 4 +- fs/ext4/mmp.c | 1 - fs/ext4/namei.c | 6 + fs/ext4/resize.c | 45 ++- fs/ext4/xattr.c | 2 + fs/fuse/cuse.c | 2 +- fs/fuse/dev.c | 7 +- fs/fuse/file.c | 1 + fs/fuse/fuse_i.h | 2 - fs/fuse/inode.c | 37 +- fs/ocfs2/buffer_head_io.c | 1 + fs/ocfs2/dlm/dlmmaster.c | 4 +- fs/proc/base.c | 14 + fs/pstore/ram.c | 29 +- fs/pstore/ram_core.c | 17 +- fs/quota/quota.c | 5 +- fs/reiserfs/xattr.c | 6 +- fs/seq_file.c | 7 +- fs/sysfs/file.c | 44 +++ fs/ubifs/journal.c | 16 +- fs/ubifs/lprops.c | 8 +- fs/ubifs/super.c | 3 + fs/xattr.c | 2 +- fs/xfs/xfs_attr.c | 9 +- include/crypto/vmac.h | 63 ---- include/linux/blkdev.h | 38 ++ include/linux/cpuidle.h | 3 + include/linux/netdevice.h | 7 + include/linux/percpu_counter.h | 13 +- include/linux/posix-timers.h | 4 +- include/linux/seq_file.h | 13 +- include/linux/skbuff.h | 5 + include/linux/sysfs.h | 14 + include/linux/usb.h | 2 +- include/net/ip_fib.h | 1 + include/net/netfilter/nf_tables.h | 4 +- include/video/udlfb.h | 5 +- kernel/auditsc.c | 8 +- kernel/events/core.c | 15 +- kernel/kprobes.c | 4 +- kernel/posix-cpu-timers.c | 2 +- kernel/posix-timers.c | 31 +- kernel/sched/idle.c | 2 +- kernel/time/alarmtimer.c | 3 +- kernel/trace/blktrace.c | 4 + kernel/trace/ring_buffer.c | 2 + kernel/trace/trace.c | 4 +- kernel/trace/trace_uprobe.c | 2 +- lib/percpu_counter.c | 6 +- mm/huge_memory.c | 6 +- mm/madvise.c | 2 +- mm/memory.c | 15 +- mm/mremap.c | 21 +- mm/shmem.c | 2 + mm/truncate.c | 8 +- mm/vmstat.c | 3 + net/9p/client.c | 2 +- net/9p/trans_fd.c | 7 +- net/9p/trans_rdma.c | 3 + net/9p/trans_virtio.c | 13 +- net/batman-adv/gateway_client.c | 11 +- net/batman-adv/main.c | 8 +- net/batman-adv/network-coding.c | 34 +- net/batman-adv/soft-interface.c | 27 +- net/batman-adv/translation-table.c | 6 +- net/core/dev.c | 28 +- net/core/rtnetlink.c | 6 + net/core/skbuff.c | 12 +- net/ieee802154/6lowpan_rtnl.c | 140 +++++-- net/ipv4/fib_frontend.c | 4 + net/ipv4/fib_semantics.c | 50 +++ net/ipv4/igmp.c | 8 +- net/ipv4/ip_tunnel.c | 9 + net/ipv6/addrconf.c | 6 +- net/ipv6/af_inet6.c | 4 +- net/ipv6/ip6_output.c | 3 +- net/ipv6/ip6_tunnel.c | 13 +- net/ipv6/raw.c | 34 +- net/ipv6/xfrm6_output.c | 2 + net/l2tp/l2tp_core.c | 2 +- net/mac80211/cfg.c | 2 +- net/mac802154/tx.c | 35 +- net/netfilter/nf_tables_api.c | 10 +- net/netfilter/nft_hash.c | 2 +- net/netfilter/nft_rbtree.c | 2 +- net/sched/act_ipt.c | 2 +- net/wireless/nl80211.c | 1 + net/wireless/reg.c | 1 + net/xfrm/xfrm_policy.c | 5 +- net/xfrm/xfrm_user.c | 12 + security/apparmor/policy_unpack.c | 32 -- security/keys/encrypted-keys/encrypted.c | 31 +- sound/aoa/core/gpio-feature.c | 4 +- sound/core/memalloc.c | 8 +- sound/core/seq/oss/seq_oss.c | 2 +- sound/core/seq/seq_clientmgr.c | 2 +- sound/core/seq/seq_virmidi.c | 10 + sound/drivers/vx/vx_pcm.c | 6 +- sound/firewire/bebob/bebob_maudio.c | 24 +- sound/pci/cs5535audio/cs5535audio.h | 6 +- sound/pci/cs5535audio/cs5535audio_pcm.c | 4 +- sound/pci/emu10k1/emufx.c | 2 +- sound/pci/vx222/vx222_ops.c | 20 +- sound/pcmcia/vx/vxp_ops.c | 22 +- sound/soc/codecs/wm8994.c | 1 + tools/hv/hv_fcopy_daemon.c | 1 + tools/hv/hv_kvp_daemon.c | 2 +- 320 files changed, 3009 insertions(+), 1647 deletions(-)
Aaron Knister (1):
IB/ipoib: Avoid a race condition between start_xmit and cm_rep_handler
Aaron Ma (1):
Input: elantech - enable middle button of touchpad on ThinkPad P72
Akihiro Tsukada (1):
media: dvb-usb-v2/gl861: ensure USB message buffers DMA'able
Al Viro (1):
cachefiles: fix the race between cachefiles_bury_object() and rmdir(2)
Alan Stern (6):
USB: net2280: Fix erroneous synchronization change
USB: leave LPM alone if possible when binding/unbinding interface drivers
USB: remove LPM management from usb_driver_claim_interface()
USB: fix error handling in usb_driver_claim_interface()
USB: handle NULL config in usb_find_alt_setting()
USB: fix the usbfs flag sanitization for control transfers
Alexander Aring (4):
net: 6lowpan: fix reserved space for single frames
mac802154: tx: cleanup crc calculation
mac802154: tx: use put_unaligned_le16 for copy crc
net: mac802154: tx: expand tailroom if necessary
Anand Jain (1):
btrfs: rename total_bytes to avoid confusion
Andi Kleen (2):
x86/spectre: Add missing family 6 check to microcode check x86/speculation/l1tf: Increase l1tf memory limit for Nehalem+
Andrei Otcheretianski (1):
cfg80211: reg: Init wiphy_idx in regulatory_hint_core()
Andrey Ryabinin (1):
fuse: Don't access pipe->buffers without pipe_lock()
Andy Lutomirski (1):
x86/vdso: Fix asm constraints on vDSO syscall fallbacks
Anssi Hannula (1):
net: macb: do not disable MDIO bus at open/close time
Arunk Khandavalli (1):
cfg80211: nl80211_update_ft_ies() to validate NL80211_ATTR_IE
Ashish Samant (1):
ocfs2: fix locking for res->tracking and dlm->tracking_list
Ashok Raj (1):
x86/microcode/intel: Check microcode revision before updating sibling threads
Aurelien Aptel (1):
smb2: fix missing files in root share directory listing
Bart Van Assche (4):
IB/srpt: Support HCAs with more than two ports
scsi: target/iscsi: Make iscsit_ta_authentication() respect the output buffer size
scsi: sysfs: Introduce sysfs_{un,}break_active_protection()
scsi: core: Avoid that SCSI device removal through sysfs triggers a deadlock
Ben Hutchings (2):
USB: yurex: Fix buffer over-read in yurex_write() Linux 3.16.62
Benjamin Herrenschmidt (1):
powerpc/powernv/pci: Work around races in PCI bridge enabling
Bhaktipriya Shridhar (1):
bcache: Remove deprecated create_workqueue
Bin Yang (1):
pstore: Fix incorrect persistent ram buffer mapping
Boris Ostrovsky (1):
x86/EISA: Don't probe EISA bus for Xen PV guests
Borislav Petkov (1):
x86/microcode/intel: Add a helper which gives the microcode revision
Catalin Marinas (1):
cpuidle: Do not access cpuidle_devices when !CONFIG_CPU_IDLE
Chirantan Ekbote (1):
9p/net: Fix zero-copy path in the 9p virtio transport
Christian Brauner (1):
getxattr: use correct xattr length
Christophe JAILLET (1):
serial: pxa: Fix an error handling path in 'serial_pxa_probe()'
Christophe Leroy (1):
serial: cpm_uart: return immediately from console poll
Claudio Imbrenda (1):
s390/kvm: fix deadlock when killed by oom
Colin Ian King (2):
leds: max8997: use mode when calling max8997_led_set_mode
staging: rts5208: fix missing error check on call to rtsx_write_register
Corey Minyard (1):
ipmi: Move BT capabilities detection to the detect call
Dan Carpenter (16):
rndis_wlan: potential buffer overflow in rndis_wlan_auth_indication()
vmci: type promotion bug in qp_host_get_user_memory() drm/panel: type promotion bug in s6e8aa0_read_mtp_id()
mei: bus: type promotion bug in mei_nfc_if_version()
fbdev: omapfb: off by one in omapfb_register_client()
pinctrl: imx: off by one in imx_pinconf_group_dbg_show()
pinctrl: freescale: off by one in imx1_pinconf_group_dbg_show()
uio: potential double frees if __uio_register_device() fails
scsi: aic94xx: fix an error code in aic94xx_init()
powerpc: Fix size calculation using resource_size()
hwmon: (nct6775) Set weight source to zero correctly
cifs: prevent integer overflow in nxt_dir_entry()
CIFS: fix wrapping bugs in num_entries()
cifs: integer overflow in in SMB2_ioctl()
x86/paravirt: Fix some warning messages
net: sched: act_ipt: check for underflow in __tcf_ipt_init()
Daniel Black (1):
mm: madvise(MADV_DODUMP): allow hugetlbfs pages
Daniel Borkmann (2):
crypto: memzero_explicit - make sure to clear out sensitive data bpf, net: add skb_mac_header_len helper
Daniel Drake (1):
PCI: Reprogram bridge prefetch registers on resume
Daniel Mack (2):
libertas: fix suspend and resume for SDIO connected cards
libertas: call into generic suspend code before turning off power
Darrick J. Wong (1):
xfs: don't fail when converting shortform attr to long form during ATTR_REPLACE
Dave Chinner (1):
percpu_counter: batch size aware __percpu_counter_compare()
Dave Martin (1):
arm64: KVM: Tighten guest core register access from userspace
David Ahern (1):
net/ipv6: Fix index counter for unicast addresses in in6_dump_addrs
Denis Drozdov (1):
IB/IPoIB: Set ah valid flag in multicast send flow
Dexuan Cui (1):
Drivers: hv: vmbus: Use get/put_cpu() in vmbus_connect()
Douglas Anderson (1):
pinctrl: msm: Fix msm_config_group_get() to be compliant
Emil Lundmark (1):
drm: udl: Destroy framebuffer only if it was initialized
Eric Biggers (5):
crypto: vmac - require a block cipher with 128-bit block size
crypto: vmac - separate tfm and request context
crypto: blkcipher - fix crash flushing dcache in error path
crypto: ablkcipher - fix crash flushing dcache in error path
KEYS: encrypted: fix buffer overread in valid_master_desc()
Eric Dumazet (3):
ipv6: fix possible use-after-free in ip6_xmit()
rtnl: limit IFLA_NUM_TX_QUEUES and IFLA_NUM_RX_QUEUES to 4096
net: make skb_partial_csum_set() more robust against overflows
Eric W. Biederman (1):
ipv6: Compute net once in raw6_send_hdrinc
Ethan Lien (1):
btrfs: use correct compare function of dirty_metadata_bytes
Eugeniy Paltsev (1):
drm: fb-helper: Reject all pixel format changing requests
Evgenii Lepikhin (1):
ISCSI: fix minor memory leak
Felipe Balbi (1):
usb: gadget: udc: net2280: do not rely on 'driver' argument
Felix Fietkau (1):
mac80211: fix setting IEEE80211_KEY_FLAG_RX_MGMT for AP mode keys
Filippo Sironi (1):
x86/microcode: Update the new microcode revision unconditionally
Florian Fainelli (6):
asix: Check for supported Wake-on-LAN modes
ax88179_178a: Check for supported Wake-on-LAN modes
sr9800: Check for supported Wake-on-LAN modes
r8152: Check for supported Wake-on-LAN Modes
smsc75xx: Check for Wake-on-LAN modes
smsc95xx: Check for Wake-on-LAN modes
Florian Schmaus (1):
bcache: do not assign in if condition in bcache_init()
Florian Westphal (1):
netfilter: nf_tables: fix register ordering
Geert Uytterhoeven (5):
spi: sh-msiof: Add more register documentation
spi: rspi: Fix invalid SPI use during system suspend
spi: rspi: Handle dmaengine_prep_slave_sg() failures gracefully
spi: rspi: Fix leaking of unused DMA descriptors
spi: rspi: Fix interrupted DMA transfers
Greg Edwards (2):
block: move bio_integrity_{intervals,bytes} into blkdev.h
scsi: virtio_scsi: fix pi_bytes{out,in} on 4 KiB block size devices
Greg Hackmann (1):
arm64: mm: check for upper PAGE_SHIFT bits in pfn_valid()
Guenter Roeck (3):
mfd: sm501: Set coherent_dma_mask when creating subdevices
hwmon: (nct6775) Fix access to fan pulse registers
of: unittest: Disable interrupt node tests for old world MAC systems
Guillaume Nault (1):
pppoe: fix reception of frames with no mac header
Guoju Fang (1):
bcache: add separate workqueue for journal_write to avoid deadlock
Gustavo A. R. Silva (9):
ASoC: wm8994: Mark expected switch fall-through
ASoC: wm8994: Fix missing break in switch
hwmon: (nct6775) Fix potential Spectre v1
misc: hmc6352: fix potential Spectre v1
tty: vt_ioctl: fix potential Spectre v1 IB/ucm: Fix Spectre v1 vulnerability RDMA/ucma: Fix Spectre v1 vulnerability
usb: gadget: storage: Fix Spectre v1 vulnerability
ptp: fix Spectre v1 vulnerability
H. Nikolaus Schaller (2):
power: generic-adc-battery: fix out-of-bounds write when copying channel properties
power: generic-adc-battery: check for duplicate properties copied from iio channels
Haishuang Yan (1):
vxlan: fix a potential issue when create a new vxlan fdb entry.
Han Xu (1):
mtd: fsl-quadspi: fix macro collision problems with READ/WRITE
Hangbin Liu (2):
igmp: fix incorrect unsolicit report count when join group
igmp: fix incorrect unsolicit report count after link down and up
Hari Bathini (1):
powerpc/fadump: handle crash memory ranges array index overflow
Heiner Kallweit (1):
r8169: fix NAPI handling under high load
Hiromitsu Yamasaki (1):
spi: sh-msiof: Fix handling of write value for SISTR register
Huacai Chen (1):
MIPS: Change definition of cpu_relax() for Loongson-3
Ido Schimmel (1):
team: Forbid enslaving team device to itself
Imre Deak (1):
drm/i915/bdw: Increase IPS disable timeout to 100ms
Jani Nikula (1):
drm/i915: set DP Main Stream Attribute for color range on DDI platforms
Jann Horn (6):
mtdchar: fix overflows in adjustment of count
reiserfs: fix broken xattr handling (heap corruption, bad retval) RDMA/ucma: check fd type in ucma_migrate_id() x86/process: Don't mix user/kernel regs in 64bit __show_regs()
proc: restrict kernel stack dumps to root
mm/vmstat.c: skip NR_TLB_REMOTE_FLUSH* properly
Javier Martinez Canillas (1):
media: omap3isp: zero-initialize the isp cam_xclk{a,b} initial data
Jean Delvare (1):
ACPI / bus: Only call dmi_check_system() on X86
Jens Axboe (2):
nbd: don't allow invalid blocksize settings
bcache: don't embed 'return' statements in closure macros
Jeremy Cline (2):
ext4: fix spectre gadget in ext4_mb_regular_allocator() fs/quota: Fix spectre gadget in do_quotactl
Jia-Ju Bai (2):
usb: host: u132-hcd: Fix a sleep-in-atomic-context bug in u132_get_frame()
usb: misc: uss720: Fix two sleep-in-atomic-context bugs
Jiri Olsa (2):
perf/core: Protect PMU device removal with a 'pmu_bus_running' check, to fix CONFIG_DEBUG_TEST_DRIVER_REMOVE=y kernel panic perf/ring_buffer: Prevent concurent ring buffer access
Joel Fernandes (Google) (1):
mm: shmem.c: Correctly annotate new inodes for lockdep
Johan Hovold (8):
EDAC: Fix memleak in module init error path
EDAC, i7core: Fix memleaks and use-after-free on probe and remove
USB: serial: kobil_sct: fix modem-status error handling
tty: fix termios input-speed encoding
tty: fix termios input-speed encoding when using BOTHER
USB: serial: io_ti: fix array underflow in completion handler
USB: serial: ti_usb_3410_5052: fix array underflow in completion handler
USB: serial: simple: add Motorola Tetra MTP6550 id
John Johansen (1):
apparmor: remove no-op permission check in policy_unpack
John Ogness (1):
USB: serial: sierra: fix potential deadlock at close
Jon Hunter (1):
ARM: tegra: Fix Tegra30 Cardhu PCA954x reset
Josef Bacik (1):
Btrfs: fix btrfs_write_inode vs delayed iput deadlock
Julian Wiedmann (1):
s390/qdio: reset old sbal_state flags
Junxiao Bi (1):
ocfs2: fix ocfs2 read block panic
K. Y. Srinivasan (1):
Tools: hv: Fix a bug in the key delete code
Kees Cook (1):
pstore/ram: Fix failure-path memory leak in ramoops_init
Kirill Tkhai (1):
fuse: Add missed unlock_page() to fuse_readpages_fill()
Ladislav Michl (2):
video: udlfb: Remove noisy warnings
video: udlfb: Fix unaligned access
Lars-Peter Clausen (2):
iio: ad9523: Fix displayed phase
iio: ad9523: Fix return value for ad952x_store()
Leonard Crestez (1):
crypto: mxs-dcp - Fix wait logic on chan threads
Li Dongyang (1):
ext4: don't mark mmp buffer head dirty
Liang Chen (1):
bcache: explicitly destroy mutex while exiting
Linus Torvalds (2):
Make file credentials available to the seqfile interfaces
mremap: properly flush TLB before releasing the page
Lior David (1):
wil6210: missing length check in wmi_set_ie
Lukas Wunner (3):
PCI: hotplug: Don't leak pci_slot on registration failure
PCI: pciehp: Fix use-after-free on unplug
PCI: pciehp: Fix unprotected list iteration in IRQ handler
Lyude Paul (1):
drm/nouveau/drm/nouveau: Use pm_runtime_get_noresume() in connector_detect()
Maciej W. Rozycki (3):
binfmt_elf: Respect error return from `regset->active'
MIPS: Correct the 64-bit DSP accumulator register size
MIPS: memset: Fix CPU_DADDI_WORKAROUNDS `small_fixup' regression
Mahesh Salgaonkar (2):
powerpc/pseries: Avoid using the size greater than RTAS_ERROR_LOG_MAX. powerpc/pseries: Fix endianness while restoring of r3 in MCE handler.
Marcel Ziswiler (1):
spi: tegra20-slink: explicitly enable/disable clock
Mario Limonciello (1):
platform/x86: alienware-wmi: Correct a memory leak
Martin Kaiser (1):
mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt
Masami Hiramatsu (1):
kprobes: Make list and blacklist root user read only
Mathias Nyman (3):
usb: Don't die twice if PCI xhci host is not responding in resume
usb: Avoid use-after-free by flushing endpoints early in usb_set_interface()
xhci: Add missing CAS workaround for Intel Sunrise Point xHCI
Mathieu OTHACEHE (1):
USB: serial: ti_usb_3410_5052: use functions rather than macros
Matthias Brugger (1):
tty: fix typo in comment of tty_termios_encode_baud_rate
Mauricio Faria de Oliveira (2):
partitions/aix: fix usage of uninitialized lv_info and lvname structures partitions/aix: append null character to print data from disk
Mauro Carvalho Chehab (1):
media: rtl28xxu: be sure that it won't go past the array size
Max Filippov (2):
xtensa: limit offsets in __loop_cache_{all,page}
xtensa: increase ranges in ___invalidate_{i,d}cache_all
Maxence Duprès (1):
USB: add quirk for WORLDE Controller KS49 or Prodipe MIDI 49C USB controller
Mian Yousaf Kaukab (1):
usb: gadget: net2280: fix pullup handling
Michael Bringmann (1):
powerpc/pseries: Fix unitialized timer reset on migration
Michael Buesch (2):
b43/leds: Ensure NUL-termination of LED name string b43legacy/leds: Ensure NUL-termination of LED name string
Mika Båtsman (1):
media: gl861: fix probe of dvb_usb_gl861
Mike Christie (1):
iscsi target: fix session creation failure handling
Mike Snitzer (1):
dm cache metadata: save in-core policy_hint_size to on-disk superblock
Miklos Szeredi (3):
fuse: don't wake up reserved req in fuse_conn_kill()
fuse: flush requests on umount
fuse: Fix oops at process_init_reply()
Mikulas Patocka (13):
fb: fix lost console when the user unplugs a USB adapter
udlfb: fix semaphore value leak
udlfb: fix display corruption of the last line
udlfb: don't switch if we are switching to the same videomode
udlfb: make a local copy of fb_ops
udlfb: set optimal write delay
udlfb: handle allocation failure
udlfb: set line_length in dlfb_ops_set_par
udl-kms: change down_interruptible to down
udl-kms: handle allocation failure
udl-kms: fix crash due to uninitialized memory
dm: disable CRYPTO_TFM_REQ_MAY_SLEEP to fix a GFP_KERNEL recursion deadlock
mach64: detect the dot clock divider correctly on sparc
Nadav Amit (1):
x86/mm: Use WRITE_ONCE() when setting PTEs
Nicholas Mc Guire (3):
ALSA: snd-aoa: add of_node_put() in error path
ARM: hisi: handle of_iomap and fix missing of_node_put
cifs: check kmalloc before use
Nicholas Piggin (1):
mm: move tlb_table_flush to tlb_flush_mmu_free
Oliver Neukum (3):
usb: uas: add support for more quirk flags
USB: usbdevfs: sanitize flags more
USB: usbdevfs: restore warning for nonsensical flags
Olle Liljenzin (1):
platform/x86: ideapad-laptop: Add Y520-15IKBN to no_hw_rfkill
Ondrej Mosnáček (1):
audit: Fix extended comparison of GID/EGID
Paolo Abeni (2):
ip6_tunnel: be careful when accessing the inner header
ip_tunnel: be careful when accessing the inner header
Parav Pandit (1):
RDMA/cma: Protect cma dev list with lock
Paul Mackerras (1):
KVM: PPC: Book3S HV: Don't truncate HPTE index in xlate function
Pavel Tikhomirov (1):
mm: cleancache: fix corruption on missed inode invalidation
Peter Zijlstra (3):
mm/tlb: Remove tlb_remove_table() non-concurrent condition perf/core: Fix perf_pmu_unregister() locking x86/percpu: Fix this_cpu_read()
Prarit Bhargava (1):
x86/microcode: Make sure boot_cpu_data.microcode is up-to-date
Punit Agrawal (2):
KVM: arm/arm64: Skip updating PMD entry if no change
KVM: arm/arm64: Skip updating PTE entry if no change
Rafael J. Wysocki (1):
PM / core: Clear the direct_complete flag on errors
Rian Hunter (1):
x86/process: Re-export start_thread()
Richard Weinberger (4):
ubifs: Fix synced_i_size calculation for xattr inodes
ubifs: Fix memory leak in lprobs self-check
ubifs: Check data node size before truncate
ubifs: Check for name being NULL while mounting
Roopa Prabhu (2):
vxlan: add new fdb alloc and create helpers
vxlan: fix default fdb entry netlink notify ordering during netdev create
Sabrina Dubroca (2):
ipv6: fix cleanup ordering for pingv6 registration
net: ipv4: update fnhe_pmtu when first hop's MTU changes
Sagi Grimberg (1):
iscsi-target: nullify session in failed login sequence
Sebastian Ott (1):
s390/pci: fix out of bounds access during irq setup
Shahed Shaikh (1):
qlcnic: fix Tx descriptor corruption on 82xx devices
Shenghui Wang (1):
dm cache: destroy migration_cache if cache target registration failed
Shuah Khan (Samsung OSG) (1):
usb: usbip: Fix BUG: KASAN: slab-out-of-bounds in vhci_hub_control()
Shubhrajyoti Datta (1):
i2c: xiic: Make the start and the byte count write atomic
Simon Vincent (1):
ieee802154: 6lowpan: ensure header compression does not corrupt ipv6 header
Steffen Klassert (1):
xfrm: Validate address prefix lengths in the xfrm selector.
Steve French (4):
smb3: fill in statfs fsid and correct namelen
cifs: add missing debug entries for kconfig options
SMB3: Backup intent flag missing for directory opens with backupuid mounts
smb3: check for and properly advertise directory lease support
Steve Wise (3):
RDMA/cxgb4: Only call CQ completion handler if it is armed
iw_cxgb4: atomically flush the qp
iw_cxgb4: only allow 1 flush on user qps
Steven Rostedt (VMware) (3):
tracing: Do not call start/stop() functions when tracing_on does not change
uprobes: Use synchronize_rcu() not synchronize_sched() tracing/blktrace: Fix to allow setting same value
Sven Eckelmann (8):
ath10k: prevent active scans on potential unusable channels
batman-adv: Prevent duplicated gateway_node entry
batman-adv: Use kref_get for batadv_nc_get_nc_node
batman-adv: Prevent duplicated nc_node entry
batman-adv: Place kref_get for softif_vlan near use
batman-adv: Prevent duplicated softif_vlan entry
batman-adv: Prevent duplicated global TT entry
batman-adv: Prevent duplicated tvlv handler
Sylwester Nawrocki (1):
media: exynos4-is: Prevent NULL pointer dereference in __isp_video_try_fmt()
Taehee Yoo (1):
netfilter: nft_set: fix allocation size overflow in privsize callback.
Takashi Iwai (9):
EDAC: i7core: Return proper error codes for kzalloc() errors platform/x86: ideapad-laptop: Apply no_hw_rfkill to Y20-15IKBM, too
ALSA: memalloc: Don't exceed over the requested size
ALSA: seq: Fix poll() error return
ALSA: vx: Fix possible transfer overflow
ALSA: vx222: Fix invalid endian conversions
ALSA: vxpocket: Fix invalid endian conversions
ALSA: cs5535audio: Fix invalid endian conversion
ALSA: virmidi: Fix too long output trigger loop
Takashi Sakamoto (1):
ALSA: bebob: use address returned by kmalloc() instead of kernel stack for streaming DMA mapping
Thadeu Lima de Souza Cascardo (1):
xfrm6: call kfree_skb when skb is toobig
Theodore Ts'o (6):
ext4: check for NUL characters in extended attribute's name
ext4: check to make sure the rename(2)'s destination is not freed
ext4: avoid divide by zero fault when deleting corrupted inline directories
ext4: fix online resize's handling of a too-small final block group
ext4: prevent online resize with backup superblock
ext4: fix online resizing for bigalloc file systems with a 1k block size
Thomas Gleixner (3):
alarmtimer: Prevent overflow for relative nanosleep x86/boot: Move EISA setup to a separate file
posix-timers: Sanitize overrun handling
Thomas Petazzoni (2):
PCI: mvebu: Fix I/O space end address calculation
ARM: 8799/1: mm: fix pci_ioremap_io() offset check
Thomas Werschlein (1):
cifs: connect to servername instead of IP for IPC$ share
Tim Anderson (1):
USB: Add quirk to support DJI CineSSD
Tomas Bortoli (3):
net/9p/client.c: version pointer uninitialized net/9p/trans_fd.c: fix race-condition by flushing workqueue before the kfree() 9p: fix multiple NULL-pointer-dereferences
Tomi Valkeinen (1):
fbdev/omapfb: fix omapfb_memory_read infoleak
Tycho Andersen (1):
uart: fix race between uart_put_char() and uart_shutdown()
Vaibhav Nagarnaik (1):
ring-buffer: Allow for rescheduling when removing pages
Varka Bhadram (1):
mac802154: common tx error path
Vignesh R (2):
pwm: tiehrpwm: Don't use emulation mode bits to control PWM output
pwm: tiehrpwm: Fix disabling of output of PWMs
Vineet Gupta (1):
ARC: clone syscall to setp r25 as thread pointer
Vitaly Kuznetsov (2):
xen-netfront: fix queue name setting
tools: hv: fcopy: set 'error' in case an unknown operation was requested
Wei Wang (2):
l2tp: use sk_dst_check() to avoid race on sk->sk_dst_cache
ipv6: take rcu lock in rawv6_send_hdrinc()
Willy Tarreau (1):
ALSA: emu10k1: fix possible info leak to userspace on SNDRV_EMU10K1_IOCTL_INFO
Xiao Liang (1):
xen-netfront: fix warn message as irq device name has '/'
Yelena Krivosheev (1):
net: mvneta: fix mtu change on port without link
Young_X (1):
cdrom: fix improper type cast, which can leat to information leak.
Yu Zhao (1):
regulator: fix crash caused by null driver data
YueHaibing (2):
xfrm: fix 'passing zero to ERR_PTR()' warning
pinctrl: berlin: fix 'pctrl->functions' allocation in berlin_pinctrl_build_state
jiangyiwen (1):
9p/virtio: fix off-by-one error in sg list bounds check
piaojun (1):
fs/9p/xattr.c: catch the error of p9_client_clunk when setting xattr failed
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 16 -SUBLEVEL = 61 +SUBLEVEL = 62 EXTRAVERSION = NAME = Museum of Fishiegoodies
arch/arc/kernel/process.c +20 -0
@@ -147,6 +147,26 @@ int copy_thread(unsigned long clone_flags,task_thread_info (current)->thr_ptr; } + +/* +* setup usermode thread pointer #1: +* when child is picked by scheduler, __switch_to() uses @c_callee to +* populate usermode callee regs: this works (despite being in a kernel +* function) since special return path for child @ret_from_fork() +* ensures those regs are not clobbered all the way to RTIE to usermode +*/ + c_callee->r25 =task_thread_info (p)->thr_ptr; + +#ifdef CONFIG_ARC_CURR_IN_REG +/* +* setup usermode thread pointer #2: +* however for this special use of r25 in kernel, __switch_to() sets +* r25 for kernel needs and only in the final return path is usermode +* r25 setup, from pt_regs->user_r25. So set that up as well +*/ + c_regs->user_r25 = c_callee->r25; +#endif +return 0 ; }
arch/arm/boot/dts/tegra30-cardhu.dtsi +1 -0
@@ -193,6 +193,7 @@ #address-cells = <1>; #size-cells = <0>; reg = <0x70>; + reset-gpio = <&gpio TEGRA_GPIO(BB, 0) GPIO_ACTIVE_LOW>; }; };
arch/arm/kvm/mmu.c +31 -11
56 lines not on this page · raw message
arch/arm/mach-hisi/hotplug.c +13 -6
@@ -137,13 +137,20 @@ static int hi3xxx_hotplug_init(void)struct device_node *node; node =of_find_compatible_node (NULL ,NULL ,"hisilicon,sysctrl" ); -if (node) { - ctrl_base =of_iomap (node,0 ); - id =HI3620_CTRL ; -return 0 ; +if (!node) { + id =ERROR_CTRL ; +return -ENOENT ; } - id =ERROR_CTRL ; -return -ENOENT ; + + ctrl_base =of_iomap (node,0 ); +of_node_put (node); +if (!ctrl_base) { + id =ERROR_CTRL ; +return -ENOMEM ; + } + + id =HI3620_CTRL ; +return 0 ; }void hi3xxx_set_cpu (int cpu,bool enable)
arch/arm/mm/ioremap.c +1 -1
@@ -447,7 +447,7 @@ void pci_ioremap_set_mem_type(int mem_type)int pci_ioremap_io (unsigned int offset,phys_addr_t phys_addr) { -BUG_ON (offset +SZ_64K >IO_SPACE_LIMIT ); +BUG_ON (offset +SZ_64K -1 >IO_SPACE_LIMIT ); return ioremap_page_range(PCI_IO_VIRT_BASE + offset, PCI_IO_VIRT_BASE + offset + SZ_64K,
arch/arm64/kvm/guest.c +45 -0
63 lines not on this page · raw message
arch/arm64/mm/init.c +5 -1
@@ -113,7 +113,11 @@ static void __init zone_sizes_init(unsigned long min, unsigned long max)#ifdef CONFIG_HAVE_ARCH_PFN_VALID int pfn_valid (unsigned long pfn) { -return memblock_is_memory (pfn <<PAGE_SHIFT ); +phys_addr_t addr = pfn <<PAGE_SHIFT ; + +if ((addr >>PAGE_SHIFT ) != pfn) +return 0 ; +return memblock_is_memory (addr); }EXPORT_SYMBOL (pfn_valid);#endif
arch/mips/include/asm/processor.h +14 -1
@@ -143,7 +143,7 @@ struct mips_fpu_struct {#define NUM_DSP_REGS 6 -typedef __u32 dspreg_t ; +typedef unsigned long dspreg_t ;struct mips_dsp_state {dspreg_t dspr[NUM_DSP_REGS ];
@@ -366,7 +366,20 @@ unsigned long get_wchan(struct task_struct *p);#define KSTK_ESP (tsk) (task_pt_regs(tsk)->regs[29])#define KSTK_STATUS (tsk) (task_pt_regs(tsk)->cp0_status) +#ifdef CONFIG_CPU_LOONGSON3 +/* +* Loongson-3's SFB (Store-Fill-Buffer) may buffer writes indefinitely when a +* tight read loop is executed, because reads take priority over writes & the +* hardware (incorrectly) doesn't ensure that writes will eventually occur. +* +* Since spin loops of any kind should have a cpu_relax() in them, force an SFB +* flush from cpu_relax() such that any pending writes will become visible as +* expected. +*/ +#define cpu_relax () smp_mb() +#else #define cpu_relax () barrier() +#endif /* * Return_address is a replacement for __builtin_return_address(count)
arch/mips/kernel/ptrace.c +1 -1
@@ -790,7 +790,7 @@ long arch_ptrace(struct task_struct *child, long request, goto out; } dregs =__get_dsp_regs (child); - tmp = (unsigned long ) (dregs[addr -DSP_BASE ]); + tmp = dregs[addr -DSP_BASE ];break ; }case DSP_CONTROL :
arch/mips/kernel/ptrace32.c +1 -1
@@ -140,7 +140,7 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request, goto out; } dregs =__get_dsp_regs (child); - tmp = (unsigned long ) (dregs[addr -DSP_BASE ]); + tmp = dregs[addr -DSP_BASE ];break ; }case DSP_CONTROL :
arch/mips/lib/memset.S +3 -1
@@ -213,9 +213,11 @@ nop .Lsmall_fixup\@: + .set reorder PTR_SUBU a2, t1, a0 + PTR_ADDIU a2, 1 jr ra - PTR_ADDIU a2, 1 + .set noreorder .endm
arch/powerpc/include/asm/fadump.h +0 -3
@@ -194,9 +194,6 @@ struct fadump_crash_info_header {struct cpumask cpu_online_mask; }; -/* Crash memory ranges */ -#define INIT_CRASHMEM_RANGES (INIT_MEMBLOCK_REGIONS + 2) -struct fad_crash_memory_ranges {unsigned long long base;unsigned long long size;
arch/powerpc/kernel/fadump.c +78 -14
174 lines not on this page · raw message
arch/powerpc/kvm/book3s_64_mmu_hv.c +1 -1
@@ -451,7 +451,7 @@ static int kvmppc_mmu_book3s_64_hv_xlate(struct kvm_vcpu *vcpu, gva_t eaddr,unsigned long pp, key;unsigned long v, gr;unsigned long *hptep; -int index; +long int index;int virtmode = vcpu->arch.shregs.msr & (data ?MSR_DR :MSR_IR );/* Get SLB entry */
arch/powerpc/mm/numa.c +2 -2
@@ -1654,8 +1654,8 @@ static struct timer_list topology_timer =static void reset_topology_timer (void ) { topology_timer.data =0 ; - topology_timer.expires = jiffies +60 *HZ ; -mod_timer (&topology_timer, topology_timer.expires); +if (vphn_enabled) +mod_timer (&topology_timer, jiffies +60 *HZ ); }#ifdef CONFIG_SMP
arch/powerpc/platforms/powernv/pci-ioda.c +37 -0
@@ -1132,6 +1132,41 @@ static void pnv_pci_ioda_create_dbgfs(void)#endif /* CONFIG_DEBUG_FS */ } +static void pnv_pci_enable_bridge (struct pci_bus *bus) +{ +struct pci_dev *dev = bus->self; +struct pci_bus *child; + +/* Empty bus ? bail */ +if (list_empty (&bus->devices)) +return ; + +/* +* If there's a bridge associated with that bus enable it. This works +* around races in the generic code if the enabling is done during +* parallel probing. This can be removed once those races have been +* fixed. +*/ +if (dev) { +int rc =pci_enable_device (dev); +if (rc) +dev_err (&dev->dev,"Error enabling bridge (%d)\n" , rc); +pci_set_master (dev); + } + +/* Perform the same to child busses */ +list_for_each_entry (child, &bus->children, node) +pnv_pci_enable_bridge (child); +} + +static void pnv_pci_enable_bridges (void ) +{ +struct pci_controller *hose; + +list_for_each_entry (hose, &hose_list, list_node) +pnv_pci_enable_bridge (hose->bus); +} +static void pnv_pci_ioda_fixup (void ) {pnv_pci_ioda_setup_PEs ();
@@ -1140,6 +1175,8 @@ static void pnv_pci_ioda_fixup(void)pnv_pci_ioda_create_dbgfs (); +pnv_pci_enable_bridges (); +#ifdef CONFIG_EEH eeh_probe_mode_set (EEH_PROBE_MODE_DEV );eeh_addr_cache_build ();
arch/powerpc/platforms/pseries/ras.c +2 -2
@@ -298,7 +298,7 @@ static struct rtas_error_log *fwnmi_get_errinfo(struct pt_regs *regs) } savep =__va (regs->gpr[3 ]); - regs->gpr[3 ] = savep[0 ];/* restore original r3 */ + regs->gpr[3 ] =be64_to_cpu (savep[0 ]);/* restore original r3 */ /* If it isn't an extended log we can use the per cpu 64bit buffer */ h = (struct rtas_error_log *)&savep[1 ];
@@ -309,7 +309,7 @@ static struct rtas_error_log *fwnmi_get_errinfo(struct pt_regs *regs)int len, error_log_length; error_log_length =8 +rtas_error_extended_log_length (h); - len =max_t (int, error_log_length,RTAS_ERROR_LOG_MAX ); + len =min_t (int, error_log_length,RTAS_ERROR_LOG_MAX );memset (global_mce_data_buf,0 ,RTAS_ERROR_LOG_MAX );memcpy (global_mce_data_buf, h, len); errhdr = (struct rtas_error_log *)global_mce_data_buf;
arch/powerpc/sysdev/mpic_msgr.c +1 -1
@@ -196,7 +196,7 @@ static int mpic_msgr_probe(struct platform_device *dev)/* IO map the message register block. */ of_address_to_resource (np,0 , &rsrc); - msgr_block_addr =ioremap (rsrc.start, rsrc.end - rsrc.start); + msgr_block_addr =ioremap (rsrc.start,resource_size (&rsrc));if (!msgr_block_addr) {dev_err (&dev->dev,"Failed to iomap MPIC message registers" );return -EFAULT ;
arch/s390/include/asm/qdio.h +0 -1
@@ -271,7 +271,6 @@ struct qdio_outbuf_state {void *user; }; -#define QDIO_OUTBUF_STATE_FLAG_NONE 0x00#define QDIO_OUTBUF_STATE_FLAG_PENDING 0x01#define CHSC_AC1_INITIATE_INPUTQ 0x80
arch/s390/mm/fault.c +2 -0
@@ -497,6 +497,8 @@ static inline int do_exception(struct pt_regs *regs, int access)/* No reason to continue if interrupted by SIGKILL. */ if ((fault &VM_FAULT_RETRY ) &&fatal_signal_pending (current)) { fault =VM_FAULT_SIGNAL ; +if (flags &FAULT_FLAG_RETRY_NOWAIT ) + goto out_up; goto out; }if (unlikely (fault &VM_FAULT_ERROR ))
arch/s390/pci/pci.c +2 -0
@@ -397,6 +397,8 @@ int arch_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) hwirq =0 ;list_for_each_entry (msi, &pdev->msi_list, list) { rc = -EIO ; +if (hwirq >= msi_vecs) +break ; irq =irq_alloc_desc (0 );/* Alloc irq on node 0 */ if (irq <0 ) goto out_msi;
arch/x86/include/asm/kdebug.h +11 -1
@@ -21,12 +21,22 @@ enum die_val { DIE_NMIUNKNOWN, }; +enum show_regs_mode { +SHOW_REGS_SHORT , +/* +* For when userspace crashed, but we don't think it's our fault, and +* therefore don't print kernel registers. +*/ +SHOW_REGS_USER , +SHOW_REGS_ALL +}; +extern void printk_address (unsigned long address);extern void die (const char *,struct pt_regs *,long );extern int __must_check __die (const char *,struct pt_regs *,long );extern void show_trace (struct task_struct *t,struct pt_regs *regs,unsigned long *sp,unsigned long bp); -extern void __show_regs (struct pt_regs *regs,int all); +extern void __show_regs (struct pt_regs *regs,enum show_regs_mode );extern unsigned long oops_begin (void );extern void oops_end (unsigned long ,struct pt_regs *,int signr);#ifdef CONFIG_KEXEC
arch/x86/include/asm/microcode_intel.h +15 -0
@@ -63,6 +63,21 @@ extern int get_matching_sig(unsigned int csig, int cpf, void *mc, int rev);extern int update_match_revision (struct microcode_header_intel *mc_header,int rev); +static inline u32 intel_get_microcode_revision (void ) +{ +u32 rev, dummy; + +native_wrmsrl (MSR_IA32_UCODE_REV ,0 ); + +/* As documented in the SDM: Do a CPUID 1 here */ +sync_core (); + +/* get the current revision from MSR 0x8B */ +native_rdmsr (MSR_IA32_UCODE_REV , dummy, rev); + +return rev; +} +#ifdef CONFIG_MICROCODE_INTEL_EARLY extern void __init load_ucode_intel_bsp (void );extern void load_ucode_intel_ap (void );
arch/x86/include/asm/percpu.h +4 -4
@@ -185,22 +185,22 @@ do { \typeof (var) pfo_ret__; \switch (sizeof (var)) { \case 1 : \ - asm(op "b "__percpu_arg(1)",%0" \ + asm volatile(op "b "__percpu_arg(1)",%0"\ : "=q" (pfo_ret__) \ : constraint); \ break; \ case 2: \ - asm(op "w "__percpu_arg(1)",%0" \ + asm volatile(op "w "__percpu_arg(1)",%0"\ : "=r" (pfo_ret__) \ : constraint); \ break; \ case 4: \ - asm(op "l "__percpu_arg(1)",%0" \ + asm volatile(op "l "__percpu_arg(1)",%0"\ : "=r" (pfo_ret__) \ : constraint); \ break; \ case 8: \ - asm(op "q "__percpu_arg(1)",%0" \ + asm volatile(op "q "__percpu_arg(1)",%0"\ : "=r" (pfo_ret__) \: constraint); \ break; \
arch/x86/include/asm/pgtable_64.h +8 -8
@@ -44,15 +44,15 @@ struct mm_struct;void set_pte_vaddr_pud (pud_t *pud_page,unsigned long vaddr,pte_t new_pte); -static inline void native_pte_clear (struct mm_struct *mm,unsigned long addr, -pte_t *ptep) +static inline void native_set_pte (pte_t *ptep,pte_t pte) { - *ptep =native_make_pte (0 ); +ACCESS_ONCE (*ptep) = pte; } -static inline void native_set_pte (pte_t *ptep,pte_t pte) +static inline void native_pte_clear (struct mm_struct *mm,unsigned long addr, +pte_t *ptep) { - *ptep = pte; +native_set_pte (ptep,native_make_pte (0 )); }static inline void native_set_pte_atomic (pte_t *ptep,pte_t pte)
@@ -62,7 +62,7 @@ static inline void native_set_pte_atomic(pte_t *ptep, pte_t pte)static inline void native_set_pmd (pmd_t *pmdp,pmd_t pmd) { - *pmdp = pmd; +ACCESS_ONCE (*pmdp) = pmd; }static inline void native_pmd_clear (pmd_t *pmd)
@@ -98,7 +98,7 @@ static inline pmd_t native_pmdp_get_and_clear(pmd_t *xp)static inline void native_set_pud (pud_t *pudp,pud_t pud) { - *pudp = pud; +ACCESS_ONCE (*pudp) = pud; }static inline void native_pud_clear (pud_t *pud)
@@ -131,7 +131,7 @@ static inline pgd_t *native_get_shadow_pgd(pgd_t *pgdp)static inline void native_set_pgd (pgd_t *pgdp,pgd_t pgd) { - *pgdp =kaiser_set_shadow_pgd (pgdp, pgd); +ACCESS_ONCE (*pgdp) =kaiser_set_shadow_pgd (pgdp, pgd); }static inline void native_pgd_clear (pgd_t *pgd)
arch/x86/include/asm/processor.h +3 -1
@@ -127,6 +127,8 @@ struct cpuinfo_x86 {/* Index into per_cpu list: */ u16 cpu_index;u32 microcode; +/* Address space bits used by the cache internally */ +u8 x86_cache_bits; } __attribute__((__aligned__(SMP_CACHE_BYTES)));#define X86_VENDOR_INTEL 0
@@ -167,7 +169,7 @@ extern void fpu_detect(struct cpuinfo_x86 *c);static inline unsigned long long l1tf_pfn_limit (void ) { -return BIT_ULL (boot_cpu_data.x86_phys_bits -1 -PAGE_SHIFT ); +return BIT_ULL (boot_cpu_data.x86_cache_bits -1 -PAGE_SHIFT ); }extern void early_cpu_init (void );
arch/x86/kernel/Makefile +1 -0
@@ -92,6 +92,7 @@ obj-$(CONFIG_PARAVIRT) += paravirt.o paravirt_patch_$(BITS).o obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= paravirt-spinlocks.o obj-$(CONFIG_PARAVIRT_CLOCK) += pvclock.o +obj-$(CONFIG_EISA) += eisa.o obj-$(CONFIG_PCSPKR_PLATFORM) += pcspeaker.o obj-$(CONFIG_X86_CHECK_BIOS_CORRUPTION) += check.o
arch/x86/kernel/cpu/bugs.c +41 -5
63 lines not on this page · raw message
arch/x86/kernel/cpu/common.c +1 -0
@@ -772,6 +772,7 @@ void get_cpu_cap(struct cpuinfo_x86 *c) else if (cpu_has(c, X86_FEATURE_PAE) || cpu_has(c, X86_FEATURE_PSE36)) c->x86_phys_bits = 36;#endif + c->x86_cache_bits = c->x86_phys_bits;if (c->extended_cpuid_level >=0x80000007 ) c->x86_power =cpuid_edx (0x80000007 );
arch/x86/kernel/cpu/intel.c +6 -8
@@ -14,6 +14,7 @@#include <asm/bugs.h> #include <asm/cpu.h> #include <asm/intel-family.h> +#include <asm/microcode_intel.h> #ifdef CONFIG_X86_64 #include <linux/topology.h>
@@ -75,6 +76,9 @@ static bool bad_spectre_microcode(struct cpuinfo_x86 *c)if (cpu_has (c,X86_FEATURE_HYPERVISOR ))return false; +if (c->x86 !=6 ) +return false; +for (i =0 ; i <ARRAY_SIZE (spectre_bad_microcodes); i++) {if (c->x86_model == spectre_bad_microcodes[i].model && c->x86_mask == spectre_bad_microcodes[i].stepping)
@@ -100,14 +104,8 @@ static void early_init_intel(struct cpuinfo_x86 *c) (c->x86 == 0x6 && c->x86_model >= 0x0e))set_cpu_cap (c,X86_FEATURE_CONSTANT_TSC ); -if (c->x86 >=6 && !cpu_has (c,X86_FEATURE_IA64 )) { -unsigned lower_word; - -wrmsr (MSR_IA32_UCODE_REV ,0 ,0 ); -/* Required by the SDM */ -sync_core (); -rdmsr (MSR_IA32_UCODE_REV , lower_word, c->microcode); - } +if (c->x86 >=6 && !cpu_has (c,X86_FEATURE_IA64 )) + c->microcode =intel_get_microcode_revision ();/* Now if any of them are set, check the blacklist and clear the lot */ if ((cpu_has(c, X86_FEATURE_SPEC_CTRL) ||
arch/x86/kernel/cpu/microcode/amd.c +13 -9
@@ -214,22 +214,26 @@ int apply_microcode_amd(int cpu)rdmsr (MSR_AMD64_PATCH_LEVEL , rev, dummy);/* need to apply patch? */ -if (rev >= mc_amd->hdr.patch_id) { - c->microcode = rev; - uci->cpu_sig.rev = rev; -return 0 ; - } +if (rev >= mc_amd->hdr.patch_id) + goto out;if (__apply_microcode_amd (mc_amd)) {pr_err ("CPU%d: update failed for patch_level=0x%08x\n" , cpu, mc_amd->hdr.patch_id);return -1 ; } -pr_info ("CPU%d: new patch_level=0x%08x\n" , cpu, - mc_amd->hdr.patch_id); - uci->cpu_sig.rev = mc_amd->hdr.patch_id; - c->microcode = mc_amd->hdr.patch_id; + rev = mc_amd->hdr.patch_id; + +pr_info ("CPU%d: new patch_level=0x%08x\n" , cpu, rev); + +out: + uci->cpu_sig.rev = rev; + c->microcode = rev; + +/* Update boot_cpu_data's revision too, if we're on the BSP: */ +if (c->cpu_index == boot_cpu_data.cpu_index) + boot_cpu_data.microcode = rev;return 0 ; }
arch/x86/kernel/cpu/microcode/intel.c +20 -11
@@ -134,9 +134,9 @@ int apply_microcode(int cpu) {struct microcode_intel *mc_intel;struct ucode_cpu_info *uci; -unsigned int val[2 ];int cpu_num =raw_smp_processor_id ();struct cpuinfo_x86 *c = &cpu_data (cpu_num); +u32 rev; uci = ucode_cpu_info + cpu; mc_intel = uci->mc;
@@ -155,31 +155,40 @@ int apply_microcode(int cpu)if (get_matching_mc (mc_intel, cpu) ==0 )return 0 ; +/* +* Save us the MSR write below - which is a particular expensive +* operation - when the other hyperthread has updated the microcode +* already. +*/ + rev =intel_get_microcode_revision (); +if (rev >= mc_intel->hdr.rev) + goto out; +/* write microcode via MSR 0x79 */ wrmsr (MSR_IA32_UCODE_WRITE , (unsigned long ) mc_intel->bits, (unsigned long ) mc_intel->bits >>16 >>16 ); -wrmsr (MSR_IA32_UCODE_REV ,0 ,0 ); - -/* As documented in the SDM: Do a CPUID 1 here */ -sync_core (); -/* get the current revision from MSR 0x8B */ -rdmsr (MSR_IA32_UCODE_REV , val[0 ], val[1 ]); + rev =intel_get_microcode_revision (); -if (val[1 ] != mc_intel->hdr.rev) { +if (rev != mc_intel->hdr.rev) {pr_err ("CPU%d update to revision 0x%x failed\n" , cpu_num, mc_intel->hdr.rev);return -1 ; }pr_info ("CPU%d updated to revision 0x%x, date = %04x-%02x-%02x\n" , - cpu_num, val[1 ], + cpu_num, rev, mc_intel->hdr.date &0xffff , mc_intel->hdr.date >>24 , (mc_intel->hdr.date >>16 ) &0xff ); - uci->cpu_sig.rev = val[1 ]; - c->microcode = val[1 ]; +out: + uci->cpu_sig.rev = rev; + c->microcode = rev; + +/* Update boot_cpu_data's revision too, if we're on the BSP: */ +if (c->cpu_index == boot_cpu_data.cpu_index) + boot_cpu_data.microcode = rev;return 0 ; }
arch/x86/kernel/cpu/microcode/intel_early.c +16 -17
@@ -391,15 +391,8 @@ static int collect_cpu_info_early(struct ucode_cpu_info *uci)native_rdmsr (MSR_IA32_PLATFORM_ID , val[0 ], val[1 ]); csig.pf =1 << ((val[1 ] >>18 ) &7 ); } -native_wrmsr (MSR_IA32_UCODE_REV ,0 ,0 ); -/* As documented in the SDM: Do a CPUID 1 here */ -sync_core (); - -/* get the current revision from MSR 0x8B */ -native_rdmsr (MSR_IA32_UCODE_REV , val[0 ], val[1 ]); - - csig.rev = val[1 ]; + csig.rev =intel_get_microcode_revision (); uci->cpu_sig = csig; uci->valid =1 ;
@@ -654,31 +647,37 @@ static int apply_microcode_early(struct mc_saved_data *mc_saved_data, struct ucode_cpu_info *uci) {struct microcode_intel *mc_intel; -unsigned int val[2 ]; +u32 rev; mc_intel = uci->mc;if (mc_intel ==NULL )return 0 ; +/* +* Save us the MSR write below - which is a particular expensive +* operation - when the other hyperthread has updated the microcode +* already. +*/ + rev =intel_get_microcode_revision (); +if (rev >= mc_intel->hdr.rev) { + uci->cpu_sig.rev = rev; +return 0 ; + } +/* write microcode via MSR 0x79 */ native_wrmsr (MSR_IA32_UCODE_WRITE , (unsigned long ) mc_intel->bits, (unsigned long ) mc_intel->bits >>16 >>16 ); -native_wrmsr (MSR_IA32_UCODE_REV ,0 ,0 ); - -/* As documented in the SDM: Do a CPUID 1 here */ -sync_core (); -/* get the current revision from MSR 0x8B */ -native_rdmsr (MSR_IA32_UCODE_REV , val[0 ], val[1 ]); -if (val[1 ] != mc_intel->hdr.rev) + rev =intel_get_microcode_revision (); +if (rev != mc_intel->hdr.rev)return -1 ;#ifdef CONFIG_X86_64 /* Flush global tlb. This is precaution. */ flush_tlb_early ();#endif - uci->cpu_sig.rev = val[1 ]; + uci->cpu_sig.rev = rev;print_ucode (uci);
arch/x86/kernel/dumpstack_32.c +1 -1
@@ -123,7 +123,7 @@ void show_regs(struct pt_regs *regs)int i;show_regs_print_info (KERN_EMERG ); -__show_regs (regs, !user_mode_vm (regs)); +__show_regs (regs,user_mode_vm (regs) ?SHOW_REGS_USER :SHOW_REGS_ALL );/* * When in-kernel, we also print out the stack and code at the
arch/x86/kernel/dumpstack_64.c +1 -1
@@ -301,7 +301,7 @@ void show_regs(struct pt_regs *regs) sp = regs->sp;show_regs_print_info (KERN_DEFAULT ); -__show_regs (regs,1 ); +__show_regs (regs,user_mode (regs) ?SHOW_REGS_USER :SHOW_REGS_ALL );/* * When in-kernel, we also print out the stack and code at the
arch/x86/kernel/eisa.c new file +24 -0
@@ -0,0 +1,24 @@ +/* +* EISA specific code +* +* This file is licensed under the GPL V2 +*/ +#include <linux/ioport.h> +#include <linux/eisa.h> + +#include <xen/xen.h> + +static __init int eisa_bus_probe (void ) +{ +void __iomem *p; + +if (xen_pv_domain () && !xen_initial_domain ()) +return 0 ; + + p =ioremap (0x0FFFD9 ,4 ); +if (p &&readl (p) =='E' + ('I' <<8 ) + ('S' <<16 ) + ('A' <<24 )) + EISA_bus =1 ; +iounmap (p); +return 0 ; +} +subsys_initcall (eisa_bus_probe);
arch/x86/kernel/paravirt.c +2 -2
@@ -99,7 +99,7 @@ unsigned paravirt_patch_call(void *insnbuf,if (len <5 ) {#ifdef CONFIG_RETPOLINE -WARN_ONCE ("Failing to patch indirect CALL in %ps\n" , (void *)addr); +WARN_ONCE (1 ,"Failing to patch indirect CALL in %ps\n" , (void *)addr);#endif return len;/* call too long for patch site */ }
@@ -119,7 +119,7 @@ unsigned paravirt_patch_jmp(void *insnbuf, const void *target,if (len <5 ) {#ifdef CONFIG_RETPOLINE -WARN_ONCE ("Failing to patch indirect JMP in %ps\n" , (void *)addr); +WARN_ONCE (1 ,"Failing to patch indirect JMP in %ps\n" , (void *)addr);#endif return len;/* call too long for patch site */ }
arch/x86/kernel/process_32.c +2 -2
@@ -66,7 +66,7 @@ unsigned long thread_saved_pc(struct task_struct *tsk)return ((unsigned long *)tsk->thread.sp)[3 ]; } -void __show_regs (struct pt_regs *regs,int all) +void __show_regs (struct pt_regs *regs,enum show_regs_mode mode) {unsigned long cr0 =0L , cr2 =0L , cr3 =0L , cr4 =0L ;unsigned long d0, d1, d2, d3, d6, d7;
@@ -95,7 +95,7 @@ void __show_regs(struct pt_regs *regs, int all)printk (KERN_DEFAULT " DS: %04x ES: %04x FS: %04x GS: %04x SS: %04x\n" , (u16 )regs->ds, (u16 )regs->es, (u16 )regs->fs, gs, ss); -if (!all) +if (mode !=SHOW_REGS_ALL )return ; cr0 =read_cr0 ();
arch/x86/kernel/process_64.c +9 -2
@@ -56,7 +56,7 @@ asmlinkage extern void ret_from_fork(void);__visible DEFINE_PER_CPU_USER_MAPPED (unsigned long ,old_rsp );/* Prints also some state that isn't saved in the pt_regs */ -void __show_regs (struct pt_regs *regs,int all) +void __show_regs (struct pt_regs *regs,enum show_regs_mode mode) {unsigned long cr0 =0L , cr2 =0L , cr3 =0L , cr4 =0L , fs, gs, shadowgs;unsigned long d0, d1, d2, d3, d6, d7;
@@ -88,9 +88,15 @@ void __show_regs(struct pt_regs *regs, int all)rdmsrl (MSR_GS_BASE , gs);rdmsrl (MSR_KERNEL_GS_BASE , shadowgs); -if (!all) +if (mode ==SHOW_REGS_SHORT )return ; +if (mode ==SHOW_REGS_USER ) { +printk (KERN_DEFAULT "FS: %016lx GS: %016lx\n" , + fs, shadowgs); +return ; + } + cr0 =read_cr0 (); cr2 =read_cr2 (); cr3 =read_cr3 ();
@@ -254,6 +260,7 @@ start_thread(struct pt_regs *regs, unsigned long new_ip, unsigned long new_sp)start_thread_common (regs, new_ip, new_sp, __USER_CS, __USER_DS,0 ); } +EXPORT_SYMBOL_GPL (start_thread);#ifdef CONFIG_IA32_EMULATION void start_thread_ia32 (struct pt_regs *regs,u32 new_ip,u32 new_sp)
arch/x86/kernel/traps.c +0 -13
@@ -37,11 +37,6 @@#include <linux/smp.h> #include <linux/io.h> -#ifdef CONFIG_EISA -#include <linux/ioport.h> -#include <linux/eisa.h> -#endif -#if defined(CONFIG_EDAC )#include <linux/edac.h> #endif
@@ -796,14 +791,6 @@ void __init trap_init(void) {int i; -#ifdef CONFIG_EISA -void __iomem *p =early_ioremap (0x0FFFD9 ,4 ); - -if (readl (p) =='E' + ('I' <<8 ) + ('S' <<16 ) + ('A' <<24 )) - EISA_bus =1 ; -early_iounmap (p,4 ); -#endif -set_intr_gate (X86_TRAP_DE , divide_error);set_intr_gate_ist (X86_TRAP_NMI , &nmi,NMI_STACK );/* int4 can be called from all */
arch/x86/mm/kmemcheck/error.c +1 -1
@@ -132,7 +132,7 @@ void kmemcheck_error_recall(void)break ; } -__show_regs (&e->regs,1 ); +__show_regs (&e->regs,SHOW_REGS_ALL );print_stack_trace (&e->trace,0 ); }
arch/x86/mm/pgtable.c +3 -3
@@ -242,7 +242,7 @@ static void pgd_mop_up_pmds(struct mm_struct *mm, pgd_t *pgdp)if (pgd_val (pgd) !=0 ) {pmd_t *pmd = (pmd_t *)pgd_page_vaddr (pgd); - pgdp[i] =native_make_pgd (0 ); +pgd_clear (&pgdp[i]);paravirt_release_pmd (pgd_val (pgd) >>PAGE_SHIFT );pmd_free (mm, pmd);
@@ -352,7 +352,7 @@ int ptep_set_access_flags(struct vm_area_struct *vma,int changed = !pte_same (*ptep, entry);if (changed && dirty) { - *ptep = entry; +set_pte (ptep, entry);pte_update_defer (vma->vm_mm, address, ptep); }
@@ -369,7 +369,7 @@ int pmdp_set_access_flags(struct vm_area_struct *vma,VM_BUG_ON (address & ~HPAGE_PMD_MASK );if (changed && dirty) { - *pmdp = entry; +set_pmd (pmdp, entry);pmd_update_defer (vma->vm_mm, address, pmdp);/* * We had a write-protection fault here and changed the pmd
arch/x86/vdso/vclock_gettime.c +10 -8
@@ -50,8 +50,9 @@ extern u8 pvclock_page notrace static long vdso_fallback_gettime(long clock, struct timespec *ts) {long ret; - asm("syscall" :"=a" (ret) : -"0" (__NR_clock_gettime),"D" (clock),"S" (ts) :"memory" ); + asm ("syscall" :"=a" (ret),"=m" (*ts) : +"0" (__NR_clock_gettime),"D" (clock),"S" (ts) : +"memory" ,"rcx" ,"r11" );return ret; }
@@ -59,8 +60,9 @@ notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) {long ret; - asm("syscall" :"=a" (ret) : -"0" (__NR_gettimeofday),"D" (tv),"S" (tz) :"memory" ); + asm ("syscall" :"=a" (ret),"=m" (*tv),"=m" (*tz) : +"0" (__NR_gettimeofday),"D" (tv),"S" (tz) : +"memory" ,"rcx" ,"r11" );return ret; }
@@ -143,12 +145,12 @@ notrace static long vdso_fallback_gettime(long clock, struct timespec *ts) {long ret; - asm( + asm ("mov %%ebx, %%edx \n" "mov %2, %%ebx \n" "call __kernel_vsyscall \n" "mov %%edx, %%ebx \n" - :"=a" (ret) + :"=a" (ret),"=m" (*ts) :"0" (__NR_clock_gettime),"g" (clock),"c" (ts) :"memory" ,"edx" );return ret;
@@ -158,12 +160,12 @@ notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) {long ret; - asm( + asm ("mov %%ebx, %%edx \n" "mov %2, %%ebx \n" "call __kernel_vsyscall \n" "mov %%edx, %%ebx \n" - :"=a" (ret) + :"=a" (ret),"=m" (*tv),"=m" (*tz) :"0" (__NR_gettimeofday),"g" (tv),"c" (tz) :"memory" ,"edx" );return ret;
arch/xtensa/include/asm/cacheasm.h +42 -27
143 lines not on this page · raw message
block/bio-integrity.c +0 -26
@@ -193,32 +193,6 @@ int bio_integrity_enabled(struct bio *bio) }EXPORT_SYMBOL (bio_integrity_enabled); -/** -* bio_integrity_hw_sectors - Convert 512b sectors to hardware ditto -* @bi: blk_integrity profile for device -* @sectors: Number of 512 sectors to convert -* -* Description: The block layer calculates everything in 512 byte -* sectors but integrity metadata is done in terms of the hardware -* sector size of the storage device. Convert the block layer sectors -* to physical sectors. -*/ -static inline unsigned int bio_integrity_hw_sectors (struct blk_integrity *bi, -unsigned int sectors) -{ -/* At this point there are only 512b or 4096b DIF/EPP devices */ -if (bi->sector_size ==4096 ) -return sectors >>=3 ; - -return sectors; -} - -static inline unsigned int bio_integrity_bytes (struct blk_integrity *bi, -unsigned int sectors) -{ -return bio_integrity_hw_sectors (bi, sectors) * bi->tuple_size; -} -/** * bio_integrity_tag_size - Retrieve integrity tag space * @bio: bio to inspect
block/partitions/aix.c +9 -4
@@ -177,7 +177,7 @@ int aix_partition(struct parsed_partitions *state)u32 vgda_sector =0 ;u32 vgda_len =0 ;int numlvs =0 ; -struct pvd *pvd; +struct pvd *pvd =NULL ;struct lv_info {unsigned short pps_per_lv;unsigned short pps_found;
@@ -231,10 +231,11 @@ int aix_partition(struct parsed_partitions *state)if (lvip[i].pps_per_lv) foundlvs +=1 ; } +/* pvd loops depend on n[].name and lvip[].pps_per_lv */ + pvd =alloc_pvd (state, vgda_sector +17 ); }put_dev_sector (sect); } - pvd =alloc_pvd (state, vgda_sector +17 );if (pvd) {int numpps =be16_to_cpu (pvd->pp_count);int psn_part1 =be32_to_cpu (pvd->psn_part1);
@@ -281,10 +282,14 @@ int aix_partition(struct parsed_partitions *state) next_lp_ix +=1 ; }for (i =0 ; i < state->limit; i +=1 ) -if (lvip[i].pps_found && !lvip[i].lv_is_contiguous) +if (lvip[i].pps_found && !lvip[i].lv_is_contiguous) { +char tmp[sizeof (n[i].name) +1 ];// null char + +snprintf (tmp,sizeof (tmp),"%s" , n[i].name);pr_warn ("partition %s (%u pp's found) is " "not contiguous\n" , - n[i].name, lvip[i].pps_found); + tmp, lvip[i].pps_found); + }kfree (pvd); }kfree (n);
crypto/ablkcipher.c +26 -31
93 lines not on this page · raw message
crypto/blkcipher.c +26 -28
94 lines not on this page · raw message
crypto/cts.c +2 -1
@@ -202,7 +202,8 @@ static int cts_cbc_decrypt(struct crypto_cts_ctx *ctx,/* 5. Append the tail (BB - Ln) bytes of Xn (tmp) to Cn to create En */ memcpy (s + bsize + lastn, tmp + lastn, bsize - lastn);/* 6. Decrypt En to create Pn-1 */ -memset (iv,0 ,sizeof (iv)); +memzero_explicit (iv,sizeof (iv)); +sg_set_buf (&sgsrc[0 ], s + bsize, bsize);sg_set_buf (&sgdst[0 ], d, bsize); err =crypto_blkcipher_decrypt_iv (&lcldesc, sgdst, sgsrc, bsize);
crypto/sha1_generic.c +1 -1
@@ -64,7 +64,7 @@ int crypto_sha1_update(struct shash_desc *desc, const u8 *data, src = data + done; }while (done +SHA1_BLOCK_SIZE <= len); -memset (temp,0 ,sizeof (temp)); +memzero_explicit (temp,sizeof (temp)); partial =0 ; }memcpy (sctx->buffer + partial, src, len - done);
crypto/sha256_generic.c +2 -3
@@ -210,10 +210,9 @@ static void sha256_transform(u32 *state, const u8 *input)/* clear any sensitive info... */ a = b = c = d = e = f = g = h = t1 = t2 =0 ; -memset (W ,0 ,64 *sizeof (u32)); +memzero_explicit (W ,64 *sizeof (u32)); } -static int sha224_init (struct shash_desc *desc) {struct sha256_state *sctx =shash_desc_ctx (desc);
@@ -316,7 +315,7 @@ static int sha224_final(struct shash_desc *desc, u8 *hash)sha256_final (desc,D );memcpy (hash,D ,SHA224_DIGEST_SIZE ); -memset (D ,0 ,SHA256_DIGEST_SIZE ); +memzero_explicit (D ,SHA256_DIGEST_SIZE );return 0 ; }
crypto/sha512_generic.c +1 -1
@@ -238,7 +238,7 @@ static int sha384_final(struct shash_desc *desc, u8 *hash)sha512_final (desc,D );memcpy (hash,D ,48 ); -memset (D ,0 ,64 ); +memzero_explicit (D ,64 );return 0 ; }
crypto/tgr192.c +2 -2
@@ -612,7 +612,7 @@ static int tgr160_final(struct shash_desc *desc, u8 * out)tgr192_final (desc,D );memcpy (out,D ,TGR160_DIGEST_SIZE ); -memset (D ,0 ,TGR192_DIGEST_SIZE ); +memzero_explicit (D ,TGR192_DIGEST_SIZE );return 0 ; }
@@ -623,7 +623,7 @@ static int tgr128_final(struct shash_desc *desc, u8 * out)tgr192_final (desc,D );memcpy (out,D ,TGR128_DIGEST_SIZE ); -memset (D ,0 ,TGR192_DIGEST_SIZE ); +memzero_explicit (D ,TGR192_DIGEST_SIZE );return 0 ; }
crypto/vmac.c +185 -227
524 lines not on this page · raw message
crypto/wp512.c +4 -4
@@ -1102,8 +1102,8 @@ static int wp384_final(struct shash_desc *desc, u8 *out)u8 D [64 ];wp512_final (desc,D ); -memcpy (out,D ,WP384_DIGEST_SIZE ); -memset (D ,0 ,WP512_DIGEST_SIZE ); +memcpy (out,D ,WP384_DIGEST_SIZE ); +memzero_explicit (D ,WP512_DIGEST_SIZE );return 0 ; }
@@ -1113,8 +1113,8 @@ static int wp256_final(struct shash_desc *desc, u8 *out)u8 D [64 ];wp512_final (desc,D ); -memcpy (out,D ,WP256_DIGEST_SIZE ); -memset (D ,0 ,WP512_DIGEST_SIZE ); +memcpy (out,D ,WP256_DIGEST_SIZE ); +memzero_explicit (D ,WP512_DIGEST_SIZE );return 0 ; }
drivers/acpi/bus.c +7 -6
@@ -36,10 +36,10 @@#include <linux/regulator/machine.h> #ifdef CONFIG_X86 #include <asm/mpspec.h> +#include <linux/dmi.h> #endif #include <linux/pci.h> #include <acpi/apei.h> -#include <linux/dmi.h> #include <linux/suspend.h> #include "internal.h"
@@ -82,10 +82,6 @@ static struct dmi_system_id dsdt_dmi_table[] __initdata = { }, {} }; -#else -static struct dmi_system_id dsdt_dmi_table[]__initdata = { - {} -};#endif /* --------------------------------------------------------------------------
@@ -508,11 +504,16 @@ void __init acpi_early_init(void) acpi_gbl_permanent_mmap =1 ; +#ifdef CONFIG_X86 /* * If the machine falls into the DMI check table, -* DSDT will be copied to memory +* DSDT will be copied to memory. +* Note that calling dmi_check_system() here on other architectures +* would not be OK because only x86 initializes dmi early enough. +* Thankfully only x86 systems need such quirks for now. */ dmi_check_system (dsdt_dmi_table); +#endif status =acpi_reallocate_root_table ();if (ACPI_FAILURE (status)) {
drivers/base/power/main.c +4 -1
@@ -1336,8 +1336,10 @@ static int __device_suspend(struct device *dev, pm_message_t state, bool async)dpm_wait_for_children (dev, async); -if (async_error) +if (async_error) { + dev->power.direct_complete = false; goto Complete; + }/* * If a device configured to wake up the system from sleep states
@@ -1349,6 +1351,7 @@ static int __device_suspend(struct device *dev, pm_message_t state, bool async)pm_wakeup_event (dev,0 );if (pm_wakeup_pending ()) { + dev->power.direct_complete = false; async_error = -EBUSY ; goto Complete; }
drivers/block/nbd.c +3 -0
@@ -667,6 +667,9 @@ static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd, }case NBD_SET_BLKSIZE : +if (!arg || !is_power_of_2 (arg) || arg <512 || + arg >PAGE_SIZE ) +return -EINVAL ; nbd->blksize = arg; nbd->bytesize &= ~(nbd->blksize-1 ); bdev->bd_inode->i_size = nbd->bytesize;
drivers/cdrom/cdrom.c +1 -1
@@ -2427,7 +2427,7 @@ static int cdrom_ioctl_select_disc(struct cdrom_device_info *cdi,return -ENOSYS ;if (arg !=CDSL_CURRENT && arg !=CDSL_NONE ) { -if ((int )arg >= cdi->capacity) +if (arg >= cdi->capacity)return -EINVAL ; }
drivers/char/ipmi/ipmi_bt_sm.c +48 -44
152 lines not on this page · raw message
drivers/crypto/mxs-dcp.c +30 -23
111 lines not on this page · raw message
drivers/edac/edac_mc_sysfs.c +3 -3
@@ -1161,14 +1161,14 @@ int __init edac_mc_sysfs_init(void) err =device_add (mci_pdev);if (err <0 ) - goto out_dev_free; + goto out_put_device;edac_dbg (0 ,"device %s created\n" ,dev_name (mci_pdev));return 0 ; - out_dev_free: -kfree (mci_pdev); + out_put_device: +put_device (mci_pdev); out_put_sysfs:edac_put_sysfs_subsys (); out:
drivers/edac/i7core_edac.c +16 -8
@@ -1177,7 +1177,7 @@ static int i7core_create_sysfs_devices(struct mem_ctl_info *mci) pvt->addrmatch_dev =kzalloc (sizeof (*pvt->addrmatch_dev),GFP_KERNEL );if (!pvt->addrmatch_dev) -return rc; +return -ENOMEM ; pvt->addrmatch_dev->type = &addrmatch_type; pvt->addrmatch_dev->bus = mci->dev.bus;
@@ -1190,15 +1190,14 @@ static int i7core_create_sysfs_devices(struct mem_ctl_info *mci) rc =device_add (pvt->addrmatch_dev);if (rc <0 ) -return rc; + goto err_put_addrmatch;if (!pvt->is_registered) { pvt->chancounts_dev =kzalloc (sizeof (*pvt->chancounts_dev),GFP_KERNEL );if (!pvt->chancounts_dev) { -put_device (pvt->addrmatch_dev); -device_del (pvt->addrmatch_dev); -return rc; + rc = -ENOMEM ; + goto err_del_addrmatch; } pvt->chancounts_dev->type = &all_channel_counts_type;
@@ -1212,9 +1211,18 @@ static int i7core_create_sysfs_devices(struct mem_ctl_info *mci) rc =device_add (pvt->chancounts_dev);if (rc <0 ) -return rc; + goto err_put_chancounts; }return 0 ; + +err_put_chancounts: +put_device (pvt->chancounts_dev); +err_del_addrmatch: +device_del (pvt->addrmatch_dev); +err_put_addrmatch: +put_device (pvt->addrmatch_dev); + +return rc; }static void i7core_delete_sysfs_devices (struct mem_ctl_info *mci)
@@ -1229,11 +1237,11 @@ static void i7core_delete_sysfs_devices(struct mem_ctl_info *mci)device_remove_file (&mci->dev, &dev_attr_inject_enable);if (!pvt->is_registered) { -put_device (pvt->chancounts_dev);device_del (pvt->chancounts_dev); +put_device (pvt->chancounts_dev); } -put_device (pvt->addrmatch_dev);device_del (pvt->addrmatch_dev); +put_device (pvt->addrmatch_dev); }/****************************************************************************
drivers/gpu/drm/drm_fb_helper.c +26 -65
111 lines not on this page · raw message
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -5918,6 +5918,7 @@ enum punit_power_well {#define TRANS_MSA_10_BPC (2<<5)#define TRANS_MSA_12_BPC (3<<5)#define TRANS_MSA_16_BPC (4<<5) +#define TRANS_MSA_CEA_RANGE (1 << 3)/* LCPLL Control */ #define LCPLL_CTL 0x130040
drivers/gpu/drm/i915/intel_ddi.c +4 -0
@@ -929,6 +929,10 @@ void intel_ddi_set_pipe_settings(struct drm_crtc *crtc)if (type ==INTEL_OUTPUT_DISPLAYPORT || type ==INTEL_OUTPUT_EDP ) { temp =TRANS_MSA_SYNC_CLK ; + +if (intel_crtc->config.limited_color_range) + temp |=TRANS_MSA_CEA_RANGE ; +switch (intel_crtc->config.pipe_bpp) {case 18 : temp |=TRANS_MSA_6_BPC ;
drivers/gpu/drm/i915/intel_display.c +6 -2
@@ -3794,8 +3794,12 @@ void hsw_disable_ips(struct intel_crtc *crtc)mutex_lock (&dev_priv->rps.hw_lock);WARN_ON (sandybridge_pcode_write (dev_priv,DISPLAY_IPS_CONTROL ,0 ));mutex_unlock (&dev_priv->rps.hw_lock); -/* wait for pcode to finish disabling IPS, which may take up to 42ms */ -if (wait_for ((I915_READ (IPS_CTL ) &IPS_ENABLE ) ==0 ,42 )) +/* +* Wait for PCODE to finish disabling IPS. The BSpec specified +* 42ms timeout value leads to occasional timeouts so use 100ms +* instead. +*/ +if (wait_for ((I915_READ (IPS_CTL ) &IPS_ENABLE ) ==0 ,100 ))DRM_ERROR ("Timed out waiting for IPS disable\n" ); }else {I915_WRITE (IPS_CTL ,0 );
drivers/gpu/drm/nouveau/nouveau_connector.c +11 -9
@@ -256,12 +256,16 @@ nouveau_connector_detect(struct drm_connector *connector, bool force) nv_connector->edid =NULL ; } -/* Outputs are only polled while runtime active, so acquiring a -* runtime PM ref here is unnecessary (and would deadlock upon -* runtime suspend because it waits for polling to finish). +/* Outputs are only polled while runtime active, so resuming the +* device here is unnecessary (and would deadlock upon runtime suspend +* because it waits for polling to finish). We do however, want to +* prevent the autosuspend timer from elapsing during this operation +* if possible. */ -if (!drm_kms_helper_is_poll_worker ()) { - ret =pm_runtime_get_sync (connector->dev->dev); +if (drm_kms_helper_is_poll_worker ()) { +pm_runtime_get_noresume (dev->dev); + }else { + ret =pm_runtime_get_sync (dev->dev);if (ret <0 && ret != -EACCES )return conn_status; }
@@ -332,10 +336,8 @@ nouveau_connector_detect(struct drm_connector *connector, bool force) out: -if (!drm_kms_helper_is_poll_worker ()) { -pm_runtime_mark_last_busy (connector->dev->dev); -pm_runtime_put_autosuspend (connector->dev->dev); - } +pm_runtime_mark_last_busy (dev->dev); +pm_runtime_put_autosuspend (dev->dev);return conn_status; }
drivers/gpu/drm/panel/panel-s6e8aa0.c +1 -1
@@ -832,7 +832,7 @@ static void s6e8aa0_read_mtp_id(struct s6e8aa0 *ctx)int ret, i; ret =s6e8aa0_dcs_read (ctx,0xd1 , id,ARRAY_SIZE (id)); -if (ret <ARRAY_SIZE (id) || id[0 ] ==0x00 ) { +if (ret <0 || ret <ARRAY_SIZE (id) || id[0 ] ==0x00 ) {dev_err (ctx->dev,"read id failed\n" ); ctx->error = -EIO ;return ;
drivers/gpu/drm/udl/udl_fb.c +6 -4
@@ -344,7 +344,7 @@ static int udl_fb_open(struct fb_info *info, int user)struct fb_deferred_io *fbdefio; - fbdefio =kmalloc (sizeof (struct fb_deferred_io ),GFP_KERNEL ); + fbdefio =kzalloc (sizeof (struct fb_deferred_io ),GFP_KERNEL );if (fbdefio) { fbdefio->delay =DL_DEFIO_WRITE_DELAY ;
@@ -574,9 +574,11 @@ static void udl_fbdev_destroy(struct drm_device *dev,framebuffer_release (info); }drm_fb_helper_fini (&ufbdev->helper); -drm_framebuffer_unregister_private (&ufbdev->ufb.base); -drm_framebuffer_cleanup (&ufbdev->ufb.base); -drm_gem_object_unreference_unlocked (&ufbdev->ufb.obj->base); +if (ufbdev->ufb.obj) { +drm_framebuffer_unregister_private (&ufbdev->ufb.base); +drm_framebuffer_cleanup (&ufbdev->ufb.base); +drm_gem_object_unreference_unlocked (&ufbdev->ufb.obj->base); + } }int udl_fbdev_init (struct drm_device *dev)
drivers/gpu/drm/udl/udl_main.c +19 -16
@@ -141,18 +141,13 @@ static void udl_free_urb_list(struct drm_device *dev)struct list_head *node;struct urb_node *unode;struct urb *urb; -int ret;unsigned long flags;DRM_DEBUG ("Waiting for completes and freeing all render urbs\n" );/* keep waiting and freeing, until we've got 'em all */ while (count--) { - -/* Getting interrupted means a leak, but ok at shutdown*/ - ret =down_interruptible (&udl->urbs.limit_sem); -if (ret) -break ; +down (&udl->urbs.limit_sem);spin_lock_irqsave (&udl->urbs.lock, flags);
@@ -176,17 +171,22 @@ static void udl_free_urb_list(struct drm_device *dev)static int udl_alloc_urb_list (struct drm_device *dev,int count,size_t size) {struct udl_device *udl = dev->dev_private; -int i =0 ;struct urb *urb;struct urb_node *unode;char *buf; +size_t wanted_size = count * size;spin_lock_init (&udl->urbs.lock); +retry: udl->urbs.size = size;INIT_LIST_HEAD (&udl->urbs.list); -while (i < count) { +sema_init (&udl->urbs.limit_sem,0 ); + udl->urbs.count =0 ; + udl->urbs.available =0 ; + +while (udl->urbs.count * size < wanted_size) { unode =kzalloc (sizeof (struct urb_node ),GFP_KERNEL );if (!unode)break ;
@@ -202,11 +202,16 @@ static int udl_alloc_urb_list(struct drm_device *dev, int count, size_t size) } unode->urb = urb; - buf =usb_alloc_coherent (udl->ddev->usbdev,MAX_TRANSFER ,GFP_KERNEL , + buf =usb_alloc_coherent (udl->ddev->usbdev, size,GFP_KERNEL , &urb->transfer_dma);if (!buf) {kfree (unode);usb_free_urb (urb); +if (size >PAGE_SIZE ) { + size /=2 ; +udl_free_urb_list (dev); + goto retry; + }break ; }
@@ -217,16 +222,14 @@ static int udl_alloc_urb_list(struct drm_device *dev, int count, size_t size)list_add_tail (&unode->entry, &udl->urbs.list); - i++; +up (&udl->urbs.limit_sem); + udl->urbs.count++; + udl->urbs.available++; } -sema_init (&udl->urbs.limit_sem, i); - udl->urbs.count = i; - udl->urbs.available = i; - -DRM_DEBUG ("allocated %d %d byte urbs\n" , i, (int ) size); +DRM_DEBUG ("allocated %d %d byte urbs\n" , udl->urbs.count, (int ) size); -return i; +return udl->urbs.count; }struct urb *udl_get_urb (struct drm_device *dev)
drivers/hv/connection.c +6 -2
@@ -68,6 +68,7 @@ static int vmbus_negotiate_version(struct vmbus_channel_msginfo *msginfo, __u32 version) {int ret =0 ; +unsigned int cur_cpu;struct vmbus_channel_initiate_contact *msg;unsigned long flags;
@@ -80,8 +81,11 @@ static int vmbus_negotiate_version(struct vmbus_channel_msginfo *msginfo, msg->interrupt_page =virt_to_phys (vmbus_connection.int_page); msg->monitor_page1 =virt_to_phys (vmbus_connection.monitor_pages[0 ]); msg->monitor_page2 =virt_to_phys (vmbus_connection.monitor_pages[1 ]); -if (version ==VERSION_WIN8_1 ) - msg->target_vcpu = hv_context.vp_index[smp_processor_id ()]; +if (version ==VERSION_WIN8_1 ) { + cur_cpu =get_cpu (); + msg->target_vcpu = hv_context.vp_index[cur_cpu]; +put_cpu (); + }/* * Add to list before we send the request since we may
drivers/hwmon/nct6775.c +18 -10
@@ -57,6 +57,7 @@#include <linux/mutex.h> #include <linux/acpi.h> #include <linux/io.h> +#include <linux/nospec.h> #include "lm75.h" #define USE_ALTERNATE
@@ -268,8 +269,9 @@ static const u16 NCT6775_REG_PWM_READ[] = {static const u16 NCT6775_REG_FAN [] = {0x630 ,0x632 ,0x634 ,0x636 ,0x638 };static const u16 NCT6775_REG_FAN_MIN [] = {0x3b ,0x3c ,0x3d }; -static const u16 NCT6775_REG_FAN_PULSES [] = {0x641 ,0x642 ,0x643 ,0x644 ,0 }; -static const u16 NCT6775_FAN_PULSE_SHIFT [] = {0 ,0 ,0 ,0 ,0 ,0 }; +static const u16 NCT6775_REG_FAN_PULSES [NUM_FAN ] = { +0x641 ,0x642 ,0x643 ,0x644 }; +static const u16 NCT6775_FAN_PULSE_SHIFT [NUM_FAN ] = { };static const u16 NCT6775_REG_TEMP [] = {0x27 ,0x150 ,0x250 ,0x62b ,0x62c ,0x62d };
@@ -381,7 +383,8 @@ static const u8 NCT6776_REG_PWM_MODE[] = { 0x04, 0, 0, 0, 0, 0 };static const u8 NCT6776_PWM_MODE_MASK [] = {0x01 ,0 ,0 ,0 ,0 ,0 };static const u16 NCT6776_REG_FAN_MIN [] = {0x63a ,0x63c ,0x63e ,0x640 ,0x642 }; -static const u16 NCT6776_REG_FAN_PULSES [] = {0x644 ,0x645 ,0x646 ,0 ,0 }; +static const u16 NCT6776_REG_FAN_PULSES [NUM_FAN ] = { +0x644 ,0x645 ,0x646 };static const u16 NCT6776_REG_WEIGHT_DUTY_BASE [] = {0x13e ,0x23e ,0x33e ,0x83e ,0x93e ,0xa3e };
@@ -450,7 +453,7 @@ static const s8 NCT6779_BEEP_BITS[] = {static const u16 NCT6779_REG_FAN [] = {0x4b0 ,0x4b2 ,0x4b4 ,0x4b6 ,0x4b8 ,0x4ba }; -static const u16 NCT6779_REG_FAN_PULSES [] = { +static const u16 NCT6779_REG_FAN_PULSES [NUM_FAN ] = {0x644 ,0x645 ,0x646 ,0x647 ,0x648 ,0x649 };static const u16 NCT6779_REG_CRITICAL_PWM_ENABLE [] = {
@@ -563,8 +566,8 @@ static const u16 NCT6106_REG_TEMP_CONFIG[] = {static const u16 NCT6106_REG_FAN [] = {0x20 ,0x22 ,0x24 };static const u16 NCT6106_REG_FAN_MIN [] = {0xe0 ,0xe2 ,0xe4 }; -static const u16 NCT6106_REG_FAN_PULSES [] = {0xf6 ,0xf6 ,0xf6 ,0 ,0 }; -static const u16 NCT6106_FAN_PULSE_SHIFT [] = {0 ,2 ,4 ,0 ,0 }; +static const u16 NCT6106_REG_FAN_PULSES [] = {0xf6 ,0xf6 ,0xf6 }; +static const u16 NCT6106_FAN_PULSE_SHIFT [] = {0 ,2 ,4 };static const u8 NCT6106_REG_PWM_MODE [] = {0xf3 ,0xf3 ,0xf3 };static const u8 NCT6106_PWM_MODE_MASK [] = {0x01 ,0x02 ,0x04 };
@@ -1330,7 +1333,7 @@ static void nct6775_update_pwm(struct device *dev) reg =nct6775_read_value (data, data->REG_WEIGHT_TEMP_SEL[i]); data->pwm_weight_temp_sel[i] = reg &0x1f ;/* If weight is disabled, report weight source as 0 */ -if (j ==1 && !(reg &0x80 )) +if (!(reg &0x80 )) data->pwm_weight_temp_sel[i] =0 ;/* Weight temp data */
@@ -1450,9 +1453,13 @@ static struct nct6775_data *nct6775_update_device(struct device *dev)if (data->has_fan_min & (1 << i)) data->fan_min[i] =nct6775_read_value (data, data->REG_FAN_MIN[i]); - data->fan_pulses[i] = - (nct6775_read_value (data, data->REG_FAN_PULSES[i]) - >> data->FAN_PULSE_SHIFT[i]) &0x03 ; + +if (data->REG_FAN_PULSES[i]) { + data->fan_pulses[i] = + (nct6775_read_value (data, + data->REG_FAN_PULSES[i]) + >> data->FAN_PULSE_SHIFT[i]) &0x03 ; + }nct6775_select_fan_div (dev, data, i, reg); }
@@ -2438,6 +2445,7 @@ store_pwm_weight_temp_sel(struct device *dev, struct device_attribute *attr,return err;if (val >NUM_TEMP )return -EINVAL ; + val =array_index_nospec (val,NUM_TEMP +1 );if (val && (!(data->have_temp & (1 << (val -1 ))) || !data->temp_src[val -1 ]))return -EINVAL ;
drivers/i2c/busses/i2c-xiic.c +4 -0
@@ -504,6 +504,7 @@ static void xiic_start_recv(struct xiic_i2c *i2c) {u8 rx_watermark;struct i2c_msg *msg = i2c->rx_msg = i2c->tx_msg; +unsigned long flags;/* Clear and enable Rx full interrupt. */ xiic_irq_clr_en (i2c,XIIC_INTR_RX_FULL_MASK |XIIC_INTR_TX_ERROR_MASK );
@@ -519,6 +520,7 @@ static void xiic_start_recv(struct xiic_i2c *i2c) rx_watermark =IIC_RX_FIFO_DEPTH ;xiic_setreg8 (i2c,XIIC_RFD_REG_OFFSET , rx_watermark -1 ); +local_irq_save (flags);if (!(msg->flags &I2C_M_NOSTART ))/* write the address */ xiic_setreg16(i2c, XIIC_DTR_REG_OFFSET,
@@ -529,6 +531,8 @@ static void xiic_start_recv(struct xiic_i2c *i2c)xiic_setreg16 (i2c,XIIC_DTR_REG_OFFSET , msg->len | ((i2c->nmsgs ==1 ) ?XIIC_TX_DYN_STOP_MASK :0 )); +local_irq_restore (flags); +if (i2c->nmsgs ==1 )/* very last, enable bus not busy as well */ xiic_irq_clr_en (i2c,XIIC_INTR_BNB_MASK );
drivers/iio/frequency/ad9523.c +2 -2
@@ -507,7 +507,7 @@ static ssize_t ad9523_store(struct device *dev,return ret;if (!state) -return 0 ; +return len;mutex_lock (&indio_dev->mlock);switch ((u32 )this_attr->address) {
@@ -641,7 +641,7 @@ static int ad9523_read_raw(struct iio_dev *indio_dev, code = (AD9523_CLK_DIST_DIV_PHASE_REV (ret) *3141592 ) /AD9523_CLK_DIST_DIV_REV (ret); *val = code /1000000 ; - *val2 = (code %1000000 ) *10 ; + *val2 = code %1000000 ;return IIO_VAL_INT_PLUS_MICRO ;default :return -EINVAL ;
drivers/infiniband/core/cma.c +7 -5
@@ -434,6 +434,7 @@ static int cma_resolve_ib_dev(struct rdma_id_private *id_priv) dgid = (union ib_gid *) &addr->sib_addr; pkey =ntohs (addr->sib_pkey);
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/cxgb4/qp.c +42 -20
62 lines not on this page · raw message
drivers/infiniband/ulp/ipoib/ipoib_cm.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/ipoib/ipoib_multicast.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/media/platform/exynos4-is/fimc-isp-video.c +8 -3
Lines of this file are not shown. View the raw message.
drivers/media/usb/dvb-usb-v2/rtl28xxu.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/misc/vmw_vmci/vmci_queue_pair.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h +5 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/net/vxlan.c +76 -27
103 lines not on this page · raw message
drivers/net/wireless/libertas/if_sdio.c +28 -6
Lines of this file are not shown. View the raw message.
drivers/spi/spi-rspi.c +101 -39
140 lines not on this page · raw message
drivers/spi/spi-sh-msiof.c +55 -2
57 lines not on this page · raw message
drivers/staging/usbip/vhci_hcd.c +32 -11
43 lines not on this page · raw message
drivers/target/iscsi/iscsi_target_login.c +22 -13
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_tpg.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/tty/serial/cpm_uart/cpm_uart_core.c +7 -3
Lines of this file are not shown. View the raw message.
drivers/usb/core/driver.c +28 -22
50 lines not on this page · raw message
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/video/fbdev/udlfb.c +66 -74
140 lines not on this page · raw message
fs/ext4/resize.c +33 -12
45 lines not on this page · raw message
fs/sysfs/file.c +44 -0
44 lines not on this page · raw message
include/crypto/vmac.h deleted +0 -63
63 lines not on this page · raw message
net/ieee802154/6lowpan_rtnl.c +104 -36
140 lines not on this page · raw message
net/ipv4/fib_semantics.c +50 -0
50 lines not on this page · raw message
security/keys/encrypted-keys/encrypted.c +15 -16
Lines of this file are not shown. View the raw message.
sound/pci/cs5535audio/cs5535audio_pcm.c +2 -2
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.