2020-04-16 20:32:49

by Greg Kroah-Hartman

[permalink] [raw]
Subject: [PATCH 5.6 000/254] 5.6.5-rc1 review

This is the start of the stable review cycle for the 5.6.5 release.
There are 254 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.

Responses should be made by Sat, 18 Apr 2020 13:11:20 +0000.
Anything received after that time might be too late.

The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.6.5-rc1.gz
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.6.y
and the diffstat can be found below.

thanks,

greg k-h

-------------
Pseudo-Shortlog of commits:

Greg Kroah-Hartman <[email protected]>
Linux 5.6.5-rc1

Christophe Leroy <[email protected]>
powerpc/kasan: Fix kasan_remap_early_shadow_ro()

Peter Zijlstra <[email protected]>
perf/core: Remove 'struct sched_in_data'

Peter Zijlstra <[email protected]>
perf/core: Fix event cgroup tracking

Peter Zijlstra <[email protected]>
perf/core: Unify {pinned,flexible}_sched_in()

Chris Wilson <[email protected]>
drm/i915/gt: Fill all the unused space in the GGTT

Daniele Ceraolo Spurio <[email protected]>
drm/i915/ggtt: do not set bits 1-11 in gen12 ptes

Prike Liang <[email protected]>
drm/amdgpu: fix gfx hang during suspend with video playback (v2)

Lyude Paul <[email protected]>
drm/dp_mst: Fix clearing payload state on topology disable

Lyude Paul <[email protected]>
Revert "drm/dp_mst: Remove VCPI while disabling topology mgr"

Mark Brown <[email protected]>
arm64: Always force a branch protection mode when the compiler has one

Michael Ellerman <[email protected]>
powerpc/64: Prevent stack protection in early boot

Christophe Leroy <[email protected]>
powerpc/kprobes: Ignore traps that happened in real mode

Cédric Le Goater <[email protected]>
powerpc/xive: Fix xmon support on the PowerNV platform

Daniel Axtens <[email protected]>
powerpc/64: Setup a paca before parsing device tree etc.

Cédric Le Goater <[email protected]>
powerpc/xive: Use XIVE_BAD_IRQ instead of zero to catch non configured IPIs

Aneesh Kumar K.V <[email protected]>
powerpc/hash64/devmap: Use H_PAGE_THP_HUGE when setting up huge devmap PTE entries

Laurentiu Tudor <[email protected]>
powerpc/fsl_booke: Avoid creating duplicate tlb1 entry

Michael Ellerman <[email protected]>
powerpc/64/tm: Don't let userspace set regs->trap via sigreturn

Clement Courbet <[email protected]>
powerpc: Make setjmp/longjmp signature standard

Bart Van Assche <[email protected]>
scsi: sr: Fix sr_block_release()

Merlijn Wajer <[email protected]>
scsi: sr: get rid of sr global mutex

Juergen Gross <[email protected]>
xen/blkfront: fix memory allocation flags in blkfront_setup_indirect()

Wen Yang <[email protected]>
ipmi: fix hung processes in __get_guid()

Kai-Heng Feng <[email protected]>
libata: Return correct status in sata_pmp_eh_recover_pm() when ATA_DFLAG_DETACH is set

Simon Gander <[email protected]>
hfsplus: fix crash and filesystem corruption when deleting files

Oliver O'Halloran <[email protected]>
cpufreq: powernv: Fix use-after-free

Eric Biggers <[email protected]>
kmod: make request_module() return an error when autoloading is disabled

Paul Cercueil <[email protected]>
clk: ingenic/TCU: Fix round_rate returning error

Paul Cercueil <[email protected]>
clk: ingenic/jz4770: Exit with error if CGU init failed

Masami Hiramatsu <[email protected]>
ftrace/kprobe: Show the maxactive number on kprobe_events

Hans de Goede <[email protected]>
Input: i8042 - add Acer Aspire 5738z to nomux list

Michael Mueller <[email protected]>
s390/diag: fix display of diagnose call statistics

Sam Lunt <[email protected]>
perf tools: Support Python 3.8+ in Makefile

Changwei Ge <[email protected]>
ocfs2: no need try to truncate file beyond i_size

Eric Biggers <[email protected]>
fs/filesystems.c: downgrade user-reachable WARN_ONCE() to pr_warn_once()

Mike Willard <[email protected]>
ASoC: cs4270: pull reset GPIO low then high

Chris Wilson <[email protected]>
drm/i915/gt: Treat idling as a RPS downclock event

Qian Cai <[email protected]>
ext4: fix a data race at inode->i_blocks

Scott Mayhew <[email protected]>
NFS: Fix a few constant_table array definitions

Trond Myklebust <[email protected]>
NFS: finish_automount() requires us to hold 2 refs to the mount record

Trond Myklebust <[email protected]>
NFS: Fix a page leak in nfs_destroy_unlinked_subrequests()

Trond Myklebust <[email protected]>
NFS: Fix use-after-free issues in nfs_pageio_add_request()

J. Bruce Fields <[email protected]>
nfsd: fsnotify on rmdir under nfsd/clients/

Hans de Goede <[email protected]>
drm/vboxvideo: Add missing remove_conflicting_pci_framebuffers call, v2

Libor Pechacek <[email protected]>
powerpc/pseries: Avoid NULL pointer dereference when drmem is unavailable

Imre Deak <[email protected]>
drm/i915/icl+: Don't enable DDI IO power on a TypeC port in TBT mode

Marek Szyprowski <[email protected]>
drm/prime: fix extracting of the DMA addresses from a scatterlist

Michael Strauss <[email protected]>
drm/amd/display: Check for null fclk voltage when parsing clock table

Aaron Liu <[email protected]>
drm/amdgpu: unify fw_write_wait for new gfx9 asics

Prike Liang <[email protected]>
drm/amd/powerplay: implement the is_dpm_running()

Yuxian Dai <[email protected]>
drm/amdgpu/powerplay: using the FCLK DPM table to set the MCLK

Chris Wilson <[email protected]>
drm: Remove PageReserved manipulation from drm_pci_alloc

Christian Gmeiner <[email protected]>
drm/etnaviv: rework perfmon query infrastructure

Torsten Duwe <[email protected]>
drm/bridge: analogix-anx78xx: Fix drm_dp_link helper removal

Chris Wilson <[email protected]>
drm/i915/gem: Flush all the reloc_gpu batch

Eric Auger <[email protected]>
vfio: platform: Switch to platform_get_irq_optional()

Michael Ellerman <[email protected]>
selftests/powerpc: Fix try-run when source tree is not writable

Christophe Leroy <[email protected]>
selftests/powerpc: Add tlbie_test in .gitignore

Christophe Leroy <[email protected]>
selftests/vm: fix map_hugetlb length used for testing read and write

Michal Hocko <[email protected]>
selftests: vm: drop dependencies on page flags from mlock2 tests

Fredrik Strupe <[email protected]>
arm64: armv8_deprecated: Fix undef_hook mask for thumb setend

Dave Gerlach <[email protected]>
arm64: dts: ti: k3-am65: Add clocks to dwc3 nodes

Marek Szyprowski <[email protected]>
ARM: dts: exynos: Fix polarity of the LCD SPI bus on UniversalC210 board

James Smart <[email protected]>
scsi: lpfc: Fix broken Credit Recovery after driver load

James Smart <[email protected]>
scsi: lpfc: Fix lpfc_io_buf resource leak in lpfc_get_scsi_buf_s4 error path

Stanley Chu <[email protected]>
scsi: ufs: fix Auto-Hibern8 error detection

Steffen Maier <[email protected]>
scsi: zfcp: fix missing erp_lock in port recovery trigger for point-to-point

Gilad Ben-Yossef <[email protected]>
crypto: ccree - dec auth tag size from cryptlen map

Gilad Ben-Yossef <[email protected]>
crypto: ccree - only try to map auth tag if needed

Gilad Ben-Yossef <[email protected]>
crypto: ccree - protect against empty or NULL scatterlists

Andrei Botila <[email protected]>
crypto: caam - update xts sector size for large input length

Horia Geantă <[email protected]>
crypto: caam/qi2 - fix chacha20 data size error

