[PATCH 4.14 72/81] 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.14 69/81] 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 4.14 66/81] 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.14 76/81] 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.14 78/81] 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.14 68/81] 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 4.14 80/81] 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 140ae656e3b7476719a2b15b96527c73c5acf90b 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.14 81/81] drm: dont block fb changes for async plane updates

2019-06-13 Thread Greg Kroah-Hartman
From: Helen Koike commit 89a4aac0ab0e6f5eea10d7bf4869dd15c3de2cd4 upstream. In the case of a normal sync update, the preparation of framebuffers (be it calling drm_atomic_helper_prepare_planes() or doing setups with drm_framebuffer_get()) are performed in the new_state and the respective cleanup

[PATCH 4.14 45/81] vfio: Fix WARNING "do not call blocking ops when !TASK_RUNNING"

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 41be3e2618174fdf3361e49e64f2bf530f40c6b0 ] vfio_dev_present() which is the condition to wait_event_interruptible_timeout(), will call vfio_group_get_device and try to acquire the mutex group->device_lock. wait_event_interruptible_timeout() will set the state of the current task

[PATCH 4.14 65/81] 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.14 75/81] 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 4.14 74/81] 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

Re: CFQ idling kills I/O performance on ext4 with blkio cgroup controller

2019-06-13 Thread Jens Axboe
On 6/12/19 1:36 PM, Srivatsa S. Bhat wrote: > > [ Adding Greg to CC ] > > On 6/12/19 6:04 AM, Jan Kara wrote: >> On Tue 11-06-19 15:34:48, Srivatsa S. Bhat wrote: >>> On 6/2/19 12:04 AM, Srivatsa S. Bhat wrote: On 5/30/19 3:45 AM, Paolo Valente wrote: > >>> [...] > At any rate, since

[PATCH 4.14 77/81] 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.14 67/81] 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.14 79/81] 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 2fa7a155b25160696cd77cdd995536cf5e172e20 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.14 40/81] nvme-pci: unquiesce admin queue on shutdown

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit c8e9e9b7646ebe1c5066ddc420d7630876277eb4 ] Just like IO queues, the admin queue also will not be restarted after a controller shutdown. Unquiesce this queue so that we do not block request dispatch on a permanently disabled controller. Reported-by: Yufen Yu Signed-off-by: Keith

[PATCH 4.14 62/81] 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.14 58/81] ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ipg" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 8979117765c19edc3b01cc0ef853537bf93eea4b ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX6SX_CLK_SDMA res

[PATCH 4.14 57/81] ARM: dts: imx6ul: Specify IMX6UL_CLK_IPG as "ipg" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 7b3132ecefdd1fcdf6b86e62021d0e55ea8034db ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX6UL_CLK_SDMA res

[PATCH 4.14 43/81] fuse: retrieve: cap requested size to negotiated max_write

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 7640682e67b33cab8628729afec8ca92b851394f ] FUSE filesystem server and kernel client negotiate during initialization phase, what should be the maximum write size the client will ever issue. Correspondingly the filesystem server then queues sys_read calls to read requests with buff

[PATCH 4.14 61/81] ALSA: seq: Protect in-kernel ioctl calls with mutex

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit feb689025fbb6f0aa6297d3ddf97de945ea4ad32 ] ALSA OSS sequencer calls the ioctl function indirectly via snd_seq_kernel_client_ctl(). While we already applied the protection against races between the normal ioctls and writes via the client's ioctl_mutex, this code path was left unt

[PATCH 4.14 42/81] nvmem: core: fix read buffer in place

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 2fe518fecb3a4727393be286db9804cd82ee2d91 ] When the bit_offset in the cell is zero, the pointer to the msb will not be properly initialized (ie, will still be pointing to the first byte in the buffer). This being the case, if there are bits to clear in the msb, those will be lef

[PATCH 4.14 44/81] 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.14 41/81] ALSA: hda - Register irq handler after the chip initialization

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit f495222e28275222ab6fd93813bd3d462e16d340 ] Currently the IRQ handler in HD-audio controller driver is registered before the chip initialization. That is, we have some window opened between the azx_acquire_irq() call and the CORB/RIRB setup. If an interrupt is triggered in this

