[PATCH AUTOSEL 4.9 04/21] 9p locks: add mount option for lock retry interval

2019-03-29 Thread Sasha Levin
From: Dinu-Razvan Chis-Serban [ Upstream commit 5e172f75e51e3de1b4274146d9b990f803cb5c2a ] The default P9_LOCK_TIMEOUT can be too long for some users exporting a local file system to a guest VM (30s), make this configurable at mount time. Link:

[PATCH AUTOSEL 4.9 06/21] serial: uartps: console_setup() can't be placed to init section

2019-03-29 Thread Sasha Levin
From: Michal Simek [ Upstream commit 4bb1ce2350a598502b23088b169e16b43d4bc639 ] When console device is rebinded, console_setup() is called again. But marking it as __init means that function will be clear after boot is complete. If console device is binded again console_setup() is not found and

[PATCH AUTOSEL 4.14 21/37] crypto: sha512/arm - fix crash bug in Thumb2 build

2019-03-29 Thread Sasha Levin
From: Ard Biesheuvel [ Upstream commit c64316502008064c158fa40cc250665e461b0f2a ] The SHA512 code we adopted from the OpenSSL project uses a rather peculiar way to take the address of the round constant table: it takes the address of the sha256_block_data_order() routine, and substracts a

[PATCH AUTOSEL 4.9 15/21] soc/tegra: pmc: Drop locking from tegra_powergate_is_powered()

2019-03-29 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit b6e1fd17a38bd1d97c11d69fd3207b3ef9bfa4b3 ] This fixes splats like the one below if CONFIG_DEBUG_ATOMIC_SLEEP=y and machine (Tegra30) booted with SMP=n or all secondary CPU's are put offline. Locking isn't needed because it protects atomic operation. BUG:

[PATCH AUTOSEL 4.9 11/21] kernel: hung_task.c: disable on suspend

2019-03-29 Thread Sasha Levin
From: Vitaly Kuznetsov [ Upstream commit a1c6ca3c6de763459a6e93b644ec6518c890ba1c ] It is possible to observe hung_task complaints when system goes to suspend-to-idle state: # echo freeze > /sys/power/state PM: Syncing filesystems ... done. Freezing user space processes ... (elapsed 0.001

[PATCH AUTOSEL 4.9 13/21] crypto: sha512/arm - fix crash bug in Thumb2 build

2019-03-29 Thread Sasha Levin
From: Ard Biesheuvel [ Upstream commit c64316502008064c158fa40cc250665e461b0f2a ] The SHA512 code we adopted from the OpenSSL project uses a rather peculiar way to take the address of the round constant table: it takes the address of the sha256_block_data_order() routine, and substracts a

[PATCH AUTOSEL 4.9 16/21] ext4: prohibit fstrim in norecovery mode

2019-03-29 Thread Sasha Levin
From: "Darrick J. Wong" [ Upstream commit 18915b5873f07e5030e6fb108a050fa7c71c59fb ] The ext4 fstrim implementation uses the block bitmaps to find free space that can be discarded. If we haven't replayed the journal, the bitmaps will be stale and we absolutely *cannot* use stale metadata to

[PATCH AUTOSEL 4.14 20/37] crypto: sha256/arm - fix crash bug in Thumb2 build

2019-03-29 Thread Sasha Levin
From: Ard Biesheuvel [ Upstream commit 69216a545cf81b2b32d01948f7039315abaf75a0 ] The SHA256 code we adopted from the OpenSSL project uses a rather peculiar way to take the address of the round constant table: it takes the address of the sha256_block_data_order() routine, and substracts a

[PATCH AUTOSEL 4.14 06/37] netfilter: xt_cgroup: shrink size of v2 path

2019-03-29 Thread Sasha Levin
From: Pablo Neira Ayuso [ Upstream commit 0d704967f4a49cc2212350b3e4a8231f8b4283ed ] cgroup v2 path field is PATH_MAX which is too large, this is placing too much pressure on memory allocation for people with many rules doing cgroup v1 classid matching, side effects of this are bug reports

[PATCH AUTOSEL 4.14 10/37] HID: i2c-hid: override HID descriptors for certain devices

2019-03-29 Thread Sasha Levin
From: Julian Sax [ Upstream commit 9ee3e06610fdb8a601cde59c92089fb6c1deb4aa ] A particular touchpad (SIPODEV SP1064) refuses to supply the HID descriptors. This patch provides the framework for overriding these descriptors based on DMI data. It also includes the descriptors for said touchpad,

[PATCH AUTOSEL 4.14 07/37] serial: uartps: console_setup() can't be placed to init section

2019-03-29 Thread Sasha Levin
From: Michal Simek [ Upstream commit 4bb1ce2350a598502b23088b169e16b43d4bc639 ] When console device is rebinded, console_setup() is called again. But marking it as __init means that function will be clear after boot is complete. If console device is binded again console_setup() is not found and

[PATCH AUTOSEL 4.14 11/37] ARM: samsung: Limit SAMSUNG_PM_CHECK config option to non-Exynos platforms

2019-03-29 Thread Sasha Levin
From: Bartlomiej Zolnierkiewicz [ Upstream commit 6862fdf2201ab67cd962dbf0643d37db909f4860 ] "S3C2410 PM Suspend Memory CRC" feature (controlled by SAMSUNG_PM_CHECK config option) is incompatible with highmem (uses phys_to_virt() instead of proper mapping) which is used by the majority of

[PATCH AUTOSEL 4.19 13/57] Bluetooth: Fix debugfs NULL pointer dereference