Matthew Wilcox (Oracle) <[email protected]>
xarray: Fix early termination of xas_for_each_marked

Matthew Wilcox (Oracle) <[email protected]>
XArray: Fix xas_pause for large multi-index entries

Nikos Tsironis <[email protected]>
dm clone metadata: Fix return type of dm_clone_nr_of_hydrated_regions()

Nikos Tsironis <[email protected]>
dm clone: Add missing casts to prevent overflows and data corruption

Nikos Tsironis <[email protected]>
dm clone: Add overflow check for number of regions

Nikos Tsironis <[email protected]>
dm clone: Fix handling of partial region discards

Bob Liu <[email protected]>
dm zoned: remove duplicate nr_rnd_zones increase in dmz_init_zone()

Shetty, Harshini X (EXT-Sony Mobile) <[email protected]>
dm verity fec: fix memory leak in verity_fec_dtr

Mikulas Patocka <[email protected]>
dm integrity: fix a crash with unusually large tag size

Mikulas Patocka <[email protected]>
dm writecache: add cond_resched to avoid CPU hangs

Jakub Kicinski <[email protected]>
mm, memcg: do not high throttle allocators based on wraparound

Maxime Ripard <[email protected]>
arm64: dts: allwinner: h5: Fix PMU compatible

Scott Wood <[email protected]>
sched/core: Remove duplicate assignment in sched_tick_remote()

Maxime Ripard <[email protected]>
arm64: dts: allwinner: h6: Fix PMU compatible

Subash Abhinov Kasiviswanathan <[email protected]>
net: qualcomm: rmnet: Allow configuration updates to existing devices

Anssi Hannula <[email protected]>
tools: gpio: Fix out-of-tree build regression

Sreekanth Reddy <[email protected]>
scsi: mpt3sas: Fix kernel panic observed on soft HBA unplug

Jens Axboe <[email protected]>
io_uring: honor original task RLIMIT_FSIZE

Rosioru Dragos <[email protected]>
crypto: mxs-dcp - fix scatterlist linearization for hash

Dan Carpenter <[email protected]>
crypto: rng - Fix a refcounting bug in crypto_rng_reset()

Dmitry Safonov <[email protected]>
time/namespace: Add max_time_namespaces ucount

Michael Kerrisk (man-pages) <[email protected]>
time/namespace: Fix time_for_children symlink

Nikita Shubin <[email protected]>
remoteproc: Fix NULL pointer dereference in rproc_virtio_notify

Sibi Sankar <[email protected]>
remoteproc: qcom_q6v5_mss: Reload the mba region on coredump

Bjorn Andersson <[email protected]>
remoteproc: qcom_q6v5_mss: Don't reassign mpss region on shutdown

Josef Bacik <[email protected]>
btrfs: use nofs allocations for running delayed items

Robbie Ko <[email protected]>
btrfs: fix missing semaphore unlock in btrfs_sync_file

Josef Bacik <[email protected]>
btrfs: unset reloc control if we fail to recover

Filipe Manana <[email protected]>
btrfs: fix missing file extent item for hole after ranged fsync

Josef Bacik <[email protected]>
btrfs: drop block from cache on error in relocation

Josef Bacik <[email protected]>
btrfs: set update the uuid generation as soon as possible

Josef Bacik <[email protected]>
btrfs: reloc: clean dirty subvols if we fail to start a transaction

Filipe Manana <[email protected]>
Btrfs: fix crash during unmount due to race with delayed inode workers

Josef Bacik <[email protected]>
btrfs: fix btrfs_calc_reclaim_metadata_size calculation

Qu Wenruo <[email protected]>
btrfs: Don't submit any btree write bio if the fs has errors

Tvrtko Ursulin <[email protected]>
drm/i915/gen12: Disable preemption timeout

Piotr Sroka <[email protected]>
mtd: rawnand: cadence: reinit completion before executing a new command

Piotr Sroka <[email protected]>
mtd: rawnand: cadence: change bad block marker size

Piotr Sroka <[email protected]>
mtd: rawnand: cadence: fix the calculation of the avaialble OOB size

Frieder Schrempf <[email protected]>
mtd: spinand: Do not erase the block before writing a bad block marker

Frieder Schrempf <[email protected]>
mtd: spinand: Stop using spinand->oobbuf for buffering bad block markers

Murphy Zhou <[email protected]>
CIFS: check new file size when extending file by fallocate

Yilu Lin <[email protected]>
CIFS: Fix bug which the return value by asynchronous read is error

Steve French <[email protected]>
smb3: fix performance regression with setting mtime

Vitaly Kuznetsov <[email protected]>
KVM: VMX: fix crash cleanup when KVM wasn't used

Sean Christopherson <[email protected]>
KVM: VMX: Add a trampoline to fix VMREAD error handling

Sean Christopherson <[email protected]>
KVM: x86: Gracefully handle __vmalloc() failure during VM allocation

Sean Christopherson <[email protected]>
KVM: VMX: Always VMCLEAR in-use VMCSes during crash with kexec support

Sean Christopherson <[email protected]>
KVM: x86: Allocate new rmap and large page tracking when moving memslot

David Hildenbrand <[email protected]>
KVM: s390: vsie: Fix delivery of addressing exceptions

David Hildenbrand <[email protected]>
KVM: s390: vsie: Fix region 1 ASCE sanity shadow address checks

Sean Christopherson <[email protected]>
KVM: nVMX: Properly handle userspace interrupt window request

Fabiano Rosas <[email protected]>
KVM: PPC: Book3S HV: Skip kvmppc_uvmem_free if Ultravisor is not supported

Kristian Klausen <[email protected]>
platform/x86: asus-wmi: Support laptops where the first battery is named BATT

Thomas Gleixner <[email protected]>
x86/entry/32: Add missing ASM_CLAC to general_protection entry

Hans de Goede <[email protected]>
x86/tsc_msr: Make MSR derived TSC frequency more accurate

Hans de Goede <[email protected]>
x86/tsc_msr: Fix MSR_FSB_FREQ mask for Cherry Trail devices

Hans de Goede <[email protected]>
x86/tsc_msr: Use named struct initializers

Eric W. Biederman <[email protected]>
signal: Extend exec_id to 64bits

Remi Pommarel <[email protected]>
ath9k: Handle txpower changes even when TPC is disabled

Neeraj Upadhyay <[email protected]>
PM: sleep: wakeup: Skip wakeup_source_sysfs_remove() if device is not there

Ulf Hansson <[email protected]>
PM / Domains: Allow no domain-idle-states DT property in genpd when parsing

Gustavo A. R. Silva <[email protected]>
MIPS: OCTEON: irq: Fix potential NULL pointer dereference

Huacai Chen <[email protected]>
MIPS/tlbex: Fix LDDIR usage in setup_pw() for Loongson-3

Vasily Averin <[email protected]>
pstore: pstore_ftrace_seq_next should increase position index

Pavel Begunkov <[email protected]>
io_uring: fix ctx refcounting in io_submit_sqes()

Jens Axboe <[email protected]>
io_uring: remove bogus RLIMIT_NOFILE check in file registration

Jens Axboe <[email protected]>
io_uring: ensure openat sets O_LARGEFILE if needed

Sungbo Eo <[email protected]>
irqchip/versatile-fpga: Apply clear-mask earlier

Thomas Gleixner <[email protected]>
genirq/debugfs: Add missing sanity checks to interrupt injection

Thomas Gleixner <[email protected]>
cpu/hotplug: Ignore pm_wakeup_pending() for disable_nonboot_cpus()

Paul E. McKenney <[email protected]>
rcu: Make rcu_barrier() account for offline no-CBs CPUs

Ludovic Barre <[email protected]>
mmc: mmci_sdmmc: Fix clear busyd0end irq flag

Yang Xu <[email protected]>
KEYS: reaching the keys quotas correctly

Vasily Averin <[email protected]>
tpm: tpm2_bios_measurements_next should increase position index

Vasily Averin <[email protected]>
tpm: tpm1_bios_measurements_next should increase position index

Matthew Garrett <[email protected]>
tpm: Don't make log failures fatal

Vincent Guittot <[email protected]>
sched/fair: Fix enqueue_task_fair warning