[PATCH 4.14 63/81] 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.14 39/81] misc: pci_endpoint_test: Fix test_reg_bar to be updated in pci_endpoint_test

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 8f220664570e755946db1282f48e07f26e1f2cb4 ] commit 834b90519925 ("misc: pci_endpoint_test: Add support for PCI_ENDPOINT_TEST regs to be mapped to any BAR") while adding test_reg_bar in order to map PCI_ENDPOINT_TEST regs to be mapped to any BAR failed to update test_reg_bar in pci

[PATCH 4.14 60/81] PCI: rpadlpar: Fix leaked device_node references in add/remove paths

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit fb26228bfc4ce3951544848555c0278e2832e618 ] The find_dlpar_node() helper returns a device node with its reference incremented. Both the add and remove paths use this helper for find the appropriate node, but fail to release the reference when done. Annotate the find_dlpar_node()

[PATCH 4.14 54/81] ARM: dts: imx53: Specify IMX5_CLK_IPG as "ahb" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 28c168018e0902c67eb9c60d0fc4c8aa166c4efe ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX5_CLK_SDMA resul

[PATCH 4.14 38/81] iommu/vt-d: Set intel_iommu_gfx_mapped correctly

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit cf1ec4539a50bdfe688caad4615ca47646884316 ] The intel_iommu_gfx_mapped flag is exported by the Intel IOMMU driver to indicate whether an IOMMU is used for the graphic device. In a virtualized IOMMU environment (e.g. QEMU), an include-all IOMMU is used for graphic device. This flag

[PATCH 4.14 55/81] ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ahb" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit cc839d0f8c284fcb7591780b568f13415bbb737c ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX6SL_CLK_SDMA res

[PATCH 4.14 56/81] ARM: dts: imx7d: Specify IMX7D_CLK_IPG as "ipg" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 412b032a1dc72fc9d1c258800355efa6671b6315 ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX7D_CLK_SDMA resu

[PATCH 4.14 59/81] ARM: dts: imx6qdl: Specify IMX6QDL_CLK_IPG as "ipg" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit b14c872eebc501b9640b04f4a152df51d6eaf2fc ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX6QDL_CLK_SDMA re

Re: [PATCH] fault-inject: clean up debugfs file creation logic

2019-06-13 Thread Akinobu Mita
2019年6月12日(水) 18:58 Greg Kroah-Hartman : > > There is no need to check the return value of a debugfs_create_file > call, a caller should never change what they do depending on if debugfs > is working properly or not, so remove the checks, simplifying the logic > in the file a lot. > > Also fix up t

[PATCH 4.14 53/81] ARM: dts: imx50: Specify IMX5_CLK_IPG as "ahb" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit b7b4fda2636296471e29b78c2aa9535d7bedb7a0 ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX5_CLK_SDMA resul

[PATCH 4.14 52/81] ARM: dts: imx51: Specify IMX5_CLK_IPG as "ahb" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 918bbde8085ae147a43dcb491953e0dd8f3e9d6a ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX5_CLK_SDMA resul

[PATCH 4.14 37/81] blk-mq: move cancel of requeue_work into blk_mq_release

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit fbc2a15e3433058582e5635aabe48a3011a644a8 ] With holding queue's kobject refcount, it is safe for driver to schedule requeue. However, blk_mq_kick_requeue_list() may be called after blk_sync_queue() is done because of concurrent requeue activities, then requeue work may not be com

[PATCH 4.14 49/81] soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 89e28da82836530f1ac7a3a32fecc31f22d79b3e ] When building with -Wsometimes-uninitialized, Clang warns: drivers/soc/mediatek/mtk-pmic-wrap.c:1358:6: error: variable 'rdata' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized] If pwrap_write re

[PATCH 4.14 50/81] clk: rockchip: Turn on "aclk_dmac1" for suspend on rk3288

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 57a20248ef3e429dc822f0774bc4e00136c46c83 ] Experimentally it can be seen that going into deep sleep (specifically setting PMU_CLR_DMA and PMU_CLR_BUS in RK3288_PMU_PWRMODE_CON1) appears to fail unless "aclk_dmac1" is on. The failure is that the system never signals that it made

[PATCH v3 1/2] staging: erofs: add requirements field in superblock

2019-06-13 Thread Gao Xiang
There are some backward incompatible features pending for months, mainly due to on-disk format expensions. However, we should ensure that it cannot be mounted with old kernels. Otherwise, it will causes unexpected behaviors. Fixes: ba2b77a82022 ("staging: erofs: add super block operations") Cc:

