[PATCH 4.14 190/228] watchdog: f71808e_wdt: remove use of wrong watchdog_info option

2020-08-20 Thread Greg Kroah-Hartman
From: Ahmad Fatoum commit 802141462d844f2e6a4d63a12260d79b7afc4c34 upstream. The flags that should be or-ed into the watchdog_info.options by drivers all start with WDIOF_, e.g. WDIOF_SETTIMEOUT, which indicates that the driver's watchdog_ops has a usable set_timeout. WDIOC_SETTIMEOUT was used

[PATCH 4.14 188/228] tracing: Use trace_sched_process_free() instead of exit() for pid tracing

2020-08-20 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) commit afcab636657421f7ebfa0783a91f90256bba0091 upstream. On exit, if a process is preempted after the trace_sched_process_exit() tracepoint but before the process is done exiting, then when it gets scheduled in, the function tracers will not filter it properly agai

[PATCH 4.14 189/228] watchdog: f71808e_wdt: indicate WDIOF_CARDRESET support in watchdog_info.options

2020-08-20 Thread Greg Kroah-Hartman
From: Ahmad Fatoum commit e871e93fb08a619dfc015974a05768ed6880fd82 upstream. The driver supports populating bootstatus with WDIOF_CARDRESET, but so far userspace couldn't portably determine whether absence of this flag meant no watchdog reset or no driver support. Or-in the bit to fix this. Fix

Re: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-20 Thread Thomas Gleixner
On Thu, Aug 13 2020 at 14:09, Arvind Sankar wrote: > On Thu, Aug 13, 2020 at 10:37:01AM -0700, Paul E. McKenney wrote: >> > Let me ask (hopefully) useful questions this time: >> > >> > Is a compiler allowed to reorder two 'asm volatile()'? >> > >> > Are there compilers (gcc >= 4.9 or other su

Re: [patch 0/2] timekeeping: NMI safe timekeeper enhancements

2020-08-20 Thread Petr Mladek
On Thu 2020-08-20 12:30:55, Thomas Gleixner wrote: > Petr, > > On Thu, Aug 20 2020 at 10:47, Petr Mladek wrote: > > The interface is perfectly fine for printk() needs. > > Good. So I suggest that I apply that on top of rc1 somewhere in tip and > tag the top commit. So you can pull that tag into y

[PATCH 7/8] tty: serial: qcom_geni_serial: Unconditionally call dev_pm_opp_of_remove_table()

2020-08-20 Thread Viresh Kumar
dev_pm_opp_of_remove_table() doesn't report any errors when it fails to find the OPP table with error -ENODEV (i.e. OPP table not present for the device). And we can call dev_pm_opp_of_remove_table() unconditionally here. Signed-off-by: Viresh Kumar --- drivers/tty/serial/qcom_geni_serial.c | 10

[PATCH 8/8] qcom-geni-se: remove has_opp_table

2020-08-20 Thread Viresh Kumar
has_opp_table isn't used anymore, remove it. Signed-off-by: Viresh Kumar --- include/linux/qcom-geni-se.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/qcom-geni-se.h b/include/linux/qcom-geni-se.h index 8f385fbe5a0e..02d1417c8ecf 100644 --- a/include/linux/qcom-geni-se.h ++

[PATCH 2/8] drm/lima: Unconditionally call dev_pm_opp_of_remove_table()

2020-08-20 Thread Viresh Kumar
dev_pm_opp_of_remove_table() doesn't report any errors when it fails to find the OPP table with error -ENODEV (i.e. OPP table not present for the device). And we can call dev_pm_opp_of_remove_table() unconditionally here. Signed-off-by: Viresh Kumar --- drivers/gpu/drm/lima/lima_devfreq.c | 6 +-

[PATCH 3/8] drm/msm: Unconditionally call dev_pm_opp_of_remove_table()

2020-08-20 Thread Viresh Kumar
dev_pm_opp_of_remove_table() doesn't report any errors when it fails to find the OPP table with error -ENODEV (i.e. OPP table not present for the device). And we can call dev_pm_opp_of_remove_table() unconditionally here. Signed-off-by: Viresh Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c |

[PATCH 6/8] spi: spi-qcom-qspi: Unconditionally call dev_pm_opp_of_remove_table()

2020-08-20 Thread Viresh Kumar
dev_pm_opp_of_remove_table() doesn't report any errors when it fails to find the OPP table with error -ENODEV (i.e. OPP table not present for the device). And we can call dev_pm_opp_of_remove_table() unconditionally here. Signed-off-by: Viresh Kumar --- drivers/spi/spi-qcom-qspi.c | 11 +++--

Re: [PATCH v6 1/6] tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state

2020-08-20 Thread Viresh Kumar
On 22-07-20, 10:54, Viresh Kumar wrote: > On 21-07-20, 01:43, Stephen Boyd wrote: > > It seems that dev_pm_opp_set_rate() calls _find_opp_table() and finds > > something that isn't an error pointer but then dev_pm_opp_of_add_table() > > returns an error value because there isn't an operating-points

[PATCH 1/8] cpufreq: imx6q: Unconditionally call dev_pm_opp_of_remove_table()

2020-08-20 Thread Viresh Kumar
dev_pm_opp_of_remove_table() doesn't report any errors when it fails to find the OPP table with error -ENODEV (i.e. OPP table not present for the device). And we can call dev_pm_opp_of_remove_table() unconditionally here. Signed-off-by: Viresh Kumar --- drivers/cpufreq/imx6q-cpufreq.c | 10 ++---

[PATCH 5/8] spi: spi-geni-qcom: Unconditionally call dev_pm_opp_of_remove_table()

2020-08-20 Thread Viresh Kumar
dev_pm_opp_of_remove_table() doesn't report any errors when it fails to find the OPP table with error -ENODEV (i.e. OPP table not present for the device). And we can call dev_pm_opp_of_remove_table() unconditionally here. Signed-off-by: Viresh Kumar --- drivers/spi/spi-geni-qcom.c | 10 +++--

[PATCH 0/8] opp: Unconditionally call dev_pm_opp_of_remove_table()

2020-08-20 Thread Viresh Kumar
Hello, This cleans up some of the user code around calls to dev_pm_opp_of_remove_table(). All the patches can be picked by respective maintainers directly except for the last patch, which needs the previous two to get merged first. These are based for 5.9-rc1. Rajendra, Since most of these chan

[PATCH 4/8] mmc: sdhci-msm: Unconditionally call dev_pm_opp_of_remove_table()

2020-08-20 Thread Viresh Kumar
dev_pm_opp_of_remove_table() doesn't report any errors when it fails to find the OPP table with error -ENODEV (i.e. OPP table not present for the device). And we can call dev_pm_opp_of_remove_table() unconditionally here. Signed-off-by: Viresh Kumar --- drivers/mmc/host/sdhci-msm.c | 11 +++-

[PATCH 4.14 187/228] tracing/hwlat: Honor the tracing_cpumask

2020-08-20 Thread Greg Kroah-Hartman
From: Kevin Hao commit 96b4833b6827a62c295b149213c68b559514c929 upstream. In calculation of the cpu mask for the hwlat kernel thread, the wrong cpu mask is used instead of the tracing_cpumask, this causes the tracing/tracing_cpumask useless for hwlat tracer. Fixes it. Link: https://lkml.kernel.

[PATCH 4.14 214/228] fs/ufs: avoid potential u32 multiplication overflow

2020-08-20 Thread Greg Kroah-Hartman
From: Colin Ian King [ Upstream commit 88b2e9b06381551b707d980627ad0591191f7a2d ] The 64 bit ino is being compared to the product of two u32 values, however, the multiplication is being performed using a 32 bit multiply so there is a potential of an overflow. To be fully safe, cast uspi->s_ncg

Re: [PATCH 05/28] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT

2020-08-20 Thread Tomasz Figa
On Thu, Aug 20, 2020 at 6:45 AM Christoph Hellwig wrote: > > On Wed, Aug 19, 2020 at 04:11:52PM +0200, Tomasz Figa wrote: > > > > By the way, as a videobuf2 reviewer, I'd appreciate being CC'd on any > > > > series related to the subsystem-facing DMA API changes, since > > > > videobuf2 is one of

[PATCH 4.14 196/228] RDMA/ipoib: Return void from ipoib_ib_dev_stop()

2020-08-20 Thread Greg Kroah-Hartman
From: Kamal Heib [ Upstream commit 95a5631f6c9f3045f26245e6045244652204dfdb ] The return value from ipoib_ib_dev_stop() is always 0 - change it to be void. Link: https://lore.kernel.org/r/20200623105236.18683-1-kamalhe...@gmail.com Signed-off-by: Kamal Heib Signed-off-by: Jason Gunthorpe Sign

[PATCH 4.14 151/228] crypto: cpt - dont sleep of CRYPTO_TFM_REQ_MAY_SLEEP was not specified

2020-08-20 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit 9e27c99104707f083dccd3b4d79762859b5a0614 upstream. There is this call chain: cvm_encrypt -> cvm_enc_dec -> cptvf_do_request -> process_request -> kzalloc where we call sleeping allocator function even if CRYPTO_TFM_REQ_MAY_SLEEP was not specified. Signed-off-by: Mik

[PATCH 4.14 211/228] drm/vmwgfx: Fix two list_for_each loop exit tests

2020-08-20 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 4437c1152ce0e57ab8f401aa696ea6291cc07ab1 ] These if statements are supposed to be true if we ended the list_for_each_entry() loops without hitting a break statement but they don't work. In the first loop, we increment "i" after the "if (i == unit)" conditio

