[PATCH 5.3 047/166] powerpc/eeh: Clear stale EEH_DEV_NO_HANDLER flag

2019-10-06 Thread Greg Kroah-Hartman
From: Sam Bobroff [ Upstream commit aa06e3d60e245284d1e55497eb3108828092818d ] The EEH_DEV_NO_HANDLER flag is used by the EEH system to prevent the use of driver callbacks in drivers that have been bound part way through the recovery process. This is necessary to prevent later stage handlers

[PATCH 5.3 013/166] drm/stm: attach gem fence to atomic state

2019-10-06 Thread Greg Kroah-Hartman
From: Ahmad Fatoum [ Upstream commit 8fabc9c3109a71b3577959a05408153ae69ccd8d ] To properly synchronize with other devices the fence from the GEM object backing the framebuffer needs to be attached to the atomic state, so the commit work can wait on fence signaling. Signed-off-by: Ahmad Fatoum

[PATCH 5.3 012/166] drm/tinydrm/Kconfig: drivers: Select BACKLIGHT_CLASS_DEVICE

2019-10-06 Thread Greg Kroah-Hartman
From: Noralf Trønnes [ Upstream commit 3389669ac5ea598562673c04971d7bb0fab0e9f1 ] The mipi_dbi helper is missing a dependency on DRM_KMS_HELPER and putting that in revealed this problem: drivers/video/fbdev/Kconfig:12:error: recursive dependency detected! drivers/video/fbdev/Kconfig:12: symbol

[PATCH 5.3 011/166] video: ssd1307fb: Start page range at page_offset

2019-10-06 Thread Greg Kroah-Hartman
From: Marko Kohtala [ Upstream commit dd9782834dd9dde3624ff1acea8859f3d3e792d4 ] The page_offset was only applied to the end of the page range. This caused the display updates to cause a scrolling effect on the display because the amount of data written to the display did not match the range

[PATCH 5.2 110/137] PCI: rockchip: Propagate errors for optional regulators

2019-10-06 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit 0e3ff0ac5f71bdb6be2a698de0ed0c7e6e738269 ] regulator_get_optional() can fail for a number of reasons besides probe deferral. It can for example return -ENOMEM if it runs out of memory as it tries to allocate data structures. Propagating only -EPROBE_DEFER

[PATCH 5.2 130/137] Smack: Dont ignore other bprm->unsafe flags if LSM_UNSAFE_PTRACE is set

2019-10-06 Thread Greg Kroah-Hartman
From: Jann Horn commit 3675f052b43ba51b99b85b073c7070e083f3e6fb upstream. There is a logic bug in the current smack_bprm_set_creds(): If LSM_UNSAFE_PTRACE is set, but the ptrace state is deemed to be acceptable (e.g. because the ptracer detached in the meantime), the other ->unsafe flags aren't

[PATCH 5.2 100/137] livepatch: Nullify obj->mod in klp_module_coming()s error path

2019-10-06 Thread Greg Kroah-Hartman
From: Miroslav Benes [ Upstream commit 4ff96fb52c6964ad42e0a878be8f86a2e8052ddd ] klp_module_coming() is called for every module appearing in the system. It sets obj->mod to a patched module for klp_object obj. Unfortunately it leaves it set even if an error happens later in the function and

[PATCH 5.2 119/137] pktcdvd: remove warning on attempting to register non-passthrough dev

2019-10-06 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit eb09b3cc464d2c3bbde9a6648603c8d599ea8582 ] Anatoly reports that he gets the below warning when booting -git on a sparc64 box on debian unstable: ... [ 13.352975] aes_sparc64: Using sparc64 aes opcodes optimized AES implementation [ 13.428002]

[PATCH 5.2 106/137] rtc: pcf85363/pcf85263: fix regmap error in set_time

2019-10-06 Thread Greg Kroah-Hartman
From: Biwen Li [ Upstream commit 7ef66122bdb3b839e9f51b76d7e600b6e21ef648 ] Issue: - # hwclock -w hwclock: RTC_SET_TIME: Invalid argument Why: - Relative commit: 8b9f9d4dc511 ("regmap: verify if register is writeable before writing operations"), this patch will always

[PATCH 5.2 085/137] clk: sprd: add missing kfree

2019-10-06 Thread Greg Kroah-Hartman
From: Chunyan Zhang [ Upstream commit 5e75ea9c67433a065b0e8595ad3c91c7c0ca0d2d ] The number of config registers for different pll clocks probably are not same, so we have to use malloc, and should free the memory before return. Fixes: 3e37b005580b ("clk: sprd: add adjustable pll support")

[PATCH 5.2 107/137] selinux: fix residual uses of current_security() for the SELinux blob

2019-10-06 Thread Greg Kroah-Hartman
From: Stephen Smalley [ Upstream commit 169ce0c081cd85f78388bb6c1638c1ad7b81bde7 ] We need to use selinux_cred() to fetch the SELinux cred blob instead of directly using current->security or current_security(). There were a couple of lingering uses of current_security() in the SELinux code

[PATCH 5.2 102/137] ARM: 8898/1: mm: Dont treat faults reported from cache maintenance as writes

2019-10-06 Thread Greg Kroah-Hartman
From: Will Deacon [ Upstream commit 834020366da9ab3fb87d1eb9a3160eb22dbed63a ] Translation faults arising from cache maintenance instructions are rather unhelpfully reported with an FSR value where the WnR field is set to 1, indicating that the faulting access was a write. Since cache