[PATCH 4.14 48/81] 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.14 46/81] 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

[PATCH 4.14 51/81] soc: rockchip: Set the proper PWM for rk3288

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit bbdc00a7de24cc90315b1775fb74841373fe12f7 ] The rk3288 SoC has two PWM implementations available, the "old" implementation and the "new" one. You can switch between the two of them by flipping a bit in the grf. The "old" implementation is the default at chip power up but isn't t

[PATCH 4.14 47/81] 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

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-13 Thread Dan Williams
On Thu, Jun 13, 2019 at 8:14 AM Jason Gunthorpe wrote: > > On Wed, Jun 12, 2019 at 06:14:46PM -0700, Dan Williams wrote: > > > Effectively, we would need a way for an admin to close a specific file > > > descriptor (or set of fds) which point to that file. AFAIK there is no > > > way to > > > do

[PATCH 4.14 19/81] 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

Re: infinite loop in read_hpet from ktime_get_boot_fast_ns

2019-06-13 Thread Thomas Gleixner
On Thu, 13 Jun 2019, Jason A. Donenfeld wrote: > Hey Arnd, > > On Thu, Jun 13, 2019 at 5:40 PM Arnd Bergmann wrote: > > A seqlock is a very cheap synchronization primitive, I would actually > > guess that this is faster than most implementations of sched_clock() > > that access a hardware registe

[PATCH 4.14 14/81] 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 4.14 18/81] 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] docs: stop suggesting strlcpy

2019-06-13 Thread Stephen Kitt
Since strlcpy is deprecated, the documentation shouldn't suggest using it. This patch fixes the examples to use strscpy instead. It also uses sizeof instead of underlying constants as far as possible, to simplify future changes to the corresponding data structures. Signed-off-by: Stephen Kitt ---

Re: [PATCH v7 01/10] mm: postpone kmem_cache memcg pointer initialization to memcg_link_cache()

2019-06-13 Thread Roman Gushchin
On Wed, Jun 12, 2019 at 07:04:23PM -0700, Andrew Morton wrote: > On Tue, 11 Jun 2019 16:18:04 -0700 Roman Gushchin wrote: > > > Subject: [PATCH v7 01/10] mm: postpone kmem_cache memcg pointer > > initialization to memcg_link_cache()] > > I think mm is too large a place for patches to be describ

[PATCH 4.14 15/81] 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 4.14 10/81] 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 4.14 16/81] 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 4.14 13/81] 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 4.14 35/81] watchdog: imx2_wdt: Fix set_timeout for big timeout values

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit b07e228eee69601addba98b47b1a3850569e5013 ] The documentated behavior is: if max_hw_heartbeat_ms is implemented, the minimum of the set_timeout argument and max_hw_heartbeat_ms should be used. This patch implements this behavior. Previously only the first 7bits were used and the i

[PATCH 4.14 34/81] mips: Make sure dt memory regions are valid

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 93fa5b280761a4dbb14c5330f260380385ab2b49 ] There are situations when memory regions coming from dts may be too big for the platform physical address space. This especially concerns XPA-capable systems. Bootloader may determine more than 4GB memory available and pass it to the ker

[PATCH 01/10] iommu/exynos: convert to SPDX license tags

2019-06-13 Thread Yangtao Li
Updates license to use SPDX-License-Identifier. Signed-off-by: Yangtao Li --- drivers/iommu/exynos-iommu.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 05c6bc099d62..938a33d2f89d 100644 --- a/drivers/iom

[PATCH 4.14 17/81] 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] arm64: dts: rockchip: Update DWC3 modules on RK3399 SoCs

2019-06-13 Thread Enric Balletbo i Serra
As per binding documentation [1], the DWC3 core should have the "ref", "bus_early" and "suspend" clocks. As explained in the binding, those clocks are required for new platforms but not for existing platforms before commit fe8abf332b8f ("usb: dwc3: support clocks and resets for DWC3 core"). Howeve

[PATCH 08/10] iommu/sysfs: convert to SPDX license tags

2019-06-13 Thread Yangtao Li
Updates license to use SPDX-License-Identifier. Signed-off-by: Yangtao Li --- drivers/iommu/iommu-sysfs.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/iommu/iommu-sysfs.c b/drivers/iommu/iommu-sysfs.c index 44127d54e943..a193758c8122 100644 --- a/drivers/iommu/

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