Gao Xiang <[email protected]>
erofs: correct the remaining shrink objects

Kishon Vijay Abraham I <[email protected]>
PCI: endpoint: Fix for concurrent memory allocation in OB address region

Bjorn Andersson <[email protected]>
PCI: qcom: Fix the fixup of PCI_VENDOR_ID_QCOM

Sean V Kelley <[email protected]>
PCI: Add boot interrupt quirk mechanism for Xeon chipsets

Yicong Yang <[email protected]>
PCI/ASPM: Clear the correct bits when enabling L1 substates

Lukas Wunner <[email protected]>
PCI: pciehp: Fix indefinite wait on sysfs requests

Tom Lendacky <[email protected]>
efi/x86: Add TPM related EFI tables to unencrypted mapping checks

James Smart <[email protected]>
nvme-fc: Revert "add module to ops template to allow module references"

Sagi Grimberg <[email protected]>
nvmet-tcp: fix maxh2cdata icresp parameter

Martin Blumenstingl <[email protected]>
thermal: devfreq_cooling: inline all stubs for CONFIG_DEVFREQ_THERMAL=n

Gayatri Kammela <[email protected]>
thermal: int340x_thermal: fix: Update Tiger Lake ACPI device IDs

Rafael J. Wysocki <[email protected]>
ACPI: PM: s2idle: Refine active GPEs check

Rafael J. Wysocki <[email protected]>
ACPICA: Allow acpi_any_gpe_status_set() to skip one GPE

Jan Engelhardt <[email protected]>
acpi/x86: ignore unspecified bit positions in the ACPI global lock field

Rafael J. Wysocki <[email protected]>
ACPI: EC: Avoid printing confusing messages in acpi_ec_setup()

Sven Schnelle <[email protected]>
seccomp: Add missing compat_ioctl for notify

Benoit Parrot <[email protected]>
media: ti-vpe: cal: fix a kernel oops when unloading module

Benoit Parrot <[email protected]>
media: ti-vpe: cal: fix disable_irqs to only the intended target

Andrzej Pietrasiewicz <[email protected]>
media: hantro: Read be32 words starting at every fourth byte

Stanimir Varbanov <[email protected]>
media: venus: firmware: Ignore secure call error on first resume

Stanimir Varbanov <[email protected]>
media: venus: cache vb payload to be used by clock scaling

Takashi Iwai <[email protected]>
ALSA: hda/realtek - Add quirk for MSI GL63

Hans de Goede <[email protected]>
ALSA: hda/realtek - Add quirk for Lenovo Carbon X1 8th gen

Thomas Hebb <[email protected]>
ALSA: hda/realtek - Remove now-unnecessary XPS 13 headphone noise fixups

Thomas Hebb <[email protected]>
ALSA: hda/realtek - Set principled PC Beep configuration for ALC256

Thomas Hebb <[email protected]>
ALSA: doc: Document PC Beep Hidden Register on Realtek ALC256

Hui Wang <[email protected]>
ALSA: hda/realtek - a fake key event is triggered by running shutup

Kai-Heng Feng <[email protected]>
ALSA: hda/realtek: Enable mute LED on an HP system

Takashi Iwai <[email protected]>
ALSA: pcm: oss: Fix regression by buffer overflow fix

Takashi Iwai <[email protected]>
ALSA: ice1724: Fix invalid access for enumerated ctl items

Takashi Iwai <[email protected]>
ALSA: hda: Fix potential access overflow in beep helper

Takashi Iwai <[email protected]>
ALSA: hda: Add driver blacklist

Takashi Iwai <[email protected]>
ALSA: usb-audio: Add mixer workaround for TRX40 and co

Thinh Nguyen <[email protected]>
usb: gadget: composite: Inform controller driver of self-powered

Sriharsha Allenki <[email protected]>
usb: gadget: f_fs: Fix use after free issue as part of queue failure

이경택 <[email protected]>
ASoC: topology: use name_prefix for new kcontrol

이경택 <[email protected]>
ASoC: dpcm: allow start or stop during pause for backend

이경택 <[email protected]>
ASoC: dapm: connect virtual mux with default value

이경택 <[email protected]>
ASoC: fix regwmask

Josef Bacik <[email protected]>
btrfs: track reloc roots based on their commit root bytenr

Josef Bacik <[email protected]>
btrfs: restart relocate_tree_blocks properly

Josef Bacik <[email protected]>
btrfs: remove a BUG_ON() from merge_reloc_roots()

Qu Wenruo <[email protected]>
btrfs: qgroup: ensure qgroup_rescan_running is only set when the worker is at least queued

Zhiqiang Liu <[email protected]>
block, bfq: fix use-after-free in bfq_idle_slice_timer_body

Sergio Paracuellos <[email protected]>
staging: mt7621-pci: avoid to poweroff the phy for slot one

Boqun Feng <[email protected]>
locking/lockdep: Avoid recursion in lockdep_count_{for,back}ward_deps()

Vladimir Oltean <[email protected]>
spi: spi-fsl-dspi: Replace interruptible wait queue with a simple completion

Junyong Sun <[email protected]>
firmware: fix a double abort case with fw_load_sysfs_fallback

Guoqing Jiang <[email protected]>
md: check arrays is suspended in mddev_detach before call quiesce operations

Marc Zyngier <[email protected]>
irqchip/gic-v4: Provide irq_retrigger to avoid circular locking dependency

Neil Armstrong <[email protected]>
usb: dwc3: core: add support for disabling SS instances in park mode

Dongchun Zhu <[email protected]>
media: i2c: ov5695: Fix power on and off sequences

Hsin-Yi Wang <[email protected]>
media: mtk-vpu: avoid unaligned access to DTCM buffer.

Alexey Dobriyan <[email protected]>
block, zoned: fix integer overflow with BLKRESETZONE et al

Sahitya Tummala <[email protected]>
block: Fix use-after-free issue accessing struct io_cq

Alexander Sverdlin <[email protected]>
genirq/irqdomain: Check pointer in irq_domain_alloc_irqs_hierarchy()

Ard Biesheuvel <[email protected]>
efi/x86: Ignore the memory attributes table on i386

Arvind Sankar <[email protected]>
x86/boot: Use unsigned comparison for addresses

Peng Fan <[email protected]>
cpufreq: imx6q: fix error handling

Bob Peterson <[email protected]>
gfs2: Don't demote a glock until its revokes are written

Bob Peterson <[email protected]>
gfs2: Do log_flush in gfs2_ail_empty_gl even if ail list is empty

chenqiwu <[email protected]>
pstore/platform: fix potential mem leak if pstore_init_fs failed

John Garry <[email protected]>
libata: Remove extra scsi_host_put() in ata_scsi_add_hosts()

Matt Ranostay <[email protected]>
media: i2c: video-i2c: fix build errors due to 'imply hwmon'

Paolo Valente <[email protected]>
block, bfq: move forward the getting of an extra ref in bfq_bfqq_move

Logan Gunthorpe <[email protected]>
PCI/switchtec: Fix init_completion race condition with poll_wait()

Andy Lutomirski <[email protected]>
selftests/x86/ptrace_syscall_32: Fix no-vDSO segfault

Tao Zhou <[email protected]>
sched/fair: Fix condition of avg_load calculation

Michael Wang <[email protected]>
sched: Avoid scale real weight down to zero

Michael Tretter <[email protected]>
media: allegro: fix type of gop_length in channel_create message

Marc Zyngier <[email protected]>
irqchip/gic-v4.1: Skip absent CPUs while iterating over redistributors

Ahmed S. Darwish <[email protected]>
time/sched_clock: Expire timer in hardirq context

Sungbo Eo <[email protected]>
irqchip/versatile-fpga: Handle chained IRQs properly

Vladimir Oltean <[email protected]>
spi: spi-fsl-dspi: Avoid NULL pointer in dspi_slave_abort for non-DMA mode

Taehee Yoo <[email protected]>
debugfs: Check module state before warning in {full/open}_proxy_open()

Konstantin Khlebnikov <[email protected]>
block: keep bdi->io_pages in sync with max_sectors_kb for stacked devices

Thomas Hellstrom <[email protected]>
dma-mapping: Fix dma_pgprot() for unencrypted coherent pages