[PATCH 4.14 206/228] pwm: bcm-iproc: handle clk_get_rate() return

2020-08-20 Thread Greg Kroah-Hartman
From: Rayagonda Kokatanur [ Upstream commit 6ced5ff0be8e94871ba846dfbddf69d21363f3d7 ] Handle clk_get_rate() returning 0 to avoid possible division by zero. Fixes: daa5abc41c80 ("pwm: Add support for Broadcom iProc PWM controller") Signed-off-by: Rayagonda Kokatanur Signed-off-by: Scott Brande

[PATCH 4.14 210/228] drm/vmwgfx: Use correct vmw_legacy_display_unit pointer

2020-08-20 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 1d2c0c565bc0da25f5e899a862fb58e612b222df ] The "entry" pointer is an offset from the list head and it doesn't point to a valid vmw_legacy_display_unit struct. Presumably the intent was to point to the last entry. Also the "i++" wasn't used so I have remove

[PATCH 4.14 212/228] net: qcom/emac: add missed clk_disable_unprepare in error path of emac_clks_phase1_init

2020-08-20 Thread Greg Kroah-Hartman
From: Wang Hai [ Upstream commit 50caa777a3a24d7027748e96265728ce748b41ef ] Fix the missing clk_disable_unprepare() before return from emac_clks_phase1_init() in the error handling case. Fixes: b9b17debc69d ("net: emac: emac gigabit ethernet controller driver") Reported-by: Hulk Robot Signed-o

[PATCH 4.14 213/228] nfs: Fix getxattr kernel panic and memory overflow