2019-03-29 Thread Sasha Levin
From: Matias Karhumaa [ Upstream commit 30d65e0804d58a03d1a8ea4e12c6fc07ed08218b ] Fix crash caused by NULL pointer dereference when debugfs functions le_max_key_read, le_max_key_size_write, le_min_key_size_read or le_min_key_size_write and Bluetooth adapter was powered off. Fix is to move

[PATCH AUTOSEL 4.14 09/37] media: au0828: cannot kfree dev before usb disconnect

2019-03-29 Thread Sasha Levin
From: Brad Love [ Upstream commit 4add7104919f9e94e0db03e234caeadbfcc02ea9 ] If au0828_analog_register fails, the dev is kfree'd and then flow jumps to done, which can call au0828_usb_disconnect. Since all USB error codes are negative, au0828_usb_disconnect will be called. The problem is

[PATCH AUTOSEL 4.19 15/57] pinctrl: core: make sure strcmp() doesn't get a null parameter

2019-03-29 Thread Sasha Levin
From: Yanjiang Jin [ Upstream commit 54a58185bfafb5af5045fb8388c45daa373f90f3 ] Some drivers, for example, QCOM's qdf2xxx, set groups[gpio].name only when gpio is valid, and leave invalid gpio names as null. If we want to access the sys node "pinconf-groups", pinctrl_get_group_selector() ->

[PATCH AUTOSEL 4.19 20/57] KVM: nVMX: restore host state in nested_vmx_vmexit for VMFail

2019-03-29 Thread Sasha Levin
From: Sean Christopherson [ Upstream commit bd18bffca35397214ae68d85cf7203aca25c3c1d ] A VMEnter that VMFails (as opposed to VMExits) does not touch host state beyond registers that are explicitly noted in the VMFail path, e.g. EFLAGS. Host state does not need to be loaded because VMFail is

[PATCH AUTOSEL 4.19 08/57] f2fs: fix to do sanity check with current segment number

2019-03-29 Thread Sasha Levin
From: Chao Yu [ Upstream commit 042be0f849e5fc24116d0afecfaf926eed5cac63 ] https://bugzilla.kernel.org/show_bug.cgi?id=200219 Reproduction way: - mount image - run poc code - umount image F2FS-fs (loop1): Bitmap was wrongly set, blk:15364 [ cut here ] kernel BUG at

[PATCH AUTOSEL 4.19 04/57] f2fs: fix to avoid NULL pointer dereference on se->discard_map

2019-03-29 Thread Sasha Levin
From: Chao Yu [ Upstream commit 7d20c8abb2edcf962ca857d51f4d0f9cd4b19053 ] https://bugzilla.kernel.org/show_bug.cgi?id=200951 These is a NULL pointer dereference issue reported in bugzilla: Hi, in the setup there is a SATA SSD connected to a SATA-to-USB bridge. The disc is "Samsung SSD 850

[PATCH AUTOSEL 4.19 10/57] serial: uartps: console_setup() can't be placed to init section

2019-03-29 Thread Sasha Levin
From: Michal Simek [ Upstream commit 4bb1ce2350a598502b23088b169e16b43d4bc639 ] When console device is rebinded, console_setup() is called again. But marking it as __init means that function will be clear after boot is complete. If console device is binded again console_setup() is not found and

[PATCH AUTOSEL 4.19 27/57] platform/x86: Add Intel AtomISP2 dummy / power-management driver

2019-03-29 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 49ad712afa88c502831d37f7089d98eac441fb80 ] The Image Signal Processor found on Cherry Trail devices is brought up in D0 state on devices which have camera sensors attached to it. The ISP will not enter D3 state again without some massaging of its registers

[PATCH AUTOSEL 4.14 01/37] gpio: pxa: handle corner case of unprobed device

2019-03-29 Thread Sasha Levin
From: Robert Jarzmik [ Upstream commit 9ce3ebe973bf4073426f35f282c6b955ed802765 ] In the corner case where the gpio driver probe fails, for whatever reason, the suspend and resume handlers will still be called as they have to be registered as syscore operations. This applies as well when no

[PATCH AUTOSEL 4.14 05/37] f2fs: fix to do sanity check with current segment number

2019-03-29 Thread Sasha Levin
From: Chao Yu [ Upstream commit 042be0f849e5fc24116d0afecfaf926eed5cac63 ] https://bugzilla.kernel.org/show_bug.cgi?id=200219 Reproduction way: - mount image - run poc code - umount image F2FS-fs (loop1): Bitmap was wrongly set, blk:15364 [ cut here ] kernel BUG at

[PATCH AUTOSEL 4.19 31/57] ACPI: EC / PM: Disable non-wakeup GPEs for suspend-to-idle

2019-03-29 Thread Sasha Levin
From: "Rafael J. Wysocki" [ Upstream commit f941d3e41da7f86bdb9dcc1977c2bcc6b89bfe47 ] There are systems in which non-wakeup GPEs fire during the "noirq" suspend stage of suspending devices and that effectively prevents the system that tries to suspend to idle from entering any low-power state

[PATCH AUTOSEL 4.19 26/57] kernel: hung_task.c: disable on suspend

2019-03-29 Thread Sasha Levin
From: Vitaly Kuznetsov [ Upstream commit a1c6ca3c6de763459a6e93b644ec6518c890ba1c ] It is possible to observe hung_task complaints when system goes to suspend-to-idle state: # echo freeze > /sys/power/state PM: Syncing filesystems ... done. Freezing user space processes ... (elapsed 0.001

[PATCH AUTOSEL 4.19 25/57] cifs: fallback to older infolevels on findfirst queryinfo retry