Thomas Hellstrom <[email protected]>
x86: Don't let pgprot_modify() change the page encryption bit

Claudiu Beznea <[email protected]>
clocksource/drivers/timer-microchip-pit64b: Fix rate for gck

Rafael J. Wysocki <[email protected]>
ACPI: EC: Do not clear boot_ec_is_ecdt in acpi_ec_add()

Mathias Nyman <[email protected]>
xhci: bail out early if driver can't accress host in resume

Laurent Pinchart <[email protected]>
media: imx: imx7-media-csi: Fix video field handling

Laurent Pinchart <[email protected]>
media: imx: imx7_mipi_csis: Power off the source when stopping streaming

Alexey Dobriyan <[email protected]>
null_blk: fix spurious IO errors after failed past-wp access

Bart Van Assche <[email protected]>
null_blk: Suppress an UBSAN complaint triggered when setting 'memory_backed'

Bart Van Assche <[email protected]>
null_blk: Handle null_add_dev() failures properly

Bart Van Assche <[email protected]>
blk-mq: Fix a recently introduced regression in blk_mq_realloc_hw_ctxs()

Bart Van Assche <[email protected]>
null_blk: Fix the null_add_dev() error path

Lorenzo Bianconi <[email protected]>
iio: imu: st_lsm6dsx: check return value from st_lsm6dsx_sensor_set_enable

Chris Wilson <[email protected]>
sched/vtime: Prevent unstable evaluation of WARN(vtime->state)

Anshuman Khandual <[email protected]>
arm64/mm: Hold memory hotplug lock while walking for kernel page table dump

Krzysztof Kozlowski <[email protected]>
usb: phy: tegra: Include proper GPIO consumer header to fix compile testing

Mohammad Rasim <[email protected]>
media: arm64: dts: amlogic: add rc-videostrong-kii-pro keymap

James Morse <[email protected]>
firmware: arm_sdei: fix double-lock on hibernate with shared events

Stephan Gerhold <[email protected]>
media: venus: hfi_parser: Ignore HEVC encoding for V1

Helen Koike <[email protected]>
media: staging: rkisp1: isp: do not set invalid mbus code for pad

Helen Koike <[email protected]>
media: staging: rkisp1: use consistent bus_info string for media_dev

Philipp Zabel <[email protected]>
media: hantro: fix extra MV/MC sync space calculation

Dafna Hirschfeld <[email protected]>
media: vimc: streamer: fix memory leak in vimc subdevs if kthread_run fails

Ajay Singh <[email protected]>
staging: wilc1000: avoid double unlocking of 'wilc->hif_cs' mutex

Ajay Gupta <[email protected]>
usb: ucsi: ccg: disable runtime pm during fw flashing

Robert Richter <[email protected]>
EDAC/mc: Report "unknown memory" on too many DIMM labels found

Christoph Niedermaier <[email protected]>
cpufreq: imx6q: Fixes unwanted cpu overclocking on i.MX6ULL

Mohammad Rasim <[email protected]>
media: rc: add keymap for Videostrong KII Pro


-------------

Diffstat:

