Linux 3.16.55
I'm announcing the release of the 3.16.55 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.54 is attached to this message.
Ben.
------------
Makefile | 5 +- arch/arm/boot/dts/kirkwood-openblocks_a7.dts | 10 +- arch/arm/include/asm/kvm_arm.h | 3 +- arch/arm/kvm/mmu.c | 10 +- arch/arm64/include/asm/kvm_arm.h | 3 +- arch/arm64/kernel/process.c | 9 + arch/arm64/kvm/handle_exit.c | 4 +- arch/mips/include/asm/cpu-info.h | 2 + arch/mips/include/asm/elf.h | 7 + arch/mips/include/asm/fpu.h | 6 +- arch/mips/include/asm/fpu_emulator.h | 18 +- arch/mips/include/asm/kdebug.h | 3 +- arch/mips/include/asm/mipsregs.h | 14 +- arch/mips/include/asm/switch_to.h | 21 +- arch/mips/kernel/cps-vec.S | 15 +- arch/mips/kernel/cpu-probe.c | 55 +- arch/mips/kernel/genex.S | 15 +- arch/mips/kernel/ptrace.c | 197 +++- arch/mips/kernel/r2300_switch.S | 7 +- arch/mips/kernel/r4k_switch.S | 7 +- arch/mips/kernel/traps.c | 153 ++- arch/mips/kernel/unaligned.c | 4 +- arch/mips/math-emu/cp1emu.c | 8 +- arch/mips/math-emu/ieee754.h | 12 +- arch/powerpc/kernel/setup-common.c | 11 - arch/powerpc/perf/core-book3s.c | 8 +- arch/s390/include/asm/switch_to.h | 24 +- arch/s390/kernel/compat_linux.c | 1 + arch/sh/boards/mach-se/770x/setup.c | 24 +- arch/sh/include/mach-se/mach/se.h | 1 + arch/x86/include/asm/alternative.h | 4 +- arch/x86/include/asm/kvm_host.h | 3 +- arch/x86/include/asm/traps.h | 1 + arch/x86/kernel/cpu/mcheck/mce.c | 6 + arch/x86/kernel/cpu/microcode/intel.c | 29 +- arch/x86/kernel/entry_64.S | 2 +- arch/x86/kvm/svm.c | 2 + arch/x86/kvm/vmx.c | 16 +- arch/x86/kvm/x86.c | 30 +- arch/x86/pci/broadcom_bus.c | 2 +- block/blk-flush.c | 6 + block/blk-mq-tag.h | 12 + block/blk-mq.c | 16 +- crypto/algapi.c | 12 + crypto/asymmetric_keys/x509_cert_parser.c | 2 + drivers/acpi/apei/erst.c | 2 +- drivers/acpi/sbshc.c | 4 +- drivers/base/isa.c | 10 +- drivers/crypto/n2_core.c | 3 + drivers/dma/dma-jz4740.c | 4 +- drivers/dma/dmatest.c | 54 +- drivers/firmware/efi/efi.c | 3 +- drivers/firmware/efi/runtime-map.c | 10 +- drivers/gpu/drm/i915/intel_i2c.c | 4 +- drivers/hwmon/pmbus/pmbus_core.c | 21 +- drivers/i2c/i2c-core.c | 17 +- drivers/infiniband/hw/cxgb4/cq.c | 6 +- drivers/infiniband/ulp/ipoib/ipoib_main.c | 25 +- drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 5 +- drivers/infiniband/ulp/srpt/ib_srpt.c | 3 +- drivers/input/misc/twl4030-vibra.c | 7 +- drivers/input/misc/twl6040-vibra.c | 2 +- drivers/input/mouse/elantech.c | 2 +- drivers/input/mouse/trackpoint.c | 7 +- drivers/input/touchscreen/88pm860x-ts.c | 16 +- drivers/iommu/intel-iommu.c | 8 +- drivers/md/bcache/request.c | 13 +- drivers/md/dm-cache-target.c | 12 +- drivers/md/dm-mpath.c | 34 +- drivers/md/dm-snap.c | 48 +- drivers/md/dm-thin-metadata.c | 6 +- drivers/md/dm-thin.c | 22 +- drivers/md/persistent-data/dm-btree.c | 19 +- drivers/media/i2c/adv7604.c | 6 +- drivers/media/usb/dvb-usb/dibusb-common.c | 16 +- drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 1025 ++++++++++++-------- drivers/media/v4l2-core/v4l2-ioctl.c | 5 +- drivers/media/v4l2-core/videobuf2-core.c | 5 + drivers/mfd/cros_ec_spi.c | 4 + drivers/mfd/twl4030-audio.c | 9 +- drivers/mfd/twl6040.c | 12 +- drivers/misc/eeprom/at24.c | 6 + drivers/mmc/host/s3cmci.c | 6 +- drivers/net/can/ti_hecc.c | 3 + drivers/net/can/usb/ems_usb.c | 2 + drivers/net/can/usb/esd_usb2.c | 2 + drivers/net/can/usb/gs_usb.c | 2 +- drivers/net/can/usb/kvaser_usb.c | 13 +- drivers/net/can/usb/usb_8dev.c | 2 + drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +- .../net/ethernet/freescale/fs_enet/fs_enet-main.c | 16 +- drivers/net/ethernet/freescale/fs_enet/fs_enet.h | 1 + drivers/net/ethernet/intel/e1000e/ich8lan.c | 11 +- drivers/net/ethernet/intel/e1000e/mac.c | 11 +- drivers/net/ethernet/intel/e1000e/netdev.c | 2 +- drivers/net/ethernet/marvell/mvmdio.c | 3 +- drivers/net/ethernet/marvell/mvneta.c | 4 + drivers/net/ethernet/mellanox/mlx5/core/eq.c | 17 +- drivers/net/ethernet/renesas/sh_eth.c | 33 +- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 + drivers/net/phy/marvell.c | 2 +- drivers/net/phy/mdio-sun4i.c | 6 +- drivers/net/ppp/pppoe.c | 11 +- drivers/net/wireless/mac80211_hwsim.c | 14 +- drivers/of/fdt.c | 2 +- drivers/parisc/lba_pci.c | 33 + drivers/pci/pci-driver.c | 7 +- drivers/scsi/scsi_lib.c | 10 +- drivers/staging/usbip/stub_dev.c | 3 +- drivers/staging/usbip/stub_main.c | 5 +- drivers/staging/usbip/stub_rx.c | 7 +- drivers/staging/usbip/stub_tx.c | 4 +- drivers/staging/usbip/usbip_common.c | 31 +- drivers/staging/usbip/userspace/src/utils.c | 9 +- drivers/staging/usbip/vhci_hcd.c | 12 +- drivers/staging/usbip/vhci_rx.c | 23 +- drivers/staging/usbip/vhci_tx.c | 3 +- drivers/tty/n_tty.c | 4 +- drivers/tty/serial/8250/8250_pci.c | 3 + drivers/usb/core/config.c | 16 +- drivers/usb/core/devio.c | 14 +- drivers/usb/core/hub.c | 9 + drivers/usb/core/quirks.c | 9 +- drivers/usb/gadget/composite.c | 7 +- drivers/usb/gadget/udc-core.c | 32 +- drivers/usb/host/ehci-dbg.c | 2 +- drivers/usb/host/xhci-mem.c | 24 +- drivers/usb/host/xhci-pci.c | 3 + drivers/usb/host/xhci-ring.c | 12 +- drivers/usb/misc/usb3503.c | 2 + drivers/usb/mon/mon_bin.c | 8 +- drivers/usb/musb/da8xx.c | 10 +- drivers/usb/serial/cp210x.c | 2 + drivers/usb/serial/ftdi_sio.c | 1 + drivers/usb/serial/ftdi_sio_ids.h | 6 + drivers/usb/serial/option.c | 20 + drivers/usb/storage/uas-detect.h | 4 + drivers/usb/storage/unusual_devs.h | 7 + drivers/usb/storage/unusual_uas.h | 14 + drivers/virtio/virtio.c | 2 + fs/btrfs/disk-io.c | 9 +- fs/btrfs/extent-tree.c | 15 +- fs/btrfs/ioctl.c | 2 +- fs/ext4/extents.c | 1 + fs/ext4/namei.c | 4 + fs/nfsd/auth.c | 3 + fs/quota/dquot.c | 3 +- include/asm-generic/dma-mapping-broken.h | 3 - include/linux/blkdev.h | 6 + include/linux/cred.h | 1 + include/linux/dma-mapping.h | 2 - include/linux/fscache.h | 2 +- include/linux/mlx5/driver.h | 2 +- include/linux/phy.h | 21 + include/linux/sh_eth.h | 1 - include/linux/stddef.h | 15 +- include/linux/sysfs.h | 6 + include/linux/vfio.h | 13 - include/net/cfg80211.h | 2 + include/net/red.h | 13 +- include/net/sctp/checksum.h | 13 +- include/net/xfrm.h | 1 + include/scsi/libsas.h | 2 +- include/uapi/linux/usb/ch9.h | 2 + kernel/acct.c | 2 +- kernel/debug/kdb/kdb_io.c | 2 +- kernel/futex.c | 3 + kernel/groups.c | 5 +- kernel/hrtimer.c | 2 + kernel/posix-timers.c | 37 +- kernel/time/tick-sched.c | 19 +- kernel/trace/blktrace.c | 4 +- kernel/trace/ring_buffer.c | 6 +- kernel/trace/trace.c | 3 + kernel/uid16.c | 1 + lib/asn1_decoder.c | 45 +- lib/oid_registry.c | 16 +- mm/mprotect.c | 6 +- net/8021q/vlan.c | 7 +- net/batman-adv/bat_iv_ogm.c | 4 +- net/bridge/br_netlink.c | 7 +- net/can/af_can.c | 22 +- net/dccp/ccids/ccid2.c | 3 + net/ipv4/esp4.c | 1 + net/ipv4/igmp.c | 20 +- net/ipv4/raw.c | 121 ++- net/ipv4/tcp_ipv4.c | 2 +- net/ipv4/xfrm4_input.c | 11 +- net/ipv6/esp6.c | 3 +- net/ipv6/tcp_ipv6.c | 2 +- net/ipv6/xfrm6_input.c | 9 +- net/key/af_key.c | 8 + net/netfilter/xt_bpf.c | 6 +- net/packet/af_packet.c | 5 + net/rds/rdma.c | 2 +- net/sched/sch_choke.c | 3 + net/sched/sch_gred.c | 3 + net/sched/sch_red.c | 2 + net/sched/sch_sfq.c | 3 + net/sctp/socket.c | 31 +- net/sunrpc/auth_gss/gss_rpc_xdr.c | 1 + net/sunrpc/auth_gss/svcauth_gss.c | 1 + net/sunrpc/svcauth_unix.c | 2 + net/wireless/core.c | 7 +- net/wireless/core.h | 2 - net/wireless/nl80211.c | 15 +- net/wireless/wext-compat.c | 3 +- net/xfrm/xfrm_input.c | 56 ++ sound/core/oss/pcm_oss.c | 41 +- sound/core/oss/pcm_plugin.c | 14 +- sound/core/pcm.c | 2 + sound/core/pcm_lib.c | 5 +- sound/core/rawmidi.c | 15 +- sound/core/seq/seq_clientmgr.c | 15 +- sound/core/seq/seq_timer.c | 2 +- sound/drivers/aloop.c | 98 +- sound/pci/hda/patch_cirrus.c | 1 + sound/pci/hda/patch_conexant.c | 29 + sound/soc/codecs/twl4030.c | 4 +- sound/soc/codecs/wm_adsp.c | 29 +- sound/soc/fsl/fsl_ssi.c | 17 +- sound/usb/mixer.c | 26 +- tools/hv/hv_kvp_daemon.c | 70 +- 223 files changed, 2541 insertions(+), 1266 deletions(-)
Aaron Ma (2):
Input: elantech - add new icbody type 15
Input: trackpoint - force 3 buttons if 0 button is reported
Adam Wallis (2):
dmaengine: dmatest: warn user when dma test times out
dmaengine: dmatest: move callback wait queue to thread context
Alan Stern (3):
usb: udc: core: add device_del() call to error pathway
USB: Gadget core: fix inconsistency in the interface tousb_add_gadget_udc_release()
USB: UDC core: fix double-free in usb_add_gadget_udc_release
Alexey Kodanev (1):
dccp: don't restart ccid2_hc_tx_rto_expire() if sk in closed state
Andrew Bresticker (1):
mac80211_hwsim: fix compiler warning on MIPS
Andrew Honig (1):
KVM: x86: Add memory barrier on vmcs field lookup
Anshuman Khandual (1):
mm/mprotect: add a cond_resched() inside change_pmd_range()
Arnd Bergmann (1):
mmc: s3mci: mark debug_regs[] as static
Bart Van Assche (1):
IB/srpt: Disable RDMA access by the initiator
Ben Hutchings (4):
ASoC: wm_adsp: Fix validation of firmware and coeff lengths
nfsd: auth: Fix gid sorting when rootsquash enabled
of: fdt: Fix return with value in void function Linux 3.16.55
Benjamin Herrenschmidt (1):
powerpc: Don't preempt_disable() in show_cpuinfo()
Benjamin Poirier (2):
e1000e: Separate signaling for link check/link up
e1000e: Fix e1000_check_for_copper_link_ich8lan return value.
Bin Liu (1):
usb: musb: da8xx: fix babble condition handling
Chandan Rajendra (1):
ext4: fix crash when a directory's i_size is too small
Christian Holl (1):
USB: serial: cp210x: add new device ID ELV ALC 8xxx
Christoph Hellwig (1):
scsi: dma-mapping: always provide dma_get_cache_alignment
Christoph Paasch (1):
tcp md5sig: Use skb's saddr when replying to an incoming segment
Christophe JAILLET (1):
mdio-sun4i: Fix a memory leak
Christophe Leroy (1):
net: fs_enet: do not call phy_stop() in interrupts
Colin Ian King (2):
usb: gadget: don't dereference g until after it has been null checked
usb: host: fix incorrect updating of offset
Cong Wang (1):
8021q: fix a memory leak for VLAN 0 device
Daniel Mentz (2):
media: v4l2-compat-ioctl32: Copy v4l2_window->global_alpha
media: v4l2-compat-ioctl32.c: refactor compat ioctl32 logic
Daniel Thompson (2):
kdb: Fix handling of kallsyms_symbol_next() return value
usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201
Daniele Palmas (1):
USB: serial: option: add support for Telit ME910 PID 0x1101
Dave Martin (2):
arm64: fpsimd: Prevent registers leaking from dead tasks mips/ptrace: Preserve previous registers for short regset write
David Howells (1):
fscache: Fix the default for fscache_maybe_release_page()
David Kozub (1):
USB: uas and storage: Add US_FL_BROKEN_FUA for another JMicron JMS567 ID
David Woodhouse (1):
x86/alternatives: Add missing ' ' at end of ALTERNATIVE inline asm
Dennis Yang (1):
dm thin metadata: THIN_MAX_CONCURRENT_LOCKS should be 6
Denys Vlasenko (1):
include/stddef.h: Move offsetofend() from vfio.h to a generic kernel header
Diego Elio Pettenò (1):
USB: serial: cp210x: add IDs for LifeScan OneTouch Verio IQ
Dmitry Fleytman Dmitry Fleytman (1):
usb: Add device quirk for Logitech HD Pro Webcam C925e
Dominik Brodowski (1):
nl80211: take RCU read lock when calling ieee80211_bss_get_ie()
Erez Shitrit (1):
IB/ipoib: Fix race condition in neigh creation
Eric Biggers (8):
ASN.1: fix out-of-bounds read when parsing indefinite length item ASN.1: check for error from ASN1_OP_END__ACT actions X.509: reject invalid BIT STRING for subjectPublicKey X.509: fix buffer overflow detection in sprint_oid() 509: fix printing uninitialized stack memory when OID is empty
af_key: fix buffer overread in verify_address_len()
af_key: fix buffer overread in parse_exthdrs()
crypto: algapi - fix NULL dereference in crypto_remove_spawns()
Eric Dumazet (1):
net/packet: fix a race in packet_bind() and packet_notifier()
Eryu Guan (1):
ext4: fix fdatasync(2) after fallocate(2) operation
Eugenia Emantayev (1):
net/mlx5: Fix misspelling in the error message and comment
Felix Fietkau (1):
net: igmp: fix source address check for IGMPv3 reports
Florian Fainelli (1):
net: phy: Add phy_interface_is_rgmii helper
Greg Kroah-Hartman (2):
efi: Move some sysfs files to be read-only by root
ACPI: sbshc: remove raw pointer from printk() message
Guennadi Liakhovetski (1):
V4L2: fix VIDIOC_CREATE_BUFS 32-bit compatibility mode data copy-back
Guillaume Nault (1):
pppoe: take ->needed_headroom of lower device into account on xmit
H. Nikolaus Schaller (1):
Input: twl6040-vibra - fix DT node memory management
Hans Verkuil (13):
v4l2-compat-ioctl32: fix sparse warnings
media: v4l2-compat-ioctl32.c: add capabilities field to, v4l2_input32
adv7604: use correct drive strength defines
media: v4l2-ioctl.c: don't copy back the result for -ENOTTY
media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF
media: v4l2-compat-ioctl32.c: fix the indentation
media: v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32
media: v4l2-compat-ioctl32.c: avoid sizeof(type)
media: v4l2-compat-ioctl32.c: copy m.userptr in put_v4l2_plane32
media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer
media: v4l2-compat-ioctl32.c: copy clip list in put_v4l2_window32
media: v4l2-compat-ioctl32.c: drop pr_info for unknown buffer type
media: v4l2-compat-ioctl32.c: don't copy back the result for certain errors
Hans de Goede (1):
uas: Always apply US_FL_NO_ATA_1X quirk to Seagate devices
Heiko Carstens (1):
s390: always save and restore all registers on context switch
Heiner Kallweit (1):
eeprom: at24: check at24_read/write arguments
Helge Deller (1):
parisc: Hide Diva-built-in serial aux and graphics card
Herbert Xu (5):
ipv4: Use standard iovec primitive in raw_probe_proto_opt
ipv4: Avoid reading user iov twice after raw_probe_proto_opt
xfrm: Reinject transport-mode packets through tasklet
xfrm: Use __skb_queue_tail in xfrm_trans_queue
xfrm: Return error on unknown encap_type in init_state
Huacai Chen (2):
scsi: use dma_get_cache_alignment() as minimum DMA alignment
scsi: libsas: align sata_device's rps_resp on a cacheline
Hui Wang (1):
ALSA: hda - Add MIC_NO_PRESENCE fixup for 2 HP machines
Håkon Bugge (1):
rds: Fix NULL pointer dereference in __rds_rdma_map
Icenowy Zheng (1):
uas: ignore UAS for Norelsys NS1068(X) chips
Iyappan Subramanian (1):
phy: Add helper function to check phy interface mode
Jaejoong Kim (2):
ALSA: usb-audio: Fix out-of-bound error
ALSA: usb-audio: Add check return value for usb_string()
James Hogan (4):
MIPS: CPS: Fix r1 .set mt assembler warning
MIPS: Clear [MSA]FPE CSR.Cause after notify_die()
MIPS: lose_fpu(): Disable FPU when MSA enabled
MIPS: CPS: Fix MIPS_ISA_LEVEL_RAW fallout
Jan Engelhardt (1):
crypto: n2 - cure use after free
Jann Horn (1):
netfilter: xt_bpf: add overflow checks
Jeff Mahoney (1):
btrfs: fix missing error return in btrfs_drop_snapshot
Jens Axboe (1):
blktrace: fix trace mutex deadlock
Jeremy Compostella (1):
i2c: core-smbus: prevent stack corruption on read I2C_BLOCK_DATA
Jerome Brunet (1):
net: stmmac: enable EEE in MII, GMII or RGMII only
Jia Zhang (2):
x86/microcode/intel: Extend BDW late-loading with a revision check x86/microcode/intel: Extend BDW late-loading further with LLC size check
Jimmy Assarsson (3):
can: kvaser_usb: free buf in error paths
can: kvaser_usb: Fix comparison bug in kvaser_usb_read_bulk_callback()
can: kvaser_usb: ratelimit errors if incomplete messages are received
Jing Xia (1):
tracing: Fix crash when it fails to alloc ring buffer
Joe Perches (1):
stddef.h: move offsetofend inside #ifndef/#endif guard, neaten
Joe Thornber (1):
dm btree: fix serious bug in btree_split_beneath()
Johan Hovold (6):
ASoC: twl4030: fix child-node lookup
mfd: twl4030-audio: Fix sibling-node lookup
mfd: twl6040: Fix child-node lookup
Input: twl4030-vibra - fix sibling-node lookup
Input: twl6040-vibra - fix child-node lookup
Input: 88pm860x-ts - fix child-node lookup
Johannes Berg (4):
nl80211: fix nl80211_send_iface() error paths
mac80211_hwsim: validate number of different channels
cfg80211: check dev_set_name() return value
cfg80211: fix station info handling bugs
Johannes Thumshirn (1):
dm mpath: simplify failure path of dm_multipath_init()
Jon Hunter (1):
mfd: cros ec: spi: Don't send first message too soon
Josef Bacik (1):
btrfs: clear space cache inode generation always
Juan Zea (1):
usbip: fix usbip bind writing random string after command in match_busid
Kai-Heng Feng (1):
usb: quirks: Add no-lpm quirk for KY-688 USB 3.1 Type-C Hub
Kevin Cernekee (1):
net: igmp: Use correct source address on IGMPv3 reports
Kristina Martsenko (1):
arm64: KVM: fix VTTBR_BADDR_MASK BUG_ON off-by-one
Lan Tianyu (1):
KVM/x86: Check input paging mode when cs.l is set
Laurent Caumont (1):
media: dvb: i2c transfers over usb cannot be done from stack
Li Jinyue (1):
futex: Prevent overflow by strengthen input validation
Linus Torvalds (2):
n_tty: fix EXTPROC vs ICANON interaction with TIOCINQ (aka FIONREAD)
kbuild: add '-fno-stack-check' to kernel build options
Liran Alon (3):
KVM: x86: Exit to user-mode on #UD intercept when emulator requires
KVM: x86: emulator: Return to user-mode on L1 CPL=0 emulation failure
KVM: x86: Don't re-execute instruction when not passing CR2 value
Lixin Wang (1):
i2c: core: decrease reference count of device node in i2c_unregister_device
Maciej S. Szmigiero (2):
ASoC: fsl_ssi: add AC'97 ops setting check and cleanup
ASoC: fsl_ssi: AC'97 ops need regmap, clock and cleaning up on failure
Maciej W. Rozycki (13):
MIPS: Respect the FCSR exception mask for `si_code'
MIPS: Always clear FCSR cause bits after emulation
MIPS: Set `si_code' for SIGFPE signals sent from emulation too
MIPS: math-emu: Define IEEE 754-2008 feature control bits
MIPS: Respect the ISA level in FCSR handling
MIPS: Fix a preemption issue with thread's FPU defaults
MIPS: ptrace: Fix FP context restoration FCSR regression
MIPS: ptrace: Prevent writes to read-only FCSR bits
MIPS: Fix FCSR Cause bit handling for correct SIGFPE issue
MIPS: Factor out NT_PRFPREG regset access helpers
MIPS: Guard against any partial write attempt with PTRACE_SETREGSET
MIPS: Fix an FCSR access API regression with NT_PRFPREG and MSA
MIPS: Disallow outsized PTRACE_SETREGSET NT_PRFPREG regset accesses
Marc Kleine-Budde (2):
can: af_can: can_rcv(): replace WARN_ONCE by pr_warn_once
can: af_can: canfd_rcv(): replace WARN_ONCE by pr_warn_once
Marc Zyngier (3):
arm: KVM: Fix VTTBR_BADDR_MASK BUG_ON off-by-one
KVM: arm/arm64: Fix HYP unmapping going off limits
arm64: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls
Marek Belisko (1):
Input: twl4030-vibra - fix ERROR: Bad of_node_put() warning
Martin Kelly (4):
can: ems_usb: cancel urb on -EPIPE and -EPROTO
can: esd_usb2: cancel urb on -EPIPE and -EPROTO
can: kvaser_usb: cancel urb on -EPIPE and -EPROTO
can: usb_8dev: cancel urb on -EPIPE and -EPROTO
Masakazu Mokuno (1):
USB: core: Add type-specific length check of BOS descriptors
Mathias Nyman (2):
xhci: Don't show incorrect WARN message about events for empty rings
xhci: Don't add a virt_dev to the devs array before it's fully allocated
Matt Wilson (1):
serial: 8250_pci: Add Amazon PCI serial device ID
Max Schulze (1):
USB: serial: ftdi_sio: add id for Airbus DS P8GR
Mike Looijmans (1):
usb: hub: Cycle HUB power when initialization fails
Ming Lei (1):
blk-mq: fix race between timeout and freeing request
Mohamed Ghannam (1):
net: ipv4: fix for a race condition in raw_sendmsg
Moshe Shemesh (2):
net/mlx5: Cleanup IRQs in case of unload failure net/mlx5: Stay in polling mode when command EQ destroy fails
Nicolai Stange (1):
net: ipv4: emulate READ_ONCE() on ->hdrincl bit-field in raw_sendmsg()
Nikolay Aleksandrov (1):
net: bridge: fix early call to br_stp_change_bridge_id and plug newlink leaks
Nikolay Borisov (1):
btrfs: Fix possible off-by-one in btrfs_search_path_in_tree
Nogah Frankel (2):
net_sched: red: Avoid devision by zero
net_sched: red: Avoid illegal values
Oleg Nesterov (1):
kernel/acct.c: fix the acct->needcheck check in check_free_space()
Oliver Neukum (2):
USB: usbfs: Filter flags passed in from user space
usb: add RESET_RESUME for ELSA MicroLink 56K
Oliver Stäbler (1):
can: ti_hecc: Fix napi poll return value for repoll
Omar Sandoval (1):
Btrfs: disable FUA if mounted with nobarrier
Oscar Campos (1):
Input: trackpoint - assume 3 buttons when buttons detection fails
Paul Burton (2):
MIPS: clear MSACSR cause bits when handling MSA FP exception
MIPS: prevent FP context set via ptrace being discarded
Paul Meyer (1):
hv: kvp: Avoid reading past allocated blocks from KVP file
Pete Zaitcev (1):
USB: fix usbmon BUG trigger
Petri Gynther (1):
net: bcmgenet: fix bcmgenet_open()
Rafael J. Wysocki (2):
x86/PCI: Make broadcom_postcore_init() check acpi_disabled PCI / PM: Force devices to D0 in pci_pm_thaw_noirq()
Ralf Baechle (1):
MIPS: MSA: bugfix - disable MSA correctly for new threads/processes.
Ravi Bangoria (1):
powerpc/perf: Dereference BHRB entries safely
Ricardo Ribalda (1):
vb2: V4L2_BUF_FLAG_DONE is set after DQBUF
Richard Fitzgerald (1):
ASoC: wm_adsp: Don't overrun firmware file buffer when reading region data
Robb Glasser (1):
ALSA: pcm: prevent UAF in snd_pcm_info
Robert Lippert (1):
hwmon: (pmbus) Use 64bit math for DIRECT format values
Robin Murphy (1):
iommu/vt-d: Fix scatterlist offset handling
Rui Hua (1):
bcache: recover data from backing when data is clean
SZ Lin (林上智) (1):
USB: serial: option: adding support for YUGA CLM920-NC5
Sebastian Sjoholm (1):
USB: serial: option: add Quectel BG96 id
Sergei Shtylyov (5):
sh_eth: fix TSU resource handling
sh_eth: fix SH7757 GEther initialization
sh_eth: fix TXALCR1 offsets
SolutionEngine771x: fix Ether platform data
SolutionEngine771x: add Ether TSU resource
Shuah Khan (4):
usbip: vhci: stop printing kernel pointer addresses in messages
usbip: stub: stop printing kernel pointer addresses in messages
usbip: prevent leaking socket pointer address in messages
usbip: remove kernel addresses from usb device and urb debug msgs
Stefan Agner (1):
usb: misc: usb3503: make sure reset is low for at least 100us
Steve Wise (1):
iw_cxgb4: Only validate the MSN for successful completions
Steven Rostedt (VMware) (2):
ring-buffer: Mask out the info bits when returning buffer page length
tracing: Fix possible double free on failure of allocating trace buffer
Sven Eckelmann (1):
batman-adv: Fix lock for ogm cnt access in batadv_iv_ogm_calc_tq
Takashi Iwai (15):
ALSA: seq: Fix regression by incorrect ioctl_mutex usages
ALSA: seq: Remove spurious WARN_ON() at timer check
lib/oid_registry.c: X.509: fix the buffer overflow in the utility function for OID string
ALSA: rawmidi: Avoid racy info ioctl via ctl device
ACPI: APEI / ERST: Fix missing error handling in erst_reader()
ALSA: usb-audio: Fix the missing ctl name suffix at parsing SU
ALSA: pcm: Remove incorrect snd_BUG_ON() usages
ALSA: pcm: Add missing error checks in OSS emulation plugin builder
ALSA: aloop: Release cable upon open error path
ALSA: aloop: Fix inconsistent format due to incomplete rule
ALSA: aloop: Fix racy hw constraints adjustment
ALSA: pcm: Abort properly at pending signal in OSS read/write loops
ALSA: pcm: Allow aborting mutex lock at OSS read/write loops
ALSA: hda - Apply the existing quirk to iMac 14,1
ALSA: pcm: Remove yet superfluous WARN_ON()
Tetsuo Handa (1):
quota: Check for register_shrinker() failure.
Thiago Rafael Becker (1):
kernel: make groups_sort calling a responsibility group_info allocators
Thomas Gleixner (4):
posix-timer: Properly check sigevent->sigev_notify
nohz: Prevent a timer interrupt storm in tick_nohz_stop_sched_tick() x86/mce: Make machine check speculation protected
hrtimer: Reset hrtimer cpu base proper on CPU hotplug
Thomas Petazzoni (1):
ARM: dts: kirkwood: fix pin-muxing of MPP7 on OpenBlocks A7
Tianyu Lan (1):
KVM/x86: Fix wrong macro references of X86_CR0_PG_BIT and X86_CR4_PAE_BIT in kvm_valid_sregs()
Tiffany Lin (1):
media: v4l2-compat-ioctl32: fix missing reserved field copy in put_v4l2_create32
Tobias Jordan (2):
net: mvmdio: disable/unprepare clocks in EPROBE_DEFER case
dmaengine: jz4740: disable/unprepare clk if probe fails
Tonghao Zhang (1):
sctp: Replace use of sockets_allocated with specified macro.
Ville Syrjälä (2):
drm/i915: Don't try indexed reads to alternate slave addresses drm/i915: Prevent zero length "index" write
Wanpeng Li (1):
KVM: X86: Fix load RFLAGS w/o the fixed bit
William Breathitt Gray (1):
isa: Prevent NULL dereference in isa_bus driver callbacks
Wolfgang Grandegger (1):
can: gs_usb: fix return value of the "set_bittiming" callback
Xin Long (4):
sctp: force the params with right types for sctp csum apis
sctp: use the right sk after waking up from wait_buf sleep
sctp: return error if the asoc has been peeled off in sctp_wait_for_sndbuf
sctp: do not allow the v4 socket to bind a v4mapped v6 address
Yang Shunyong (1):
dmaengine: dmatest: fix container_of member in dmatest_callback
Yelena Krivosheev (1):
net: mvneta: clear interface link status on port disable
Yu Chen (1):
usb: xhci: fix panic in xhci_free_virt_devices_depth_first
Zhao Qiang (1):
net: phy: marvell: Limit 88m1101 autoneg errata to 88E1145 as well.
[email protected] (1):
dm: fix various targets to dm_register_target after module __init resources created
weiping zhang (1):
virtio: release virtio index when fail to device_register
Makefile +4 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 16 -SUBLEVEL = 54 +SUBLEVEL = 55 EXTRAVERSION = NAME = Museum of Fishiegoodies
@@ -736,6 +736,9 @@ KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign) # disable invalid "can't wrap" optimizations for signed / pointers KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow) +# Make sure -fstack-check isn't enabled (like gentoo apparently did) +KBUILD_CFLAGS += $(call cc-option,-fno-stack-check,) + # conserve stack if available KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)
arch/arm/boot/dts/kirkwood-openblocks_a7.dts +8 -2
@@ -53,7 +53,8 @@ }; pinctrl: pin-controller@10000 { - pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header>; + pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header + &pmx_gpio_header_gpo>; pinctrl-names = "default"; pmx_uart0: pmx-uart0 {
@@ -85,11 +86,16 @@ * ground. */ pmx_gpio_header: pmx-gpio-header { - marvell,pins = "mpp17", "mpp7", "mpp29", "mpp28", + marvell,pins = "mpp17", "mpp29", "mpp28", "mpp35", "mpp34", "mpp40"; marvell,function = "gpio"; }; + pmx_gpio_header_gpo: pxm-gpio-header-gpo { + marvell,pins = "mpp7"; + marvell,function = "gpo"; + }; + pmx_gpio_init: pmx-init { marvell,pins = "mpp38"; marvell,function = "gpio";
arch/arm/include/asm/kvm_arm.h +1 -2
@@ -161,8 +161,7 @@#else #define VTTBR_X (5 - KVM_T0SZ)#endif -#define VTTBR_BADDR_SHIFT (VTTBR_X - 1) -#define VTTBR_BADDR_MASK (((1LLU << (40 - VTTBR_X)) - 1) << VTTBR_BADDR_SHIFT) +#define VTTBR_BADDR_MASK (((1LLU << (40 - VTTBR_X)) - 1) << VTTBR_X)#define VTTBR_VMID_SHIFT (48LLU)#define VTTBR_VMID_MASK (0xffLLU << VTTBR_VMID_SHIFT)
arch/arm/kvm/mmu.c +4 -6
@@ -345,17 +345,15 @@ void free_boot_hyp_pgd(void)*/ void free_hyp_pgds (void ) { -unsigned long addr; -free_boot_hyp_pgd ();mutex_lock (&kvm_hyp_pgd_mutex);if (hyp_pgd) { -for (addr =PAGE_OFFSET ;virt_addr_valid (addr); addr +=PGDIR_SIZE ) -unmap_range (NULL , hyp_pgd,KERN_TO_HYP (addr),PGDIR_SIZE ); -for (addr =VMALLOC_START ;is_vmalloc_addr ((void *)addr); addr +=PGDIR_SIZE ) -unmap_range (NULL , hyp_pgd,KERN_TO_HYP (addr),PGDIR_SIZE ); +unmap_range (NULL , hyp_pgd,KERN_TO_HYP (PAGE_OFFSET ), + (uintptr_t )high_memory -PAGE_OFFSET ); +unmap_range (NULL , hyp_pgd,KERN_TO_HYP (VMALLOC_START ), +VMALLOC_END -VMALLOC_START );free_pages ((unsigned long )hyp_pgd, pgd_order); hyp_pgd =NULL ;
arch/arm64/include/asm/kvm_arm.h +1 -2
@@ -164,8 +164,7 @@#define VTTBR_X (37 - VTCR_EL2_T0SZ_40B)#endif -#define VTTBR_BADDR_SHIFT (VTTBR_X - 1) -#define VTTBR_BADDR_MASK (((UL(1) << (PHYS_MASK_SHIFT - VTTBR_X)) - 1) << VTTBR_BADDR_SHIFT) +#define VTTBR_BADDR_MASK (((UL(1) << (PHYS_MASK_SHIFT - VTTBR_X)) - 1) << VTTBR_X)#define VTTBR_VMID_SHIFT (UL(48))#define VTTBR_VMID_MASK (UL(0xFF) << VTTBR_VMID_SHIFT)
arch/arm64/kernel/process.c +9 -0
@@ -269,6 +269,15 @@ int copy_thread(unsigned long clone_flags, unsigned long stack_start,memset (&p->thread.cpu_context,0 ,sizeof (struct cpu_context )); +/* +* In case p was allocated the same task_struct pointer as some +* other recently-exited task, make sure p is disassociated from +* any cpu that may have run that now-exited task recently. +* Otherwise we could erroneously skip reloading the FPSIMD +* registers for p. +*/ +fpsimd_flush_task_state (p); +if (likely (!(p->flags &PF_KTHREAD ))) { *childregs = *current_pt_regs (); childregs->regs[0 ] =0 ;
arch/arm64/kvm/handle_exit.c +2 -2
@@ -34,7 +34,7 @@ static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run) ret =kvm_psci_call (vcpu);if (ret <0 ) { -kvm_inject_undefined (vcpu); + *vcpu_reg (vcpu,0 ) = ~0UL ;return 1 ; }
@@ -43,7 +43,7 @@ static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run)static int handle_smc (struct kvm_vcpu *vcpu,struct kvm_run *run) { -kvm_inject_undefined (vcpu); + *vcpu_reg (vcpu,0 ) = ~0UL ;return 1 ; }
arch/mips/include/asm/cpu-info.h +2 -0
@@ -49,6 +49,8 @@ struct cpuinfo_mips {unsigned int udelay_val;unsigned int processor_id;unsigned int fpu_id; +unsigned int fpu_csr31; +unsigned int fpu_msk31;unsigned int msa_id;unsigned int cputype;int isa_level;
arch/mips/include/asm/elf.h +7 -0
@@ -9,6 +9,9 @@#define _ASM_ELF_H +#include <asm/cpu-info.h> +#include <asm/current.h> +/* ELF header e_flags defines. */ /* MIPS architecture level. */ #define EF_MIPS_ARCH_1 0x00000000/* -mips1 code. */
@@ -273,6 +276,8 @@ do { \set_personality (PER_LINUX ); \ \ current->thread.abi = &mips_abi; \ + \ + current->thread.fpu.fcr31 = boot_cpu_data.fpu_csr31; \ } while (0)#endif /* CONFIG_32BIT */
@@ -332,6 +337,8 @@ do { \ else \ current->thread.abi = &mips_abi; \ \ + current->thread.fpu.fcr31 = boot_cpu_data.fpu_csr31; \ + \ p =personality (current->personality); \if (p !=PER_LINUX32 && p !=PER_LINUX ) \set_personality (PER_LINUX ); \
arch/mips/include/asm/fpu.h +4 -2
@@ -30,7 +30,7 @@struct sigcontext ;struct sigcontext32 ; -extern void _init_fpu (void ); +extern void _init_fpu (unsigned int );extern void _save_fp (struct task_struct *);extern void _restore_fp (struct task_struct *);
@@ -150,6 +150,7 @@ static inline void lose_fpu(int save) }disable_msa ();clear_thread_flag (TIF_USEDMSA ); +__disable_fpu (); }else if (is_fpu_owner ()) {if (save)_save_fp (current);
@@ -162,6 +163,7 @@ static inline void lose_fpu(int save)static inline int init_fpu (void ) { +unsigned int fcr31 = current->thread.fpu.fcr31;int ret =0 ;preempt_disable ();
@@ -169,7 +171,7 @@ static inline int init_fpu(void)if (cpu_has_fpu) { ret =__own_fpu ();if (!ret) -_init_fpu (); +_init_fpu (fcr31); }else fpu_emulator_init_fpu ();
arch/mips/include/asm/fpu_emulator.h +15 -3
@@ -65,7 +65,10 @@ extern int do_dsemulret(struct pt_regs *xcp);extern int fpu_emulator_cop1Handler (struct pt_regs *xcp,struct mips_fpu_struct *ctx,int has_fpu,void *__user *fault_addr); -int process_fpemu_return (int sig,void __user *fault_addr); +void force_fcr31_sig (unsigned long fcr31,void __user *fault_addr, +struct task_struct *tsk); +int process_fpemu_return (int sig,void __user *fault_addr, +unsigned long fcr31);int mm_isBranchInstr (struct pt_regs *regs,struct mm_decoded_insn dec_insn,unsigned long *contpc);
@@ -86,10 +89,19 @@ static inline void fpu_emulator_init_fpu(void)struct task_struct *t = current;int i; - t->thread.fpu.fcr31 =0 ; -for (i =0 ; i <32 ; i++) set_fpr64(&t->thread.fpu.fpr[i], 0, SIGNALLING_NAN); } +/* +* Mask the FCSR Cause bits according to the Enable bits, observing +* that Unimplemented is always enabled. +*/ +static inline unsigned long mask_fcr31_x (unsigned long fcr31) +{ +return fcr31 & (FPU_CSR_UNI_X | + ((fcr31 &FPU_CSR_ALL_E ) << + (ffs (FPU_CSR_ALL_X ) -ffs (FPU_CSR_ALL_E )))); +} +#endif /* _ASM_FPU_EMULATOR_H */
arch/mips/include/asm/kdebug.h +2 -1
@@ -10,7 +10,8 @@ enum die_val {DIE_RI ,DIE_PAGE_FAULT ,DIE_BREAK , -DIE_SSTEPBP +DIE_SSTEPBP , +DIE_MSAFP };#endif /* _ASM_MIPS_KDEBUG_H */
arch/mips/include/asm/mipsregs.h +12 -2
@@ -123,6 +123,11 @@/* * Status Register Values */ +#define FPU_CSR_FS_S 24/* flush denormalised results to 0 */ +#define FPU_CSR_FS (_ULCAST_(1) << FPU_CSR_FS_S) + +#define FPU_CSR_CONDX_S 25/* $fcc[7:1] */ +#define FPU_CSR_CONDX (_ULCAST_(127) << FPU_CSR_CONDX_S)#define FPU_CSR_FLUSH 0x01000000/* flush denormalised results to 0 */ #define FPU_CSR_COND 0x00800000/* $fcc0 */
@@ -136,10 +141,13 @@#define FPU_CSR_COND7 0x80000000/* $fcc7 */ /* -* Bits 18 - 20 of the FPU Status Register will be read as 0, +* Bits 22:20 of the FPU Status Register will be read as 0, * and should be written as zero. */ -#define FPU_CSR_RSVD 0x001c0000 +#define FPU_CSR_RSVD (_ULCAST_(7) << 20) + +#define FPU_CSR_ABS2008 (_ULCAST_(1) << 19) +#define FPU_CSR_NAN2008 (_ULCAST_(1) << 18)/* * X the exception cause indicator
@@ -687,6 +695,8 @@#define MIPS_FPIR_W (_ULCAST_(1) << 20)#define MIPS_FPIR_L (_ULCAST_(1) << 21)#define MIPS_FPIR_F64 (_ULCAST_(1) << 22) +#define MIPS_FPIR_HAS2008 (_ULCAST_(1) << 23) +#define MIPS_FPIR_UFRP (_ULCAST_(1) << 28)/* * Bits in the MIPS32 Memory Segmentation registers.
arch/mips/include/asm/switch_to.h +20 -1
@@ -17,6 +17,7 @@#include <asm/dsp.h> #include <asm/cop2.h> #include <asm/msa.h> +#include <asm/fpu.h> struct task_struct ;
@@ -80,11 +81,29 @@ do { \ ll_bit =0 ; \ }while (0 ) +/* +* Check FCSR for any unmasked exceptions pending set with `ptrace', +* clear them and send a signal. + */ +#define __sanitize_fcr31 (next) \ +do { \ + unsigned long fcr31 = mask_fcr31_x(next->thread.fpu.fcr31); \ + void __user *pc; \ + \ + if (unlikely(fcr31)) { \ + pc = (void __user *)task_pt_regs(next)->cp0_epc; \ + next->thread.fpu.fcr31 &= ~fcr31; \ + force_fcr31_sig(fcr31, pc, next); \ + } \ +} while (0) +#define switch_to (prev, next, last) \ do { \ u32 __c0_stat; \ s32 __fpsave = FP_SAVE_NONE; \ __mips_mt_fpaff_switch_to(prev); \ + if (tsk_used_math(next)) \ + __sanitize_fcr31(next); \ if (cpu_has_dsp) \ __save_dsp(prev); \ if (cop2_present && (KSTK_STATUS(prev) & ST0_CU2)) { \
@@ -101,7 +120,6 @@ do { \if (test_and_clear_tsk_thread_flag (prev,TIF_USEDMSA )) \ __fpsave =FP_SAVE_VECTOR ; \ (last) =resume (prev, next,task_thread_info (next), __fpsave); \ -disable_msa (); \ }while (0 ) #define finish_arch_switch(prev) \
@@ -119,6 +137,7 @@ do { \if (cpu_has_userlocal) \write_c0_userlocal (current_thread_info ()->tp_value); \__restore_watch (); \ +disable_msa (); \ } while (0)#endif /* _ASM_SWITCH_TO_H */
arch/mips/kernel/cps-vec.S +12 -3
@@ -229,6 +229,7 @@ LEAF(mips_cps_core_init) has_mt t0, 3f .set push + .set MIPS_ISA_LEVEL_RAW .set mt /* Only allow 1 TC per VPE to execute... */
@@ -346,11 +347,13 @@ LEAF(mips_cps_boot_vpes) jr ra nop +1: /* Enter VPE configuration state */ .set push + .set MIPS_ISA_LEVEL_RAW .set mt - -1: /* Enter VPE configuration state */ dvpe + .set pop + la t1, 1f jr.hb t1 nop
@@ -377,6 +380,10 @@ LEAF(mips_cps_boot_vpes) mtc0 t0, CP0_VPECONTROL ehb + .set push + .set MIPS_ISA_LEVEL_RAW + .set mt + /* Skip the VPE if its TC is not halted */ mftc0 t0, CP0_TCHALT beqz t0, 2f
@@ -435,6 +442,8 @@ LEAF(mips_cps_boot_vpes) ehb evpe + .set pop + /* Check whether this VPE is meant to be running */ li t0, 1 sll t0, t0, t9
@@ -449,7 +458,7 @@ LEAF(mips_cps_boot_vpes) 1: jr.hb t0 nop -2: .set pop +2: #endif /* CONFIG_MIPS_MT_SMP */
arch/mips/kernel/cpu-probe.c +54 -1
165 lines not on this page · raw message
arch/mips/kernel/genex.S +9 -6
@@ -360,12 +360,15 @@ NESTED(nmi_handler, PT_SIZE, sp) .set mips1 SET_HARDFLOAT cfc1 a1, fcr31 - li a2, ~(0x3f << 12) - and a2, a1 - ctc1 a2, fcr31 .set pop - TRACE_IRQS_ON - STI + CLI + TRACE_IRQS_OFF + .endm + + .macro __build_clear_msa_fpe + _cfcmsa a1, MSA_CSR + CLI + TRACE_IRQS_OFF .endm .macro __build_clear_ade
@@ -426,7 +429,7 @@ NESTED(nmi_handler, PT_SIZE, sp) BUILD_HANDLER cpu cpu sti silent /* #11 */ BUILD_HANDLER ov ov sti silent /* #12 */ BUILD_HANDLER tr tr sti silent /* #13 */ - BUILD_HANDLER msa_fpe msa_fpe sti silent /* #14 */ + BUILD_HANDLER msa_fpe msa_fpe msa_fpe silent /* #14 */ BUILD_HANDLER fpe fpe fpe silent /* #15 */ BUILD_HANDLER ftlb ftlb none silent /* #16 */ BUILD_HANDLER msa msa sti silent /* #21 */
arch/mips/kernel/ptrace.c +164 -33
280 lines not on this page · raw message
arch/mips/kernel/r2300_switch.S +2 -5
@@ -115,11 +115,9 @@ LEAF(_restore_fp) * the property that no matter whether considered as single or as double * precision represents signaling NANS. * - * We initialize fcr31 to rounding to nearest, no exceptions. + * The value to initialize fcr31 to comes in $a0. */ -#define FPU_DEFAULT 0x00000000 - .set push SET_HARDFLOAT
@@ -129,8 +127,7 @@ LEAF(_init_fpu) or t0, t1 mtc0 t0, CP0_STATUS - li t1, FPU_DEFAULT - ctc1 t1, fcr31 + ctc1 a0, fcr31 li t0, -1
arch/mips/kernel/r4k_switch.S +2 -5
@@ -163,11 +163,9 @@ LEAF(_init_msa_upper) * the property that no matter whether considered as single or as double * precision represents signaling NANS. * - * We initialize fcr31 to rounding to nearest, no exceptions. + * The value to initialize fcr31 to comes in $a0. */ -#define FPU_DEFAULT 0x00000000 - .set push SET_HARDFLOAT
@@ -178,8 +176,7 @@ LEAF(_init_fpu) mtc0 t0, CP0_STATUS enable_fpu_hazard - li t1, FPU_DEFAULT - ctc1 t1, fcr31 + ctc1 a0, fcr31 li t1, -1 # SNaN
arch/mips/kernel/traps.c +100 -53
225 lines not on this page · raw message
arch/mips/kernel/unaligned.c +2 -2
@@ -697,7 +697,7 @@ static void emulate_load_store_insn(struct pt_regs *regs,own_fpu (1 );/* Restore FPU state. */ /* Signal if something went wrong. */ -process_fpemu_return (res, fault_addr); +process_fpemu_return (res, fault_addr,0 );if (res ==0 )break ;
@@ -1129,7 +1129,7 @@ static void emulate_load_store_microMIPS(struct pt_regs *regs,own_fpu (1 );/* restore FPU state */ /* If something went wrong, signal */ -process_fpemu_return (res, fault_addr); +process_fpemu_return (res, fault_addr,0 );if (res ==0 ) goto success;
arch/mips/math-emu/cp1emu.c +6 -2
@@ -924,15 +924,19 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx,/* we only have one writable control reg */ if (MIPSInst_RD (ir) ==FPCREG_CSR ) { +u32 mask; +pr_debug ("%p gpr[%d]->csr=%08x\n" , (void *) (xcp->cp0_epc),MIPSInst_RT (ir), value);/* -* Don't write reserved bits, +* Preserve read-only bits, * and convert to ieee library modes */ - ctx->fcr31 = (value & ~(FPU_CSR_RSVD |FPU_CSR_RM )) | + mask = boot_cpu_data.fpu_msk31; + ctx->fcr31 = (value & ~(mask |FPU_CSR_RM )) | + (ctx->fcr31 & mask) |modeindex (value); }if ((ctx->fcr31 >>5 ) & ctx->fcr31 &FPU_CSR_ALL_E ) {
arch/mips/math-emu/ieee754.h +7 -5
@@ -195,15 +195,17 @@ static inline int ieee754dp_ge(union ieee754dp x, union ieee754dp y)* The control status register */ struct _ieee754_csr { - __BITFIELD_FIELD(unsigned pad0:7, - __BITFIELD_FIELD(unsigned nod:1, /* set 1 for no denormalised numbers */ - __BITFIELD_FIELD(unsigned c:1, /* condition */ - __BITFIELD_FIELD(unsigned pad1:5, + __BITFIELD_FIELD(unsigned fcc:7, /* condition[7:1] */ + __BITFIELD_FIELD(unsigned nod:1, /* set 1 for no denormals */ + __BITFIELD_FIELD(unsigned c:1, /* condition[0] */ + __BITFIELD_FIELD(unsigned pad0:3, + __BITFIELD_FIELD(unsigned abs2008:1, /* IEEE 754-2008 ABS/NEG.fmt */ + __BITFIELD_FIELD(unsigned nan2008:1, /* IEEE 754-2008 NaN mode */ __BITFIELD_FIELD(unsigned cx:6, /* exceptions this operation */ __BITFIELD_FIELD(unsigned mx:5, /* exception enable mask */ __BITFIELD_FIELD(unsigned sx:5, /* exceptions total */ __BITFIELD_FIELD(unsigned rm:2, /* current rounding mode */ - ;)))))))) + ;)))))))))) };#define ieee754_csr (*(struct _ieee754_csr *)(¤t->thread.fpu.fcr31))
arch/powerpc/kernel/setup-common.c +0 -11
@@ -216,14 +216,6 @@ static int show_cpuinfo(struct seq_file *m, void *v)unsigned short maj;unsigned short min; -/* We only show online cpus: disable preempt (overzealous, I -* knew) to prevent cpu going down. */ -preempt_disable (); -if (!cpu_online (cpu_id)) { -preempt_enable (); -return 0 ; - } -#ifdef CONFIG_SMP pvr =per_cpu (cpu_pvr, cpu_id);#else
@@ -328,9 +320,6 @@ static int show_cpuinfo(struct seq_file *m, void *v)#ifdef CONFIG_SMP seq_printf (m,"\n" );#endif - -preempt_enable (); -/* If this is the last cpu, print the summary */ if (cpumask_next (cpu_id, cpu_online_mask) >= nr_cpu_ids)show_cpuinfo_summary (m);
arch/powerpc/perf/core-book3s.c +6 -2
@@ -391,8 +391,12 @@ static __u64 power_pmu_bhrb_to(u64 addr)int ret;__u64 target; -if (is_kernel_addr (addr)) -return branch_target ((unsigned int *)addr); +if (is_kernel_addr (addr)) { +if (probe_kernel_read (&instr, (void *)addr,sizeof (instr))) +return 0 ; + +return branch_target (&instr); + }/* Userspace: need copy instruction here then translate it */ pagefault_disable ();
arch/s390/include/asm/switch_to.h +10 -14
@@ -117,21 +117,17 @@ static inline void restore_access_regs(unsigned int *acrs) asm volatile("lam 0,15,%0" : : "Q" (*(acrstype *)acrs)); } -#define switch_to (prev,next,last) do { \ - if (prev->mm) { \ - save_fp_ctl(&prev->thread.fp_regs.fpc); \ - save_fp_regs(prev->thread.fp_regs.fprs); \ - save_access_regs(&prev->thread.acrs[0]); \ - save_ri_cb(prev->thread.ri_cb); \ - } \ +#define switch_to (prev, next, last) do { \ + save_fp_ctl(&prev->thread.fp_regs.fpc); \ + save_fp_regs(prev->thread.fp_regs.fprs); \ + save_access_regs(&prev->thread.acrs[0]); \ + save_ri_cb(prev->thread.ri_cb); \ update_cr_regs(next); \ - if (next->mm) { \ - restore_fp_ctl(&next->thread.fp_regs.fpc); \ - restore_fp_regs(next->thread.fp_regs.fprs); \ - restore_access_regs(&next->thread.acrs[0]); \ - restore_ri_cb(next->thread.ri_cb, prev->thread.ri_cb); \ - } \ - prev = __switch_to(prev,next); \ + restore_fp_ctl(&next->thread.fp_regs.fpc); \ + restore_fp_regs(next->thread.fp_regs.fprs); \ + restore_access_regs(&next->thread.acrs[0]); \ + restore_ri_cb(next->thread.ri_cb, prev->thread.ri_cb); \ + prev = __switch_to(prev, next); \ } while (0)#endif /* __ASM_SWITCH_TO_H */
arch/s390/kernel/compat_linux.c +1 -0
@@ -263,6 +263,7 @@ COMPAT_SYSCALL_DEFINE2(s390_setgroups16, int, gidsetsize, u16 __user *, grouplisreturn retval; } +groups_sort (group_info); retval =set_current_groups (group_info);put_group_info (group_info);
arch/sh/boards/mach-se/770x/setup.c +20 -4
@@ -8,6 +8,7 @@*/ #include <linux/init.h> #include <linux/platform_device.h> +#include <linux/sh_eth.h> #include <mach-se/mach/se.h> #include <mach-se/mach/mrshpc.h> #include <asm/machvec.h>
@@ -114,13 +115,23 @@ static struct platform_device heartbeat_device = { #if defined(CONFIG_CPU_SUBTYPE_SH7710) ||\ defined(CONFIG_CPU_SUBTYPE_SH7712) /* SH771X Ethernet driver */ +static struct sh_eth_plat_data sh_eth_plat = { + .phy = PHY_ID, + .phy_interface = PHY_INTERFACE_MODE_MII, +}; + static struct resource sh_eth0_resources[] = { [0] = { .start = SH_ETH0_BASE, - .end = SH_ETH0_BASE + 0x1B8, + .end = SH_ETH0_BASE + 0x1B8 - 1, .flags = IORESOURCE_MEM, }, [1] = { + .start = SH_TSU_BASE, + .end = SH_TSU_BASE + 0x200 - 1, + .flags = IORESOURCE_MEM, + }, + [2] = { .start = SH_ETH0_IRQ, .end = SH_ETH0_IRQ, .flags = IORESOURCE_IRQ,
@@ -131,7 +142,7 @@ static struct platform_device sh_eth0_device = { .name = "sh771x-ether", .id = 0, .dev = { - .platform_data = PHY_ID, + .platform_data = &sh_eth_plat, }, .num_resources = ARRAY_SIZE(sh_eth0_resources), .resource = sh_eth0_resources,
@@ -140,10 +151,15 @@ static struct platform_device sh_eth0_device = {static struct resource sh_eth1_resources[] = { [0 ] = { .start =SH_ETH1_BASE , - .end =SH_ETH1_BASE +0x1B8 , + .end =SH_ETH1_BASE +0x1B8 -1 , .flags =IORESOURCE_MEM , }, [1 ] = { + .start =SH_TSU_BASE , + .end =SH_TSU_BASE +0x200 -1 , + .flags =IORESOURCE_MEM , + }, + [2 ] = { .start =SH_ETH1_IRQ , .end =SH_ETH1_IRQ , .flags =IORESOURCE_IRQ ,
@@ -154,7 +170,7 @@ static struct platform_device sh_eth1_device = { .name = "sh771x-ether", .id = 1, .dev = { - .platform_data = PHY_ID, + .platform_data = &sh_eth_plat, }, .num_resources = ARRAY_SIZE(sh_eth1_resources), .resource = sh_eth1_resources,
arch/sh/include/mach-se/mach/se.h +1 -0
@@ -99,6 +99,7 @@/* Base address */ #define SH_ETH0_BASE 0xA7000000#define SH_ETH1_BASE 0xA7000400 +#define SH_TSU_BASE 0xA7000800/* PHY ID */ #if defined(CONFIG_CPU_SUBTYPE_SH7710 )# define PHY_ID 0x00
arch/x86/include/asm/alternative.h +2 -2
@@ -124,7 +124,7 @@ static inline int alternatives_text_reserved(void *start, void *end)".popsection\n" \".pushsection .altinstr_replacement, \"ax\"\n" \ ALTINSTR_REPLACEMENT(newinstr, feature, 1) \ - ".popsection" + ".popsection\n"#define ALTERNATIVE_2 (oldinstr, newinstr1, feature1, newinstr2, feature2)\ OLDINSTR_2(oldinstr, 1, 2) \
@@ -135,7 +135,7 @@ static inline int alternatives_text_reserved(void *start, void *end)".pushsection .altinstr_replacement, \"ax\"\n" \ ALTINSTR_REPLACEMENT(newinstr1, feature1, 1) \ ALTINSTR_REPLACEMENT(newinstr2, feature2, 2) \ -".popsection" +".popsection\n" /* * This must be included *after* the definition of ALTERNATIVE due to
arch/x86/include/asm/kvm_host.h +2 -1
@@ -847,7 +847,8 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu, unsigned long cr2,static inline int emulate_instruction (struct kvm_vcpu *vcpu,int emulation_type) { -return x86_emulate_instruction (vcpu,0 , emulation_type,NULL ,0 ); +return x86_emulate_instruction (vcpu,0 , + emulation_type |EMULTYPE_NO_REEXECUTE ,NULL ,0 ); }void kvm_enable_efer_bits (u64 );
arch/x86/include/asm/traps.h +1 -0
@@ -91,6 +91,7 @@ dotraplinkage void do_simd_coprocessor_error(struct pt_regs *, long);#ifdef CONFIG_X86_32 dotraplinkage void do_iret_error(struct pt_regs *, long);#endif +dotraplinkage void do_mce(struct pt_regs *, long);static inline int get_si_code (unsigned long condition) {
arch/x86/kernel/cpu/mcheck/mce.c +6 -0
@@ -46,6 +46,7 @@#include <asm/tlbflush.h> #include <asm/mce.h> #include <asm/msr.h> +#include <asm/traps.h> #include "mce-internal.h"
@@ -1693,6 +1694,11 @@ static void unexpected_machine_check(struct pt_regs *regs, long error_code)void (*machine_check_vector)(struct pt_regs *,long error_code) = unexpected_machine_check; +dotraplinkage void do_mce(struct pt_regs *regs, long error_code) +{ +machine_check_vector (regs, error_code); +} +/* * Called for each booted CPU to set up machine checks. * Must be called with preempt off:
arch/x86/kernel/cpu/microcode/intel.c +27 -2
@@ -87,6 +87,9 @@ MODULE_DESCRIPTION("Microcode Update Driver");MODULE_AUTHOR ("Tigran Aivazian <[email protected]>" );MODULE_LICENSE ("GPL" ); +/* last level cache size per core */ +static int llc_size_per_core; +static int collect_cpu_info (int cpu_num,struct cpu_signature *csig) {struct cpuinfo_x86 *c = &cpu_data (cpu_num);
@@ -271,8 +274,19 @@ static bool is_blacklisted(unsigned int cpu) {struct cpuinfo_x86 *c = &cpu_data (cpu); -if (c->x86 ==6 && c->x86_model ==0x4F ) { -pr_err_once ("late loading on model 79 is disabled.\n" ); +/* +* Late loading on model 79 with microcode revision less than 0x0b000021 +* and LLC size per core bigger than 2.5MB may result in a system hang. +* This behavior is documented in item BDF90, #334165 (Intel Xeon +* Processor E7-8800/4800 v4 Product Family). +*/ +if (c->x86 ==6 && + c->x86_model ==0x4F && + c->x86_mask ==0x01 && + llc_size_per_core >2621440 && + c->microcode <0x0b000021 ) { +pr_err_once ("Erratum BDF90: late loading with revision < 0x0b000021 (0x%x) disabled.\n" , c->microcode); +pr_err_once ("Please consider either early loading through initrd/built-in or a potential BIOS update.\n" );return true; }
@@ -336,6 +350,15 @@ static struct microcode_ops microcode_intel_ops = { .microcode_fini_cpu = microcode_fini_cpu, }; +static int __init calc_llc_size_per_core (struct cpuinfo_x86 *c) +{ +u64 llc_size = c->x86_cache_size *1024 ; + +do_div (llc_size, c->x86_max_cores); + +return (int )llc_size; +} +struct microcode_ops *__init init_intel_microcode (void ) {struct cpuinfo_x86 *c = &cpu_data (0 );
@@ -346,6 +369,8 @@ struct microcode_ops * __init init_intel_microcode(void)return NULL ; } + llc_size_per_core =calc_llc_size_per_core (c); +return µcode_intel_ops; }
arch/x86/kernel/entry_64.S +1 -1
@@ -1320,7 +1320,7 @@ trace_idtentry page_fault do_page_fault has_error_code=1 idtentry async_page_fault do_async_page_fault has_error_code=1 #endif #ifdef CONFIG_X86_MCE -idtentry machine_check has_error_code=0 paranoid=1 do_sym=*machine_check_vector(%rip) +idtentry machine_check do_mce has_error_code=0 paranoid=1 #endif /*
arch/x86/kvm/svm.c +2 -0
@@ -1776,6 +1776,8 @@ static int ud_interception(struct vcpu_svm *svm)int er; er =emulate_instruction (&svm->vcpu,EMULTYPE_TRAP_UD ); +if (er ==EMULATE_USER_EXIT ) +return 0 ;if (er !=EMULATE_DONE )kvm_queue_exception (&svm->vcpu,UD_VECTOR );return 1 ;
arch/x86/kvm/vmx.c +14 -2
@@ -698,8 +698,18 @@ static const int max_vmcs_field = ARRAY_SIZE(vmcs_field_to_offset_table);static inline short vmcs_field_to_offset (unsigned long field) { -if (field >= max_vmcs_field || vmcs_field_to_offset_table[field] ==0 ) +if (field >= max_vmcs_field)return -1 ; + +/* +* FIXME: Mitigation for CVE-2017-5753. To be replaced with a +* generic mechanism. +*/ + asm("lfence" ); + +if (vmcs_field_to_offset_table[field] ==0 ) +return -1 ; +return vmcs_field_to_offset_table[field]; }
@@ -4853,6 +4863,8 @@ static int handle_exception(struct kvm_vcpu *vcpu)if (is_invalid_opcode (intr_info)) { er =emulate_instruction (vcpu,EMULTYPE_TRAP_UD ); +if (er ==EMULATE_USER_EXIT ) +return 0 ;if (er !=EMULATE_DONE )kvm_queue_exception (vcpu,UD_VECTOR );return 1 ;
@@ -5657,7 +5669,7 @@ static int handle_invalid_guest_state(struct kvm_vcpu *vcpu)if (test_bit (KVM_REQ_EVENT , &vcpu->requests))return 1 ; - err =emulate_instruction (vcpu,EMULTYPE_NO_REEXECUTE ); + err =emulate_instruction (vcpu,0 );if (err ==EMULATE_USER_EXIT ) { ++vcpu->stat.mmio_exits;
arch/x86/kvm/x86.c +28 -2
@@ -5009,7 +5009,7 @@ static int handle_emulation_failure(struct kvm_vcpu *vcpu) vcpu->run->exit_reason =KVM_EXIT_INTERNAL_ERROR ; vcpu->run->internal.suberror =KVM_INTERNAL_ERROR_EMULATION ; vcpu->run->internal.ndata =0 ; - r =EMULATE_FAIL ; + r =EMULATE_USER_EXIT ; }kvm_queue_exception (vcpu,UD_VECTOR );
@@ -6471,7 +6471,7 @@ int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs)#endif kvm_rip_write (vcpu, regs->rip); -kvm_set_rflags (vcpu, regs->rflags); +kvm_set_rflags (vcpu, regs->rflags |X86_EFLAGS_FIXED ); vcpu->arch.exception.pending = false;
@@ -6579,6 +6579,29 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int idt_index, }EXPORT_SYMBOL_GPL (kvm_task_switch); +int kvm_valid_sregs (struct kvm_vcpu *vcpu,struct kvm_sregs *sregs) +{ +if ((sregs->efer &EFER_LME ) && (sregs->cr0 &X86_CR0_PG )) { +/* +* When EFER.LME and CR0.PG are set, the processor is in +* 64-bit mode (though maybe in a 32-bit code segment). +* CR4.PAE and EFER.LMA must be set. +*/ +if (!(sregs->cr4 &X86_CR4_PAE ) + || !(sregs->efer &EFER_LMA )) +return -EINVAL ; + }else { +/* +* Not in 64-bit mode: EFER.LMA is clear and the code +* segment cannot be 64-bit. +*/ +if (sregs->efer &EFER_LMA || sregs->cs.l) +return -EINVAL ; + } + +return 0 ; +} +int kvm_arch_vcpu_ioctl_set_sregs (struct kvm_vcpu *vcpu,struct kvm_sregs *sregs) {
@@ -6590,6 +6613,9 @@ int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu,if (!guest_cpuid_has_xsave (vcpu) && (sregs->cr4 &X86_CR4_OSXSAVE ))return -EINVAL ; +if (kvm_valid_sregs (vcpu, sregs)) +return -EINVAL ; + dt.size = sregs->idt.limit; dt.address = sregs->idt.base; kvm_x86_ops->set_idt (vcpu, &dt);
arch/x86/pci/broadcom_bus.c +1 -1
@@ -97,7 +97,7 @@ static int __init broadcom_postcore_init(void)* We should get host bridge information from ACPI unless the BIOS * doesn't support it. */ -if (acpi_os_get_root_pointer ()) +if (!acpi_disabled &&acpi_os_get_root_pointer ())return 0 ;#endif
block/blk-flush.c +6 -0
@@ -73,6 +73,7 @@#include "blk.h" #include "blk-mq.h" +#include "blk-mq-tag.h" /* FLUSH/FUA sequences */ enum {
@@ -224,7 +225,12 @@ static void flush_end_io(struct request *flush_rq, int error)unsigned long flags =0 ;if (q->mq_ops) { +struct blk_mq_hw_ctx *hctx; + +/* release the tag's ownership to the req cloned from */ spin_lock_irqsave (&q->mq_flush_lock, flags); + hctx = q->mq_ops->map_queue (q, q->flush_rq->mq_ctx->cpu); +blk_mq_tag_set_rq (hctx, q->flush_rq->tag, q->orig_rq); q->flush_rq->tag =-1 ; }
block/blk-mq-tag.h +12 -0
@@ -85,4 +85,16 @@ static inline void blk_mq_tag_idle(struct blk_mq_hw_ctx *hctx) __blk_mq_tag_idle(hctx); } +/* +* This helper should only be used for flush request to share tag +* with the request cloned from, and both the two requests can't be +* in flight at the same time. The caller has to make sure the tag +* can't be freed. +*/ +static inline void blk_mq_tag_set_rq (struct blk_mq_hw_ctx *hctx, +unsigned int tag,struct request *rq) +{ + hctx->tags->rqs[tag] = rq; +} +#endif
block/blk-mq.c +4 -12
@@ -310,6 +310,9 @@ void blk_mq_clone_flush_request(struct request *flush_rq, flush_rq->tag = orig_rq->tag;memcpy (blk_mq_rq_to_pdu (flush_rq),blk_mq_rq_to_pdu (orig_rq), hctx->cmd_size); + orig_rq->q->orig_rq = orig_rq; + +blk_mq_tag_set_rq (hctx, orig_rq->tag, flush_rq); }inline void __blk_mq_end_io (struct request *rq,int error)
@@ -520,20 +523,9 @@ void blk_mq_kick_requeue_list(struct request_queue *q) }EXPORT_SYMBOL (blk_mq_kick_requeue_list); -static inline bool is_flush_request (struct request *rq,unsigned int tag) -{ -return ((rq->cmd_flags &REQ_FLUSH_SEQ ) && - rq->q->flush_rq->tag == tag); -} -struct request *blk_mq_tag_to_rq (struct blk_mq_tags *tags,unsigned int tag) { -struct request *rq = tags->rqs[tag]; - -if (!is_flush_request (rq, tag)) -return rq; - -return rq->q->flush_rq; +return tags->rqs[tag]; }EXPORT_SYMBOL (blk_mq_tag_to_rq);
crypto/algapi.c +12 -0
@@ -147,6 +147,18 @@ void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, spawn->alg =NULL ; spawns = &inst->alg.cra_users; + +/* +* We may encounter an unregistered instance here, since +* an instance's spawns are set up prior to the instance +* being registered. An unregistered instance will have +* NULL ->cra_users.next, since ->cra_users isn't +* properly initialized until registration. But an +* unregistered instance cannot have any users, so treat +* it the same as ->cra_users being empty. +*/ +if (spawns->next ==NULL ) +break ; } }while ((spawns =crypto_more_spawns (alg, &stack, &top, &secondary_spawns)));
crypto/asymmetric_keys/x509_cert_parser.c +2 -0
@@ -348,6 +348,8 @@ int x509_extract_key_data(void *context, size_t hdrlen, ctx->cert->pub->pkey_algo =PKEY_ALGO_RSA ;/* Discard the BIT STRING metadata */ +if (vlen <1 || *(const u8 *)value !=0 ) +return -EBADMSG ; ctx->key = value +1 ; ctx->key_size = vlen -1 ;return 0 ;
drivers/acpi/apei/erst.c +1 -1
@@ -1023,7 +1023,7 @@ static ssize_t erst_reader(u64 *id, enum pstore_type_id *type, int *count,/* The record may be cleared by others, try read next record */ if (len == -ENOENT ) goto skip; -else if (len <sizeof (*rcd)) { +else if (len <0 || len <sizeof (*rcd)) { rc = -EIO ; goto out; }
drivers/acpi/sbshc.c +2 -2
@@ -287,8 +287,8 @@ static int acpi_smbus_hc_add(struct acpi_device *device) device->driver_data = hc;acpi_ec_add_query_handler (hc->ec, hc->query_bit,NULL , smbus_alarm, hc); - printk(KERN_INFO PREFIX "SBS HC: EC = 0x%p, offset = 0x%0x, query_bit = 0x%0x\n", - hc->ec, hc->offset, hc->query_bit); +dev_info (&device->dev,"SBS HC: offset = 0x%0x, query_bit = 0x%0x\n" , + hc->offset, hc->query_bit);return 0 ; }
drivers/base/isa.c +5 -5
@@ -39,7 +39,7 @@ static int isa_bus_probe(struct device *dev) {struct isa_driver *isa_driver = dev->platform_data; -if (isa_driver->probe) +if (isa_driver && isa_driver->probe)return isa_driver->probe (dev,to_isa_dev (dev)->id);return 0 ;
@@ -49,7 +49,7 @@ static int isa_bus_remove(struct device *dev) {struct isa_driver *isa_driver = dev->platform_data; -if (isa_driver->remove) +if (isa_driver && isa_driver->remove)return isa_driver->remove (dev,to_isa_dev (dev)->id);return 0 ;
@@ -59,7 +59,7 @@ static void isa_bus_shutdown(struct device *dev) {struct isa_driver *isa_driver = dev->platform_data; -if (isa_driver->shutdown) +if (isa_driver && isa_driver->shutdown) isa_driver->shutdown (dev,to_isa_dev (dev)->id); }
@@ -67,7 +67,7 @@ static int isa_bus_suspend(struct device *dev, pm_message_t state) {struct isa_driver *isa_driver = dev->platform_data; -if (isa_driver->suspend) +if (isa_driver && isa_driver->suspend)return isa_driver->suspend (dev,to_isa_dev (dev)->id, state);return 0 ;
@@ -77,7 +77,7 @@ static int isa_bus_resume(struct device *dev) {struct isa_driver *isa_driver = dev->platform_data; -if (isa_driver->resume) +if (isa_driver && isa_driver->resume)return isa_driver->resume (dev,to_isa_dev (dev)->id);return 0 ;
drivers/crypto/n2_core.c +3 -0
@@ -1644,6 +1644,7 @@ static int queue_cache_init(void) CWQ_ENTRY_SIZE, 0, NULL);if (!queue_cache[HV_NCS_QTYPE_CWQ -1 ]) {kmem_cache_destroy (queue_cache[HV_NCS_QTYPE_MAU -1 ]); + queue_cache[HV_NCS_QTYPE_MAU -1 ] =NULL ;return -ENOMEM ; }return 0 ;
@@ -1653,6 +1654,8 @@ static void queue_cache_destroy(void) {kmem_cache_destroy (queue_cache[HV_NCS_QTYPE_MAU -1 ]);kmem_cache_destroy (queue_cache[HV_NCS_QTYPE_CWQ -1 ]); + queue_cache[HV_NCS_QTYPE_MAU -1 ] =NULL ; + queue_cache[HV_NCS_QTYPE_CWQ -1 ] =NULL ; }static int spu_queue_register (struct spu_queue *p,unsigned long q_type)
drivers/dma/dma-jz4740.c +3 -1
@@ -574,7 +574,7 @@ static int jz4740_dma_probe(struct platform_device *pdev) ret =dma_async_device_register (dd);if (ret) -return ret; + goto err_clk; irq =platform_get_irq (pdev,0 ); ret =request_irq (irq, jz4740_dma_irq,0 ,dev_name (&pdev->dev), dmadev);
@@ -587,6 +587,8 @@ static int jz4740_dma_probe(struct platform_device *pdev) err_unregister:dma_async_device_unregister (dd); +err_clk: +clk_disable_unprepare (dmadev->clk);return ret; }
drivers/dma/dmatest.c +31 -23
112 lines not on this page · raw message
drivers/firmware/efi/efi.c +1 -2
@@ -72,8 +72,7 @@ static ssize_t systab_show(struct kobject *kobj,return str - buf; } -static struct kobj_attribute efi_attr_systab = -__ATTR (systab,0400 , systab_show,NULL ); +static struct kobj_attribute efi_attr_systab =__ATTR_RO_MODE (systab,0400 );#define EFI_FIELD (var) efi.var
drivers/firmware/efi/runtime-map.c +5 -5
@@ -67,11 +67,11 @@ static ssize_t map_attr_show(struct kobject *kobj, struct attribute *attr,return map_attr->show (entry, buf); } -static struct map_attribute map_type_attr =__ATTR_RO (type); -static struct map_attribute map_phys_addr_attr =__ATTR_RO (phys_addr); -static struct map_attribute map_virt_addr_attr =__ATTR_RO (virt_addr); -static struct map_attribute map_num_pages_attr =__ATTR_RO (num_pages); -static struct map_attribute map_attribute_attr =__ATTR_RO (attribute); +static struct map_attribute map_type_attr =__ATTR_RO_MODE (type,0400 ); +static struct map_attribute map_phys_addr_attr =__ATTR_RO_MODE (phys_addr,0400 ); +static struct map_attribute map_virt_addr_attr =__ATTR_RO_MODE (virt_addr,0400 ); +static struct map_attribute map_num_pages_attr =__ATTR_RO_MODE (num_pages,0400 ); +static struct map_attribute map_attribute_attr =__ATTR_RO_MODE (attribute,0400 );/* * These are default attributes that are added for every memmap entry.
drivers/gpu/drm/i915/intel_i2c.c +3 -1
@@ -448,7 +448,9 @@ static bool gmbus_is_index_read(struct i2c_msg *msgs, int i, int num) { return (i + 1 < num && - !(msgs[i].flags & I2C_M_RD) && msgs[i].len <= 2 && + msgs[i].addr == msgs[i + 1].addr && + !(msgs[i].flags & I2C_M_RD) && + (msgs[i].len == 1 || msgs[i].len == 2) && (msgs[i + 1].flags & I2C_M_RD)); }
drivers/hwmon/pmbus/pmbus_core.c +12 -9
@@ -20,6 +20,7 @@*/ #include <linux/kernel.h> +#include <linux/math64.h> #include <linux/module.h> #include <linux/init.h> #include <linux/err.h>
@@ -443,8 +444,8 @@ static long pmbus_reg2data_linear(struct pmbus_data *data,static long pmbus_reg2data_direct (struct pmbus_data *data,struct pmbus_sensor *sensor) { -long val = (s16 ) sensor->data; -long m, b,R ; +s64 b, val = (s16 )sensor->data; +s32 m,R ; m = data->info->m[sensor->class]; b = data->info->b[sensor->class];
@@ -472,11 +473,12 @@ static long pmbus_reg2data_direct(struct pmbus_data *data,R --; }while (R <0 ) { - val =DIV_ROUND_CLOSEST (val,10 ); + val =div_s64 (val +5LL ,10L );/* round closest */ R ++; } -return (val - b) / m; + val =div_s64 (val - b, m); +return clamp_val (val,LONG_MIN ,LONG_MAX ); }/*
@@ -588,7 +590,8 @@ static u16 pmbus_data2reg_linear(struct pmbus_data *data,static u16 pmbus_data2reg_direct (struct pmbus_data *data,struct pmbus_sensor *sensor,long val) { -long m, b,R ; +s64 b, val64 = val; +s32 m,R ; m = data->info->m[sensor->class]; b = data->info->b[sensor->class];
@@ -605,18 +608,18 @@ static u16 pmbus_data2reg_direct(struct pmbus_data *data,R -=3 ;/* Adjust R and b for data in milli-units */ b *=1000 ; } - val = val * m + b; + val64 = val64 * m + b;while (R >0 ) { - val *=10 ; + val64 *=10 ;R --; }while (R <0 ) { - val =DIV_ROUND_CLOSEST (val,10 ); + val64 =div_s64 (val64 +5LL ,10L );/* round closest */ R ++; } -return val; +return (u16 )clamp_val (val64,S16_MIN ,S16_MAX ); } static u16 pmbus_data2reg_vid(struct pmbus_data *data,
drivers/i2c/i2c-core.c +11 -6
@@ -740,6 +740,10 @@ EXPORT_SYMBOL_GPL(i2c_new_device);*/ void i2c_unregister_device (struct i2c_client *client) { +if (client->dev.of_node) { +of_node_put (client->dev.of_node); + } +device_unregister (&client->dev); }EXPORT_SYMBOL_GPL (i2c_unregister_device);
@@ -2477,16 +2481,17 @@ static s32 i2c_smbus_xfer_emulated(struct i2c_adapter *adapter, u16 addr,the underlying bus driver */ break ;case I2C_SMBUS_I2C_BLOCK_DATA : +if (data->block[0 ] >I2C_SMBUS_BLOCK_MAX ) { +dev_err (&adapter->dev,"Invalid block %s size %d\n" , + read_write ==I2C_SMBUS_READ ?"read" :"write" , + data->block[0 ]); +return -EINVAL ; + } +if (read_write ==I2C_SMBUS_READ ) { msg[1 ].len = data->block[0 ]; }else { msg[0 ].len = data->block[0 ] +1 ; -if (msg[0 ].len >I2C_SMBUS_BLOCK_MAX +1 ) { -dev_err (&adapter->dev, -"Invalid block write size %d\n" , - data->block[0 ]); -return -EINVAL ; - }for (i =1 ; i <= data->block[0 ]; i++) msgbuf0[i] = data->block[i]; }
drivers/infiniband/hw/cxgb4/cq.c +3 -3
@@ -574,10 +574,10 @@ static int poll_cq(struct t4_wq *wq, struct t4_cq *cq, struct t4_cqe *cqe, ret = -EAGAIN ; goto skip_cqe; } -if (unlikely ((CQE_WRID_MSN (hw_cqe) != (wq->rq.msn)))) { +if (unlikely (!CQE_STATUS (hw_cqe) && +CQE_WRID_MSN (hw_cqe) != wq->rq.msn)) {t4_set_wq_in_error (wq); - hw_cqe->header |=htonl (V_CQE_STATUS (T4_ERR_MSN )); - goto proc_cqe; + hw_cqe->header |=cpu_to_be32 (V_CQE_STATUS (T4_ERR_MSN )); } goto proc_cqe; }
drivers/infiniband/ulp/ipoib/ipoib_main.c +18 -7
@@ -615,8 +615,8 @@ static int path_rec_start(struct net_device *dev,return 0 ; } -static void neigh_add_path (struct sk_buff *skb,u8 *daddr, -struct net_device *dev) +static struct ipoib_neigh *neigh_add_path (struct sk_buff *skb,u8 *daddr, +struct net_device *dev) {struct ipoib_dev_priv *priv =netdev_priv (dev);struct ipoib_path *path;
@@ -629,7 +629,15 @@ static void neigh_add_path(struct sk_buff *skb, u8 *daddr,spin_unlock_irqrestore (&priv->lock, flags); ++dev->stats.tx_dropped;dev_kfree_skb_any (skb); -return ; +return NULL ; + } + +/* To avoid race condition, make sure that the +* neigh will be added only once. +*/ +if (unlikely (!list_empty (&neigh->list))) { +spin_unlock_irqrestore (&priv->lock, flags); +return neigh; } path =__path_find (dev, daddr +4 );
@@ -665,7 +673,7 @@ static void neigh_add_path(struct sk_buff *skb, u8 *daddr,spin_unlock_irqrestore (&priv->lock, flags);ipoib_send (dev, skb, path->ah,IPOIB_QPN (daddr));ipoib_neigh_put (neigh); -return ; +return NULL ; } }else { neigh->ah =NULL ;
@@ -678,7 +686,7 @@ static void neigh_add_path(struct sk_buff *skb, u8 *daddr,spin_unlock_irqrestore (&priv->lock, flags);ipoib_neigh_put (neigh); -return ; +return NULL ; err_path:ipoib_neigh_free (neigh);
@@ -688,6 +696,8 @@ static void neigh_add_path(struct sk_buff *skb, u8 *daddr,spin_unlock_irqrestore (&priv->lock, flags);ipoib_neigh_put (neigh); + +return NULL ; } static void unicast_arp_send(struct sk_buff *skb, struct net_device *dev,
@@ -784,8 +794,9 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)case htons (ETH_P_TIPC ): neigh =ipoib_neigh_get (dev, cb->hwaddr);if (unlikely (!neigh)) { -neigh_add_path (skb, cb->hwaddr, dev); -return NETDEV_TX_OK ; + neigh =neigh_add_path (skb, cb->hwaddr, dev); +if (likely (!neigh)) +return NETDEV_TX_OK ; }break ;case htons (ETH_P_ARP ):
drivers/infiniband/ulp/ipoib/ipoib_multicast.c +4 -1
@@ -728,7 +728,10 @@ void ipoib_mcast_send(struct net_device *dev, u8 *daddr, struct sk_buff *skb)spin_lock_irqsave (&priv->lock, flags);if (!neigh) { neigh =ipoib_neigh_alloc (daddr, dev); -if (neigh) { +/* Make sure that the neigh will be added only +* once to mcast list. +*/ +if (neigh &&list_empty (&neigh->list)) {kref_get (&mcast->ah->ref); neigh->ah = mcast->ah;list_add_tail (&neigh->list, &mcast->neigh_list);
drivers/infiniband/ulp/srpt/ib_srpt.c +1 -2
@@ -958,8 +958,7 @@ static int srpt_init_ch_qp(struct srpt_rdma_ch *ch, struct ib_qp *qp)return -ENOMEM ; attr->qp_state =IB_QPS_INIT ; - attr->qp_access_flags =IB_ACCESS_LOCAL_WRITE |IB_ACCESS_REMOTE_READ | -IB_ACCESS_REMOTE_WRITE ; + attr->qp_access_flags =IB_ACCESS_LOCAL_WRITE ; attr->port_num = ch->sport->port; attr->pkey_index =0 ;
drivers/input/misc/twl4030-vibra.c +5 -2
@@ -180,12 +180,15 @@ static SIMPLE_DEV_PM_OPS(twl4030_vibra_pm_ops, twl4030_vibra_suspend, twl4030_vibra_resume);static bool twl4030_vibra_check_coexist (struct twl4030_vibra_data *pdata, -struct device_node *node) +struct device_node *parent) { +struct device_node *node; +if (pdata && pdata->coexist)return true; -if (of_find_node_by_name (node,"codec" )) { + node =of_get_child_by_name (parent,"codec" ); +if (node) {of_node_put (node);return true; }
drivers/input/misc/twl6040-vibra.c +1 -1
@@ -264,7 +264,7 @@ static int twl6040_vibra_probe(struct platform_device *pdev)int vddvibr_uV =0 ;int error; - twl6040_core_node =of_find_node_by_name (twl6040_core_dev->of_node, + twl6040_core_node =of_get_child_by_name (twl6040_core_dev->of_node,"vibra" );if (!twl6040_core_node) {dev_err (&pdev->dev,"parent of node is missing?\n" );
drivers/input/mouse/elantech.c +1 -1
@@ -1481,7 +1481,7 @@ static int elantech_set_properties(struct elantech_data *etd)case 5 : etd->hw_version =3 ;break ; - case 6 ... 14: + case 6 ... 15: etd->hw_version =4 ;break ;default :
drivers/input/mouse/trackpoint.c +5 -2
@@ -377,8 +377,11 @@ int trackpoint_detect(struct psmouse *psmouse, bool set_properties)return 0 ;if (trackpoint_read (&psmouse->ps2dev,TP_EXT_BTN , &button_info)) { -psmouse_warn (psmouse,"failed to get extended button data\n" ); - button_info =0 ; +psmouse_warn (psmouse,"failed to get extended button data, assuming 3 buttons\n" ); + button_info =0x33 ; + }else if (!button_info) { +psmouse_warn (psmouse,"got 0 in extended button data, assuming 3 buttons\n" ); + button_info =0x33 ; } psmouse->private =kzalloc (sizeof (struct trackpoint_data ),GFP_KERNEL );
drivers/input/touchscreen/88pm860x-ts.c +12 -4
@@ -126,7 +126,7 @@ static int pm860x_touch_dt_init(struct platform_device *pdev,int data, n, ret;if (!np)return -ENODEV ; - np =of_find_node_by_name (np,"touch" ); + np =of_get_child_by_name (np,"touch" );if (!np) {dev_err (&pdev->dev,"Can't find touch node\n" );return -EINVAL ;
@@ -144,13 +144,13 @@ static int pm860x_touch_dt_init(struct platform_device *pdev,if (data) { ret =pm860x_reg_write (i2c,PM8607_GPADC_MISC1 , data);if (ret <0 ) -return -EINVAL ; + goto err_put_node; }/* set tsi prebias time */ if (!of_property_read_u32 (np,"marvell,88pm860x-tsi-prebias" , &data)) { ret =pm860x_reg_write (i2c,PM8607_TSI_PREBIAS , data);if (ret <0 ) -return -EINVAL ; + goto err_put_node; }/* set prebias & prechg time of pen detect */ data =0 ;
@@ -161,10 +161,18 @@ static int pm860x_touch_dt_init(struct platform_device *pdev,if (data) { ret =pm860x_reg_write (i2c,PM8607_PD_PREBIAS , data);if (ret <0 ) -return -EINVAL ; + goto err_put_node; }of_property_read_u32 (np,"marvell,88pm860x-resistor-X" , res_x); + +of_node_put (np); +return 0 ; + +err_put_node: +of_node_put (np); + + return -EINVAL; }#else #define pm860x_touch_dt_init (x, y, z) (-1)
drivers/iommu/intel-iommu.c +5 -3
@@ -2008,10 +2008,12 @@ static int __domain_mapping(struct dmar_domain *domain, unsigned long iov_pfn,uint64_t tmp;if (!sg_res) { +unsigned int pgoff = sg->offset & ~PAGE_MASK ; + sg_res =aligned_nrpages (sg->offset, sg->length); - sg->dma_address = ((dma_addr_t )iov_pfn <<VTD_PAGE_SHIFT ) + sg->offset; + sg->dma_address = ((dma_addr_t )iov_pfn <<VTD_PAGE_SHIFT ) + pgoff; sg->dma_length = sg->length; - pteval =page_to_phys (sg_page (sg)) | prot; + pteval = (sg_phys (sg) - pgoff) | prot; phys_pfn = pteval >>VTD_PAGE_SHIFT ; }
@@ -3345,7 +3347,7 @@ static int intel_nontranslate_map_sg(struct device *hddev,for_each_sg (sglist, sg, nelems, i) {BUG_ON (!sg_page (sg)); - sg->dma_address =page_to_phys (sg_page (sg)) + sg->offset; + sg->dma_address =sg_phys (sg); sg->dma_length = sg->length; }return nelems;
drivers/md/bcache/request.c +6 -7
@@ -698,16 +698,15 @@ static void cached_dev_read_error(struct closure *cl) { struct search *s = container_of(cl, struct search, cl);struct bio *bio = &s->bio.bio; - struct cached_dev *dc = container_of(s->d, struct cached_dev, disk);/* -* If cache device is dirty (dc->has_dirty is non-zero), then -* recovery a failed read request from cached device may get a -* stale data back. So read failure recovery is only permitted -* when cache device is clean. +* If read request hit dirty data (s->read_dirty_data is true), +* then recovery a failed read request from cached device may +* get a stale data back. So read failure recovery is only +* permitted when read request hit clean data in cache device, +* or when cache read race happened. */ -if (s->recoverable && - (dc && !atomic_read (&dc->has_dirty))) { +if (s->recoverable && !s->read_dirty_data) {/* Retry from the backing device: */ trace_bcache_read_retry (s->orig_bio);
drivers/md/dm-cache-target.c +6 -6
@@ -3108,18 +3108,18 @@ static int __init dm_cache_init(void) {int r; - r =dm_register_target (&cache_target); -if (r) { -DMERR ("cache target registration failed: %d" , r); -return r; - } - migration_cache =KMEM_CACHE (dm_cache_migration,0 );if (!migration_cache) {dm_unregister_target (&cache_target);return -ENOMEM ; } + r =dm_register_target (&cache_target); +if (r) { +DMERR ("cache target registration failed: %d" , r); +return r; + } +return 0 ; }
drivers/md/dm-mpath.c +20 -14
@@ -1688,19 +1688,11 @@ static int __init dm_multipath_init(void)if (!_mpio_cache)return -ENOMEM ; - r =dm_register_target (&multipath_target); -if (r <0 ) { -DMERR ("register failed %d" , r); -kmem_cache_destroy (_mpio_cache); -return -EINVAL ; - } - kmultipathd =alloc_workqueue ("kmpathd" ,WQ_MEM_RECLAIM ,0 );if (!kmultipathd) {DMERR ("failed to create workqueue kmpathd" ); -dm_unregister_target (&multipath_target); -kmem_cache_destroy (_mpio_cache); -return -ENOMEM ; + r = -ENOMEM ; + goto bad_alloc_kmultipathd; }/*
@@ -1713,16 +1705,30 @@ static int __init dm_multipath_init(void) WQ_MEM_RECLAIM);if (!kmpath_handlerd) {DMERR ("failed to create workqueue kmpath_handlerd" ); -destroy_workqueue (kmultipathd); -dm_unregister_target (&multipath_target); -kmem_cache_destroy (_mpio_cache); -return -ENOMEM ; + r = -ENOMEM ; + goto bad_alloc_kmpath_handlerd; + } + + r =dm_register_target (&multipath_target); +if (r <0 ) { +DMERR ("register failed %d" , r); + r = -EINVAL ; + goto bad_register_target; }DMINFO ("version %u.%u.%u loaded" , multipath_target.version[0 ], multipath_target.version[1 ], multipath_target.version[2 ]); +return 0 ; + +bad_register_target: +destroy_workqueue (kmpath_handlerd); +bad_alloc_kmpath_handlerd: +destroy_workqueue (kmultipathd); +bad_alloc_kmultipathd: +kmem_cache_destroy (_mpio_cache); +return r; }
drivers/md/dm-snap.c +24 -24
67 lines not on this page · raw message
drivers/md/dm-thin-metadata.c +5 -1
@@ -81,10 +81,14 @@#define SECTOR_TO_BLOCK_SHIFT 3/* +* For btree insert: * 3 for btree insert + * 2 for btree lookup used within space map +* For btree remove: +* 2 for shadow spine + +* 4 for rebalance 3 child node */ -#define THIN_MAX_CONCURRENT_LOCKS 5 +#define THIN_MAX_CONCURRENT_LOCKS 6/* This should be plenty */ #define SPACE_MAP_ROOT_SIZE 128
drivers/md/dm-thin.c +10 -12
@@ -3521,30 +3521,28 @@ static struct target_type thin_target = {static int __init dm_thin_init (void ) { -int r; +int r = -ENOMEM ;pool_table_init (); + _new_mapping_cache =KMEM_CACHE (dm_thin_new_mapping,0 ); +if (!_new_mapping_cache) +return r; + r =dm_register_target (&thin_target);if (r) -return r; + goto bad_new_mapping_cache; r =dm_register_target (&pool_target);if (r) - goto bad_pool_target; - - r = -ENOMEM ; - - _new_mapping_cache =KMEM_CACHE (dm_thin_new_mapping,0 ); -if (!_new_mapping_cache) - goto bad_new_mapping_cache; + goto bad_thin_target;return 0 ; -bad_new_mapping_cache: -dm_unregister_target (&pool_target); -bad_pool_target: +bad_thin_target:dm_unregister_target (&thin_target); +bad_new_mapping_cache: +kmem_cache_destroy (_new_mapping_cache);return r; }
drivers/md/persistent-data/dm-btree.c +2 -17
@@ -588,23 +588,8 @@ static int btree_split_beneath(struct shadow_spine *s, uint64_t key) pn->keys[1 ] = rn->keys[0 ];memcpy_disk (value_ptr (pn,1 ), &val,sizeof (__le64)); -/* -* rejig the spine. This is ugly, since it knows too -* much about the spine -*/ -if (s->nodes[0 ] != new_parent) { -unlock_block (s->info, s->nodes[0 ]); - s->nodes[0 ] = new_parent; - } -if (key <le64_to_cpu (rn->keys[0 ])) { -unlock_block (s->info, right); - s->nodes[1 ] = left; - }else { -unlock_block (s->info, left); - s->nodes[1 ] = right; - } - s->count =2 ; - +unlock_block (s->info, left); +unlock_block (s->info, right);return 0 ; }
drivers/media/i2c/adv7604.c +3 -3
@@ -2735,9 +2735,9 @@ static int adv7604_parse_dt(struct adv7604_state *state) state->pdata.alt_data_sat =1 ; state->pdata.op_format_mode_sel =ADV7604_OP_FORMAT_MODE0 ; state->pdata.bus_order =ADV7604_BUS_ORDER_RGB ; - state->pdata.dr_str_data =ADV76XX_DR_STR_MEDIUM_HIGH ; - state->pdata.dr_str_clk =ADV76XX_DR_STR_MEDIUM_HIGH ; - state->pdata.dr_str_sync =ADV76XX_DR_STR_MEDIUM_HIGH ; + state->pdata.dr_str_data =ADV7604_DR_STR_MEDIUM_HIGH ; + state->pdata.dr_str_clk =ADV7604_DR_STR_MEDIUM_HIGH ; + state->pdata.dr_str_sync =ADV7604_DR_STR_MEDIUM_HIGH ;return 0 ; }
drivers/media/usb/dvb-usb/dibusb-common.c +14 -2
@@ -179,8 +179,20 @@ EXPORT_SYMBOL(dibusb_i2c_algo);int dibusb_read_eeprom_byte (struct dvb_usb_device *d,u8 offs,u8 *val) { -u8 wbuf[1 ] = { offs }; -return dibusb_i2c_msg (d,0x50 , wbuf,1 , val,1 ); +u8 *buf; +int rc; + + buf =kmalloc (2 ,GFP_KERNEL ); +if (!buf) +return -ENOMEM ; + + buf[0 ] = offs; + + rc =dibusb_i2c_msg (d,0x50 , &buf[0 ],1 , &buf[1 ],1 ); + *val = buf[1 ]; +kfree (buf); + +return rc; }EXPORT_SYMBOL (dibusb_read_eeprom_byte);
drivers/media/v4l2-core/v4l2-compat-ioctl32.c +628 -397
584 lines not on this page · raw message
drivers/media/v4l2-core/videobuf2-core.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/genet/bcmgenet.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c +13 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/freescale/fs_enet/fs_enet.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/e1000e/ich8lan.c +8 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/e1000e/mac.c +8 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/e1000e/netdev.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/eq.c +10 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/staging/usbip/userspace/src/utils.c +6 -3
Lines of this file are not shown. View the raw message.
include/asm-generic/dma-mapping-broken.h +0 -3
Lines of this file are not shown. View the raw message.
lib/asn1_decoder.c +26 -19
45 lines not on this page · raw message
net/ipv4/raw.c +73 -48
121 lines not on this page · raw message
net/xfrm/xfrm_input.c +56 -0
56 lines not on this page · raw message
sound/core/oss/pcm_oss.c +27 -14
41 lines not on this page · raw message
sound/drivers/aloop.c +50 -48
98 lines not on this page · raw message
tools/hv/hv_kvp_daemon.c +14 -56
70 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.