[PATCH 5.1 058/155] uml: fix a boot splat wrt use of cpu_all_mask

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 689a58605b63173acb0a8cf954af6a8f60440c93 ] Memory: 509108K/542612K available (3835K kernel code, 919K rwdata, 1028K rodata, 129K init, 211K bss, 33504K reserved, 0K cma-reserved) NR_IRQS: 15 clocksource: timer: mask: 0x max_cycles: 0x1cd42e205, max_idle_ns: 8815

[PATCH 5.1 059/155] PCI: dwc: Free MSI in dw_pcie_host_init() error path

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 9e2b5de5604a6ff2626c51e77014d92c9299722c ] If we ever did MSI-related initializations, we need to call dw_pcie_free_msi() in the error code path. Remove the IS_ENABLED(CONFIG_PCI_MSI) check for MSI init because pci_msi_enabled() already has a stub for !CONFIG_PCI_MSI. Signed-of

[PATCH 5.1 057/155] configfs: fix possible use-after-free in configfs_register_group

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 35399f87e271f7cf3048eab00a421a6519ac8441 ] In configfs_register_group(), if create_default_group() failed, we forget to unlink the group. It will left a invalid item in the parent list, which may trigger the use-after-free issue seen below: BUG: KASAN: use-after-free in __list_a

[PATCH 5.1 063/155] mmc: mmci: Prevent polling for busy detection in IRQ context

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 8520ce1e17799b220ff421d4f39438c9c572ade3 ] The IRQ handler, mmci_irq(), loops until all status bits have been cleared. However, the status bit signaling busy in variant->busy_detect_flag, may be set even if busy detection isn't monitored for the current request. This may be the

Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range

2019-06-13 Thread Marc Gonzalez
On 13/06/2019 14:42, Arnd Bergmann wrote: > On Thu, Jun 13, 2019 at 2:16 PM Marc Gonzalez wrote: > >> Chopping max delay in 4 seems excessive. Let's just cut it in half. >> >> Signed-off-by: Marc Gonzalez >> --- >> When max_us=100, old_min was 26 us; new_min would be 50 us >> Was there a good rea

[PATCH 5.1 052/155] f2fs: fix to avoid deadloop in foreground GC

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 793ab1c8a792f8bccd7ae4c5be02bd275410b3af ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203211 - Overview When mounting the attached crafted image and making a new file, I got this error and the error messages keep repeating. The image is inte

[PATCH 5.1 053/155] f2fs: fix to retrieve inline xattr space

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 45a746881576977f85504c21a75547f10c5c0a8e ] With below mkfs and mount option, generic/339 of fstest will report that scratch image becomes corrupted. MKFS_OPTIONS -- -O extra_attr -O project_quota -O inode_checksum -O flexible_inline_xattr -O inode_crtime -f /dev/zram1 MOUNT_OP

[PATCH 5.1 054/155] f2fs: fix to do checksum even if inode page is uptodate

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit b42b179bda9ff11075a6fc2bac4d9e400513679a ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203221 - Overview When mounting the attached crafted image and running program, this error is reported. The image is intentionally fuzzed from a normal f2f

Re: [PATCH 2/2] nbd: add support for nbd as root device

2019-06-13 Thread Roman Stratiienko
On Thu, Jun 13, 2019 at 6:14 PM Eric Blake wrote: > > On 6/13/19 9:45 AM, Roman Stratiienko wrote: > > >> > >> Just throw nbd-client in your initramfs. Every nbd server has it's own > >> handshake protocol, embedding one particular servers handshake protocol > >> into the > >> kernel isn't the a

Re: [PATCH 1/4] dt-bindings: regulator: Add labibb regulator

2019-06-13 Thread Mark Brown
On Wed, Jun 12, 2019 at 04:30:49PM +0530, Nisha Kumari wrote: > +- reg: Specifies the SPMI address and size for > this peripheral. > +- regulator-name:A string used to describe the regulator. Why specifically list regulator-name here? This is just one o

[PATCH 5.1 017/155] initramfs: free initrd memory if opening /initrd.image fails

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 54c7a8916a887f357088f99e9c3a7720cd57d2c8 ] Patch series "initramfs tidyups". I've spent some time chasing down behavior in initramfs and found plenty of opportunity to improve the code. A first stab on that is contained in this series. This patch (of 7): We free the initrd me

[PATCH 5.1 016/155] mm/cma.c: fix crash on CMA allocation if bitmap allocation fails

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 1df3a339074e31db95c4790ea9236874b13ccd87 ] f022d8cb7ec7 ("mm: cma: Don't crash on allocation if CMA area can't be activated") fixes the crash issue when activation fails via setting cma->count as 0, same logic exists if bitmap allocation fails. Link: http://lkml.kernel.org/r/201

[PATCH 5.1 021/155] mm: page_mkclean vs MADV_DONTNEED race

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 024eee0e83f0df52317be607ca521e0fc572aa07 ] MADV_DONTNEED is handled with mmap_sem taken in read mode. We call page_mkclean without holding mmap_sem. MADV_DONTNEED implies that pages in the region are unmapped and subsequent access to the pages in that range is handled as a new