Documentation/admin-guide/sysctl/user.rst | 6 +
Documentation/sound/hd-audio/index.rst | 1 +
Documentation/sound/hd-audio/models.rst | 2 -
Documentation/sound/hd-audio/realtek-pc-beep.rst | 129 ++++++++++++
Makefile | 4 +-
arch/arm/boot/dts/exynos4210-universal_c210.dts | 4 +-
arch/arm64/Makefile | 4 +
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 3 +-
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 3 +-
arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts | 4 +
arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 2 +
arch/arm64/kernel/armv8_deprecated.c | 2 +-
arch/arm64/mm/ptdump_debugfs.c | 4 +
arch/mips/cavium-octeon/octeon-irq.c | 3 +
arch/mips/mm/tlbex.c | 5 +-
arch/powerpc/include/asm/book3s/64/hash-4k.h | 6 +
arch/powerpc/include/asm/book3s/64/hash-64k.h | 8 +-
arch/powerpc/include/asm/book3s/64/pgtable.h | 4 +-
arch/powerpc/include/asm/book3s/64/radix.h | 5 +
arch/powerpc/include/asm/drmem.h | 4 +-
arch/powerpc/include/asm/setjmp.h | 6 +-
arch/powerpc/kernel/dt_cpu_ftrs.c | 1 -
arch/powerpc/kernel/kprobes.c | 3 +
arch/powerpc/kernel/paca.c | 14 +-
arch/powerpc/kernel/setup.h | 6 +
arch/powerpc/kernel/setup_64.c | 32 ++-
arch/powerpc/kernel/signal_64.c | 4 +-
arch/powerpc/kexec/Makefile | 3 -
arch/powerpc/kvm/book3s_hv_uvmem.c | 3 +
arch/powerpc/mm/kasan/kasan_init_32.c | 2 +-
arch/powerpc/mm/nohash/tlb_low.S | 12 +-
arch/powerpc/platforms/pseries/hotplug-memory.c | 8 +-
arch/powerpc/sysdev/xive/common.c | 16 +-
arch/powerpc/sysdev/xive/native.c | 4 +-
arch/powerpc/sysdev/xive/spapr.c | 4 +-
arch/powerpc/sysdev/xive/xive-internal.h | 7 +
arch/powerpc/xmon/Makefile | 3 -
arch/s390/kernel/diag.c | 2 +-
arch/s390/kvm/vsie.c | 1 +
arch/s390/mm/gmap.c | 6 +-
arch/x86/boot/compressed/head_32.S | 2 +-
arch/x86/boot/compressed/head_64.S | 4 +-
arch/x86/entry/entry_32.S | 1 +
arch/x86/include/asm/kvm_host.h | 2 +-
arch/x86/include/asm/pgtable.h | 7 +-
arch/x86/include/asm/pgtable_types.h | 2 +-
arch/x86/kernel/acpi/boot.c | 2 +-
arch/x86/kernel/tsc_msr.c | 128 +++++++++--
arch/x86/kvm/svm.c | 4 +
arch/x86/kvm/vmx/nested.c | 18 +-
arch/x86/kvm/vmx/ops.h | 28 ++-
arch/x86/kvm/vmx/vmenter.S | 58 +++++
arch/x86/kvm/vmx/vmx.c | 92 +++-----
arch/x86/kvm/x86.c | 21 +-
arch/x86/platform/efi/efi.c | 2 +
block/bfq-cgroup.c | 14 +-
block/bfq-iosched.c | 16 +-
block/blk-ioc.c | 7 +
block/blk-mq.c | 1 -
block/blk-settings.c | 3 +
block/blk-zoned.c | 2 +-
crypto/rng.c | 8 +-
drivers/acpi/acpica/achware.h | 2 +-
drivers/acpi/acpica/evxfgpe.c | 17 +-
drivers/acpi/acpica/hwgpe.c | 47 ++++-
drivers/acpi/ec.c | 26 ++-
drivers/acpi/internal.h | 1 +
drivers/acpi/sleep.c | 19 +-
drivers/ata/libata-pmp.c | 1 +
drivers/ata/libata-scsi.c | 9 +-
drivers/base/firmware_loader/fallback.c | 2 +-
drivers/base/power/domain.c | 2 +-
drivers/base/power/wakeup.c | 4 +-
drivers/block/null_blk_main.c | 12 +-
drivers/block/xen-blkfront.c | 17 +-
drivers/char/ipmi/ipmi_msghandler.c | 4 +-
drivers/char/tpm/eventlog/common.c | 12 +-
drivers/char/tpm/eventlog/tpm1.c | 2 +-
drivers/char/tpm/eventlog/tpm2.c | 2 +-
drivers/char/tpm/tpm-chip.c | 4 +-
drivers/char/tpm/tpm.h | 2 +-
drivers/clk/ingenic/jz4770-cgu.c | 4 +-
drivers/clk/ingenic/tcu.c | 2 +-
drivers/clocksource/timer-microchip-pit64b.c | 1 +
drivers/cpufreq/imx6q-cpufreq.c | 12 +-
drivers/cpufreq/powernv-cpufreq.c | 6 +
drivers/crypto/caam/caamalg_desc.c | 30 ++-
drivers/crypto/ccree/cc_buffer_mgr.c | 76 ++++---
drivers/crypto/ccree/cc_buffer_mgr.h | 1 +
drivers/crypto/mxs-dcp.c | 58 +++--
drivers/edac/edac_mc.c | 21 +-
drivers/firmware/arm_sdei.c | 32 ++-
drivers/firmware/efi/efi.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 +-
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 +
.../drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c | 2 +-
drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 18 ++
drivers/gpu/drm/amd/powerplay/renoir_ppt.h | 2 +-
drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c | 5 +-
drivers/gpu/drm/drm_dp_mst_topology.c | 20 +-
drivers/gpu/drm/drm_pci.c | 23 +-
drivers/gpu/drm/drm_prime.c | 37 ++--
drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 59 +++++-
drivers/gpu/drm/i915/Kconfig.profile | 4 +
drivers/gpu/drm/i915/display/intel_ddi.c | 6 +-
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 8 +-
drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 26 +++
drivers/gpu/drm/i915/gt/intel_engine_cs.c | 13 +-
drivers/gpu/drm/i915/gt/intel_ggtt.c | 48 +++--
drivers/gpu/drm/i915/gt/intel_gtt.c | 24 ---
drivers/gpu/drm/i915/gt/intel_gtt.h | 4 -
drivers/gpu/drm/i915/gt/intel_rps.c | 13 ++
drivers/gpu/drm/vboxvideo/vbox_drv.c | 4 +
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c | 5 +-
drivers/input/serio/i8042-x86ia64io.h | 11 +
drivers/irqchip/irq-gic-v3-its.c | 10 +
drivers/irqchip/irq-versatile-fpga.c | 18 +-
drivers/md/dm-clone-metadata.c | 15 +-
drivers/md/dm-clone-metadata.h | 2 +-
drivers/md/dm-clone-target.c | 66 ++++--
drivers/md/dm-integrity.c | 4 +-
drivers/md/dm-verity-fec.c | 1 +
drivers/md/dm-writecache.c | 6 +-
drivers/md/dm-zoned-metadata.c | 1 -
drivers/md/md.c | 2 +-
drivers/media/i2c/ov5695.c | 49 +++--
drivers/media/i2c/video-i2c.c | 2 +-
drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c | 9 +-
drivers/media/platform/mtk-vcodec/vdec_vpu_if.c | 6 +-
drivers/media/platform/mtk-vcodec/venc_vpu_if.c | 12 +-
drivers/media/platform/mtk-vpu/mtk_vpu.c | 45 ++--
drivers/media/platform/mtk-vpu/mtk_vpu.h | 2 +-
drivers/media/platform/qcom/venus/core.h | 1 +
drivers/media/platform/qcom/venus/firmware.c | 10 +-
drivers/media/platform/qcom/venus/helpers.c | 20 +-
drivers/media/platform/qcom/venus/hfi_parser.c | 1 +
drivers/media/platform/ti-vpe/cal.c | 29 +--
drivers/media/platform/vimc/vimc-streamer.c | 9 +-
drivers/media/rc/keymaps/Makefile | 1 +
drivers/media/rc/keymaps/rc-videostrong-kii-pro.c | 83 ++++++++
drivers/mmc/host/mmci_stm32_sdmmc.c | 4 +-
drivers/mtd/nand/raw/cadence-nand-controller.c | 13 +-
drivers/mtd/nand/spi/core.c | 17 +-
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 31 +--
drivers/net/wireless/ath/ath9k/main.c | 3 +
drivers/nvme/host/fc.c | 14 +-
drivers/nvme/target/fcloop.c | 1 -
drivers/nvme/target/tcp.c | 2 +-
drivers/pci/controller/dwc/pcie-qcom.c | 8 +-
drivers/pci/endpoint/pci-epc-mem.c | 10 +-
drivers/pci/hotplug/pciehp_hpc.c | 14 +-
drivers/pci/pcie/aspm.c | 4 +-
drivers/pci/quirks.c | 80 ++++++-
drivers/pci/switch/switchtec.c | 2 +-
drivers/platform/x86/asus-wmi.c | 5 +-
drivers/remoteproc/qcom_q6v5_mss.c | 54 +++--
drivers/remoteproc/remoteproc_virtio.c | 7 +
drivers/s390/scsi/zfcp_erp.c | 2 +-
drivers/scsi/lpfc/lpfc.h | 1 +
drivers/scsi/lpfc/lpfc_hbadisc.c | 59 ++++--
drivers/scsi/lpfc/lpfc_nvme.c | 2 -
drivers/scsi/lpfc/lpfc_scsi.c | 4 +-
drivers/scsi/mpt3sas/mpt3sas_scsih.c | 8 +-
drivers/scsi/qla2xxx/qla_nvme.c | 1 -
drivers/scsi/sr.c | 22 +-
drivers/scsi/sr.h | 2 +
drivers/scsi/ufs/ufshcd.c | 3 +-
drivers/scsi/ufs/ufshcd.h | 6 +
drivers/spi/spi-fsl-dspi.c | 25 +--
drivers/staging/media/allegro-dvt/allegro-core.c | 5 +-
drivers/staging/media/hantro/hantro_h1_jpeg_enc.c | 9 +-
drivers/staging/media/hantro/hantro_v4l2.c | 2 +-
.../staging/media/hantro/rk3399_vpu_hw_jpeg_enc.c | 9 +-
drivers/staging/media/imx/imx7-media-csi.c | 4 +
drivers/staging/media/imx/imx7-mipi-csis.c | 2 +-
drivers/staging/media/rkisp1/rkisp1-dev.c | 3 +-
drivers/staging/media/rkisp1/rkisp1-isp.c | 4 +-
drivers/staging/mt7621-pci/pci-mt7621.c | 3 +-
drivers/staging/wilc1000/wlan.c | 1 -
.../intel/int340x_thermal/int3400_thermal.c | 2 +-
.../intel/int340x_thermal/int3403_thermal.c | 2 +-
drivers/usb/dwc3/core.c | 5 +
drivers/usb/dwc3/core.h | 4 +
drivers/usb/gadget/composite.c | 9 +
drivers/usb/gadget/function/f_fs.c | 1 +
drivers/usb/host/xhci.c | 4 +-
drivers/usb/phy/phy-tegra-usb.c | 3 +-
drivers/usb/typec/ucsi/ucsi_ccg.c | 2 +
drivers/vfio/platform/vfio_platform.c | 2 +-
fs/btrfs/async-thread.c | 8 +
fs/btrfs/async-thread.h | 1 +
fs/btrfs/delayed-inode.c | 13 ++
fs/btrfs/disk-io.c | 27 ++-
fs/btrfs/extent_io.c | 35 +++-
fs/btrfs/file.c | 11 +
fs/btrfs/qgroup.c | 11 +-
fs/btrfs/relocation.c | 62 +++---
fs/btrfs/space-info.c | 43 +++-
fs/cifs/file.c | 2 +-
fs/cifs/inode.c | 23 +-
fs/cifs/smb2ops.c | 4 +
fs/debugfs/file.c | 18 +-
fs/erofs/utils.c | 2 +-
fs/exec.c | 2 +-
fs/ext4/inode.c | 2 +-
fs/filesystems.c | 4 +-
fs/gfs2/glock.c | 3 +
fs/gfs2/glops.c | 27 ++-
fs/gfs2/log.c | 2 +-
fs/gfs2/log.h | 1 +
fs/hfsplus/attributes.c | 4 +
fs/io_uring.c | 23 +-
fs/nfs/fs_context.c | 5 +-
fs/nfs/namespace.c | 12 +-
fs/nfs/pagelist.c | 48 ++---
fs/nfs/write.c | 1 +
fs/nfsd/nfsctl.c | 1 +
fs/ocfs2/alloc.c | 4 +
fs/pstore/inode.c | 5 +-
fs/pstore/platform.c | 4 +-
include/acpi/acpixf.h | 2 +-
include/linux/cpu.h | 12 +-
include/linux/devfreq_cooling.h | 2 +-
include/linux/iocontext.h | 1 +
include/linux/nvme-fc-driver.h | 4 -
include/linux/pci-epc.h | 3 +
include/linux/sched.h | 4 +-
include/linux/xarray.h | 6 +-
include/media/rc-map.h | 1 +
include/trace/events/rcu.h | 1 +
kernel/cpu.c | 4 +-
kernel/dma/mapping.c | 2 +
kernel/events/core.c | 150 ++++++-------
kernel/irq/debugfs.c | 11 +-
kernel/irq/irqdomain.c | 10 +-
kernel/kmod.c | 4 +-
kernel/locking/lockdep.c | 4 +
kernel/rcu/tree.c | 36 ++--
kernel/sched/core.c | 1 -
kernel/sched/cputime.c | 41 ++--
kernel/sched/fair.c | 29 ++-
kernel/sched/sched.h | 8 +-
kernel/seccomp.c | 1 +
kernel/signal.c | 2 +-
kernel/time/namespace.c | 1 +
kernel/time/sched_clock.c | 9 +-
kernel/trace/trace_kprobe.c | 2 +
kernel/ucount.c | 1 +
lib/test_xarray.c | 37 ++++
lib/xarray.c | 4 +-
mm/memcontrol.c | 3 +
security/keys/key.c | 2 +-
security/keys/keyctl.c | 4 +-
sound/core/oss/pcm_plugin.c | 32 ++-
sound/pci/hda/hda_beep.c | 6 +-
sound/pci/hda/hda_intel.c | 16 ++
sound/pci/hda/patch_realtek.c | 233 ++++++++++++---------
sound/pci/ice1712/prodigy_hifi.c | 4 +-
sound/soc/codecs/cs4270.c | 40 +++-
sound/soc/soc-dapm.c | 8 +-
sound/soc/soc-ops.c | 4 +-
sound/soc/soc-pcm.c | 6 +-
sound/soc/soc-topology.c | 2 +-
sound/usb/mixer_maps.c | 28 +++
tools/gpio/Makefile | 2 +-
tools/perf/Makefile.config | 11 +-
tools/testing/radix-tree/Makefile | 4 +-
tools/testing/radix-tree/iteration_check_2.c | 87 ++++++++
tools/testing/radix-tree/main.c | 1 +
tools/testing/radix-tree/test.h | 1 +
tools/testing/selftests/powerpc/mm/.gitignore | 1 +
tools/testing/selftests/powerpc/pmu/ebb/Makefile | 1 +
tools/testing/selftests/vm/map_hugetlb.c | 14 +-
tools/testing/selftests/vm/mlock2-tests.c | 233 ++++-----------------
tools/testing/selftests/x86/ptrace_syscall.c | 8 +-
275 files changed, 2648 insertions(+), 1319 deletions(-)