2019-03-29 Thread Sasha Levin
From: Steve French [ Upstream commit 3b7960caceafdfc2cdfe2850487f8d091eb41144 ] In cases where queryinfo fails, we have cases in cifs (vers=1.0) where with backupuid mounts we retry the query info with findfirst. This doesn't work to some NetApp servers which don't support WindowsXP (and later)

[PATCH AUTOSEL 5.0 01/25] ext4: prohibit fstrim in norecovery mode

2019-03-29 Thread Sasha Levin
From: "Darrick J. Wong" [ Upstream commit 18915b5873f07e5030e6fb108a050fa7c71c59fb ] The ext4 fstrim implementation uses the block bitmaps to find free space that can be discarded. If we haven't replayed the journal, the bitmaps will be stale and we absolutely *cannot* use stale metadata to

[PATCH AUTOSEL 5.0 03/25] lkdtm: Add tests for NULL pointer dereference

2019-03-29 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 59a12205d3c32aee4c13ca36889fdf7cfed31126 ] Introduce lkdtm tests for NULL pointer dereference: check access or exec at NULL address, since these errors tend to be reported differently from the general fault error text. For example from x86:

[PATCH AUTOSEL 5.0 02/25] lkdtm: Print real addresses

2019-03-29 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 4c411157a42f122051ae3469bee0b5cabe89e139 ] Today, when doing a lkdtm test before the readiness of the random generator, (ptrval) is printed instead of the address at which it perform the fault: [ 1597.337030] lkdtm: Performing direct entry

[PATCH v2] clk:mmp: clk-mix.c fix divide-by-zero

2019-03-29 Thread nixiaoming
The _get_div function has a branch with a return value of 0 Add a check on the return value of _get_div to avoid divide-by-zero Signed-off-by: nixiaoming Reviewed-by: Mukesh Ojha --- drivers/clk/mmp/clk-mix.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/mmp/clk-mix.c

Re: [PATCH v2 4/5] signal: PIDFD_SIGNAL_TID threads via pidfds

2019-03-29 Thread Christian Brauner
On Sat, Mar 30, 2019 at 02:06:34AM +0100, Jann Horn wrote: > On Fri, Mar 29, 2019 at 4:54 PM Christian Brauner > wrote: > > With the addition of pidfd_open() it is possible for users to reference a > > specific thread by doing: > > > > int pidfd = pidfd_open(, 0); > > > > This means we can

[PATCH AUTOSEL 5.0 10/67] ALSA: echoaudio: add a check for ioremap_nocache

2019-03-29 Thread Sasha Levin
From: Kangjie Lu [ Upstream commit 6ade657d6125ec3ec07f95fa51e28138aef6208f ] In case ioremap_nocache fails, the fix releases chip and returns an error code upstream to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.0 05/67] perf data: Don't store auxtrace index for directory data file

2019-03-29 Thread Sasha Levin
From: Jiri Olsa [ Upstream commit cd3dd8dd8ff62374d90cb3f2e54b8c94106c7810 ] We can't store the auxtrace index when we store into multiple files, because we keep only offset for it, not the file. The auxtrace data will be processed correctly in the 'pipe' mode. Signed-off-by: Jiri Olsa Cc:

[PATCH AUTOSEL 5.0 09/67] ext4: report real fs size after failed resize

2019-03-29 Thread Sasha Levin
From: Lukas Czerner [ Upstream commit 6c7328400e0488f7d49e19e02290ba343b6811b2 ] Currently when the file system resize using ext4_resize_fs() fails it will report into log that "resized filesystem to ". However this may not be true in the case of failure. Use the current block count as

[PATCH AUTOSEL 5.0 02/67] arc: hsdk_defconfig: Enable CONFIG_BLK_DEV_RAM

2019-03-29 Thread Sasha Levin
From: Corentin Labbe [ Upstream commit 0728aeb7ead99a9b0dac2f3c92b3752b4e02ff97 ] We have now a HSDK device in our kernelci lab, but kernel builded via the hsdk_defconfig lacks ramfs supports, so it cannot boot kernelci jobs yet. So this patch enable CONFIG_BLK_DEV_RAM in hsdk_defconfig.

[PATCH AUTOSEL 5.0 03/67] inotify: Fix fsnotify_mark refcount leak in inotify_update_existing_watch()

2019-03-29 Thread Sasha Levin
From: ZhangXiaoxu [ Upstream commit 62c9d2674b31d4c8a674bee86b7edc6da2803aea ] Commit 4d97f7d53da7dc83 ("inotify: Add flag IN_MASK_CREATE for inotify_add_watch()") forgot to call fsnotify_put_mark() with IN_MASK_CREATE after fsnotify_find_mark() Fixes: 4d97f7d53da7dc83 ("inotify: Add flag

[PATCH AUTOSEL 5.0 01/67] ARC: u-boot args: check that magic number is correct

2019-03-29 Thread Sasha Levin
From: Eugeniy Paltsev [ Upstream commit edb64bca50cd736c6894cc6081d5263c007ce005 ] In case of devboards we really often disable bootloader and load Linux image in memory via JTAG. Even if kernel tries to verify uboot_tag and uboot_arg there is sill a chance that we treat some garbage in

[PATCH AUTOSEL 5.0 04/67] perf/core: Restore mmap record type correctly

2019-03-29 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit d9c1bb2f6a2157b38e8eb63af437cb22701d31ee ] On mmap(), perf_events generates a RECORD_MMAP record and then checks which events are interested in this record. There are currently 2 versions of mmap records: RECORD_MMAP and RECORD_MMAP2. MMAP2 is larger.

[PATCH AUTOSEL 5.0 08/67] ext4: add missing brelse() in add_new_gdb_meta_bg()