[PATCH 5.1 048/155] f2fs: fix to avoid panic in dec_valid_block_count()

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 5e159cd349bf3a31fb7e35c23a93308eb30f4f71 ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203209 - Overview When mounting the attached crafted image and running program, I got this error. Additionally, it hangs on sync after the this script. The

[PATCH 5.1 051/155] f2fs: fix to do sanity check on valid block count of segment

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit e95bcdb2fefa129f37bd9035af1d234ca92ee4ef ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203233 - Overview When mounting the attached crafted image and running program, following errors are reported. Additionally, it hangs on sync after running

[PATCH 5.1 019/155] mm/memory_hotplug.c: fix the wrong usage of N_HIGH_MEMORY

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit d3ba3ae19751e476b0840a0c9a673a5766fa3219 ] In node_states_check_changes_online(), N_HIGH_MEMORY is used to substitute ZONE_HIGHMEM directly. This is not right. N_HIGH_MEMORY is to mark the memory state of node. Here zone index is checked, which should be compared with 'ZONE_HI

[PATCH 5.1 049/155] f2fs: fix to use inline space only if inline_xattr is enable

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 622927f3b8809206f6da54a6a7ed4df1a7770fce ] With below mkfs and mount option: MKFS_OPTIONS -- -O extra_attr -O project_quota -O inode_checksum -O flexible_inline_xattr -O inode_crtime -f MOUNT_OPTIONS -- -o noinline_xattr We may miss xattr data with below testcase: - mkdir dir

[PATCH 5.1 050/155] f2fs: fix to avoid panic in dec_valid_node_count()

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit ea6d7e72fea49402aa445345aade7a26b81732e3 ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203213 - Overview When mounting the attached crafted image and running program, I got this error. Additionally, it hangs on sync after running the this scrip

[PATCH 5.1 018/155] mm/compaction.c: fix an undefined behaviour

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit dd7ef7bd14640f11763b54f55131000165f48321 ] In a low-memory situation, cc->fast_search_fail can keep increasing as it is unable to find an available page to isolate in fast_isolate_freepages(). As the result, it could trigger an error below, so just compare with the maximum bits

[PATCH 5.1 020/155] mm/cma.c: fix the bitmap status to show failed allocation reason

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 2b59e01a3aa665f751d1410b99fae9336bd424e1 ] Currently one bit in cma bitmap represents number of pages rather than one page, cma->count means cma size in pages. So to find available pages via find_next_zero_bit()/find_next_bit() we should use cma size not in pages but in bits alth

[PATCH 5.1 036/155] drm/nouveau/kms/gv100-: fix spurious window immediate interlocks

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit d2434e4d942c32cadcbdbcd32c58f35098f3b604 ] Cursor position updates were accidentally causing us to attempt to interlock window with window immediate, and without a matching window immediate update, NVDisplay could hang forever in some circumstances. Fixes suspend/resume on (at l

Re: [PATCH 10/13] megaraid_sas: set virt_boundary_mask in the scsi host

2019-06-13 Thread Christoph Hellwig
So before I respin this series, can you help with a way to figure out for mpt3sas and megaraid if a given controller supports NVMe devices at all, so that we don't have to set the virt boundary if not?

[PATCH 5.1 039/155] pwm: meson: Use the spin-lock only to protect register modifications

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit f173747fffdf037c791405ab4f1ec0eb392fc48e ] Holding the spin-lock for all of the code in meson_pwm_apply() can result in a "BUG: scheduling while atomic". This can happen because clk_get_rate() (which is called from meson_pwm_calc()) may sleep. Only hold the spin-lock when modifyi

[PATCH 5.1 012/155] mm/hmm: select mmu notifier when selecting HMM

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 734fb89968900b5c5f8edd5038bd4cdeab8c61d2 ] To avoid random config build issue, select mmu notifier when HMM is selected. In any cases when HMM get selected it will be by users that will also wants the mmu notifier. Link: http://lkml.kernel.org/r/20190403193318.16478-2-jgli...@r

[PATCH 5.1 035/155] objtool: Dont use ignore flag for fake jumps

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit e6da9567959e164f82bc81967e0d5b10dee870b4 ] The ignore flag is set on fake jumps in order to keep add_jump_destinations() from setting their jump_dest, since it already got set when the fake jump was created. But using the ignore flag is a bit of a hack. It's normally used to sk

[PATCH 5.1 034/155] drm/bridge: adv7511: Fix low refresh rate selection

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 67793bd3b3948dc8c8384b6430e036a30a0ecb43 ] The driver currently sets register 0xfb (Low Refresh Rate) based on the value of mode->vrefresh. Firstly, this field is specified to be in Hz, but the magic numbers used by the code are Hz * 1000. This essentially leads to the low refres

[PATCH 5.1 033/155] drm/nouveau: fix duplication of nv50_head_atom struct

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit c4a52d669690423ee3c99d8eda1e69cd0821fcad ] nv50_head_atomic_duplicate_state() makes a copy of nv50_head_atom struct. This patch adds copying of struct member named "or", which previously was left uninitialized in the duplicated structure. Due to this bug, incorrect nhsync and nv