2020-08-20 Thread Greg Kroah-Hartman
From: Jeffrey Mitchell [ Upstream commit b4487b93545214a9db8cbf32e86411677b0cca21 ] Move the buffer size check to decode_attr_security_label() before memcpy() Only call memcpy() if the buffer is large enough Fixes: aa9c2669626c ("NFS: Client implementation of Labeled-NFS") Signed-off-by: Jeffre

[PATCH 4.14 207/228] tools build feature: Use CC and CXX from parent

2020-08-20 Thread Greg Kroah-Hartman
From: Thomas Hebb [ Upstream commit e3232c2f39acafd5a29128425bc30b9884642cfa ] commit c8c188679ccf ("tools build: Use the same CC for feature detection and actual build") changed these assignments from unconditional (:=) to conditional (?=) so that they wouldn't clobber values from the environme

Re: [PATCH 2/8] spi: spi-s3s64xx: Add S3C64XX_SPI_QUIRK_CS_AUTO for Exynos3250

2020-08-20 Thread Lukasz Stelmach
It was <2020-08-19 śro 20:38>, when Mark Brown wrote: > On Wed, Aug 19, 2020 at 03:01:21PM +0200, Lukasz Stelmach wrote: >> It was <2020-08-19 śro 14:39>, when Krzysztof Kozlowski wrote: > >>> There is here no commit msg, no explanation. > >> As I wrote in the cover letter, this and previous commit

[PATCH 4.14 209/228] Input: sentelic - fix error return when fsp_reg_write fails

2020-08-20 Thread Greg Kroah-Hartman
From: Colin Ian King [ Upstream commit ea38f06e0291986eb93beb6d61fd413607a30ca4 ] Currently when the call to fsp_reg_write fails -EIO is not being returned because the count is being returned instead of the return value in retval. Fix this by returning the value in retval instead of count. Addr

[PATCH 4.14 205/228] clk: clk-atlas6: fix return value check in atlas6_clk_init()

2020-08-20 Thread Greg Kroah-Hartman
From: Xu Wang [ Upstream commit 12b90b40854a8461a02ef19f6f4474cc88d64b66 ] In case of error, the function clk_register() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Xu Wang Link: https://lore.kernel.org/r/20

[PATCH 4.14 204/228] i2c: rcar: slave: only send STOP event when we have been addressed

2020-08-20 Thread Greg Kroah-Hartman
From: Wolfram Sang [ Upstream commit 314139f9f0abdba61ed9a8463bbcb0bf900ac5a2 ] When the SSR interrupt is activated, it will detect every STOP condition on the bus, not only the ones after we have been addressed. So, enable this interrupt only after we have been addressed, and disable it otherwi

[PATCH 4.14 186/228] kprobes: Fix NULL pointer dereference at kprobe_ftrace_handler

2020-08-20 Thread Greg Kroah-Hartman
From: Muchun Song commit 0cb2f1372baa60af8456388a574af6133edd7d80 upstream. We found a case of kernel panic on our server. The stack trace is as follows(omit some irrelevant information): BUG: kernel NULL pointer dereference, address: 0080 RIP: 0010:kprobe_ftrace_handler+0x5e/0x

Re: Protecting uvcvideo againt USB device disconnect [Was: Re: Protecting usb_set_interface() against device removal]

2020-08-20 Thread Laurent Pinchart
Hi Guenter, On Wed, Aug 19, 2020 at 04:08:51PM -0700, Guenter Roeck wrote: > On Wed, Aug 19, 2020 at 04:30:02AM +0300, Laurent Pinchart wrote: > > On Mon, Aug 17, 2020 at 01:00:49PM +0200, Hans Verkuil wrote: > > > On 17/08/2020 01:51, Laurent Pinchart wrote: > > > > On Sun, Aug 16, 2020 at 08:54:

RE: [PATCH] fs: NTFS read-write driver GPL implementation by Paragon Software.

2020-08-20 Thread Konstantin Komarov
From: David Sterba Sent: Saturday, August 15, 2020 10:07 PM > > 1. check existing support in kernel > > There is fs/ntfs with read-only support from Tuxera, last change in the > git tree is 3 years ago. The driver lacks read-write support so there's > not 100% functionality duplication but there

[PATCH 4.14 203/228] iommu/vt-d: Enforce PASID devTLB field mask

2020-08-20 Thread Greg Kroah-Hartman
From: Liu Yi L [ Upstream commit 5f77d6ca5ca74e4b4a5e2e010f7ff50c45dea326 ] Set proper masks to avoid invalid input spillover to reserved bits. Signed-off-by: Liu Yi L Signed-off-by: Jacob Pan Signed-off-by: Lu Baolu Reviewed-by: Eric Auger Link: https://lore.kernel.org/r/20200724014925.155

[PATCH 4.14 200/228] gpu: ipu-v3: image-convert: Combine rotate/no-rotate irq handlers

2020-08-20 Thread Greg Kroah-Hartman
From: Steve Longerbeam [ Upstream commit 0f6245f42ce9b7e4d20f2cda8d5f12b55a44d7d1 ] Combine the rotate_irq() and norotate_irq() handlers into a single eof_irq() handler. Signed-off-by: Steve Longerbeam Signed-off-by: Philipp Zabel Signed-off-by: Sasha Levin --- drivers/gpu/ipu-v3/ipu-image-

[PATCH 4.14 198/228] USB: serial: ftdi_sio: clean up receive processing

2020-08-20 Thread Greg Kroah-Hartman
From: Johan Hovold [ Upstream commit ce054039ba5e47b75a3be02a00274e52b06a6456 ] Clean up receive processing by dropping the character pointer and keeping the length argument unchanged throughout the function. Also make it more apparent that sysrq processing can consume a characters by adding an