2019-03-29 Thread Sasha Levin
From: Lukas Czerner [ Upstream commit d64264d6218e6892edd832dc3a5a5857c2856c53 ] Currently in add_new_gdb_meta_bg() there is a missing brelse of gdb_bh in case ext4_journal_get_write_access() fails. Additionally kvfree() is missing in the same error path. Fix it by moving the

[PATCH AUTOSEL 5.0 13/67] drm/udl: use drm_gem_object_put_unlocked.

2019-03-29 Thread Sasha Levin
From: Dave Airlie [ Upstream commit 8f3b487685b2acf71b42bb30d68fd9271bec8695 ] When Daniel removed struct_mutex he didn't fix this call to the unlocked variant which is required since we no longer use struct mutex. This fixes a bunch of: WARNING: CPU: 4 PID: 1370 at

[PATCH AUTOSEL 5.0 22/67] thermal: bcm2835: Fix crash in bcm2835_thermal_debugfs

2019-03-29 Thread Sasha Levin
From: Phil Elwell [ Upstream commit 35122495a8c6683e863acf7b05a7036b2be64c7a ] "cat /sys/kernel/debug/bcm2835_thermal/regset" causes a NULL pointer dereference in bcm2835_thermal_debugfs. The driver makes use of the implementation details of the thermal framework to retrieve a pointer to its

[PATCH AUTOSEL 5.0 14/67] IB/mlx4: Fix race condition between catas error reset and aliasguid flows

2019-03-29 Thread Sasha Levin
From: Jack Morgenstein [ Upstream commit 587443e7773e150ae29e643ee8f41a1eed226565 ] Code review revealed a race condition which could allow the catas error flow to interrupt the alias guid query post mechanism at random points. Thiis is fixed by doing cancel_delayed_work_sync() instead of

[PATCH AUTOSEL 5.0 20/67] thermal/intel_powerclamp: fix __percpu declaration of worker_data

2019-03-29 Thread Sasha Levin
From: Luc Van Oostenryck [ Upstream commit aa36e3616532f82a920b5ebf4e059fbafae63d88 ] This variable is declared as: static struct powerclamp_worker_data * __percpu worker_data; In other words, a percpu pointer to struct ... But this variable not used like so but as a pointer to a

[PATCH AUTOSEL 5.0 16/67] mmc: davinci: remove extraneous __init annotation

2019-03-29 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 9ce58dd7d9da3ca0d7cb8c9568f1c6f4746da65a ] Building with clang finds a mistaken __init tag: WARNING: vmlinux.o(.text+0x5e4250): Section mismatch in reference from the function davinci_mmcsd_probe() to the function .init.text:init_mmcsd_host() The function

[PATCH AUTOSEL 5.0 32/67] scsi: qla2xxx: Fix NULL pointer crash due to stale CPUID

2019-03-29 Thread Sasha Levin
From: Himanshu Madhani [ Upstream commit ac444b4f0ace05d7c4c99f6b1e5b0cae0852f025 ] This patch fixes crash due to NULL pointer derefrence because CPU pointer is not set and used by driver. Instead, driver is passes CPU as tag via ha->isp_ops->{lun_reset|target_reset} [ 30.160780] qla2xxx

[PATCH AUTOSEL 5.0 28/67] sched/core: Fix buffer overflow in cgroup2 property cpu.max

2019-03-29 Thread Sasha Levin
From: Konstantin Khlebnikov [ Upstream commit 4c47acd8248fc6dc519fb4e08d1522105b7a ] Add limit into sscanf format string for on-stack buffer. Signed-off-by: Konstantin Khlebnikov Signed-off-by: Peter Zijlstra (Intel) Acked-by: Tejun Heo Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Dave

[PATCH AUTOSEL 5.0 27/67] sched/cpufreq: Fix 32-bit math overflow

2019-03-29 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit a23314e9d88d89d49e69db08f60b7caa470f04e1 ] Vincent Wang reported that get_next_freq() has a mult overflow bug on 32-bit platforms in the IOWAIT boost case, since in that case {util,max} are in freq units instead of capacity units. Solve this by moving the

[PATCH AUTOSEL 5.0 37/67] perf config: Fix a memory leak in collect_config()

2019-03-29 Thread Sasha Levin
From: Changbin Du [ Upstream commit 54569ba4b06d5baedae4614bde33a25a191473ba ] Detected with gcc's ASan: Direct leak of 66 byte(s) in 5 object(s) allocated from: #0 0x7ff3b1f32070 in __interceptor_strdup (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x3b070) #1 0x560c8761034d in

[PATCH AUTOSEL 5.0 50/67] PM / Domains: Avoid a potential deadlock

2019-03-29 Thread Sasha Levin
From: Jiada Wang [ Upstream commit 2071ac985d37efe496782c34318dbead93beb02f ] Lockdep warns that prepare_lock and genpd->mlock can cause a deadlock the deadlock scenario is like following: First thread is probing cs2000 cs2000_probe() clk_register() __clk_core_init()

[PATCH AUTOSEL 5.0 52/67] drm/exynos/mixer: fix MIXER shadow registry synchronisation code

2019-03-29 Thread Sasha Levin
From: Andrzej Hajda [ Upstream commit 6a3b45ada960ac475ec2b4103d43e57943b2b8d3 ] MIXER on Exynos5 SoCs uses different synchronisation method than Exynos4 to update internal state (shadow registers). Apparently the driver implements it incorrectly. The rule should be as follows: - do not request

[PATCH AUTOSEL 5.0 49/67] ACPI / utils: Drop reference in test for device presence