[PATCH 5.1 015/155] mem-hotplug: fix node spanned pages when we have a node with only ZONE_MOVABLE

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 299c83dce9ea3a79bb4b5511d2cb996b6b8e5111 ] 342332e6a925 ("mm/page_alloc.c: introduce kernelcore=mirror option") and later patches rewrote the calculation of node spanned pages. e506b99696a2 ("mem-hotplug: fix node spanned pages when we have a movable node"), but the current code

[PATCH 5.1 037/155] bpf: fix undefined behavior in narrow load handling

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit e2f7fc0ac6957cabff4cecf6c721979b571af208 ] Commit 31fd85816dbe ("bpf: permits narrower load from bpf program context fields") made the verifier add AND instructions to clear the unwanted bits with a mask when doing a narrow load. The mask is computed with (1 << size * 8) - 1

[PATCH 5.1 028/155] mfd: intel-lpss: Set the device in reset state when init

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit dad06532292d77f37fbe831a02948a593500f682 ] In virtualized setup, when system reboots due to warm reset interrupt storm is seen. Call Trace: dump_stack+0x70/0xa5 __report_bad_irq+0x2e/0xc0 note_interrupt+0x248/0x290 ? add_interrupt_randomness+0x30/0x220 handle_irq_event_percpu+0

[PATCH 5.1 029/155] drm/nouveau/disp/dp: respect sink limits when selecting failsafe link configuration

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 13d03e9daf70dab032c03dc172e75bb98ad899c4 ] Where possible, we want the failsafe link configuration (one which won't hang the OR during modeset because of not enough bandwidth for the mode) to also be supported by the sink. This prevents "link rate unsupported by sink" messages w

[PATCH 5.1 026/155] drivers: thermal: tsens: Dont print error message on -EPROBE_DEFER

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit fc7d18cf6a923cde7f5e7ba2c1105bb106d3e29a ] We print a calibration failure message on -EPROBE_DEFER from nvmem/qfprom as follows: [3.003090] qcom-tsens 4a9000.thermal-sensor: version: 1.4 [3.005376] qcom-tsens 4a9000.thermal-sensor: tsens calibration failed [3.113248]

[PATCH 5.1 030/155] mfd: twl6040: Fix device init errors for ACCCTL register

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 48171d0ea7caccf21c9ee3ae75eb370f2a756062 ] I noticed that we can get a -EREMOTEIO errors on at least omap4 duovero: twl6040 0-004b: Failed to write 2d = 19: -121 And then any following register access will produce errors. There 2d offset above is register ACCCTL that gets writ

[PATCH 5.1 031/155] perf/x86/intel: Allow PEBS multi-entry in watermark mode

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit c7a286577d7592720c2f179aadfb325a1ff48c95 ] This patch fixes a restriction/bug introduced by: 583feb08e7f7 ("perf/x86/intel: Fix handling of wakeup_events for multi-entry PEBS") The original patch prevented using multi-entry PEBS when wakeup_events != 0. However given that w

[PATCH 5.1 014/155] mm/memory_hotplug: release memory resource after arch_remove_memory()

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit d9eb1417c77df7ce19abd2e41619e9dceccbdf2a ] Patch series "mm/memory_hotplug: Better error handling when removing memory", v1. Error handling when removing memory is somewhat messed up right now. Some errors result in warnings, others are completely ignored. Memory unplug code c

[PATCH 5.1 032/155] drm/nouveau/kms/gf119-gp10x: push HeadSetControlOutputResource() mthd when encoders change

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit a0b694d0af21c9993d1a39a75fd814bd48bf7eb4 ] HW has error checks in place which check that pixel depth is explicitly provided on DP, while HDMI has a "default" setting that we use. In multi-display configurations with identical modelines, but different protocols (HDMI + DP, in thi

[PATCH 5.1 025/155] thermal: rcar_gen3_thermal: disable interrupt in .remove

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 63f55fcea50c25ae5ad45af92d08dae3b84534c2 ] Currently IRQ remains enabled after .remove, later if device is probed, IRQ is requested before .thermal_init, this may cause IRQ function be called before device is initialized. this patch disables interrupt in .remove, to ensure irq f

[PATCH 5.1 027/155] mfd: tps65912-spi: Add missing of table registration

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 9e364e87ad7f2c636276c773d718cda29d62b741 ] MODULE_DEVICE_TABLE(of, should be called to complete DT OF mathing mechanism and register it. Before this patch: modinfo drivers/mfd/tps65912-spi.ko | grep alias alias: spi:tps65912 After this patch: modinfo drivers/mfd/tps65

[PATCH 5.1 024/155] kernel/sys.c: prctl: fix false positive in validate_prctl_map()

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit a9e73998f9d705c94a8dca9687633adc0f24a19a ] While validating new map we require the @start_data to be strictly less than @end_data, which is fine for regular applications (this is why this nit didn't trigger for that long). These members are set from executable loaders such as el

[PATCH 5.1 013/155] hugetlbfs: on restore reserve error path retain subpool reservation

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 0919e1b69ab459e06df45d3ba6658d281962db80 ] When a huge page is allocated, PagePrivate() is set if the allocation consumed a reservation. When freeing a huge page, PagePrivate is checked. If set, it indicates the reservation should be restored. PagePrivate being set at free huge