[PATCH 4.14 156/228] ALSA: usb-audio: work around streaming quirk for MacroSilicon MS2109

2020-08-20 Thread Greg Kroah-Hartman
From: Hector Martin commit 1b7ecc241a67ad6b584e071bd791a54e0cd5f097 upstream. Further investigation of the L-R swap problem on the MS2109 reveals that the problem isn't that the channels are swapped, but rather that they are swapped and also out of phase by one sample. In other words, the issue

[PATCH 4.14 201/228] dm rq: dont call blk_mq_queue_stopped() in dm_stop_queue()

2020-08-20 Thread Greg Kroah-Hartman
From: Ming Lei [ Upstream commit e78c6cd49d741cfb49eaeb38998ba34d27bc ] dm_stop_queue() only uses blk_mq_quiesce_queue() so it doesn't formally stop the blk-mq queue; therefore there is no point making the blk_mq_queue_stopped() check -- it will never be stopped. In addition, even though dm

[PATCH 4.14 158/228] spi: spidev: Align buffers for DMA

2020-08-20 Thread Greg Kroah-Hartman
From: Christian Eggers commit aa9e862d7d5bcecd4dca9f39e8b684b93dd84ee7 upstream. Simply copying all xfers from userspace into one bounce buffer causes alignment problems if the SPI controller uses DMA. Ensure that all transfer data blocks within the rx and tx bounce buffers are aligned for DMA

[PATCH 4.14 199/228] USB: serial: ftdi_sio: fix break and sysrq handling

2020-08-20 Thread Greg Kroah-Hartman
From: Johan Hovold [ Upstream commit 733fff67941dad64b8a630450b8372b1873edc41 ] Only the last NUL in a packet should be flagged as a break character, for example, to avoid dropping unrelated characters when IGNBRK is set. Also make sysrq work by consuming the break character instead of having i

[PATCH 4.14 182/228] MIPS: CPU#0 is not hotpluggable

2020-08-20 Thread Greg Kroah-Hartman
From: Huacai Chen commit 9cce844abf07b683cff5f0273977d5f8d0af94c7 upstream. Now CPU#0 is not hotpluggable on MIPS, so prevent to create /sys/devices /system/cpu/cpu0/online which confuses some user-space tools. Cc: sta...@vger.kernel.org Signed-off-by: Huacai Chen Signed-off-by: Thomas Bogendo

[PATCH 4.14 159/228] mtd: rawnand: qcom: avoid write to unavailable register

2020-08-20 Thread Greg Kroah-Hartman
From: Sivaprakash Murugesan commit 443440cc4a901af462239d286cd10721aa1c7dfc upstream. SFLASHC_BURST_CFG is only available on older ipq NAND platforms, this register has been removed when the NAND controller got implemented in the qpic controller. Avoid writing this register on devices which are

[PATCH 4.14 194/228] drm/imx: imx-ldb: Disable both channels for split mode in enc->disable()