2019-03-29 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit 54e3aca84e571559915998aa6cc05e5ac37c043b ] When commit 8661423eea1a ("ACPI / utils: Add new acpi_dev_present helper") introduced acpi_dev_present(), it missed the fact that bus_find_device() took a reference on the device found by it and the callers of

[PATCH AUTOSEL 5.0 44/67] perf top: Fix global-buffer-overflow issue

2019-03-29 Thread Sasha Levin
From: Changbin Du [ Upstream commit 1e5b0cf8672e622257df024074e6e09bfbcb7750 ] The array str[] should have six elements. = ==4322==ERROR: AddressSanitizer: global-buffer-overflow on address 0x56463844e300 at pc 0x564637e7ad0d

[PATCH AUTOSEL 5.0 53/67] irqchip/stm32: Don't clear rising/falling config registers at init

2019-03-29 Thread Sasha Levin
From: Fabien Dessenne [ Upstream commit 0dda09666f50eae9c5b794dd89b1fd8a8d89d714 ] Falling and rising configuration and status registers are not banked. As they are shared with M4 co-processor, they should not be cleared at probe time, else M4 co-processor configuration will be lost. Fixes:

[PATCH AUTOSEL 5.0 59/67] drm/nouveau/debugfs: Fix check of pm_runtime_get_sync failure

2019-03-29 Thread Sasha Levin
From: YueHaibing [ Upstream commit 909e9c9c428376e2a43d178ed4b0a2d5ba9cb7d3 ] pm_runtime_get_sync returns negative on failure. Fixes: eaeb9010bb4b ("drm/nouveau/debugfs: Wake up GPU before doing any reclocking") Signed-off-by: YueHaibing Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin

[PATCH AUTOSEL 5.0 51/67] blk-iolatency: #include "blk.h"

2019-03-29 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit 373e915cd8e84544609eced57a44fbc084f8d60f ] This patch avoids that the following warning is reported when building with W=1: block/blk-iolatency.c:734:5: warning: no previous prototype for 'blk_iolatency_init' [-Wmissing-prototypes] Cc: Josef Bacik

[PATCH AUTOSEL 5.0 58/67] x86/cpu/cyrix: Use correct macros for Cyrix calls on Geode processors

2019-03-29 Thread Sasha Levin
From: Matthew Whitehead [ Upstream commit 18fb053f9b827bd98cfc64f2a35df8ab19745a1d ] There are comments in processor-cyrix.h advising you to _not_ make calls using the deprecated macros in this style: setCx86_old(CX86_CCR4, getCx86_old(CX86_CCR4) | 0x80); This is because it expands the

[PATCH AUTOSEL 5.0 54/67] irqchip/stm32: Don't set rising configuration registers at init

2019-03-29 Thread Sasha Levin
From: Fabien Dessenne [ Upstream commit 6a77623d78b307b34d4cf7886da6a907689bf388 ] The rising configuration status register (rtsr) is not banked. As it is shared with the co-processor, it should not be written at probe time, else the co-processor configuration will be lost. Fixes: f9fc1745501e

[PATCH AUTOSEL 5.0 48/67] perf tests: Fix a memory leak in test__perf_evsel__tp_sched_test()

2019-03-29 Thread Sasha Levin
From: Changbin Du [ Upstream commit d982b33133284fa7efa0e52ae06b88f9be3ea764 ] = ==20875==ERROR: LeakSanitizer: detected memory leaks Direct leak of 1160 byte(s) in 1 object(s) allocated from: #0 0x7f1b6fc84138 in

[PATCH AUTOSEL 5.0 56/67] x86/hpet: Prevent potential NULL pointer dereference

2019-03-29 Thread Sasha Levin
From: Aditya Pakki [ Upstream commit 2e84f116afca3719c9d0a1a78b47b48f75fd5724 ] hpet_virt_address may be NULL when ioremap_nocache fail, but the code lacks a check. Add a check to prevent NULL pointer dereference. Signed-off-by: Aditya Pakki Signed-off-by: Thomas Gleixner Cc: k...@umn.edu

[PATCH AUTOSEL 5.0 62/67] x86/hw_breakpoints: Make default case in hw_breakpoint_arch_parse() return an error

2019-03-29 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit e898e69d6b9475bf123f99b3c5d1a67bb7cb2361 ] When building with -Wsometimes-uninitialized, Clang warns: arch/x86/kernel/hw_breakpoint.c:355:2: warning: variable 'align' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]

[PATCH AUTOSEL 5.0 67/67] ext4: prohibit fstrim in norecovery mode

2019-03-29 Thread Sasha Levin
From: "Darrick J. Wong" [ Upstream commit 18915b5873f07e5030e6fb108a050fa7c71c59fb ] The ext4 fstrim implementation uses the block bitmaps to find free space that can be discarded. If we haven't replayed the journal, the bitmaps will be stale and we absolutely *cannot* use stale metadata to

[PATCH AUTOSEL 5.0 64/67] fix incorrect error code mapping for OBJECTID_NOT_FOUND

2019-03-29 Thread Sasha Levin
From: Steve French [ Upstream commit 85f9987b236cf46e06ffdb5c225cf1f3c0acb789 ] It was mapped to EIO which can be confusing when user space queries for an object GUID for an object for which the server file system doesn't support (or hasn't saved one). As Amir Goldstein suggested this is

[PATCH AUTOSEL 5.0 63/67] cifs: fix that return -EINVAL when do dedupe operation

2019-03-29 Thread Sasha Levin
From: Xiaoli Feng [ Upstream commit b073a08016a10f01dfb0d0b6c7fa89da0d544963 ] dedupe_file_range operations is combiled into remap_file_range. But it's always skipped for dedupe operations in function cifs_remap_file_range. Example to test: Before this patch: # dd if=/dev/zero of=cifs/file