[PATCH 5.1 009/155] drm/pl111: Initialize clock spinlock early

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 3e01ae2612bdd7975c74ec7123d7f8f5e6eed795 ] The following warning is seen on systems with broken clock divider. INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 0 PID: 1 Comm: swapper Not t

[PATCH 5.1 022/155] mm/cma_debug.c: fix the break condition in cma_maxchunk_get()

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit f0fd50504a54f5548eb666dc16ddf8394e44e4b7 ] If not find zero bit in find_next_zero_bit(), it will return the size parameter passed in, so the start bit should be compared with bitmap_maxno rather than cma->count. Although getting maxchunk is working fine due to zero value of orde

[PATCH 5.1 000/155] 5.1.10-stable review

2019-06-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.1.10 release. There are 155 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 15 Jun 2019 07:54:40 AM UTC. Anything rec

[PATCH 5.1 007/155] ipc: prevent lockup on alloc_msg and free_msg

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit d6a2946a88f524a47cc9b79279667137899db807 ] msgctl10 of ltp triggers the following lockup When CONFIG_KASAN is enabled on large memory SMP systems, the pages initialization can take a long time, if msgctl10 requests a huge block memory, and it will block rcu scheduler, so release

[PATCH 5.1 023/155] mm/slab.c: fix an infinite loop in leaks_show()

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 745e10146c31b1c6ed3326286704ae251b17f663 ] "cat /proc/slab_allocators" could hang forever on SMP machines with kmemleak or object debugging enabled due to other CPUs running do_drain() will keep making kmemleak_object or debug_objects_cache dirty and unable to escape the first lo

Re: [PATCH 1/4] media: cxd2820r: don't check retval after our own assignemt

2019-06-13 Thread Kieran Bingham
Hi Wolfram, In the title/subject: media: cxd2820r: don't check retval after our own assignemt s/assignemt/assignment/ On 13/06/2019 16:54, Wolfram Sang wrote: > No need to check a retval after we assigned a constant to it. Hrm... Good spots! > Signed-off-by: Wolfram Sang > --- > drivers/m

[PATCH 5.1 005/155] fs/fat/file.c: issue flush after the writeback of FAT

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit bd8309de0d60838eef6fb575b0c4c7e95841cf73 ] fsync() needs to make sure the data & meta-data of file are persistent after the return of fsync(), even when a power-failure occurs later. In the case of fat-fs, the FAT belongs to the meta-data of file, so we need to issue a flush aft

[PATCH 5.1 003/155] media: rockchip/vpu: Add missing dont_use_autosuspend() calls

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 5c5b90f5cbad77dc15d8b5582efdb2e362bcd710 ] Those calls are needed to restore a clean PM state when the probe fails or when the driver is unloaded such that future ->probe() calls can initialize runtime PM again. Signed-off-by: Jonas Karlman Signed-off-by: Boris Brezillon Signe

[PATCH 5.1 004/155] rapidio: fix a NULL pointer dereference when create_workqueue() fails

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 23015b22e47c5409620b1726a677d69e5cd032ba ] In case create_workqueue fails, the fix releases resources and returns -ENOMEM to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Acked-by: Alexandre Bounine Cc: Matt Porter Signed-off-by: Andrew Morton Signed-off-by: Linu

[PATCH 5.1 011/155] ARM: prevent tracing IPI_CPU_BACKTRACE

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit be167862ae7dd85c56d385209a4890678e1b0488 ] Patch series "compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING", v3. This patch (of 11): When function tracing for IPIs is enabled, we get a warning for an overflow of the ipi_types array with the IPI_CPU_BACKTRACE type as

[PATCH 5.1 006/155] sysctl: return -EINVAL if val violates minmax

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit e260ad01f0aa9e96b5386d5cd7184afd949dc457 ] Currently when userspace gives us a values that overflow e.g. file-max and other callers of __do_proc_doulongvec_minmax() we simply ignore the new value and leave the current value untouched. This can be problematic as it gives the ill

[PATCH 4.19 104/118] ice: Add missing case in print_link_msg for printing flow control

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 203a068ac9e2722e4d118116acaa3a5586f9468a ] Currently we aren't checking for the ICE_FC_NONE case for the current flow control mode. This is causing "Unknown" to be printed for the current flow control method if flow control is disabled. Fix this by adding the case for ICE_FC_NONE

[PATCH 5.1 001/155] Revert "drm: allow render capable master with DRM_AUTH ioctls"

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit dbb92471674a48892f5e50779425e03388073ab9 ] This reverts commit 8059add0478e29cb641936011a8fcc9ce9fd80be. This commit while seemingly a good idea, breaks a radv check, for a node being master because something succeeds where it failed before now. Apply the Linus rule, revert ear

