Linux 4.2.4
Subsystems (4)
Greg KH
maintainerI'm announcing the release of the 4.2.4 kernel.
All users of the 4.2 kernel series must upgrade.
The updated 4.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.2.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
------------
Documentation/HOWTO | 28 ++--- Makefile | 2 arch/arc/plat-axs10x/axs10x.c | 2 arch/arm/Makefile | 8 + arch/arm/boot/dts/exynos5420.dtsi | 2 arch/arm/boot/dts/imx6qdl-rex.dtsi | 2 arch/arm/boot/dts/omap3-beagle.dts | 2 arch/arm/boot/dts/omap5-uevm.dts | 4 arch/arm/boot/dts/sun7i-a20.dtsi | 2 arch/arm/kernel/kgdb.c | 8 + arch/arm/kernel/perf_event.c | 4 arch/arm/kernel/signal.c | 15 ++- arch/arm/kvm/interrupts_head.S | 6 - arch/arm/kvm/mmu.c | 6 - arch/arm/mach-exynos/mcpm-exynos.c | 27 +++++ arch/arm/mach-exynos/regs-pmu.h | 6 + arch/arm/plat-pxa/ssp.c | 1 arch/arm64/kernel/efi.c | 3 arch/arm64/kernel/entry-ftrace.S | 22 ++++ arch/arm64/mm/fault.c | 1 arch/m68k/include/asm/linkage.h | 30 ++++++ arch/mips/kernel/cps-vec.S | 12 +- arch/mips/kernel/setup.c | 10 +- arch/mips/loongson64/common/env.c | 3 arch/mips/mm/dma-default.c | 2 arch/mips/net/bpf_jit_asm.S | 50 +++++++++- arch/powerpc/kvm/book3s.c | 6 + arch/powerpc/kvm/book3s_hv.c | 2 arch/powerpc/kvm/book3s_hv_rmhandlers.S | 1 arch/powerpc/platforms/pasemi/msi.c | 5 - arch/powerpc/platforms/powernv/pci.c | 5 - arch/powerpc/sysdev/fsl_msi.c | 5 - arch/powerpc/sysdev/mpic_u3msi.c | 5 - arch/powerpc/sysdev/ppc4xx_msi.c | 5 - arch/s390/boot/compressed/Makefile | 2 arch/s390/kernel/compat_signal.c | 27 ++++- arch/x86/entry/entry_64.S | 16 +++ arch/x86/include/asm/msr-index.h | 1 arch/x86/include/asm/preempt.h | 4 arch/x86/include/asm/qspinlock.h | 19 ++- arch/x86/kernel/alternative.c | 5 + arch/x86/kernel/apic/apic.c | 7 + arch/x86/kernel/apic/io_apic.c | 5 - arch/x86/kernel/cpu/perf_event_intel.c | 5 - arch/x86/kernel/crash.c | 7 - arch/x86/kernel/paravirt.c | 16 ++- arch/x86/kernel/process_64.c | 52 ++++++++-- arch/x86/kernel/tsc.c | 17 ++- arch/x86/kvm/svm.c | 111 +--------------------- arch/x86/kvm/vmx.c | 13 ++ arch/x86/kvm/x86.c | 2 arch/x86/mm/init_64.c | 2 arch/x86/pci/intel_mid_pci.c | 24 ++++ arch/x86/platform/efi/efi.c | 67 +++++++++++++ arch/x86/xen/enlighten.c | 23 ++++ block/blk-cgroup.c | 3 block/blk-mq.c | 9 + drivers/base/cacheinfo.c | 10 +- drivers/base/property.c | 5 - drivers/base/regmap/regmap-debugfs.c | 5 - drivers/block/xen-blkback/xenbus.c | 38 ++++--- drivers/clk/samsung/clk-cpu.c | 10 +- drivers/clk/ti/clk-3xxx.c | 2 drivers/clk/ti/clk-7xx.c | 18 --- drivers/cpufreq/acpi-cpufreq.c | 3 drivers/cpufreq/cpufreq-dt.c | 3 drivers/crypto/marvell/cesa.h | 27 +++++ drivers/crypto/marvell/cipher.c | 7 - drivers/crypto/marvell/hash.c | 8 - drivers/dma/at_xdmac.c | 20 ++-- drivers/dma/dw/core.c | 4 drivers/dma/pxa_dma.c | 1 drivers/extcon/extcon.c | 10 +- drivers/firmware/efi/libstub/arm-stub.c | 88 ++++++++++++++--- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 68 ++++++++----- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | 3 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 4 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 4 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 4 drivers/gpu/drm/amd/amdgpu/vi.c | 3 drivers/gpu/drm/drm_dp_mst_topology.c | 41 +++++--- drivers/gpu/drm/drm_lock.c | 6 + drivers/gpu/drm/i915/intel_bios.c | 12 ++ drivers/gpu/drm/qxl/qxl_display.c | 14 +- drivers/gpu/drm/radeon/atombios_encoders.c | 8 - drivers/hv/hv_utils_transport.c | 2 drivers/hwmon/nct6775.c | 16 ++- drivers/infiniband/ulp/isert/ib_isert.c | 47 +++++++++ drivers/irqchip/irq-atmel-aic5.c | 24 +++- drivers/irqchip/irq-gic-v3-its.c | 6 + drivers/leds/Kconfig | 2 drivers/leds/led-class.c | 7 + drivers/macintosh/windfarm_core.c | 2 drivers/md/bitmap.c | 3 drivers/md/dm-cache-policy-cleaner.c | 2 drivers/md/dm-crypt.c | 17 +++ drivers/md/dm-raid.c | 3 drivers/md/dm-thin.c | 4 drivers/md/dm.c | 6 - drivers/md/raid0.c | 75 +++++++-------- drivers/mmc/core/core.c | 6 - drivers/mmc/core/host.c | 4 drivers/mmc/host/dw_mmc.c | 109 ++++++++++++++------- drivers/mmc/host/sdhci-pxav3.c | 6 + drivers/mtd/nand/pxa3xx_nand.c | 3 drivers/mtd/nand/sunxi_nand.c | 27 ++--- drivers/mtd/ubi/io.c | 5 + drivers/mtd/ubi/vtbl.c | 1 drivers/mtd/ubi/wl.c | 1 drivers/net/ethernet/intel/e1000e/netdev.c | 31 ++++-- drivers/net/ethernet/intel/igb/igb_main.c | 2 drivers/net/ethernet/via/Kconfig | 2 drivers/net/wireless/ath/ath10k/htc.c | 4 drivers/net/wireless/ath/ath10k/htt_tx.c | 8 + drivers/net/wireless/ath/ath10k/mac.c | 85 ++++++++++------- drivers/net/wireless/ath/ath10k/mac.h | 6 - drivers/net/wireless/ath/ath10k/pci.c | 8 + drivers/net/wireless/ath/ath10k/wmi-tlv.c | 34 +++++- drivers/net/wireless/ath/ath10k/wmi.c | 1 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c | 8 + drivers/net/wireless/rsi/rsi_91x_usb_ops.c | 8 + drivers/net/xen-netfront.c | 3 drivers/nvdimm/pmem.c | 2 drivers/pci/access.c | 27 ----- drivers/pci/bus.c | 2 drivers/pci/quirks.c | 20 +++- drivers/pcmcia/sa1100_generic.c | 1 drivers/pcmcia/sa11xx_base.c | 3 drivers/platform/x86/toshiba_acpi.c | 8 - drivers/power/avs/Kconfig | 2 drivers/regulator/axp20x-regulator.c | 4 drivers/regulator/core.c | 20 ++-- drivers/scsi/3w-9xxx.c | 28 ++++- drivers/scsi/hpsa.c | 15 +-- drivers/scsi/ipr.c | 2 drivers/scsi/scsi_error.c | 11 ++ drivers/spi/spi-bcm2835.c | 6 - drivers/spi/spi-pxa2xx.c | 4 drivers/spi/spi-xtensa-xtfpga.c | 4 drivers/spi/spi.c | 3 drivers/spi/spidev.c | 3 drivers/staging/android/ion/ion.c | 6 - drivers/staging/speakup/fakekey.c | 1 drivers/target/iscsi/iscsi_target.c | 33 +++--- drivers/target/iscsi/iscsi_target.h | 2 drivers/target/iscsi/iscsi_target_configfs.c | 14 +- drivers/target/iscsi/iscsi_target_login.c | 8 - drivers/target/iscsi/iscsi_target_parameters.c | 5 - drivers/target/iscsi/iscsi_target_tpg.c | 15 +-- drivers/target/iscsi/iscsi_target_tpg.h | 2 drivers/target/target_core_device.c | 5 - drivers/target/target_core_pr.c | 91 +++++++++++++----- drivers/target/target_core_xcopy.c | 6 - drivers/thermal/cpu_cooling.c | 52 ++++++---- drivers/tty/n_tty.c | 15 +-- drivers/tty/serial/8250/8250_core.c | 8 + drivers/tty/serial/atmel_serial.c | 2 drivers/tty/tty_io.c | 31 +++++- drivers/usb/chipidea/ci_hdrc_imx.c | 2 drivers/usb/chipidea/udc.c | 84 ++++++++-------- drivers/usb/core/config.c | 5 - drivers/usb/core/quirks.c | 13 ++ drivers/usb/host/xhci-mem.c | 17 +-- drivers/usb/host/xhci-pci.c | 90 +++++++++--------- drivers/usb/host/xhci-ring.c | 79 ++++++++++++--- drivers/usb/host/xhci.c | 29 +++-- drivers/usb/misc/chaoskey.c | 2 drivers/usb/musb/musb_cppi41.c | 6 - drivers/usb/musb/musb_dsps.c | 7 + drivers/usb/phy/phy-generic.c | 3 drivers/usb/serial/option.c | 24 ++++ drivers/usb/serial/whiteheat.c | 31 ++++++ drivers/watchdog/imgpdc_wdt.c | 1 drivers/watchdog/sunxi_wdt.c | 2 drivers/xen/preempt.c | 2 fs/block_dev.c | 7 + fs/btrfs/extent_io.c | 80 +++++++++++++--- fs/btrfs/inode.c | 3 fs/cifs/cifsencrypt.c | 53 ++++++++++ fs/cifs/inode.c | 34 ------ fs/cifs/smb2ops.c | 8 + fs/cifs/smb2pdu.c | 76 ++++++++++++--- fs/dax.c | 3 fs/dcache.c | 7 + fs/namei.c | 35 ++++++- fs/nfs/delegation.c | 8 + fs/nfs/delegation.h | 2 fs/nfs/filelayout/filelayout.c | 31 ++---- fs/nfs/nfs42proc.c | 4 fs/nfs/nfs4proc.c | 81 +++++++++------- fs/nfs/pagelist.c | 2 fs/nfs/read.c | 3 fs/nfs/write.c | 5 - fs/ocfs2/dlm/dlmmaster.c | 9 + fs/ocfs2/dlm/dlmrecovery.c | 8 + fs/ubifs/xattr.c | 3 include/asm-generic/preempt.h | 5 - include/asm-generic/qspinlock.h | 4 include/linux/cgroup-defs.h | 27 ----- include/linux/init_task.h | 8 + include/linux/mm.h | 21 ++++ include/linux/preempt.h | 19 ++- include/linux/sched.h | 18 ++- include/linux/security.h | 2 include/net/netfilter/br_netfilter.h | 2 include/net/netfilter/nf_conntrack.h | 1 include/net/netfilter/nf_tables.h | 2 include/target/iscsi/iscsi_target_core.h | 1 include/xen/interface/sched.h | 8 + ipc/msg.c | 14 +- ipc/shm.c | 13 +- ipc/util.c | 8 - kernel/cgroup.c | 110 ++++++++++++++++------ kernel/fork.c | 4 kernel/irq/proc.c | 19 +++ kernel/locking/qspinlock.c | 2 kernel/sched/core.c | 31 +++--- kernel/sched/sched.h | 5 - kernel/time/clocksource.c | 2 kernel/time/timekeeping.c | 2 lib/iommu-common.c | 6 - mm/hugetlb.c | 8 + mm/memcontrol.c | 30 +++--- mm/migrate.c | 14 ++ mm/slab.c | 13 ++ net/batman-adv/distributed-arp-table.c | 7 - net/batman-adv/multicast.c | 81 ++++++++++++---- net/batman-adv/network-coding.c | 7 - net/batman-adv/originator.c | 5 + net/batman-adv/soft-interface.c | 7 + net/batman-adv/translation-table.c | 8 + net/batman-adv/types.h | 15 +-- net/bluetooth/smp.c | 12 +- net/netfilter/ipset/ip_set_hash_gen.h | 12 +- net/netfilter/ipset/ip_set_hash_netnet.c | 20 +++- net/netfilter/ipset/ip_set_hash_netportnet.c | 20 +++- net/netfilter/nf_conntrack_core.c | 3 net/netfilter/nf_log.c | 9 + net/netfilter/nf_synproxy_core.c | 2 net/netfilter/nfnetlink.c | 8 + net/netfilter/nft_compat.c | 24 +++- net/netfilter/xt_CT.c | 2 net/sunrpc/xprtrdma/svc_rdma_sendto.c | 10 +- sound/arm/Kconfig | 15 +-- sound/pci/hda/hda_tegra.c | 30 +++++- sound/pci/hda/patch_cirrus.c | 1 sound/pci/hda/patch_realtek.c | 32 ++++-- sound/pci/hda/patch_sigmatel.c | 6 + sound/soc/au1x/db1200.c | 4 sound/soc/codecs/sgtl5000.c | 4 sound/soc/codecs/tas2552.c | 2 sound/soc/dwc/designware_i2s.c | 4 sound/soc/pxa/Kconfig | 2 sound/soc/pxa/pxa2xx-ac97.c | 4 sound/synth/emux/emux_oss.c | 3 tools/lguest/lguest.c | 10 +- tools/lib/traceevent/event-parse.c | 23 ++++ tools/perf/arch/alpha/Build | 1 tools/perf/arch/mips/Build | 1 tools/perf/arch/parisc/Build | 1 tools/perf/builtin-stat.c | 5 - tools/perf/util/header.c | 4 tools/perf/util/hist.c | 3 tools/perf/util/parse-events.y | 2 tools/perf/util/probe-event.c | 13 +- tools/perf/util/probe-event.h | 2 tools/perf/util/symbol-elf.c | 35 ++----- virt/kvm/eventfd.c | 124 ++++++++++++++----------- virt/kvm/kvm_main.c | 19 +++ 271 files changed, 2735 insertions(+), 1323 deletions(-)
Adrian Hunter (1):
perf tools: Fix copying of /proc/kcore
Akinobu Mita (1):
blk-mq: avoid setting hctx->tags->cpumask before allocation
Alex Deucher (2):
drm/amdgpu: Fix max_vblank_count value for current display engines drm/amdgpu: Restore LCD backlight level on resume
Alex Williamson (2):
PCI: Fix devfn for VPD access through function 0
PCI: Use function 0 VPD for identical functions, regular VPD for others
Alexander Inyukhin (1):
USB: chaoskey read offset bug
Alexander Sverdlin (1):
MIPS: bootmem: Fix mapstart calculation for contiguous maps
Alexey Brodkin (1):
mmc: dw_mmc: handle data blocks > than 4kB if IDMAC is used
Andreas Dannenberg (1):
ASoC: tas2552: fix dBscale-min declaration
Andreas Schwab (1):
m68k: Define asmlinkage_protect
Andy Grover (1):
target/iscsi: Fix np_ip bracket issue by removing np_ip
Andy Lutomirski (2):
x86/paravirt: Replace the paravirt nop with a bona fide empty function x86/nmi/64: Fix a paravirt stack-clobbering bug in the NMI code
Andy Shevchenko (3):
dmaengine: dw: properly read DWC_PARAMS register x86/pci/intel_mid_pci: Work around for IRQ0 assignment device property: fix potential NULL pointer dereference
Antoine Ténart (1):
mtd: pxa3xx_nand: add a default chunk size
Ard Biesheuvel (2):
ARM: 8429/1: disable GCC SRA optimization
arm64/efi: Fix boot crash by not padding between EFI_MEMORY_RUNTIME regions
Arnaldo Carvalho de Melo (3):
perf hists: Update the column width for the "srcline" sort key perf header: Fixup reading of HEADER_NRCPUS feature
perf probe: Use existing routine to look for a kernel module by dso->short_name
Aurelien Jarno (2):
MIPS: BPF: Avoid unreachable code on little endian
MIPS: BPF: Fix build on pre-R2 little endian CPUs
Azael Avalos (1):
toshiba_acpi: Fix hotkeys registration on some toshiba models
Bartlomiej Zolnierkiewicz (1):
clk: samsung: fix cpu clock's flags checking
Ben Dooks (1):
clk: ti: fix dual-registration of uart4_ick
Ben Hutchings (2):
perf tools: Add empty Build files for architectures lacking them
genirq: Fix race in register_irq_proc()
Bernhard Thaler (1):
netfilter: bridge: fix IPv6 packets not being bridged with CONFIG_IPV6=n
Bin Liu (1):
usb: musb: dsps: fix polling in device-only mode
Bjorn Helgaas (1):
PCI: Clear IORESOURCE_UNSET when clipping a bridge window
Boris BREZILLON (2):
mtd: nand: sunxi: fix sunxi_nand_chips_cleanup()
mtd: nand: sunxi: fix OOB handling in ->write_xxx() functions
Borislav Petkov (1):
cpu/cacheinfo: Fix teardown path
Carl Frederik Werner (1):
ARM: dts: omap3-beagle: make i2c3, ddc and tfp410 gpio work again
Chanho Park (1):
ARM: EXYNOS: reset Little cores when cpu is up
Chaotian Jing (1):
mmc: core: fix dead loop of mmc_retune
Charles Keepax (1):
regulator: core: Correct return value check in regulator_resolve_supply
Chas Williams (1):
net/xen-netfront: only napi_synchronize() if running
Chen-Yu Tsai (1):
regulator: axp20x: Fix enable bit indexes for DCDC4 and DCDC5
Christian Borntraeger (1):
s390/boot/decompression: disable floating point in decompressor
Christian Engelmayer (1):
rsi: Fix possible leak when loading firmware
Christian König (1):
drm/amdgpu: fix overflow on 32bit systems
Christoph Hellwig (1):
3w-9xxx: don't unmap bounce buffered commands
Chuck Lever (1):
svcrdma: Fix send_reply() scatter/gather set-up
Dan Carpenter (3):
hv: util: checking the wrong variable
extcon: Fix signedness bugs about break error handling
hpsa: fix an sprintf() overflow in the reset handler
Daniel Borkmann (1):
netfilter: conntrack: use nf_ct_tmpl_free in CT/synproxy error paths
Daniel Vetter (1):
drm: Reject DRI1 hw lock ioctl functions for kms drivers
Dave Airlie (3):
drm/qxl: only report first monitor as connected if we have no state drm/dp/mst: fixup handling hotplug on port removal. drm/dp/mst: drop cancel work sync in the mstb destroy path (v2)
David Woodhouse (1):
x86/platform: Fix Geode LX timekeeping in the generic x86 build
Dirk Müller (1):
Use WARN_ON_ONCE for missing X86_FEATURE_NRIPS
Dominik Dingel (1):
sched: access local runqueue directly in single_task_running
Doug Anderson (1):
ARM: 8425/1: kgdb: Don't try to stop the machine when setting breakpoints
Elad Raz (1):
netfilter: ipset: Fixing unnamed union init
Eric W. Biederman (2):
dcache: Handle escaped paths in prepend_path
vfs: Test for and handle paths that are unreachable from their mnt_root
Ezequiel Garcia (1):
watchdog: imgpdc: Unregister restart handler on remove
Fabiano Fidêncio (1):
drm/qxl: recreate the primary surface when the bo is not primary
Felipe Balbi (1):
usb: musb: cppi41: allow it to work again
Felipe F. Tonello (1):
ARM: dts: fix usb pin control for imx-rex dts
Filipe Manana (2):
Btrfs: fix read corruption of compressed and shared extents
Btrfs: update fix for read corruption of compressed and shared extents
Florian Westphal (1):
netfilter: nf_log: don't zap all loggers on unregister
Francesco Lavra (1):
watchdog: sunxi: fix activation of system reset
Gabriel Krisman Bertazi (1):
ipr: Enable SIS pipe commands for SIS-32 devices.
Gautham R. Shenoy (1):
KVM: PPC: Book3S HV: Pass the correct trap argument to kvmhv_commence_exit
Gianluca Renzi (1):
ASoC: sgtl5000: fix wrong register MIC_BIAS_VOLTAGE setup on probe
Grazvydas Ignotas (1):
ARM: dts: omap5-uevm.dts: fix i2c5 pinctrl offsets
Greg Kroah-Hartman (1):
Linux 4.2.4
Greg Thelen (2):
memcg: make mem_cgroup_read_stat() unsigned
memcg: fix dirty page migration
Guenter Roeck (3):
hwmon: (nct6775) Swap STEP_UP_TIME and STEP_DOWN_TIME registers for most chips
spi: Fix documentation of spi_alloc_master()
MIPS: Fix console output for Fulong2e system
Hans de Goede (1):
extcon: Fix attached value returned by is_extcon_changed
Heiko Stuebner (1):
PM / AVS: rockchip-io: depend on CONFIG_POWER_AVS
Igor Mammedov (1):
kvm: svm: reset mmu on VCPU reset
J. Bruce Fields (1):
nfs: fix v4.2 SEEK on files over 2 gigs
James Hogan (1):
MIPS: dma-default: Fix 32-bit fall back to GFP_DMA
Jani Nikula (1):
drm/i915/bios: handle MIPI Sequence Block v3+ gracefully
Jann Horn (2):
security: fix typo in security_task_prctl drivers/tty: require read access for controlling terminal
Jarkko Nikula (1):
ARM: pxa: ssp: Fix build error by removing originally incorrect DT binding
Jason Wang (4):
kvm: don't try to register to KVM_FAST_MMIO_BUS for non mmio eventfd
kvm: fix zero length mmio searching
kvm: factor out core eventfd assign/deassign logic
kvm: fix double free for fast mmio eventfd
Javi Merino (2):
thermal: cpu_cooling: don't call kcalloc() under rcu_read_lock
thermal: cpu_cooling: free power table on error or when unregistering
Jeff Mahoney (1):
btrfs: skip waiting on ordered range for special files
Jeff Moyer (2):
dax: fix O_DIRECT I/O to the last block of a blockdev
blockdev: don't set S_DAX for misaligned partitions
Jenny Derzhavetz (2):
iser-target: remove command with state ISTATE_REMOVE
iser-target: Put the reference on commands waiting for unsol data
Jiri Olsa (1):
perf tools: Fix parse_events_add_pmu caller
Joe Thornber (1):
dm cache: fix NULL pointer when switching from cleaner policy
Johan Hedberg (1):
Bluetooth: Delay check for conn->smp in smp_conn_security()
Johan Hovold (1):
USB: whiteheat: fix potential null-deref at probe
John Flatness (1):
ALSA: hda - Apply SPDIF pin ctl to MacBookPro 12,1
John Stultz (2):
time: Fix timekeeping_freqadjust()'s incorrect use of abs() instead of abs64()
clocksource: Fix abs() usage w/ 64bit values
Joonsoo Kim (1):
mm/slab: fix unexpected index mapping result of kmalloc_size(INDEX_NODE+1)
Joonyoung Shim (1):
ARM: dts: Fix wrong clock binding for sysmmu_fimd1_1 on exynos5420
Joseph Qi (1):
ocfs2/dlm: fix deadlock when dispatch assert master
Jozsef Kadlecsik (1):
netfilter: ipset: Out of bound access in hash:net* types fixed
Junichi Nomura (1):
dm: fix AB-BA deadlock in __dm_destroy()
Kan Liang (1):
perf stat: Get correct cpu id for print_aggr
Kapileshwar Singh (1):
tools lib traceevent: Fix string handling in heterogeneous arch environments
Kinglong Mee (2):
NFS: Do cleanup before resetting pageio read/write to mds nfs/filelayout: Fix NULL reference caused by double freeing of fh_array
Konstantin Khlebnikov (3):
sched/preempt: Fix cond_resched_lock() and cond_resched_softirq() sched/preempt, xen: Use need_resched() instead of should_resched() sched/preempt, powerpc, kvm: Use need_resched() instead of should_resched()
Kosuke Tatsukawa (1):
tty: fix stall caused by missing memory barrier in drivers/tty/n_tty.c
Lars-Peter Clausen (1):
ASoC: db1200: Fix DAI link format for db1300 and db1550
Laura Abbott (1):
ALSA: hda: Add dock support for ThinkPad T550
Lee, Chun-Yi (1):
x86/kexec: Fix kexec crash in syscall kexec_file_load()
Leo Liu (3):
drm/amdgpu: Disable UVD PG
drm/amdgpu: fix the UVD suspend sequence order drm/amdgpu: make UVD handle checking more strict
Li Bin (1):
arm64: ftrace: fix function_graph tracer panic
Li Jun (1):
usb: chipidea: imx: fix a typo for imx6sx
Linus Lüssing (6):
batman-adv: Make DAT capability changes atomic
batman-adv: Make NC capability changes atomic
batman-adv: Make TT capability changes atomic
batman-adv: Make MCAST capability changes atomic
batman-adv: Fix potential synchronization issues in mcast tvlv handler
batman-adv: Fix potentially broken skb network header access
Linus Torvalds (1):
Initialize msg/shm IPC objects before doing ipc_addid()
Liu.Zhao (1):
USB: option: add ZTE PIDs
Ludovic Desroches (3):
dmaengine: at_xdmac: clean used descriptor
dmaengine: at_xdmac: fix bug in prep_dma_cyclic irqchip/atmel-aic5: Use per chip mask caches in mask/unmask()
Mans Rullgard (1):
serial: 8250: add uart_config entry for PORT_RT2880
Marc Zyngier (2):
arm: KVM: Disable virtual timer even if the guest is not using it irqchip/gic-v3-its: Add missing cache flushes
Marcin Wojtas (1):
mmc: sdhci-pxav3: fix error handling of armada_38x_quirks
Marek Majtyka (1):
arm: KVM: Fix incorrect device to IPA mapping
Mario Carrillo (1):
docs: update HOWTO for 3.x -> 4.x versioning
Mark Brown (3):
regulator: core: Handle probe deferral from DT when resolving supplies
regmap: debugfs: Ensure we don't underflow when printing access masks
regmap: debugfs: Don't bother actually printing when calculating max length
Mark Salyzyn (1):
arm64: readahead: fault retry breaks mmap file read random detection
Martin Schwidefsky (1):
s390/compat: correct uc_sigmask of the compat signal frame
Martin Sperl (1):
spi: bcm2835: BUG: fix wrong use of PAGE_MASK
Mathias Nyman (4):
xhci: give command abortion one more chance before killing xhci
xhci: change xhci 1.0 only restrictions to support xhci 1.1
xhci: init command timeout timer earlier to avoid deleting it uninitialized
usb: Use the USB_SS_MULT() macro to get the burst multiplier.
Matt Fleming (1):
x86/efi: Fix boot crash by mapping EFI memmap entries bottom-up at runtime, instead of top-down
Max Filippov (1):
spi: xtensa-xtfpga: fix register endianness
Maxime Ripard (1):
dmaengine: at_xdmac: change block increment addressing mode
Mel Gorman (1):
mm: hugetlbfs: skip shared VMAs when unmapping private pages to satisfy a fault
Michal Hocko (1):
scsi: fix scsi_error_handler vs. scsi_host_dev_release race
Michal Kazior (6):
ath10k: fix dma_mapping_error() handling
ath10k: fix per-vif queue locking
ath10k: reject 11b tx fragmentation configuration
ath10k: fix peer limit enforcement
ath10k: wake up offchannel queue properly
ath10k: wake up queue upon vif creation
Michel Dänzer (1):
drm/radeon: Restore LCD backlight level on resume (>= R5xx)
Mike Snitzer (2):
dm thin: disable discard support for thin devices if pool's is disabled dm crypt: constrain crypt device's max_segment_size to PAGE_SIZE
Mikulas Patocka (1):
dm raid: fix round up of default region size
Nadav Haklai (2):
mmc: sdhci-pxav3: remove broken clock base quirk for Armada 38x sdhci driver
mmc: sdhci-pxav3: disable clock inversion for HS MMC cards
Naoya Horiguchi (1):
mm: migrate: hugetlb: putback destination hugepage to active list
NeilBrown (3):
md/raid0: update queue parameter in a safer location. md/raid0: apply base queue limits *before* disk_stack_limits md/bitmap: don't pass -1 to bitmap_storage_alloc.
Nicholas Bellinger (3):
target: Attach EXTENDED_COPY local I/O descriptors to xcopy_pt_sess
target: Fix PR registration + APTPL RCU conversion regression
iscsi-target: Avoid OFMarker + IFMarker negotiation
Pablo Neira Ayuso (4):
netfilter: nfnetlink: work around wrong endianess in res_id field
netfilter: nf_tables: Use 32 bit addressing register from nft_type_to_reg()
netfilter: nf_log: wait for rcu grace after logger unregistration
netfilter: nft_compat: skip family comparison in case of NFPROTO_UNSPEC
Paolo Bonzini (4):
KVM: x86: trap AMD MSRs for the TSeg base and mask
Revert "KVM: x86: apply guest MTRR virtualization on host reserved pages" Revert "KVM: SVM: use NPT page attributes"
Revert "KVM: SVM: Sync g_pat with guest-written PAT value"
Paul Bolle (1):
windfarm: decrement client count when unregistering
Paul Burton (3):
MIPS: CPS: Stop dangling delay slot from has_mt.
MIPS: CPS: Don't include MT code in non-MT kernels.
MIPS: CPS: #ifdef on CONFIG_MIPS_MT_SMP rather than CONFIG_MIPS_MT
Paul Mackerras (1):
powerpc/MSI: Fix race condition in tearing down MSI interrupts
Peng Tao (1):
nfs: fix pg_test page count calculation
Peter Chen (1):
usb: chipidea: udc: using the correct stall implementation
Peter Seiderer (1):
cifs: use server timestamp for ntlmv2 authentication
Peter Ujfalusi (1):
clk: ti: clk-7xx: Remove hardwired ABE clock configuration
Peter Zijlstra (4):
perf/x86/intel: Fix constraint access
locking/qspinlock/x86: Fix performance regression under unaccelerated VMs locking/qspinlock/x86: Only emit the test-and-set fallback when building guest support sched/core: Fix TASK_DEAD race in finish_task_switch()
Raanan Avargil (1):
e1000e: Fix tight loop implementation of systime read algorithm
Reyad Attiyat (1):
usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers
Ricardo Ribalda Delgado (1):
leds/led-class: Add missing put_device()
Richard Weinberger (2):
UBIFS: Kill unneeded locking in ubifs_init_security
UBI: Validate data_size
Robert Jarzmik (3):
dmaengine: pxa_dma: fix initial list move
ASoC: pxa: pxa2xx-ac97: fix dma requestor lines
ASoC: fix broken pxa SoC support
Roger Pau Monne (1):
xen/blkback: free requests on disconnection
Roger Quadros (5):
usb: xhci: lock mutex on xhci_stop
usb: xhci: Clear XHCI_STATE_DYING on start
usb: xhci: stop everything on the first call to xhci_stop
usb: xhci: exit early in xhci_setup_device() if we're halted or dying
usb: phy: phy-generic: Fix reset behaviour on legacy boot
Ross Zwisler (1):
pmem: add proper fencing to pmem_rw_page()
Russell King (2):
ARM: fix Thumb2 signal handling when ARMv6 is enabled
pcmcia: sa11x0: fix missing clk_put() in sa11x0 socket drivers
Rusty Russell (1):
tools/lguest: Fix redefinition of struct virtio_pci_cfg_cap
Shaohua Li (1):
x86/apic: Serialize LVTT and TSC_DEADLINE writes
Shawn Lin (1):
staging: ion: fix corruption of ion_import_dma_buf
Sowmini Varadhan (1):
lib/iommu-common.c: do not try to deref a null iommu->lazy_flush() pointer when n < pool->hint
Srinivas Pandruvada (1):
cpufreq: acpi_cpufreq: prevent crash on reading freqdomain_cpus
Stefan Assmann (1):
igb: do not re-init SR-IOV during probe
Stephen Boyd (1):
ARM: 8401/1: perf: Set affinity for PPI based PMUs
Stephen Smalley (1):
x86/mm: Set NX on gap between __ex_table and rodata
Steve French (3):
Fix sec=krb5 on smb3 mounts
disabling oplocks/leases via module parm enable_oplocks broken for SMB3 Do not fall back to SMBWriteX in set_file_size error cases
Sudip Mukherjee (2):
spi: spidev: fix possible NULL dereference
net: via/Kconfig: GENERIC_PCI_IOMAP required if PCI not selected
Takashi Iwai (5):
leds:lp55xx: Correct Kconfig dependency for f/w user helper
ALSA: hda/tegra - async probe for avoiding module loading deadlock
ALSA: hda - Disable power_save_node for Thinkpads
ALSA: synth: Fix conflicting OSS device registration on AWE32
ALSA: hda - Disable power_save_node for IDT 92HD73xx chips
Tan, Jui Nee (1):
spi: spi-pxa2xx: Check status register to determine if SSSR_TINT is disabled
Tejun Heo (3):
block: blkg_destroy_all() should clear q->root_blkg and ->root_rl.blkg
Revert "cgroup: simplify threadgroup locking"
Revert "sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem"Thomas Gleixner (3):
x86/alternatives: Make optimize_nops() interrupt safe and synced x86/ioapic: Force affinity setting in setup_ioapic_dest() x86/process: Add proper bound checks in 64bit get_wchan()
Thomas Huth (1):
KVM: PPC: Book3S: Take the kvm->srcu lock in kvmppc_h_logical_ci_load/store()
Thomas Petazzoni (1):
crypto: marvell - properly handle CRYPTO_TFM_REQ_MAY_BACKLOG-flagged requests
Timo Sigurdsson (1):
ARM: dts: sunxi: Raise minimum CPU voltage for sun7i-a20 to meet SoC specifications
Tomer Barletz (1):
xhci: Move xhci_pme_quirk() behind #ifdef CONFIG_PM
Trond Myklebust (3):
NFSv4: Recovery of recalled read delegations is broken
NFS: Fix a write performance regression
namei: results of d_is_negative() should be checked after dentry revalidation
Ulf Hansson (1):
mmc: core: Don't return an error for CD/WP GPIOs when GPIOLIB is unset
Uwe Kleine-König (1):
serial: atmel: fix error path of probe function
Vincent Palatin (1):
usb: Add device quirk for Logitech PTZ cameras
Vineet Gupta (1):
ARCv2: [axs103_smp] Reduce clk for SMP FPGA configs
Viresh Kumar (1):
cpufreq: dt: Tolerance applies on both sides of target voltage
Vitaly Kuznetsov (1):
x86/xen: Support kexec/kdump in HVM guests by doing a soft reset
Wang Nan (1):
perf tools: Add missing forward declaration of struct map to probe-event.h
Wanpeng Li (1):
KVM: vmx: fix VPID is 0000H in non-root operation
Yao-Wen Mao (1):
USB: Add reset-resume quirk for two Plantronics usb headphones.
Yitian Bu (1):
ASoC: dwc: correct irq clear method
[email protected] (1):
staging: speakup: fix speakup-r regression
shengyong (1):
UBI: return ENOSPC if no enough space available
Greg KH
maintainerDocumentation/HOWTO +14 -14
@@ -218,16 +218,16 @@ The development process Linux kernel development process currently consists of a few different main kernel "branches" and lots of different subsystem-specific kernel branches. These different branches are: - - main 3.x kernel tree - - 3.x.y -stable kernel tree - - 3.x -git kernel patches + - main 4.x kernel tree + - 4.x.y -stable kernel tree + - 4.x -git kernel patches - subsystem specific kernel trees and patches - - the 3.x -next kernel tree for integration tests + - the 4.x -next kernel tree for integration tests -3.x kernel tree +4.x kernel tree ----------------- -3.x kernels are maintained by Linus Torvalds, and can be found on -kernel.org in the pub/linux/kernel/v3.x/ directory. Its development +4.x kernels are maintained by Linus Torvalds, and can be found on +kernel.org in the pub/linux/kernel/v4.x/ directory. Its development process is as follows: - As soon as a new kernel is released a two weeks window is open, during this period of time maintainers can submit big diffs to
@@ -262,20 +262,20 @@ mailing list about kernel releases: released according to perceived bug status, not according to a preconceived timeline." -3.x.y -stable kernel tree +4.x.y -stable kernel tree --------------------------- Kernels with 3-part versions are -stable kernels. They contain relatively small and critical fixes for security problems or significant -regressions discovered in a given 3.x kernel. +regressions discovered in a given 4.x kernel. This is the recommended branch for users who want the most recent stable kernel and are not interested in helping test development/experimental versions. -If no 3.x.y kernel is available, then the highest numbered 3.x +If no 4.x.y kernel is available, then the highest numbered 4.x kernel is the current stable kernel. -3.x.y are maintained by the "stable" team <[email protected]>, and +4.x.y are maintained by the "stable" team <[email protected]>, and are released as needs dictate. The normal release period is approximately two weeks, but it can be longer if there are no pressing problems. A security-related problem, instead, can cause a release to happen almost
@@ -285,7 +285,7 @@ The file Documentation/stable_kernel_rules.txt in the kernel tree documents what kinds of changes are acceptable for the -stable tree, and how the release process works. -3.x -git patches +4.x -git patches ------------------ These are daily snapshots of Linus' kernel tree which are managed in a git repository (hence the name.) These patches are usually released
@@ -317,9 +317,9 @@ revisions to it, and maintainers can mark patches as under review, accepted, or rejected. Most of these patchwork sites are listed at http://patchwork.kernel.org/. -3.x -next kernel tree for integration tests +4.x -next kernel tree for integration tests --------------------------------------------- -Before updates from subsystem trees are merged into the mainline 3.x +Before updates from subsystem trees are merged into the mainline 4.x tree, they need to be integration-tested. For this purpose, a special testing repository exists into which virtually all subsystem trees are pulled on an almost daily basis:
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 2 -SUBLEVEL = 3 +SUBLEVEL = 4 EXTRAVERSION = NAME = Hurr durr I'ma sheep
arch/arc/plat-axs10x/axs10x.c +2 -0
@@ -402,6 +402,8 @@ static void __init axs103_early_init(void)unsigned int num_cores = (read_aux_reg (ARC_REG_MCIP_BCR ) >>16 ) &0x3F ;if (num_cores >2 )arc_set_core_freq (50 *1000000 ); +else if (num_cores ==2 ) +arc_set_core_freq (75 *1000000 );#endif switch (arc_get_core_freq ()/1000000 ) {
arch/arm/Makefile +8 -0
@@ -54,6 +54,14 @@ AS += -EL LD += -EL endif +# +# The Scalar Replacement of Aggregates (SRA) optimization pass in GCC 4.9 and +# later may result in code being generated that handles signed short and signed +# char struct members incorrectly. So disable it. +# (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932) +# +KBUILD_CFLAGS += $(call cc-option,-fno-ipa-sra) + # This selects which instruction set is used. # Note that GCC does not numerically define an architecture version # macro, but instead defines a whole series of macros which makes
arch/arm/boot/dts/exynos5420.dtsi +1 -1
@@ -1118,7 +1118,7 @@ interrupt-parent = <&combiner>; interrupts = <3 0>; clock-names = "sysmmu", "master"; - clocks = <&clock CLK_SMMU_FIMD1M0>, <&clock CLK_FIMD1>; + clocks = <&clock CLK_SMMU_FIMD1M1>, <&clock CLK_FIMD1>; power-domains = <&disp_pd>; #iommu-cells = <0>; };
arch/arm/boot/dts/imx6qdl-rex.dtsi +0 -2
@@ -35,7 +35,6 @@ compatible = "regulator-fixed"; reg = <1>; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usbh1>; regulator-name = "usbh1_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
@@ -47,7 +46,6 @@ compatible = "regulator-fixed"; reg = <2>; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usbotg>; regulator-name = "usb_otg_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
arch/arm/boot/dts/omap3-beagle.dts +1 -1
@@ -202,7 +202,7 @@ tfp410_pins: pinmux_tfp410_pins { pinctrl-single,pins = < - 0x194 (PIN_OUTPUT | MUX_MODE4) /* hdq_sio.gpio_170 */ + 0x196 (PIN_OUTPUT | MUX_MODE4) /* hdq_sio.gpio_170 */ >; };
arch/arm/boot/dts/omap5-uevm.dts +2 -2
@@ -174,8 +174,8 @@ i2c5_pins: pinmux_i2c5_pins { pinctrl-single,pins = < - 0x184 (PIN_INPUT | MUX_MODE0) /* i2c5_scl */ - 0x186 (PIN_INPUT | MUX_MODE0) /* i2c5_sda */ + 0x186 (PIN_INPUT | MUX_MODE0) /* i2c5_scl */ + 0x188 (PIN_INPUT | MUX_MODE0) /* i2c5_sda */ >; };
arch/arm/boot/dts/sun7i-a20.dtsi +1 -1
@@ -107,7 +107,7 @@ 720000 1200000 528000 1100000 312000 1000000 - 144000 900000 + 144000 1000000 >; #cooling-cells = <2>; cooling-min-level = <0>;
arch/arm/kernel/kgdb.c +5 -3
@@ -259,15 +259,17 @@ int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt)if (err)return err; -patch_text ((void *)bpt->bpt_addr, - *(unsigned int *)arch_kgdb_ops.gdb_bpt_instr); +/* Machine is already stopped, so we can use __patch_text() directly */ +__patch_text ((void *)bpt->bpt_addr, + *(unsigned int *)arch_kgdb_ops.gdb_bpt_instr);return err; }int kgdb_arch_remove_breakpoint (struct kgdb_bkpt *bpt) { -patch_text ((void *)bpt->bpt_addr, *(unsigned int *)bpt->saved_instr); +/* Machine is already stopped, so we can use __patch_text() directly */ +__patch_text ((void *)bpt->bpt_addr, *(unsigned int *)bpt->saved_instr);return 0 ; }
arch/arm/kernel/perf_event.c +3 -1
@@ -795,8 +795,10 @@ static int of_pmu_irq_cfg(struct arm_pmu *pmu)/* Don't bother with PPIs; they're already affine */ irq =platform_get_irq (pdev,0 ); -if (irq >=0 &&irq_is_percpu (irq)) +if (irq >=0 &&irq_is_percpu (irq)) { +cpumask_setall (&pmu->supported_cpus);return 0 ; + } irqs =kcalloc (pdev->num_resources,sizeof (*irqs),GFP_KERNEL );if (!irqs)
arch/arm/kernel/signal.c +10 -5
@@ -343,12 +343,17 @@ setup_return(struct pt_regs *regs, struct ksignal *ksig,*/ thumb = handler &1 ; -#if __LINUX_ARM_ARCH__ >=7 +#if __LINUX_ARM_ARCH__ >=6 /* -* Clear the If-Then Thumb-2 execution state -* ARM spec requires this to be all 000s in ARM mode -* Snapdragon S4/Krait misbehaves on a Thumb=>ARM -* signal transition without this. +* Clear the If-Then Thumb-2 execution state. ARM spec +* requires this to be all 000s in ARM mode. Snapdragon +* S4/Krait misbehaves on a Thumb=>ARM signal transition +* without this. +* +* We must do this whenever we are running on a Thumb-2 +* capable CPU, which includes ARMv6T2. However, we elect +* to do this whenever we're on an ARMv6 or later CPU for +* simplicity. */ cpsr &= ~PSR_IT_MASK ;#endif
arch/arm/kvm/interrupts_head.S +4 -2
@@ -515,8 +515,7 @@ ARM_BE8(rev r6, r6 ) mrc p15, 0, r2, c14, c3, 1 @ CNTV_CTL str r2, [vcpu, #VCPU_TIMER_CNTV_CTL] - bic r2, #1 @ Clear ENABLE - mcr p15, 0, r2, c14, c3, 1 @ CNTV_CTL + isb mrrc p15, 3, rr_lo_hi(r2, r3), c14 @ CNTV_CVAL
@@ -529,6 +528,9 @@ ARM_BE8(rev r6, r6 ) mcrr p15, 4, r2, r2, c14 @ CNTVOFF 1: + mov r2, #0 @ Clear ENABLE + mcr p15, 0, r2, c14, c3, 1 @ CNTV_CTL + @ Allow physical timer/counter access for the host mrc p15, 4, r2, c14, c1, 0 @ CNTHCTL orr r2, r2, #(CNTHCTL_PL1PCEN | CNTHCTL_PL1PCTEN)
arch/arm/kvm/mmu.c +4 -2
@@ -1792,8 +1792,10 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,if (vma->vm_flags &VM_PFNMAP ) {gpa_t gpa = mem->guest_phys_addr + (vm_start - mem->userspace_addr); -phys_addr_t pa = (vma->vm_pgoff <<PAGE_SHIFT ) + - vm_start - vma->vm_start; +phys_addr_t pa; + + pa = (phys_addr_t )vma->vm_pgoff <<PAGE_SHIFT ; + pa += vm_start - vma->vm_start;/* IO region dirty page logging not allowed */ if (memslot->flags &KVM_MEM_LOG_DIRTY_PAGES )
arch/arm/mach-exynos/mcpm-exynos.c +26 -1
@@ -20,6 +20,7 @@#include <asm/cputype.h> #include <asm/cp15.h> #include <asm/mcpm.h> +#include <asm/smp_plat.h> #include "regs-pmu.h" #include "common.h"
@@ -70,7 +71,31 @@ static int exynos_cpu_powerup(unsigned int cpu, unsigned int cluster) cluster >= EXYNOS5420_NR_CLUSTERS)return -EINVAL ; -exynos_cpu_power_up (cpunr); +if (!exynos_cpu_power_state (cpunr)) { +exynos_cpu_power_up (cpunr); + +/* +* This assumes the cluster number of the big cores(Cortex A15) +* is 0 and the Little cores(Cortex A7) is 1. +* When the system was booted from the Little core, +* they should be reset during power up cpu. +*/ +if (cluster && + cluster ==MPIDR_AFFINITY_LEVEL (cpu_logical_map (0 ),1 )) { +/* +* Before we reset the Little cores, we should wait +* the SPARE2 register is set to 1 because the init +* codes of the iROM will set the register after +* initialization. +*/ +while (!pmu_raw_readl (S5P_PMU_SPARE2 )) +udelay (10 ); + +pmu_raw_writel (EXYNOS5420_KFC_CORE_RESET (cpu), +EXYNOS_SWRESET ); + } + } +return 0 ; }
arch/arm/mach-exynos/regs-pmu.h +6 -0
@@ -513,6 +513,12 @@ static inline unsigned int exynos_pmu_cpunr(unsigned int mpidr)#define SPREAD_ENABLE 0xF#define SPREAD_USE_STANDWFI 0xF +#define EXYNOS5420_KFC_CORE_RESET0 BIT(8) +#define EXYNOS5420_KFC_ETM_RESET0 BIT(20) + +#define EXYNOS5420_KFC_CORE_RESET (_nr) \ + ((EXYNOS5420_KFC_CORE_RESET0 | EXYNOS5420_KFC_ETM_RESET0) << (_nr)) +#define EXYNOS5420_BB_CON1 0x0784#define EXYNOS5420_BB_SEL_EN BIT(31)#define EXYNOS5420_BB_PMOS_EN BIT(7)
arch/arm/plat-pxa/ssp.c +0 -1
@@ -107,7 +107,6 @@ static const struct of_device_id pxa_ssp_of_ids[] = { { .compatible = "mvrl,pxa168-ssp", .data = (void *) PXA168_SSP }, { .compatible = "mrvl,pxa910-ssp", .data = (void *) PXA910_SSP }, { .compatible = "mrvl,ce4100-ssp", .data = (void *) CE4100_SSP }, - { .compatible = "mrvl,lpss-ssp", .data = (void *) LPSS_SSP }, { }, };MODULE_DEVICE_TABLE (of, pxa_ssp_of_ids);
arch/arm64/kernel/efi.c +2 -1
@@ -258,7 +258,8 @@ static bool __init efi_virtmap_init(void)*/ if (!is_normal_ram (md)) prot =__pgprot (PROT_DEVICE_nGnRE); -else if (md->type ==EFI_RUNTIME_SERVICES_CODE ) +else if (md->type ==EFI_RUNTIME_SERVICES_CODE || + !PAGE_ALIGNED (md->phys_addr)) prot =PAGE_KERNEL_EXEC ;else prot =PAGE_KERNEL ;
arch/arm64/kernel/entry-ftrace.S +20 -2
@@ -178,6 +178,24 @@ ENTRY(ftrace_stub) ENDPROC(ftrace_stub) #ifdef CONFIG_FUNCTION_GRAPH_TRACER + /* save return value regs*/ + .macro save_return_regs + sub sp, sp, #64 + stp x0, x1, [sp] + stp x2, x3, [sp, #16] + stp x4, x5, [sp, #32] + stp x6, x7, [sp, #48] + .endm + + /* restore return value regs*/ + .macro restore_return_regs + ldp x0, x1, [sp] + ldp x2, x3, [sp, #16] + ldp x4, x5, [sp, #32] + ldp x6, x7, [sp, #48] + add sp, sp, #64 + .endm + /* * void ftrace_graph_caller(void) *
@@ -204,11 +222,11 @@ ENDPROC(ftrace_graph_caller) * only when CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST is enabled. */ ENTRY(return_to_handler) - str x0, [sp, #-16]! + save_return_regs mov x0, x29 // parent's fp bl ftrace_return_to_handler// addr = ftrace_return_to_hander(fp); mov x30, x0 // restore the original return address - ldr x0, [sp], #16 + restore_return_regs ret END(return_to_handler) #endif /* CONFIG_FUNCTION_GRAPH_TRACER */
arch/arm64/mm/fault.c +1 -0
@@ -278,6 +278,7 @@ retry:* starvation. */ mm_flags &= ~FAULT_FLAG_ALLOW_RETRY ; + mm_flags |=FAULT_FLAG_TRIED ; goto retry; } }
arch/m68k/include/asm/linkage.h +30 -0
@@ -4,4 +4,34 @@#define __ALIGN .align 4#define __ALIGN_STR ".align 4" +/* +* Make sure the compiler doesn't do anything stupid with the +* arguments on the stack - they are owned by the *caller*, not +* the callee. This just fools gcc into not spilling into them, +* and keeps it from doing tailcall recursion and/or using the +* stack slots for temporaries, since they are live and "used" +* all the way to the end of the function. +*/ +#define asmlinkage_protect(n, ret, args...) \ + __asmlinkage_protect##n(ret, ##args) +#define __asmlinkage_protect_n(ret, args...) \ + __asm__ __volatile__ ("" : "=r" (ret) : "0" (ret), ##args) +#define __asmlinkage_protect0 (ret) \ + __asmlinkage_protect_n(ret) +#define __asmlinkage_protect1 (ret, arg1) \ + __asmlinkage_protect_n(ret, "m" (arg1)) +#define __asmlinkage_protect2 (ret, arg1, arg2) \ + __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2)) +#define __asmlinkage_protect3 (ret, arg1, arg2, arg3) \ + __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2), "m" (arg3)) +#define __asmlinkage_protect4 (ret, arg1, arg2, arg3, arg4) \ + __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2), "m" (arg3), \ + "m" (arg4)) +#define __asmlinkage_protect5 (ret, arg1, arg2, arg3, arg4, arg5) \ + __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2), "m" (arg3), \ + "m" (arg4), "m" (arg5)) +#define __asmlinkage_protect6 (ret, arg1, arg2, arg3, arg4, arg5, arg6) \ + __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2), "m" (arg3), \ + "m" (arg4), "m" (arg5), "m" (arg6)) +#endif
arch/mips/kernel/cps-vec.S +7 -5
@@ -39,6 +39,7 @@ mfc0 \dest, CP0_CONFIG, 3 andi \dest, \dest, MIPS_CONF3_MT beqz \dest, \nomt + nop .endm .section .text.cps-vec
@@ -223,10 +224,9 @@ LEAF(excep_ejtag) END(excep_ejtag) LEAF(mips_cps_core_init) -#ifdef CONFIG_MIPS_MT +#ifdef CONFIG_MIPS_MT_SMP /* Check that the core implements the MT ASE */ has_mt t0, 3f - nop .set push .set mips64r2
@@ -310,8 +310,9 @@ LEAF(mips_cps_boot_vpes) PTR_ADDU t0, t0, t1 /* Calculate this VPEs ID. If the core doesn't support MT use 0 */ + li t9, 0 +#ifdef CONFIG_MIPS_MT_SMP has_mt ta2, 1f - li t9, 0 /* Find the number of VPEs present in the core */ mfc0 t1, CP0_MVPCONF0
@@ -330,6 +331,7 @@ LEAF(mips_cps_boot_vpes) /* Retrieve the VPE ID from EBase.CPUNum */ mfc0 t9, $15, 1 and t9, t9, t1 +#endif 1: /* Calculate a pointer to this VPEs struct vpe_boot_config */ li t1, VPEBOOTCFG_SIZE
@@ -337,7 +339,7 @@ LEAF(mips_cps_boot_vpes) PTR_L ta3, COREBOOTCFG_VPECONFIG(t0) PTR_ADDU v0, v0, ta3 -#ifdef CONFIG_MIPS_MT +#ifdef CONFIG_MIPS_MT_SMP /* If the core doesn't support MT then return */ bnez ta2, 1f
@@ -451,7 +453,7 @@ LEAF(mips_cps_boot_vpes) 2: .set pop -#endif /* CONFIG_MIPS_MT */ +#endif /* CONFIG_MIPS_MT_SMP */ /* Return */ jr ra
arch/mips/kernel/setup.c +9 -1
@@ -338,7 +338,7 @@ static void __init bootmem_init(void)if (end <= reserved_end)continue ;#ifdef CONFIG_BLK_DEV_INITRD -/* mapstart should be after initrd_end */ +/* Skip zones before initrd and initrd itself */ if (initrd_end && end <= (unsigned long )PFN_UP (__pa (initrd_end)))continue ;#endif
@@ -371,6 +371,14 @@ static void __init bootmem_init(void) max_low_pfn =PFN_DOWN (HIGHMEM_START ); } +#ifdef CONFIG_BLK_DEV_INITRD +/* +* mapstart should be after initrd_end +*/ +if (initrd_end) + mapstart =max (mapstart, (unsigned long )PFN_UP (__pa (initrd_end))); +#endif +/* * Initialize the boot-time allocator with low memory only. */
arch/mips/loongson64/common/env.c +3 -0
@@ -64,6 +64,9 @@ void __init prom_init_env(void) }if (memsize ==0 ) memsize =256 ; + + loongson_sysconf.nr_uarts =1 ; +pr_info ("memsize=%u, highmemsize=%u\n" , memsize, highmemsize);#else struct boot_params *boot_p;
arch/mips/mm/dma-default.c +1 -1
@@ -100,7 +100,7 @@ static gfp_t massage_gfp_flags(const struct device *dev, gfp_t gfp) else#endif #if defined(CONFIG_ZONE_DMA ) && !defined(CONFIG_ZONE_DMA32 ) -if (dev->coherent_dma_mask <DMA_BIT_MASK (64 )) +if (dev->coherent_dma_mask <DMA_BIT_MASK (sizeof (phys_addr_t) *8 )) dma_flag = __GFP_DMA; else#endif
arch/mips/net/bpf_jit_asm.S +47 -3
86 lines not on this page · raw message
arch/powerpc/kvm/book3s.c +6 -0
@@ -827,12 +827,15 @@ int kvmppc_h_logical_ci_load(struct kvm_vcpu *vcpu)unsigned long size =kvmppc_get_gpr (vcpu,4 );unsigned long addr =kvmppc_get_gpr (vcpu,5 );u64 buf; +int srcu_idx;int ret;if (!is_power_of_2 (size) || (size >sizeof (buf)))return H_TOO_HARD ; + srcu_idx =srcu_read_lock (&vcpu->kvm->srcu); ret =kvm_io_bus_read (vcpu,KVM_MMIO_BUS , addr, size, &buf); +srcu_read_unlock (&vcpu->kvm->srcu, srcu_idx);if (ret !=0 )return H_TOO_HARD ;
@@ -867,6 +870,7 @@ int kvmppc_h_logical_ci_store(struct kvm_vcpu *vcpu)unsigned long addr =kvmppc_get_gpr (vcpu,5 );unsigned long val =kvmppc_get_gpr (vcpu,6 );u64 buf; +int srcu_idx;int ret;switch (size) {
@@ -890,7 +894,9 @@ int kvmppc_h_logical_ci_store(struct kvm_vcpu *vcpu)return H_TOO_HARD ; } + srcu_idx =srcu_read_lock (&vcpu->kvm->srcu); ret =kvm_io_bus_write (vcpu,KVM_MMIO_BUS , addr, size, &buf); +srcu_read_unlock (&vcpu->kvm->srcu, srcu_idx);if (ret !=0 )return H_TOO_HARD ;
arch/powerpc/kvm/book3s_hv.c +1 -1
@@ -2178,7 +2178,7 @@ static int kvmppc_run_vcpu(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu) vc->runner = vcpu;if (n_ceded == vc->n_runnable) {kvmppc_vcore_blocked (vc); - }else if (should_resched ()) { + }else if (need_resched ()) { vc->vcore_state =VCORE_PREEMPT ;/* Let something else run */ cond_resched_lock (&vc->lock);
arch/powerpc/kvm/book3s_hv_rmhandlers.S +1 -0
@@ -1171,6 +1171,7 @@ mc_cont: bl kvmhv_accumulate_time #endif + mr r3, r12 /* Increment exit count, poke other threads to exit */ bl kvmhv_commence_exit nop
arch/powerpc/platforms/pasemi/msi.c +3 -2
@@ -63,6 +63,7 @@ static struct irq_chip mpic_pasemi_msi_chip = {static void pasemi_msi_teardown_msi_irqs (struct pci_dev *pdev) {struct msi_desc *entry; +irq_hw_number_t hwirq;pr_debug ("pasemi_msi_teardown_msi_irqs, pdev %p\n" , pdev);
@@ -70,10 +71,10 @@ static void pasemi_msi_teardown_msi_irqs(struct pci_dev *pdev)if (entry->irq ==NO_IRQ )continue ; + hwirq =virq_to_hw (entry->irq);irq_set_msi_desc (entry->irq,NULL ); -msi_bitmap_free_hwirqs (&msi_mpic->msi_bitmap, -virq_to_hw (entry->irq),ALLOC_CHUNK );irq_dispose_mapping (entry->irq); +msi_bitmap_free_hwirqs (&msi_mpic->msi_bitmap, hwirq,ALLOC_CHUNK ); }return ;
arch/powerpc/platforms/powernv/pci.c +3 -2
@@ -99,6 +99,7 @@ void pnv_teardown_msi_irqs(struct pci_dev *pdev)struct pci_controller *hose =pci_bus_to_host (pdev->bus);struct pnv_phb *phb = hose->private_data;struct msi_desc *entry; +irq_hw_number_t hwirq;if (WARN_ON (!phb))return ;
@@ -106,10 +107,10 @@ void pnv_teardown_msi_irqs(struct pci_dev *pdev)list_for_each_entry (entry, &pdev->msi_list, list) {if (entry->irq ==NO_IRQ )continue ; + hwirq =virq_to_hw (entry->irq);irq_set_msi_desc (entry->irq,NULL ); -msi_bitmap_free_hwirqs (&phb->msi_bmp, -virq_to_hw (entry->irq) - phb->msi_base,1 );irq_dispose_mapping (entry->irq); +msi_bitmap_free_hwirqs (&phb->msi_bmp, hwirq - phb->msi_base,1 ); } }#endif /* CONFIG_PCI_MSI */
arch/powerpc/sysdev/fsl_msi.c +3 -2
@@ -128,15 +128,16 @@ static void fsl_teardown_msi_irqs(struct pci_dev *pdev) {struct msi_desc *entry;struct fsl_msi *msi_data; +irq_hw_number_t hwirq;list_for_each_entry (entry, &pdev->msi_list, list) {if (entry->irq ==NO_IRQ )continue ; + hwirq =virq_to_hw (entry->irq); msi_data =irq_get_chip_data (entry->irq);irq_set_msi_desc (entry->irq,NULL ); -msi_bitmap_free_hwirqs (&msi_data->bitmap, -virq_to_hw (entry->irq),1 );irq_dispose_mapping (entry->irq); +msi_bitmap_free_hwirqs (&msi_data->bitmap, hwirq,1 ); }return ;
arch/powerpc/sysdev/mpic_u3msi.c +3 -2
@@ -107,15 +107,16 @@ static u64 find_u4_magic_addr(struct pci_dev *pdev, unsigned int hwirq)static void u3msi_teardown_msi_irqs (struct pci_dev *pdev) {struct msi_desc *entry; +irq_hw_number_t hwirq;list_for_each_entry (entry, &pdev->msi_list, list) {if (entry->irq ==NO_IRQ )continue ; + hwirq =virq_to_hw (entry->irq);irq_set_msi_desc (entry->irq,NULL ); -msi_bitmap_free_hwirqs (&msi_mpic->msi_bitmap, -virq_to_hw (entry->irq),1 );irq_dispose_mapping (entry->irq); +msi_bitmap_free_hwirqs (&msi_mpic->msi_bitmap, hwirq,1 ); }return ;
arch/powerpc/sysdev/ppc4xx_msi.c +3 -2
@@ -124,16 +124,17 @@ void ppc4xx_teardown_msi_irqs(struct pci_dev *dev) {struct msi_desc *entry;struct ppc4xx_msi *msi_data = &ppc4xx_msi; +irq_hw_number_t hwirq;dev_dbg (&dev->dev,"PCIE-MSI: tearing down msi irqs\n" );list_for_each_entry (entry, &dev->msi_list, list) {if (entry->irq ==NO_IRQ )continue ; + hwirq =virq_to_hw (entry->irq);irq_set_msi_desc (entry->irq,NULL ); -msi_bitmap_free_hwirqs (&msi_data->bitmap, -virq_to_hw (entry->irq),1 );irq_dispose_mapping (entry->irq); +msi_bitmap_free_hwirqs (&msi_data->bitmap, hwirq,1 ); } }
arch/s390/boot/compressed/Makefile +1 -1
@@ -10,7 +10,7 @@ targets += misc.o piggy.o sizes.h head.o KBUILD_CFLAGS := -m64 -D__KERNEL__ $(LINUX_INCLUDE) -O2 KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING -KBUILD_CFLAGS += $(cflags-y) -fno-delete-null-pointer-checks +KBUILD_CFLAGS += $(cflags-y) -fno-delete-null-pointer-checks -msoft-float KBUILD_CFLAGS += $(call cc-option,-mpacked-stack) KBUILD_CFLAGS += $(call cc-option,-ffreestanding)
arch/s390/kernel/compat_signal.c +23 -4
@@ -48,6 +48,19 @@ typedef structstruct ucontext32 uc; } rt_sigframe32; +static inline void sigset_to_sigset32 (unsigned long *set64, +compat_sigset_word *set32) +{ + set32[0 ] = (compat_sigset_word ) set64[0 ]; + set32[1 ] = (compat_sigset_word)(set64[0 ] >>32 ); +} + +static inline void sigset32_to_sigset (compat_sigset_word *set32, +unsigned long *set64) +{ + set64[0 ] = (unsigned long ) set32[0 ] | ((unsigned long ) set32[1 ] <<32 ); +} +int copy_siginfo_to_user32 (compat_siginfo_t __user *to,const siginfo_t *from) {int err;
@@ -303,10 +316,12 @@ COMPAT_SYSCALL_DEFINE0(sigreturn) {struct pt_regs *regs =task_pt_regs (current);sigframe32 __user *frame = (sigframe32 __user *)regs->gprs[15 ]; +compat_sigset_t cset;sigset_t set; -if (__copy_from_user (&set.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE32)) +if (__copy_from_user (&cset.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE32)) goto badframe; +sigset32_to_sigset (cset.sig, set.sig);set_current_blocked (&set);if (restore_sigregs32 (regs, &frame->sregs)) goto badframe;
@@ -323,10 +338,12 @@ COMPAT_SYSCALL_DEFINE0(rt_sigreturn) {struct pt_regs *regs =task_pt_regs (current);rt_sigframe32 __user *frame = (rt_sigframe32 __user *)regs->gprs[15 ]; +compat_sigset_t cset;sigset_t set; -if (__copy_from_user (&set, &frame->uc.uc_sigmask,sizeof (set))) +if (__copy_from_user (&cset, &frame->uc.uc_sigmask,sizeof (cset))) goto badframe; +sigset32_to_sigset (cset.sig, set.sig);set_current_blocked (&set);if (compat_restore_altstack (&frame->uc.uc_stack)) goto badframe;
@@ -397,7 +414,7 @@ static int setup_frame32(struct ksignal *ksig, sigset_t *set,return -EFAULT ;/* Create struct sigcontext32 on the signal stack */ -memcpy (&sc.oldmask, &set->sig, _SIGMASK_COPY_SIZE32); +sigset_to_sigset32 (set->sig, sc.oldmask); sc.sregs = (__u32 )(unsigned long __force ) &frame->sregs;if (__copy_to_user (&frame->sc, &sc,sizeof (frame->sc)))return -EFAULT ;
@@ -458,6 +475,7 @@ static int setup_frame32(struct ksignal *ksig, sigset_t *set,static int setup_rt_frame32 (struct ksignal *ksig,sigset_t *set,struct pt_regs *regs) { +compat_sigset_t cset;rt_sigframe32 __user *frame;unsigned long restorer;size_t frame_size;
@@ -505,11 +523,12 @@ static int setup_rt_frame32(struct ksignal *ksig, sigset_t *set,store_sigregs ();/* Create ucontext on the signal stack. */ +sigset_to_sigset32 (set->sig, cset.sig);if (__put_user (uc_flags, &frame->uc.uc_flags) ||__put_user (0 , &frame->uc.uc_link) ||__compat_save_altstack (&frame->uc.uc_stack, regs->gprs[15 ]) ||save_sigregs32 (regs, &frame->uc.uc_mcontext) || -__copy_to_user (&frame->uc.uc_sigmask, set,sizeof (*set)) || +__copy_to_user (&frame->uc.uc_sigmask, &cset,sizeof (cset)) ||save_sigregs_ext32 (regs, &frame->uc.uc_mcontext_ext))return -EFAULT ;
arch/x86/entry/entry_64.S +15 -1
@@ -1219,7 +1219,18 @@ END(error_exit) /* Runs on exception stack */ ENTRY(nmi) + /* + * Fix up the exception frame if we're on Xen. + * PARAVIRT_ADJUST_EXCEPTION_FRAME is guaranteed to push at most + * one value to the stack on native, so it may clobber the rdx + * scratch slot, but it won't clobber any of the important + * slots past it. + * + * Xen is a different story, because the Xen frame itself overlaps + * the "NMI executing" variable. + */ PARAVIRT_ADJUST_EXCEPTION_FRAME + /* * We allow breakpoints in NMIs. If a breakpoint occurs, then * the iretq it performs will take us out of NMI context.
@@ -1270,9 +1281,12 @@ ENTRY(nmi) * we don't want to enable interrupts, because then we'll end * up in an awkward situation in which IRQs are on but NMIs * are off. + * + * We also must not push anything to the stack before switching + * stacks lest we corrupt the "NMI executing" variable. */ - SWAPGS + SWAPGS_UNSAFE_STACK cld movq %rsp, %rdx movq PER_CPU_VAR(cpu_current_top_of_stack), %rsp
arch/x86/include/asm/msr-index.h +1 -0
@@ -311,6 +311,7 @@/* C1E active bits in int pending message */ #define K8_INTP_C1E_ACTIVE_MASK 0x18000000#define MSR_K8_TSEG_ADDR 0xc0010112 +#define MSR_K8_TSEG_MASK 0xc0010113#define K8_MTRRFIXRANGE_DRAM_ENABLE 0x00040000/* MtrrFixDramEn bit */ #define K8_MTRRFIXRANGE_DRAM_MODIFY 0x00080000/* MtrrFixDramModEn bit */ #define K8_MTRR_RDMEM_WRMEM_MASK 0x18181818/* Mask: RdMem|WrMem */
arch/x86/include/asm/preempt.h +2 -2
@@ -90,9 +90,9 @@ static __always_inline bool __preempt_count_dec_and_test(void)/* * Returns true when we need to resched and can (barring IRQ state). */ -static __always_inline bool should_resched(void) +static __always_inline bool should_resched(int preempt_offset) { -return unlikely (!raw_cpu_read_4 (__preempt_count)); +return unlikely (raw_cpu_read_4 (__preempt_count) == preempt_offset); }#ifdef CONFIG_PREEMPT
arch/x86/include/asm/qspinlock.h +14 -5
@@ -39,18 +39,27 @@ static inline void queued_spin_unlock(struct qspinlock *lock) }#endif -#define virt_queued_spin_lock virt_queued_spin_lock - -static inline bool virt_queued_spin_lock (struct qspinlock *lock) +#ifdef CONFIG_PARAVIRT +#define virt_spin_lock virt_spin_lock +static inline bool virt_spin_lock (struct qspinlock *lock) {if (!static_cpu_has (X86_FEATURE_HYPERVISOR ))return false; -while (atomic_cmpxchg (&lock->val,0 , _Q_LOCKED_VAL) !=0 ) -cpu_relax (); +/* +* On hypervisors without PARAVIRT_SPINLOCKS support we fall +* back to a Test-and-Set spinlock, because fair locks have +* horrible lock 'holder' preemption issues. +*/ + +do { +while (atomic_read (&lock->val) !=0 ) +cpu_relax (); + }while (atomic_cmpxchg (&lock->val,0 , _Q_LOCKED_VAL) !=0 );return true; } +#endif /* CONFIG_PARAVIRT */ #include <asm-generic/qspinlock.h>
arch/x86/kernel/alternative.c +5 -0
@@ -338,10 +338,15 @@ done: static void __init_or_module optimize_nops(struct alt_instr *a, u8 *instr) { +unsigned long flags; +if (instr[0 ] !=0x90 )return ; +local_irq_save (flags);add_nops (instr + (a->instrlen - a->padlen), a->padlen); +sync_core (); +local_irq_restore (flags);DUMP_BYTES (instr, a->instrlen,"%p: [%d:%d) optimized NOPs: " , instr, a->instrlen - a->padlen, a->padlen);
arch/x86/kernel/apic/apic.c +7 -0
@@ -336,6 +336,13 @@ static void __setup_APIC_LVTT(unsigned int clocks, int oneshot, int irqen)apic_write (APIC_LVTT , lvtt_value);if (lvtt_value &APIC_LVT_TIMER_TSCDEADLINE ) { +/* +* See Intel SDM: TSC-Deadline Mode chapter. In xAPIC mode, +* writing to the APIC LVTT and TSC_DEADLINE MSR isn't serialized. +* According to Intel, MFENCE can do the serialization here. +*/ + asmvolatile ("mfence" : : :"memory" ); +printk_once (KERN_DEBUG "TSC deadline timer enabled\n" );return ; }
arch/x86/kernel/apic/io_apic.c +3 -2
@@ -2522,6 +2522,7 @@ void __init setup_ioapic_dest(void)int pin, ioapic, irq, irq_entry;const struct cpumask *mask;struct irq_data *idata; +struct irq_chip *chip;if (skip_ioapic_setup ==1 )return ;
@@ -2545,9 +2546,9 @@ void __init setup_ioapic_dest(void) else mask = apic->target_cpus (); - irq_set_affinity(irq, mask); + chip =irq_data_get_irq_chip (idata); + chip->irq_set_affinity(idata, mask, false); } - }#endif
arch/x86/kernel/cpu/perf_event_intel.c +4 -1
@@ -2102,9 +2102,12 @@ static struct event_constraint * intel_get_event_constraints(struct cpu_hw_events *cpuc, int idx, struct perf_event *event) { - struct event_constraint *c1 = cpuc->event_constraint[idx]; + struct event_constraint *c1 = NULL;struct event_constraint *c2; +if (idx >=0 )/* fake does < 0 */ + c1 = cpuc->event_constraint[idx]; +/* * first time only * - static constraint: no change across incremental scheduling calls
arch/x86/kernel/crash.c +3 -4
@@ -185,10 +185,9 @@ void native_machine_crash_shutdown(struct pt_regs *regs) }#ifdef CONFIG_KEXEC_FILE -static int get_nr_ram_ranges_callback (unsigned long start_pfn, -unsigned long nr_pfn,void *arg) +static int get_nr_ram_ranges_callback (u64 start,u64 end,void *arg) { -int *nr_ranges = arg; +unsigned int *nr_ranges = arg; (*nr_ranges)++;return 0 ;
@@ -214,7 +213,7 @@ static void fill_up_crash_elf_data(struct crash_elf_data *ced, ced->image = image; -walk_system_ram_range (0 ,-1 , &nr_ranges, +walk_system_ram_res (0 ,-1 , &nr_ranges, get_nr_ram_ranges_callback); ced->max_nr_ranges = nr_ranges;
arch/x86/kernel/paravirt.c +12 -4
@@ -41,10 +41,18 @@#include <asm/timer.h> #include <asm/special_insns.h> -/* nop stub */ -void _paravirt_nop (void ) -{ -} +/* +* nop stub, which must not clobber anything *including the stack* to +* avoid confusing the entry prologues. +*/ +extern void _paravirt_nop (void ); +asm (".pushsection .entry.text, \"ax\"\n" +".global _paravirt_nop\n" +"_paravirt_nop:\n\t" +"ret\n\t" +".size _paravirt_nop, . - _paravirt_nop\n\t" +".type _paravirt_nop, @function\n\t" +".popsection" );/* identity function, which can be inlined */ u32 _paravirt_ident_32 (u32 x)
arch/x86/kernel/process_64.c +42 -10
69 lines not on this page · raw message
arch/x86/kernel/tsc.c +10 -7
@@ -21,6 +21,7 @@#include <asm/hypervisor.h> #include <asm/nmi.h> #include <asm/x86_init.h> +#include <asm/geode.h> unsigned int __read_mostly cpu_khz;/* TSC clocks / usec, not used here */ EXPORT_SYMBOL (cpu_khz);
@@ -1013,15 +1014,17 @@ EXPORT_SYMBOL_GPL(mark_tsc_unstable);static void __init check_system_tsc_reliable (void ) { -#ifdef CONFIG_MGEODE_LX -/* RTSC counts during suspend */ +#if defined(CONFIG_MGEODEGX1 ) || defined(CONFIG_MGEODE_LX ) || defined(CONFIG_X86_GENERIC ) +if (is_geode_lx ()) { +/* RTSC counts during suspend */ #define RTSC_SUSP 0x100 -unsigned long res_low, res_high; +unsigned long res_low, res_high; -rdmsr_safe (MSR_GEODE_BUSCONT_CONF0 , &res_low, &res_high); -/* Geode_LX - the OLPC CPU has a very reliable TSC */ -if (res_low &RTSC_SUSP ) - tsc_clocksource_reliable =1 ; +rdmsr_safe (MSR_GEODE_BUSCONT_CONF0 , &res_low, &res_high); +/* Geode_LX - the OLPC CPU has a very reliable TSC */ +if (res_low &RTSC_SUSP ) + tsc_clocksource_reliable =1 ; + }#endif if (boot_cpu_has (X86_FEATURE_TSC_RELIABLE )) tsc_clocksource_reliable =1 ;
arch/x86/kvm/svm.c +7 -104
159 lines not on this page · raw message
arch/x86/kvm/vmx.c +10 -3
@@ -6134,6 +6134,8 @@ static __init int hardware_setup(void)memcpy (vmx_msr_bitmap_longmode_x2apic, vmx_msr_bitmap_longmode,PAGE_SIZE ); +set_bit (0 , vmx_vpid_bitmap);/* 0 is reserved for host */ +if (enable_apicv) {for (msr =0x800 ; msr <=0x8ff ; msr++)vmx_disable_intercept_msr_read_x2apic (msr);
@@ -8632,17 +8634,22 @@ static u64 vmx_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio)u64 ipat =0 ;/* For VT-d and EPT combination -* 1. MMIO: guest may want to apply WC, trust it. +* 1. MMIO: always map as UC * 2. EPT with VT-d: * a. VT-d without snooping control feature: can't guarantee the -* result, try to trust guest. So the same as item 1. +* result, try to trust guest. * b. VT-d with snooping control feature: snooping control feature of * VT-d engine can guarantee the cache correctness. Just set it * to WB to keep consistent with host. So the same as item 3. * 3. EPT without VT-d: always map as WB and set IPAT=1 to keep * consistent with host MTRR */ -if (!is_mmio && !kvm_arch_has_noncoherent_dma (vcpu->kvm)) { +if (is_mmio) { + cache =MTRR_TYPE_UNCACHABLE ; + goto exit; + } + +if (!kvm_arch_has_noncoherent_dma (vcpu->kvm)) { ipat =VMX_EPT_IPAT_BIT ; cache =MTRR_TYPE_WRBACK ; goto exit;
arch/x86/kvm/x86.c +2 -0
@@ -2388,6 +2388,8 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)case MSR_IA32_LASTINTFROMIP :case MSR_IA32_LASTINTTOIP :case MSR_K8_SYSCFG : +case MSR_K8_TSEG_ADDR : +case MSR_K8_TSEG_MASK :case MSR_K7_HWCR :case MSR_VM_HSAVE_PA :case MSR_K8_INT_PENDING_MSG :
arch/x86/mm/init_64.c +1 -1
@@ -1132,7 +1132,7 @@ void mark_rodata_ro(void)* has been zapped already via cleanup_highmem(). */ all_end =roundup ((unsigned long )_brk_end,PMD_SIZE ); -set_memory_nx (rodata_start, (all_end - rodata_start) >>PAGE_SHIFT ); +set_memory_nx (text_end, (all_end - text_end) >>PAGE_SHIFT );rodata_test ();
arch/x86/pci/intel_mid_pci.c +22 -2
@@ -35,6 +35,9 @@#define PCIE_CAP_OFFSET 0x100 +/* Quirks for the listed devices */ +#define PCI_DEVICE_ID_INTEL_MRFL_MMC 0x1190 +/* Fixed BAR fields */ #define PCIE_VNDR_CAP_ID_FIXED_BAR 0x00/* Fixed BAR (TBD) */ #define PCI_FIXED_BAR_0_SIZE 0x04
@@ -214,10 +217,27 @@ static int intel_mid_pci_irq_enable(struct pci_dev *dev)if (dev->irq_managed && dev->irq >0 )return 0 ; -if (intel_mid_identify_cpu () ==INTEL_MID_CPU_CHIP_TANGIER ) +switch (intel_mid_identify_cpu ()) { +case INTEL_MID_CPU_CHIP_TANGIER : polarity =0 ;/* active high */ -else + +/* Special treatment for IRQ0 */ +if (dev->irq ==0 ) { +/* +* TNG has IRQ0 assigned to eMMC controller. But there +* are also other devices with bogus PCI configuration +* that have IRQ0 assigned. This check ensures that +* eMMC gets it. +*/ +if (dev->device !=PCI_DEVICE_ID_INTEL_MRFL_MMC ) +return -EBUSY ; + } +break ; +default : polarity =1 ;/* active low */ +break ; + } +ioapic_set_alloc_attr (&info,dev_to_node (&dev->dev),1 , polarity);/*
arch/x86/platform/efi/efi.c +66 -1
79 lines not on this page · raw message
arch/x86/xen/enlighten.c +23 -0
@@ -33,6 +33,10 @@#include <linux/memblock.h> #include <linux/edd.h> +#ifdef CONFIG_KEXEC_CORE +#include <linux/kexec.h> +#endif +#include <xen/xen.h> #include <xen/events.h> #include <xen/interface/xen.h>
@@ -1800,6 +1804,21 @@ static struct notifier_block xen_hvm_cpu_notifier = { .notifier_call = xen_hvm_cpu_notify, }; +#ifdef CONFIG_KEXEC_CORE +static void xen_hvm_shutdown (void ) +{ +native_machine_shutdown (); +if (kexec_in_progress) +xen_reboot (SHUTDOWN_soft_reset); +} + +static void xen_hvm_crash_shutdown (struct pt_regs *regs) +{ +native_machine_crash_shutdown (regs); +xen_reboot (SHUTDOWN_soft_reset); +} +#endif +static void __init xen_hvm_guest_init (void ) {if (xen_pv_domain ())
@@ -1819,6 +1838,10 @@ static void __init xen_hvm_guest_init(void) x86_init.irqs.intr_init = xen_init_IRQ;xen_hvm_init_time_ops ();xen_hvm_init_mmu_ops (); +#ifdef CONFIG_KEXEC_CORE + machine_ops.shutdown = xen_hvm_shutdown; + machine_ops.crash_shutdown = xen_hvm_crash_shutdown; +#endif }#endif
block/blk-cgroup.c +3 -0
@@ -387,6 +387,9 @@ static void blkg_destroy_all(struct request_queue *q)blkg_destroy (blkg);spin_unlock (&blkcg->lock); } + + q->root_blkg =NULL ; + q->root_rl.blkg =NULL ; }/*
block/blk-mq.c +8 -1
@@ -1807,7 +1807,6 @@ static void blk_mq_map_swqueue(struct request_queue *q) hctx = q->mq_ops->map_queue (q, i);cpumask_set_cpu (i, hctx->cpumask); -cpumask_set_cpu (i, hctx->tags->cpumask); ctx->index_hw = hctx->nr_ctx; hctx->ctxs[hctx->nr_ctx++] = ctx; }
@@ -1847,6 +1846,14 @@ static void blk_mq_map_swqueue(struct request_queue *q) hctx->next_cpu =cpumask_first (hctx->cpumask); hctx->next_cpu_batch =BLK_MQ_CPU_WORK_BATCH ; } + +queue_for_each_ctx (q, ctx, i) { +if (!cpu_online (i)) +continue ; + + hctx = q->mq_ops->map_queue (q, i); +cpumask_set_cpu (i, hctx->tags->cpumask); + } }static void blk_mq_update_tag_set_depth (struct blk_mq_tag_set *set)
drivers/base/cacheinfo.c +8 -2
@@ -148,7 +148,11 @@ static void cache_shared_cpu_map_remove(unsigned int cpu)if (sibling == cpu)/* skip itself */ continue ; + sib_cpu_ci =get_cpu_cacheinfo (sibling); +if (!sib_cpu_ci->info_list) +continue ; + sib_leaf = sib_cpu_ci->info_list + index;cpumask_clear_cpu (cpu, &sib_leaf->shared_cpu_map);cpumask_clear_cpu (sibling, &this_leaf->shared_cpu_map);
@@ -159,6 +163,9 @@ static void cache_shared_cpu_map_remove(unsigned int cpu)static void free_cache_attributes (unsigned int cpu) { +if (!per_cpu_cacheinfo (cpu)) +return ; +cache_shared_cpu_map_remove (cpu);kfree (per_cpu_cacheinfo (cpu));
@@ -514,8 +521,7 @@ static int cacheinfo_cpu_callback(struct notifier_block *nfb,break ;case CPU_DEAD :cache_remove_dev (cpu); -if (per_cpu_cacheinfo (cpu)) -free_cache_attributes (cpu); +free_cache_attributes (cpu);break ; }return notifier_from_errno (rc);
drivers/base/property.c +3 -2
@@ -27,9 +27,10 @@*/ void device_add_property_set (struct device *dev,struct property_set *pset) { -if (pset) - pset->fwnode.type =FWNODE_PDATA ; +if (!pset) +return ; + pset->fwnode.type =FWNODE_PDATA ;set_secondary_fwnode (dev, &pset->fwnode); }EXPORT_SYMBOL_GPL (device_add_property_set);
drivers/base/regmap/regmap-debugfs.c +2 -3
@@ -32,8 +32,7 @@ static DEFINE_MUTEX(regmap_debugfs_early_lock);/* Calculate the length of a fixed format */ static size_t regmap_calc_reg_len (int max_val,char *buf,size_t buf_size) { -snprintf (buf, buf_size,"%x" , max_val); -return strlen (buf); +return snprintf (NULL ,0 ,"%x" , max_val); } static ssize_t regmap_name_read_file(struct file *file,
@@ -432,7 +431,7 @@ static ssize_t regmap_access_read_file(struct file *file,/* If we're in the region the user is trying to read */ if (p >= *ppos) {/* ...but not beyond it */ -if (buf_pos >= count -1 - tot_len) +if (buf_pos + tot_len +1 >= count)break ;/* Format the register */
drivers/block/xen-blkback/xenbus.c +20 -18
@@ -212,6 +212,9 @@ static int xen_blkif_map(struct xen_blkif *blkif, grant_ref_t *gref,static int xen_blkif_disconnect (struct xen_blkif *blkif) { +struct pending_req *req, *n; +int i =0 , j; +if (blkif->xenblkd) {kthread_stop (blkif->xenblkd);wake_up (&blkif->shutdown_wq);
@@ -238,13 +241,28 @@ static int xen_blkif_disconnect(struct xen_blkif *blkif)/* Remove all persistent grants and the cache of ballooned pages. */ xen_blkbk_free_caches (blkif); +/* Check that there is no request in use */ +list_for_each_entry_safe (req, n, &blkif->pending_free, free_list) { +list_del (&req->free_list); + +for (j =0 ; j <MAX_INDIRECT_SEGMENTS ; j++) +kfree (req->segments[j]); + +for (j =0 ; j <MAX_INDIRECT_PAGES ; j++) +kfree (req->indirect_pages[j]); + +kfree (req); + i++; + } + +WARN_ON (i != (XEN_BLKIF_REQS_PER_PAGE * blkif->nr_ring_pages)); + blkif->nr_ring_pages =0 ; +return 0 ; }static void xen_blkif_free (struct xen_blkif *blkif) { -struct pending_req *req, *n; -int i =0 , j;xen_blkif_disconnect (blkif);xen_vbd_free (&blkif->vbd);
@@ -257,22 +275,6 @@ static void xen_blkif_free(struct xen_blkif *blkif)BUG_ON (!list_empty (&blkif->free_pages));BUG_ON (!RB_EMPTY_ROOT (&blkif->persistent_gnts)); -/* Check that there is no request in use */ -list_for_each_entry_safe (req, n, &blkif->pending_free, free_list) { -list_del (&req->free_list); - -for (j =0 ; j <MAX_INDIRECT_SEGMENTS ; j++) -kfree (req->segments[j]); - -for (j =0 ; j <MAX_INDIRECT_PAGES ; j++) -kfree (req->indirect_pages[j]); - -kfree (req); - i++; - } - -WARN_ON (i != (XEN_BLKIF_REQS_PER_PAGE * blkif->nr_ring_pages)); -kmem_cache_free (xen_blkif_cachep, blkif); }
drivers/clk/samsung/clk-cpu.c +5 -5
@@ -161,7 +161,7 @@ static int exynos_cpuclk_pre_rate_change(struct clk_notifier_data *ndata,* the values for DIV_COPY and DIV_HPM dividers need not be set. */ div0 = cfg_data->div0; -if (test_bit (CLK_CPU_HAS_DIV1 , &cpuclk->flags)) { +if (cpuclk->flags &CLK_CPU_HAS_DIV1 ) { div1 = cfg_data->div1;if (readl (base +E4210_SRC_CPU ) &E4210_MUX_HPM_MASK ) div1 = readl(base + E4210_DIV_CPU1) &
@@ -182,7 +182,7 @@ static int exynos_cpuclk_pre_rate_change(struct clk_notifier_data *ndata, alt_div =DIV_ROUND_UP (alt_prate, tmp_rate) -1 ;WARN_ON (alt_div >=MAX_DIV ); -if (test_bit (CLK_CPU_NEEDS_DEBUG_ALT_DIV , &cpuclk->flags)) { +if (cpuclk->flags &CLK_CPU_NEEDS_DEBUG_ALT_DIV ) {/* * In Exynos4210, ATB clock parent is also mout_core. So * ATB clock also needs to be mantained at safe speed.
@@ -203,7 +203,7 @@ static int exynos_cpuclk_pre_rate_change(struct clk_notifier_data *ndata,writel (div0, base +E4210_DIV_CPU0 );wait_until_divider_stable (base +E4210_DIV_STAT_CPU0 ,DIV_MASK_ALL ); -if (test_bit (CLK_CPU_HAS_DIV1 , &cpuclk->flags)) { +if (cpuclk->flags &CLK_CPU_HAS_DIV1 ) {writel (div1, base +E4210_DIV_CPU1 );wait_until_divider_stable (base +E4210_DIV_STAT_CPU1 ,DIV_MASK_ALL );
@@ -222,7 +222,7 @@ static int exynos_cpuclk_post_rate_change(struct clk_notifier_data *ndata,unsigned long mux_reg;/* find out the divider values to use for clock data */ -if (test_bit (CLK_CPU_NEEDS_DEBUG_ALT_DIV , &cpuclk->flags)) { +if (cpuclk->flags &CLK_CPU_NEEDS_DEBUG_ALT_DIV ) {while ((cfg_data->prate *1000 ) != ndata->new_rate) {if (cfg_data->prate ==0 )return -EINVAL ;
@@ -237,7 +237,7 @@ static int exynos_cpuclk_post_rate_change(struct clk_notifier_data *ndata,writel (mux_reg & ~(1 <<16 ), base +E4210_SRC_CPU );wait_until_mux_stable (base +E4210_STAT_CPU ,16 ,1 ); -if (test_bit (CLK_CPU_NEEDS_DEBUG_ALT_DIV , &cpuclk->flags)) { +if (cpuclk->flags &CLK_CPU_NEEDS_DEBUG_ALT_DIV ) { div |= (cfg_data->div0 &E4210_DIV0_ATB_MASK ); div_mask |=E4210_DIV0_ATB_MASK ; }
drivers/clk/ti/clk-3xxx.c +1 -1
@@ -163,7 +163,6 @@ static struct ti_dt_clk omap3xxx_clks[] = {DT_CLK (NULL ,"gpio2_ick" ,"gpio2_ick" ),DT_CLK (NULL ,"wdt3_ick" ,"wdt3_ick" ),DT_CLK (NULL ,"uart3_ick" ,"uart3_ick" ), -DT_CLK (NULL ,"uart4_ick" ,"uart4_ick" ),DT_CLK (NULL ,"gpt9_ick" ,"gpt9_ick" ),DT_CLK (NULL ,"gpt8_ick" ,"gpt8_ick" ), DT_CLK(NULL, "gpt7_ick", "gpt7_ick"),
@@ -308,6 +307,7 @@ static struct ti_dt_clk am35xx_clks[] = {static struct ti_dt_clk omap36xx_clks[] = {DT_CLK (NULL ,"omap_192m_alwon_fck" ,"omap_192m_alwon_fck" ),DT_CLK (NULL ,"uart4_fck" ,"uart4_fck" ), +DT_CLK (NULL ,"uart4_ick" ,"uart4_ick" ), { .node_name =NULL }, };
drivers/clk/ti/clk-7xx.c +1 -17
@@ -16,7 +16,6 @@#include <linux/clkdev.h> #include <linux/clk/ti.h> -#define DRA7_DPLL_ABE_DEFFREQ 180633600#define DRA7_DPLL_GMAC_DEFFREQ 1000000000#define DRA7_DPLL_USB_DEFFREQ 960000000
@@ -312,27 +311,12 @@ static struct ti_dt_clk dra7xx_clks[] = {int __init dra7xx_dt_clk_init (void ) {int rc; -struct clk *abe_dpll_mux, *sys_clkin2, *dpll_ck, *hdcp_ck; +struct clk *dpll_ck, *hdcp_ck;ti_dt_clocks_register (dra7xx_clks);omap2_clk_disable_autoidle_all (); - abe_dpll_mux =clk_get_sys (NULL ,"abe_dpll_sys_clk_mux" ); - sys_clkin2 =clk_get_sys (NULL ,"sys_clkin2" ); - dpll_ck =clk_get_sys (NULL ,"dpll_abe_ck" ); - - rc =clk_set_parent (abe_dpll_mux, sys_clkin2); -if (!rc) - rc =clk_set_rate (dpll_ck,DRA7_DPLL_ABE_DEFFREQ ); -if (rc) -pr_err ("%s: failed to configure ABE DPLL!\n" , __func__); - - dpll_ck =clk_get_sys (NULL ,"dpll_abe_m2x2_ck" ); - rc =clk_set_rate (dpll_ck,DRA7_DPLL_ABE_DEFFREQ *2 ); -if (rc) -pr_err ("%s: failed to configure ABE DPLL m2x2!\n" , __func__); - dpll_ck =clk_get_sys (NULL ,"dpll_gmac_ck" ); rc =clk_set_rate (dpll_ck,DRA7_DPLL_GMAC_DEFFREQ );if (rc)
drivers/cpufreq/acpi-cpufreq.c +3 -0
@@ -146,6 +146,9 @@ static ssize_t show_freqdomain_cpus(struct cpufreq_policy *policy, char *buf) {struct acpi_cpufreq_data *data =per_cpu (acfreq_data, policy->cpu); +if (unlikely (!data)) +return -ENODEV ; +return cpufreq_show_cpus (data->freqdomain_cpus, buf); }
drivers/cpufreq/cpufreq-dt.c +2 -1
@@ -255,7 +255,8 @@ static int cpufreq_init(struct cpufreq_policy *policy)rcu_read_unlock (); tol_uV = opp_uV * priv->voltage_tolerance /100 ; -if (regulator_is_supported_voltage (cpu_reg, opp_uV, +if (regulator_is_supported_voltage (cpu_reg, + opp_uV - tol_uV, opp_uV + tol_uV)) {if (opp_uV < min_uV) min_uV = opp_uV;
drivers/crypto/marvell/cesa.h +27 -0
@@ -687,6 +687,33 @@ static inline u32 mv_cesa_get_int_mask(struct mv_cesa_engine *engine)int mv_cesa_queue_req (struct crypto_async_request *req); +/* +* Helper function that indicates whether a crypto request needs to be +* cleaned up or not after being enqueued using mv_cesa_queue_req(). +*/ +static inline int mv_cesa_req_needs_cleanup (struct crypto_async_request *req, +int ret) +{ +/* +* The queue still had some space, the request was queued +* normally, so there's no need to clean it up. +*/ +if (ret == -EINPROGRESS ) +return false; + +/* +* The queue had not space left, but since the request is +* flagged with CRYPTO_TFM_REQ_MAY_BACKLOG, it was added to +* the backlog and will be processed later. There's no need to +* clean it up. +*/ +if (ret == -EBUSY && req->flags &CRYPTO_TFM_REQ_MAY_BACKLOG ) +return false; + +/* Request wasn't queued, we need to clean it up */ +return true; +} +/* TDMA functions */ static inline void mv_cesa_req_dma_iter_init(struct mv_cesa_dma_iter *iter,
drivers/crypto/marvell/cipher.c +3 -4
@@ -189,7 +189,6 @@ static inline void mv_cesa_ablkcipher_prepare(struct crypto_async_request *req, {struct ablkcipher_request *ablkreq =ablkcipher_request_cast (req);struct mv_cesa_ablkcipher_req *creq =ablkcipher_request_ctx (ablkreq); - creq->req.base.engine = engine;if (creq->req.base.type ==CESA_DMA_REQ )
@@ -431,7 +430,7 @@ static int mv_cesa_des_op(struct ablkcipher_request *req,return ret; ret =mv_cesa_queue_req (&req->base); -if (ret && ret != -EINPROGRESS ) +if (mv_cesa_req_needs_cleanup (&req->base, ret))mv_cesa_ablkcipher_cleanup (req);return ret;
@@ -551,7 +550,7 @@ static int mv_cesa_des3_op(struct ablkcipher_request *req,return ret; ret =mv_cesa_queue_req (&req->base); -if (ret && ret != -EINPROGRESS ) +if (mv_cesa_req_needs_cleanup (&req->base, ret))mv_cesa_ablkcipher_cleanup (req);return ret;
@@ -693,7 +692,7 @@ static int mv_cesa_aes_op(struct ablkcipher_request *req,return ret; ret =mv_cesa_queue_req (&req->base); -if (ret && ret != -EINPROGRESS ) +if (mv_cesa_req_needs_cleanup (&req->base, ret))mv_cesa_ablkcipher_cleanup (req);return ret;
drivers/crypto/marvell/hash.c +3 -5
@@ -739,10 +739,8 @@ static int mv_cesa_ahash_update(struct ahash_request *req)return 0 ; ret =mv_cesa_queue_req (&req->base); -if (ret && ret != -EINPROGRESS ) { +if (mv_cesa_req_needs_cleanup (&req->base, ret))mv_cesa_ahash_cleanup (req); -return ret; - }return ret; }
@@ -766,7 +764,7 @@ static int mv_cesa_ahash_final(struct ahash_request *req)return 0 ; ret =mv_cesa_queue_req (&req->base); -if (ret && ret != -EINPROGRESS ) +if (mv_cesa_req_needs_cleanup (&req->base, ret))mv_cesa_ahash_cleanup (req);return ret;
@@ -791,7 +789,7 @@ static int mv_cesa_ahash_finup(struct ahash_request *req)return 0 ; ret =mv_cesa_queue_req (&req->base); -if (ret && ret != -EINPROGRESS ) +if (mv_cesa_req_needs_cleanup (&req->base, ret))mv_cesa_ahash_cleanup (req);return ret;
drivers/dma/at_xdmac.c +13 -7
@@ -455,6 +455,15 @@ static struct at_xdmac_desc *at_xdmac_alloc_desc(struct dma_chan *chan,return desc; } +void at_xdmac_init_used_desc (struct at_xdmac_desc *desc) +{ +memset (&desc->lld,0 ,sizeof (desc->lld)); +INIT_LIST_HEAD (&desc->descs_list); + desc->direction =DMA_TRANS_NONE ; + desc->xfer_size =0 ; + desc->active_xfer = false; +} +/* Call must be protected by lock. */ static struct at_xdmac_desc *at_xdmac_get_desc (struct at_xdmac_chan *atchan) {
@@ -466,7 +475,7 @@ static struct at_xdmac_desc *at_xdmac_get_desc(struct at_xdmac_chan *atchan) desc =list_first_entry (&atchan->free_descs_list, struct at_xdmac_desc, desc_node);list_del (&desc->desc_node); - desc->active_xfer = false; +at_xdmac_init_used_desc (desc); }return desc;
@@ -797,10 +806,7 @@ at_xdmac_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t buf_addr,list_add_tail (&desc->desc_node, &first->descs_list); } - prev->lld.mbr_nda = first->tx_dma_desc.phys; -dev_dbg (chan2dev (chan), -"%s: chain lld: prev=0x%p, mbr_nda=%pad\n" , - __func__, prev, &prev->lld.mbr_nda); +at_xdmac_queue_desc (chan, prev, first); first->tx_dma_desc.flags = flags; first->xfer_size = buf_len; first->direction = direction;
@@ -878,14 +884,14 @@ at_xdmac_interleaved_queue_desc(struct dma_chan *chan,if (xt->src_inc) {if (xt->src_sgl) - chan_cc |=AT_XDMAC_CC_SAM_UBS_DS_AM ; + chan_cc |=AT_XDMAC_CC_SAM_UBS_AM ;else chan_cc |=AT_XDMAC_CC_SAM_INCREMENTED_AM ; }if (xt->dst_inc) {if (xt->dst_sgl) - chan_cc |=AT_XDMAC_CC_DAM_UBS_DS_AM ; + chan_cc |=AT_XDMAC_CC_DAM_UBS_AM ;else chan_cc |=AT_XDMAC_CC_DAM_INCREMENTED_AM ; }
drivers/dma/dw/core.c +2 -2
@@ -1591,7 +1591,6 @@ int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata)INIT_LIST_HEAD (&dw->dma.channels);for (i =0 ; i < nr_channels; i++) {struct dw_dma_chan *dwc = &dw->chan[i]; -int r = nr_channels - i -1 ; dwc->chan.device = &dw->dma;dma_cookie_init (&dwc->chan);
@@ -1603,7 +1602,7 @@ int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata)/* 7 is highest priority & 0 is lowest. */ if (pdata->chan_priority ==CHAN_PRIORITY_ASCENDING ) - dwc->priority = r; + dwc->priority = nr_channels - i -1 ;else dwc->priority = i;
@@ -1622,6 +1621,7 @@ int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata)/* Hardware configuration */ if (autocfg) {unsigned int dwc_params; +unsigned int r =DW_DMA_MAX_NR_CHANNELS - i -1 ;void __iomem *addr = chip->regs + r *sizeof (u32); dwc_params =dma_read_byaddr (addr,DWC_PARAMS );
drivers/dma/pxa_dma.c +1 -0
@@ -888,6 +888,7 @@ pxad_tx_prep(struct virt_dma_chan *vc, struct virt_dma_desc *vd,struct dma_async_tx_descriptor *tx; struct pxad_chan *chan = container_of(vc, struct pxad_chan, vc); +INIT_LIST_HEAD (&vd->node); tx =vchan_tx_prep (vc, vd, tx_flags); tx->tx_submit = pxad_tx_submit; dev_dbg(&chan->vc.chan.dev->device,
drivers/extcon/extcon.c +5 -5
@@ -126,7 +126,7 @@ static int find_cable_index_by_id(struct extcon_dev *edev, const unsigned int idstatic int find_cable_id_by_name (struct extcon_dev *edev,const char *name) { -unsigned int id = -EINVAL ; +int id = -EINVAL ;int i =0 ;/* Find the id of extcon cable */
@@ -143,7 +143,7 @@ static int find_cable_id_by_name(struct extcon_dev *edev, const char *name)static int find_cable_index_by_name (struct extcon_dev *edev,const char *name) { -unsigned int id; +int id;if (edev->max_supported ==0 )return -EINVAL ;
@@ -159,7 +159,7 @@ static int find_cable_index_by_name(struct extcon_dev *edev, const char *name)static bool is_extcon_changed (u32 prev,u32 new,int idx,bool *attached) {if (((prev >> idx) &0x1 ) != ((new >> idx) &0x1 )) { - *attached = new ? true : false; + *attached = ((new >> idx) &0x1 ) ? true : false;return true; }
@@ -378,7 +378,7 @@ EXPORT_SYMBOL_GPL(extcon_get_cable_state_);*/ int extcon_get_cable_state (struct extcon_dev *edev,const char *cable_name) { -unsigned int id; +int id; id =find_cable_id_by_name (edev, cable_name);if (id <0 )
@@ -426,7 +426,7 @@ EXPORT_SYMBOL_GPL(extcon_set_cable_state_);int extcon_set_cable_state (struct extcon_dev *edev,const char *cable_name,bool cable_state) { -unsigned int id; +int id; id =find_cable_id_by_name (edev, cable_name);if (id <0 )
drivers/firmware/efi/libstub/arm-stub.c +73 -15
118 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +1 -1
@@ -140,7 +140,7 @@ void amdgpu_irq_preinstall(struct drm_device *dev)*/ int amdgpu_irq_postinstall (struct drm_device *dev) { - dev->max_vblank_count =0x001fffff ; + dev->max_vblank_count =0x00ffffff ;return 0 ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +41 -27
87 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -1
@@ -787,7 +787,7 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev,int r;if (mem) { - addr = mem->start <<PAGE_SHIFT ; + addr = (u64 )mem->start <<PAGE_SHIFT ;if (mem->mem_type !=TTM_PL_TT ) addr += adev->vm_manager.vram_base_offset; }else {
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c +1 -2
@@ -1279,8 +1279,7 @@ amdgpu_atombios_encoder_setup_dig(struct drm_encoder *encoder, int action)amdgpu_atombios_encoder_setup_dig_encoder (encoder,ATOM_ENCODER_CMD_DP_VIDEO_ON ,0 ); }if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT )) -amdgpu_atombios_encoder_setup_dig_transmitter (encoder, -ATOM_TRANSMITTER_ACTION_LCD_BLON ,0 ,0 ); +amdgpu_atombios_encoder_set_backlight_level (amdgpu_encoder, dig->backlight_level);if (ext_encoder)amdgpu_atombios_encoder_setup_external_encoder (encoder, ext_encoder,ATOM_ENABLE ); }else {
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c +2 -2
@@ -224,11 +224,11 @@ static int uvd_v4_2_suspend(void *handle)int r;struct amdgpu_device *adev = (struct amdgpu_device *)handle; - r =uvd_v4_2_hw_fini (adev); + r =amdgpu_uvd_suspend (adev);if (r)return r; - r =amdgpu_uvd_suspend (adev); + r =uvd_v4_2_hw_fini (adev);if (r)return r;
drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c +2 -2
@@ -220,11 +220,11 @@ static int uvd_v5_0_suspend(void *handle)int r;struct amdgpu_device *adev = (struct amdgpu_device *)handle; - r =uvd_v5_0_hw_fini (adev); + r =amdgpu_uvd_suspend (adev);if (r)return r; - r =amdgpu_uvd_suspend (adev); + r =uvd_v5_0_hw_fini (adev);if (r)return r;
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +2 -2
@@ -214,11 +214,11 @@ static int uvd_v6_0_suspend(void *handle)int r;struct amdgpu_device *adev = (struct amdgpu_device *)handle; - r =uvd_v6_0_hw_fini (adev); + r =amdgpu_uvd_suspend (adev);if (r)return r; - r =amdgpu_uvd_suspend (adev); + r =uvd_v6_0_hw_fini (adev);if (r)return r;
drivers/gpu/drm/amd/amdgpu/vi.c +2 -1
@@ -1290,7 +1290,8 @@ static int vi_common_early_init(void *handle)case CHIP_CARRIZO : adev->has_uvd = true; adev->cg_flags =0 ; - adev->pg_flags =AMDGPU_PG_SUPPORT_UVD |AMDGPU_PG_SUPPORT_VCE ; +/* Disable UVD pg */ + adev->pg_flags =/* AMDGPU_PG_SUPPORT_UVD | */ AMDGPU_PG_SUPPORT_VCE ; adev->external_rev_id = adev->rev_id +0x1 ;if (amdgpu_smc_load_fw && smc_enabled) adev->firmware.smu_load = true;
drivers/gpu/drm/drm_dp_mst_topology.c +29 -12
104 lines not on this page · raw message
drivers/gpu/drm/drm_lock.c +6 -0
@@ -61,6 +61,9 @@ int drm_legacy_lock(struct drm_device *dev, void *data,struct drm_master *master = file_priv->master;int ret =0 ; +if (drm_core_check_feature (dev,DRIVER_MODESET )) +return -EINVAL ; + ++file_priv->lock_count;if (lock->context ==DRM_KERNEL_CONTEXT ) {
@@ -153,6 +156,9 @@ int drm_legacy_unlock(struct drm_device *dev, void *data, struct drm_file *file_struct drm_lock *lock = data;struct drm_master *master = file_priv->master; +if (drm_core_check_feature (dev,DRIVER_MODESET )) +return -EINVAL ; +if (lock->context ==DRM_KERNEL_CONTEXT ) {DRM_ERROR ("Process %d using kernel context %d\n" ,task_pid_nr (current), lock->context);
drivers/gpu/drm/i915/intel_bios.c +11 -1
@@ -42,7 +42,7 @@ find_section(const void *_bdb, int section_id)const struct bdb_header *bdb = _bdb;const u8 *base = _bdb;int index =0 ; -u16 total, current_size; +u32 total, current_size;u8 current_id;/* skip to first section */
@@ -57,6 +57,10 @@ find_section(const void *_bdb, int section_id) current_size = *((const u16 *)(base + index)); index +=2 ; +/* The MIPI Sequence Block v3+ has a separate size field. */ +if (current_id ==BDB_MIPI_SEQUENCE && *(base + index) >=3 ) + current_size = *((const u32 *)(base + index +1 )); +if (index + current_size > total)return NULL ;
@@ -859,6 +863,12 @@ parse_mipi(struct drm_i915_private *dev_priv, const struct bdb_header *bdb)return ; } +/* Fail gracefully for forward incompatible sequence block. */ +if (sequence->version >=3 ) { +DRM_ERROR ("Unable to parse MIPI Sequence Block v3+\n" ); +return ; + } +DRM_DEBUG_DRIVER ("Found MIPI sequence block\n" ); block_size =get_blocksize (sequence);
drivers/gpu/drm/qxl/qxl_display.c +8 -6
@@ -618,7 +618,7 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc, adjusted_mode->hdisplay, adjusted_mode->vdisplay); -if (qcrtc->index ==0 ) +if (bo->is_primary == false) recreate_primary = true;if (bo->surf.stride * bo->surf.height > qdev->vram_size) {
@@ -886,13 +886,15 @@ static enum drm_connector_status qxl_conn_detect(drm_connector_to_qxl_output (connector);struct drm_device *ddev = connector->dev;struct qxl_device *qdev = ddev->dev_private; -int connected; +bool connected = false;/* The first monitor is always connected */ - connected = (output->index ==0 ) || - (qdev->client_monitors_config && - qdev->client_monitors_config->count > output->index && -qxl_head_enabled (&qdev->client_monitors_config->heads[output->index])); +if (!qdev->client_monitors_config) { +if (output->index ==0 ) + connected = true; + }else + connected = qdev->client_monitors_config->count > output->index && +qxl_head_enabled (&qdev->client_monitors_config->heads[output->index]);DRM_DEBUG ("#%d connected: %d\n" , output->index, connected);if (!connected)
drivers/gpu/drm/radeon/atombios_encoders.c +4 -4
@@ -1624,8 +1624,9 @@ radeon_atom_encoder_dpms_avivo(struct drm_encoder *encoder, int mode) }else atom_execute_table (rdev->mode_info.atom_context, index, (uint32_t *)&args);if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT )) { - args.ucAction =ATOM_LCD_BLON ; -atom_execute_table (rdev->mode_info.atom_context, index, (uint32_t *)&args); +struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; + +atombios_set_backlight_level (radeon_encoder, dig->backlight_level); }break ;case DRM_MODE_DPMS_STANDBY :
@@ -1706,8 +1707,7 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode)atombios_dig_encoder_setup (encoder,ATOM_ENCODER_CMD_DP_VIDEO_ON ,0 ); }if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT )) -atombios_dig_transmitter_setup (encoder, -ATOM_TRANSMITTER_ACTION_LCD_BLON ,0 ,0 ); +atombios_set_backlight_level (radeon_encoder, dig->backlight_level);if (ext_encoder)atombios_external_encoder_setup (encoder, ext_encoder,ATOM_ENABLE );break ;
drivers/hv/hv_utils_transport.c +1 -1
@@ -186,7 +186,7 @@ int hvutil_transport_send(struct hvutil_transport *hvt, void *msg, int len)return -EINVAL ; }else if (hvt->mode ==HVUTIL_TRANSPORT_NETLINK ) { cn_msg =kzalloc (sizeof (*cn_msg) + len,GFP_ATOMIC ); -if (!msg) +if (!cn_msg)return -ENOMEM ; cn_msg->id.idx = hvt->cn_id.idx; cn_msg->id.val = hvt->cn_id.val;
drivers/hwmon/nct6775.c +10 -6
@@ -354,6 +354,10 @@ static const u16 NCT6775_REG_TEMP_CRIT[ARRAY_SIZE(nct6775_temp_label) - 1]/* NCT6776 specific data */ +/* STEP_UP_TIME and STEP_DOWN_TIME regs are swapped for all chips but NCT6775 */ +#define NCT6776_REG_FAN_STEP_UP_TIME NCT6775_REG_FAN_STEP_DOWN_TIME +#define NCT6776_REG_FAN_STEP_DOWN_TIME NCT6775_REG_FAN_STEP_UP_TIME +static const s8 NCT6776_ALARM_BITS [] = {0 ,1 ,2 ,3 ,8 ,21 ,20 ,16 ,/* in0.. in7 */ 17 ,-1 ,-1 ,-1 ,-1 ,-1 ,-1 ,/* in8..in14 */
@@ -3528,8 +3532,8 @@ static int nct6775_probe(struct platform_device *pdev) data->REG_FAN_PULSES =NCT6776_REG_FAN_PULSES ; data->FAN_PULSE_SHIFT =NCT6775_FAN_PULSE_SHIFT ; data->REG_FAN_TIME[0 ] =NCT6775_REG_FAN_STOP_TIME ; - data->REG_FAN_TIME[1 ] =NCT6775_REG_FAN_STEP_UP_TIME ; - data->REG_FAN_TIME[2 ] =NCT6775_REG_FAN_STEP_DOWN_TIME ; + data->REG_FAN_TIME[1 ] =NCT6776_REG_FAN_STEP_UP_TIME ; + data->REG_FAN_TIME[2 ] =NCT6776_REG_FAN_STEP_DOWN_TIME ; data->REG_TOLERANCE_H =NCT6776_REG_TOLERANCE_H ; data->REG_PWM[0 ] =NCT6775_REG_PWM ; data->REG_PWM[1 ] =NCT6775_REG_FAN_START_OUTPUT ;
@@ -3600,8 +3604,8 @@ static int nct6775_probe(struct platform_device *pdev) data->REG_FAN_PULSES =NCT6779_REG_FAN_PULSES ; data->FAN_PULSE_SHIFT =NCT6775_FAN_PULSE_SHIFT ; data->REG_FAN_TIME[0 ] =NCT6775_REG_FAN_STOP_TIME ; - data->REG_FAN_TIME[1 ] =NCT6775_REG_FAN_STEP_UP_TIME ; - data->REG_FAN_TIME[2 ] =NCT6775_REG_FAN_STEP_DOWN_TIME ; + data->REG_FAN_TIME[1 ] =NCT6776_REG_FAN_STEP_UP_TIME ; + data->REG_FAN_TIME[2 ] =NCT6776_REG_FAN_STEP_DOWN_TIME ; data->REG_TOLERANCE_H =NCT6776_REG_TOLERANCE_H ; data->REG_PWM[0 ] =NCT6775_REG_PWM ; data->REG_PWM[1 ] =NCT6775_REG_FAN_START_OUTPUT ;
@@ -3677,8 +3681,8 @@ static int nct6775_probe(struct platform_device *pdev) data->REG_FAN_PULSES =NCT6779_REG_FAN_PULSES ; data->FAN_PULSE_SHIFT =NCT6775_FAN_PULSE_SHIFT ; data->REG_FAN_TIME[0 ] =NCT6775_REG_FAN_STOP_TIME ; - data->REG_FAN_TIME[1 ] =NCT6775_REG_FAN_STEP_UP_TIME ; - data->REG_FAN_TIME[2 ] =NCT6775_REG_FAN_STEP_DOWN_TIME ; + data->REG_FAN_TIME[1 ] =NCT6776_REG_FAN_STEP_UP_TIME ; + data->REG_FAN_TIME[2 ] =NCT6776_REG_FAN_STEP_DOWN_TIME ; data->REG_TOLERANCE_H =NCT6776_REG_TOLERANCE_H ; data->REG_PWM[0 ] =NCT6775_REG_PWM ; data->REG_PWM[1 ] =NCT6775_REG_FAN_START_OUTPUT ;
drivers/infiniband/ulp/isert/ib_isert.c +45 -2
68 lines not on this page · raw message
drivers/irqchip/irq-atmel-aic5.c +16 -8
@@ -88,28 +88,36 @@ static void aic5_mask(struct irq_data *d) {struct irq_domain *domain = d->domain;struct irq_domain_chip_generic *dgc = domain->gc; -struct irq_chip_generic *gc = dgc->gc[0 ]; +struct irq_chip_generic *bgc = dgc->gc[0 ]; +struct irq_chip_generic *gc =irq_data_get_irq_chip_data (d); -/* Disable interrupt on AIC5 */ -irq_gc_lock (gc); +/* +* Disable interrupt on AIC5. We always take the lock of the +* first irq chip as all chips share the same registers. +*/ +irq_gc_lock (bgc);irq_reg_writel (gc, d->hwirq,AT91_AIC5_SSR );irq_reg_writel (gc,1 ,AT91_AIC5_IDCR ); gc->mask_cache &= ~d->mask; -irq_gc_unlock (gc); +irq_gc_unlock (bgc); }static void aic5_unmask (struct irq_data *d) {struct irq_domain *domain = d->domain;struct irq_domain_chip_generic *dgc = domain->gc; -struct irq_chip_generic *gc = dgc->gc[0 ]; +struct irq_chip_generic *bgc = dgc->gc[0 ]; +struct irq_chip_generic *gc =irq_data_get_irq_chip_data (d); -/* Enable interrupt on AIC5 */ -irq_gc_lock (gc); +/* +* Enable interrupt on AIC5. We always take the lock of the +* first irq chip as all chips share the same registers. +*/ +irq_gc_lock (bgc);irq_reg_writel (gc, d->hwirq,AT91_AIC5_SSR );irq_reg_writel (gc,1 ,AT91_AIC5_IECR ); gc->mask_cache |= d->mask; -irq_gc_unlock (gc); +irq_gc_unlock (bgc); }static int aic5_retrigger (struct irq_data *d)
drivers/irqchip/irq-gic-v3-its.c +5 -1
@@ -921,8 +921,10 @@ retry_baser:* non-cacheable as well. */ shr = tmp &GITS_BASER_SHAREABILITY_MASK ; -if (!shr) +if (!shr) { cache = GITS_BASER_nC; +__flush_dcache_area (base, alloc_size); + } goto retry_baser; }
@@ -1163,6 +1165,8 @@ static struct its_device *its_create_device(struct its_node *its, u32 dev_id,return NULL ; } +__flush_dcache_area (itt, sz); + dev->its = its; dev->itt = itt; dev->nr_ites = nr_ites;
drivers/leds/Kconfig +1 -1
@@ -229,7 +229,7 @@ config LEDS_LP55XX_COMMON tristate "Common Driver for TI/National LP5521/5523/55231/5562/8501" depends on LEDS_LP5521 || LEDS_LP5523 || LEDS_LP5562 || LEDS_LP8501 select FW_LOADER - select FW_LOADER_USER_HELPER_FALLBACK + select FW_LOADER_USER_HELPER help This option supports common operations for LP5521/5523/55231/5562/8501 devices.
drivers/leds/led-class.c +5 -2
@@ -228,12 +228,15 @@ static int led_classdev_next_name(const char *init_name, char *name, {unsigned int i =0 ;int ret =0 ; +struct device *dev;strlcpy (name, init_name, len); -while (class_find_device (leds_class,NULL , name, match_name) && - (ret < len)) +while ((ret < len) && + (dev =class_find_device (leds_class,NULL , name, match_name))) { +put_device (dev); ret =snprintf (name, len,"%s_%u" , init_name, ++i); + }if (ret >= len)return -ENOMEM ;
drivers/macintosh/windfarm_core.c +1 -1
@@ -435,7 +435,7 @@ int wf_unregister_client(struct notifier_block *nb) {mutex_lock (&wf_lock);blocking_notifier_chain_unregister (&wf_client_list, nb); - wf_client_count++; + wf_client_count--;if (wf_client_count ==0 )wf_stop_thread ();mutex_unlock (&wf_lock);
drivers/md/bitmap.c +2 -1
@@ -1997,7 +1997,8 @@ int bitmap_resize(struct bitmap *bitmap, sector_t blocks,if (bitmap->mddev->bitmap_info.offset || bitmap->mddev->bitmap_info.file) ret =bitmap_storage_alloc (&store, chunks, !bitmap->mddev->bitmap_info.external, - bitmap->cluster_slot); +mddev_is_clustered (bitmap->mddev) + ? bitmap->cluster_slot :0 );if (ret) goto err;
drivers/md/dm-cache-policy-cleaner.c +1 -1
@@ -436,7 +436,7 @@ static struct dm_cache_policy *wb_create(dm_cblock_t cache_size,static struct dm_cache_policy_type wb_policy_type = { .name ="cleaner" , .version = {1 ,0 ,0 }, - .hint_size =0 , + .hint_size =4 , .owner =THIS_MODULE , .create = wb_create };
drivers/md/dm-crypt.c +15 -2
@@ -968,7 +968,8 @@ static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone);/* * Generate a new unfragmented bio with the given size -* This should never violate the device limitations +* This should never violate the device limitations (but only because +* max_segment_size is being constrained to PAGE_SIZE). * * This function may be called concurrently. If we allocate from the mempool * concurrently, there is a possibility of deadlock. For example, if we have
@@ -2058,9 +2059,20 @@ static int crypt_iterate_devices(struct dm_target *ti,return fn (ti, cc->dev, cc->start, ti->len, data); } +static void crypt_io_hints (struct dm_target *ti,struct queue_limits *limits) +{ +/* +* Unfortunate constraint that is required to avoid the potential +* for exceeding underlying device's max_segments limits -- due to +* crypt_alloc_buffer() possibly allocating pages for the encryption +* bio that are not as physically contiguous as the original bio. +*/ + limits->max_segment_size =PAGE_SIZE ; +} +static struct target_type crypt_target = { .name ="crypt" , - .version = {1 ,14 ,0 }, + .version = {1 ,14 ,1 }, .module =THIS_MODULE , .ctr = crypt_ctr, .dtr = crypt_dtr,
@@ -2072,6 +2084,7 @@ static struct target_type crypt_target = { .message = crypt_message, .merge = crypt_merge, .iterate_devices = crypt_iterate_devices, + .io_hints = crypt_io_hints, };static int __init dm_crypt_init (void )
drivers/md/dm-raid.c +1 -2
@@ -329,8 +329,7 @@ static int validate_region_size(struct raid_set *rs, unsigned long region_size)*/ if (min_region_size > (1 <<13 )) {/* If not a power of 2, make it the next power of 2 */ -if (min_region_size & (min_region_size -1 )) - region_size =1 <<fls (region_size); + region_size =roundup_pow_of_two (min_region_size);DMINFO ("Choosing default region size of %lu sectors" , region_size); }else {
drivers/md/dm-thin.c +4 -0
@@ -4333,6 +4333,10 @@ static void thin_io_hints(struct dm_target *ti, struct queue_limits *limits) {struct thin_c *tc = ti->private;struct pool *pool = tc->pool; +struct queue_limits *pool_limits =dm_get_queue_limits (pool->pool_md); + +if (!pool_limits->discard_granularity) +return ;/* pool's discard support is disabled */ limits->discard_granularity = pool->sectors_per_block <<SECTOR_SHIFT ; limits->max_discard_sectors =2048 *1024 *16 ;/* 16G */
drivers/md/dm.c +2 -4
@@ -2952,8 +2952,6 @@ static void __dm_destroy(struct mapped_device *md, bool wait)might_sleep (); - map =dm_get_live_table (md, &srcu_idx); -spin_lock (&_minor_lock);idr_replace (&_minor_idr,MINOR_ALLOCED ,MINOR (disk_devt (dm_disk (md))));set_bit (DMF_FREEING , &md->flags);
@@ -2967,14 +2965,14 @@ static void __dm_destroy(struct mapped_device *md, bool wait)* do not race with internal suspend. */ mutex_lock (&md->suspend_lock); + map =dm_get_live_table (md, &srcu_idx);if (!dm_suspended_md (md)) {dm_table_presuspend_targets (map);dm_table_postsuspend_targets (map); } -mutex_unlock (&md->suspend_lock); -/* dm_put_live_table must be before msleep, otherwise deadlock is possible */ dm_put_live_table (md, srcu_idx); +mutex_unlock (&md->suspend_lock);/* * Rare, but there may be I/O requests still going to complete,
drivers/md/raid0.c +39 -36
123 lines not on this page · raw message
drivers/mmc/core/core.c +4 -2
@@ -134,9 +134,11 @@ void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq)int err = cmd->error;/* Flag re-tuning needed on CRC errors */ -if (err == -EILSEQ || (mrq->sbc && mrq->sbc->error == -EILSEQ ) || +if ((cmd->opcode !=MMC_SEND_TUNING_BLOCK && + cmd->opcode !=MMC_SEND_TUNING_BLOCK_HS200 ) && + (err == -EILSEQ || (mrq->sbc && mrq->sbc->error == -EILSEQ ) || (mrq->data && mrq->data->error == -EILSEQ ) || - (mrq->stop && mrq->stop->error == -EILSEQ )) + (mrq->stop && mrq->stop->error == -EILSEQ )))mmc_retune_needed (host);if (err && cmd->retries &&mmc_host_is_spi (host)) {
drivers/mmc/core/host.c +2 -2
@@ -457,7 +457,7 @@ int mmc_of_parse(struct mmc_host *host) 0, &cd_gpio_invert);if (!ret)dev_info (host->parent,"Got CD GPIO\n" ); -else if (ret != -ENOENT ) +else if (ret != -ENOENT && ret != -ENOSYS )return ret;/*
@@ -481,7 +481,7 @@ int mmc_of_parse(struct mmc_host *host) ret =mmc_gpiod_request_ro (host,"wp" ,0 , false,0 , &ro_gpio_invert);if (!ret)dev_info (host->parent,"Got WP GPIO\n" ); -else if (ret != -ENOENT ) +else if (ret != -ENOENT && ret != -ENOSYS )return ret;if (of_property_read_bool (np,"disable-wp" ))
drivers/mmc/host/dw_mmc.c +71 -38
150 lines not on this page · raw message
drivers/mmc/host/sdhci-pxav3.c +5 -1
@@ -135,6 +135,7 @@ static int armada_38x_quirks(struct platform_device *pdev,struct sdhci_pxa *pxa = pltfm_host->priv;struct resource *res; + host->quirks &= ~SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN ; host->quirks |=SDHCI_QUIRK_MISSING_CAPS ; res =platform_get_resource_byname (pdev,IORESOURCE_MEM ,"conf-sdio3" );
@@ -290,6 +291,9 @@ static void pxav3_set_uhs_signaling(struct sdhci_host *host, unsigned int uhs) uhs == MMC_TIMING_UHS_DDR50) { reg_val &= ~SDIO3_CONF_CLK_INV ; reg_val |=SDIO3_CONF_SD_FB_CLK ; + } else if (uhs == MMC_TIMING_MMC_HS) { + reg_val &= ~SDIO3_CONF_CLK_INV ; + reg_val &= ~SDIO3_CONF_SD_FB_CLK ; } else { reg_val |=SDIO3_CONF_CLK_INV ; reg_val &= ~SDIO3_CONF_SD_FB_CLK ;
@@ -398,7 +402,7 @@ static int sdhci_pxav3_probe(struct platform_device *pdev)if (of_device_is_compatible (np,"marvell,armada-380-sdhci" )) { ret =armada_38x_quirks (pdev, host);if (ret <0 ) - goto err_clk_get; + goto err_mbus_win; ret =mv_conf_mbus_windows (pdev,mv_mbus_dram_info ());if (ret <0 ) goto err_mbus_win;
drivers/mtd/nand/pxa3xx_nand.c +3 -0
@@ -1473,6 +1473,9 @@ static int pxa3xx_nand_scan(struct mtd_info *mtd)if (pdata->keep_config && !pxa3xx_nand_detect_config (info)) goto KEEP_CONFIG; +/* Set a default chunk size */ + info->chunk_size =512 ; +
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/e1000e/netdev.c +21 -10
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igb/igb_main.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath10k/htt_tx.c +6 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath10k/mac.c +51 -34
85 lines not on this page · raw message
drivers/net/wireless/ath/ath10k/wmi-tlv.c +28 -6
Lines of this file are not shown. View the raw message.
drivers/net/wireless/rsi/rsi_91x_sdio_ops.c +6 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/rsi/rsi_91x_usb_ops.c +6 -2
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_configfs.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_login.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_parameters.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_tpg.c +7 -8
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_tpg.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/target/target_core_pr.c +67 -24
91 lines not on this page · raw message
drivers/thermal/cpu_cooling.c +31 -21
52 lines not on this page · raw message
drivers/usb/chipidea/udc.c +44 -40
84 lines not on this page · raw message
drivers/usb/host/xhci-pci.c +45 -45
90 lines not on this page · raw message
drivers/usb/host/xhci-ring.c +63 -16
79 lines not on this page · raw message
fs/btrfs/extent_io.c +66 -14
80 lines not on this page · raw message
fs/cifs/cifsencrypt.c +51 -2
53 lines not on this page · raw message
fs/cifs/smb2pdu.c +61 -15
76 lines not on this page · raw message
fs/nfs/nfs4proc.c +47 -34
81 lines not on this page · raw message
include/target/iscsi/iscsi_target_core.h +0 -1
Lines of this file are not shown. View the raw message.
kernel/cgroup.c +84 -26
110 lines not on this page · raw message
net/batman-adv/multicast.c +60 -21
81 lines not on this page · raw message
net/netfilter/ipset/ip_set_hash_netnet.c +18 -2
Lines of this file are not shown. View the raw message.
net/netfilter/ipset/ip_set_hash_netportnet.c +18 -2
Lines of this file are not shown. View the raw message.
virt/kvm/eventfd.c +73 -51
124 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.
Quoted 4 lines · Greg KH
I'm announcing the release of the 4.2.4 kernel.
All users of the 4.2 kernel series must upgrade.
Quoted 9 lines
The updated 4.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-4.2.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=summarythanks,
greg k-h
Hello Greg,
Kernel 4.2.4 is still broken regarding iptables/ipset:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645
Kernel 4.1.10 works well.
Please fix it ASAP.
Thnx.
Ciao,
Gerhard
Greg KH
maintainerQuoted 15 lines · Gerhard Wiesinger
Quoted 4 lines · Greg KH
I'm announcing the release of the 4.2.4 kernel.
All users of the 4.2 kernel series must upgrade.
Quoted 9 lines
The updated 4.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-4.2.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=summarythanks,
greg k-h
Quoted 8 lines
Hello Greg,
Kernel 4.2.4 is still broken regarding iptables/ipset:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 works well.
Please fix it ASAP.
Fix it with what patch?
Quoted 17 lines · Greg KH
Quoted 16 lines · Gerhard Wiesinger
Quoted 4 lines · Greg KH
I'm announcing the release of the 4.2.4 kernel.
All users of the 4.2 kernel series must upgrade.
Quoted 9 lines
The updated 4.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-4.2.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=summarythanks,
greg k-h
Hello Greg,
Quoted 7 lines
Quoted 6 lines
Kernel 4.2.4 is still broken regarding iptables/ipset:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 works well.
Please fix it ASAP.
Fix it with what patch?
Don't know, just detected it. I think this is a new issue introduced with 4.2.x by reworking the "new allocator api" but it is just a guess what I saw so far. I was not involved in development.
Can you read something from the fedora bug report?
There were already some fixes in 4.2.4 but I guess there are still unknown bugs introduced with 4.2.x.
The already fixed ones merged in 4.2.4:
https://lists.debian.org/debian-kernel/2015/10/msg00034.html
Thank you.
Ciao,
Gerhard
Quoted 18 lines · Greg KH
Quoted 17 lines · Gerhard Wiesinger
Quoted 4 lines · Greg KH
I'm announcing the release of the 4.2.4 kernel.
All users of the 4.2 kernel series must upgrade.
Quoted 9 lines
The updated 4.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-4.2.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=summarythanks,
greg k-h
Hello Greg,
Quoted 8 lines
Quoted 6 lines
Kernel 4.2.4 is still broken regarding iptables/ipset:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 works well.
Please fix it ASAP.
Fix it with what patch?
It's not even sure there's a patch for this. There were numerous changes to ipset between 4.1 and 4.2 and very few in 4.3-rc, any you backported them all. Also, Gerhard's trace in the bugzilla report above is very poor, there's just one line of the panic, nothing exploitable at all, nothing even indicates that it is related to ipset at all.
Gerhard, it would be easier if you could bisect between 4.1 and 4.2 to find what patch introduced the regression if you can easily reproduce the issue. That would make it more obvious what to look at and the patch author might have some ideas about the real problem.
Willy
Quoted 23 lines · Willy Tarreau
Quoted 22 lines · Greg KH
Quoted 21 lines · Gerhard Wiesinger
Quoted 4 lines · Greg KH
I'm announcing the release of the 4.2.4 kernel.
All users of the 4.2 kernel series must upgrade.
Quoted 9 lines
The updated 4.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-4.2.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=summarythanks,
greg k-h
Hello Greg,
Kernel 4.2.4 is still broken regarding iptables/ipset:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 works well.
Quoted 7 lines
Quoted 2 lines
Quoted 1 line
Please fix it ASAP.
Fix it with what patch?
It's not even sure there's a patch for this. There were numerous changes to ipset between 4.1 and 4.2 and very few in 4.3-rc, any you backported them all. Also, Gerhard's trace in the bugzilla report above is very poor, there's just one line of the panic, nothing exploitable at all, nothing even indicates that it is related to ipset at all.
Sorry, don't have any more information. From the bugzilla report:
Message from syslogd@arm at Oct 24 20:05:09 ...
kernel:Process ipset (pid: 2055, stack limit = 0xe8404220)
So ipset has a problem ...
Quoted 6 lines
Gerhard, it would be easier if you could bisect between 4.1 and 4.2 to find what patch introduced the regression if you can easily reproduce the issue. That would make it more obvious what to look at and the patch author might have some ideas about the real problem.
The device is in production so I can't play around here. Nevertheless I can try a patch. But should be easy to reproduce in developers testing environment with shorewall/netfilter and ipset. As shorewall6 is activated it might also be an IPv6 issue.
Kernel 4.2 seems to me not well tested in the netfilter parts at all (Bug with already known bugfix https://lists.debian.org/debian-kernel/2015/10/msg00034.html was triggered on 2 of 3 of my machines, the new bug on 1 of 1 tested machine).
Ciao,
Gerhard
Quoted 32 lines · Gerhard Wiesinger
Quoted 23 lines · Willy Tarreau
Quoted 22 lines · Greg KH
Quoted 21 lines · Gerhard Wiesinger
Quoted 4 lines · Greg KH
I'm announcing the release of the 4.2.4 kernel.
All users of the 4.2 kernel series must upgrade.
Quoted 9 lines
The updated 4.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-4.2.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=summarythanks,
greg k-h
Hello Greg,
Kernel 4.2.4 is still broken regarding iptables/ipset:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 works well.
Quoted 7 lines
Quoted 2 lines
Quoted 1 line
Please fix it ASAP.
Fix it with what patch?
It's not even sure there's a patch for this. There were numerous changes to ipset between 4.1 and 4.2 and very few in 4.3-rc, any you backported them all. Also, Gerhard's trace in the bugzilla report above is very poor, there's just one line of the panic, nothing exploitable at all, nothing even indicates that it is related to ipset at all.
Quoted 5 lines
Sorry, don't have any more information. From the bugzilla report:
Message from syslogd@arm at Oct 24 20:05:09 ...
kernel:Process ipset (pid: 2055, stack limit =0xe8404220)So ipset has a problem ...
ipset *triggered* the problem. The whole stack dump would tell more.
Quoted 11 lines
Quoted 6 lines
Gerhard, it would be easier if you could bisect between 4.1 and 4.2 to find what patch introduced the regression if you can easily reproduce the issue. That would make it more obvious what to look at and the patch author might have some ideas about the real problem.
The device is in production so I can't play around here. Nevertheless I can try a patch. But should be easy to reproduce in developers testing environment with shorewall/netfilter and ipset. As shorewall6 is activated it might also be an IPv6 issue.
The problem is that without providing the rules that allow the issue to be reliably reproduced, it's unlikely that a developer will trigger the same issue, or the problem would have been fixed before the patch got merged.
Quoted 4 lines
Kernel 4.2 seems to me not well tested in the netfilter parts at all (Bug with already known bugfix
https://lists.debian.org/debian-kernel/2015/10/msg00034.html was triggered on 2 of 3 of my machines, the new bug on 1 of 1 tested machine).
There's a reason why Greg maintains stable and LTS kernels :-)
Willy
Quoted 1 line · Willy Tarreau
ipset *triggered* the problem. The whole stack dump would tell more.
OK, find the stack traces in the bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645
Kernel 4.1.10 triggered also a kernel dump when playing with ipset commands and IPv6, details in the bug report ....
Quoted 5 lines
Quoted 4 lines
Kernel 4.2 seems to me not well tested in the netfilter parts at all (Bug with already known bugfix
https://lists.debian.org/debian-kernel/2015/10/msg00034.html was triggered on 2 of 3 of my machines, the new bug on 1 of 1 tested machine).There's a reason why Greg maintains stable and LTS kernels :-)
Stable kernels don't crash but definiton. :-)
At least triggered 2 kernel panics in 5min, even with 4.1.10 and ipset commands ...
Ciao,
Gerhard
Greg KH
maintainerQuoted 13 lines · Gerhard Wiesinger
Quoted 1 line · Willy Tarreau
ipset *triggered* the problem. The whole stack dump would tell more.
OK, find the stack traces in the bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 triggered also a kernel dump when playing with ipset commands and IPv6, details in the bug report ....
Quoted 4 lines
Quoted 4 lines
Kernel 4.2 seems to me not well tested in the netfilter parts at all (Bug with already known bugfix
https://lists.debian.org/debian-kernel/2015/10/msg00034.html was triggered on 2 of 3 of my machines, the new bug on 1 of 1 tested machine).
Quoted 6 lines
Quoted 1 line
There's a reason why Greg maintains stable and LTS kernels :-)
Stable kernels don't crash but definiton. :-)
At least triggered 2 kernel panics in 5min, even with 4.1.10 and ipset commands ...
Does this happen also with Linus's tree? I suggest you ask the networking developers about this on [email protected], there's nothing that I can do on my own about this, sorry.
greg k-h
Quoted 13 lines · Greg KH
Quoted 12 lines · Gerhard Wiesinger
Quoted 1 line · Willy Tarreau
ipset *triggered* the problem. The whole stack dump would tell more.
OK, find the stack traces in the bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 triggered also a kernel dump when playing with ipset commands and IPv6, details in the bug report ....
Quoted 4 lines
Quoted 4 lines
Kernel 4.2 seems to me not well tested in the netfilter parts at all (Bug with already known bugfix
https://lists.debian.org/debian-kernel/2015/10/msg00034.html was triggered on 2 of 3 of my machines, the new bug on 1 of 1 tested machine).
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
There's a reason why Greg maintains stable and LTS kernels :-)
Stable kernels don't crash but definiton. :-)
At least triggered 2 kernel panics in 5min, even with 4.1.10 and ipset commands ...
Does this happen also with Linus's tree? I suggest you ask the networking developers about this on [email protected], there's nothing that I can do on my own about this, sorry.
Already CCed netdev and netfilter-devel mailinglist. Need patches for the switch driver of the banana Pi to get networking up but that patch is stable. Maybe also some patches from the Fedora SRPMS are needed. But I'm pretty sure that this also happens with plain vanilla kernel.
Ciao,
Gerhard
Hi,
Quoted 8 lines · Gerhard Wiesinger
Quoted 1 line · Willy Tarreau
ipset *triggered* the problem. The whole stack dump would tell more.
OK, find the stack traces in the bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 triggered also a kernel dump when playing with ipset commands and IPv6, details in the bug report ....
It seems to me it is an architecture-specific alignment issue. I don't have a Cortex-A7 ARM hardware and qemu doesn't seem to support it either, so I'm unable to reproduce it (ipset passes all my tests on my hardware, including more complex ones than what breaks here). My first wild guess is that the dynamic array of the element structure is not aligned properly. Could you give a try to the next patch?
net/netfilter/ipset/ip_set_hash_gen.h +5 -2
@@ -1211,6 +1211,9 @@ static const struct ip_set_type_variant mtype_variant = { .same_set = mtype_same_set, }; +#define IP_SET_BASE_ALIGN (dtype) \ + ALIGN(sizeof(struct dtype), __alignof__(struct dtype)) +#ifdef IP_SET_EMIT_CREATE static int IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,
@@ -1319,12 +1322,12 @@ IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,#endif set->variant = &IPSET_TOKEN(HTYPE, 4_variant); set->dsize =ip_set_elem_len (set, tb, - sizeof(struct IPSET_TOKEN(HTYPE, 4_elem))); + IP_SET_BASE_ALIGN(IPSET_TOKEN(HTYPE, 4_elem))); #ifndef IP_SET_PROTO_UNDEF }else { set->variant = &IPSET_TOKEN(HTYPE, 6_variant); set->dsize =ip_set_elem_len (set, tb, - sizeof(struct IPSET_TOKEN(HTYPE, 6_elem))); + IP_SET_BASE_ALIGN(IPSET_TOKEN(HTYPE, 6_elem))); }#endif if (tb[IPSET_ATTR_TIMEOUT ]) {
If that does not solve it, then could you help to narrow down the issue? Does the bug still appear if your remove the counter extension of the set?
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary
Quoted 48 lines · Jozsef Kadlecsik
Hi,
Quoted 7 lines · Gerhard Wiesinger
Quoted 1 line · Willy Tarreau
ipset *triggered* the problem. The whole stack dump would tell more.
OK, find the stack traces in the bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 triggered also a kernel dump when playing with ipset commands and IPv6, details in the bug report ....
It seems to me it is an architecture-specific alignment issue. I don't have a Cortex-A7 ARM hardware and qemu doesn't seem to support it either, so I'm unable to reproduce it (ipset passes all my tests on my hardware, including more complex ones than what breaks here). My first wild guess is that the dynamic array of the element structure is not aligned properly. Could you give a try to the next patch?
net/netfilter/ipset/ip_set_hash_gen.h +5
-2@@ -1211,6 +1211,9 @@ static const struct ip_set_type_variant mtype_variant = { .same_set = mtype_same_set, }; +#define IP_SET_BASE_ALIGN (dtype) \ + ALIGN(sizeof(struct dtype), __alignof__(struct dtype)) +#ifdef IP_SET_EMIT_CREATE static int IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,@@ -1319,12 +1322,12 @@ IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,#endif set->variant = &IPSET_TOKEN(HTYPE, 4_variant); set->dsize =ip_set_elem_len (set, tb, - sizeof(struct IPSET_TOKEN(HTYPE, 4_elem))); + IP_SET_BASE_ALIGN(IPSET_TOKEN(HTYPE, 4_elem))); #ifndef IP_SET_PROTO_UNDEF }else { set->variant = &IPSET_TOKEN(HTYPE, 6_variant); set->dsize =ip_set_elem_len (set, tb, - sizeof(struct IPSET_TOKEN(HTYPE, 6_elem))); + IP_SET_BASE_ALIGN(IPSET_TOKEN(HTYPE, 6_elem))); }#endif if (tb[IPSET_ATTR_TIMEOUT ]) {
Quoted 3 lines
If that does not solve it, then could you help to narrow down the issue? Does the bug still appear if your remove the counter extension of the set?
Hello Jozsef,
Patch applied well, compiling ...
Interesting, that it didn't happen before. Device is in production for more than 2 month without any issue.
Also any idea regarding the second isssue? Or do you think it has the same root cause?
Greetings from Vienna, Austria :-)
BTW: You can get the Banana Pi R1 for example at:
http://www.aliexpress.com/item/BPI-R1-Set-1-R1-Board-Clear-Case-5dB-Antenna-Power-Adapter-Banana-PI-R1-Smart/32362127917.html
I can really recommend it as a router. Power consumption is as less as 3W. Price is also IMHO very good.
Ciao,
Gerhard
Quoted 50 lines · Gerhard Wiesinger
Quoted 49 lines · Jozsef Kadlecsik
Hi,
Quoted 7 lines · Gerhard Wiesinger
Quoted 1 line · Willy Tarreau
ipset *triggered* the problem. The whole stack dump would tell more.
OK, find the stack traces in the bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 triggered also a kernel dump when playing with ipset commands and IPv6, details in the bug report ....
It seems to me it is an architecture-specific alignment issue. I don't have a Cortex-A7 ARM hardware and qemu doesn't seem to support it either, so I'm unable to reproduce it (ipset passes all my tests on my hardware, including more complex ones than what breaks here). My first wild guess is that the dynamic array of the element structure is not aligned properly. Could you give a try to the next patch?
net/netfilter/ipset/ip_set_hash_gen.h +4
-2@@ -1211,6 +1211,9 @@ static const struct ip_set_type_variant mtype_variant = { .same_set = mtype_same_set, }; +#define IP_SET_BASE_ALIGN(dtype) \ + ALIGN(sizeof(struct dtype), __alignof__(struct dtype)) +#ifdef IP_SET_EMIT_CREATE static int IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,@@ -1319,12 +1322,12 @@ IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,#endif set->variant = &IPSET_TOKEN(HTYPE, 4_variant); set->dsize =ip_set_elem_len (set, tb, - sizeof(struct IPSET_TOKEN(HTYPE, 4_elem))); + IP_SET_BASE_ALIGN(IPSET_TOKEN(HTYPE, 4_elem))); #ifndef IP_SET_PROTO_UNDEF }else { set->variant = &IPSET_TOKEN(HTYPE, 6_variant); set->dsize =ip_set_elem_len (set, tb, - sizeof(struct IPSET_TOKEN(HTYPE, 6_elem))); + IP_SET_BASE_ALIGN(IPSET_TOKEN(HTYPE, 6_elem))); }#endif if (tb[IPSET_ATTR_TIMEOUT]) {
Quoted 7 lines
Quoted 3 lines
If that does not solve it, then could you help to narrow down the issue? Does the bug still appear if your remove the counter extension of the set?
Hello Jozsef,
Patch applied well, compiling ...
Hello Jozsef,
Thank you for the patch it but still crashes, see: https://bugzilla.redhat.com/show_bug.cgi?id=1272645
Any further ideas?
Thank you.
Ciao,
Gerhard
Quoted 53 lines · Gerhard Wiesinger
Quoted 52 lines · Gerhard Wiesinger
Quoted 51 lines · Jozsef Kadlecsik
Hi,
Quoted 8 lines · Gerhard Wiesinger
Quoted 1 line · Willy Tarreau
ipset *triggered* the problem. The whole stack dump would tell more.
OK, find the stack traces in the bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 triggered also a kernel dump when playing with ipset commands
and IPv6, details in the bug report ....It seems to me it is an architecture-specific alignment issue. I don't have a Cortex-A7 ARM hardware and qemu doesn't seem to support it either, so I'm unable to reproduce it (ipset passes all my tests on my hardware, including more complex ones than what breaks here). My first wild guess is that the dynamic array of the element structure is not aligned properly. Could you give a try to the next patch?
net/netfilter/ipset/ip_set_hash_gen.h +4
-2@@ -1211,6 +1211,9 @@ static const struct ip_set_type_variant mtype_variant = { .same_set = mtype_same_set, }; +#define IP_SET_BASE_ALIGN(dtype) \ + ALIGN(sizeof(struct dtype), __alignof__(struct dtype)) +#ifdef IP_SET_EMIT_CREATE static int IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,@@ -1319,12 +1322,12 @@ IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,#endif set->variant = &IPSET_TOKEN(HTYPE, 4_variant); set->dsize =ip_set_elem_len (set, tb, - sizeof(struct IPSET_TOKEN(HTYPE, 4_elem))); + IP_SET_BASE_ALIGN(IPSET_TOKEN(HTYPE, 4_elem))); #ifndef IP_SET_PROTO_UNDEF }else { set->variant = &IPSET_TOKEN(HTYPE, 6_variant); set->dsize =ip_set_elem_len (set, tb, - sizeof(struct IPSET_TOKEN(HTYPE, 6_elem))); + IP_SET_BASE_ALIGN(IPSET_TOKEN(HTYPE, 6_elem))); }#endif if (tb[IPSET_ATTR_TIMEOUT]) {
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
If that does not solve it, then could you help to narrow down the issue? Does the bug still appear if your remove the counter extension of the set?
Thank you for the patch it but still crashes, see:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Any further ideas?
Does it crash without counters? That could narrow down where to look for.
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary
Quoted 6 lines · Jozsef Kadlecsik
Quoted 1 line · Gerhard Wiesinger
Any further ideas?
Does it crash without counters? That could narrow down where to look for.
Hello Jozsef,
it doesn't crash i I don't use the counters so far. So there must be a bug with the counters.
Any idea for the root cause?
Thnx.
Ciao,
Gerhard
Quoted 54 lines · Gerhard Wiesinger
Quoted 53 lines · Jozsef Kadlecsik
Hi,
Quoted 8 lines · Gerhard Wiesinger
Quoted 1 line · Willy Tarreau
ipset *triggered* the problem. The whole stack dump would tell more.
OK, find the stack traces in the bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 triggered also a kernel dump when playing with ipset commands
and IPv6, details in the bug report ....It seems to me it is an architecture-specific alignment issue. I don't have a Cortex-A7 ARM hardware and qemu doesn't seem to support it either, so I'm unable to reproduce it (ipset passes all my tests on my hardware, including more complex ones than what breaks here). My first wild guess is that the dynamic array of the element structure is not aligned properly. Could you give a try to the next patch?
net/netfilter/ipset/ip_set_hash_gen.h +4
-2@@ -1211,6 +1211,9 @@ static const struct ip_set_type_variant mtype_variant = { .same_set = mtype_same_set, }; +#define IP_SET_BASE_ALIGN(dtype) \ + ALIGN(sizeof(struct dtype), __alignof__(struct dtype)) + #ifdef IP_SET_EMIT_CREATE static int IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,@@ -1319,12 +1322,12 @@ IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,#endif set->variant = &IPSET_TOKEN(HTYPE, 4_variant); set->dsize =ip_set_elem_len (set, tb, - sizeof(struct IPSET_TOKEN(HTYPE, 4_elem))); +IP_SET_BASE_ALIGN (IPSET_TOKEN (HTYPE , 4_elem))); #ifndef IP_SET_PROTO_UNDEF }else { set->variant = &IPSET_TOKEN(HTYPE, 6_variant); set->dsize =ip_set_elem_len (set, tb, - sizeof(struct IPSET_TOKEN(HTYPE, 6_elem))); +IP_SET_BASE_ALIGN (IPSET_TOKEN (HTYPE , 6_elem)));} #endif if (tb[IPSET_ATTR_TIMEOUT]) {
Quoted 8 lines
Quoted 3 lines
If that does not solve it, then could you help to narrow down the issue? Does the bug still appear if your remove the counter extension of the set?
Patch applied well, compiling ...
Interesting, that it didn't happen before. Device is in production for more than 2 month without any issue.
You mean the device was stable with the earlier kernels, but starting with 4.2.3 (and back to 4.1.10) you have got problems, don't you?
Quoted 2 lines
Also any idea regarding the second isssue? Or do you think it has the same root cause?
Looking at your RedHat bugzilla report, the "nf_conntrack: table full, dropping packet" and "Alignment trap: not handling instruction" are two unrelated issues and the second one is triggered by the unaligned counter extension acccess in ipset, I'm investigating. I can't think of any reason how those issues could be related to each other.
Quoted 1 line
Greetings from Vienna, Austria :-)
Quite near to my place :-)
Quoted 4 lines
BTW: You can get the Banana Pi R1 for example at:
http://www.aliexpress.com/item/BPI-R1-Set-1-R1-Board-Clear-Case-5dB-Antenna-Power-Adapter-Banana-PI-R1-Smart/32362127917.html
I can really recommend it as a router. Power consumption is as less as 3W. Price is also IMHO very good.
Cool mini gear, indeed!
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary
Quoted 9 lines · Jozsef Kadlecsik
Quoted 2 lines · Gerhard Wiesinger
Also any idea regarding the second isssue? Or do you think it has the same root cause?
Looking at your RedHat bugzilla report, the "
nf_conntrack: table full, dropping packet" and "Alignment trap: not handling instruction" are two unrelated issues and the second one is triggered by the unaligned counter extension acccess in ipset, I'm investigating. I can't think of any reason how those issues could be related to each other.
Yes, they are unrelated.
Issue 1: nf_conntrack: table full, dropping packet => Fixed with 4.2.4
Issue 2: Alignment trap: not handling instruction => Happens when ipset counters are enabled
Please keep in mind it happens with IPv6 commands.
Currently 4.2.4 without ipset counters runs well.
Ciao,
Gerhard
Quoted 13 lines · Greg KH
Quoted 12 lines · Gerhard Wiesinger
Quoted 1 line · Willy Tarreau
ipset *triggered* the problem. The whole stack dump would tell more.
OK, find the stack traces in the bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 triggered also a kernel dump when playing with ipset commands and IPv6, details in the bug report ....
Quoted 4 lines
Quoted 4 lines
Kernel 4.2 seems to me not well tested in the netfilter parts at all (Bug with already known bugfix
https://lists.debian.org/debian-kernel/2015/10/msg00034.html was triggered on 2 of 3 of my machines, the new bug on 1 of 1 tested machine).
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
There's a reason why Greg maintains stable and LTS kernels :-)
Stable kernels don't crash but definiton. :-)
At least triggered 2 kernel panics in 5min, even with 4.1.10 and ipset commands ...
Does this happen also with Linus's tree? I suggest you ask the networking developers about this on [email protected], there's nothing that I can do on my own about this, sorry.
Patch is now available, see:
[PATCH 0/3] ipset patches for nf
https://marc.info/?l=netfilter-devel&m=144690007708041&w=2
https://marc.info/?l=netfilter-devel&m=144690007808042&w=2
https://marc.info/?l=netfilter-devel&m=144690008608043&w=2
https://marc.info/?l=netfilter-devel&m=144690007708039&w=2
[ANNOUNCE] ipset 6.27 released
https://marc.info/?l=netfilter-devel&m=144690048308099&w=2
Requires also new userland ipset version.
Please integrate it upstream.
Thanx to Jozsef Kadlecsik for fixing it.
Ciao,
Gerhard
Greg KH
maintainerQuoted 32 lines · Gerhard Wiesinger
Quoted 13 lines · Greg KH
Quoted 12 lines · Gerhard Wiesinger
Quoted 1 line · Willy Tarreau
ipset *triggered* the problem. The whole stack dump would tell more.
OK, find the stack traces in the bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 triggered also a kernel dump when playing with ipset commands and IPv6, details in the bug report ....
Quoted 4 lines
Quoted 4 lines
Kernel 4.2 seems to me not well tested in the netfilter parts at all (Bug with already known bugfix
https://lists.debian.org/debian-kernel/2015/10/msg00034.html was triggered on 2 of 3 of my machines, the new bug on 1 of 1 tested machine).Quoted 8 lines
Quoted 5 lines
Quoted 1 line
There's a reason why Greg maintains stable and LTS kernels :-)
Stable kernels don't crash but definiton. :-)
At least triggered 2 kernel panics in 5min, even with 4.1.10 and ipset commands ...
Does this happen also with Linus's tree? I suggest you ask the networking developers about this on [email protected], there's nothing that I can do on my own about this, sorry.
Patch is now available, see:
[PATCH 0/3] ipset patches for nf
https://marc.info/?l=netfilter-devel&m=144690007708041&w=2
https://marc.info/?l=netfilter-devel&m=144690007808042&w=2
https://marc.info/?l=netfilter-devel&m=144690008608043&w=2
https://marc.info/?l=netfilter-devel&m=144690007708039&w=2
[ANNOUNCE] ipset 6.27 released
https://marc.info/?l=netfilter-devel&m=144690048308099&w=2
Quoted 5 lines
Requires also new userland ipset version.
Please integrate it upstream.
Thanx to Jozsef Kadlecsik for fixing it.
That's great, can you let me know the git commits that end up in Linus's tree? That's what we need for the stable kernel.
thanks,
greg k-h
Quoted 32 lines · Greg KH
Quoted 31 lines · Gerhard Wiesinger
Quoted 13 lines · Greg KH
Quoted 12 lines · Gerhard Wiesinger
Quoted 1 line · Willy Tarreau
ipset *triggered* the problem. The whole stack dump would tell more.
OK, find the stack traces in the bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1272645Kernel 4.1.10 triggered also a kernel dump when playing with ipset commands and IPv6, details in the bug report ....
Quoted 4 lines
Quoted 4 lines
Kernel 4.2 seems to me not well tested in the netfilter parts at all (Bug with already known bugfix
https://lists.debian.org/debian-kernel/2015/10/msg00034.html was triggered on 2 of 3 of my machines, the new bug on 1 of 1 tested machine).Quoted 8 lines
Quoted 5 lines
Quoted 1 line
There's a reason why Greg maintains stable and LTS kernels :-)
Stable kernels don't crash but definiton. :-)
At least triggered 2 kernel panics in 5min, even with 4.1.10 and ipset commands ...
Does this happen also with Linus's tree? I suggest you ask the networking developers about this on [email protected], there's nothing that I can do on my own about this, sorry.
Patch is now available, see:
[PATCH 0/3] ipset patches for nf
https://marc.info/?l=netfilter-devel&m=144690007708041&w=2
https://marc.info/?l=netfilter-devel&m=144690007808042&w=2
https://marc.info/?l=netfilter-devel&m=144690008608043&w=2
https://marc.info/?l=netfilter-devel&m=144690007708039&w=2
[ANNOUNCE] ipset 6.27 released
https://marc.info/?l=netfilter-devel&m=144690048308099&w=2
Quoted 7 lines
Quoted 5 lines
Requires also new userland ipset version.
Please integrate it upstream.
Thanx to Jozsef Kadlecsik for fixing it.
That's great, can you let me know the git commits that end up in Linus's tree? That's what we need for the stable kernel.
Find the commits here:
https://git.kernel.org/cgit/linux/kernel/git/pablo/nf.git/
https://git.kernel.org/cgit/linux/kernel/git/pablo/nf.git/commit/?id=e75cb467df29a428612c162e6f1451c5c0717091
Don't know exactly the merging processes, so feel free to merge or contact Pablo.
Ciao,
Gerhard
Pablo Neira Ayuso
maintainerQuoted 10 lines · Gerhard Wiesinger
Quoted 2 lines · Greg KH
That's great, can you let me know the git commits that end up in Linus's tree? That's what we need for the stable kernel.
Find the commits here:
https://git.kernel.org/cgit/linux/kernel/git/pablo/nf.git/
https://git.kernel.org/cgit/linux/kernel/git/pablo/nf.git/commit/?id=e75cb467df29a428612c162e6f1451c5c0717091Don't know exactly the merging processes, so feel free to merge or contact Pablo.
I'll take care of that, this is already following its path to -stable, will take a little while though as usual.