[PATCH AUTOSEL 4.19 03/52] inotify: Fix fsnotify_mark refcount leak in inotify_update_existing_watch()

2019-03-29 Thread Sasha Levin
From: ZhangXiaoxu [ Upstream commit 62c9d2674b31d4c8a674bee86b7edc6da2803aea ] Commit 4d97f7d53da7dc83 ("inotify: Add flag IN_MASK_CREATE for inotify_add_watch()") forgot to call fsnotify_put_mark() with IN_MASK_CREATE after fsnotify_find_mark() Fixes: 4d97f7d53da7dc83 ("inotify: Add flag

[PATCH AUTOSEL 4.19 04/52] perf/core: Restore mmap record type correctly

2019-03-29 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit d9c1bb2f6a2157b38e8eb63af437cb22701d31ee ] On mmap(), perf_events generates a RECORD_MMAP record and then checks which events are interested in this record. There are currently 2 versions of mmap records: RECORD_MMAP and RECORD_MMAP2. MMAP2 is larger.

[PATCH AUTOSEL 4.19 05/52] perf data: Don't store auxtrace index for directory data file

2019-03-29 Thread Sasha Levin
From: Jiri Olsa [ Upstream commit cd3dd8dd8ff62374d90cb3f2e54b8c94106c7810 ] We can't store the auxtrace index when we store into multiple files, because we keep only offset for it, not the file. The auxtrace data will be processed correctly in the 'pipe' mode. Signed-off-by: Jiri Olsa Cc:

[PATCH AUTOSEL 4.19 07/52] ext4: add missing brelse() in add_new_gdb_meta_bg()

2019-03-29 Thread Sasha Levin
From: Lukas Czerner [ Upstream commit d64264d6218e6892edd832dc3a5a5857c2856c53 ] Currently in add_new_gdb_meta_bg() there is a missing brelse of gdb_bh in case ext4_journal_get_write_access() fails. Additionally kvfree() is missing in the same error path. Fix it by moving the

[PATCH AUTOSEL 4.19 01/52] ARC: u-boot args: check that magic number is correct

2019-03-29 Thread Sasha Levin
From: Eugeniy Paltsev [ Upstream commit edb64bca50cd736c6894cc6081d5263c007ce005 ] In case of devboards we really often disable bootloader and load Linux image in memory via JTAG. Even if kernel tries to verify uboot_tag and uboot_arg there is sill a chance that we treat some garbage in

[PATCH AUTOSEL 4.19 10/52] ALSA: sb8: add a check for request_region

2019-03-29 Thread Sasha Levin
From: Kangjie Lu [ Upstream commit dcd0feac9bab901d5739de51b3f69840851f8919 ] In case request_region fails, the fix returns an error code to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/isa/sb/sb8.c | 4 1

[PATCH AUTOSEL 4.19 12/52] drm/udl: use drm_gem_object_put_unlocked.

2019-03-29 Thread Sasha Levin
From: Dave Airlie [ Upstream commit 8f3b487685b2acf71b42bb30d68fd9271bec8695 ] When Daniel removed struct_mutex he didn't fix this call to the unlocked variant which is required since we no longer use struct mutex. This fixes a bunch of: WARNING: CPU: 4 PID: 1370 at

[PATCH v3 0/2] media: ov6650: Add V4L2 asynchronous subdevice support

2019-03-29 Thread Janusz Krzysztofik
Janusz Krzysztofik (2): media: ov6650: Move v4l2_clk_get() to ov6650_video_probe() helper media: ov6650: Register with asynchronous subdevice framework ov6650.c | 44 1 file changed, 28 insertions(+), 16 deletions(-) Changelog: v2->v3:

[PATCH AUTOSEL 4.19 08/52] ext4: report real fs size after failed resize

2019-03-29 Thread Sasha Levin
From: Lukas Czerner [ Upstream commit 6c7328400e0488f7d49e19e02290ba343b6811b2 ] Currently when the file system resize using ext4_resize_fs() fails it will report into log that "resized filesystem to ". However this may not be true in the case of failure. Use the current block count as

[PATCH AUTOSEL 4.19 14/52] i40iw: Avoid panic when handling the inetdev event

2019-03-29 Thread Sasha Levin
From: Feng Tang [ Upstream commit ec4fe4bcc584b55e24e8d1768f5510a62c0fd619 ] There is a panic reported that on a system with x722 ethernet, when doing the operations like: # ip link add br0 type bridge # ip link set eno1 master br0 # systemctl restart systemd-networkd

[PATCH AUTOSEL 4.19 32/52] perf top: Fix error handling in cmd_top()

2019-03-29 Thread Sasha Levin
From: Changbin Du [ Upstream commit 70c819e4bf1c5f492768b399d898d458ccdad2b6 ] We should go to the cleanup path, to avoid leaks, detected using gcc's ASan. Signed-off-by: Changbin Du Reviewed-by: Jiri Olsa Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Namhyung Kim Cc: Peter Zijlstra Cc:

[PATCH v3 2/2] media: ov6650: Register with asynchronous subdevice framework

2019-03-29 Thread Janusz Krzysztofik
Register V4L2 subdevice implemented by the driver to the V4L2 asynchronous subdevice framework. Signed-off-by: Janusz Krzysztofik --- drivers/media/i2c/ov6650.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/drivers/media/i2c/ov6650.c

[PATCH AUTOSEL 4.19 25/52] sched/core: Fix buffer overflow in cgroup2 property cpu.max