[PATCH 5.1 010/155] mm/mprotect.c: fix compilation warning because of unused mm variable

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 94393c78964c432917014e3a456fa15c3e78f741 ] Since 0cbe3e26abe0 ("mm: update ptep_modify_prot_start/commit to take vm_area_struct as arg") the only place that uses the local 'mm' variable in change_pte_range() is the call to set_pte_at(). Many architectures define set_pte_at() as

[PATCH 4.19 099/118] video: hgafb: fix potential NULL pointer dereference

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit ec7f6aad57ad29e4e66cc2e18e1e1599ddb02542 ] When ioremap fails, hga_vram should not be dereferenced. The fix check the failure to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Cc: Aditya Pakki Cc: Ferenc Bakonyi [b.zolnierkie: minor patch summary fixup] Signed-off-

[PATCH 4.19 105/118] dmaengine: idma64: Use actual device for DMA transfers

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 5ba846b1ee0792f5a596b9b0b86d6e8cdebfab06 ] Intel IOMMU, when enabled, tries to find the domain of the device, assuming it's a PCI one, during DMA operations, such as mapping or unmapping. Since we are splitting the actual PCI device to couple of children via MFD framework (see dr

[PATCH 4.19 107/118] ARM: dts: exynos: Always enable necessary APIO_1V8 and ABB_1V8 regulators on Arndale Octa

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 5ab99cf7d5e96e3b727c30e7a8524c976bd3723d ] The PVDD_APIO_1V8 (LDO2) and PVDD_ABB_1V8 (LDO8) regulators were turned off by Linux kernel as unused. However they supply critical parts of SoC so they should be always on: 1. PVDD_APIO_1V8 supplies SYS pins (gpx[0-3], PSHOLD), HDMI l

Re: [PATCH] lib: dynamic_debug: no need to check return value of debugfs_create functions

2019-06-13 Thread Jason Baron
On 6/13/19 11:59 AM, Greg Kroah-Hartman wrote: > On Thu, Jun 13, 2019 at 10:33:23AM -0400, Jason Baron wrote: >> On 6/12/19 11:35 AM, Greg Kroah-Hartman wrote: >>> When calling debugfs functions, there is no need to ever check the >>> return value. The function can work or not, but the code log

Re: [RFC V2 00/16] objtool: Add support for Arm64

2019-06-13 Thread Josh Poimboeuf
On Thu, Jun 13, 2019 at 04:55:31PM +0100, Raphael Gault wrote: > Hi Josh, > > On 5/28/19 11:24 PM, Josh Poimboeuf wrote: > > On Tue, May 21, 2019 at 12:50:57PM +, Raphael Gault wrote: > > > Hi Josh, > > > > > > Thanks for offering your help and sorry for the late answer. > > > > > > My under

[PATCH 4.19 103/118] gpio: gpio-omap: add check for off wake capable gpios

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit da38ef3ed10a09248e13ae16530c2c6d448dc47d ] We are currently assuming all GPIOs are non-wakeup capable GPIOs as we not configuring the bank->non_wakeup_gpios like we used to earlier with platform_data. Let's add omap_gpio_is_off_wakeup_capable() to make the handling clearer while

[PATCH 4.19 106/118] pwm: tiehrpwm: Update shadow register for disabling PWMs

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit b00ef53053191d3025c15e8041699f8c9d132daf ] It must be made sure that immediate mode is not already set, when modifying shadow register value in ehrpwm_pwm_disable(). Otherwise modifications to the action-qualifier continuous S/W force register(AQSFRC) will be done in the active r

[PATCH 4.19 108/118] pwm: Fix deadlock warning when removing PWM device

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 347ab9480313737c0f1aaa08e8f2e1a791235535 ] This patch fixes deadlock warning if removing PWM device when CONFIG_PROVE_LOCKING is enabled. This issue can be reproceduced by the following steps on the R-Car H3 Salvator-X board if the backlight is disabled: # cd /sys/class/pwm/pw

[PATCH 5.1 002/155] media: rockchip/vpu: Fix/re-order probe-error/remove path

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit fc8670d1f72b746ff3a5fe441f1fca4c4dba0e6f ] media_device_cleanup() and v4l2_m2m_unregister_media_controller() were missing in the probe error path. While at it, re-order calls in the remove path to unregister/cleanup things in the reverse order they were initialized/registered. S

[PATCH 4.19 118/118] drm/vc4: fix fb references in async update

2019-06-13 Thread Greg Kroah-Hartman
From: Helen Koike commit c16b85559dcfb5a348cc085a7b4c75ed49b05e2c upstream. Async update callbacks are expected to set the old_fb in the new_state so prepare/cleanup framebuffers are balanced. Calling drm_atomic_set_fb_for_plane() (which gets a reference of the new fb and put the old fb) is not

[PATCH 4.19 117/118] ovl: support stacked SEEK_HOLE/SEEK_DATA