2020-04-16 20:32:57

by Greg Kroah-Hartman

[permalink] [raw]
Subject: [PATCH 5.6 051/254] block, zoned: fix integer overflow with BLKRESETZONE et al

From: Alexey Dobriyan <[email protected]>

[ Upstream commit 11bde986002c0af67eb92d73321d06baefae7128 ]

Check for overflow in addition before checking for end-of-block-device.

Steps to reproduce:

#define _GNU_SOURCE 1
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

typedef unsigned long long __u64;

struct blk_zone_range {
__u64 sector;
__u64 nr_sectors;
};

#define BLKRESETZONE _IOW(0x12, 131, struct blk_zone_range)

int main(void)
{
int fd = open("/dev/nullb0", O_RDWR|O_DIRECT);
struct blk_zone_range zr = {4096, 0xfffffffffffff000ULL};
ioctl(fd, BLKRESETZONE, &zr);
return 0;
}

BUG: KASAN: null-ptr-deref in submit_bio_wait+0x74/0xe0
Write of size 8 at addr 0000000000000040 by task a.out/1590

CPU: 8 PID: 1590 Comm: a.out Not tainted 5.6.0-rc1-00019-g359c92c02bfa #2
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS ?-20190711_202441-buildvm-armv7-10.arm.fedoraproject.org-2.fc31 04/01/2014
Call Trace:
dump_stack+0x76/0xa0
__kasan_report.cold+0x5/0x3e
kasan_report+0xe/0x20
submit_bio_wait+0x74/0xe0
blkdev_zone_mgmt+0x26f/0x2a0
blkdev_zone_mgmt_ioctl+0x14b/0x1b0
blkdev_ioctl+0xb28/0xe60
block_ioctl+0x69/0x80
ksys_ioctl+0x3af/0xa50

Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Alexey Dobriyan (SK hynix) <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
---
block/blk-zoned.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index 05741c6f618be..6b442ae96499a 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -173,7 +173,7 @@ int blkdev_zone_mgmt(struct block_device *bdev, enum req_opf op,
if (!op_is_zone_mgmt(op))
return -EOPNOTSUPP;

- if (!nr_sectors || end_sector > capacity)
+ if (end_sector <= sector || end_sector > capacity)
/* Out of range */
return -EINVAL;

--
2.20.1



2020-04-16 20:33:01

by Greg Kroah-Hartman

[permalink] [raw]
Subject: [PATCH 5.6 040/254] block, bfq: move forward the getting of an extra ref in bfq_bfqq_move

From: Paolo Valente <[email protected]>

[ Upstream commit fd1bb3ae54a9a2e0c42709de861c69aa146b8955 ]

Commit ecedd3d7e199 ("block, bfq: get extra ref to prevent a queue
from being freed during a group move") gets an extra reference to a
bfq_queue before possibly deactivating it (temporarily), in
bfq_bfqq_move(). This prevents the bfq_queue from disappearing before
being reactivated in its new group.

Yet, the bfq_queue may also be expired (i.e., its service may be
stopped) before the bfq_queue is deactivated. And also an expiration
may lead to a premature freeing. This commit fixes this issue by
simply moving forward the getting of the extra reference already
introduced by commit ecedd3d7e199 ("block, bfq: get extra ref to
prevent a queue from being freed during a group move").

Reported-by: [email protected]
Tested-by: [email protected]
Signed-off-by: Paolo Valente <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
---
block/bfq-cgroup.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/block/bfq-cgroup.c b/block/bfq-cgroup.c
index f0ff6654af289..9d963ed518d1f 100644
--- a/block/bfq-cgroup.c
+++ b/block/bfq-cgroup.c
@@ -642,6 +642,12 @@ void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq,
{
struct bfq_entity *entity = &bfqq->entity;

+ /*
+ * Get extra reference to prevent bfqq from being freed in
+ * next possible expire or deactivate.
+ */
+ bfqq->ref++;
+
/* If bfqq is empty, then bfq_bfqq_expire also invokes
* bfq_del_bfqq_busy, thereby removing bfqq and its entity
* from data structures related to current group. Otherwise we
@@ -652,12 +658,6 @@ void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq,
bfq_bfqq_expire(bfqd, bfqd->in_service_queue,
false, BFQQE_PREEMPTED);

- /*
- * get extra reference to prevent bfqq from being freed in
- * next possible deactivate
- */
- bfqq->ref++;
-
if (bfq_bfqq_busy(bfqq))
bfq_deactivate_bfqq(bfqd, bfqq, false, false);
else if (entity->on_st_or_in_serv)
@@ -677,7 +677,7 @@ void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq,

if (!bfqd->in_service_queue && !bfqd->rq_in_driver)
bfq_schedule_dispatch(bfqd);
- /* release extra ref taken above */
+ /* release extra ref taken above, bfqq may happen to be freed now */
bfq_put_queue(bfqq);
}

--
2.20.1



2020-04-16 20:33:23

by Greg Kroah-Hartman

[permalink] [raw]
Subject: [PATCH 5.6 091/254] acpi/x86: ignore unspecified bit positions in the ACPI global lock field

From: Jan Engelhardt <[email protected]>

commit ecb9c790999fd6c5af0f44783bd0217f0b89ec2b upstream.

The value in "new" is constructed from "old" such that all bits defined
as reserved by the ACPI spec[1] are left untouched. But if those bits
do not happen to be all zero, "new < 3" will not evaluate to true.

The firmware of the laptop(s) Medion MD63490 / Akoya P15648 comes with
garbage inside the "FACS" ACPI table. The starting value is
old=0x4944454d, therefore new=0x4944454e, which is >= 3. Mask off
the reserved bits.

[1] https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf

Link: https://bugzilla.kernel.org/show_bug.cgi?id=206553
Cc: All applicable <[email protected]>
Signed-off-by: Jan Engelhardt <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
arch/x86/kernel/acpi/boot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -1740,7 +1740,7 @@ int __acpi_acquire_global_lock(unsigned
new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1));
val = cmpxchg(lock, old, new);
} while (unlikely (val != old));
- return (new < 3) ? -1 : 0;
+ return ((new & 0x3) < 3) ? -1 : 0;
}