[PATCH 5.3 015/166] drm/panel: check failure cases in the probe func

2019-10-06 Thread Greg Kroah-Hartman
From: Navid Emamdoost [ Upstream commit afd6d4f5a52c16e1483328ac074abb1cde92c29f ] The following function calls may fail and return NULL, so the null check is added. of_graph_get_next_endpoint of_graph_get_remote_port_parent of_graph_get_remote_port Update: Thanks to Sam Ravnborg, for

[PATCH 5.2 104/137] ARM: 8875/1: Kconfig: default to AEABI w/ Clang

2019-10-06 Thread Greg Kroah-Hartman
From: Nick Desaulniers [ Upstream commit a05b9608456e0d4464c6f7ca8572324ace57a3f4 ] Clang produces references to __aeabi_uidivmod and __aeabi_idivmod for arm-linux-gnueabi and arm-linux-gnueabihf targets incorrectly when AEABI is not selected (such as when OABI_COMPAT is selected). While this

[PATCH 5.2 083/137] powerpc: dump kernel log before carrying out fadump or kdump

2019-10-06 Thread Greg Kroah-Hartman
From: Ganesh Goudar [ Upstream commit e7ca44ed3ba77fc26cf32650bb71584896662474 ] Since commit 4388c9b3a6ee ("powerpc: Do not send system reset request through the oops path"), pstore dmesg file is not updated when dump is triggered from HMC. This commit modified system reset (sreset) handler to

[PATCH 5.2 133/137] NFC: fix attrs checks in netlink interface

2019-10-06 Thread Greg Kroah-Hartman
From: Andrey Konovalov commit 18917d51472fe3b126a3a8f756c6b18085eb8130 upstream. nfc_genl_deactivate_target() relies on the NFC_ATTR_TARGET_INDEX attribute being present, but doesn't check whether it is actually provided by the user. Same goes for nfc_genl_fw_download() and

[PATCH 5.2 101/137] mips/atomic: Fix smp_mb__{before,after}_atomic()

2019-10-06 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 42344113ba7a1ed7b5654cd5270af0d5698d8521 ] Recent probing at the Linux Kernel Memory Model uncovered a 'surprise'. Strongly ordered architectures where the atomic RmW primitive implies full memory ordering and smp_mb__{before,after}_atomic() are a simple

[PATCH 5.2 123/137] ocfs2: wait for recovering done after direct unlock request

2019-10-06 Thread Greg Kroah-Hartman
From: Changwei Ge [ Upstream commit 0a3775e4f883912944481cf2ef36eb6383a9cc74 ] There is a scenario causing ocfs2 umount hang when multiple hosts are rebooting at the same time. NODE1 NODE2 NODE3 send unlock requset to NODE2

[PATCH 5.2 129/137] soundwire: fix regmap dependencies and align with other serial links

2019-10-06 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart [ Upstream commit 8676b3ca4673517650fd509d7fa586aff87b3c28 ] The existing code has a mixed select/depend usage which makes no sense. config SOUNDWIRE_BUS tristate select REGMAP_SOUNDWIRE config REGMAP_SOUNDWIRE tristate depends on

[PATCH 5.2 120/137] hypfs: Fix error number left in struct pointer member

2019-10-06 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit b54c64f7adeb241423cd46598f458b5486b0375e ] In hypfs_fill_super(), if hypfs_create_update_file() fails, sbi->update_file is left holding an error number. This is passed to hypfs_kill_super() which doesn't check for this. Fix this by not setting

[PATCH 5.2 117/137] ARM: 8903/1: ensure that usable memory in bank 0 starts from a PMD-aligned address

2019-10-06 Thread Greg Kroah-Hartman
From: Mike Rapoport [ Upstream commit 00d2ec1e6bd82c0538e6dd3e4a4040de93ba4fef ] The calculation of memblock_limit in adjust_lowmem_bounds() assumes that bank 0 starts from a PMD-aligned address. However, the beginning of the first bank may be NOMAP memory and the start of usable memory will be

[PATCH 5.2 111/137] PCI: histb: Propagate errors for optional regulators

2019-10-06 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit 8f9e1641ba445437095411d9fda2324121110d5d ] regulator_get_optional() can fail for a number of reasons besides probe deferral. It can for example return -ENOMEM if it runs out of memory as it tries to allocate data structures. Propagating only -EPROBE_DEFER

[PATCH 5.2 122/137] kbuild: clean compressed initramfs image

2019-10-06 Thread Greg Kroah-Hartman
From: Greg Thelen [ Upstream commit 6279eb3dd7946c69346a3b98473ed13d3a44adb5 ] Since 9e3596b0c653 ("kbuild: initramfs cleanup, set target from Kconfig") "make clean" leaves behind compressed initramfs images. Example: $ make defconfig $ sed -i

[PATCH 5.2 105/137] rtc: snvs: fix possible race condition

2019-10-06 Thread Greg Kroah-Hartman
From: Anson Huang [ Upstream commit 6fd4fe9b496d9ba3382992ff4fde3871d1b6f63d ] The RTC IRQ is requested before the struct rtc_device is allocated, this may lead to a NULL pointer dereference in IRQ handler. To fix this issue, allocating the rtc_device struct before requesting the RTC IRQ using

[PATCH 5.2 118/137] fat: work around race with userspaces read via blockdev while mounting

2019-10-06 Thread Greg Kroah-Hartman
From: OGAWA Hirofumi [ Upstream commit 07bfa4415ab607e459b69bd86aa7e7602ce10b4f ] If userspace reads the buffer via blockdev while mounting, sb_getblk()+modify can race with buffer read via blockdev. For example, FS userspace bh = sb_getblk()