2019-06-13 Thread Greg Kroah-Hartman
From: Amir Goldstein commit 9e46b840c7053b5f7a245e98cd239b60d189a96c upstream. Overlay file f_pos is the master copy that is preserved through copy up and modified on read/write, but only real fs knows how to SEEK_HOLE/SEEK_DATA and real fs may impose limitations that are more strict than ->s_ma

[PATCH 4.19 102/118] PCI: xilinx: Check for __get_free_pages() failure

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 699ca30162686bf305cdf94861be02eb0cf9bda2 ] If __get_free_pages() fails, return -ENOMEM to avoid a NULL pointer dereference. Signed-off-by: Kangjie Lu Signed-off-by: Lorenzo Pieralisi Reviewed-by: Steven Price Reviewed-by: Mukesh Ojha Signed-off-by: Sasha Levin --- drivers/

[PATCH v9 7/7] ia64: hide build option IOMMU_DEFAULT_PASSTHROUGH

2019-06-13 Thread Zhen Lei
The DMA mode PASSTHROUGH is not used on ia64. Signed-off-by: Zhen Lei --- drivers/iommu/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index 70741fd73b07785..63506f1cad3d149 100644 --- a/drivers/iommu/Kconfig +++ b/driver

[PATCH 4.19 101/118] block, bfq: increase idling for weight-raised queues

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 778c02a236a8728bb992de10ed1f12c0be5b7b0e ] If a sync bfq_queue has a higher weight than some other queue, and remains temporarily empty while in service, then, to preserve the bandwidth share of the queue, it is necessary to plug I/O dispatching until a new request arrives for th

[PATCH v9 6/7] iommu/amd: add support for IOMMU default DMA mode build options

2019-06-13 Thread Zhen Lei
The default DMA mode of AMD IOMMU is LAZY, this patch make it can be set to STRICT at build time. It can be overridden by boot option. There is no functional change. Signed-off-by: Zhen Lei --- drivers/iommu/Kconfig | 2 +- drivers/iommu/amd_iommu_init.c | 2 +- 2 files changed, 2 inse

Re: [PATCH 2/4] media: mn88472: don't check retval after our own assignemt

2019-06-13 Thread Kieran Bingham
Hi Wolfram, Same comment in title (on all 4 patches in fact) s/assignemt/assignment/ On 13/06/2019 16:54, Wolfram Sang wrote: > No need to check a retval after we assigned a constant to it. > > Signed-off-by: Wolfram Sang > --- > drivers/media/dvb-frontends/mn88472.c | 6 ++ > 1 f

[PATCH 4.19 114/118] Revert "Bluetooth: Align minimum encryption key size for LE and BR/EDR connections"

2019-06-13 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman This reverts commit 38f092c41cebaff589e88cc22686b289a6840559 which is commit d5bb334a8e171b262e48f378bd2096c0ea458265 upstream. Lots of people have reported issues with this patch, and as there does not seem to be a fix going into Linus's kernel tree any time soon, rever

[PATCH 4.19 115/118] Revert "drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)"

2019-06-13 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman This reverts commit 610382337557bd2057d9b47f996af0b6ff827a2b which is commit b30a43ac7132cdda833ac4b13dd1ebd35ace14b7 upstream. Sven reports: Commit 1e07d63749 ("drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)") has caused a buil

[PATCH 4.19 111/118] soc: renesas: Identify R-Car M3-W ES1.3

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 15160f6de0bba712fcea078c5ac7571fe33fcd5d ] The Product Register of R-Car M3-W ES1.3 incorrectly identifies the SoC revision as ES2.1. Add a workaround to fix this. Signed-off-by: Takeshi Kihara Signed-off-by: Geert Uytterhoeven Signed-off-by: Simon Horman Signed-off-by: Sasha

[PATCH 4.19 110/118] usb: typec: fusb302: Check vconn is off when we start toggling

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 32a155b1a83d6659e2272e8e1eec199667b1897e ] The datasheet says the vconn MUST be off when we start toggling. The tcpm.c state-machine is responsible to make sure vconn is off, but lets add a WARN to catch any cases where vconn is not off for some reason. Signed-off-by: Hans de Go

[PATCH 4.19 113/118] percpu: do not search past bitmap when allocating an area

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 8c43004af01635cc9fbb11031d070e5e0d327ef2 ] pcpu_find_block_fit() guarantees that a fit is found within PCPU_BITMAP_BLOCK_BITS. Iteration is used to determine the first fit as it compares against the block's contig_hint. This can lead to incorrectly scanning past the end of the bi

[PATCH 4.19 116/118] ovl: check the capability before cred overridden

2019-06-13 Thread Greg Kroah-Hartman
From: Jiufei Xue commit 98487de318a6f33312471ae1e2afa16fbf8361fe upstream. We found that it return success when we set IMMUTABLE_FL flag to a file in docker even though the docker didn't have the capability CAP_LINUX_IMMUTABLE. The commit d1d04ef8572b ("ovl: stack file ops") and dab5ca8fd9dd ("