int __acpi_release_global_lock(unsigned int *lock)


2020-04-16 20:45:29

by Naresh Kamboju

[permalink] [raw]
Subject: Re: [PATCH 5.6 000/254] 5.6.5-rc1 review

On Thu, 16 Apr 2020 at 19:26, Greg Kroah-Hartman
<[email protected]> wrote:
>
> This is the start of the stable review cycle for the 5.6.5 release.
> There are 254 patches in this series, all will be posted as a response
> to this one. If anyone has any issues with these being applied, please
> let me know.
>
> Responses should be made by Sat, 18 Apr 2020 13:11:20 +0000.
> Anything received after that time might be too late.
>
> The whole patch series can be found in one patch at:
> https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.6.5-rc1.gz
> or in the git tree and branch at:
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.6.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h

Results from Linaro’s test farm.
No regressions on arm64, arm, x86_64, and i386.


Summary
------------------------------------------------------------------------

kernel: 5.6.5-rc1
git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git branch: linux-5.6.y
git commit: 576aa353744ce5f1279071363e4a55e97f486f39
git describe: v5.6.4-255-g576aa353744c
Test details: https://qa-reports.linaro.org/lkft/linux-stable-rc-5.6-oe/build/v5.6.4-255-g576aa353744c

No regressions (compared to build v5.6.3-39-g62251e4703ac)

No fixes (compared to build v5.6.3-39-g62251e4703ac)

Ran 33508 total tests in the following environments and test suites.

Environments
--------------
- dragonboard-410c
- hi6220-hikey
- i386
- juno-r2
- juno-r2-compat
- juno-r2-kasan
- nxp-ls2088
- qemu_arm
- qemu_arm64
- qemu_i386
- qemu_x86_64
- x15
- x86
- x86-kasan

Test Suites
-----------
* build
* install-android-platform-tools-r2600
* install-android-platform-tools-r2800
* libgpiod
* libhugetlbfs
* linux-log-parser
* ltp-cap_bounds-tests
* ltp-commands-tests
* ltp-containers-tests
* ltp-cpuhotplug-tests
* ltp-crypto-tests
* ltp-cve-tests
* ltp-fcntl-locktests-tests
* ltp-filecaps-tests
* ltp-fs-tests
* ltp-fs_bind-tests
* ltp-fs_perms_simple-tests
* ltp-fsx-tests
* ltp-hugetlb-tests
* ltp-ipc-tests
* ltp-math-tests
* ltp-mm-tests
* ltp-nptl-tests
* ltp-pty-tests
* ltp-securebits-tests
* ltp-syscalls-tests
* perf
* v4l2-compliance
* kvm-unit-tests
* kselftest
* ltp-dio-tests
* ltp-io-tests
* ltp-open-posix-tests
* ltp-sched-tests
* network-basic-tests
* spectre-meltdown-checker-test
* kselftest-vsyscall-mode-native
* kselftest-vsyscall-mode-none

--
Linaro LKFT
https://lkft.linaro.org

2020-04-16 21:21:20

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH 5.6 000/254] 5.6.5-rc1 review

On 4/16/20 6:21 AM, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 5.6.5 release.
> There are 254 patches in this series, all will be posted as a response
> to this one. If anyone has any issues with these being applied, please
> let me know.
>
> Responses should be made by Sat, 18 Apr 2020 13:11:20 +0000.
> Anything received after that time might be too late.
>

Build results:
total: 155 pass: 155 fail: 0
Qemu test results:
total: 428 pass: 428 fail: 0

Guenter

2020-04-16 21:38:13

by Shuah Khan

[permalink] [raw]
Subject: Re: [PATCH 5.6 000/254] 5.6.5-rc1 review

On 4/16/20 7:21 AM, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 5.6.5 release.
> There are 254 patches in this series, all will be posted as a response
> to this one. If anyone has any issues with these being applied, please
> let me know.
>
> Responses should be made by Sat, 18 Apr 2020 13:11:20 +0000.
> Anything received after that time might be too late.
>
> The whole patch series can be found in one patch at:
> https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.6.5-rc1.gz
> or in the git tree and branch at:
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.6.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h
>

Compiled and booted on my test system. No dmesg regressions.
reboot and poweroff hang forever. I saw this problem on
Linux 5.7rc1 as well.

AMD Ryzen 5 PRO 2400GE

I don't see this problem on Intel i7-8550U

I haven't started debugging yet. I will have to go back and
check if it is introduced in 5.6.4-rc1. 5.6-3-rc2 is the last
good one.

I will update you later on today with bisect data.

thanks,
-- Shuah

2020-04-17 08:39:56

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH 5.6 000/254] 5.6.5-rc1 review

On Thu, Apr 16, 2020 at 03:35:35PM -0600, shuah wrote:
> On 4/16/20 7:21 AM, Greg Kroah-Hartman wrote:
> > This is the start of the stable review cycle for the 5.6.5 release.
> > There are 254 patches in this series, all will be posted as a response
> > to this one. If anyone has any issues with these being applied, please
> > let me know.
> >
> > Responses should be made by Sat, 18 Apr 2020 13:11:20 +0000.
> > Anything received after that time might be too late.
> >
> > The whole patch series can be found in one patch at:
> > https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.6.5-rc1.gz
> > or in the git tree and branch at:
> > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.6.y
> > and the diffstat can be found below.
> >
> > thanks,
> >
> > greg k-h
> >
>
> Compiled and booted on my test system. No dmesg regressions.
> reboot and poweroff hang forever. I saw this problem on
> Linux 5.7rc1 as well.
>
> AMD Ryzen 5 PRO 2400GE
>
> I don't see this problem on Intel i7-8550U
>
> I haven't started debugging yet. I will have to go back and
> check if it is introduced in 5.6.4-rc1. 5.6-3-rc2 is the last
> good one.
>
> I will update you later on today with bisect data.

Oh nice, we are bug-compatible with mainline :(

Thanks for the testing, let me know if you find the issue.

thanks,

greg k-h

2020-04-17 08:41:04

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH 5.6 000/254] 5.6.5-rc1 review

On Thu, Apr 16, 2020 at 11:37:47PM +0530, Naresh Kamboju wrote:
> On Thu, 16 Apr 2020 at 19:26, Greg Kroah-Hartman
> <[email protected]> wrote:
> >
> > This is the start of the stable review cycle for the 5.6.5 release.
> > There are 254 patches in this series, all will be posted as a response
> > to this one. If anyone has any issues with these being applied, please
> > let me know.
> >
> > Responses should be made by Sat, 18 Apr 2020 13:11:20 +0000.
> > Anything received after that time might be too late.
> >
> > The whole patch series can be found in one patch at:
> > https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.6.5-rc1.gz
> > or in the git tree and branch at:
> > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.6.y
> > and the diffstat can be found below.
> >
> > thanks,
> >
> > greg k-h
>
> Results from Linaro’s test farm.
> No regressions on arm64, arm, x86_64, and i386.

Great! Thanks for testing and letting me know.

greg k-h

2020-04-17 08:42:31

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH 5.6 000/254] 5.6.5-rc1 review

On Thu, Apr 16, 2020 at 02:17:03PM -0700, Guenter Roeck wrote:
> On 4/16/20 6:21 AM, Greg Kroah-Hartman wrote:
> > This is the start of the stable review cycle for the 5.6.5 release.
> > There are 254 patches in this series, all will be posted as a response
> > to this one. If anyone has any issues with these being applied, please
> > let me know.
> >
> > Responses should be made by Sat, 18 Apr 2020 13:11:20 +0000.
> > Anything received after that time might be too late.
> >
>
> Build results:
> total: 155 pass: 155 fail: 0
> Qemu test results:
> total: 428 pass: 428 fail: 0