[PATCH 5.2 115/137] PCI: Use static const struct, not const static struct

2019-10-06 Thread Greg Kroah-Hartman
From: Krzysztof Wilczynski [ Upstream commit 8050f3f6645ae0f7e4c1304593f6f7eb2ee7d85c ] Move the static keyword to the front of declarations of pci_regs_behavior[] and pcie_cap_regs_behavior[], which resolves compiler warnings when building with "W=1": drivers/pci/pci-bridge-emul.c:41:1:

[PATCH 5.3 010/166] drm/amd/display: Copy GSL groups when committing a new context

2019-10-06 Thread Greg Kroah-Hartman
From: Nicholas Kazlauskas [ Upstream commit 21ffcc94d5b3dc024fedac700f1e7f9dacf4ab4f ] [Why] DC configures the GSL group for the pipe when pipe_split is enabled and we're switching flip types (buffered <-> immediate flip) on DCN2. In order to record what GSL group the pipe is using DC stores

[PATCH 5.2 116/137] ARM: 8905/1: Emit __gnu_mcount_nc when using Clang 10.0.0 or newer

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit b0fe66cf095016e0b238374c10ae366e1f087d11 ] Currently, multi_v7_defconfig + CONFIG_FUNCTION_TRACER fails to build with clang: arm-linux-gnueabi-ld: kernel/softirq.o: in function `_local_bh_enable': softirq.c:(.text+0x504): undefined reference to

[PATCH 5.2 092/137] MIPS: tlbex: Explicitly cast _PAGE_NO_EXEC to a boolean

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit c59ae0a1055127dd3828a88e111a0db59b254104 ] clang warns: arch/mips/mm/tlbex.c:634:19: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] if (cpu_has_rixi && _PAGE_NO_EXEC) { ^

[PATCH 5.3 021/166] clk: imx8mq: Mark AHB clock as critical

2019-10-06 Thread Greg Kroah-Hartman
From: Abel Vesa [ Upstream commit 9b9c60bed562c3718ae324a86f3f30a4ff983cf8 ] Initially, the TMU_ROOT clock was marked as critical, which automatically made the AHB clock to stay always on. Since the TMU_ROOT clock is not marked as critical anymore, following commit: "clk: imx8mq: Remove

[PATCH 5.2 131/137] smack: use GFP_NOFS while holding inode_smack::smk_lock

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Biggers commit e5bfad3d7acc5702f32aafeb388362994f4d7bd0 upstream. inode_smack::smk_lock is taken during smack_d_instantiate(), which is called during a filesystem transaction when creating a file on ext4. Therefore to avoid a deadlock, all code that takes this lock must use GFP_NOFS,

[PATCH 5.3 025/166] clk: qoriq: Fix -Wunused-const-variable

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Huckleberry [ Upstream commit a95fb581b144b5e73da382eaedb2e32027610597 ] drivers/clk/clk-qoriq.c:138:38: warning: unused variable 'p5020_cmux_grp1' [-Wunused-const-variable] static const struct clockgen_muxinfo p5020_cmux_grp1 drivers/clk/clk-qoriq.c:146:38: warning: unused

[PATCH 5.3 002/166] drm/mcde: Fix uninitialized variable

2019-10-06 Thread Greg Kroah-Hartman
From: Linus Walleij [ Upstream commit ca5be902a87ddccc88144f2dea21b5f0814391ef ] We need to handle the case when of_drm_find_bridge() returns NULL. Reported-by: Dan Carpenter Acked-by: Dan Carpenter Signed-off-by: Linus Walleij Link:

[PATCH 5.2 137/137] vfs: set fs_context::user_ns for reconfigure

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Biggers commit 1dd9bc08cf1420d466dd8dcfcc233777e61ca5d2 upstream. fs_context::user_ns is used by fuse_parse_param(), even during remount, so it needs to be set to the existing value for reconfigure. Reproducer: #include #include int main() {

[PATCH 5.2 136/137] 9p/cache.c: Fix memory leak in v9fs_cache_session_get_cookie

2019-10-06 Thread Greg Kroah-Hartman
From: Bharath Vedartham commit 962a991c5de18452d6c429d99f3039387cf5cbb0 upstream. v9fs_cache_session_get_cookie assigns a random cachetag to v9ses->cachetag, if the cachetag is not assigned previously. v9fs_random_cachetag allocates memory to v9ses->cachetag with kmalloc and uses scnprintf to

[PATCH 5.3 017/166] drm/amdgpu: Fix hard hang for S/G display BOs.

2019-10-06 Thread Greg Kroah-Hartman
From: Andrey Grodzovsky [ Upstream commit e4c4073b0139d055d43a9568690fc560aab4fa5c ] HW requires for caching to be unset for scanout BO mappings when the BO placement is in GTT memory. Usually the flag to unset is passed from user mode but for FB mode this was missing. v2: Keep all BO

[PATCH 5.2 127/137] arm: properly account for stack randomization and stack guard gap

2019-10-06 Thread Greg Kroah-Hartman
From: Alexandre Ghiti [ Upstream commit af0f4297286f13a75edf93677b1fb2fc16c412a7 ] This commit takes care of stack randomization and stack guard gap when computing mmap base address and checks if the task asked for randomization. This fixes the problem uncovered and not fixed for arm here:

[PATCH 5.2 125/137] arm64: consider stack randomization for mmap base only when necessary

2019-10-06 Thread Greg Kroah-Hartman
From: Alexandre Ghiti [ Upstream commit e8d54b62c55ab6201de6d195fc2c276294c1f6ae ] Do not offset mmap base address because of stack randomization if current task does not want randomization. Note that x86 already implements this behaviour. Link:

[PATCH 5.2 088/137] f2fs: fix to drop meta/node pages during umount

2019-10-06 Thread Greg Kroah-Hartman
From: Chao Yu [ Upstream commit a8933b6b68f775b5774e7b075447fae13f4d01fe ] As reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204193 A null pointer dereference bug is triggered in f2fs under kernel-5.1.3. kasan_report.cold+0x5/0x32 f2fs_write_end_io+0x215/0x650

[PATCH 5.2 089/137] ext4: fix potential use after free after remounting with noblock_validity

2019-10-06 Thread Greg Kroah-Hartman
From: zhangyi (F) [ Upstream commit 7727ae52975d4f4ef7ff69ed8e6e25f6a4168158 ] Remount process will release system zone which was allocated before if "noblock_validity" is specified. If we mount an ext4 file system to two mountpoints with default mount options, and then remount one of them with

[PATCH 5.2 135/137] KVM: hyperv: Fix Direct Synthetic timers assert an interrupt w/o lapic_in_kernel

2019-10-06 Thread Greg Kroah-Hartman
From: Wanpeng Li commit a073d7e3ad687a7ef32b65affe80faa7ce89bf92 upstream. Reported by syzkaller: kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] PREEMPT SMP KASAN RIP: 0010:__apic_accept_irq+0x46/0x740

[PATCH 5.2 090/137] MIPS: Ingenic: Disable broken BTB lookup optimization.

2019-10-06 Thread Greg Kroah-Hartman
From: Zhou Yanjie [ Upstream commit 053951dda71ecb4b554a2cdbe26f5f6f9bee9dd2 ] In order to further reduce power consumption, the XBurst core by default attempts to avoid branch target buffer lookups by detecting & special casing loops. This feature will cause BogoMIPS and lpj calculate in

[PATCH 5.2 128/137] arm: use STACK_TOP when computing mmap base address

2019-10-06 Thread Greg Kroah-Hartman
From: Alexandre Ghiti [ Upstream commit 86e568e9c0525fc40e76d827212d5e9721cf7504 ] mmap base address must be computed wrt stack top address, using TASK_SIZE is wrong since STACK_TOP and TASK_SIZE are not equivalent. Link: http://lkml.kernel.org/r/20190730055113.23635-8-a...@ghiti.fr

[PATCH 5.2 124/137] kmemleak: increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K

2019-10-06 Thread Greg Kroah-Hartman
From: Nicolas Boichat [ Upstream commit b751c52bb587ae66f773b15204ef7a147467f4c7 ] The current default value (400) is too low on many systems (e.g. some ARM64 platform takes up 1000+ entries). syzbot uses 16000 as default value, and has proved to be enough on beefy configurations, so let's

[PATCH 5.2 112/137] PCI: imx6: Propagate errors for optional regulators

2019-10-06 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit 2170a09fb4b0f66e06e5bcdcbc98c9ccbf353650 ] regulator_get_optional() can fail for a number of reasons besides probe deferral. It can for example return -ENOMEM if it runs out of memory as it tries to allocate data structures. Propagating only -EPROBE_DEFER

[PATCH 5.2 086/137] scsi: core: Reduce memory required for SCSI logging

2019-10-06 Thread Greg Kroah-Hartman
From: Bart Van Assche [ Upstream commit dccc96abfb21dc19d69e707c38c8ba439bba7160 ] The data structure used for log messages is so large that it can cause a boot failure. Since allocations from that data structure can fail anyway, use kmalloc() / kfree() instead of that data structure. See also

[PATCH 5.2 096/137] HID: wacom: Fix several minor compiler warnings

2019-10-06 Thread Greg Kroah-Hartman
From: Jason Gerecke [ Upstream commit 073b50bccbbf99a3b79a1913604c656d0e1a56c9 ] Addresses a few issues that were noticed when compiling with non-default warnings enabled. The trimmed-down warnings in the order they are fixed below are: * declaration of 'size' shadows a parameter * '%s'

[PATCH 5.2 099/137] PCI: layerscape: Add the bar_fixed_64bit property to the endpoint driver

2019-10-06 Thread Greg Kroah-Hartman
From: Xiaowei Bao [ Upstream commit fd5d16531a39322c3d7433d9f8a36203c9aaeddc ] The layerscape PCIe controller have 4 BARs. BAR0 and BAR1 are 32bit, BAR2 and BAR4 are 64bit and that's a fixed hardware configuration. Set the bar_fixed_64bit variable accordingly. Signed-off-by: Xiaowei Bao

[PATCH 5.2 097/137] mips/atomic: Fix loongson_llsc_mb() wreckage

2019-10-06 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 1c6c1ca318585f1096d4d04bc722297c85e9fb8a ] The comment describing the loongson_llsc_mb() reorder case doesn't make any sense what so ever. Instruction re-ordering is not an SMP artifact, but rather a CPU local phenomenon. Clarify the comment by explaining

[PATCH 5.2 095/137] PCI: tegra: Fix OF node reference leak

2019-10-06 Thread Greg Kroah-Hartman
From: Nishka Dasgupta [ Upstream commit 9e38e690ace3e7a22a81fc02652fc101efb340cf ] Each iteration of for_each_child_of_node() executes of_node_put() on the previous node, but in some return paths in the middle of the loop of_node_put() is missing thus causing a reference leak. Hence stash

[PATCH 5.2 094/137] mfd: intel-lpss: Remove D3cold delay

2019-10-06 Thread Greg Kroah-Hartman
From: Kai-Heng Feng [ Upstream commit 76380a607ba0b28627c9b4b55cd47a079a59624b ] Goodix touchpad may drop its first couple input events when i2c-designware-platdrv and intel-lpss it connects to took too long to runtime resume from runtime suspended state. This issue happens becuase the

[PATCH 5.2 082/137] clk: Make clk_bulk_get_all() return a valid "id"

2019-10-06 Thread Greg Kroah-Hartman
From: Bjorn Andersson [ Upstream commit 7f81c2426587b34bf73e643c1a6d080dfa14cf8a ] The adreno driver expects the "id" field of the returned clk_bulk_data to be filled in with strings from the clock-names property. But due to the use of kmalloc_array() in of_clk_bulk_get_all() it receives a

[PATCH 5.2 044/137] clk: sunxi-ng: v3s: add missing clock slices for MMC2 module clocks

2019-10-06 Thread Greg Kroah-Hartman
From: Icenowy Zheng [ Upstream commit 720099603d1f62e37b789366d7e89824b009ca28 ] The MMC2 clock slices are currently not defined in V3s CCU driver, which makes MMC2 not working. Fix this issue. Fixes: d0f11d14b0bc ("clk: sunxi-ng: add support for V3s CCU") Signed-off-by: Icenowy Zheng

[PATCH 5.2 080/137] clk: imx: pll14xx: avoid glitch when set rate

2019-10-06 Thread Greg Kroah-Hartman
From: Peng Fan [ Upstream commit dee1bc9c23cd41fe32549c0adbe6cb57cab02282 ] According to PLL1443XA and PLL1416X spec, "When BYPASS is 0 and RESETB is changed from 0 to 1, FOUT starts to output unstable clock until lock time passes. PLL1416X/PLL1443XA may generate a glitch at FOUT." So set

[PATCH 5.2 081/137] clk: imx: clk-pll14xx: unbypass PLL by default

2019-10-06 Thread Greg Kroah-Hartman
From: Peng Fan [ Upstream commit a9aa8306074d9519dd6e5fdf07240b01bac72e04 ] When registering the PLL, unbypass the PLL. The PLL has two bypass control bit, BYPASS and EXT_BYPASS. we will expose EXT_BYPASS to clk driver for mux usage, and keep BYPASS inside pll14xx usage. The PLL has a

[PATCH 5.2 042/137] ipmi_si: Only schedule continuously in the thread in maintenance mode

2019-10-06 Thread Greg Kroah-Hartman
From: Corey Minyard [ Upstream commit 340ff31ab00bca5c15915e70ad9ada3030c98cf8 ] ipmi_thread() uses back-to-back schedule() to poll for command completion which, on some machines, can push up CPU consumption and heavily tax the scheduler locks leading to noticeable overall performance

[PATCH 5.2 077/137] mailbox: mediatek: cmdq: clear the event in cmdq initial flow

2019-10-06 Thread Greg Kroah-Hartman
From: Bibby Hsieh [ Upstream commit 6058f11870b8e6d4f5cc7b591097c00bf69a000d ] GCE hardware stored event information in own internal sysram, if the initial value in those sysram is not zero value it will cause a situation that gce can wait the event immediately after client ask gce to wait

[PATCH 5.2 036/137] drm/amdgpu: Fix hard hang for S/G display BOs.

2019-10-06 Thread Greg Kroah-Hartman
From: Andrey Grodzovsky [ Upstream commit e4c4073b0139d055d43a9568690fc560aab4fa5c ] HW requires for caching to be unset for scanout BO mappings when the BO placement is in GTT memory. Usually the flag to unset is passed from user mode but for FB mode this was missing. v2: Keep all BO

[PATCH 5.2 074/137] clk: qcom: gcc-sdm845: Use floor ops for sdcc clks

2019-10-06 Thread Greg Kroah-Hartman
From: Stephen Boyd [ Upstream commit 5e4b7e82d497580bc430576c4c9bce157dd72512 ] Some MMC cards fail to enumerate properly when inserted into an MMC slot on sdm845 devices. This is because the clk ops for qcom clks round the frequency up to the nearest rate instead of down to the nearest rate.

[PATCH 5.2 041/137] pinctrl: stmfx: update pinconf settings

2019-10-06 Thread Greg Kroah-Hartman
From: Alexandre Torgue [ Upstream commit a502b343ebd0eab38f3cb33fbb84011847cf5aac ] According to the following tab (coming from STMFX datasheet), updates have to done in stmfx_pinconf_set function: -"type" has to be set when "bias" is configured as "pull-up or pull-down"

[PATCH 5.2 076/137] pinctrl: meson-gxbb: Fix wrong pinning definition for uart_c

2019-10-06 Thread Greg Kroah-Hartman
From: Otto Meier [ Upstream commit cb0438e4436085d89706b5ccfce4d5da531253de ] Hi i tried to use the uart_C of the the odroid-c2. I enabled it in the dts file. During boot it crashed when the the sdcard slot is addressed. After long search in the net i found this:

[PATCH 5.2 040/137] PCI: rpaphp: Avoid a sometimes-uninitialized warning

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit 0df3e42167caaf9f8c7b64de3da40a459979afe8 ] When building with -Wsometimes-uninitialized, clang warns: drivers/pci/hotplug/rpaphp_core.c:243:14: warning: variable 'fndit' is used uninitialized whenever 'for' loop exits because its condition is false

[PATCH 5.2 068/137] drm/amd/display: support spdif

2019-10-06 Thread Greg Kroah-Hartman
From: Charlene Liu [ Upstream commit b5a41620bb88efb9fb31a4fa5e652e3d5bead7d4 ] [Description] port spdif fix to staging: spdif hardwired to afmt inst 1. spdif func pointer spdif resource allocation (reserve last audio endpoint for spdif only) Signed-off-by: Charlene Liu Reviewed-by: Dmytro

[PATCH 5.2 067/137] clk: renesas: cpg-mssr: Set GENPD_FLAG_ALWAYS_ON for clock domain

2019-10-06 Thread Greg Kroah-Hartman
From: Geert Uytterhoeven [ Upstream commit f787216f33ce5b5a2567766398f44ab62157114c ] The CPG/MSSR Clock Domain driver does not implement the generic_pm_domain.power_{on,off}() callbacks, as the domain itself cannot be powered down. Hence the domain should be marked as always-on by setting the

[PATCH 5.2 065/137] pinctrl: amd: disable spurious-firing GPIO IRQs

2019-10-06 Thread Greg Kroah-Hartman
From: Daniel Drake [ Upstream commit d21b8adbd475dba19ac2086d3306327b4a297418 ] When cold-booting Asus X434DA, GPIO 7 is found to be already configured as an interrupt, and the GPIO level is found to be in a state that causes the interrupt to fire. As soon as pinctrl-amd probes, this interrupt

[PATCH 5.2 051/137] clk: meson: axg-audio: Dont reference clk_init_data after registration

2019-10-06 Thread Greg Kroah-Hartman
From: Stephen Boyd [ Upstream commit 1610dd79d0f6202c5c1a91122255fa598679c13a ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer

[PATCH 5.2 073/137] powerpc/eeh: Clean up EEH PEs after recovery finishes

2019-10-06 Thread Greg Kroah-Hartman
From: Oliver O'Halloran [ Upstream commit 799abe283e5103d48e079149579b4f167c95ea0e ] When the last device in an eeh_pe is removed the eeh_pe structure itself (and any empty parents) are freed since they are no longer needed. This results in a crash when a hotplug driver is involved since the

[PATCH 5.2 039/137] clk: imx8mq: Mark AHB clock as critical

2019-10-06 Thread Greg Kroah-Hartman
From: Abel Vesa [ Upstream commit 9b9c60bed562c3718ae324a86f3f30a4ff983cf8 ] Initially, the TMU_ROOT clock was marked as critical, which automatically made the AHB clock to stay always on. Since the TMU_ROOT clock is not marked as critical anymore, following commit: "clk: imx8mq: Remove

[PATCH 5.2 063/137] drm/nouveau/kms/tu102-: disable input lut when input is already FP16

2019-10-06 Thread Greg Kroah-Hartman
From: Ben Skeggs [ Upstream commit 1e339ab2ac3c769c1b06b9fb7d532f8495ebc56d ] On Turing, an input LUT is required to transform inputs in fixed-point formats to FP16 for the internal display pipe. We provide an identity mapping whenever a window is enabled for this reason. HW has error checks

[PATCH 5.2 062/137] vfio_pci: Restore original state on release

2019-10-06 Thread Greg Kroah-Hartman
From: hexin [ Upstream commit 92c8026854c25093946e0d7fe536fd9eac440f06 ] vfio_pci_enable() saves the device's initial configuration information with the intent that it is restored in vfio_pci_disable(). However, the commit referenced in Fixes: below replaced the call to

[PATCH 5.2 064/137] drm/nouveau/volt: Fix for some cards having 0 maximum voltage

2019-10-06 Thread Greg Kroah-Hartman
From: Mark Menzynski [ Upstream commit a1af2afbd244089560794c260b2d4326a86e39b6 ] Some, mostly Fermi, vbioses appear to have zero max voltage. That causes Nouveau to not parse voltage entries, thus users not being able to set higher clocks. When changing this value Nvidia driver still

[PATCH 5.2 000/137] 5.2.20-stable review

2019-10-06 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.2.20 release. There are 137 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 Tue 08 Oct 2019 05:07:10 PM UTC. Anything

[PATCH 5.2 059/137] powerpc/perf: fix imc allocation failure handling

2019-10-06 Thread Greg Kroah-Hartman
From: Nicholas Piggin [ Upstream commit 10c4bd7cd28e77aeb8cfa65b23cb3c632ede2a49 ] The alloc_pages_node return value should be tested for failure before being passed to page_address. Tested-by: Anju T Sudhakar Signed-off-by: Nicholas Piggin Reviewed-by: Aneesh Kumar K.V Signed-off-by:

[PATCH 5.2 047/137] drm/amd/display: reprogram VM config when system resume

2019-10-06 Thread Greg Kroah-Hartman
From: Lewis Huang [ Upstream commit e5382701c3520b3ed66169a6e4aa6ce5df8c56e0 ] [Why] The vm config will be clear to 0 when system enter S4. It will cause hubbub didn't know how to fetch data when system resume. The flip always pending because earliest_inuse_address and request_address are

[PATCH 5.2 057/137] powerpc/64s/radix: Fix memory hotplug section page table creation

2019-10-06 Thread Greg Kroah-Hartman
From: Nicholas Piggin [ Upstream commit 8f51e3929470942e6a8744061254fdeef646cd36 ] create_physical_mapping expects physical addresses, but creating and splitting these mappings after boot is supplying virtual (effective) addresses. This can be irritated by booting with mem= to limit memory then

[PATCH 5.2 054/137] powerpc/xmon: Check for HV mode when dumping XIVE info from OPAL

2019-10-06 Thread Greg Kroah-Hartman
From: Cédric Le Goater [ Upstream commit c3e0dbd7f780a58c4695f1cd8fc8afde80376737 ] Currently, the xmon 'dx' command calls OPAL to dump the XIVE state in the OPAL logs and also outputs some of the fields of the internal XIVE structures in Linux. The OPAL calls can only be done on baremetal

[PATCH 5.2 061/137] powerpc/eeh: Clear stale EEH_DEV_NO_HANDLER flag

2019-10-06 Thread Greg Kroah-Hartman
From: Sam Bobroff [ Upstream commit aa06e3d60e245284d1e55497eb3108828092818d ] The EEH_DEV_NO_HANDLER flag is used by the EEH system to prevent the use of driver callbacks in drivers that have been bound part way through the recovery process. This is necessary to prevent later stage handlers

[PATCH 5.2 055/137] powerpc/rtas: use device model APIs and serialization during LPM

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Lynch [ Upstream commit a6717c01ddc259f6f73364779df058e2c67309f8 ] The LPAR migration implementation and userspace-initiated cpu hotplug can interleave their executions like so: 1. Set cpu 7 offline via sysfs. 2. Begin a partition migration, whose implementation requires the OS

Re: x86/random: Speculation to the rescue

2019-10-06 Thread Pavel Machek
On Sun 2019-10-06 10:26:18, Linus Torvalds wrote: > On Sun, Oct 6, 2019 at 4:41 AM Pavel Machek wrote: > > > > Should we have some kind of notifier chain, so that we could utilize > > better random sources (spinning rust) if we had them? > > The spinning rust will get entropy on its own just

[PATCH 5.2 056/137] powerpc/futex: Fix warning: oldval may be used uninitialized in this function

2019-10-06 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit 38a0d0cdb46d3f91534e5b9839ec2d67be14c59d ] We see warnings such as: kernel/futex.c: In function 'do_futex': kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg;

[PATCH 5.2 048/137] powerpc/powernv/ioda2: Allocate TCE table levels on demand for default DMA window

2019-10-06 Thread Greg Kroah-Hartman
From: Alexey Kardashevskiy [ Upstream commit c37c792dec0929dbb6360a609fb00fa20bb16fc2 ] We allocate only the first level of multilevel TCE tables for KVM already (alloc_userspace_copy==true), and the rest is allocated on demand. This is not enabled though for bare metal. This removes the KVM

[PATCH 5.2 060/137] pinctrl: tegra: Fix write barrier placement in pmx_writel

2019-10-06 Thread Greg Kroah-Hartman
From: Sowjanya Komatineni [ Upstream commit c2cf351eba2ff6002ce8eb178452219d2521e38e ] pmx_writel uses writel which inserts write barrier before the register write. This patch has fix to replace writel with writel_relaxed followed by a readback and memory barrier to ensure write operation is

[PATCH 5.2 050/137] clk: sirf: Dont reference clk_init_data after registration

2019-10-06 Thread Greg Kroah-Hartman
From: Stephen Boyd [ Upstream commit af55dadfbce35b4f4c6247244ce3e44b2e242b84 ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer

[PATCH 5.2 032/137] drm/tinydrm/Kconfig: drivers: Select BACKLIGHT_CLASS_DEVICE

2019-10-06 Thread Greg Kroah-Hartman
From: Noralf Trønnes [ Upstream commit 3389669ac5ea598562673c04971d7bb0fab0e9f1 ] The mipi_dbi helper is missing a dependency on DRM_KMS_HELPER and putting that in revealed this problem: drivers/video/fbdev/Kconfig:12:error: recursive dependency detected! drivers/video/fbdev/Kconfig:12: symbol

[PATCH 5.2 004/137] ipv6: drop incoming packets having a v4mapped source address

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 6af1799aaf3f1bc8defedddfa00df3192445bbf3 ] This began with a syzbot report. syzkaller was injecting IPv6 TCP SYN packets having a v4mapped source address. After an unsuccessful 4-tuple lookup, TCP creates a request socket (SYN_RECV) and calls

[PATCH 5.2 009/137] net: Unpublish sk from sk_reuseport_cb before call_rcu

2019-10-06 Thread Greg Kroah-Hartman
From: Martin KaFai Lau [ Upstream commit 8c7138b33e5c690c308b2a7085f6313fdcb3f616 ] The "reuse->sock[]" array is shared by multiple sockets. The going away sk must unpublish itself from "reuse->sock[]" before making call_rcu() call. However, this unpublish-action is currently done after a

[PATCH 5.2 006/137] net: ipv4: avoid mixed n_redirects and rate_tokens usage

2019-10-06 Thread Greg Kroah-Hartman
From: Paolo Abeni [ Upstream commit b406472b5ad79ede8d10077f0c8f05505ace8b6d ] Since commit c09551c6ff7f ("net: ipv4: use a dedicated counter for icmp_v4 redirect packets") we use 'n_redirects' to account for redirect packets, but we still use 'rate_tokens' to compute the redirect packets

[PATCH 5.2 037/137] drm/radeon: Fix EEH during kexec

2019-10-06 Thread Greg Kroah-Hartman
From: KyleMahlkuch [ Upstream commit 6f7fe9a93e6c09bf988c5059403f5f88e17e21e6 ] During kexec some adapters hit an EEH since they are not properly shut down in the radeon_pci_shutdown() function. Adding radeon_suspend_kms() fixes this issue. Signed-off-by: KyleMahlkuch Signed-off-by: Alex

[PATCH 5.2 029/137] drm/panel: simple: fix AUO g185han01 horizontal blanking

2019-10-06 Thread Greg Kroah-Hartman
From: Lucas Stach [ Upstream commit f8c6bfc612b56f02e1b8fae699dff12738aaf889 ] The horizontal blanking periods are too short, as the values are specified for a single LVDS channel. Since this panel is dual LVDS they need to be doubled. With this change the panel reaches its nominal vrefresh

[PATCH 5.2 046/137] drm/amd/display: Fix frames_to_insert math

2019-10-06 Thread Greg Kroah-Hartman
From: Bayan Zabihiyan [ Upstream commit a463b263032f7c98c5912207db43be1aa34a6438 ] [Why] The math on deciding on how many "frames to insert" sometimes sent us over the max refresh rate. Also integer overflow can occur if we have high refresh rates. [How] Instead of clipping the frame duration

[PATCH 5.2 033/137] drm/stm: attach gem fence to atomic state

2019-10-06 Thread Greg Kroah-Hartman
From: Ahmad Fatoum [ Upstream commit 8fabc9c3109a71b3577959a05408153ae69ccd8d ] To properly synchronize with other devices the fence from the GEM object backing the framebuffer needs to be attached to the atomic state, so the commit work can wait on fence signaling. Signed-off-by: Ahmad Fatoum

[PATCH 5.2 010/137] nfc: fix memory leak in llcp_sock_bind()

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit a0c2dc1fe63e2869b74c1c7f6a81d1745c8a695d ] sysbot reported a memory leak after a bind() has failed. While we are at it, abort the operation if kmemdup() has failed. BUG: memory leak unreferenced object 0x888105d83ec0 (size 32): comm

[PATCH 5.2 026/137] drm/vkms: Fix crc worker races

2019-10-06 Thread Greg Kroah-Hartman
From: Daniel Vetter [ Upstream commit 18d0952a838ba559655b0cd9cf85097ad63d9bca ] The issue we have is that the crc worker might fall behind. We've tried to handle this by tracking both the earliest frame for which it still needs to compute a crc, and the last one. Plus when the crtc_state

[PATCH 5.2 028/137] drm/vkms: Avoid assigning 0 for possible_crtc

2019-10-06 Thread Greg Kroah-Hartman
From: Rodrigo Siqueira [ Upstream commit e9d85f731de06a35d2ae6cdcf7d0e037c98ef41a ] When vkms invoke drm_universal_plane_init(), it sets 0 for possible_crtcs parameter which means that planes can't be attached to any CRTC. It currently works due to some safeguard in the drm_crtc file; however,

[PATCH 5.2 012/137] rxrpc: Fix rxrpc_recvmsg tracepoint

2019-10-06 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit db9b2e0af605e7c994784527abfd9276cabd718a ] Fix the rxrpc_recvmsg tracepoint to handle being called with a NULL call parameter. Fixes: a25e21f0bcd2 ("rxrpc, afs: Use debug_ids rather than pointers in traces") Signed-off-by: David Howells Signed-off-by:

[PATCH 5.2 001/137] cxgb4:Fix out-of-bounds MSI-X info array access

2019-10-06 Thread Greg Kroah-Hartman
From: Vishal Kulkarni [ Upstream commit 6b517374f4ea5a3c6e307e1219ec5f35d42e6d00 ] When fetching free MSI-X vectors for ULDs, check for the error code before accessing MSI-X info array. Otherwise, an out-of-bounds access is attempted, which results in kernel panic. Fixes: 94cdb8bb993a ("cxgb4:

[PATCH 4.19 091/106] sch_dsmark: fix potential NULL deref in dsmark_init()

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 474f0813a3002cb299bb73a5a93aa1f537a80ca8 ] Make sure TCA_DSMARK_INDICES was provided by the user. syzbot reported : kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1]

[PATCH 4.19 082/106] hso: fix NULL-deref on tty open

2019-10-06 Thread Greg Kroah-Hartman
From: Johan Hovold [ Upstream commit 8353da9fa69722b54cba82b2ec740afd3d438748 ] Fix NULL-pointer dereference on tty open due to a failure to handle a missing interrupt-in endpoint when probing modem ports: BUG: kernel NULL pointer dereference, address: 0006 ...

[PATCH 4.19 090/106] rxrpc: Fix rxrpc_recvmsg tracepoint

2019-10-06 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit db9b2e0af605e7c994784527abfd9276cabd718a ] Fix the rxrpc_recvmsg tracepoint to handle being called with a NULL call parameter. Fixes: a25e21f0bcd2 ("rxrpc, afs: Use debug_ids rather than pointers in traces") Signed-off-by: David Howells Signed-off-by:

[PATCH 5.2 014/137] sch_dsmark: fix potential NULL deref in dsmark_init()

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 474f0813a3002cb299bb73a5a93aa1f537a80ca8 ] Make sure TCA_DSMARK_INDICES was provided by the user. syzbot reported : kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1]

<    1   2   3   4   5   6   7   8   9   10   >