[PATCH 4.19 109/118] ARM: exynos: Fix undefined instruction during Exynos5422 resume

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 4d8e3e951a85620272ce27f2c738a3eeef8c ] During early system resume on Exynos5422 with performance counters enabled the following kernel oops happens: Internal error: Oops - undefined instruction: 0 [#1] PREEMPT SMP ARM Modules linked in: CPU: 0 PID: 1433 Comm: bas

[PATCH] Drop unused isa_page_to_bus

2019-06-13 Thread Stephen Kitt
isa_page_to_bus is deprecated and no longer used anywhere, this patch removes it entirely. Signed-off-by: Stephen Kitt --- arch/alpha/include/asm/io.h | 5 - arch/arm/include/asm/io.h | 1 - arch/mips/include/asm/io.h | 2 -- arch/x86/include/asm/io.h | 1 - 4 files changed, 9 deletions

Re: [PATCH 3/4] media: mn88473: don't check retval after our own assignemt

2019-06-13 Thread Kieran Bingham
Hi Wolfram, On 13/06/2019 16:54, Wolfram Sang wrote: > No need to check a retval after we assigned a constant to it. > > Signed-off-by: Wolfram Sang With title fixed. Reviewed-by: Kieran Bingham > --- > drivers/media/dvb-frontends/mn88473.c | 6 ++ > 1 file changed, 2 insertions(+), 4 d

Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range

2019-06-13 Thread Doug Anderson
Hi, On Thu, Jun 13, 2019 at 9:04 AM Marc Gonzalez wrote: > > On 13/06/2019 14:42, Arnd Bergmann wrote: > > > On Thu, Jun 13, 2019 at 2:16 PM Marc Gonzalez wrote: > > > >> Chopping max delay in 4 seems excessive. Let's just cut it in half. > >> > >> Signed-off-by: Marc Gonzalez > >> --- > >> When

[PATCH 4.19 112/118] gpio: vf610: Do not share irq_chip

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 338aa10750ba24d04beeaf5dc5efc032e5cf343f ] Fix the warning produced by gpiochip_set_irq_hooks() by allocating a dedicated IRQ chip per GPIO chip/port. Signed-off-by: Andrey Smirnov Cc: Linus Walleij Cc: Bartosz Golaszewski Cc: Chris Healy Cc: Andrew Lunn Cc: Heiner Kallweit

[PATCH 4.19 067/118] nfsd: allow fh_want_write to be called twice

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 0b8f62625dc309651d0efcb6a6247c933acd8b45 ] A fuzzer recently triggered lockdep warnings about potential sb_writers deadlocks caused by fh_want_write(). Looks like we aren't careful to pair each fh_want_write() with an fh_drop_write(). It's not normally a problem since fh_put()

[PATCH 4.19 076/118] PCI: keystone: Prevent ARM32 specific code to be compiled for ARM64

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit f316a2b53cd7f37963ae20ec7072eb27a349a4ce ] hook_fault_code() is an ARM32 specific API for hooking into data abort. AM65X platforms (that integrate ARM v8 cores and select CONFIG_ARM64 as arch) rely on pci-keystone.c but on them the enumeration of a non-present BDF does not trigg

[PATCH 4.19 100/118] video: imsttfb: fix potential NULL pointer dereferences

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 1d84353d205a953e2381044953b7fa31c8c9702d ] In case ioremap fails, the fix releases resources and returns -ENOMEM to avoid NULL pointer dereferences. Signed-off-by: Kangjie Lu Cc: Aditya Pakki Cc: Finn Thain Cc: Rob Herring Cc: Greg Kroah-Hartman [b.zolnierkie: minor patch s

[PATCH 4.19 072/118] net: thunderbolt: Unregister ThunderboltIP protocol handler when suspending

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 9872760eb7b1d4f6066ad8b560714a5d0a728fdb ] The XDomain protocol messages may start as soon as Thunderbolt control channel is started. This means that if the other host starts sending ThunderboltIP packets early enough they will be passed to the network driver which then gets conf

[PATCH 4.19 075/118] platform/chrome: cros_ec_proto: check for NULL transfer function

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 94d4e7af14a1170e34cf082d92e4c02de9e9fb88 ] As new transfer mechanisms are added to the EC codebase, they may not support v2 of the EC protocol. If the v3 initial handshake transfer fails, the kernel will try and call cmd_xfer as a fallback. If v2 is not supported, cmd_xfer will

[PATCH 4.19 073/118] x86/PCI: Fix PCI IRQ routing table memory leak

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit ea094d53580f40c2124cef3d072b73b2425e7bfd ] In pcibios_irq_init(), the PCI IRQ routing table 'pirq_table' is first found through pirq_find_routing_table(). If the table is not found and CONFIG_PCI_BIOS is defined, the table is then allocated in pcibios_get_irq_routing_table() usi

Re: [PATCH 4/4] media: zd1301_demod: don't check retval after our own assignemt

2019-06-13 Thread Kieran Bingham
Hi Wolfram, On 13/06/2019 16:54, Wolfram Sang wrote: > No need to check a retval after we assigned a constant to it. With title fixed, Reviewed-by: Kieran Bingham > > Signed-off-by: Wolfram Sang > --- > drivers/media/dvb-frontends/zd1301_demod.c | 3 +-- > 1 file changed, 1 insertion(+), 2