2019-03-29 Thread Sasha Levin
From: Konstantin Khlebnikov [ Upstream commit 4c47acd8248fc6dc519fb4e08d1522105b7a ] Add limit into sscanf format string for on-stack buffer. Signed-off-by: Konstantin Khlebnikov Signed-off-by: Peter Zijlstra (Intel) Acked-by: Tejun Heo Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Dave

[PATCH AUTOSEL 4.19 17/52] thermal/intel_powerclamp: fix __percpu declaration of worker_data

2019-03-29 Thread Sasha Levin
From: Luc Van Oostenryck [ Upstream commit aa36e3616532f82a920b5ebf4e059fbafae63d88 ] This variable is declared as: static struct powerclamp_worker_data * __percpu worker_data; In other words, a percpu pointer to struct ... But this variable not used like so but as a pointer to a

[PATCH v3 1/2] media: ov6650: Move v4l2_clk_get() to ov6650_video_probe() helper

2019-03-29 Thread Janusz Krzysztofik
In preparation for adding asynchronous subdevice support to the driver, don't acquire v4l2_clk from the driver .probe() callback as that may fail if the clock is provided by a bridge driver which may be not yet initialized. Move the v4l2_clk_get() to ov6650_video_probe() helper which is going to

[PATCH AUTOSEL 4.19 22/52] thermal/intel_powerclamp: fix truncated kthread name

2019-03-29 Thread Sasha Levin
From: Zhang Rui [ Upstream commit e925b5be5751f6a7286bbd9a4cbbc4ac90cc5fa6 ] kthread name only allows 15 characters (TASK_COMMON_LEN is 16). Thus rename the kthreads created by intel_powerclamp driver from "kidle_inject/ + decimal cpuid" to "kidle_inj/ + decimal cpuid" to avoid truncated kthead

Re: [PATCH v2 4/5] signal: PIDFD_SIGNAL_TID threads via pidfds

2019-03-29 Thread Jann Horn
On Fri, Mar 29, 2019 at 4:54 PM Christian Brauner wrote: > With the addition of pidfd_open() it is possible for users to reference a > specific thread by doing: > > int pidfd = pidfd_open(, 0); > > This means we can extend pidfd_send_signal() to signal a specific thread. > As promised in the

[PATCH AUTOSEL 4.19 26/52] x86/mm: Don't leak kernel addresses

2019-03-29 Thread Sasha Levin
From: Matteo Croce [ Upstream commit a3151724437f54076cc10bc02b1c4f0003ae36cd ] Since commit: ad67b74d2469d9b8 ("printk: hash addresses printed with %p") at boot "ptrval" is printed instead of actual addresses: found SMP MP-table at [mem 0x000f5cc0-0x000f5ccf] mapped at

[PATCH AUTOSEL 4.19 29/52] perf config: Fix an error in the config template documentation

2019-03-29 Thread Sasha Levin
From: Changbin Du [ Upstream commit 9b40dff7ba3caaf0d1919f98e136fa3400bd34aa ] The option 'sort-order' should be 'sort_order'. Signed-off-by: Changbin Du Reviewed-by: Jiri Olsa Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Milian Wolff Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Steven

[PATCH AUTOSEL 4.19 37/52] perf tests: Fix a memory leak in test__perf_evsel__tp_sched_test()

2019-03-29 Thread Sasha Levin
From: Changbin Du [ Upstream commit d982b33133284fa7efa0e52ae06b88f9be3ea764 ] = ==20875==ERROR: LeakSanitizer: detected memory leaks Direct leak of 1160 byte(s) in 1 object(s) allocated from: #0 0x7f1b6fc84138 in

[PATCH AUTOSEL 4.19 42/52] irqchip/stm32: Don't clear rising/falling config registers at init

2019-03-29 Thread Sasha Levin
From: Fabien Dessenne [ Upstream commit 0dda09666f50eae9c5b794dd89b1fd8a8d89d714 ] Falling and rising configuration and status registers are not banked. As they are shared with M4 co-processor, they should not be cleared at probe time, else M4 co-processor configuration will be lost. Fixes:

[PATCH AUTOSEL 4.19 40/52] blk-iolatency: #include "blk.h"

2019-03-29 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit 373e915cd8e84544609eced57a44fbc084f8d60f ] This patch avoids that the following warning is reported when building with W=1: block/blk-iolatency.c:734:5: warning: no previous prototype for 'blk_iolatency_init' [-Wmissing-prototypes] Cc: Josef Bacik

[PATCH AUTOSEL 4.19 43/52] irqchip/mbigen: Don't clear eventid when freeing an MSI

2019-03-29 Thread Sasha Levin
From: Jianguo Chen [ Upstream commit fca269f201a8d9985c0a31fb60b15d4eb57cef80 ] mbigen_write_msg clears eventid bits of a mbigen register when free a interrupt, because msi_domain_deactivate memset struct msg to zero. Then multiple mbigen pins with zero eventid will report the same interrupt

[PATCH AUTOSEL 4.19 46/52] x86/cpu/cyrix: Use correct macros for Cyrix calls on Geode processors

2019-03-29 Thread Sasha Levin
From: Matthew Whitehead [ Upstream commit 18fb053f9b827bd98cfc64f2a35df8ab19745a1d ] There are comments in processor-cyrix.h advising you to _not_ make calls using the deprecated macros in this style: setCx86_old(CX86_CCR4, getCx86_old(CX86_CCR4) | 0x80); This is because it expands the

[PATCH AUTOSEL 4.19 44/52] x86/hpet: Prevent potential NULL pointer dereference

2019-03-29 Thread Sasha Levin
From: Aditya Pakki [ Upstream commit 2e84f116afca3719c9d0a1a78b47b48f75fd5724 ] hpet_virt_address may be NULL when ioremap_nocache fail, but the code lacks a check. Add a check to prevent NULL pointer dereference. Signed-off-by: Aditya Pakki Signed-off-by: Thomas Gleixner Cc: k...@umn.edu