Thanks for testing all of these and letting me know.

greg k-h

2020-04-17 09:47:01

by Jon Hunter

[permalink] [raw]
Subject: Re: [PATCH 5.6 000/254] 5.6.5-rc1 review


On 16/04/2020 14:21, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 5.6.5 release.
> There are 254 patches in this series, all will be posted as a response
> to this one. If anyone has any issues with these being applied, please
> let me know.
>
> Responses should be made by Sat, 18 Apr 2020 13:11:20 +0000.
> Anything received after that time might be too late.
>
> The whole patch series can be found in one patch at:
> https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.6.5-rc1.gz
> or in the git tree and branch at:
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.6.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h

All tests are passing for Tegra ...

Test results for stable-v5.6:
13 builds: 13 pass, 0 fail
24 boots: 24 pass, 0 fail
40 tests: 40 pass, 0 fail

Linux version: 5.6.5-rc1-g576aa353744c
Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,
tegra194-p2972-0000, tegra20-ventana,
tegra210-p2371-2180, tegra210-p3450-0000,
tegra30-cardhu-a04

Cheers
Jon

--
nvpublic

2020-04-17 14:14:35

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH 5.6 000/254] 5.6.5-rc1 review

On Fri, Apr 17, 2020 at 10:45:29AM +0100, Jon Hunter wrote:
>
> On 16/04/2020 14:21, Greg Kroah-Hartman wrote:
> > This is the start of the stable review cycle for the 5.6.5 release.
> > There are 254 patches in this series, all will be posted as a response
> > to this one. If anyone has any issues with these being applied, please
> > let me know.
> >
> > Responses should be made by Sat, 18 Apr 2020 13:11:20 +0000.
> > Anything received after that time might be too late.
> >
> > The whole patch series can be found in one patch at:
> > https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.6.5-rc1.gz
> > or in the git tree and branch at:
> > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.6.y
> > and the diffstat can be found below.
> >
> > thanks,
> >
> > greg k-h
>
> All tests are passing for Tegra ...
>
> Test results for stable-v5.6:
> 13 builds: 13 pass, 0 fail
> 24 boots: 24 pass, 0 fail
> 40 tests: 40 pass, 0 fail
>
> Linux version: 5.6.5-rc1-g576aa353744c
> Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,
> tegra194-p2972-0000, tegra20-ventana,
> tegra210-p2371-2180, tegra210-p3450-0000,
> tegra30-cardhu-a04
>

Thanks for testing all of these and letting me know.

greg k-h

2020-04-17 17:08:35

by Shuah Khan

[permalink] [raw]
Subject: Re: [PATCH 5.6 000/254] 5.6.5-rc1 review

On 4/17/20 2:38 AM, Greg Kroah-Hartman wrote:
> On Thu, Apr 16, 2020 at 03:35:35PM -0600, shuah wrote:
>> On 4/16/20 7:21 AM, Greg Kroah-Hartman wrote:
>>> This is the start of the stable review cycle for the 5.6.5 release.
>>> There are 254 patches in this series, all will be posted as a response
>>> to this one. If anyone has any issues with these being applied, please
>>> let me know.
>>>
>>> Responses should be made by Sat, 18 Apr 2020 13:11:20 +0000.
>>> Anything received after that time might be too late.
>>>
>>> The whole patch series can be found in one patch at:
>>> https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.6.5-rc1.gz
>>> or in the git tree and branch at:
>>> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.6.y
>>> and the diffstat can be found below.
>>>
>>> thanks,
>>>
>>> greg k-h
>>>
>>
>> Compiled and booted on my test system. No dmesg regressions.
>> reboot and poweroff hang forever. I saw this problem on
>> Linux 5.7rc1 as well.
>>
>> AMD Ryzen 5 PRO 2400GE
>>
>> I don't see this problem on Intel i7-8550U
>>
>> I haven't started debugging yet. I will have to go back and
>> check if it is introduced in 5.6.4-rc1. 5.6-3-rc2 is the last
>> good one.
>>
>> I will update you later on today with bisect data.
>
> Oh nice, we are bug-compatible with mainline :(
>

Okay success. I reverted it and Linux 5.6-rc1 no longer hangs
on reboot/poweroff

git bisect bad
a655a99c9f6a1d819d695fca6d48b450449f45ee is the first bad commit

Okay success. I reverted it and Linux 5.6-rc1 no longer hangs
on reboot/poweroff

I am building Linux 5.7-rc1 with this reverted now.

Details and full bisect log. I am building Linux 5.7-rc1 with
this reverted now.

commit a655a99c9f6a1d819d695fca6d48b450449f45ee
Author: Prike Liang <[email protected]>
Date: Tue Apr 7 20:21:26 2020 +0800

drm/amdgpu: fix gfx hang during suspend with video playback (v2)

[ Upstream commit 487eca11a321ef33bcf4ca5adb3c0c4954db1b58 ]

The system will be hang up during S3 suspend because of SMU is pending
for GC not respose the register CP_HQD_ACTIVE access request.This issue
root cause of accessing the GC register under enter GFX CGGPG and can
be fixed by disable GFX CGPG before perform suspend.

v2: Use disable the GFX CGPG instead of RLC safe mode guard.

Signed-off-by: Prike Liang <[email protected]>
Tested-by: Mengbing Wang <[email protected]>
Reviewed-by: Huang Rui <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Signed-off-by: Sasha Levin <[email protected]>

:040000 040000 95fb17ff249bfc19d8b65119fdcb5a4ced21d487
7a62a4762daedbb41f0eda5831a116ad2c2b8077 M drivers

Full bisect log:
git bisect start
# good: [0a27a29496060843ae3a8fe78aaec0062cbd5dfa] Linux 5.6.4
git bisect good 0a27a29496060843ae3a8fe78aaec0062cbd5dfa
# bad: [576aa353744ce5f1279071363e4a55e97f486f39] Linux 5.6.5-rc1
git bisect bad 576aa353744ce5f1279071363e4a55e97f486f39
# good: [7509db5d111a5763a199902052eecc480e0ec724] x86/tsc_msr: Make MSR
derived TSC frequency more accurate
git bisect good 7509db5d111a5763a199902052eecc480e0ec724
# good: [15f1ead7d7966d087352ba2cf81a1759b25ad163] scsi: lpfc: Fix
broken Credit Recovery after driver load
git bisect good 15f1ead7d7966d087352ba2cf81a1759b25ad163
# good: [9e52b4ab5fadd803c8c2e617aa8c151720757fb1] s390/diag: fix
display of diagnose call statistics
git bisect good 9e52b4ab5fadd803c8c2e617aa8c151720757fb1
# good: [3e1e6903924fd6c95db7e46c5baa41dfa0f46fdb]
powerpc/hash64/devmap: Use H_PAGE_THP_HUGE when setting up huge devmap
PTE entries
git bisect good 3e1e6903924fd6c95db7e46c5baa41dfa0f46fdb
# good: [0344e0fee2f904ebce1d58bec8ace3ee9cf5f777] drm/dp_mst: Fix
clearing payload state on topology disable
git bisect good 0344e0fee2f904ebce1d58bec8ace3ee9cf5f777
# bad: [136881c0420bb52d5f21f75688f5aee1cf401737] perf/core: Unify
{pinned,flexible}_sched_in()
git bisect bad 136881c0420bb52d5f21f75688f5aee1cf401737
# bad: [0d928b424b99cfe0e7806c530f6039a053d5082d] drm/i915/ggtt: do not
set bits 1-11 in gen12 ptes
git bisect bad 0d928b424b99cfe0e7806c530f6039a053d5082d
# bad: [a655a99c9f6a1d819d695fca6d48b450449f45ee] drm/amdgpu: fix gfx
hang during suspend with video playback (v2)
git bisect bad a655a99c9f6a1d819d695fca6d48b450449f45ee
# first bad commit: [a655a99c9f6a1d819d695fca6d48b450449f45ee]
drm/amdgpu: fix gfx hang during suspend with video playback (v2)

thanks,
-- Shuah