2020-08-20 Thread Greg Kroah-Hartman
From: Liu Ying commit 3b2a999582c467d1883716b37ffcc00178a13713 upstream. Both of the two LVDS channels should be disabled for split mode in the encoder's ->disable() callback, because they are enabled in the encoder's ->enable() callback. Fixes: 6556f7f82b9c ("drm: imx: Move imx-drm driver out

[PATCH 4.14 157/228] 9p: Fix memory leak in v9fs_mount

2020-08-20 Thread Greg Kroah-Hartman
From: Zheng Bin commit cb0aae0e31c632c407a2cab4307be85a001d4d98 upstream. v9fs_mount v9fs_session_init v9fs_cache_session_get_cookie v9fs_random_cachetag -->alloc cachetag v9ses->fscache = fscache_acquire_cookie -->maybe NULL sb = sget

[PATCH 4.14 172/228] dt-bindings: iio: io-channel-mux: Fix compatible string in example code

2020-08-20 Thread Greg Kroah-Hartman
From: Christian Eggers commit add48ba425192c6e04ce70549129cacd01e2a09e upstream. The correct compatible string is "gpio-mux" (see bindings/mux/gpio-mux.txt). Cc: sta...@vger.kernel.org # v4.13+ Reviewed-by: Peter Rosin Signed-off-by: Christian Eggers Link: https://lore.kernel.org/r/2020072710

Re: [PATCH v2 11/11] iopoll: update kerneldoc of read_poll_timeout_atomic()

2020-08-20 Thread Sergei Shtylyov
Hello! On 20.08.2020 8:45, Chunfeng Yun wrote: Arguments description of read_poll_timeout_atomic() if out of date, s/if/is/? update it. Cc: Alan Stern Signed-off-by: Chunfeng Yun [...] MBR, Sergei

[PATCH 4.14 155/228] fs/minix: reject too-large maximum file size

2020-08-20 Thread Greg Kroah-Hartman
From: Eric Biggers commit 270ef41094e9fa95273f288d7d785313ceab2ff3 upstream. If the minix filesystem tries to map a very large logical block number to its on-disk location, block_to_path() can return offsets that are too large, causing out-of-bounds memory accesses when accessing indirect index

Re: [PATCH 11/12] regulator: stm32-vrefbuf: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Mark Brown
On Thu, Aug 20, 2020 at 04:32:32PM +0800, Jisheng Zhang wrote: > On Thu, 20 Aug 2020 10:13:12 +0200 Fabrice Gasnier wrote: > > You could probably adopt "__maybe_unused" here ? E.g. like: > __maybe_unused also fixes the warning. I'm not sure the maintainers' > preference. > which solution do you

[PATCH 4.14 179/228] md/raid5: Fix Force reconstruct-write io stuck in degraded raid5

2020-08-20 Thread Greg Kroah-Hartman
From: ChangSyun Peng commit a1c6ae3d9f3dd6aa5981a332a6f700cf1c25edef upstream. In degraded raid5, we need to read parity to do reconstruct-write when data disks fail. However, we can not read parity from handle_stripe_dirtying() in force reconstruct-write mode. Reproducible Steps: 1. Create de

[PATCH 4.14 180/228] bcache: allocate meta data pages as compound pages

2020-08-20 Thread Greg Kroah-Hartman
From: Coly Li commit 5fe48867856367142d91a82f2cbf7a57a24cbb70 upstream. There are some meta data of bcache are allocated by multiple pages, and they are used as bio bv_page for I/Os to the cache device. for example cache_set->uuids, cache->disk_buckets, journal_write->data, bset_tree->data. For

Re: [PATCH v8 2/2] Add PWM fan controller driver for LGM SoC

2020-08-20 Thread Andy Shevchenko
On Thu, Aug 20, 2020 at 12:50:46PM +0800, Rahul Tanwar wrote: > Intel Lightning Mountain(LGM) SoC contains a PWM fan controller. > This PWM controller does not have any other consumer, it is a > dedicated PWM controller for fan attached to the system. Add > driver for this PWM fan controller. ...

[PATCH 4.14 178/228] net/compat: Add missing sock updates for SCM_RIGHTS

2020-08-20 Thread Greg Kroah-Hartman
From: Kees Cook commit d9539752d23283db4692384a634034f451261e29 upstream. Add missed sock updates to compat path via a new helper, which will be used more in coming patches. (The net/core/scm.c code is left as-is here to assist with -stable backports for the compat path.) Cc: Christoph Hellwig

[RFC][PATCH 6/7] x86/debug: Simplify #DB signal code

2020-08-20 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/kernel/traps.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -786,15 +786,6 @@ static __always_inline unsigned long deb static void handle_debu

[PATCH 4.14 177/228] net: stmmac: dwmac1000: provide multicast filter fallback

2020-08-20 Thread Greg Kroah-Hartman
From: Jonathan McDowell commit 592d751c1e174df5ff219946908b005eb48934b3 upstream. If we don't have a hardware multicast filter available then instead of silently failing to listen for the requested ethernet broadcast addresses fall back to receiving all multicast packets, in a similar fashion to

[PATCH 1/7] x86/debug: Allow a single level of #DB recursion

2020-08-20 Thread Peter Zijlstra
From: Andy Lutomirski Trying to clear DR7 around a #DB from usermode malfunctions if we schedule when delivering SIGTRAP. Rather than trying to define a special no-recursion region, just allow a single level of recursion. We do the same thing for NMI, and it hasn't caused any problems yet. Fixe

[RFC][PATCH 4/7] x86/debug: Move historical SYSENTER junk into exc_debug_kernel()

2020-08-20 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/kernel/traps.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -820,18 +820,6 @@ static void handle_debug(struct pt_regs goto out

[RFC][PATCH 0/7] x86/debug: Untangle handle_debug()

2020-08-20 Thread Peter Zijlstra
Hi, handle_debug() is a mess, and now that we have separate user and kernel paths, try and clean it up. Included amluto's fix for convenience. The whole set passes x86-selftests and the RR DR0 testcase.

[RFC][PATCH 7/7] x86/debug: Move cond_local_irq_enable() block into exc_debug_user()

2020-08-20 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/kernel/traps.c | 65 +++- 1 file changed, 32 insertions(+), 33 deletions(-) --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -783,41 +783,15 @@ static __always_inline unsigned long de

[RFC][PATCH 2/7] x86/debug: Sync BTF earlier

2020-08-20 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/kernel/traps.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -749,6 +749,13 @@ static __always_inline unsigned long deb /* Filter out all the reser

[RFC][PATCH 5/7] x86/debug: Remove handle_debug(.user) argument

2020-08-20 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/kernel/traps.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -783,25 +783,18 @@ static __always_inline unsigned long deb * * May run on IST st

[RFC][PATCH 3/7] x86/debug: Move kprobe_debug_handler() into exc_debug_kernel()

2020-08-20 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/kprobes.h |4 arch/x86/kernel/traps.c| 10 -- 2 files changed, 8 insertions(+), 6 deletions(-) --- a/arch/x86/include/asm/kprobes.h +++ b/arch/x86/include/asm/kprobes.h @@ -106,5 +106,9 @@ extern int kpro

[PATCH 4.14 176/228] net: ethernet: stmmac: Disable hardware multicast filter

2020-08-20 Thread Greg Kroah-Hartman
From: Jonathan McDowell commit df43dd526e6609769ae513a81443c7aa727c8ca3 upstream. The IPQ806x does not appear to have a functional multicast ethernet address filter. This was observed as a failure to correctly receive IPv6 packets on a LAN to the all stations address. Checking the vendor driver

[PATCH 4.14 175/228] powerpc: Fix circular dependency between percpu.h and mmu.h

2020-08-20 Thread Greg Kroah-Hartman
From: Michael Ellerman commit 0c83b277ada72b585e6a3e52b067669df15bcedb upstream. Recently random.h started including percpu.h (see commit f227e3ec3b5c ("random32: update the net random state on interrupt and activity")), which broke corenet64_smp_defconfig: In file included from /linux/arch/p

[PATCH 4.14 173/228] iio: dac: ad5592r: fix unbalanced mutex unlocks in ad5592r_read_raw()

2020-08-20 Thread Greg Kroah-Hartman
From: Alexandru Ardelean commit 65afb0932a81c1de719ceee0db0b276094b10ac8 upstream. There are 2 exit paths where the lock isn't held, but try to unlock the mutex when exiting. In these places we should just return from the function. A neater approach would be to cleanup the ad5592r_read_raw(), b

[PATCH 4.14 153/228] fs/minix: check return value of sb_getblk()

2020-08-20 Thread Greg Kroah-Hartman
From: Eric Biggers commit da27e0a0e5f655f0d58d4e153c3182bb2b290f64 upstream. Patch series "fs/minix: fix syzbot bugs and set s_maxbytes". This series fixes all syzbot bugs in the minix filesystem: KASAN: null-ptr-deref Write in get_block KASAN: use-after-free Write in get_block

[PATCH 4.14 170/228] btrfs: only search for left_info if there is no right_info in try_merge_free_space

2020-08-20 Thread Greg Kroah-Hartman
From: Josef Bacik commit bf53d4687b8f3f6b752f091eb85f62369a515dfd upstream. In try_to_merge_free_space we attempt to find entries to the left and right of the entry we are adding to see if they can be merged. We search for an entry past our current info (saved into right_info), and then if righ

[PATCH 4.14 124/228] s390/qeth: dont process empty bridge port events

2020-08-20 Thread Greg Kroah-Hartman
From: Julian Wiedmann [ Upstream commit 02472e28b9a45471c6d8729ff2c7422baa9be46a ] Discard events that don't contain any entries. This shouldn't happen, but subsequent code relies on being able to use entry 0. So better be safe than accessing garbage. Fixes: b4d72c08b358 ("qeth: bridgeport supp

Re: [PATCH 1/1] mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary

2020-08-20 Thread Oleg Nesterov
On 08/19, Suren Baghdasaryan wrote: > > Since the combination of CLONE_VM and !CLONE_SIGHAND is rarely > used the additional mutex lock in that path of the clone() syscall should > not affect its overall performance. Clearing the MMF_PROC_SHARED flag > (when the last process sharing the mm exits) i

[PATCH 4.14 150/228] crypto: ccp - Fix use of merged scatterlists

2020-08-20 Thread Greg Kroah-Hartman
From: John Allen commit 8a302808c60d441d9884cb00ea7f2b534f2e3ca5 upstream. Running the crypto manager self tests with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS may result in several types of errors when using the ccp-crypto driver: alg: skcipher: cbc-des3-ccp encryption failed on test vector 0; expect

Re: [PATCH 2/8] KVM: nSVM: rename nested 'vmcb' to vmcb_gpa in few places

2020-08-20 Thread Paolo Bonzini
On 20/08/20 12:23, Maxim Levitsky wrote: > I fully agree that adding local variable is a good idea anyway. > > I was just noting that svm->nested.vmcb is already about the nested > (e.g vmcb12) thus I was thinking that naming this field vmcb12 would be > redundant and not accepted this way. We wa

Re: [PATCH 8/8] KVM: nSVM: read only changed fields of the nested guest data area

2020-08-20 Thread Maxim Levitsky
On Thu, 2020-08-20 at 12:18 +0200, Paolo Bonzini wrote: > On 20/08/20 12:05, Maxim Levitsky wrote: > > > You probably should set clean to 0 also if the guest doesn't have the > > > VMCBCLEAN feature (so, you first need an extra patch to add the > > > VMCBCLEAN feature to cpufeatures.h). It's proba

[PATCH 4.14 142/228] net: refactor bind_bucket fastreuse into helper

2020-08-20 Thread Greg Kroah-Hartman
From: Tim Froidcoeur [ Upstream commit 62ffc589abb176821662efc4525ee4ac0b9c3894 ] Refactor the fastreuse update code in inet_csk_get_port into a small helper function that can be called from other places. Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur Signed-off-by: David S. Miller

[PATCH 4.14 141/228] net/nfc/rawsock.c: add CAP_NET_RAW check.

2020-08-20 Thread Greg Kroah-Hartman
From: Qingyu Li [ Upstream commit 26896f01467a28651f7a536143fe5ac8449d4041 ] When creating a raw AF_NFC socket, CAP_NET_RAW needs to be checked first. Signed-off-by: Qingyu Li Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/nfc/rawsock.c |7 +-- 1 file chang

[PATCH 4.14 167/228] smb3: warn on confusing error scenario with sec=krb5

2020-08-20 Thread Greg Kroah-Hartman
From: Steve French commit 0a018944eee913962bce8ffebbb121960d5125d9 upstream. When mounting with Kerberos, users have been confused about the default error returned in scenarios in which either keyutils is not installed or the user did not properly acquire a krb5 ticket. Log a warning message in

[PATCH v2 0/3] hwrng: add support for Xiphera XIP8001B

2020-08-20 Thread Atte Tommiska
This patchset introduces a linux driver for Xiphera's XIP8001B IP. The IP is an FPGA-based TRNG which can be used in various FPGA families. The IP is in use in multiple customer projects and in Xiphera's own products. v2: fixed the 'make dt_binding_check' errors in the devicetree schema. Atte Tom

[PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Xiphera vendor prefix

2020-08-20 Thread Atte Tommiska
Xiphera is an FPGA-based cryptographic solutions provider based in Finland. Website of the company: https://xiphera.com/ Signed-off-by: Atte Tommiska --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v2 2/3] dt-bindings: rng: add bindings for Xiphera XIP8001B hwnrg

2020-08-20 Thread Atte Tommiska
Document the device tree bindings of Xiphera's XIP8001B-trng IP. Signed-off-by: Atte Tommiska --- .../bindings/rng/xiphera,xip8001b-trng.yaml | 33 +++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/xiphera,xip8001b-trng.yaml diff -

[PATCH 4.14 163/228] irqdomain/treewide: Free firmware node after domain removal

2020-08-20 Thread Greg Kroah-Hartman
From: Jon Derrick commit ec0160891e387f4771f953b888b1fe951398e5d9 upstream. Commit 711419e504eb ("irqdomain: Add the missing assignment of domain->fwnode for named fwnode") unintentionally caused a dangling pointer page fault issue on firmware nodes that were freed after IRQ domain allocation. C

[PATCH 4.14 152/228] bitfield.h: dont compile-time validate _val in FIELD_FIT

2020-08-20 Thread Greg Kroah-Hartman
From: Jakub Kicinski commit 444da3f52407d74c9aa12187ac6b01f76ee47d62 upstream. When ur_load_imm_any() is inlined into jeq_imm(), it's possible for the compiler to deduce a case where _val can only have the value of -1 at compile time. Specifically, /* struct bpf_insn: _s32 imm */ u64 imm = insn

[PATCH] drm: fsl-dcu: enable PIXCLK on LS1021A

2020-08-20 Thread Matthias Schiffer
The PIXCLK needs to be enabled in SCFG before accessing the DCU on LS1021A, or the access will hang. Signed-off-by: Matthias Schiffer --- drivers/gpu/drm/fsl-dcu/Kconfig | 1 + drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 25 +++ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_

[PATCH 4.14 118/228] Smack: prevent underflow in smk_set_cipso()

2020-08-20 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 42a2df3e829f3c5562090391b33714b2e2e5ad4a ] We have an upper bound on "maplevel" but forgot to check for negative values. Fixes: e114e473771c ("Smack: Simplified Mandatory Access Control Kernel") Signed-off-by: Dan Carpenter Signed-off-by: Casey Schaufler

[PATCH 4.14 161/228] parisc: mask out enable and reserved bits from sba imask

2020-08-20 Thread Greg Kroah-Hartman
From: Sven Schnelle commit 5b24993c21cbf2de11aff077a48c5cb0505a0450 upstream. When using kexec the SBA IOMMU IBASE might still have the RE bit set. This triggers a WARN_ON when trying to write back the IBASE register later, and it also makes some mask calculations fail. Cc: Signed-off-by: Sven

[PATCH 4.14 127/228] net: ethernet: aquantia: Fix wrong return value

2020-08-20 Thread Greg Kroah-Hartman
From: Tianjia Zhang [ Upstream commit 0470a48880f8bc42ce26962b79c7b802c5a695ec ] In function hw_atl_a0_hw_multicast_list_set(), when an invalid request is encountered, a negative error code should be returned. Fixes: bab6de8fd180b ("net: ethernet: aquantia: Atlantic A0 and B0 specific function

Re: [PATCH v2] ARM: dts: vfxxx: Add syscon compatible with ocotp

2020-08-20 Thread Fabio Estevam
Hi Chris, On Thu, Aug 20, 2020 at 1:11 AM Chris Healy wrote: > > From: Chris Healy > > Add syscon compatibility with Vybrid ocotp node. This is required to > access the UID. > > Fixes: fa8d20c8dbb77 ("ARM: dts: vfxxx: Add node corresponding to OCOTP") > Cc: sta...@vger.kernel.org > Signed-off-by

[PATCH v2 3/3] hwrng: xiphera-trng: add support for XIP8001B hwrng

2020-08-20 Thread Atte Tommiska
Xiphera XIP8001B is an FPGA-based True Random Number Generator Intellectual Property (IP) Core which can be instantiated in multiple FPGA families. This driver adds Linux support for it through the hwrng interface. Signed-off-by: Atte Tommiska --- drivers/char/hw_random/Kconfig| 10 ++

Re: [PATCH 2/3] dt-bindings: rng: add bindings for Xiphera XIP8001B hwnrg

2020-08-20 Thread Atte Tommiska
On 20/08/2020 01:37, Rob Herring wrote: > On Wed, 19 Aug 2020 15:21:34 +0300, Atte Tommiska wrote: >> Document the device tree bindings of Xiphera's XIP8001B-trng IP. >> >> Signed-off-by: Atte Tommiska >> --- >> .../bindings/rng/xiphera,xip8001b-trng.yaml | 30 +++ >> 1 file cha

RE: [PATCH] fs: NTFS read-write driver GPL implementation by Paragon Software.

2020-08-20 Thread Konstantin Komarov
From: David Sterba Sent: Friday, August 14, 2020 4:41 PM > In case somebody wants to compile it, this fixup is needed to let 'make > fs/ntfs3/' actually work, besides enabling it in the config. > > diff --git a/fs/Makefile b/fs/Makefile > index 1c7b0e3f6daa..b0b4ad8affa0 100644 > --- a/fs/Makefil

[PATCH 4.14 165/228] xen/balloon: make the balloon wait interruptible

2020-08-20 Thread Greg Kroah-Hartman
From: Roger Pau Monne commit 88a479ff6ef8af7f07e11593d58befc644244ff7 upstream. So it can be killed, or else processes can get hung indefinitely waiting for balloon pages. Signed-off-by: Roger Pau Monné Reviewed-by: Juergen Gross Cc: sta...@vger.kernel.org Link: https://lore.kernel.org/r/2020

[PATCH 4.14 168/228] PCI: hotplug: ACPI: Fix context refcounting in acpiphp_grab_context()

2020-08-20 Thread Greg Kroah-Hartman
From: Rafael J. Wysocki commit dae68d7fd4930315389117e9da35b763f12238f9 upstream. If context is not NULL in acpiphp_grab_context(), but the is_going_away flag is set for the device's parent, the reference counter of the context needs to be decremented before returning NULL or the context will ne

[PATCH 4.14 123/228] selftests/powerpc: Fix online CPU selection

2020-08-20 Thread Greg Kroah-Hartman
From: Sandipan Das [ Upstream commit dfa03fff86027e58c8dba5c03ae68150d4e513ad ] The size of the CPU affinity mask must be large enough for systems with a very large number of CPUs. Otherwise, tests which try to determine the first online CPU by calling sched_getaffinity() will fail. This makes s

[PATCH 4.14 121/228] selftests/powerpc: Fix CPU affinity for child process

2020-08-20 Thread Greg Kroah-Hartman
From: Harish [ Upstream commit 854eb5022be04f81e318765f089f41a57c8e5d83 ] On systems with large number of cpus, test fails trying to set affinity by calling sched_setaffinity() with smaller size for affinity mask. This patch fixes it by making sure that the size of allocated affinity mask is dep

[PATCH 4.14 148/228] ALSA: usb-audio: add quirk for Pioneer DDJ-RB

2020-08-20 Thread Greg Kroah-Hartman
From: Hector Martin commit 6e8596172ee1cd46ec0bfd5adcf4ff86371478b6 upstream. This is just another Pioneer device with fixed endpoints. Input is dummy but used as feedback (it always returns silence). Cc: sta...@vger.kernel.org Signed-off-by: Hector Martin Link: https://lore.kernel.org/r/20200

[PATCH 4.14 143/228] net: Set fput_needed iff FDPUT_FPUT is set

2020-08-20 Thread Greg Kroah-Hartman
From: Miaohe Lin [ Upstream commit ce787a5a074a86f76f5d3fd804fa78e01bfb9e89 ] We should fput() file iff FDPUT_FPUT is set. So we should set fput_needed accordingly. Fixes: 00e188ef6a7e ("sockfd_lookup_light(): switch to fdget^W^Waway from fget_light") Signed-off-by: Miaohe Lin Signed-off-by:

Re: [PATCH 1/8] spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath()

2020-08-20 Thread Lukasz Stelmach
It was <2020-08-19 śro 20:12>, when Mark Brown wrote: > On Wed, Aug 19, 2020 at 04:01:52PM +0200, Lukasz Stelmach wrote: >> It was <2020-08-19 śro 14:16>, when Mark Brown wrote: >>> On Wed, Aug 19, 2020 at 02:58:22PM +0200, Krzysztof Kozlowski wrote: On Wed, Aug 19, 2020 at 02:51:27PM +0200, L

[PATCH 4.14 147/228] ALSA: usb-audio: fix overeager device match for MacroSilicon MS2109

2020-08-20 Thread Greg Kroah-Hartman
From: Hector Martin commit 14a720dc1f5332f3bdf30a23a3bc549e81be974c upstream. Matching by device matches all interfaces, which breaks the video/HID portions of the device depending on module load order. Fixes: e337bf19f6af ("ALSA: usb-audio: add quirk for MacroSilicon MS2109") Cc: sta...@vger.k

Re: [PATCH 05/28] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT

2020-08-20 Thread Tomasz Figa
On Thu, Aug 20, 2020 at 7:20 AM Christoph Hellwig wrote: > > On Thu, Aug 20, 2020 at 06:43:47AM +0200, Christoph Hellwig wrote: > > On Wed, Aug 19, 2020 at 03:57:53PM +0200, Tomasz Figa wrote: > > > > > Could you explain what makes you think it's unused? It's a feature of > > > > > the UAPI genera

[PATCH 4.14 149/228] crypto: qat - fix double free in qat_uclo_create_batch_init_list

2020-08-20 Thread Greg Kroah-Hartman
From: Tom Rix commit c06c76602e03bde24ee69a2022a829127e504202 upstream. clang static analysis flags this error qat_uclo.c:297:3: warning: Attempt to free released memory [unix.Malloc] kfree(*init_tab_base); ^ When input *init_tab_base is nu

[PATCH 4.14 120/228] Bluetooth: hci_serdev: Only unregister device if it was registered

2020-08-20 Thread Greg Kroah-Hartman
From: Nicolas Boichat [ Upstream commit 202798db9570104728dce8bb57dfeed47ce764bc ] We should not call hci_unregister_dev if the device was not successfully registered. Fixes: c34dc3bfa7642fd ("Bluetooth: hci_serdev: Introduce hci_uart_unregister_device()") Signed-off-by: Nicolas Boichat Signe

[PATCH 4.14 137/228] x86/fsgsbase/64: Fix NULL deref in 86_fsgsbase_read_task

2020-08-20 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 8ab49526b53d3172d1d8dd03a75c7d1f5bd21239 ] syzbot found its way in 86_fsgsbase_read_task() and triggered this oops: KASAN: null-ptr-deref in range [0x0008-0x000f] CPU: 0 PID: 6866 Comm: syz-executor262 Not tainted 5.8.0-syzkalle

[PATCH 4.14 136/228] pinctrl-single: fix pcs_parse_pinconf() return value

2020-08-20 Thread Greg Kroah-Hartman
From: Drew Fustini [ Upstream commit f46fe79ff1b65692a65266a5bec6dbe2bf7fc70f ] This patch causes pcs_parse_pinconf() to return -ENOTSUPP when no pinctrl_map is added. The current behavior is to return 0 when !PCS_HAS_PINCONF or !nconfs. Thus pcs_parse_one_pinctrl_entry() incorrectly assumes t

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