2019-06-13 Thread Bjorn Andersson
On Wed 12 Jun 04:00 PDT 2019, Nisha Kumari wrote: > Adding the devicetree binding for labibb regulator. > > Signed-off-by: Nisha Kumari > --- > .../bindings/regulator/qcom-labibb-regulator.txt | 57 > ++ > 1 file changed, 57 insertions(+) > create mode 100644 > Document

Re: [PATCH 4.14 61/81] ALSA: seq: Protect in-kernel ioctl calls with mutex

2019-06-13 Thread Sasha Levin
On Thu, Jun 13, 2019 at 05:44:15PM +0200, Takashi Iwai wrote: On Thu, 13 Jun 2019 17:39:46 +0200, Sasha Levin wrote: On Thu, Jun 13, 2019 at 11:13:55AM +0200, Takashi Iwai wrote: >On Thu, 13 Jun 2019 11:11:22 +0200, >Greg Kroah-Hartman wrote: >> >> On Thu, Jun 13, 2019 at 11:02:54AM +0200, Taka

[PATCH 04/10] iommu/qcom: convert to SPDX license tags

2019-06-13 Thread Yangtao Li
Updates license to use SPDX-License-Identifier. Signed-off-by: Yangtao Li --- drivers/iommu/qcom_iommu.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/iommu/qcom_iommu.c b/drivers/iommu/qcom_iommu.c index 8cdd3f059513..ad913720d7dd 100644 --- a/drivers

[PATCH 4.14 31/81] 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 4.14 30/81] percpu: remove spurious lock dependency between percpu and sched

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 198790d9a3aeaef5792d33a560020861126edc22 ] In free_percpu() we sometimes call pcpu_schedule_balance_work() to queue a work item (which does a wakeup) while holding pcpu_lock. This creates an unnecessary lock dependency between pcpu_lock and the scheduler's pi_lock. There are oth

[PATCH 4.14 12/81] 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

[PATCH 4.14 29/81] 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 4.14 24/81] 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 4.14 33/81] 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

[PATCH 4.14 25/81] ntp: Allow TAI-UTC offset to be set to zero

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit fdc6bae940ee9eb869e493990540098b8c0fd6ab ] The ADJ_TAI adjtimex mode sets the TAI-UTC offset of the system clock. It is typically set by NTP/PTP implementations and it is automatically updated by the kernel on leap seconds. The initial value is zero (which applications may interp

[PATCH 4.14 32/81] 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 4.14 28/81] 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 4.14 26/81] f2fs: fix to avoid panic in do_recover_data()

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 22d61e286e2d9097dae36f75ed48801056b77cac ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203227 - Overview When mounting the attached crafted image, following errors are reported. Additionally, it hangs on sync after trying to mount it. The imag

[PATCH 4.14 22/81] 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 4.14 23/81] EDAC/mpc85xx: Prevent building as a module

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 2b8358a951b1e2a534a54924cd8245e58a1c5fb8 ] The mpc85xx EDAC driver can be configured as a module but then fails to build because it uses two unexported symbols: ERROR: ".pci_find_hose_for_OF_device" [drivers/edac/mpc85xx_edac_mod.ko] undefined! ERROR: ".early_find_capabilit

[PATCH 4.14 27/81] f2fs: fix to clear dirty inode in error path of f2fs_iget()

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

[PATCH 4.14 21/81] 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 4.14 20/81] 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

Re: [PATCH] KVM: nVMX: use correct clean fields when copying from eVMCS

2019-06-13 Thread Radim Krčmář
2019-06-13 13:35+0200, Vitaly Kuznetsov: > Unfortunately, a couple of mistakes were made while implementing > Enlightened VMCS support, in particular, wrong clean fields were > used in copy_enlightened_to_vmcs12(): > - exception_bitmap is covered by CONTROL_EXCPN; > - vm_exit_controls/pin_based_vm_

[PATCH 4.14 08/81] 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

Re: [PATCH v15 0/7] support ROHM BD70528 PMIC

2019-06-13 Thread Matti Vaittinen
On Wed, Jun 12, 2019 at 9:03 AM Lee Jones wrote: > > On Tue, 11 Jun 2019, Sebastian Reichel wrote: > > > Hi, > > > > On Mon, Jun 03, 2019 at 10:23:37AM +0300, Matti Vaittinen wrote: > > > Patch series introducing support for ROHM BD70528 PMIC > > > [...] > > > > I think all patches have been revie