[PATCH AUTOSEL 4.19 49/52] x86/hw_breakpoints: Make default case in hw_breakpoint_arch_parse() return an error

2019-03-29 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit e898e69d6b9475bf123f99b3c5d1a67bb7cb2361 ] When building with -Wsometimes-uninitialized, Clang warns: arch/x86/kernel/hw_breakpoint.c:355:2: warning: variable 'align' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]

[PATCH AUTOSEL 4.14 04/37] ext4: add missing brelse() in add_new_gdb_meta_bg()

2019-03-29 Thread Sasha Levin
From: Lukas Czerner [ Upstream commit d64264d6218e6892edd832dc3a5a5857c2856c53 ] Currently in add_new_gdb_meta_bg() there is a missing brelse of gdb_bh in case ext4_journal_get_write_access() fails. Additionally kvfree() is missing in the same error path. Fix it by moving the

[PATCH AUTOSEL 4.14 12/37] thermal/intel_powerclamp: fix __percpu declaration of worker_data

2019-03-29 Thread Sasha Levin
From: Luc Van Oostenryck [ Upstream commit aa36e3616532f82a920b5ebf4e059fbafae63d88 ] This variable is declared as: static struct powerclamp_worker_data * __percpu worker_data; In other words, a percpu pointer to struct ... But this variable not used like so but as a pointer to a

[PATCH AUTOSEL 4.14 07/37] ALSA: sb8: add a check for request_region

2019-03-29 Thread Sasha Levin
From: Kangjie Lu [ Upstream commit dcd0feac9bab901d5739de51b3f69840851f8919 ] In case request_region fails, the fix returns an error code to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/isa/sb/sb8.c | 4 1

[PATCH AUTOSEL 4.14 06/37] ALSA: echoaudio: add a check for ioremap_nocache

2019-03-29 Thread Sasha Levin
From: Kangjie Lu [ Upstream commit 6ade657d6125ec3ec07f95fa51e28138aef6208f ] In case ioremap_nocache fails, the fix releases chip and returns an error code upstream to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.14 03/37] perf/core: Restore mmap record type correctly

2019-03-29 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit d9c1bb2f6a2157b38e8eb63af437cb22701d31ee ] On mmap(), perf_events generates a RECORD_MMAP record and then checks which events are interested in this record. There are currently 2 versions of mmap records: RECORD_MMAP and RECORD_MMAP2. MMAP2 is larger.

[PATCH AUTOSEL 4.14 16/37] thermal/intel_powerclamp: fix truncated kthread name

2019-03-29 Thread Sasha Levin
From: Zhang Rui [ Upstream commit e925b5be5751f6a7286bbd9a4cbbc4ac90cc5fa6 ] kthread name only allows 15 characters (TASK_COMMON_LEN is 16). Thus rename the kthreads created by intel_powerclamp driver from "kidle_inject/ + decimal cpuid" to "kidle_inj/ + decimal cpuid" to avoid truncated kthead

[PATCH AUTOSEL 4.14 11/37] ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration

2019-03-29 Thread Sasha Levin
From: Colin Ian King [ Upstream commit b4748e7ab731e436cf5db4786358ada5dd2db6dd ] The function snd_opl3_drum_switch declaration in the header file has the order of the two arguments on_off and vel swapped when compared to the definition arguments of vel and on_off. Fix this by swapping them

[PATCH AUTOSEL 4.14 10/37] mmc: davinci: remove extraneous __init annotation

2019-03-29 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 9ce58dd7d9da3ca0d7cb8c9568f1c6f4746da65a ] Building with clang finds a mistaken __init tag: WARNING: vmlinux.o(.text+0x5e4250): Section mismatch in reference from the function davinci_mmcsd_probe() to the function .init.text:init_mmcsd_host() The function

[PATCH AUTOSEL 4.14 14/37] thermal/int340x_thermal: Add additional UUIDs

2019-03-29 Thread Sasha Levin
From: Matthew Garrett [ Upstream commit 16fc8eca1975358111dbd7ce65e4ce42d1a848fb ] Add more supported DPTF policies than the driver currently exposes. Signed-off-by: Matthew Garrett Cc: Nisha Aram Signed-off-by: Zhang Rui Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.14 19/37] tools/power turbostat: return the exit status of a command

2019-03-29 Thread Sasha Levin
From: David Arcari [ Upstream commit 2a95496634a017c19641f26f00907af75b962f01 ] turbostat failed to return a non-zero exit status even though the supplied command (turbostat ) failed. Currently when turbostat forks a command it returns zero instead of the actual exit status of the command.

[PATCH AUTOSEL 4.14 15/37] thermal/int340x_thermal: fix mode setting

2019-03-29 Thread Sasha Levin
From: Matthew Garrett [ Upstream commit 396ee4d0cd52c13b3f6421b8d324d65da5e7e409 ] int3400 only pushes the UUID into the firmware when the mode is flipped to "enable". The current code only exposes the mode flag if the firmware supports the PASSIVE_1 UUID, which not all machines do. Remove the

[PATCH AUTOSEL 4.14 27/37] perf tests: Fix a memory leak of cpu_map object in the openat_syscall_event_on_all_cpus test

2019-03-29 Thread Sasha Levin
From: Changbin Du [ Upstream commit 93faa52e8371f0291ee1ff4994edae2b336b6233 ] = ==7497==ERROR: LeakSanitizer: detected memory leaks Direct leak of 40 byte(s) in 1 object(s) allocated from: #0 0x7f0333a88f30 in

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