[PATCH 4.19 074/118] i40e: Queues are reserved despite "Invalid argument" error

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 3e957b377bf4262aec2dd424f28ece94e36814d4 ] Added a new local variable in the i40e_setup_tc function named old_queue_pairs so num_queue_pairs can be restored to the correct value in case configuring queue channels fails. Additionally, moved the exit label in the i40e_setup_tc func

[PATCH 4.19 071/118] switchtec: Fix unintended mask of MRPC event

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 083c1b5e50b701899dc32445efa8b153685260d5 ] When running application tool switchtec-user's `firmware update` and `event wait` commands concurrently, sometimes the firmware update speed reduced significantly. It is because when the MRPC event happened after MRPC event occurrence c

Re: [PATCH] perf cgroups: Don't rotate events for cgroups unnecessarily

2019-06-13 Thread Liang, Kan
On 6/1/2019 4:27 AM, Ian Rogers wrote: Currently perf_rotate_context assumes that if the context's nr_events != nr_active a rotation is necessary for perf event multiplexing. With cgroups, nr_events is the total count of events for all cgroups and nr_active will not include events in a cgroup

[PATCH v9 1/7] iommu: enhance IOMMU default DMA mode build options

2019-06-13 Thread Zhen Lei
First, add build option IOMMU_DEFAULT_{LAZY|STRICT}, so that we have the opportunity to set {lazy|strict} mode as default at build time. Then put the three config options in an choice, make people can only choose one of the three at a time. Signed-off-by: Zhen Lei --- drivers/iommu/Kconfig | 44

[PATCH 4.19 097/118] PCI: rcar: Fix 64bit MSI message address handling

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 954b4b752a4c4e963b017ed8cef4c453c5ed308d ] The MSI message address in the RC address space can be 64 bit. The R-Car PCIe RC supports such a 64bit MSI message address as well. The code currently uses virt_to_phys(__get_free_pages()) to obtain a reserved page for the MSI message ad

[PATCH 4.19 096/118] PCI: rcar: Fix a potential NULL pointer dereference

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit f0d14edd2ba43b995bef4dd5da5ffe0ae19321a1 ] In case __get_free_pages() fails and returns NULL, fix the return value to -ENOMEM and release resources to avoid dereferencing a NULL pointer. Signed-off-by: Kangjie Lu Signed-off-by: Lorenzo Pieralisi Reviewed-by: Ulrich Hecht Revi

[PATCH 4.19 098/118] scsi: qla2xxx: Reset the FCF_ASYNC_{SENT|ACTIVE} flags

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 0257eda08e806b82ee1fc90ef73583b6f022845c ] Driver maintains state machine for processing and completing switch commands. This patch resets FCF_ASYNC_{SENT|ACTIVE} flag to indicate if the previous command is active or sent, in order for next GPSC command to advance the state machi

[PATCH 4.19 094/118] power: supply: max14656: fix potential use-before-alloc

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 0cd0e49711556d2331a06b1117b68dd786cb54d2 ] Call order on probe(): - max14656_hw_init() enables interrupts on the chip - devm_request_irq() starts processing interrupts, isr could be called immediately -isr: schedules delayed work (irq_work) -irq_work: calls power_supply

[PATCH 4.19 093/118] platform/x86: intel_pmc_ipc: adding error handling

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit e61985d0550df8c2078310202aaad9b41049c36c ] If punit or telemetry device initialization fails, pmc driver should unregister and return failure. This change is to fix a kernel panic when removing kernel module intel_pmc_ipc. Fixes: 48c1917088ba ("platform:x86: Add Intel telemetry

[PATCH 4.19 095/118] net: hns3: return 0 and print warning when hit duplicate MAC

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 72110b567479f0282489a9b3747e76d8c67d75f5 ] When set 2 same MAC to different function of one port, IMP will return error as the later one may modify the origin one. This will cause bond fail for 2 VFs of one port. Driver just print warning and return 0 with this patch, so if set

Re: [RFC 00/10] Process-local memory allocations for hiding KVM secrets

2019-06-13 Thread Andy Lutomirski
On Thu, Jun 13, 2019 at 12:53 AM Alexander Graf wrote: > > > On 13.06.19 03:30, Andy Lutomirski wrote: > > On Wed, Jun 12, 2019 at 1:27 PM Andy Lutomirski wrote: > >> > >> > >>> On Jun 12, 2019, at 12:55 PM, Dave Hansen wrote: > >>> > On 6/12/19 10:08 AM, Marius Hillenbrand wrote: > Th

[PATCH 4.19 070/118] iommu/arm-smmu-v3: Dont disable SMMU in kdump kernel

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 3f54c447df34ff9efac7809a4a80fd3208efc619 ] Disabling the SMMU when probing from within a kdump kernel so that all incoming transactions are terminated can prevent the core of the crashed kernel from being transferred off the machine if all I/O devices are behind the SMMU. Instea

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