[PATCH 4.14 09/81] 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 4.14 00/81] 4.14.126-stable review

2019-06-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.126 release. There are 81 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:51 AM UTC. Anything re

[PATCH 4.14 11/81] 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

Re: [PATCH v2] drm/komeda: Make Komeda interrupts shareable

2019-06-13 Thread Liviu Dudau
On Thu, Jun 13, 2019 at 04:13:10PM +0100, Ayan Halder wrote: > Komeda interrupts may be shared with other hardware blocks. > One needs to use devm_request_irq() with IRQF_SHARED to create a shared > interrupt handler. > As a result of not using drm_irq_install() api, one needs to set > "(struct dr

[PATCH 4.14 05/81] 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 4.14 03/81] 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.14 02/81] 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 4.14 07/81] 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

Re: [PATCH 4.14 00/81] 4.14.126-stable review

2019-06-13 Thread kernelci.org bot
stable-rc/linux-4.14.y boot: 116 boots: 0 failed, 116 passed (v4.14.125-82-ge64912eac71b) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.14.y/kernel/v4.14.125-82-ge64912eac71b/ Full Build Summary: https://kernelci.org/build/stable-rc/branch/linux-4.14.y/kernel/v4.

[PATCH 4.14 06/81] 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 4.14 04/81] 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 4.14 01/81] 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

Urgent assistance,

2019-06-13 Thread Ayesha Al-Qaddafi
Hello Dear, It’s my pleasure to contact you through this medium as i am in need of your urgent assistance. My names are Ms, Ayesha a single Mother and a Widow with three Children. I'm the only biological Daughter of late Libyan President (Late Al-Qaddafi ). I have an investment funds worth Twent

[PATCH] powerpc: enable a 30-bit ZONE_DMA for 32-bit pmac

2019-06-13 Thread Christoph Hellwig
With the strict dma mask checking introduced with the switch to the generic DMA direct code common wifi chips on 32-bit powerbooks stopped working. Add a 30-bit ZONE_DMA to the 32-bit pmac builds to allow them to reliably allocate dma coherent memory. Fixes: 65a21b71f948 ("powerpc/dma: remove dma

Re: [PATCH v2 2/2] drm/komeda: Adds komeda_kms_drop_master

2019-06-13 Thread Liviu Dudau
On Thu, Jun 13, 2019 at 10:17:27AM +0200, Daniel Vetter wrote: > On Wed, Jun 12, 2019 at 02:26:24AM +, james qian wang (Arm Technology > China) wrote: > > On Tue, Jun 11, 2019 at 02:30:38PM +0200, Daniel Vetter wrote: > > > On Tue, Jun 11, 2019 at 11:13:45AM +, Lowry Li (Arm Technology Chi

Re: [PATCH 3/7] perf: arm64: Use rseq to test userspace access to pmu counters

2019-06-13 Thread Mathieu Desnoyers
- On Jun 13, 2019, at 9:10 AM, Raphael Gault raphael.ga...@arm.com wrote: > Hi Mathieu, > > On 6/11/19 8:33 PM, Mathieu Desnoyers wrote: >> - On Jun 11, 2019, at 6:57 PM, Mark Rutland mark.rutl...@arm.com wrote: >> >>> Hi Arnaldo, >>> >>> On Tue, Jun 11, 2019 at 11:33:46AM -0300, Arnaldo

Re: [PATCH V8 3/3] Call ima_kexec_cmdline to measure the cmdline args

2019-06-13 Thread Dave Young
On 06/12/19 at 06:31pm, Mimi Zohar wrote: > [Cc: kexec mailing list] > > Hi Eric, Dave, > > On Wed, 2019-06-12 at 15:15 -0700, Prakhar Srivastava wrote: > > During soft reboot(kexec_file_load) boot cmdline args > > are not measured.Thus the new kernel on load boots with > > an assumption of cold

Re: [RESEND PATCH v2] mm/oom_killer: Add task UID to info message on an oom kill

2019-06-13 Thread Michal Hocko
On Wed 12-06-19 13:57:53, Joel Savitz wrote: > In the event of an oom kill, useful information about the killed > process is printed to dmesg. Users, especially system administrators, > will find it useful to immediately see the UID of the process. Could you be more specific please? We already pri

<    4   5   6   7   8   9   10   11   12   13   >