Linux 4.14.22
Greg KH
maintainerI'm announcing the release of the 4.14.22 kernel.
All users of the 4.14 kernel series must upgrade.
The updated 4.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/boot/dts/am4372.dtsi | 6 arch/arm/boot/dts/am437x-cm-t43.dts | 4 arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts | 3 arch/arm/boot/dts/logicpd-som-lv.dtsi | 16 +- arch/arm/boot/dts/omap4.dtsi | 4 arch/arm/common/bL_switcher_dummy_if.c | 4 arch/arm/mach-omap2/omap-secure.c | 19 ++ arch/arm/mach-omap2/omap-secure.h | 4 arch/arm/mach-omap2/pm.h | 4 arch/arm/mach-omap2/pm34xx.c | 13 - arch/arm/mach-omap2/prm33xx.c | 12 - arch/arm/mach-omap2/sleep34xx.S | 26 --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2 arch/m68k/kernel/vmlinux-nommu.lds | 2 arch/m68k/kernel/vmlinux-std.lds | 2 arch/m68k/kernel/vmlinux-sun3.lds | 2 arch/powerpc/perf/core-book3s.c | 4 arch/powerpc/perf/imc-pmu.c | 13 + arch/s390/include/uapi/asm/virtio-ccw.h | 2 arch/x86/crypto/twofish-x86_64-asm_64-3way.S | 112 +++++++------- arch/x86/kvm/vmx.c | 1 arch/x86/kvm/x86.c | 32 ++++ arch/x86/mm/ioremap.c | 4 arch/x86/mm/kmmio.c | 12 - block/blk-map.c | 4 drivers/Makefile | 1 drivers/android/binder.c | 29 ++- drivers/base/power/runtime.c | 3 drivers/crypto/s5p-sss.c | 12 + drivers/crypto/talitos.c | 5 drivers/dma/at_hdmac.c | 4 drivers/dma/dma-jz4740.c | 4 drivers/dma/ioat/init.c | 2 drivers/gpio/gpio-74x164.c | 4 drivers/gpio/gpio-davinci.c | 2 drivers/gpu/drm/armada/armada_crtc.c | 25 +-- drivers/gpu/drm/drm_modeset_lock.c | 2 drivers/gpu/drm/i915/intel_drv.h | 2 drivers/gpu/drm/vc4/vc4_gem.c | 4 drivers/gpu/drm/vc4/vc4_irq.c | 1 drivers/iio/industrialio-core.c | 4 drivers/iio/proximity/sx9500.c | 9 + drivers/infiniband/core/cma.c | 3 drivers/infiniband/core/device.c | 4 drivers/infiniband/core/iwcm.c | 2 drivers/infiniband/core/nldev.c | 2 drivers/infiniband/hw/hfi1/rc.c | 2 drivers/infiniband/hw/i40iw/i40iw_cm.c | 6 drivers/infiniband/hw/i40iw/i40iw_ctrl.c | 43 +++-- drivers/infiniband/hw/i40iw/i40iw_d.h | 6 drivers/infiniband/hw/mlx4/qp.c | 26 ++- drivers/md/raid1.c | 4 drivers/md/raid10.c | 4 drivers/md/raid5.c | 2 drivers/media/i2c/Kconfig | 1 drivers/media/i2c/s5k6aa.c | 5 drivers/media/usb/pvrusb2/pvrusb2-hdw.c | 12 + drivers/misc/mei/hw-me-regs.h | 5 drivers/misc/mei/pci-me.c | 5 drivers/net/dsa/mv88e6xxx/chip.c | 34 ++-- drivers/net/ethernet/arc/emac_rockchip.c | 7 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 3 drivers/net/ethernet/freescale/gianfar.c | 11 + drivers/net/ethernet/marvell/mvpp2.c | 2 drivers/net/ethernet/netronome/nfp/nfp_net_repr.c | 15 - drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c | 8 - drivers/net/hippi/rrunner.c | 2 drivers/net/ipvlan/ipvlan_core.c | 1 drivers/net/phy/phylink.c | 1 drivers/net/phy/sfp.c | 8 - drivers/net/virtio_net.c | 2 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 2 drivers/net/wireless/mac80211_hwsim.c | 5 drivers/pci/host/pcie-rcar.c | 8 - drivers/pinctrl/intel/pinctrl-denverton.c | 2 drivers/pinctrl/sunxi/pinctrl-sun50i-a64.c | 2 drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c | 6 drivers/platform/x86/dell-laptop.c | 17 ++ drivers/s390/block/dasd_eckd.c | 16 +- drivers/scsi/bfa/bfad_bsg.c | 6 drivers/scsi/bfa/bfad_im.c | 6 drivers/scsi/bfa/bfad_im.h | 10 + drivers/scsi/lpfc/lpfc_mem.c | 2 drivers/soc/amlogic/meson-gx-socinfo.c | 4 drivers/spi/spi-sun4i.c | 2 drivers/staging/android/ashmem.c | 19 +- drivers/staging/android/ion/ion-ioctl.c | 4 drivers/staging/android/ion/ion_system_heap.c | 2 drivers/staging/ccree/ssi_hash.c | 2 drivers/staging/fsl-mc/bus/Kconfig | 2 drivers/staging/iio/adc/ad7192.c | 27 ++- drivers/staging/iio/impedance-analyzer/ad5933.c | 4 drivers/usb/core/urb.c | 30 +++ drivers/usb/dwc3/dwc3-of-simple.c | 4 drivers/usb/dwc3/gadget.c | 2 drivers/usb/usbip/stub_dev.c | 3 drivers/usb/usbip/vhci_hcd.c | 2 drivers/vhost/vhost.c | 2 drivers/video/fbdev/mmp/core.c | 5 drivers/xen/Kconfig | 2 fs/btrfs/disk-io.c | 12 - fs/btrfs/inode.c | 2 fs/btrfs/ioctl.c | 2 fs/notify/dnotify/dnotify.c | 7 include/linux/ptr_ring.h | 15 + include/linux/serdev.h | 2 include/linux/usb.h | 2 include/net/cfg80211.h | 2 include/net/red.h | 13 + include/net/sctp/sctp.h | 3 include/trace/events/clk.h | 4 include/trace/events/xdp.h | 1 kernel/bpf/verifier.c | 25 ++- kernel/events/core.c | 5 kernel/kcov.c | 4 kernel/locking/lockdep.c | 3 kernel/trace/blktrace.c | 32 ++-- lib/oid_registry.c | 8 - mm/early_ioremap.c | 2 mm/vmalloc.c | 10 - mm/vmscan.c | 3 net/core/dev.c | 2 net/core/gen_estimator.c | 4 net/decnet/af_decnet.c | 62 ++++---- net/ipv4/esp4_offload.c | 3 net/ipv4/ip_sockglue.c | 14 - net/ipv4/netfilter/ipt_CLUSTERIP.c | 16 +- net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c | 6 net/ipv6/esp6_offload.c | 3 net/ipv6/ipv6_sockglue.c | 17 -- net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | 18 +- net/kcm/kcmsock.c | 25 ++- net/netfilter/x_tables.c | 9 - net/netfilter/xt_RATEEST.c | 22 ++ net/netfilter/xt_bpf.c | 6 net/netfilter/xt_cgroup.c | 1 net/rds/connection.c | 3 net/rds/rds.h | 6 net/rds/tcp.c | 13 + net/rds/tcp.h | 1 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/outqueue.c | 6 net/sctp/socket.c | 29 ++- net/vmw_vsock/hyperv_transport.c | 2 net/wireless/core.c | 8 - net/wireless/core.h | 2 net/xfrm/xfrm_input.c | 12 + net/xfrm/xfrm_policy.c | 15 + net/xfrm/xfrm_state.c | 3 net/xfrm/xfrm_user.c | 24 +++ scripts/kernel-doc | 2 security/selinux/ss/services.c | 21 +- sound/soc/rockchip/rockchip_spdif.c | 18 +- sound/soc/sh/rcar/ssi.c | 16 +- sound/soc/ux500/mop500.c | 4 sound/soc/ux500/ux500_pcm.c | 5 sound/usb/bcd2000/bcd2000.c | 7 sound/usb/caiaq/device.c | 7 sound/usb/line6/driver.c | 7 tools/perf/bench/numa.c | 56 ++++++- tools/perf/builtin-help.c | 4 tools/perf/builtin-top.c | 15 + tools/perf/tests/shell/trace+probe_vfs_getname.sh | 6 tools/perf/tests/task-exit.c | 4 tools/perf/util/annotate.c | 18 +- tools/perf/util/evsel.c | 12 + tools/perf/util/evsel.h | 1 tools/perf/util/parse-events.c | 2 tools/perf/util/parse-events.h | 3 tools/perf/util/pmu.c | 5 tools/testing/selftests/bpf/test_verifier.c | 123 +++++++++++++++- virt/kvm/arm/arm.c | 2 virt/kvm/arm/vgic/vgic.c | 5 177 files changed, 1200 insertions(+), 489 deletions(-)
Adam Ford (2):
ARM: dts: logicpd-som-lv: Fix gpmc addresses for NAND and enet
ARM: dts: logicpd-somlv: Fix wl127x pinmux
Alexander Usyskin (1):
mei: me: add cannon point device ids
Alexandru Ardelean (2):
staging: iio: adc: ad7192: fix external frequency setting
staging: iio: ad5933: switch buffer mode to software
Andi Kleen (1):
perf record: Fix -c/-F options for cpu event aliases
Andre Przywara (2):
pinctrl: sunxi: Fix A80 interrupt pin bank
pinctrl: sunxi: Fix A64 UART mux value
Andreas Platschek (1):
usb: dwc3: of-simple: fix missing clk_disable_unprepare
Andrew Lunn (2):
net: dsa: mv88e6xxx: Fix interrupt masking on removal
net: dsa: mv88e6xxx: Unregister MDIO bus on error path
Andrey Konovalov (1):
media: pvrusb2: properly check endpoint types
Andy Shevchenko (3):
pinctrl: denverton: Fix UART2 RTS pin mode
iio: proximity: sx9500: Assign interrupt from GpioIo()
brcmfmac: Avoid build error with make W=1
Anju T Sudhakar (1):
powerpc/perf/imc: Fix nest-imc cpuhotplug callback failure
Ard Biesheuvel (1):
kvm: arm: don't treat unavailable HYP mode as an error
Arnaud Patard (1):
meson-gx-socinfo: Fix package id parsing
Arnd Bergmann (7):
ASoC: ux500: add MODULE_LICENSE tag
video: fbdev/mmp: add MODULE_LICENSE
ARM: 8743/1: bL_switcher: add MODULE_LICENSE tag
arm64: dts: add #cooling-cells to CPU nodes
staging: fsl-mc: fix build testing on x86
scsi: bfa: fix type conversion warning drm/i915: fix intel_backlight_device_register declaration
Aviv Heller (1):
xfrm: Fix xfrm_input() to verify state is valid when (encap_type < 0)
Ben Hutchings (1):
staging: android: ashmem: Fix a race condition in pin ioctls
Branislav Radocaj (1):
net: ethernet: arc: fix error handling in emac_rockchip_probe
Cai Li (1):
clk: fix a panic error caused by accessing NULL pointer
Chien Tin Tung (1):
i40iw: Allocate a sdbuf per CQP WQE
Chris Wilson (1):
drm: Require __GFP_NOFAIL for the legacy drm_modeset_lock_all
Christophe JAILLET (1):
dmaengine: ioat: Fix error handling path
Claudiu Manoil (1):
gianfar: Disable EEE autoneg by default
Cong Wang (3):
xfrm: check id proto in validate_tmpl()
netfilter: xt_cgroup: initialize info->priv in cgroup_mt_check_v1()
netfilter: xt_RATEEST: acquire xt_rateest_mutex for hash insert
Dan Carpenter (2):
scsi: lpfc: Use after free in lpfc_rq_buf_free()
staging: ccree: Uninitialized return in ssi_ahash_import()
Daniel Borkmann (1):
bpf: mark dst unknown on inconsistent {s, u}bounds adjustments
Dave Young (1):
mm/early_ioremap: Fix boot hang with earlyprintk=efi,keep
Dennis Dalessandro (1):
IB/hfi1: Initialize bth1 in 16B rc ack builder
Dmitry Monakhov (1):
IB/core: Init subsys if compiled to vmlinuz-core
Dmitry Vyukov (3):
kcov: detect double association with a single task
netfilter: x_tables: fix int overflow in xt_alloc_table_info()
netfilter: ipt_CLUSTERIP: fix out-of-bounds accesses in clusterip_tg_check()
Douglas Gilbert (1):
blk_rq_map_user_iov: fix error override
Eric Biggers (3):
crypto: x86/twofish-3way - Fix %rbp usage
binder: check for binder_thread allocation failure in binder_poll() 509: fix printing uninitialized stack memory when OID is empty
Eric Dumazet (2):
netfilter: x_tables: avoid out-of-bounds reads in xt_request_find_{match|target}
net_sched: gen_estimator: fix lockdep splat
Florian Westphal (2):
xfrm: don't call xfrm_policy_cache_flush while holding spinlock
xfrm: skip policies marked as dead while rehashing
Gao Feng (1):
ipvlan: Add the skb->mark as flow4's member to lookup route
Geert Uytterhoeven (2):
gpio: 74x164: Fix crash during .remove()
PCI: rcar: Fix use-after-free in probe error path
Greg Kroah-Hartman (1):
Linux 4.14.22
Greg Ungerer (1):
m68k: add missing SOFTIRQENTRY_TEXT linker section
Gustavo A. R. Silva (1):
dmaengine: at_hdmac: fix potential NULL pointer dereference in atc_prep_dma_interleaved
Guy Levi (1):
IB/mlx4: Fix RSS hash fields restrictions
Jan Beulich (1):
xen: XEN_ACPI_PROCESSOR is Dom0-only
Jan Kara (1):
dnotify: Handle errors from fsnotify_add_mark_locked() in fcntl_dirnotify()
Jann Horn (1):
netfilter: xt_bpf: add overflow checks
Jason Wang (3):
vhost: use mutex_lock_nested() in vhost_dev_lock_vqs()
ptr_ring: fail early if queue occupies more than KMALLOC_MAX_SIZE
ptr_ring: try vmalloc() when kmalloc() fails
Jens Axboe (1):
blktrace: fix unlocked registration of tracepoints
Jia-Ju Bai (1):
hippi: Fix a Fix a possible sleep-in-atomic bug in rr_close
Jiada Wang (1):
ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update
Jim Mattson (1):
KVM: VMX: fix page leak in hardware_setup()
Jiri Olsa (2):
perf: Fix header.size for namespace events perf top: Fix window dimensions change handling
Johan Hovold (1):
serdev: fix receive_buf return value when no callback
Johannes Berg (2):
cfg80211: check dev_set_name() return value
mac80211_hwsim: validate number of different channels
Johannes Thumshirn (1):
scsi: bfa: fix access to bfad_im_port_s
Justin Maggard (1):
btrfs: Fix quota reservation leak on preallocated files
Kamil Konieczny (1):
crypto: s5p-sss - Fix kernel Oops in AES-ECB mode
Karol Herbst (1):
x86/mm/kmmio: Fix mmiotrace for page unaligned addresses
Keerthy (2):
ARM: AM33xx: PRM: Remove am33xx_pwrdm_read_prev_pwrst function
gpio: davinci: Assign first bank regs for unbanked case
LEROY Christophe (1):
crypto: talitos - fix Kernel Oops on hashing an empty file
Lan Tianyu (1):
KVM/x86: Check input paging mode when cs.l is set
Laura Abbott (2):
staging: android: ion: Add __GFP_NOWARN for system contig heap
staging: android: ion: Switch from WARN to pr_warn
Leon Romanovsky (1):
RDMA/netlink: Fix general protection fault
Marc Zyngier (1):
KVM: arm/arm64: Fix spinlock acquisition in vgic_set_owner
Martijn Coenen (1):
ANDROID: binder: synchronize_rcu() when using POLLFREE.
Mauro Carvalho Chehab (1):
media: s5k6aa: describe some function parameters
Michael S. Tsirkin (1):
s390/virtio: add BSD license to virtio-ccw
Michal Hocko (1):
vmalloc: fix __GFP_HIGHMEM usage for vmalloc_32 on 32b systems
Moni Shoua (1):
RDMA/cma: Make sure that PSN is not over max allowed
Mustafa Ismail (2):
i40iw: Do not free sqbuf when event is I40IW_TIMER_TYPE_CLOSE
i40iw: Correct ARP index mask
Namhyung Kim (1):
perf help: Fix a bug during strstart() conversion
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
Omar Sandoval (1):
Btrfs: disable FUA if mounted with nobarrier
Pali Rohár (1):
platform/x86: dell-laptop: Fix keyboard max lighting for Dell Latitude E6410
Paolo Abeni (2):
netfilter: on sockopt() acquire sock lock only in the required scope
dn_getsockoptdecnet: move nf_{get/set}sockopt outside sock lock
Paul Moore (2):
selinux: ensure the context is NUL terminated in security_context_to_sid_core()
selinux: skip bounded transition processing if the policy isn't loaded
Peter Ujfalusi (2):
ARM: dts: am4372: Correct the interrupts_properties of McASP
ARM: dts: am437x-cm-t43: Correct the dmas property of spi0
Peter Zijlstra (1):
locking/lockdep: Fix possible NULL deref
Pieter Jansen van Vuuren (1):
nfp: fix port stats for mac representors
Rafael J. Wysocki (1):
PM / runtime: Fix handling of suppliers with disabled runtime PM
Randy Dunlap (2):
usb: build drivers/usb/common/ when USB_SUPPORT is set
iio: fix kernel-doc build errors
Ravi Bangoria (2):
perf annotate: Do not truncate instruction names at 6 chars powerpc/perf: Fix oops when grouping different pmu events
Ray Jui (1):
bnxt_en: Need to unconditionally shut down RoCE in bnxt_shutdown
Russell King (3):
sfp: fix RX_LOS signal handling
phylink: ensure we take the link down when phylink_stop() is called drm/armada: fix leak of crtc structure
Sabrina Dubroca (1):
xfrm: fix rcu usage in xfrm_get_type_offload
Sakari Ailus (1):
media: ov13858: Select V4L2_FWNODE
Satheesh Rajendran (1):
perf bench numa: Fixup discontiguous/sparse numa nodes
Shaohua Li (1):
md/raid1/10: add missed blk plug
Shuah Khan (1):
usbip: keep usbip_device sockfd state in sync with tcp_socket
Sowmini Varadhan (2):
rds: tcp: correctly sequence cleanup on netns deletion.
rds: tcp: atomically purge entries from rds_tcp_conn_list during netns delete
Stefan Haberland (1):
s390/dasd: prevent prefix I/O error
Stefan Hajnoczi (1):
VSOCK: fix outdated sk_state value in hvs_release()
Stefan Potyra (1):
ASoC: rockchip: disable clock on error
Stefan Schake (1):
drm/vc4: Release fence after signalling
Steffen Klassert (3):
esp: Fix GRO when the headers not fully in the linear part of the skb.
xfrm: Fix stack-out-of-bounds read on socket policy lookup.
xfrm: Fix stack-out-of-bounds with misconfigured transport mode policies.
Subash Abhinov Kasiviswanathan (1):
net: qualcomm: rmnet: Fix leak on transmit failure
Takashi Iwai (4):
usb: core: Add a helper function to check the validity of EP type in URB
ALSA: line6: Add a sanity check for invalid EPs
ALSA: caiaq: Add a sanity check for invalid EPs
ALSA: bcd2000: Add a sanity check for invalid EPs
Takuo Koguchi (1):
spi: sun4i: disable clocks in the remove function
Tetsuo Handa (1):
mm,vmscan: Make unregister_shrinker() no-op if register_shrinker() failed.
Thomas Richter (2):
perf test shell: Fix check open filename arg using 'perf trace' on s390x
perf test: Fix test 21 for s390xTobias Jordan (1):
dmaengine: jz4740: disable/unprepare clk if probe fails
Todd Kjos (2):
ANDROID: binder: remove WARN() for redundant txn error
binder: replace "%p" with "%pK"
Tom Herbert (2):
kcm: Check if sk_user_data already set in kcm_attach
kcm: Only allow TCP sockets to be attached to a KCM mux
Tomas Winkler (1):
mei: me: add cannon point device ids for 4th device
Tony Lindgren (3):
ARM: OMAP2+: Fix SRAM virt to phys translation for save_secure_ram_context
ARM: dts: Fix omap4 hang with GPS connected to USB by using wakeupgen
ARM: dts: Fix elm interrupt compiler warning
Vincent Pelletier (1):
usb: dwc3: gadget: Wait longer for controller to end command processing
Wanpeng Li (1):
KVM: x86: fix escape of guest dr6 to the host
Will Deacon (1):
scripts/kernel-doc: Don't fail with status != 0 if error encountered with -none
Willem de Bruijn (1):
net: avoid skb_warn_bad_offload on IS_ERR
Xie XiuQi (1):
trace/xdp: fix compile warning: 'struct bpf_map' declared inside parameter list
Xin Long (2):
sctp: set frag_point in sctp_setsockopt_maxseg correctly
sctp: only update outstanding_bytes for transmitted queue when doing prsctp_prune
Yan Markman (1):
net: mvpp2: allocate zeroed tx descriptors
Yunjian Wang (1):
virtio_net: fix return value check in receive_mergeable()
Zumeng Chen (1):
gianfar: fix a flooded alignment reports because of padding issue.
bingjingc (1):
md/raid5: correct degraded calculation in raid5_error
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 21 +SUBLEVEL = 22 EXTRAVERSION = NAME = Petit Gorille
arch/arm/boot/dts/am4372.dtsi +4 -2
@@ -927,7 +927,8 @@ reg = <0x48038000 0x2000>, <0x46000000 0x400000>; reg-names = "mpu", "dat"; - interrupts = <80>, <81>; + interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "tx", "rx"; status = "disabled"; dmas = <&edma 8 2>,
@@ -941,7 +942,8 @@ reg = <0x4803C000 0x2000>, <0x46400000 0x400000>; reg-names = "mpu", "dat"; - interrupts = <82>, <83>; + interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "tx", "rx"; status = "disabled"; dmas = <&edma 10 2>,
arch/arm/boot/dts/am437x-cm-t43.dts +2 -2
@@ -301,8 +301,8 @@ status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&spi0_pins>; - dmas = <&edma 16 - &edma 17>; + dmas = <&edma 16 0 + &edma 17 0>; dma-names = "tx0", "rx0"; flash: w25q64cvzpig@0 {
arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts +2 -1
@@ -72,7 +72,8 @@ }; &gpmc { - ranges = <1 0 0x08000000 0x1000000>; /* CS1: 16MB for LAN9221 */ + ranges = <0 0 0x30000000 0x1000000 /* CS0: 16MB for NAND */ + 1 0 0x2c000000 0x1000000>; /* CS1: 16MB for LAN9221 */ ethernet@gpmc { pinctrl-names = "default";
arch/arm/boot/dts/logicpd-som-lv.dtsi +10 -6
@@ -37,7 +37,7 @@ }; &gpmc { - ranges = <0 0 0x00000000 0x1000000>; /* CS0: 16MB for NAND */ + ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */ nand@0,0 { compatible = "ti,omap2-nand";
@@ -121,7 +121,7 @@ &mmc3 { interrupts-extended = <&intc 94 &omap3_pmx_core2 0x46>; - pinctrl-0 = <&mmc3_pins>; + pinctrl-0 = <&mmc3_pins &wl127x_gpio>; pinctrl-names = "default"; vmmc-supply = <&wl12xx_vmmc>; non-removable;
@@ -132,8 +132,8 @@ wlcore: wlcore@2 { compatible = "ti,wl1273"; reg = <2>; - interrupt-parent = <&gpio5>; - interrupts = <24 IRQ_TYPE_LEVEL_HIGH>; /* gpio 152 */ + interrupt-parent = <&gpio1>; + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; /* gpio 2 */ ref-clock-frequency = <26000000>; }; };
@@ -157,8 +157,6 @@ OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat5.sdmmc3_dat1 */ OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat2 */ OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat3 */ - OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT_PULLUP | MUX_MODE4) /* mcbsp4_clkx.gpio_152 */ - OMAP3_CORE1_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE4) /* sys_boot1.gpio_3 */ OMAP3_CORE1_IOPAD(0x21d0, PIN_INPUT_PULLUP | MUX_MODE3) /* mcspi1_cs1.sdmmc3_cmd */ OMAP3_CORE1_IOPAD(0x21d2, PIN_INPUT_PULLUP | MUX_MODE3) /* mcspi1_cs2.sdmmc_clk */ >;
@@ -228,6 +226,12 @@ OMAP3_WKUP_IOPAD(0x2a0e, PIN_OUTPUT | MUX_MODE4) /* sys_boot2.gpio_4 */ >; }; + wl127x_gpio: pinmux_wl127x_gpio_pin { + pinctrl-single,pins = < + OMAP3_WKUP_IOPAD(0x2a0c, PIN_INPUT | MUX_MODE4) /* sys_boot0.gpio_2 */ + OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE4) /* sys_boot1.gpio_3 */ + >; + }; }; &omap3_pmx_core2 {
arch/arm/boot/dts/omap4.dtsi +1 -3
@@ -354,7 +354,7 @@ elm: elm@48078000 { compatible = "ti,am3352-elm"; reg = <0x48078000 0x2000>; - interrupts = <4>; + interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "elm"; status = "disabled"; };
@@ -861,14 +861,12 @@ usbhsohci: ohci@4a064800 { compatible = "ti,ohci-omap3"; reg = <0x4a064800 0x400>; - interrupt-parent = <&gic>; interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>; }; usbhsehci: ehci@4a064c00 { compatible = "ti,ehci-omap"; reg = <0x4a064c00 0x400>; - interrupt-parent = <&gic>; interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>; }; };
arch/arm/common/bL_switcher_dummy_if.c +4 -0
@@ -57,3 +57,7 @@ static struct miscdevice bL_switcher_device = { &bL_switcher_fops };module_misc_device (bL_switcher_device); + +MODULE_AUTHOR ("Nicolas Pitre <[email protected]>" ); +MODULE_LICENSE ("GPL v2" ); +MODULE_DESCRIPTION ("big.LITTLE switcher dummy user interface" );
arch/arm/mach-omap2/omap-secure.c +19 -0
@@ -73,6 +73,25 @@ phys_addr_t omap_secure_ram_mempool_base(void)return omap_secure_memblock_base; } +u32 omap3_save_secure_ram (void __iomem *addr,int size) +{ +u32 ret; +u32 param[5 ]; + +if (size !=OMAP3_SAVE_SECURE_RAM_SZ ) +return OMAP3_SAVE_SECURE_RAM_SZ ; + + param[0 ] =4 ;/* Number of arguments */ + param[1 ] =__pa (addr);/* Physical address for saving */ + param[2 ] =0 ; + param[3 ] =1 ; + param[4 ] =1 ; + + ret =save_secure_ram_context (__pa (param)); + +return ret; +} +/** * rx51_secure_dispatcher: Routine to dispatch secure PPA API calls * @idx: The PPA API index
arch/arm/mach-omap2/omap-secure.h +4 -0
@@ -31,6 +31,8 @@/* Maximum Secure memory storage size */ #define OMAP_SECURE_RAM_STORAGE (88 * SZ_1K) +#define OMAP3_SAVE_SECURE_RAM_SZ 0x803F +/* Secure low power HAL API index */ #define OMAP4_HAL_SAVESECURERAM_INDEX 0x1a#define OMAP4_HAL_SAVEHW_INDEX 0x1b
@@ -65,6 +67,8 @@ extern u32 omap_smc2(u32 id, u32 falg, u32 pargs);extern u32 omap_smc3 (u32 id,u32 process,u32 flag,u32 pargs);extern phys_addr_t omap_secure_ram_mempool_base (void );extern int omap_secure_ram_reserve_memblock (void ); +extern u32 save_secure_ram_context (u32 args_pa); +extern u32 omap3_save_secure_ram (void __iomem *save_regs,int size);extern u32 rx51_secure_dispatcher (u32 idx,u32 process,u32 flag,u32 nargs,u32 arg1,u32 arg2,u32 arg3,u32 arg4);
arch/arm/mach-omap2/pm.h +0 -4
@@ -81,10 +81,6 @@ extern unsigned int omap3_do_wfi_sz;/* ... and its pointer from SRAM after copy */ extern void (*omap3_do_wfi_sram)(void ); -/* save_secure_ram_context function pointer and size, for copy to SRAM */ -extern int save_secure_ram_context (u32 *addr); -extern unsigned int save_secure_ram_context_sz; -extern void omap3_save_scratchpad_contents (void );#define PM_RTA_ERRATUM_i608 (1 << 0)
arch/arm/mach-omap2/pm34xx.c +4 -9
@@ -48,6 +48,7 @@#include "prm3xxx.h" #include "pm.h" #include "sdrc.h" +#include "omap-secure.h" #include "sram.h" #include "control.h" #include "vc.h"
@@ -66,7 +67,6 @@ struct power_state {static LIST_HEAD (pwrst_list); -static int (*_omap_save_secure_sram)(u32 *addr);void (*omap3_do_wfi_sram)(void );static struct powerdomain *mpu_pwrdm, *neon_pwrdm;
@@ -121,8 +121,8 @@ static void omap3_save_secure_ram_context(void)* will hang the system. */ pwrdm_set_next_pwrst (mpu_pwrdm,PWRDM_POWER_ON ); - ret =_omap_save_secure_sram ((u32 *)(unsigned long ) -__pa (omap3_secure_ram_storage)); + ret =omap3_save_secure_ram (omap3_secure_ram_storage, +OMAP3_SAVE_SECURE_RAM_SZ );pwrdm_set_next_pwrst (mpu_pwrdm, mpu_next_state);/* Following is for error tracking, it should not happen */ if (ret) {
@@ -434,15 +434,10 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm, void *unused)* * The minimum set of functions is pushed to SRAM for execution: * - omap3_do_wfi for erratum i581 WA, -* - save_secure_ram_context for security extensions. */ void omap_push_sram_idle (void ) { omap3_do_wfi_sram =omap_sram_push (omap3_do_wfi, omap3_do_wfi_sz); - -if (omap_type () !=OMAP2_DEVICE_TYPE_GP ) - _omap_save_secure_sram =omap_sram_push (save_secure_ram_context, - save_secure_ram_context_sz); }static void __init pm_errata_configure (void )
@@ -553,7 +548,7 @@ int __init omap3_pm_init(void)clkdm_add_wkdep (neon_clkdm, mpu_clkdm);if (omap_type () !=OMAP2_DEVICE_TYPE_GP ) { omap3_secure_ram_storage = -kmalloc (0x803F ,GFP_KERNEL ); +kmalloc (OMAP3_SAVE_SECURE_RAM_SZ ,GFP_KERNEL );if (!omap3_secure_ram_storage)pr_err ("Memory allocation failed when allocating for secure sram context\n" );
arch/arm/mach-omap2/prm33xx.c +0 -12
@@ -176,17 +176,6 @@ static int am33xx_pwrdm_read_pwrst(struct powerdomain *pwrdm)return v; } -static int am33xx_pwrdm_read_prev_pwrst (struct powerdomain *pwrdm) -{ -u32 v; - - v =am33xx_prm_read_reg (pwrdm->prcm_offs, pwrdm->pwrstst_offs); - v &=AM33XX_LASTPOWERSTATEENTERED_MASK ; - v >>=AM33XX_LASTPOWERSTATEENTERED_SHIFT ; - -return v; -} -static int am33xx_pwrdm_set_lowpwrstchange (struct powerdomain *pwrdm) { am33xx_prm_rmw_reg_bits(AM33XX_LOWPOWERSTATECHANGE_MASK,
@@ -357,7 +346,6 @@ struct pwrdm_ops am33xx_pwrdm_operations = { .pwrdm_set_next_pwrst = am33xx_pwrdm_set_next_pwrst, .pwrdm_read_next_pwrst = am33xx_pwrdm_read_next_pwrst, .pwrdm_read_pwrst = am33xx_pwrdm_read_pwrst, - .pwrdm_read_prev_pwrst = am33xx_pwrdm_read_prev_pwrst, .pwrdm_set_logic_retst = am33xx_pwrdm_set_logic_retst, .pwrdm_read_logic_pwrst = am33xx_pwrdm_read_logic_pwrst, .pwrdm_read_logic_retst = am33xx_pwrdm_read_logic_retst,
arch/arm/mach-omap2/sleep34xx.S +4 -22
@@ -93,20 +93,13 @@ ENTRY(enable_omap3630_toggle_l2_on_restore) ENDPROC(enable_omap3630_toggle_l2_on_restore) /* - * Function to call rom code to save secure ram context. This gets - * relocated to SRAM, so it can be all in .data section. Otherwise - * we need to initialize api_params separately. + * Function to call rom code to save secure ram context. + * + * r0 = physical address of the parameters */ - .data - .align 3 ENTRY(save_secure_ram_context) stmfd sp!, {r4 - r11, lr} @ save registers on stack - adr r3, api_params @ r3 points to parameters - str r0, [r3,#0x4] @ r0 has sdram address - ldr r12, high_mask - and r3, r3, r12 - ldr r12, sram_phy_addr_mask - orr r3, r3, r12 + mov r3, r0 @ physical address of parameters mov r0, #25 @ set service ID for PPA mov r12, r0 @ copy secure service ID in r12 mov r1, #0 @ set task id for ROM code in r1
@@ -120,18 +113,7 @@ ENTRY(save_secure_ram_context) nop nop ldmfd sp!, {r4 - r11, pc} - .align -sram_phy_addr_mask: - .word SRAM_BASE_P -high_mask: - .word 0xffff -api_params: - .word 0x4, 0x0, 0x0, 0x1, 0x1 ENDPROC(save_secure_ram_context) -ENTRY(save_secure_ram_context_sz) - .word . - save_secure_ram_context - - .text /* * ======================
arch/arm64/boot/dts/mediatek/mt8173.dtsi +2 -0
@@ -81,6 +81,7 @@ reg = <0x000>; enable-method = "psci"; cpu-idle-states = <&CPU_SLEEP_0>; + #cooling-cells = <2>; }; cpu1: cpu@1 {
@@ -97,6 +98,7 @@ reg = <0x100>; enable-method = "psci"; cpu-idle-states = <&CPU_SLEEP_0>; + #cooling-cells = <2>; }; cpu3: cpu@101 {
arch/m68k/kernel/vmlinux-nommu.lds +2 -0
@@ -45,6 +45,8 @@ SECTIONS { .text : { HEAD_TEXT TEXT_TEXT + IRQENTRY_TEXT + SOFTIRQENTRY_TEXT SCHED_TEXT CPUIDLE_TEXT LOCK_TEXT
arch/m68k/kernel/vmlinux-std.lds +2 -0
@@ -16,6 +16,8 @@ SECTIONS .text : { HEAD_TEXT TEXT_TEXT + IRQENTRY_TEXT + SOFTIRQENTRY_TEXT SCHED_TEXT CPUIDLE_TEXT LOCK_TEXT
arch/m68k/kernel/vmlinux-sun3.lds +2 -0
@@ -16,6 +16,8 @@ SECTIONS .text : { HEAD_TEXT TEXT_TEXT + IRQENTRY_TEXT + SOFTIRQENTRY_TEXT SCHED_TEXT CPUIDLE_TEXT LOCK_TEXT
arch/powerpc/perf/core-book3s.c +2 -2
@@ -1419,7 +1419,7 @@ static int collect_events(struct perf_event *group, int max_count,int n =0 ;struct perf_event *event; -if (!is_software_event (group)) { +if (group->pmu->task_ctx_nr == perf_hw_context) {if (n >= max_count)return -1 ; ctrs[n] = group;
@@ -1427,7 +1427,7 @@ static int collect_events(struct perf_event *group, int max_count, events[n++] = group->hw.config; }list_for_each_entry (event, &group->sibling_list, group_entry) { -if (!is_software_event (event) && +if (event->pmu->task_ctx_nr == perf_hw_context && event->state !=PERF_EVENT_STATE_OFF ) {if (n >= max_count)return -1 ;
arch/powerpc/perf/imc-pmu.c +13 -0
@@ -308,6 +308,19 @@ static int ppc_nest_imc_cpu_offline(unsigned int cpu)if (!cpumask_test_and_clear_cpu (cpu, &nest_imc_cpumask))return 0 ; +/* +* Check whether nest_imc is registered. We could end up here if the +* cpuhotplug callback registration fails. i.e, callback invokes the +* offline path for all successfully registered nodes. At this stage, +* nest_imc pmu will not be registered and we should return here. +* +* We return with a zero since this is not an offline failure. And +* cpuhp_setup_state() returns the actual failure reason to the caller, +* which in turn will call the cleanup routine. +*/ +if (!nest_pmus) +return 0 ; +/* * Now that this cpu is one of the designated, * find a next cpu a) which is online and b) in same chip.
arch/s390/include/uapi/asm/virtio-ccw.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ /* * Definitions for virtio-ccw devices. *
arch/x86/crypto/twofish-x86_64-asm_64-3way.S +60 -52
208 lines not on this page · raw message
arch/x86/kvm/vmx.c +0 -1
@@ -6950,7 +6950,6 @@ static __init int hardware_setup(void) goto out; } - vmx_io_bitmap_b = (unsigned long *)__get_free_page (GFP_KERNEL );memset (vmx_vmread_bitmap,0xff ,PAGE_SIZE );memset (vmx_vmwrite_bitmap,0xff ,PAGE_SIZE );
arch/x86/kvm/x86.c +32 -0
@@ -2926,6 +2926,12 @@ void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) kvm_x86_ops->vcpu_put (vcpu);kvm_put_guest_fpu (vcpu); vcpu->arch.last_host_tsc =rdtsc (); +/* +* If userspace has set any breakpoints or watchpoints, dr6 is restored +* on every vmexit, but if not, we might have a stale dr6 from the +* guest. do_debug expects dr6 to be cleared after it runs, do the same. +*/ +set_debugreg (0 ,6 ); } static int kvm_vcpu_ioctl_get_lapic(struct kvm_vcpu *vcpu,
@@ -7474,6 +7480,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_BIT )) { +/* +* 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_BIT ) + || !(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) {
@@ -7486,6 +7515,9 @@ int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, (sregs->cr4 & X86_CR4_OSXSAVE))return -EINVAL ; +if (kvm_valid_sregs (vcpu, sregs)) +return -EINVAL ; + apic_base_msr.data = sregs->apic_base; apic_base_msr.host_initiated = true;if (kvm_set_apic_base (vcpu, &apic_base_msr))
arch/x86/mm/ioremap.c +2 -2
@@ -349,11 +349,11 @@ void iounmap(volatile void __iomem *addr)return ; } +mmiotrace_iounmap (addr); + addr = (volatile void __iomem *) (PAGE_MASK & (unsigned long __force )addr); -mmiotrace_iounmap (addr); -/* Use the vm area unlocked, assuming the caller ensures there isn't another iounmap for the same address in parallel. Reuse of the virtual address is prevented by
arch/x86/mm/kmmio.c +7 -5
@@ -435,17 +435,18 @@ int register_kmmio_probe(struct kmmio_probe *p)unsigned long flags;int ret =0 ;unsigned long size =0 ; +unsigned long addr = p->addr &PAGE_MASK ;const unsigned long size_lim = p->len + (p->addr & ~PAGE_MASK );unsigned int l;pte_t *pte;spin_lock_irqsave (&kmmio_lock, flags); -if (get_kmmio_probe (p->addr)) { +if (get_kmmio_probe (addr)) { ret = -EEXIST ; goto out; } - pte =lookup_address (p->addr, &l); + pte =lookup_address (addr, &l);if (!pte) { ret = -EINVAL ; goto out;
@@ -454,7 +455,7 @@ int register_kmmio_probe(struct kmmio_probe *p) kmmio_count++;list_add_rcu (&p->list, &kmmio_probes);while (size < size_lim) { -if (add_kmmio_fault_page (p->addr + size)) +if (add_kmmio_fault_page (addr + size))pr_err ("Unable to set page fault.\n" ); size +=page_level_size (l); }
@@ -528,19 +529,20 @@ void unregister_kmmio_probe(struct kmmio_probe *p) {unsigned long flags;unsigned long size =0 ; +unsigned long addr = p->addr &PAGE_MASK ;const unsigned long size_lim = p->len + (p->addr & ~PAGE_MASK );struct kmmio_fault_page *release_list =NULL ;struct kmmio_delayed_release *drelease;unsigned int l;pte_t *pte; - pte =lookup_address (p->addr, &l); + pte =lookup_address (addr, &l);if (!pte)return ;spin_lock_irqsave (&kmmio_lock, flags);while (size < size_lim) { -release_kmmio_fault_page (p->addr + size, &release_list); +release_kmmio_fault_page (addr + size, &release_list); size +=page_level_size (l); }list_del_rcu (&p->list);
block/blk-map.c +2 -2
@@ -126,7 +126,7 @@ int blk_rq_map_user_iov(struct request_queue *q, struct request *rq,unsigned long align = q->dma_pad_mask |queue_dma_alignment (q);struct bio *bio =NULL ;struct iov_iter i; -int ret; +int ret = -EINVAL ;if (!iter_is_iovec (iter)) goto fail;
@@ -155,7 +155,7 @@ int blk_rq_map_user_iov(struct request_queue *q, struct request *rq,__blk_rq_unmap_user (bio); fail: rq->bio =NULL ; -return -EINVAL ; +return ret; }EXPORT_SYMBOL (blk_rq_map_user_iov);
drivers/Makefile +1 -0
@@ -105,6 +105,7 @@ obj-$(CONFIG_TC) += tc/ obj-$(CONFIG_UWB) += uwb/ obj-$(CONFIG_USB_PHY) += usb/ obj-$(CONFIG_USB) += usb/ +obj-$(CONFIG_USB_SUPPORT) += usb/ obj-$(CONFIG_PCI) += usb/ obj-$(CONFIG_USB_GADGET) += usb/ obj-$(CONFIG_OF) += usb/
drivers/android/binder.c +23 -6
@@ -1933,8 +1933,14 @@ static void binder_send_failed_reply(struct binder_transaction *t, &target_thread->todo);wake_up_interruptible (&target_thread->wait); }else { -WARN (1 ,"Unexpected reply error: %u\n" , - target_thread->reply_error.cmd); +/* +* Cannot get here for normal operation, but +* we can if multiple synchronous transactions +* are sent without blocking for responses. +* Just ignore the 2nd error in this case. +*/ +pr_warn ("Unexpected reply error: %u\n" , + target_thread->reply_error.cmd); }binder_inner_proc_unlock (target_thread->proc);binder_thread_dec_tmpref (target_thread);
@@ -2135,7 +2141,7 @@ static void binder_transaction_buffer_release(struct binder_proc *proc,int debug_id = buffer->debug_id;binder_debug (BINDER_DEBUG_TRANSACTION , -"%d buffer release %d, size %zd-%zd, failed at %p\n" , +"%d buffer release %d, size %zd-%zd, failed at %pK\n" , proc->pid, buffer->debug_id, buffer->data_size, buffer->offsets_size, failed_at);
@@ -3647,7 +3653,7 @@ static int binder_thread_write(struct binder_proc *proc, } }binder_debug (BINDER_DEBUG_DEAD_BINDER , -"%d:%d BC_DEAD_BINDER_DONE %016llx found %p\n" , +"%d:%d BC_DEAD_BINDER_DONE %016llx found %pK\n" , proc->pid, thread->pid, (u64 )cookie, death);if (death ==NULL ) {
@@ -4316,6 +4322,15 @@ static int binder_thread_release(struct binder_proc *proc,binder_inner_proc_unlock (thread->proc); +/* +* This is needed to avoid races between wake_up_poll() above and +* and ep_remove_waitqueue() called for other reasons (eg the epoll file +* descriptor being closed); ep_remove_waitqueue() holds an RCU read +* lock, so we can be sure it's done after calling synchronize_rcu(). +*/ +if (thread->looper &BINDER_LOOPER_STATE_POLL ) +synchronize_rcu (); +if (send_reply)binder_send_failed_reply (send_reply,BR_DEAD_REPLY );binder_release_work (proc, &thread->todo);
@@ -4331,6 +4346,8 @@ static unsigned int binder_poll(struct file *filp,bool wait_for_proc_work; thread =binder_get_thread (proc); +if (!thread) +return POLLERR ;binder_inner_proc_lock (thread->proc); thread->looper |=BINDER_LOOPER_STATE_POLL ;
@@ -4974,7 +4991,7 @@ static void print_binder_transaction_ilocked(struct seq_file *m,spin_lock (&t->lock); to_proc = t->to_proc; seq_printf(m, - "%s %d: %p from %d:%d to %d:%d code %x flags %x pri %ld r%d", + "%s %d: %pK from %d:%d to %d:%d code %x flags %x pri %ld r%d", prefix, t->debug_id, t, t->from ? t->from->proc->pid : 0, t->from ? t->from->pid : 0,
@@ -4998,7 +5015,7 @@ static void print_binder_transaction_ilocked(struct seq_file *m, }if (buffer->target_node)seq_printf (m," node %d" , buffer->target_node->debug_id); -seq_printf (m," size %zd:%zd data %p\n" , +seq_printf (m," size %zd:%zd data %pK\n" , buffer->data_size, buffer->offsets_size, buffer->data); }
drivers/base/power/runtime.c +2 -1
@@ -276,7 +276,8 @@ static int rpm_get_suppliers(struct device *dev)continue ; retval =pm_runtime_get_sync (link->supplier); -if (retval <0 ) { +/* Ignore suppliers with disabled runtime PM. */ +if (retval <0 && retval != -EACCES ) {pm_runtime_put_noidle (link->supplier);return retval; }
drivers/crypto/s5p-sss.c +9 -3
@@ -601,15 +601,21 @@ static void s5p_aes_crypt_start(struct s5p_aes_dev *dev, unsigned long mode)uint32_t aes_control;unsigned long flags;int err; +u8 *iv; aes_control =SSS_AES_KEY_CHANGE_MODE ;if (mode &FLAGS_AES_DECRYPT ) aes_control |=SSS_AES_MODE_DECRYPT ; -if ((mode &FLAGS_AES_MODE_MASK ) ==FLAGS_AES_CBC ) +if ((mode &FLAGS_AES_MODE_MASK ) ==FLAGS_AES_CBC ) { aes_control |=SSS_AES_CHAIN_MODE_CBC ; -else if ((mode &FLAGS_AES_MODE_MASK ) ==FLAGS_AES_CTR ) + iv = req->info; + }else if ((mode &FLAGS_AES_MODE_MASK ) ==FLAGS_AES_CTR ) { aes_control |=SSS_AES_CHAIN_MODE_CTR ; + iv = req->info; + }else { + iv =NULL ;/* AES_ECB */ + }if (dev->ctx->keylen ==AES_KEYSIZE_192 ) aes_control |=SSS_AES_KEY_SIZE_192 ;
@@ -640,7 +646,7 @@ static void s5p_aes_crypt_start(struct s5p_aes_dev *dev, unsigned long mode) goto outdata_error;SSS_AES_WRITE (dev,AES_CONTROL , aes_control); -s5p_set_aes (dev, dev->ctx->aes_key, req->info, dev->ctx->keylen); +s5p_set_aes (dev, dev->ctx->aes_key, iv, dev->ctx->keylen);s5p_set_dma_indata (dev, dev->sg_src);s5p_set_dma_outdata (dev, dev->sg_dst);
drivers/crypto/talitos.c +5 -0
@@ -1124,6 +1124,11 @@ int talitos_sg_map(struct device *dev, struct scatterlist *src,struct talitos_private *priv =dev_get_drvdata (dev);bool is_sec1 =has_ftr_sec1 (priv); +if (!src) { + *ptr = zero_entry; +return 1 ; + } +to_talitos_ptr_len (ptr, len, is_sec1);to_talitos_ptr_ext_set (ptr,0 , is_sec1);
drivers/dma/at_hdmac.c +3 -1
@@ -708,7 +708,7 @@ atc_prep_dma_interleaved(struct dma_chan *chan, unsigned long flags) {struct at_dma_chan *atchan =to_at_dma_chan (chan); -struct data_chunk *first = xt->sgl; +struct data_chunk *first;struct at_desc *desc =NULL ;size_t xfer_count;unsigned int dwidth;
@@ -720,6 +720,8 @@ atc_prep_dma_interleaved(struct dma_chan *chan,if (unlikely (!xt || xt->numf !=1 || !xt->frame_size))return NULL ; + first = xt->sgl; + dev_info(chan2dev(chan), "%s: src=%pad, dest=%pad, numf=%d, frame_size=%d, flags=0x%lx\n", __func__, &xt->src_start, &xt->dst_start, xt->numf,
drivers/dma/dma-jz4740.c +3 -1
@@ -555,7 +555,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);
@@ -568,6 +568,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/ioat/init.c +1 -1
@@ -390,7 +390,7 @@ static int ioat_dma_self_test(struct ioatdma_device *ioat_dma)if (memcmp (src, dest,IOAT_TEST_SIZE )) {dev_err (dev,"Self-test copy failed compare, disabling\n" ); err = -ENODEV ; - goto free_resources; + goto unmap_dma; } unmap_dma:
drivers/gpio/gpio-74x164.c +2 -2
@@ -23,6 +23,7 @@struct gen_74x164_chip {struct gpio_chip gpio_chip;struct mutex lock; +struct gpio_desc *gpiod_oe;u32 registers;/* * Since the registers are chained, every byte sent will make
@@ -31,8 +32,7 @@ struct gen_74x164_chip {* register at the end of the transfer. So, to have a logical * numbering, store the bytes in reverse order. */ -u8 buffer[0 ]; -struct gpio_desc *gpiod_oe; +u8 buffer[]; };static int __gen_74x164_write_config (struct gen_74x164_chip *chip)
drivers/gpio/gpio-davinci.c +1 -1
@@ -383,7 +383,7 @@ static int gpio_irq_type_unbanked(struct irq_data *data, unsigned trigger)u32 mask; d = (struct davinci_gpio_controller *)irq_data_get_irq_handler_data (data); - g = (struct davinci_gpio_regs __iomem *)d->regs; + g = (struct davinci_gpio_regs __iomem *)d->regs[0 ]; mask =__gpio_mask (data->irq - d->base_irq);if (trigger & ~(IRQ_TYPE_EDGE_FALLING |IRQ_TYPE_EDGE_RISING ))
drivers/gpu/drm/armada/armada_crtc.c +13 -12
@@ -1225,17 +1225,13 @@ static int armada_drm_crtc_create(struct drm_device *drm, struct device *dev, ret =devm_request_irq (dev, irq, armada_drm_irq,0 ,"armada_drm_crtc" , dcrtc); -if (ret <0 ) { -kfree (dcrtc); -return ret; - } +if (ret <0 ) + goto err_crtc;if (dcrtc->variant->init) { ret = dcrtc->variant->init (dcrtc, dev); -if (ret) { -kfree (dcrtc); -return ret; - } +if (ret) + goto err_crtc; }/* Ensure AXI pipeline is enabled */
@@ -1246,13 +1242,15 @@ static int armada_drm_crtc_create(struct drm_device *drm, struct device *dev, dcrtc->crtc.port = port; primary =kzalloc (sizeof (*primary),GFP_KERNEL ); -if (!primary) -return -ENOMEM ; +if (!primary) { + ret = -ENOMEM ; + goto err_crtc; + } ret =armada_drm_plane_init (primary);if (ret) {kfree (primary); -return ret; + goto err_crtc; } ret = drm_universal_plane_init(drm, &primary->base, 0,
@@ -1263,7 +1261,7 @@ static int armada_drm_crtc_create(struct drm_device *drm, struct device *dev, DRM_PLANE_TYPE_PRIMARY, NULL);if (ret) {kfree (primary); -return ret; + goto err_crtc; } ret = drm_crtc_init_with_planes(drm, &dcrtc->crtc, &primary->base, NULL,
@@ -1282,6 +1280,9 @@ static int armada_drm_crtc_create(struct drm_device *drm, struct device *dev, err_crtc_init: primary->base.funcs->destroy (&primary->base); +err_crtc: +kfree (dcrtc); +return ret; }
drivers/gpu/drm/drm_modeset_lock.c +1 -1
@@ -88,7 +88,7 @@ void drm_modeset_lock_all(struct drm_device *dev)struct drm_modeset_acquire_ctx *ctx;int ret; - ctx =kzalloc (sizeof (*ctx),GFP_KERNEL ); + ctx =kzalloc (sizeof (*ctx),GFP_KERNEL | __GFP_NOFAIL);if (WARN_ON (!ctx))return ;
drivers/gpu/drm/i915/intel_drv.h +1 -1
@@ -1708,7 +1708,7 @@ extern struct drm_display_mode *intel_find_panel_downclock(int intel_backlight_device_register (struct intel_connector *connector);void intel_backlight_device_unregister (struct intel_connector *connector);#else /* CONFIG_BACKLIGHT_CLASS_DEVICE */ -static int intel_backlight_device_register (struct intel_connector *connector) +static inline int intel_backlight_device_register (struct intel_connector *connector) {return 0 ; }
drivers/gpu/drm/vc4/vc4_gem.c +3 -1
@@ -829,8 +829,10 @@ vc4_complete_exec(struct drm_device *dev, struct vc4_exec_info *exec)/* If we got force-completed because of GPU reset rather than * through our IRQ handler, signal the fence now. */ -if (exec->fence) +if (exec->fence) {dma_fence_signal (exec->fence); +dma_fence_put (exec->fence); + }if (exec->bo) {for (i =0 ; i < exec->bo_count; i++)
drivers/gpu/drm/vc4/vc4_irq.c +1 -0
@@ -139,6 +139,7 @@ vc4_irq_finish_render_job(struct drm_device *dev)list_move_tail (&exec->head, &vc4->job_done_list);if (exec->fence) {dma_fence_signal_locked (exec->fence); +dma_fence_put (exec->fence); exec->fence =NULL ; }vc4_submit_next_render_job (dev);
drivers/iio/industrialio-core.c +2 -2
@@ -631,7 +631,7 @@ static ssize_t __iio_format_value(char *buf, size_t len, unsigned int type,* iio_format_value() - Formats a IIO value into its string representation * @buf: The buffer to which the formatted value gets written * which is assumed to be big enough (i.e. PAGE_SIZE). -* @type: One of the IIO_VAL_... constants. This decides how the val +* @type: One of the IIO_VAL_* constants. This decides how the val * and val2 parameters are formatted. * @size: Number of IIO value entries contained in vals * @vals: Pointer to the values, exact meaning depends on the
@@ -639,7 +639,7 @@ static ssize_t __iio_format_value(char *buf, size_t len, unsigned int type,* * Return: 0 by default, a negative number on failure or the * total number of characters written for a type that belongs -* to the IIO_VAL_... constant. +* to the IIO_VAL_* constant. */ ssize_t iio_format_value (char *buf,unsigned int type,int size,int *vals) {
drivers/iio/proximity/sx9500.c +9 -0
@@ -871,6 +871,7 @@ static int sx9500_init_device(struct iio_dev *indio_dev)static void sx9500_gpio_probe (struct i2c_client *client,struct sx9500_data *data) { +struct gpio_desc *gpiod_int;struct device *dev;if (!client)
@@ -878,6 +879,14 @@ static void sx9500_gpio_probe(struct i2c_client *client, dev = &client->dev; +if (client->irq <=0 ) { + gpiod_int =devm_gpiod_get (dev,SX9500_GPIO_INT ,GPIOD_IN ); +if (IS_ERR (gpiod_int)) +dev_err (dev,"gpio get irq failed\n" ); +else + client->irq =gpiod_to_irq (gpiod_int); + } + data->gpiod_rst =devm_gpiod_get (dev,SX9500_GPIO_RESET ,GPIOD_OUT_HIGH );if (IS_ERR (data->gpiod_rst)) {dev_warn (dev,"gpio get reset pin failed\n" );
drivers/infiniband/core/cma.c +2 -1
@@ -801,6 +801,7 @@ struct rdma_cm_id *rdma_create_id(struct net *net,INIT_LIST_HEAD (&id_priv->mc_list);get_random_bytes (&id_priv->seq_num,sizeof id_priv->seq_num); id_priv->id.route.addr.dev_addr.net =get_net (net); + id_priv->seq_num &=0x00ffffff ;return &id_priv->id; }
@@ -4461,7 +4462,7 @@ static int cma_get_id_stats(struct sk_buff *skb, struct netlink_callback *cb)return skb->len; } -static const struct rdma_nl_cbs cma_cb_table[] = { +static const struct rdma_nl_cbs cma_cb_table[RDMA_NL_RDMA_CM_NUM_OPS ] = { [RDMA_NL_RDMA_CM_ID_STATS ] = { .dump = cma_get_id_stats}, };
drivers/infiniband/core/device.c +2 -2
@@ -1154,7 +1154,7 @@ struct net_device *ib_get_net_dev_by_params(struct ib_device *dev, }EXPORT_SYMBOL (ib_get_net_dev_by_params); -static const struct rdma_nl_cbs ibnl_ls_cb_table[] = { +static const struct rdma_nl_cbs ibnl_ls_cb_table[RDMA_NL_LS_NUM_OPS ] = { [RDMA_NL_LS_OP_RESOLVE ] = { .doit = ib_nl_handle_resolve_resp, .flags =RDMA_NL_ADMIN_PERM ,
@@ -1261,5 +1261,5 @@ static void __exit ib_core_cleanup(void)MODULE_ALIAS_RDMA_NETLINK (RDMA_NL_LS ,4 ); -module_init (ib_core_init); +subsys_initcall (ib_core_init);module_exit (ib_core_cleanup);
drivers/infiniband/core/iwcm.c +1 -1
@@ -80,7 +80,7 @@ const char *__attribute_const__ iwcm_reject_msg(int reason) }EXPORT_SYMBOL (iwcm_reject_msg); -static struct rdma_nl_cbs iwcm_nl_cb_table[] = { +static struct rdma_nl_cbs iwcm_nl_cb_table[RDMA_NL_IWPM_NUM_OPS ] = { [RDMA_NL_IWPM_REG_PID ] = {.dump = iwpm_register_pid_cb}, [RDMA_NL_IWPM_ADD_MAPPING ] = {.dump = iwpm_add_mapping_cb}, [RDMA_NL_IWPM_QUERY_MAPPING ] = {.dump = iwpm_add_and_query_mapping_cb},
drivers/infiniband/core/nldev.c +1 -1
@@ -303,7 +303,7 @@ out: cb->args[0] = idx;return skb->len; } -static const struct rdma_nl_cbs nldev_cb_table[] = { +static const struct rdma_nl_cbs nldev_cb_table[RDMA_NLDEV_NUM_OPS ] = { [RDMA_NLDEV_CMD_GET ] = { .doit = nldev_get_doit, .dump = nldev_get_dumpit,
drivers/infiniband/hw/hfi1/rc.c +1 -1
@@ -815,7 +815,7 @@ static inline void hfi1_make_rc_ack_16B(struct rvt_qp *qp,struct hfi1_pportdata *ppd =ppd_from_ibp (ibp);struct hfi1_16b_header *hdr = &opa_hdr->opah;struct ib_other_headers *ohdr; -u32 bth0, bth1; +u32 bth0, bth1 =0 ;u16 len, pkey;u8 becn = !!is_fecn;u8 l4 =OPA_16B_L4_IB_LOCAL ;
drivers/infiniband/hw/i40iw/i40iw_cm.c +3 -3
@@ -1043,7 +1043,7 @@ static int i40iw_parse_mpa(struct i40iw_cm_node *cm_node, u8 *buffer, u32 *type,* i40iw_schedule_cm_timer * @@cm_node: connection's node * @sqbuf: buffer to send -* @type: if it es send ot close +* @type: if it is send or close * @send_retrans: if rexmits to be done * @close_when_complete: is cm_node to be removed *
@@ -1067,7 +1067,8 @@ int i40iw_schedule_cm_timer(struct i40iw_cm_node *cm_node, new_send =kzalloc (sizeof (*new_send),GFP_ATOMIC );if (!new_send) { -i40iw_free_sqbuf (vsi, (void *)sqbuf); +if (type !=I40IW_TIMER_TYPE_CLOSE ) +i40iw_free_sqbuf (vsi, (void *)sqbuf);return -ENOMEM ; } new_send->retrycount =I40IW_DEFAULT_RETRYS ;
@@ -1082,7 +1083,6 @@ int i40iw_schedule_cm_timer(struct i40iw_cm_node *cm_node, new_send->timetosend += (HZ /10 );if (cm_node->close_entry) {kfree (new_send); -i40iw_free_sqbuf (vsi, (void *)sqbuf);i40iw_pr_err ("already close entry\n" );return -EINVAL ; }
drivers/infiniband/hw/i40iw/i40iw_ctrl.c +30 -13
87 lines not on this page · raw message
drivers/infiniband/hw/i40iw/i40iw_d.h +4 -2
@@ -1109,7 +1109,7 @@#define I40IWQPC_VLANTAG_MASK (0xffffULL << I40IWQPC_VLANTAG_SHIFT)#define I40IWQPC_ARPIDX_SHIFT 48 -#define I40IWQPC_ARPIDX_MASK (0xfffULL << I40IWQPC_ARPIDX_SHIFT) +#define I40IWQPC_ARPIDX_MASK (0xffffULL << I40IWQPC_ARPIDX_SHIFT)#define I40IWQPC_FLOWLABEL_SHIFT 0#define I40IWQPC_FLOWLABEL_MASK (0xfffffUL << I40IWQPC_FLOWLABEL_SHIFT)
@@ -1516,7 +1516,7 @@ enum i40iw_alignment {I40IW_AEQ_ALIGNMENT =0x100 ,I40IW_CEQ_ALIGNMENT =0x100 ,I40IW_CQ0_ALIGNMENT =0x100 , - I40IW_SD_BUF_ALIGNMENT = 0x100 + I40IW_SD_BUF_ALIGNMENT = 0x80 };#define I40IW_WQE_SIZE_64 64
@@ -1524,6 +1524,8 @@ enum i40iw_alignment {#define I40IW_QP_WQE_MIN_SIZE 32#define I40IW_QP_WQE_MAX_SIZE 128 +#define I40IW_UPDATE_SD_BUF_SIZE 128 +#define I40IW_CQE_QTYPE_RQ 0#define I40IW_CQE_QTYPE_SQ 1
drivers/infiniband/hw/mlx4/qp.c +19 -7
@@ -666,6 +666,19 @@ static int set_qp_rss(struct mlx4_ib_dev *dev, struct mlx4_ib_rss *rss_ctx,return (-EOPNOTSUPP ); } +if (ucmd->rx_hash_fields_mask & ~(MLX4_IB_RX_HASH_SRC_IPV4 | +MLX4_IB_RX_HASH_DST_IPV4 | +MLX4_IB_RX_HASH_SRC_IPV6 | +MLX4_IB_RX_HASH_DST_IPV6 | +MLX4_IB_RX_HASH_SRC_PORT_TCP | +MLX4_IB_RX_HASH_DST_PORT_TCP | +MLX4_IB_RX_HASH_SRC_PORT_UDP | +MLX4_IB_RX_HASH_DST_PORT_UDP )) { +pr_debug ("RX Hash fields_mask has unsupported mask (0x%llx)\n" , + ucmd->rx_hash_fields_mask); +return (-EOPNOTSUPP ); + } +if ((ucmd->rx_hash_fields_mask &MLX4_IB_RX_HASH_SRC_IPV4 ) && (ucmd->rx_hash_fields_mask &MLX4_IB_RX_HASH_DST_IPV4 )) { rss_ctx->flags =MLX4_RSS_IPV4 ;
@@ -691,11 +704,11 @@ static int set_qp_rss(struct mlx4_ib_dev *dev, struct mlx4_ib_rss *rss_ctx,return (-EOPNOTSUPP ); } -if (rss_ctx->flags &MLX4_RSS_IPV4 ) { +if (rss_ctx->flags &MLX4_RSS_IPV4 ) rss_ctx->flags |=MLX4_RSS_UDP_IPV4 ; - }else if (rss_ctx->flags &MLX4_RSS_IPV6 ) { +if (rss_ctx->flags &MLX4_RSS_IPV6 ) rss_ctx->flags |=MLX4_RSS_UDP_IPV6 ; - }else { +if (!(rss_ctx->flags & (MLX4_RSS_IPV6 |MLX4_RSS_IPV4 ))) {pr_debug ("RX Hash fields_mask is not supported - UDP must be set with IPv4 or IPv6\n" );return (-EOPNOTSUPP ); }
@@ -707,15 +720,14 @@ static int set_qp_rss(struct mlx4_ib_dev *dev, struct mlx4_ib_rss *rss_ctx,if ((ucmd->rx_hash_fields_mask &MLX4_IB_RX_HASH_SRC_PORT_TCP ) && (ucmd->rx_hash_fields_mask &MLX4_IB_RX_HASH_DST_PORT_TCP )) { -if (rss_ctx->flags &MLX4_RSS_IPV4 ) { +if (rss_ctx->flags &MLX4_RSS_IPV4 ) rss_ctx->flags |=MLX4_RSS_TCP_IPV4 ; - }else if (rss_ctx->flags &MLX4_RSS_IPV6 ) { +if (rss_ctx->flags &MLX4_RSS_IPV6 ) rss_ctx->flags |=MLX4_RSS_TCP_IPV6 ; - }else { +if (!(rss_ctx->flags & (MLX4_RSS_IPV6 |MLX4_RSS_IPV4 ))) {pr_debug ("RX Hash fields_mask is not supported - TCP must be set with IPv4 or IPv6\n" );return (-EOPNOTSUPP ); } - }else if ((ucmd->rx_hash_fields_mask &MLX4_IB_RX_HASH_SRC_PORT_TCP ) || (ucmd->rx_hash_fields_mask &MLX4_IB_RX_HASH_DST_PORT_TCP )) {pr_debug ("RX Hash fields_mask is not supported - both TCP SRC and DST must be set\n" );
drivers/md/raid1.c +4 -0
@@ -810,11 +810,15 @@ static void flush_pending_writes(struct r1conf *conf)spin_lock_irq (&conf->device_lock);if (conf->pending_bio_list.head) { +struct blk_plug plug;struct bio *bio; + bio =bio_list_get (&conf->pending_bio_list); conf->pending_count =0 ;spin_unlock_irq (&conf->device_lock); +blk_start_plug (&plug);flush_bio_list (conf, bio); +blk_finish_plug (&plug); }else spin_unlock_irq (&conf->device_lock); }
drivers/md/raid10.c +4 -0
@@ -890,10 +890,13 @@ static void flush_pending_writes(struct r10conf *conf)spin_lock_irq (&conf->device_lock);if (conf->pending_bio_list.head) { +struct blk_plug plug;struct bio *bio; + bio =bio_list_get (&conf->pending_bio_list); conf->pending_count =0 ;spin_unlock_irq (&conf->device_lock); +blk_start_plug (&plug);/* flush any pending bitmap writes to disk * before proceeding w/ I/O */ bitmap_unplug (conf->mddev->bitmap);
@@ -914,6 +917,7 @@ static void flush_pending_writes(struct r10conf *conf)generic_make_request (bio); bio = next; } +blk_finish_plug (&plug); }else spin_unlock_irq (&conf->device_lock); }
drivers/md/raid5.c +1 -1
@@ -2678,13 +2678,13 @@ static void raid5_error(struct mddev *mddev, struct md_rdev *rdev)pr_debug ("raid456: error called\n" );spin_lock_irqsave (&conf->device_lock, flags); +set_bit (Faulty, &rdev->flags);clear_bit (In_sync, &rdev->flags); mddev->degraded =raid5_calc_degraded (conf);spin_unlock_irqrestore (&conf->device_lock, flags);set_bit (MD_RECOVERY_INTR , &mddev->recovery);set_bit (Blocked, &rdev->flags); -set_bit (Faulty, &rdev->flags);set_mask_bits (&mddev->sb_flags,0 ,BIT (MD_SB_CHANGE_DEVS ) |BIT (MD_SB_CHANGE_PENDING )); pr_crit("md/raid:%s: Disk failure on %s, disabling device.\n"
drivers/media/i2c/Kconfig +1 -0
@@ -660,6 +660,7 @@ config VIDEO_OV13858 tristate "OmniVision OV13858 sensor support" depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API depends on MEDIA_CAMERA_SUPPORT + select V4L2_FWNODE ---help--- This is a Video4Linux2 sensor-level driver for the OmniVision OV13858 camera.
drivers/media/i2c/s5k6aa.c +5 -0
@@ -421,6 +421,7 @@ static int s5k6aa_set_ahb_address(struct i2c_client *client)/** * s5k6aa_configure_pixel_clock - apply ISP main clock/PLL configuration +* @s5k6aa: pointer to &struct s5k6aa describing the device * * Configure the internal ISP PLL for the required output frequency. * Locking: called with s5k6aa.lock mutex held.
@@ -669,6 +670,7 @@ static int s5k6aa_set_input_params(struct s5k6aa *s5k6aa)/** * s5k6aa_configure_video_bus - configure the video output interface +* @s5k6aa: pointer to &struct s5k6aa describing the device * @bus_type: video bus type: parallel or MIPI-CSI * @nlanes: number of MIPI lanes to be used (MIPI-CSI only) *
@@ -724,6 +726,8 @@ static int s5k6aa_new_config_sync(struct i2c_client *client, int timeout,/** * s5k6aa_set_prev_config - write user preview register set +* @s5k6aa: pointer to &struct s5k6aa describing the device +* @preset: s5kaa preset to be applied * * Configure output resolution and color fromat, pixel clock * frequency range, device frame rate type and frame period range.
@@ -777,6 +781,7 @@ static int s5k6aa_set_prev_config(struct s5k6aa *s5k6aa,/** * s5k6aa_initialize_isp - basic ISP MCU initialization +* @sd: pointer to V4L2 sub-device descriptor * * Configure AHB addresses for registers read/write; configure PLLs for * required output pixel clock. The ISP power supply needs to be already
drivers/media/usb/pvrusb2/pvrusb2-hdw.c +12 -0
@@ -3642,6 +3642,12 @@ static int pvr2_send_request_ex(struct pvr2_hdw *hdw, hdw); hdw->ctl_write_urb->actual_length =0 ; hdw->ctl_write_pend_flag = !0 ; +if (usb_urb_ep_type_check (hdw->ctl_write_urb)) { +pvr2_trace ( +PVR2_TRACE_ERROR_LEGS , +"Invalid write control endpoint" ); +return -EINVAL ; + } status =usb_submit_urb (hdw->ctl_write_urb,GFP_KERNEL );if (status <0 ) { pvr2_trace(PVR2_TRACE_ERROR_LEGS,
@@ -3666,6 +3672,12 @@ status); hdw); hdw->ctl_read_urb->actual_length =0 ; hdw->ctl_read_pend_flag = !0 ; +if (usb_urb_ep_type_check (hdw->ctl_read_urb)) { +pvr2_trace ( +PVR2_TRACE_ERROR_LEGS , +"Invalid read control endpoint" ); +return -EINVAL ; + } status =usb_submit_urb (hdw->ctl_read_urb,GFP_KERNEL );if (status <0 ) { pvr2_trace(PVR2_TRACE_ERROR_LEGS,
drivers/misc/mei/hw-me-regs.h +5 -0
@@ -132,6 +132,11 @@#define MEI_DEV_ID_KBP 0xA2BA/* Kaby Point */ #define MEI_DEV_ID_KBP_2 0xA2BB/* Kaby Point 2 */ +#define MEI_DEV_ID_CNP_LP 0x9DE0/* Cannon Point LP */ +#define MEI_DEV_ID_CNP_LP_4 0x9DE4/* Cannon Point LP 4 (iTouch) */ +#define MEI_DEV_ID_CNP_H 0xA360/* Cannon Point H */ +#define MEI_DEV_ID_CNP_H_4 0xA364/* Cannon Point H 4 (iTouch) */ +/* * MEI HW Section */
drivers/misc/mei/pci-me.c +5 -0
@@ -98,6 +98,11 @@ static const struct pci_device_id mei_me_pci_tbl[] = { {MEI_PCI_DEVICE(MEI_DEV_ID_KBP, MEI_ME_PCH8_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_KBP_2, MEI_ME_PCH8_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_LP, MEI_ME_PCH8_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_LP_4, MEI_ME_PCH8_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_H, MEI_ME_PCH8_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_H_4, MEI_ME_PCH8_CFG)}, +/* required last entry */ {0, } };
drivers/net/dsa/mv88e6xxx/chip.c +18 -16
@@ -339,7 +339,7 @@ static void mv88e6xxx_g1_irq_free(struct mv88e6xxx_chip *chip)u16 mask;mv88e6xxx_g1_read (chip,MV88E6XXX_G1_CTL1 , &mask); - mask |=GENMASK (chip->g1_irq.nirqs,0 ); + mask &= ~GENMASK (chip->g1_irq.nirqs,0 );mv88e6xxx_g1_write (chip,MV88E6XXX_G1_CTL1 , mask);free_irq (chip->irq, chip);
@@ -395,7 +395,7 @@ static int mv88e6xxx_g1_irq_setup(struct mv88e6xxx_chip *chip)return 0 ; out_disable: - mask |=GENMASK (chip->g1_irq.nirqs,0 ); + mask &= ~GENMASK (chip->g1_irq.nirqs,0 );mv88e6xxx_g1_write (chip,MV88E6XXX_G1_CTL1 , mask); out_mapping:
@@ -2153,6 +2153,19 @@ static const struct of_device_id mv88e6xxx_mdio_external_match[] = { { }, }; +static void mv88e6xxx_mdios_unregister (struct mv88e6xxx_chip *chip) + +{ +struct mv88e6xxx_mdio_bus *mdio_bus; +struct mii_bus *bus; + +list_for_each_entry (mdio_bus, &chip->mdios, list) { + bus = mdio_bus->bus; + +mdiobus_unregister (bus); + } +} +static int mv88e6xxx_mdios_register (struct mv88e6xxx_chip *chip,struct device_node *np) {
@@ -2177,27 +2190,16 @@ static int mv88e6xxx_mdios_register(struct mv88e6xxx_chip *chip, match =of_match_node (mv88e6xxx_mdio_external_match, child);if (match) { err =mv88e6xxx_mdio_register (chip, child, true); -if (err) +if (err) { +mv88e6xxx_mdios_unregister (chip);return err; + } } }return 0 ; } -static void mv88e6xxx_mdios_unregister (struct mv88e6xxx_chip *chip) - -{ -struct mv88e6xxx_mdio_bus *mdio_bus; -struct mii_bus *bus; - -list_for_each_entry (mdio_bus, &chip->mdios, list) { - bus = mdio_bus->bus; - -mdiobus_unregister (bus); - } -} -static int mv88e6xxx_get_eeprom_len (struct dsa_switch *ds) {struct mv88e6xxx_chip *chip = ds->priv;
drivers/net/ethernet/arc/emac_rockchip.c +5 -2
@@ -220,9 +220,11 @@ static int emac_rockchip_probe(struct platform_device *pdev)/* RMII TX/RX needs always a rate of 25MHz */ err =clk_set_rate (priv->macclk,25000000 ); -if (err) +if (err) {dev_err (dev,"failed to change mac clock rate (%d)\n" , err); + goto out_clk_disable_macclk; + } } err =arc_emac_probe (ndev, interface);
@@ -232,7 +234,8 @@ static int emac_rockchip_probe(struct platform_device *pdev) }return 0 ; - +out_clk_disable_macclk: +clk_disable_unprepare (priv->macclk); out_regulator_disable:if (priv->regulator)regulator_disable (priv->regulator);
drivers/net/ethernet/broadcom/bnxt/bnxt.c +2 -1
@@ -8218,8 +8218,9 @@ static void bnxt_shutdown(struct pci_dev *pdev)if (netif_running (dev))dev_close (dev); +bnxt_ulp_shutdown (bp); +if (system_state ==SYSTEM_POWER_OFF ) { -bnxt_ulp_shutdown (bp);bnxt_clear_int_mode (bp);pci_wake_from_d3 (pdev, bp->wol);pci_set_power_state (pdev, PCI_D3hot);
drivers/net/ethernet/freescale/gianfar.c +9 -2
@@ -1378,9 +1378,11 @@ static int gfar_probe(struct platform_device *ofdev)gfar_init_addr_hash_table (priv); -/* Insert receive time stamps into padding alignment bytes */ +/* Insert receive time stamps into padding alignment bytes, and +* plus 2 bytes padding to ensure the cpu alignment. +*/ if (priv->device_flags &FSL_GIANFAR_DEV_HAS_TIMER ) - priv->padding =8 ; + priv->padding =8 +DEFAULT_PADDING ;if (dev->features &NETIF_F_IP_CSUM || priv->device_flags &FSL_GIANFAR_DEV_HAS_TIMER )
@@ -1790,6 +1792,7 @@ static int init_phy(struct net_device *dev) GFAR_SUPPORTED_GBIT :0 ;phy_interface_t interface;struct phy_device *phydev; +struct ethtool_eee edata; priv->oldlink =0 ; priv->oldspeed =0 ;
@@ -1814,6 +1817,10 @@ static int init_phy(struct net_device *dev)/* Add support for flow control, but don't advertise it by default */ phydev->supported |= (SUPPORTED_Pause | SUPPORTED_Asym_Pause); +/* disable EEE autoneg, EEE not supported by eTSEC */ +memset (&edata,0 ,sizeof (struct ethtool_eee )); +phy_ethtool_set_eee (phydev, &edata); +return 0 ; }
drivers/net/ethernet/marvell/mvpp2.c +1 -1
@@ -5399,7 +5399,7 @@ static int mvpp2_aggr_txq_init(struct platform_device *pdev,u32 txq_dma;/* Allocate memory for TX descriptors */ - aggr_txq->descs =dma_alloc_coherent (&pdev->dev, + aggr_txq->descs =dma_zalloc_coherent (&pdev->dev,MVPP2_AGGR_TXQ_SIZE *MVPP2_DESC_ALIGNED_SIZE , &aggr_txq->descs_dma,GFP_KERNEL );if (!aggr_txq->descs)
drivers/net/ethernet/netronome/nfp/nfp_net_repr.c +6 -9
@@ -84,16 +84,13 @@ nfp_repr_phy_port_get_stats64(struct nfp_port *port, {u8 __iomem *mem = port->eth_stats; -/* TX and RX stats are flipped as we are returning the stats as seen -* at the switch port corresponding to the phys port. -*/ - stats->tx_packets =readq (mem +NFP_MAC_STATS_RX_FRAMES_RECEIVED_OK ); - stats->tx_bytes =readq (mem +NFP_MAC_STATS_RX_IN_OCTETS ); - stats->tx_dropped =readq (mem +NFP_MAC_STATS_RX_IN_ERRORS ); + stats->tx_packets =readq (mem +NFP_MAC_STATS_TX_FRAMES_TRANSMITTED_OK ); + stats->tx_bytes =readq (mem +NFP_MAC_STATS_TX_OUT_OCTETS ); + stats->tx_dropped =readq (mem +NFP_MAC_STATS_TX_OUT_ERRORS ); - stats->rx_packets =readq (mem +NFP_MAC_STATS_TX_FRAMES_TRANSMITTED_OK ); - stats->rx_bytes =readq (mem +NFP_MAC_STATS_TX_OUT_OCTETS ); - stats->rx_dropped =readq (mem +NFP_MAC_STATS_TX_OUT_ERRORS ); + stats->rx_packets =readq (mem +NFP_MAC_STATS_RX_FRAMES_RECEIVED_OK ); + stats->rx_bytes =readq (mem +NFP_MAC_STATS_RX_IN_OCTETS ); + stats->rx_dropped =readq (mem +NFP_MAC_STATS_RX_IN_ERRORS ); } static void
drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c +6 -2
@@ -166,12 +166,12 @@ static int rmnet_map_egress_handler(struct sk_buff *skb,if (skb_headroom (skb) < required_headroom) {if (pskb_expand_head (skb, required_headroom,0 ,GFP_KERNEL )) -return RMNET_MAP_CONSUMED ; + goto fail; } map_header =rmnet_map_add_map_header (skb, additional_header_len,0 );if (!map_header) -return RMNET_MAP_CONSUMED ; + goto fail;if (port->egress_data_format &RMNET_EGRESS_FORMAT_MUXING ) {if (ep->mux_id ==0xff )
@@ -183,6 +183,10 @@ static int rmnet_map_egress_handler(struct sk_buff *skb, skb->protocol =htons (ETH_P_MAP );return RMNET_MAP_SUCCESS ; + +fail: +kfree_skb (skb); +return RMNET_MAP_CONSUMED ; }/* Ingress / Egress Entry Points */
drivers/net/hippi/rrunner.c +1 -1
@@ -1381,8 +1381,8 @@ static int rr_close(struct net_device *dev) rrpriv->info_dma); rrpriv->info =NULL ; -free_irq (pdev->irq, dev);spin_unlock_irqrestore (&rrpriv->lock, flags); +free_irq (pdev->irq, dev);return 0 ; }
drivers/net/ipvlan/ipvlan_core.c +1 -0
@@ -375,6 +375,7 @@ static int ipvlan_process_v4_outbound(struct sk_buff *skb) .flowi4_oif = dev->ifindex, .flowi4_tos = RT_TOS(ip4h->tos), .flowi4_flags = FLOWI_FLAG_ANYSRC, + .flowi4_mark = skb->mark, .daddr = ip4h->daddr, .saddr = ip4h->saddr, };
drivers/net/phy/phylink.c +1 -0
@@ -772,6 +772,7 @@ void phylink_stop(struct phylink *pl)sfp_upstream_stop (pl->sfp_bus);set_bit (PHYLINK_DISABLE_STOPPED , &pl->phylink_disable_state); +queue_work (system_power_efficient_wq, &pl->resolve);flush_work (&pl->resolve); }EXPORT_SYMBOL_GPL (phylink_stop);
drivers/net/phy/sfp.c +5 -3
@@ -358,7 +358,7 @@ static void sfp_sm_link_check_los(struct sfp *sfp)* SFP_OPTIONS_LOS_NORMAL are set? For now, we assume * the same as SFP_OPTIONS_LOS_NORMAL set. */ -if (sfp->id.ext.options &SFP_OPTIONS_LOS_INVERTED ) +if (sfp->id.ext.options &cpu_to_be16 (SFP_OPTIONS_LOS_INVERTED )) los ^=SFP_F_LOS ;if (los)
@@ -583,7 +583,8 @@ static void sfp_sm_event(struct sfp *sfp, unsigned int event)if (event ==SFP_E_TX_FAULT )sfp_sm_fault (sfp, true);else if (event == - (sfp->id.ext.options &SFP_OPTIONS_LOS_INVERTED ? + (sfp->id.ext.options & +cpu_to_be16 (SFP_OPTIONS_LOS_INVERTED ) ?SFP_E_LOS_HIGH :SFP_E_LOS_LOW ))sfp_sm_link_up (sfp);break ;
@@ -593,7 +594,8 @@ static void sfp_sm_event(struct sfp *sfp, unsigned int event)sfp_sm_link_down (sfp);sfp_sm_fault (sfp, true); }else if (event == - (sfp->id.ext.options &SFP_OPTIONS_LOS_INVERTED ? + (sfp->id.ext.options & +cpu_to_be16 (SFP_OPTIONS_LOS_INVERTED ) ?SFP_E_LOS_LOW :SFP_E_LOS_HIGH )) {sfp_sm_link_down (sfp);sfp_sm_next (sfp,SFP_S_WAIT_LOS ,0 );
drivers/net/virtio_net.c +1 -1
@@ -714,7 +714,7 @@ static struct sk_buff *receive_mergeable(struct net_device *dev,int num_skb_frags; buf =virtqueue_get_buf_ctx (rq->vq, &len, &ctx); -if (unlikely (!ctx)) { +if (unlikely (!buf)) { pr_debug("%s: rx error: %d buffers out of %d missing\n", dev->name, num_buf, virtio16_to_cpu(vi->vdev,
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +1 -1
@@ -2064,7 +2064,7 @@ static int brcmf_sdio_txpkt_hdalign(struct brcmf_sdio *bus, struct sk_buff *pkt)return head_pad; } -/** +/* * struct brcmf_skbuff_cb reserves first two bytes in sk_buff::cb for * bus layer usage. */
drivers/net/wireless/mac80211_hwsim.c +5 -0
@@ -3119,6 +3119,11 @@ static int hwsim_new_radio_nl(struct sk_buff *msg, struct genl_info *info)if (info->attrs[HWSIM_ATTR_CHANNELS ]) param.channels =nla_get_u32 (info->attrs[HWSIM_ATTR_CHANNELS ]); +if (param.channels >CFG80211_MAX_NUM_DIFFERENT_CHANNELS ) { +GENL_SET_ERR_MSG (info,"too many channels specified" ); +return -EINVAL ; + } +if (info->attrs[HWSIM_ATTR_NO_VIF ]) param.no_vif = true;
drivers/pci/host/pcie-rcar.c +4 -4
@@ -1146,12 +1146,12 @@ static int rcar_pcie_probe(struct platform_device *pdev) err =rcar_pcie_get_resources (pcie);if (err <0 ) {dev_err (dev,"failed to request resources: %d\n" , err); - goto err_free_bridge; + goto err_free_resource_list; } err =rcar_pcie_parse_map_dma_ranges (pcie, dev->of_node);if (err) - goto err_free_bridge; + goto err_free_resource_list;pm_runtime_enable (dev); err =pm_runtime_get_sync (dev);
@@ -1194,9 +1194,9 @@ static int rcar_pcie_probe(struct platform_device *pdev) err_pm_disable:pm_runtime_disable (dev); -err_free_bridge: -pci_free_host_bridge (bridge); +err_free_resource_list:pci_free_resource_list (&pcie->resources); +pci_free_host_bridge (bridge);return err; }
drivers/pinctrl/intel/pinctrl-denverton.c +1 -1
@@ -207,7 +207,7 @@ static const unsigned int dnv_uart0_pins[] = { 60, 61, 64, 65 };static const unsigned int dnv_uart0_modes[] = {2 ,3 ,1 ,1 };static const unsigned int dnv_uart1_pins[] = {94 ,95 ,96 ,97 };static const unsigned int dnv_uart2_pins[] = {60 ,61 ,62 ,63 }; -static const unsigned int dnv_uart2_modes[] = {1 ,1 ,2 ,2 }; +static const unsigned int dnv_uart2_modes[] = {1 ,2 ,2 ,2 };static const unsigned int dnv_emmc_pins[] = {142 ,143 ,144 ,145 ,146 ,147 ,148 ,149 ,150 ,151 ,152 , };
drivers/pinctrl/sunxi/pinctrl-sun50i-a64.c +1 -1
@@ -428,7 +428,7 @@ static const struct sunxi_desc_pin a64_pins[] = { SUNXI_FUNCTION(0x0, "gpio_in"), SUNXI_FUNCTION(0x1, "gpio_out"), SUNXI_FUNCTION(0x2, "mmc0"), /* D3 */ - SUNXI_FUNCTION(0x4, "uart0")), /* RX */ + SUNXI_FUNCTION(0x3, "uart0")), /* RX */ SUNXI_PIN(SUNXI_PINCTRL_PIN(F, 5), SUNXI_FUNCTION(0x0, "gpio_in"), SUNXI_FUNCTION(0x1, "gpio_out"),
drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c +3 -3
@@ -145,19 +145,19 @@ static const struct sunxi_desc_pin sun9i_a80_pins[] = { SUNXI_FUNCTION(0x0, "gpio_in"), SUNXI_FUNCTION(0x1, "gpio_out"), SUNXI_FUNCTION(0x3, "mcsi"), /* MCLK */ - SUNXI_FUNCTION_IRQ_BANK(0x6, 0, 14)), /* PB_EINT14 */ + SUNXI_FUNCTION_IRQ_BANK(0x6, 1, 14)), /* PB_EINT14 */SUNXI_PIN (SUNXI_PINCTRL_PIN (B ,15 ),SUNXI_FUNCTION (0x0 ,"gpio_in" ),SUNXI_FUNCTION (0x1 ,"gpio_out" ),SUNXI_FUNCTION (0x3 ,"mcsi" ),/* SCK */ SUNXI_FUNCTION (0x4 ,"i2c4" ),/* SCK */ -SUNXI_FUNCTION_IRQ_BANK (0x6 ,0 ,15 )),/* PB_EINT15 */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,1 ,15 )),/* PB_EINT15 */ SUNXI_PIN (SUNXI_PINCTRL_PIN (B ,16 ),SUNXI_FUNCTION (0x0 ,"gpio_in" ),SUNXI_FUNCTION (0x1 ,"gpio_out" ),SUNXI_FUNCTION (0x3 ,"mcsi" ),/* SDA */ SUNXI_FUNCTION (0x4 ,"i2c4" ),/* SDA */ -SUNXI_FUNCTION_IRQ_BANK (0x6 ,0 ,16 )),/* PB_EINT16 */ +SUNXI_FUNCTION_IRQ_BANK (0x6 ,1 ,16 )),/* PB_EINT16 */ /* Hole */ SUNXI_PIN(SUNXI_PINCTRL_PIN(C, 0),
drivers/platform/x86/dell-laptop.c +17 -0
@@ -49,6 +49,7 @@struct quirk_entry {u8 touchpad_led; +u8 kbd_led_levels_off_1;int needs_kbd_timeouts;/*
@@ -79,6 +80,10 @@ static struct quirk_entry quirk_dell_xps13_9333 = { .kbd_timeouts = { 0, 5, 15, 60, 5 * 60, 15 * 60, -1 }, }; +static struct quirk_entry quirk_dell_latitude_e6410 = { + .kbd_led_levels_off_1 = 1, +}; + static struct platform_driver platform_driver = { .driver = { .name = "dell-laptop",
@@ -280,6 +285,15 @@ static const struct dmi_system_id dell_quirks[] __initconst = { }, .driver_data = &quirk_dell_xps13_9333, }, + { + .callback = dmi_matched, + .ident = "Dell Latitude E6410", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Latitude E6410"), + }, + .driver_data = &quirk_dell_latitude_e6410, + }, { } };
@@ -1200,6 +1214,9 @@ static int kbd_get_info(struct kbd_info *info) units = (buffer->output[2 ] >>8 ) &0xFF ; info->levels = (buffer->output[2 ] >>16 ) &0xFF ; +if (quirks && quirks->kbd_led_levels_off_1 && info->levels) + info->levels--; +if (units &BIT (0 )) info->seconds = (buffer->output[3 ] >>0 ) &0xFF ;if (units &BIT (1 ))
drivers/s390/block/dasd_eckd.c +10 -6
@@ -530,10 +530,12 @@ static int prefix_LRE(struct ccw1 *ccw, struct PFX_eckd_data *pfxdata, pfxdata->validity.define_extent =1 ;/* private uid is kept up to date, conf_data may be outdated */ -if (startpriv->uid.type !=UA_BASE_DEVICE ) { +if (startpriv->uid.type ==UA_BASE_PAV_ALIAS ) pfxdata->validity.verify_base =1 ; -if (startpriv->uid.type ==UA_HYPER_PAV_ALIAS ) - pfxdata->validity.hyper_pav =1 ; + +if (startpriv->uid.type ==UA_HYPER_PAV_ALIAS ) { + pfxdata->validity.verify_base =1 ; + pfxdata->validity.hyper_pav =1 ; } rc =define_extent (NULL , dedata, trk, totrk, cmd, basedev, blksize);
@@ -3414,10 +3416,12 @@ static int prepare_itcw(struct itcw *itcw, pfxdata.validity.define_extent =1 ;/* private uid is kept up to date, conf_data may be outdated */ -if (startpriv->uid.type !=UA_BASE_DEVICE ) { +if (startpriv->uid.type ==UA_BASE_PAV_ALIAS ) + pfxdata.validity.verify_base =1 ; + +if (startpriv->uid.type ==UA_HYPER_PAV_ALIAS ) { pfxdata.validity.verify_base =1 ; -if (startpriv->uid.type ==UA_HYPER_PAV_ALIAS ) - pfxdata.validity.hyper_pav =1 ; + pfxdata.validity.hyper_pav =1 ; }switch (cmd) {
drivers/scsi/bfa/bfad_bsg.c +4 -2
@@ -3135,7 +3135,8 @@ bfad_im_bsg_vendor_request(struct bsg_job *job)struct fc_bsg_request *bsg_request = job->request;struct fc_bsg_reply *bsg_reply = job->reply;uint32_t vendor_cmd = bsg_request->rqst_data.h_vendor.vendor_cmd[0 ]; -struct bfad_im_port_s *im_port =shost_priv (fc_bsg_to_shost (job)); +struct Scsi_Host *shost =fc_bsg_to_shost (job); +struct bfad_im_port_s *im_port =bfad_get_im_port (shost);struct bfad_s *bfad = im_port->bfad;struct request_queue *request_q = job->req->q;void *payload_kbuf;
@@ -3357,7 +3358,8 @@ int bfad_im_bsg_els_ct_request(struct bsg_job *job) {struct bfa_bsg_data *bsg_data; -struct bfad_im_port_s *im_port =shost_priv (fc_bsg_to_shost (job)); +struct Scsi_Host *shost =fc_bsg_to_shost (job); +struct bfad_im_port_s *im_port =bfad_get_im_port (shost);struct bfad_s *bfad = im_port->bfad;bfa_bsg_fcpt_t *bsg_fcpt;struct bfad_fcxp *drv_fcxp;
drivers/scsi/bfa/bfad_im.c +4 -2
@@ -546,6 +546,7 @@ int bfad_im_scsi_host_alloc(struct bfad_s *bfad, struct bfad_im_port_s *im_port, struct device *dev) { + struct bfad_im_port_pointer *im_portp;int error =1 ;mutex_lock (&bfad_mutex);
@@ -564,7 +565,8 @@ bfad_im_scsi_host_alloc(struct bfad_s *bfad, struct bfad_im_port_s *im_port, goto out_free_idr; } - im_port->shost->hostdata[0 ] = (unsigned long )im_port; + im_portp =shost_priv (im_port->shost); + im_portp->p = im_port; im_port->shost->unique_id = im_port->idr_id; im_port->shost->this_id =-1 ; im_port->shost->max_id =MAX_FCP_TARGET ;
@@ -748,7 +750,7 @@ bfad_scsi_host_alloc(struct bfad_im_port_s *im_port, struct bfad_s *bfad) sht->sg_tablesize = bfad->cfg_data.io_max_sge; -return scsi_host_alloc (sht,sizeof (unsigned long )); +return scsi_host_alloc (sht,sizeof (struct bfad_im_port_pointer )); }void
drivers/scsi/bfa/bfad_im.h +10 -0
@@ -69,6 +69,16 @@ struct bfad_im_port_s {struct fc_vport *fc_vport; }; +struct bfad_im_port_pointer { +struct bfad_im_port_s *p; +}; + +static inline struct bfad_im_port_s *bfad_get_im_port (struct Scsi_Host *host) +{ +struct bfad_im_port_pointer *im_portp =shost_priv (host); +return im_portp->p; +} +enum bfad_itnim_state {ITNIM_STATE_NONE ,ITNIM_STATE_ONLINE ,
drivers/scsi/lpfc/lpfc_mem.c +1 -1
@@ -753,12 +753,12 @@ lpfc_rq_buf_free(struct lpfc_hba *phba, struct lpfc_dmabuf *mp) drqe.address_hi =putPaddrHigh (rqb_entry->dbuf.phys); rc =lpfc_sli4_rq_put (rqb_entry->hrq, rqb_entry->drq, &hrqe, &drqe);if (rc <0 ) { - (rqbp->rqb_free_buffer)(phba, rqb_entry);lpfc_printf_log (phba,KERN_ERR ,LOG_INIT ,"6409 Cannot post to RQ %d: %x %x\n" , rqb_entry->hrq->queue_id, rqb_entry->hrq->host_index, rqb_entry->hrq->hba_index); + (rqbp->rqb_free_buffer)(phba, rqb_entry); }else {list_add_tail (&rqb_entry->hbuf.list, &rqbp->rqb_buffer_list); rqbp->buffer_count++;
drivers/soc/amlogic/meson-gx-socinfo.c +2 -2
@@ -20,8 +20,8 @@#define AO_SEC_SOCINFO_OFFSET AO_SEC_SD_CFG8#define SOCINFO_MAJOR GENMASK(31, 24) -#define SOCINFO_MINOR GENMASK(23, 16) -#define SOCINFO_PACK GENMASK(15, 8) +#define SOCINFO_PACK GENMASK(23, 16) +#define SOCINFO_MINOR GENMASK(15, 8)#define SOCINFO_MISC GENMASK(7, 0) static const struct meson_gx_soc_id {
drivers/spi/spi-sun4i.c +1 -1
@@ -525,7 +525,7 @@ static int sun4i_spi_probe(struct platform_device *pdev)static int sun4i_spi_remove (struct platform_device *pdev) { -pm_runtime_disable (&pdev->dev); +pm_runtime_force_suspend (&pdev->dev);return 0 ; }
drivers/staging/android/ashmem.c +11 -8
@@ -710,30 +710,32 @@ static int ashmem_pin_unpin(struct ashmem_area *asma, unsigned long cmd,size_t pgstart, pgend;int ret = -EINVAL ; +mutex_lock (&ashmem_mutex); +if (unlikely (!asma->file)) -return -EINVAL ; + goto out_unlock; -if (unlikely (copy_from_user (&pin, p,sizeof (pin)))) -return -EFAULT ; +if (unlikely (copy_from_user (&pin, p,sizeof (pin)))) { + ret = -EFAULT ; + goto out_unlock; + }/* per custom, you can pass zero for len to mean "everything onward" */ if (!pin.len) pin.len =PAGE_ALIGN (asma->size) - pin.offset;if (unlikely ((pin.offset | pin.len) & ~PAGE_MASK )) -return -EINVAL ; + goto out_unlock;if (unlikely (((__u32)-1 ) - pin.offset < pin.len)) -return -EINVAL ; + goto out_unlock;if (unlikely (PAGE_ALIGN (asma->size) < pin.offset + pin.len)) -return -EINVAL ; + goto out_unlock; pgstart = pin.offset /PAGE_SIZE ; pgend = pgstart + (pin.len /PAGE_SIZE ) -1 ; -mutex_lock (&ashmem_mutex); -switch (cmd) {case ASHMEM_PIN : ret =ashmem_pin (asma, pgstart, pgend);
@@ -746,6 +748,7 @@ static int ashmem_pin_unpin(struct ashmem_area *asma, unsigned long cmd,break ; } +out_unlock:mutex_unlock (&ashmem_mutex);return ret;
drivers/staging/android/ion/ion-ioctl.c +3 -1
@@ -71,8 +71,10 @@ long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)return -EFAULT ; ret =validate_ioctl_arg (cmd, &data); -if (WARN_ON_ONCE (ret)) +if (ret) { +pr_warn_once ("%s: ioctl validate failed\n" , __func__);return ret; + }if (!(dir & _IOC_WRITE))memset (&data,0 ,sizeof (data));
drivers/staging/android/ion/ion_system_heap.c +1 -1
@@ -371,7 +371,7 @@ static int ion_system_contig_heap_allocate(struct ion_heap *heap,unsigned long i;int ret; - page =alloc_pages (low_order_gfp_flags, order); + page =alloc_pages (low_order_gfp_flags | __GFP_NOWARN, order);if (!page)return -ENOMEM ;
drivers/staging/ccree/ssi_hash.c +1 -1
@@ -1781,7 +1781,7 @@ static int ssi_ahash_import(struct ahash_request *req, const void *in)struct device *dev = &ctx->drvdata->plat_dev->dev;struct ahash_req_ctx *state =ahash_request_ctx (req);u32 tmp; -int rc; +int rc =0 ;memcpy (&tmp, in,sizeof (u32));if (tmp !=CC_EXPORT_MAGIC ) {
drivers/staging/fsl-mc/bus/Kconfig +1 -1
@@ -8,7 +8,7 @@ config FSL_MC_BUS bool "QorIQ DPAA2 fsl-mc bus driver" - depends on OF && (ARCH_LAYERSCAPE || (COMPILE_TEST && (ARM || ARM64 || X86 || PPC))) + depends on OF && (ARCH_LAYERSCAPE || (COMPILE_TEST && (ARM || ARM64 || X86_LOCAL_APIC || PPC))) select GENERIC_MSI_IRQ_DOMAIN help Driver to enable the bus infrastructure for the QorIQ DPAA2
drivers/staging/iio/adc/ad7192.c +19 -8
@@ -141,6 +141,8 @@#define AD7192_GPOCON_P1DAT BIT(1)/* P1 state */ #define AD7192_GPOCON_P0DAT BIT(0)/* P0 state */ +#define AD7192_EXT_FREQ_MHZ_MIN 2457600 +#define AD7192_EXT_FREQ_MHZ_MAX 5120000#define AD7192_INT_FREQ_MHZ 4915200/* NOTE:
@@ -217,6 +219,12 @@ static int ad7192_calibrate_all(struct ad7192_state *st) ARRAY_SIZE(ad7192_calib_arr)); } +static inline bool ad7192_valid_external_frequency (u32 freq) +{ +return (freq >=AD7192_EXT_FREQ_MHZ_MIN && + freq <=AD7192_EXT_FREQ_MHZ_MAX ); +} +static int ad7192_setup (struct ad7192_state *st,const struct ad7192_platform_data *pdata) {
@@ -242,17 +250,20 @@ static int ad7192_setup(struct ad7192_state *st, id);switch (pdata->clock_source_sel) { -case AD7192_CLK_EXT_MCLK1_2 : -case AD7192_CLK_EXT_MCLK2 : - st->mclk =AD7192_INT_FREQ_MHZ ; -break ;case AD7192_CLK_INT :case AD7192_CLK_INT_CO : -if (pdata->ext_clk_hz) - st->mclk = pdata->ext_clk_hz; -else - st->mclk =AD7192_INT_FREQ_MHZ ; + st->mclk =AD7192_INT_FREQ_MHZ ;break ; +case AD7192_CLK_EXT_MCLK1_2 : +case AD7192_CLK_EXT_MCLK2 : +if (ad7192_valid_external_frequency (pdata->ext_clk_hz)) { + st->mclk = pdata->ext_clk_hz; +break ; + } +dev_err (&st->sd.spi->dev,"Invalid frequency setting %u\n" , + pdata->ext_clk_hz); + ret = -EINVAL ; + goto out;default : ret = -EINVAL ; goto out;
drivers/staging/iio/impedance-analyzer/ad5933.c +1 -3
@@ -649,8 +649,6 @@ static int ad5933_register_ring_funcs_and_init(struct iio_dev *indio_dev)/* Ring buffer functions - here trigger setup related */ indio_dev->setup_ops = &ad5933_ring_setup_ops; - indio_dev->modes |=INDIO_BUFFER_HARDWARE ; -return 0 ; }
@@ -763,7 +761,7 @@ static int ad5933_probe(struct i2c_client *client, indio_dev->dev.parent = &client->dev; indio_dev->info = &ad5933_info; indio_dev->name = id->name; - indio_dev->modes =INDIO_DIRECT_MODE ; + indio_dev->modes = (INDIO_BUFFER_SOFTWARE |INDIO_DIRECT_MODE ); indio_dev->channels = ad5933_channels; indio_dev->num_channels =ARRAY_SIZE (ad5933_channels);
drivers/usb/core/urb.c +26 -4
@@ -187,6 +187,31 @@ EXPORT_SYMBOL_GPL(usb_unanchor_urb);/*-------------------------------------------------------------------*/ +static const int pipetypes[4 ] = { +PIPE_CONTROL ,PIPE_ISOCHRONOUS ,PIPE_BULK ,PIPE_INTERRUPT +}; + +/** +* usb_urb_ep_type_check - sanity check of endpoint in the given urb +* @urb: urb to be checked +* +* This performs a light-weight sanity check for the endpoint in the +* given urb. It returns 0 if the urb contains a valid endpoint, otherwise +* a negative error code. +*/ +int usb_urb_ep_type_check (const struct urb *urb) +{ +const struct usb_host_endpoint *ep; + + ep =usb_pipe_endpoint (urb->dev, urb->pipe); +if (!ep) +return -EINVAL ; +if (usb_pipetype (urb->pipe) != pipetypes[usb_endpoint_type (&ep->desc)]) +return -EINVAL ; +return 0 ; +} +EXPORT_SYMBOL_GPL (usb_urb_ep_type_check); +/** * usb_submit_urb - issue an asynchronous transfer request for an endpoint * @urb: pointer to the urb describing the request
@@ -326,9 +351,6 @@ EXPORT_SYMBOL_GPL(usb_unanchor_urb);*/ int usb_submit_urb (struct urb *urb,gfp_t mem_flags) { -static int pipetypes[4 ] = { -PIPE_CONTROL ,PIPE_ISOCHRONOUS ,PIPE_BULK ,PIPE_INTERRUPT - };int xfertype, max;struct usb_device *dev;struct usb_host_endpoint *ep;
@@ -444,7 +466,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags)*/ /* Check that the pipe's type matches the endpoint's type */ -if (usb_pipetype (urb->pipe) != pipetypes[xfertype]) +if (usb_urb_ep_type_check (urb))dev_WARN (&dev->dev,"BOGUS urb xfer, pipe %x != type %x\n" ,usb_pipetype (urb->pipe), pipetypes[xfertype]);
drivers/usb/dwc3/dwc3-of-simple.c +3 -1
@@ -57,8 +57,10 @@ static int dwc3_of_simple_clk_init(struct dwc3_of_simple *simple, int count) clk =of_clk_get (np, i);if (IS_ERR (clk)) { -while (--i >=0 ) +while (--i >=0 ) { +clk_disable_unprepare (simple->clks[i]);clk_put (simple->clks[i]); + }return PTR_ERR (clk); }
drivers/usb/dwc3/gadget.c +1 -1
@@ -267,7 +267,7 @@ int dwc3_send_gadget_ep_cmd(struct dwc3_ep *dep, unsigned cmd, {const struct usb_endpoint_descriptor *desc = dep->endpoint.desc;struct dwc3 *dwc = dep->dwc; -u32 timeout =500 ; +u32 timeout =1000 ;u32 reg;int cmd_status =0 ;
drivers/usb/usbip/stub_dev.c +3 -0
@@ -87,6 +87,7 @@ static ssize_t store_sockfd(struct device *dev, struct device_attribute *attr, goto err; sdev->ud.tcp_socket = socket; + sdev->ud.sockfd = sockfd;spin_unlock_irq (&sdev->ud.lock);
@@ -186,6 +187,7 @@ static void stub_shutdown_connection(struct usbip_device *ud)if (ud->tcp_socket) {sockfd_put (ud->tcp_socket); ud->tcp_socket =NULL ; + ud->sockfd =-1 ; }/* 3. free used data */
@@ -280,6 +282,7 @@ static struct stub_device *stub_device_alloc(struct usb_device *udev) sdev->ud.status =SDEV_ST_AVAILABLE ;spin_lock_init (&sdev->ud.lock); sdev->ud.tcp_socket =NULL ; + sdev->ud.sockfd =-1 ;INIT_LIST_HEAD (&sdev->priv_init);INIT_LIST_HEAD (&sdev->priv_tx);
drivers/usb/usbip/vhci_hcd.c +2 -0
@@ -998,6 +998,7 @@ static void vhci_shutdown_connection(struct usbip_device *ud)if (vdev->ud.tcp_socket) {sockfd_put (vdev->ud.tcp_socket); vdev->ud.tcp_socket =NULL ; + vdev->ud.sockfd =-1 ; }pr_info ("release socket\n" );
@@ -1044,6 +1045,7 @@ static void vhci_device_reset(struct usbip_device *ud)if (ud->tcp_socket) {sockfd_put (ud->tcp_socket); ud->tcp_socket =NULL ; + ud->sockfd =-1 ; } ud->status =VDEV_ST_NULL ;
drivers/vhost/vhost.c +1 -1
@@ -904,7 +904,7 @@ static void vhost_dev_lock_vqs(struct vhost_dev *d) {int i =0 ;for (i =0 ; i < d->nvqs; ++i) -mutex_lock (&d->vqs[i]->mutex); +mutex_lock_nested (&d->vqs[i]->mutex, i); }static void vhost_dev_unlock_vqs (struct vhost_dev *d)
drivers/video/fbdev/mmp/core.c +5 -0
@@ -23,6 +23,7 @@#include <linux/slab.h> #include <linux/dma-mapping.h> #include <linux/export.h> +#include <linux/module.h> #include <video/mmp_disp.h> static struct mmp_overlay *path_get_overlay(struct mmp_path *path,
@@ -249,3 +250,7 @@ void mmp_unregister_path(struct mmp_path *path)mutex_unlock (&disp_lock); }EXPORT_SYMBOL_GPL (mmp_unregister_path); + +MODULE_AUTHOR ("Zhou Zhu <[email protected]>" ); +MODULE_DESCRIPTION ("Marvell MMP display framework" ); +MODULE_LICENSE ("GPL" );
drivers/xen/Kconfig +1 -1
@@ -258,7 +258,7 @@ config XEN_ACPI_HOTPLUG_CPU config XEN_ACPI_PROCESSOR tristate "Xen ACPI processor" - depends on XEN && X86 && ACPI_PROCESSOR && CPU_FREQ + depends on XEN && XEN_DOM0 && X86 && ACPI_PROCESSOR && CPU_FREQ default m help This ACPI processor uploads Power Management information to the Xen
fs/btrfs/disk-io.c +5 -7
@@ -3391,6 +3391,7 @@ static int write_dev_supers(struct btrfs_device *device,int errors =0 ;u32 crc;u64 bytenr; +int op_flags;if (max_mirrors ==0 ) max_mirrors =BTRFS_SUPER_MIRROR_MAX ;
@@ -3433,13 +3434,10 @@ static int write_dev_supers(struct btrfs_device *device,* we fua the first super. The others we allow * to go down lazy. */ -if (i ==0 ) { - ret =btrfsic_submit_bh (REQ_OP_WRITE , -REQ_SYNC |REQ_FUA |REQ_META |REQ_PRIO , bh); - }else { - ret =btrfsic_submit_bh (REQ_OP_WRITE , -REQ_SYNC |REQ_META |REQ_PRIO , bh); - } + op_flags =REQ_SYNC |REQ_META |REQ_PRIO ; +if (i ==0 && !btrfs_test_opt (device->fs_info,NOBARRIER )) + op_flags |=REQ_FUA ; + ret =btrfsic_submit_bh (REQ_OP_WRITE , op_flags, bh);if (ret) errors++; }
fs/btrfs/inode.c +2 -0
@@ -3016,6 +3016,8 @@ static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent) compress_type = ordered_extent->compress_type;if (test_bit (BTRFS_ORDERED_PREALLOC , &ordered_extent->flags)) {BUG_ON (compress_type); +btrfs_qgroup_free_data (inode,NULL , ordered_extent->file_offset, + ordered_extent->len); ret = btrfs_mark_extent_written(trans, BTRFS_I(inode), ordered_extent->file_offset, ordered_extent->file_offset +
fs/btrfs/ioctl.c +1 -1
@@ -2221,7 +2221,7 @@ static noinline int btrfs_search_path_in_tree(struct btrfs_fs_info *info,if (!path)return -ENOMEM ; - ptr = &name[BTRFS_INO_LOOKUP_PATH_MAX ]; + ptr = &name[BTRFS_INO_LOOKUP_PATH_MAX -1 ]; key.objectid = tree_id; key.type =BTRFS_ROOT_ITEM_KEY ;
fs/notify/dnotify/dnotify.c +6 -1
@@ -319,7 +319,11 @@ int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg) dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark);spin_lock (&fsn_mark->lock); }else { -fsnotify_add_mark_locked (new_fsn_mark, inode,NULL ,0 ); + error =fsnotify_add_mark_locked (new_fsn_mark, inode,NULL ,0 ); +if (error) { +mutex_unlock (&dnotify_group->mark_mutex); + goto out_err; + }spin_lock (&new_fsn_mark->lock); fsn_mark = new_fsn_mark; dn_mark = new_dn_mark;
@@ -345,6 +349,7 @@ int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg)*/ if (dn_mark == new_dn_mark) destroy =1 ; + error =0 ; goto out; }
include/linux/ptr_ring.h +10 -5
@@ -445,9 +445,14 @@ static inline int ptr_ring_consume_batched_bh(struct ptr_ring *r, __PTR_RING_PEEK_CALL_v; \ }) +/* Not all gfp_t flags (besides GFP_KERNEL) are allowed. See +* documentation for vmalloc for which of them are legal. +*/ static inline void **__ptr_ring_init_queue_alloc (unsigned int size,gfp_t gfp) { -return kcalloc (size,sizeof (void *), gfp); +if (size *sizeof (void *) >KMALLOC_MAX_SIZE ) +return NULL ; +return kvmalloc_array (size,sizeof (void *), gfp | __GFP_ZERO); }static inline void __ptr_ring_set_size (struct ptr_ring *r,int size)
@@ -580,7 +585,7 @@ static inline int ptr_ring_resize(struct ptr_ring *r, int size, gfp_t gfp,spin_unlock (&(r)->producer_lock);spin_unlock_irqrestore (&(r)->consumer_lock, flags); -kfree (old); +kvfree (old);return 0 ; }
@@ -620,7 +625,7 @@ static inline int ptr_ring_resize_multiple(struct ptr_ring **rings, }for (i =0 ; i < nrings; ++i) -kfree (queues[i]); +kvfree (queues[i]);kfree (queues);
@@ -628,7 +633,7 @@ static inline int ptr_ring_resize_multiple(struct ptr_ring **rings, nomem:while (--i >=0 ) -kfree (queues[i]); +kvfree (queues[i]);kfree (queues);
@@ -643,7 +648,7 @@ static inline void ptr_ring_cleanup(struct ptr_ring *r, void (*destroy)(void *))if (destroy)while ((ptr =ptr_ring_consume (r)))destroy (ptr); - kfree(r->queue); + kvfree(r->queue); }#endif /* _LINUX_PTR_RING_H */
include/linux/serdev.h +1 -1
@@ -184,7 +184,7 @@ static inline int serdev_controller_receive_buf(struct serdev_controller *ctrl,struct serdev_device *serdev = ctrl->serdev;if (!serdev || !serdev->ops->receive_buf) -return -EINVAL ; +return 0 ;return serdev->ops->receive_buf (serdev, data, count); }
include/linux/usb.h +2 -0
@@ -1729,6 +1729,8 @@ static inline int usb_urb_dir_out(struct urb *urb)return (urb->transfer_flags &URB_DIR_MASK ) ==URB_DIR_OUT ; } +int usb_urb_ep_type_check (const struct urb *urb); +void *usb_alloc_coherent (struct usb_device *dev,size_t size,gfp_t mem_flags,dma_addr_t *dma); void usb_free_coherent(struct usb_device *dev, size_t size,
include/net/cfg80211.h +2 -0
@@ -815,6 +815,8 @@ struct cfg80211_csa_settings {u8 count; }; +#define CFG80211_MAX_NUM_DIFFERENT_CHANNELS 10 +/** * struct iface_combination_params - input parameters for interface combinations *
include/net/red.h +12 -1
@@ -168,6 +168,17 @@ static inline void red_set_vars(struct red_vars *v) v->qcount =-1 ; } +static inline bool red_check_params (u32 qth_min,u32 qth_max,u8 Wlog) +{ +if (fls (qth_min) + Wlog >32 ) +return false; +if (fls (qth_max) + Wlog >32 ) +return false; +if (qth_max < qth_min) +return false; +return true; +} +static inline void red_set_parms (struct red_parms *p,u32 qth_min,u32 qth_max,u8 Wlog,u8 Plog,u8 Scell_log,u8 *stab,u32 max_P)
@@ -179,7 +190,7 @@ static inline void red_set_parms(struct red_parms *p, p->qth_max = qth_max << Wlog; p->Wlog = Wlog; p->Plog = Plog; -if (delta <0 ) +if (delta <=0 ) delta =1 ; p->qth_delta = delta;if (!max_P) {
include/net/sctp/sctp.h +2 -1
@@ -444,7 +444,8 @@ static inline int sctp_frag_point(const struct sctp_association *asoc, int pmtu)if (asoc->user_frag) frag =min_t (int, frag, asoc->user_frag); - frag =SCTP_TRUNC4 (min_t (int, frag,SCTP_MAX_CHUNK_LEN )); + frag =SCTP_TRUNC4 (min_t (int, frag,SCTP_MAX_CHUNK_LEN - +sizeof (struct sctp_data_chunk )));return frag; }
include/trace/events/clk.h +2 -2
@@ -134,12 +134,12 @@ DECLARE_EVENT_CLASS(clk_parent,TP_STRUCT__entry ( __string( name, core->name ) -__string ( pname, parent->name ) +__string ( pname, parent ? parent->name :"none" ) ),TP_fast_assign ( __assign_str(name, core->name); -__assign_str (pname, parent->name); +__assign_str (pname, parent ? parent->name :"none" ); ),TP_printk ("%s %s" ,__get_str (name),__get_str (pname))
include/trace/events/xdp.h +1 -0
@@ -8,6 +8,7 @@#include <linux/netdevice.h> #include <linux/filter.h> #include <linux/tracepoint.h> +#include <linux/bpf.h> #define __XDP_ACT_MAP (FN ) \ FN(ABORTED) \
kernel/bpf/verifier.c +16 -9
@@ -1865,15 +1865,13 @@ static int adjust_ptr_min_max_vals(struct bpf_verifier_env *env, dst_reg = ®s[dst]; -if (WARN_ON_ONCE (known && (smin_val != smax_val))) { -print_verifier_state (&env->cur_state); -verbose ("verifier internal error: known but bad sbounds\n" ); -return -EINVAL ; - } -if (WARN_ON_ONCE (known && (umin_val != umax_val))) { -print_verifier_state (&env->cur_state); -verbose ("verifier internal error: known but bad ubounds\n" ); -return -EINVAL ; +if ((known && (smin_val != smax_val || umin_val != umax_val)) || + smin_val > smax_val || umin_val > umax_val) { +/* Taint dst register if offset had invalid bounds derived from +* e.g. dead branches. +*/ +__mark_reg_unknown (dst_reg); +return 0 ; }if (BPF_CLASS (insn->code) !=BPF_ALU64 ) {
@@ -2075,6 +2073,15 @@ static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env, src_known =tnum_is_const (src_reg.var_off); dst_known =tnum_is_const (dst_reg->var_off); +if ((src_known && (smin_val != smax_val || umin_val != umax_val)) || + smin_val > smax_val || umin_val > umax_val) { +/* Taint dst register if offset had invalid bounds derived from +* e.g. dead branches. +*/ +__mark_reg_unknown (dst_reg); +return 0 ; + } +if (!src_known && opcode !=BPF_ADD && opcode !=BPF_SUB && opcode !=BPF_AND ) {__mark_reg_unknown (dst_reg);
kernel/events/core.c +4 -1
@@ -6719,6 +6719,7 @@ static void perf_event_namespaces_output(struct perf_event *event,struct perf_namespaces_event *namespaces_event = data;struct perf_output_handle handle;struct perf_sample_data sample; +u16 header_size = namespaces_event->event_id.header.size;int ret;if (!perf_event_namespaces_match (event))
@@ -6729,7 +6730,7 @@ static void perf_event_namespaces_output(struct perf_event *event, ret =perf_output_begin (&handle, event, namespaces_event->event_id.header.size);if (ret) -return ; + goto out; namespaces_event->event_id.pid =perf_event_pid (event, namespaces_event->task);
@@ -6741,6 +6742,8 @@ static void perf_event_namespaces_output(struct perf_event *event,perf_event__output_id_sample (event, &handle, &sample);perf_output_end (&handle); +out: + namespaces_event->event_id.header.size = header_size; } static void perf_fill_ns_link_info(struct perf_ns_link_info *ns_link_info,
kernel/kcov.c +2 -2
@@ -225,9 +225,9 @@ static int kcov_ioctl_locked(struct kcov *kcov, unsigned int cmd,if (unused !=0 || kcov->mode ==KCOV_MODE_DISABLED || kcov->area ==NULL )return -EINVAL ; -if (kcov->t !=NULL ) -return -EBUSY ; t = current; +if (kcov->t !=NULL || t->kcov !=NULL ) +return -EBUSY ;/* Cache in task struct for performance. */ t->kcov_size = kcov->size; t->kcov_area = kcov->area;
kernel/locking/lockdep.c +2 -1
@@ -4777,7 +4777,8 @@ void lockdep_invariant_state(bool force)* Verify the former, enforce the latter. */ WARN_ON_ONCE (!force && current->lockdep_depth); -invalidate_xhlock (&xhlock (current->xhlock_idx)); +if (current->xhlocks) +invalidate_xhlock (&xhlock (current->xhlock_idx)); }static int cross_lock (struct lockdep_map *lock)
kernel/trace/blktrace.c +22 -10
@@ -66,7 +66,8 @@ static struct tracer_flags blk_tracer_flags = { };/* Global reference count of probes */ -static atomic_t blk_probes_ref =ATOMIC_INIT (0 ); +static DEFINE_MUTEX (blk_probe_mutex); +static int blk_probes_ref;static void blk_register_tracepoints (void );static void blk_unregister_tracepoints (void );
@@ -329,11 +330,26 @@ static void blk_trace_free(struct blk_trace *bt)kfree (bt); } +static void get_probe_ref (void ) +{ +mutex_lock (&blk_probe_mutex); +if (++blk_probes_ref ==1 ) +blk_register_tracepoints (); +mutex_unlock (&blk_probe_mutex); +} + +static void put_probe_ref (void ) +{ +mutex_lock (&blk_probe_mutex); +if (!--blk_probes_ref) +blk_unregister_tracepoints (); +mutex_unlock (&blk_probe_mutex); +} +static void blk_trace_cleanup (struct blk_trace *bt) {blk_trace_free (bt); -if (atomic_dec_and_test (&blk_probes_ref)) -blk_unregister_tracepoints (); +put_probe_ref (); }int blk_trace_remove (struct request_queue *q)
@@ -538,8 +554,7 @@ static int do_blk_trace_setup(struct request_queue *q, char *name, dev_t dev,if (cmpxchg (&q->blk_trace,NULL , bt)) goto err; -if (atomic_inc_return (&blk_probes_ref) ==1 ) -blk_register_tracepoints (); +get_probe_ref (); ret =0 ; err:
@@ -1558,9 +1573,7 @@ static int blk_trace_remove_queue(struct request_queue *q)if (bt ==NULL )return -EINVAL ; -if (atomic_dec_and_test (&blk_probes_ref)) -blk_unregister_tracepoints (); - +put_probe_ref ();blk_trace_free (bt);return 0 ; }
@@ -1591,8 +1604,7 @@ static int blk_trace_setup_queue(struct request_queue *q,if (cmpxchg (&q->blk_trace,NULL , bt)) goto free_bt; -if (atomic_inc_return (&blk_probes_ref) ==1 ) -blk_register_tracepoints (); +get_probe_ref ();return 0 ; free_bt:
lib/oid_registry.c +6 -2
@@ -116,7 +116,7 @@ int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize)int count;if (v >= end) -return -EBADMSG ; + goto bad; n = *v++; ret = count =snprintf (buffer, bufsize,"%u.%u" , n /40 , n %40 );
@@ -134,7 +134,7 @@ int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize) num = n &0x7f ; do { if (v >= end) - return -EBADMSG; + goto bad; n = *v++; num <<= 7; num |= n & 0x7f;
@@ -148,6 +148,10 @@ int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize) }return ret; + +bad: +snprintf (buffer, bufsize,"(bad)" ); +return -EBADMSG ; }EXPORT_SYMBOL_GPL (sprint_oid);
mm/early_ioremap.c +1 -1
@@ -111,7 +111,7 @@ __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot)enum fixed_addresses idx;int i, slot; -WARN_ON (system_state !=SYSTEM_BOOTING ); +WARN_ON (system_state >=SYSTEM_RUNNING ); slot =-1 ;for (i =0 ; i <FIX_BTMAPS_SLOTS ; i++) {
mm/vmalloc.c +7 -3
@@ -1943,11 +1943,15 @@ void *vmalloc_exec(unsigned long size) }#if defined(CONFIG_64BIT ) && defined(CONFIG_ZONE_DMA32 ) -#define GFP_VMALLOC32 GFP_DMA32 | GFP_KERNEL +#define GFP_VMALLOC32 (GFP_DMA32 | GFP_KERNEL)#elif defined(CONFIG_64BIT ) && defined(CONFIG_ZONE_DMA ) -#define GFP_VMALLOC32 GFP_DMA | GFP_KERNEL +#define GFP_VMALLOC32 (GFP_DMA | GFP_KERNEL)#else -#define GFP_VMALLOC32 GFP_KERNEL +/* +* 64b systems should always have either DMA or DMA32 zones. For others +* GFP_DMA32 should do the right thing and use the normal zone. +*/ +#define GFP_VMALLOC32 GFP_DMA32 | GFP_KERNEL#endif /**
mm/vmscan.c +3 -0
@@ -297,10 +297,13 @@ EXPORT_SYMBOL(register_shrinker);*/ void unregister_shrinker (struct shrinker *shrinker) { +if (!shrinker->nr_deferred) +return ;down_write (&shrinker_rwsem);list_del (&shrinker->list);up_write (&shrinker_rwsem);kfree (shrinker->nr_deferred); + shrinker->nr_deferred =NULL ; }EXPORT_SYMBOL (unregister_shrinker);
net/core/dev.c +1 -1
@@ -2792,7 +2792,7 @@ struct sk_buff *__skb_gso_segment(struct sk_buff *skb, segs =skb_mac_gso_segment (skb, features); -if (unlikely (skb_needs_check (skb, tx_path))) +if (unlikely (skb_needs_check (skb, tx_path) && !IS_ERR (segs)))skb_warn_bad_offload (skb);return segs;
net/core/gen_estimator.c +4 -0
@@ -159,7 +159,11 @@ int gen_new_estimator(struct gnet_stats_basic_packed *bstats, est->intvl_log = intvl_log; est->cpu_bstats = cpu_bstats; +if (stats_lock) +local_bh_disable ();est_fetch_counters (est, &b); +if (stats_lock) +local_bh_enable (); est->last_bytes = b.bytes; est->last_packets = b.packets; old =rcu_dereference_protected (*rate_est,1 );
net/decnet/af_decnet.c +33 -29
98 lines not on this page · raw message
net/ipv4/esp4_offload.c +2 -1
@@ -38,7 +38,8 @@ static struct sk_buff **esp4_gro_receive(struct sk_buff **head,__be32 spi;int err; -skb_pull (skb, offset); +if (!pskb_pull (skb, offset)) +return NULL ;if ((err =xfrm_parse_spi (skb,IPPROTO_ESP , &spi, &seq)) !=0 ) goto out;
net/ipv4/ip_sockglue.c +4 -10
@@ -1251,11 +1251,8 @@ int ip_setsockopt(struct sock *sk, int level,if (err == -ENOPROTOOPT && optname !=IP_HDRINCL && optname !=IP_IPSEC_POLICY && optname !=IP_XFRM_POLICY && - !ip_mroute_opt (optname)) { -lock_sock (sk); + !ip_mroute_opt (optname)) err =nf_setsockopt (sk,PF_INET , optname, optval, optlen); -release_sock (sk); - }#endif return err; }
@@ -1280,12 +1277,9 @@ int compat_ip_setsockopt(struct sock *sk, int level, int optname,if (err == -ENOPROTOOPT && optname !=IP_HDRINCL && optname !=IP_IPSEC_POLICY && optname !=IP_XFRM_POLICY && - !ip_mroute_opt (optname)) { -lock_sock (sk); - err =compat_nf_setsockopt (sk,PF_INET , optname, - optval, optlen); -release_sock (sk); - } + !ip_mroute_opt (optname)) + err =compat_nf_setsockopt (sk,PF_INET , optname, optval, + optlen);#endif return err; }
net/ipv4/netfilter/ipt_CLUSTERIP.c +13 -3
@@ -431,7 +431,7 @@ static int clusterip_tg_check(const struct xt_tgchk_param *par)struct ipt_clusterip_tgt_info *cipinfo = par->targinfo;const struct ipt_entry *e = par->entryinfo;struct clusterip_config *config; -int ret; +int ret, i;if (par->nft_compat) {pr_err ("cannot use CLUSTERIP target from nftables compat\n" );
@@ -450,8 +450,18 @@ static int clusterip_tg_check(const struct xt_tgchk_param *par)pr_info ("Please specify destination IP\n" );return -EINVAL ; } - -/* FIXME: further sanity checks */ +if (cipinfo->num_local_nodes >ARRAY_SIZE (cipinfo->local_nodes)) { +pr_info ("bad num_local_nodes %u\n" , cipinfo->num_local_nodes); +return -EINVAL ; + } +for (i =0 ; i < cipinfo->num_local_nodes; i++) { +if (cipinfo->local_nodes[i] -1 >= +sizeof (config->local_nodes) *8 ) { +pr_info ("bad local_nodes[%d] %u\n" , + i, cipinfo->local_nodes[i]); +return -EINVAL ; + } + } config =clusterip_config_find_get (par->net, e->ip.dst.s_addr,1 );if (!config) {
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c +5 -1
@@ -218,15 +218,19 @@ getorigdst(struct sock *sk, int optval, void __user *user, int *len)struct nf_conntrack_tuple tuple;memset (&tuple,0 ,sizeof (tuple)); + +lock_sock (sk); tuple.src.u3.ip = inet->inet_rcv_saddr; tuple.src.u.tcp.port = inet->inet_sport; tuple.dst.u3.ip = inet->inet_daddr; tuple.dst.u.tcp.port = inet->inet_dport; tuple.src.l3num =PF_INET ; tuple.dst.protonum = sk->sk_protocol; +release_sock (sk);/* We only do TCP and SCTP at the moment: is there a better way? */ -if (sk->sk_protocol !=IPPROTO_TCP && sk->sk_protocol !=IPPROTO_SCTP ) { +if (tuple.dst.protonum !=IPPROTO_TCP && + tuple.dst.protonum !=IPPROTO_SCTP ) {pr_debug ("SO_ORIGINAL_DST: Not a TCP/SCTP socket\n" );return -ENOPROTOOPT ; }
net/ipv6/esp6_offload.c +2 -1
@@ -60,7 +60,8 @@ static struct sk_buff **esp6_gro_receive(struct sk_buff **head,int nhoff;int err; -skb_pull (skb, offset); +if (!pskb_pull (skb, offset)) +return NULL ;if ((err =xfrm_parse_spi (skb,IPPROTO_ESP , &spi, &seq)) !=0 ) goto out;
net/ipv6/ipv6_sockglue.c +5 -12
@@ -915,12 +915,8 @@ int ipv6_setsockopt(struct sock *sk, int level, int optname,#ifdef CONFIG_NETFILTER /* we need to exclude all possible ENOPROTOOPTs except default case */ if (err == -ENOPROTOOPT && optname !=IPV6_IPSEC_POLICY && - optname !=IPV6_XFRM_POLICY ) { -lock_sock (sk); - err =nf_setsockopt (sk,PF_INET6 , optname, optval, - optlen); -release_sock (sk); - } + optname !=IPV6_XFRM_POLICY ) + err =nf_setsockopt (sk,PF_INET6 , optname, optval, optlen);#endif return err; }
@@ -950,12 +946,9 @@ int compat_ipv6_setsockopt(struct sock *sk, int level, int optname,#ifdef CONFIG_NETFILTER /* we need to exclude all possible ENOPROTOOPTs except default case */ if (err == -ENOPROTOOPT && optname !=IPV6_IPSEC_POLICY && - optname !=IPV6_XFRM_POLICY ) { -lock_sock (sk); - err =compat_nf_setsockopt (sk,PF_INET6 , optname, - optval, optlen); -release_sock (sk); - } + optname !=IPV6_XFRM_POLICY ) + err =compat_nf_setsockopt (sk,PF_INET6 , optname, optval, + optlen);#endif return err; }
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c +12 -6
@@ -226,20 +226,27 @@ static const struct nf_hook_ops ipv6_conntrack_ops[] = {static int ipv6_getorigdst (struct sock *sk,int optval,void __user *user,int *len) { -const struct inet_sock *inet =inet_sk (sk); +struct nf_conntrack_tuple tuple = { .src.l3num =NFPROTO_IPV6 };const struct ipv6_pinfo *inet6 =inet6_sk (sk); +const struct inet_sock *inet =inet_sk (sk);const struct nf_conntrack_tuple_hash *h;struct sockaddr_in6 sin6; -struct nf_conntrack_tuple tuple = { .src.l3num =NFPROTO_IPV6 };struct nf_conn *ct; +__be32 flow_label; +int bound_dev_if; +lock_sock (sk); tuple.src.u3.in6 = sk->sk_v6_rcv_saddr; tuple.src.u.tcp.port = inet->inet_sport; tuple.dst.u3.in6 = sk->sk_v6_daddr; tuple.dst.u.tcp.port = inet->inet_dport; tuple.dst.protonum = sk->sk_protocol; + bound_dev_if = sk->sk_bound_dev_if; + flow_label = inet6->flow_label; +release_sock (sk); -if (sk->sk_protocol !=IPPROTO_TCP && sk->sk_protocol !=IPPROTO_SCTP ) +if (tuple.dst.protonum !=IPPROTO_TCP && + tuple.dst.protonum !=IPPROTO_SCTP )return -ENOPROTOOPT ;if (*len <0 || (unsigned int ) *len <sizeof (sin6))
@@ -257,14 +264,13 @@ ipv6_getorigdst(struct sock *sk, int optval, void __user *user, int *len) sin6.sin6_family =AF_INET6 ; sin6.sin6_port = ct->tuplehash[IP_CT_DIR_ORIGINAL ].tuple.dst.u.tcp.port; - sin6.sin6_flowinfo = inet6->flow_label &IPV6_FLOWINFO_MASK ; + sin6.sin6_flowinfo = flow_label &IPV6_FLOWINFO_MASK ;memcpy (&sin6.sin6_addr, &ct->tuplehash[IP_CT_DIR_ORIGINAL ].tuple.dst.u3.in6,sizeof (sin6.sin6_addr));nf_ct_put (ct); - sin6.sin6_scope_id =ipv6_iface_scope_id (&sin6.sin6_addr, - sk->sk_bound_dev_if); + sin6.sin6_scope_id =ipv6_iface_scope_id (&sin6.sin6_addr, bound_dev_if);return copy_to_user (user, &sin6,sizeof (sin6)) ? -EFAULT :0 ; }
net/kcm/kcmsock.c +21 -4
@@ -1387,8 +1387,13 @@ static int kcm_attach(struct socket *sock, struct socket *csock,if (!csk)return -EINVAL ; -/* We must prevent loops or risk deadlock ! */ -if (csk->sk_family ==PF_KCM ) +/* Only allow TCP sockets to be attached for now */ +if ((csk->sk_family !=AF_INET && csk->sk_family !=AF_INET6 ) || + csk->sk_protocol !=IPPROTO_TCP ) +return -EOPNOTSUPP ; + +/* Don't allow listeners or closed sockets */ +if (csk->sk_state ==TCP_LISTEN || csk->sk_state ==TCP_CLOSE )return -EOPNOTSUPP ; psock =kmem_cache_zalloc (kcm_psockp,GFP_KERNEL );
@@ -1405,9 +1410,18 @@ static int kcm_attach(struct socket *sock, struct socket *csock,return err; } -sock_hold (csk); -write_lock_bh (&csk->sk_callback_lock); + +/* Check if sk_user_data is aready by KCM or someone else. +* Must be done under lock to prevent race conditions. +*/ +if (csk->sk_user_data) { +write_unlock_bh (&csk->sk_callback_lock); +strp_done (&psock->strp); +kmem_cache_free (kcm_psockp, psock); +return -EALREADY ; + } + psock->save_data_ready = csk->sk_data_ready; psock->save_write_space = csk->sk_write_space; psock->save_state_change = csk->sk_state_change;
@@ -1415,8 +1429,11 @@ static int kcm_attach(struct socket *sock, struct socket *csock, csk->sk_data_ready = psock_data_ready; csk->sk_write_space = psock_write_space; csk->sk_state_change = psock_state_change; +write_unlock_bh (&csk->sk_callback_lock); +sock_hold (csk); +/* Finished initialization, now add the psock to the MUX. */ spin_lock_bh (&mux->lock); head = &mux->psocks;
net/netfilter/x_tables.c +7 -2
@@ -39,7 +39,6 @@ MODULE_LICENSE("GPL");MODULE_AUTHOR ("Harald Welte <[email protected]>" );MODULE_DESCRIPTION ("{ip,ip6,arp,eb}_tables backend module" ); -#define SMP_ALIGN (x) (((x) + SMP_CACHE_BYTES-1) & ~(SMP_CACHE_BYTES-1))#define XT_PCPU_BLOCK_SIZE 4096struct compat_delta {
@@ -210,6 +209,9 @@ xt_request_find_match(uint8_t nfproto, const char *name, uint8_t revision) {struct xt_match *match; +if (strnlen (name,XT_EXTENSION_MAXNAMELEN ) ==XT_EXTENSION_MAXNAMELEN ) +return ERR_PTR (-EINVAL ); + match =xt_find_match (nfproto, name, revision);if (IS_ERR (match)) {request_module ("%st_%s" , xt_prefix[nfproto], name);
@@ -252,6 +254,9 @@ struct xt_target *xt_request_find_target(u8 af, const char *name, u8 revision) {struct xt_target *target; +if (strnlen (name,XT_EXTENSION_MAXNAMELEN ) ==XT_EXTENSION_MAXNAMELEN ) +return ERR_PTR (-EINVAL ); + target =xt_find_target (af, name, revision);if (IS_ERR (target)) {request_module ("%st_%s" , xt_prefix[af], name);
@@ -1000,7 +1005,7 @@ struct xt_table_info *xt_alloc_table_info(unsigned int size)return NULL ;/* Pedantry: prevent them from hitting BUG() in vmalloc.c --RR */ -if ((SMP_ALIGN (size) >>PAGE_SHIFT ) +2 > totalram_pages) +if ((size >>PAGE_SHIFT ) +2 > totalram_pages)return NULL ; info =kvmalloc (sz,GFP_KERNEL );
net/netfilter/xt_RATEEST.c +17 -5
@@ -39,23 +39,31 @@ static void xt_rateest_hash_insert(struct xt_rateest *est)hlist_add_head (&est->list, &rateest_hash[h]); } -struct xt_rateest *xt_rateest_lookup (const char *name) +static struct xt_rateest *__xt_rateest_lookup (const char *name) {struct xt_rateest *est;unsigned int h; h =xt_rateest_hash (name); -mutex_lock (&xt_rateest_mutex);hlist_for_each_entry (est, &rateest_hash[h], list) {if (strcmp (est->name, name) ==0 ) { est->refcnt++; -mutex_unlock (&xt_rateest_mutex);return est; } } -mutex_unlock (&xt_rateest_mutex); +return NULL ; } + +struct xt_rateest *xt_rateest_lookup (const char *name) +{ +struct xt_rateest *est; + +mutex_lock (&xt_rateest_mutex); + est =__xt_rateest_lookup (name); +mutex_unlock (&xt_rateest_mutex); +return est; +}EXPORT_SYMBOL_GPL (xt_rateest_lookup);void xt_rateest_put (struct xt_rateest *est)
@@ -100,8 +108,10 @@ static int xt_rateest_tg_checkentry(const struct xt_tgchk_param *par)net_get_random_once (&jhash_rnd,sizeof (jhash_rnd)); - est =xt_rateest_lookup (info->name); +mutex_lock (&xt_rateest_mutex); + est =__xt_rateest_lookup (info->name);if (est) { +mutex_unlock (&xt_rateest_mutex);/* * If estimator parameters are specified, they must match the * existing estimator.
@@ -139,11 +149,13 @@ static int xt_rateest_tg_checkentry(const struct xt_tgchk_param *par) info->est = est;xt_rateest_hash_insert (est); +mutex_unlock (&xt_rateest_mutex);return 0 ; err2:kfree (est); err1: +mutex_unlock (&xt_rateest_mutex);return ret; }
net/netfilter/xt_bpf.c +6 -0
@@ -27,6 +27,9 @@ static int __bpf_mt_check_bytecode(struct sock_filter *insns, __u16 len, {struct sock_fprog_kern program; +if (len >XT_BPF_MAX_NUM_INSTR ) +return -EINVAL ; + program.len = len; program.filter = insns;
@@ -55,6 +58,9 @@ static int __bpf_mt_check_path(const char *path, struct bpf_prog **ret)mm_segment_t oldfs =get_fs ();int retval, fd; +if (strnlen (path,XT_BPF_PATH_MAX ) ==XT_BPF_PATH_MAX ) +return -EINVAL ; +set_fs (KERNEL_DS ); fd =bpf_obj_get_user (path);set_fs (oldfs);
net/netfilter/xt_cgroup.c +1 -0
@@ -52,6 +52,7 @@ static int cgroup_mt_check_v1(const struct xt_mtchk_param *par)return -EINVAL ; } + info->priv =NULL ;if (info->has_path) { cgrp =cgroup_get_from_path (info->path);if (IS_ERR (cgrp)) {
net/rds/connection.c +2 -1
@@ -366,6 +366,8 @@ void rds_conn_shutdown(struct rds_conn_path *cp)* to the conn hash, so we never trigger a reconnect on this * conn - the reconnect is always triggered by the active peer. */ cancel_delayed_work_sync (&cp->cp_conn_w); +if (conn->c_destroy_in_prog)
Lines of this file are not shown. View the raw message.
tools/perf/bench/numa.c +51 -5
56 lines not on this page · raw message
tools/perf/tests/shell/trace+probe_vfs_getname.sh +4 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/test_verifier.c +122 -1
123 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.