Re: [PATCH] x86/split_lock: Sanitize userspace and guest error output

2020-06-05 Thread Xiaoyao Li
On 6/5/2020 7:44 PM, Prarit Bhargava wrote: There are two problems with kernel messages in fatal mode that were found during testing of guests and userspace programs. The first is that no kernel message is output when the split lock detector is triggered with a userspace program. As a result

Re: [PATCH v2] spi: bcm2835: Enable shared interrupt support

2020-06-05 Thread Mark Brown
On Fri, Jun 05, 2020 at 03:41:27PM +0100, Robin Murphy wrote: > Ha, and in fact having checked a build out of curiosity, this patch as-is > actually stands to make things considerably worse. At least with GCC 8.3 and > bcm2835_defconfig, bcm2835_spi_interrupt_common() doesn't get inlined, which >

Re: [PATCH] crypto: hisilicon - fix strncpy warning with strlcpy

2020-06-05 Thread Zhangfei Gao
On 2020/6/5 下午8:17, Herbert Xu wrote: On Fri, Jun 05, 2020 at 05:34:32PM +0800, Zhangfei Gao wrote: Will add a check after the copy.     strlcpy(interface.name, pdev->driver->name, sizeof(interface.name));     if (strlen(pdev->driver->name) != strlen(interface.name))  

Re: block: Fix use-after-free in blkdev_get()

2020-06-05 Thread Markus Elfring
>> Do you find proposed spelling corrections useful? > > To commit messages? No. Are you really going to tolerate wording weaknesses there? https://lore.kernel.org/linux-block/20200605104558.16686-1-yanai...@huawei.com/ https://lore.kernel.org/patchwork/patch/1252648/ > You do not seem to

Re: [RFC][PATCH 5/7] irq_work, smp: Allow irq_work on call_single_queue

2020-06-05 Thread Kees Cook
On Fri, Jun 05, 2020 at 11:37:04AM +0200, Peter Zijlstra wrote: > On Fri, May 29, 2020 at 03:36:41PM +0200, Peter Zijlstra wrote: > > Maybe I can anonymous-union my way around it, dunno. I'll think about > > it. I'm certainly not proud of this. But at least the BUILD_BUG_ON()s > > should catch the

Re: [PATCH v5 13/13] perf record: introduce --ctl-fd[-ack] options

2020-06-05 Thread Alexey Budankov
On 05.06.2020 17:47, Alexey Budankov wrote: > > On 05.06.2020 16:57, Jiri Olsa wrote: >> On Fri, Jun 05, 2020 at 04:15:52PM +0300, Alexey Budankov wrote: >>> >>> On 05.06.2020 13:51, Jiri Olsa wrote: On Tue, Jun 02, 2020 at 04:43:58PM +0300, Adrian Hunter wrote: > On 2/06/20 12:12 pm,

[ANNOUNCE] 5.4.44-rt26

2020-06-05 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 5.4.44-rt26 stable release. This release is just an update to the new stable 5.4.44 version and no RT specific changes have been made. You can get this release via the git tree at:

RE: [RESEND PATCH v9 4/5] ndctl/papr_scm,uapi: Add support for PAPR nvdimm specific methods

2020-06-05 Thread Vaibhav Jain
"Williams, Dan J" writes: >> -Original Message- >> From: Vaibhav Jain >> Sent: Thursday, June 4, 2020 2:06 AM >> To: Williams, Dan J ; linuxppc- >> d...@lists.ozlabs.org; linux-nvd...@lists.01.org; linux- >> ker...@vger.kernel.org >> Cc: Santosh Sivaraj ; Aneesh Kumar K . V >> ; Steven

Re: [PATCH 1/2] mmc: sunxi-mmc: do not hide address in sunxi_mmc_irq()

2020-06-05 Thread Maxime Ripard
Hi, On Fri, Jun 05, 2020 at 08:55:44PM +0800, Frank Lee wrote: > From: Yangtao Li > > Using %px to show the actual address in sunxi_mmc_irq() > to help us to debug issue. > > Signed-off-by: Yangtao Li > Signed-off-by: Frank Lee I'm fairly sure this hash is on purpose, and both the commit

Re: [PATCH] KVM: selftests: Fix "make ARCH=x86_64" build with

2020-06-05 Thread Paolo Bonzini
On 05/06/20 16:20, Vitaly Kuznetsov wrote: > Marcelo reports that kvm selftests fail to build with > "make ARCH=x86_64": > > gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 > -fno-stack-protector -fno-PIE -I../../../../tools/include > -I../../../../tools/arch/x86_64/include

[PATCH] KVM: let kvm_destroy_vm_debugfs clean up vCPU debugfs directories

2020-06-05 Thread Paolo Bonzini
After commit 63d0434 ("KVM: x86: move kvm_create_vcpu_debugfs after last failure point") we are creating the pre-vCPU debugfs files after the creation of the vCPU file descriptor. This makes it possible for userspace to reach kvm_vcpu_release before kvm_create_vcpu_debugfs has finished. The

Re: block: Fix use-after-free in blkdev_get()

2020-06-05 Thread Matthew Wilcox
On Fri, Jun 05, 2020 at 03:12:08PM +0200, Markus Elfring wrote: > > Your feedback is unhelpful > > Do you find proposed spelling corrections useful? To commit messages? No. > > and you show no signs of changing it in response to the people > > who are telling you that it's unhelpful. > >

Re: [PATCH v2] HID: logitech-hidpp: add support for Logitech G533 headset

2020-06-05 Thread Filipe Laíns
Hi Kamil, On v2 patches it s usual to add a changelog (could be small) to help keep track of what changed. On Fri, 2020-06-05 at 16:59 +0200, Kamil Domański wrote: > Signed-off-by: Kamil Domański *snip* > +/** > + * hidpp20_adc_map_status_voltage() - convert HID++ code to power supply >

Re: 回复:[PATCH 2/4] pinctrl: sunxi: add support for the Allwinner A100 pin controller

2020-06-05 Thread Maxime Ripard
Hi Frank, On Wed, Jun 03, 2020 at 05:44:36PM +0800, 李扬韬 wrote: > >> + SUNXI_PIN(SUNXI_PINCTRL_PIN(F, 0), > >> + SUNXI_FUNCTION(0x0, "gpio_in"), > >> + SUNXI_FUNCTION(0x1, "gpio_out"), > >> + SUNXI_FUNCTION(0x2, "mmc0"), /* D1 */ > >> + SUNXI_FUNCTION(0x3, "jtag"), /* MS1 */ > >> +

[PATCH net] vsock/vmci: make vmci_vsock_transport_cb() static

2020-06-05 Thread Stefano Garzarella
Fix the following gcc-9.3 warning when building with 'make W=1': net/vmw_vsock/vmci_transport.c:2058:6: warning: no previous prototype for ‘vmci_vsock_transport_cb’ [-Wmissing-prototypes] 2058 | void vmci_vsock_transport_cb(bool is_host) | ^~~

/usr/bin/ld: arch/x86/include/asm/atomic64_32.h:109: undefined reference to `atomic64_set_386'

2020-06-05 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 435faf5c218a47fd6258187f62d9bb1009717896 commit: 87d6021b814353d7b353afcc3698ffe49de7d4ec x86/math-emu: Limit MATH_EMULATION to 486SX compatibles date: 8 months ago config: um-randconfig-r011-20200605

[PATCH] serial: serial-tegra: reduce irq-latency after rx errors

2020-06-05 Thread Randolph Maaßen
Since dev_err() calls can lead to synchronous writes to another serial console these calls can provide significant latency during irq-handling in tegra_uart_isr(). With this latency another interrupt is likely to apper during handling of the first interrupt, which might lock up the kernel

Re: [PATCH v4 04/11] watchdog: add support for sl28cpld watchdog

2020-06-05 Thread Guenter Roeck
On Fri, Jun 05, 2020 at 05:09:11PM +0300, Andy Shevchenko wrote: > On Fri, Jun 05, 2020 at 06:52:00AM -0700, Guenter Roeck wrote: > > On 6/5/20 3:50 AM, Andy Shevchenko wrote: > > > On Fri, Jun 5, 2020 at 1:24 PM Michael Walle wrote: > > >> Am 2020-06-05 10:14, schrieb Andy Shevchenko: > > >>> On

Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node

2020-06-05 Thread Sai Prakash Ranjan
On 2020-06-05 20:21, Nicolas Dechesne wrote: On Fri, Jun 5, 2020 at 4:39 PM Sai Prakash Ranjan wrote: Hi Nico, On 2020-06-05 20:01, Nicolas Dechesne wrote: > On Fri, Jun 5, 2020 at 4:14 PM Sai Prakash Ranjan > wrote: >> >> On 2020-06-05 19:40, Jonathan Marek wrote: >> > On 6/5/20 10:03 AM,

Re: [RFC][PATCH 5/7] irq_work, smp: Allow irq_work on call_single_queue

2020-06-05 Thread Frederic Weisbecker
On Fri, Jun 05, 2020 at 11:37:04AM +0200, Peter Zijlstra wrote: > On Fri, May 29, 2020 at 03:36:41PM +0200, Peter Zijlstra wrote: > > Maybe I can anonymous-union my way around it, dunno. I'll think about > > it. I'm certainly not proud of this. But at least the BUILD_BUG_ON()s > > should catch the

Re: [PATCH v9 05/14] spi: imx: fallback to PIO if dma setup failure

2020-06-05 Thread Mark Brown
On Sat, Jun 06, 2020 at 05:32:26AM +0800, Robin Gong wrote: > Fallback to PIO in case dma setup failed. For example, sdma firmware not > updated but ERR009165 workaroud added in kernel. Please do not submit new versions of already applied patches, please submit incremental updates to the existing

Re: clean up kernel_{read,write} & friends v2

2020-06-05 Thread Nicolas Pitre
On Fri, 5 Jun 2020, Philippe Mathieu-Daudé wrote: > Unfortunately refreshable braille displays have that "hardware > limitations". 80 cells displays are very expensive. > Visual impairments is rarely a "choice". > Relaxing the 80-char limit make it harder for blind developers > to contribute.

Re: [PATCH 0/2] overlayfs: C/R enhancements

2020-06-05 Thread Alexander Mikhalitsyn
On Fri, 5 Jun 2020 17:36:10 +0300 Amir Goldstein wrote: > > > While at it, you copy pasted the text: > > > For more information, see > > > Documentation/filesystems/overlayfs.txt > > > but there is no more information to be found. > > > > As far as I know documentation patches must be

Re: [PATCH v5 1/3] open: add close_range()

2020-06-05 Thread Szabolcs Nagy
* Christian Brauner [2020-06-02 22:42:17 +0200]: > This adds the close_range() syscall. It allows to efficiently close a range > of file descriptors up to all file descriptors of a calling task. > > I've also coordinated with some FreeBSD developers who got in touch with > me (Cced below).

Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node

2020-06-05 Thread Nicolas Dechesne
On Fri, Jun 5, 2020 at 4:39 PM Sai Prakash Ranjan wrote: > > Hi Nico, > > On 2020-06-05 20:01, Nicolas Dechesne wrote: > > On Fri, Jun 5, 2020 at 4:14 PM Sai Prakash Ranjan > > wrote: > >> > >> On 2020-06-05 19:40, Jonathan Marek wrote: > >> > On 6/5/20 10:03 AM, Sai Prakash Ranjan wrote: > >>

Re: [PATCH v5 13/13] perf record: introduce --ctl-fd[-ack] options

2020-06-05 Thread Alexey Budankov
On 05.06.2020 16:57, Jiri Olsa wrote: > On Fri, Jun 05, 2020 at 04:15:52PM +0300, Alexey Budankov wrote: >> >> On 05.06.2020 13:51, Jiri Olsa wrote: >>> On Tue, Jun 02, 2020 at 04:43:58PM +0300, Adrian Hunter wrote: On 2/06/20 12:12 pm, Alexey Budankov wrote: > > On 02.06.2020

Re: [PATCH 0/2] proc: use subset option to hide some top-level procfs entries

2020-06-05 Thread Alexey Gladkov
On Thu, Jun 04, 2020 at 11:17:38PM -0500, Eric W. Biederman wrote: > >> I am not going to seriously look at this for merging until after the > >> merge window closes. > > > > OK. I'll wait. > > That will mean your patches can be based on -rc1. OK. > > Do you suggest to allow a user to mount

Re: slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-05 Thread Vegard Nossum
On 2020-06-05 16:08, Vlastimil Babka wrote: On 6/5/20 3:12 PM, Rafael J. Wysocki wrote: On Fri, Jun 5, 2020 at 2:48 PM Vegard Nossum wrote: On 2020-06-05 11:36, Vegard Nossum wrote: On 2020-06-05 11:11, Vlastimil Babka wrote: On 6/4/20 8:46 PM, Vlastimil Babka wrote: On 6/4/20 7:57 PM,

Re: [RFC PATCH 0/4] kgdb: Honour the kprobe blacklist when setting breakpoints

2020-06-05 Thread Peter Zijlstra
On Fri, Jun 05, 2020 at 04:29:53PM +0200, Peter Zijlstra wrote: > On Fri, Jun 05, 2020 at 02:21:26PM +0100, Daniel Thompson wrote: > > kgdb has traditionally adopted a no safety rails approach to breakpoint > > placement. If the debugger is commanded to place a breakpoint at an > > address then it

Re: [PATCH v2] block: Fix use-after-free in blkdev_get()

2020-06-05 Thread Jan Kara
On Fri 05-06-20 12:43:54, Dan Carpenter wrote: > I wonder if maybe the best fix is to re-add the "if (!res) " check back > to blkdev_get(). Well, it won't be that simple since we need to call bd_abort_claiming() under bdev->bd_mutex. And the fact that __blkdev_get() frees the reference you pass

Re: [PATCHSET v5 0/12] Add support for async buffered reads

2020-06-05 Thread Jens Axboe
On 6/3/20 7:04 PM, Jens Axboe wrote: > On 6/3/20 6:59 PM, Andres Freund wrote: >> Hi, >> >> I was trying to benchmark the benefits of this for the io_uring using >> postgres I am working on. The initial results where quite promising >> (reducing cpu usage significantly, to lower than non-uring

Re: [PATCH v2] spi: bcm2835: Enable shared interrupt support

2020-06-05 Thread Robin Murphy
On 2020-06-05 14:46, Robin Murphy wrote: On 2020-06-05 14:20, Mark Brown wrote: On Fri, Jun 05, 2020 at 12:34:36PM +0100, Robin Murphy wrote: On 2020-06-04 22:28, Florian Fainelli wrote: For the BCM2835 case which is deemed performance critical, we would like to continue using an interrupt

Re: [PATCH v5 0/4] introduction of migration_version attribute for VFIO live migration

2020-06-05 Thread Dr. David Alan Gilbert
* Alex Williamson (alex.william...@redhat.com) wrote: > On Fri, 5 Jun 2020 11:22:24 +0100 > "Dr. David Alan Gilbert" wrote: > > > * Alex Williamson (alex.william...@redhat.com) wrote: > > > On Wed, 3 Jun 2020 01:24:43 -0400 > > > Yan Zhao wrote: > > > > > > > On Tue, Jun 02, 2020 at

Re: [Intel-gfx] [PATCH] drm/i915: Fix comments mentioning typo in IS_ENABLED()

2020-06-05 Thread Chris Wilson
Quoting Kees Cook (2020-06-05 15:19:53) > This has no code changes, but the typo is clearly getting copy/pasted, > so better to avoid this now and fix the typo. IS_ENABLED() takes full > names, and must have the "CONFIG_" prefix. > > Reported-by: Joe Perches > Link: >

Re: [PATCH] dma-fence: basic lockdep annotations

2020-06-05 Thread Intel
On 6/5/20 3:29 PM, Daniel Vetter wrote: Design is similar to the lockdep annotations for workers, but with some twists: - We use a read-lock for the execution/worker/completion side, so that this explicit annotation can be more liberally sprinkled around. With read locks lockdep isn't

Re: [PATCH v4 11/11] module: Make module_enable_ro() static again

2020-06-05 Thread Josh Poimboeuf
On Fri, Jun 05, 2020 at 04:20:10PM +0200, Jessica Yu wrote: > +++ Guenter Roeck [05/06/20 06:24 -0700]: > > On Wed, Apr 29, 2020 at 10:24:53AM -0500, Josh Poimboeuf wrote: > > > Now that module_enable_ro() has no more external users, make it static > > > again. > > > > > > Suggested-by: Jessica

Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node

2020-06-05 Thread Sai Prakash Ranjan
Hi Nico, On 2020-06-05 20:01, Nicolas Dechesne wrote: On Fri, Jun 5, 2020 at 4:14 PM Sai Prakash Ranjan wrote: On 2020-06-05 19:40, Jonathan Marek wrote: > On 6/5/20 10:03 AM, Sai Prakash Ranjan wrote: >> On 2020-05-29 08:45, Bjorn Andersson wrote: >>> On Thu 28 May 20:02 PDT 2020, Jonathan

Re: [PATCH 0/2] overlayfs: C/R enhancements

2020-06-05 Thread Amir Goldstein
> > While at it, you copy pasted the text: > > For more information, see Documentation/filesystems/overlayfs.txt > > but there is no more information to be found. > > As far as I know documentation patches must be send to another mailing list. > Of course I have plan to add information

Re: [PATCH v3] block: Fix use-after-free in blkdev_get()

2020-06-05 Thread Jan Kara
On Fri 05-06-20 18:45:58, Jason Yan wrote: > In blkdev_get() we call __blkdev_get() to do some internal jobs and if > there is some errors in __blkdev_get(), the bdput() is called which > means we have released the refcount of the bdev (actually the refcount of > the bdev inode). This means we

Re: [PATCH v3 070/105] drm/vc4: hdmi: rework connectors and encoders

2020-06-05 Thread Maxime Ripard
Hi Stefan, On Wed, Jun 03, 2020 at 07:32:30PM +0200, Stefan Wahren wrote: > Am 02.06.20 um 17:54 schrieb Maxime Ripard: > > On Wed, May 27, 2020 at 11:41:24AM -0700, Eric Anholt wrote: > >> On Wed, May 27, 2020 at 8:51 AM Maxime Ripard wrote: > >>> the vc4_hdmi driver has some custom structures

Re: [PATCH] compiler.h: Move instrumentation_begin()/end() into new header

2020-06-05 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Thu, Jun 04, 2020 at 10:19:28AM +0200, Ingo Molnar wrote: > > The tested v2 version of the patch also needed the include in > > asm-generic/bug.h (see the fix attached below), because for > > completeness the generic version was annotated as well - even though >

Re: Regression with PM / wakeup: Show wakeup sources stats in sysfs"

2020-06-05 Thread Rafael J. Wysocki
On Tuesday, June 2, 2020 5:06:29 AM CEST Florian Fainelli wrote: > > On 6/1/2020 6:30 PM, Florian Fainelli wrote: > > > > > > On 5/30/2020 3:33 PM, Tri Vo wrote: > >> On Sat, May 30, 2020 at 11:52 AM Florian Fainelli > >> wrote: > >>> > >>> > >>> > >>> On 5/29/2020 4:14 PM, Tri Vo wrote: >

Re: [PATCH v5 0/4] introduction of migration_version attribute for VFIO live migration

2020-06-05 Thread Alex Williamson
On Fri, 5 Jun 2020 11:22:24 +0100 "Dr. David Alan Gilbert" wrote: > * Alex Williamson (alex.william...@redhat.com) wrote: > > On Wed, 3 Jun 2020 01:24:43 -0400 > > Yan Zhao wrote: > > > > > On Tue, Jun 02, 2020 at 09:55:28PM -0600, Alex Williamson wrote: > > > > On Tue, 2 Jun 2020 23:19:48

Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node

2020-06-05 Thread Nicolas Dechesne
On Fri, Jun 5, 2020 at 4:14 PM Sai Prakash Ranjan wrote: > > On 2020-06-05 19:40, Jonathan Marek wrote: > > On 6/5/20 10:03 AM, Sai Prakash Ranjan wrote: > >> On 2020-05-29 08:45, Bjorn Andersson wrote: > >>> On Thu 28 May 20:02 PDT 2020, Jonathan Marek wrote: > >>> > > > On

Re: [RFC PATCH 0/4] kgdb: Honour the kprobe blacklist when setting breakpoints

2020-06-05 Thread Peter Zijlstra
On Fri, Jun 05, 2020 at 02:21:26PM +0100, Daniel Thompson wrote: > kgdb has traditionally adopted a no safety rails approach to breakpoint > placement. If the debugger is commanded to place a breakpoint at an > address then it will do so even if that breakpoint results in kgdb > becoming

drivers/mmc/host/mtk-sd.c:undefined reference to `clk_get_parent'

2020-06-05 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 435faf5c218a47fd6258187f62d9bb1009717896 commit: ff487d41036035376e47972c7c522490b839ab37 MIPS: Truncate link address into 32bit for 32bit kernel date: 4 weeks ago config: mips-randconfig-r021-20200605

[PATCH 5.7 10/14] mmc: fix compilation of user API

2020-06-05 Thread Greg Kroah-Hartman
From: Jérôme Pouiller commit 83fc5dd57f86c3ec7d6d22565a6ff6c948853b64 upstream. The definitions of MMC_IOC_CMD and of MMC_IOC_MULTI_CMD rely on MMC_BLOCK_MAJOR: #define MMC_IOC_CMD _IOWR(MMC_BLOCK_MAJOR, 0, struct mmc_ioc_cmd) #define MMC_IOC_MULTI_CMD _IOWR(MMC_BLOCK_MAJOR, 1,

[PATCH 5.6 14/43] io_uring: fix FORCE_ASYNC req preparation

2020-06-05 Thread Greg Kroah-Hartman
From: Pavel Begunkov [ Upstream commit bd2ab18a1d6267446eae1b47dd839050452bdf7f ] As for other not inlined requests, alloc req->io for FORCE_ASYNC reqs, so they can be prepared properly. Signed-off-by: Pavel Begunkov Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- fs/io_uring.c |

[PATCH 5.7 05/14] HID: i2c-hid: add Schneider SCL142ALM to descriptor override

2020-06-05 Thread Greg Kroah-Hartman
From: Julian Sax commit 6507ef10660efdfee93f0f3b9fac24b5e4d83e56 upstream. This device uses the SIPODEV SP1064 touchpad, which does not supply descriptors, so it has to be added to the override list. Cc: sta...@vger.kernel.org Signed-off-by: Julian Sax Signed-off-by: Jiri Kosina

[PATCH 5.7 04/14] HID: multitouch: enable multi-input as a quirk for some devices

2020-06-05 Thread Greg Kroah-Hartman
From: Benjamin Tissoires commit 40d5bb87377a599d0405af765290f28aaa6abb1e upstream. Two touchpad/trackstick combos are currently not behaving properly. They define a mouse emulation collection, as per Win8 requirements, but also define a separate mouse collection for the trackstick. The way the

[PATCH 5.6 19/43] s390/mm: fix set_huge_pte_at() for empty ptes

2020-06-05 Thread Greg Kroah-Hartman
From: Gerald Schaefer [ Upstream commit ac8372f3b4e41015549b331a4f350224661e7fc6 ] On s390, the layout of normal and large ptes (i.e. pmds/puds) differs. Therefore, set_huge_pte_at() does a conversion from a normal pte to the corresponding large pmd/pud. So, when converting an empty pte, this

[PATCH 5.6 15/43] net: phy: propagate an error back to the callers of phy_sfp_probe

2020-06-05 Thread Greg Kroah-Hartman
From: Leon Romanovsky [ Upstream commit e3f2d5579c0b8ad9d1fb6a5813cee38a86386e05 ] The compilation warning below reveals that the errors returned from the sfp_bus_add_upstream() call are not propagated to the callers. Fix it by returning "ret". 14:37:51 drivers/net/phy/phy_device.c: In

[PATCH 5.6 01/43] x86/syscalls: Revert "x86/syscalls: Make __X32_SYSCALL_BIT be unsigned long"

2020-06-05 Thread Greg Kroah-Hartman
From: Andy Lutomirski [ Upstream commit 700d3a5a664df267f01ec8887fd2d8ff98f67e7f ] Revert 45e29d119e99 ("x86/syscalls: Make __X32_SYSCALL_BIT be unsigned long") and add a comment to discourage someone else from making the same mistake again. It turns out that some user code fails to

[PATCH 5.6 16/43] x86/mmiotrace: Use cpumask_available() for cpumask_var_t variables

2020-06-05 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit d7110a26e5905ec2fe3fc88bc6a538901accb72b ] When building with Clang + -Wtautological-compare and CONFIG_CPUMASK_OFFSTACK unset: arch/x86/mm/mmio-mod.c:375:6: warning: comparison of array 'downed_cpus' equal to a null pointer is always false

[PATCH 5.6 10/43] dmaengine: ti: k3-udma: Fix TR mode flags for slave_sg and memcpy

2020-06-05 Thread Greg Kroah-Hartman
From: Peter Ujfalusi [ Upstream commit be4054b8b6671ebc977eb7774b8e889d2d05d3e3 ] cppi5_tr_csf_set() clears previously set Configuration Specific Flags. Setting the EOP flag clears the SUPR_EVT flag for the last TR which is not desirable as we do not want to have events from the TR.

Re: BUG: kernel NULL pointer dereference from check_preempt_wakeup()

2020-06-05 Thread Paul E. McKenney
On Fri, Jun 05, 2020 at 03:14:51PM +0200, Peter Zijlstra wrote: No KCSAN. GCC 8.2.1. No cgroups unless the kernel creates some. No userspace other than a C-language binary named "init" that sleeps in an infinite loop. .config attached. > On Thu, Jun 04, 2020 at 03:54:45PM -0700, Paul E.

Re: slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-05 Thread Rafael J. Wysocki
acpi_os_allocate_zeroed(On Fri, Jun 5, 2020 at 4:08 PM Vlastimil Babka wrote: > > On 6/5/20 3:12 PM, Rafael J. Wysocki wrote: > > On Fri, Jun 5, 2020 at 2:48 PM Vegard Nossum > > wrote: > >> > >> On 2020-06-05 11:36, Vegard Nossum wrote: > >> > > >> > On 2020-06-05 11:11, Vlastimil Babka wrote:

[PATCH 5.6 18/43] drm/edid: Add Oculus Rift S to non-desktop list

2020-06-05 Thread Greg Kroah-Hartman
From: Jan Schmidt [ Upstream commit 5a3f610877e9d08968ea7237551049581f02b163 ] Add a quirk for the Oculus Rift S OVR0012 display so it shows up as a non-desktop display. Signed-off-by: Jan Schmidt Signed-off-by: Dave Airlie Link:

[PATCH 5.6 23/43] wireguard: selftests: use newer iproute2 for gcc-10

2020-06-05 Thread Greg Kroah-Hartman
From: Jason A. Donenfeld [ Upstream commit ee3c1aa3f34b7842c1557cfe5d8c3f7b8c692de8 ] gcc-10 switched to defaulting to -fno-common, which broke iproute2-5.4. This was fixed in iproute-5.6, so switch to that. Because we're after a stable testing surface, we generally don't like to bump these

[PATCH 5.6 35/43] p54usb: add AirVasT USB stick device-id

2020-06-05 Thread Greg Kroah-Hartman
From: Giuseppe Marco Randazzo commit 63e49a9fdac1b4e97ac26cb3fe953f210d83bc53 upstream. This patch adds the AirVasT USB wireless devices 124a:4026 to the list of supported devices. It's using the ISL3886 usb firmware. Without this modification, the wiki adapter is not recognized. Cc:

[PATCH 5.6 24/43] null_blk: return error for invalid zone size

2020-06-05 Thread Greg Kroah-Hartman
From: Chaitanya Kulkarni [ Upstream commit e274832590211c4b1b1e807ca66fad8b5bb8b328 ] In null_init_zone_dev() check if the zone size is larger than device capacity, return error if needed. This also fixes the following oops :- null_blk: changed the number of conventional zones to 4294967295

[PATCH 5.6 03/43] ARC: Fix ICCM & DCCM runtime size checks

2020-06-05 Thread Greg Kroah-Hartman
From: Eugeniy Paltsev [ Upstream commit 43900edf67d7ef3ac8909854d75b8a1fba2d570c ] As of today the ICCM and DCCM size checks are incorrectly using mismatched units (KiB checked against bytes). The CONFIG_ARC_DCCM_SZ and CONFIG_ARC_ICCM_SZ are in KiB, but the size calculated in runtime and

[PATCH 5.6 30/43] net: smsc911x: Fix runtime PM imbalance on error

2020-06-05 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 539d39ad0c61b35f69565a037d7586deaf6d6166 ] Remove runtime PM usage counter decrement when the increment function has not been called to keep the counter balanced. Signed-off-by: Dinghao Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH 5.6 26/43] net/ethernet/freescale: rework quiesce/activate for ucc_geth

2020-06-05 Thread Greg Kroah-Hartman
From: Valentin Longchamp [ Upstream commit 79dde73cf9bcf1dd317a2667f78b758e9fe139ed ] ugeth_quiesce/activate are used to halt the controller when there is a link change that requires to reconfigure the mac. The previous implementation called netif_device_detach(). This however causes the

[PATCH 5.6 27/43] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x

2020-06-05 Thread Greg Kroah-Hartman
From: Jonathan McDowell [ Upstream commit a96ac8a0045e3cbe3e5af6d1b3c78c6c2065dec5 ] The ipq806x_gmac_probe() function enables the PTP clock but not the appropriate interface clocks. This means that if the bootloader hasn't done so attempting to bring up the interface will fail with an error

[PATCH 5.6 25/43] net: ethernet: ti: fix some return value check of cpsw_ale_create()

2020-06-05 Thread Greg Kroah-Hartman
From: Wei Yongjun [ Upstream commit 3469660d1b15ccfdf7b33295c306b6298ca730aa ] cpsw_ale_create() can return both NULL and PTR_ERR(), but all of the caller only check NULL for error handling. This patch convert it to only return PTR_ERR() in all error cases, and the caller using IS_ERR() instead

[PATCH 5.6 06/43] evm: Fix RCU list related warnings

2020-06-05 Thread Greg Kroah-Hartman
From: Madhuparna Bhowmik [ Upstream commit 770f60586d2af0590be263f55fd079226313922c ] This patch fixes the following warning and few other instances of traversal of evm_config_xattrnames list: [ 32.848432] = [ 32.848707] WARNING: suspicious RCU usage [

[PATCH 5.6 00/43] 5.6.17-rc1 review

2020-06-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.6.17 release. There are 43 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 Sun, 07 Jun 2020 13:54:56 +. Anything

[PATCH 5.6 33/43] HID: multitouch: enable multi-input as a quirk for some devices

2020-06-05 Thread Greg Kroah-Hartman
From: Benjamin Tissoires commit 40d5bb87377a599d0405af765290f28aaa6abb1e upstream. Two touchpad/trackstick combos are currently not behaving properly. They define a mouse emulation collection, as per Win8 requirements, but also define a separate mouse collection for the trackstick. The way the

[PATCH 5.6 09/43] x86/hyperv: Properly suspend/resume reenlightenment notifications

2020-06-05 Thread Greg Kroah-Hartman
From: Vitaly Kuznetsov [ Upstream commit 38dce4195f0daefb566279fd9fd51e1fbd62ae1b ] Errors during hibernation with reenlightenment notifications enabled were reported: [ 51.730435] PM: hibernation entry [ 51.737435] PM: Syncing filesystems ... ... [ 54.102216] Disabling non-boot CPUs

Re: [PATCH V2] mm/vmstat: Add events for THP migration without split

2020-06-05 Thread Zi Yan
On 4 Jun 2020, at 23:35, Anshuman Khandual wrote: > On 06/04/2020 10:19 PM, Zi Yan wrote: >> On 4 Jun 2020, at 12:36, Matthew Wilcox wrote: >> >>> On Thu, Jun 04, 2020 at 09:51:10AM -0400, Zi Yan wrote: On 4 Jun 2020, at 7:34, Matthew Wilcox wrote: > On Thu, Jun 04, 2020 at 09:30:45AM

[PATCH 5.4 17/38] powerpc/powernv: Avoid re-registration of imc debugfs directory

2020-06-05 Thread Greg Kroah-Hartman
From: Anju T Sudhakar [ Upstream commit 48e626ac85b43cc589dd1b3b8004f7f85f03544d ] export_imc_mode_and_cmd() function which creates the debugfs interface for imc-mode and imc-command, is invoked when each nest pmu units is registered. When the first nest pmu unit is registered,

[PATCH 5.6 40/43] media: Revert "staging: imgu: Address a compiler warning on alignment"

2020-06-05 Thread Greg Kroah-Hartman
From: Sakari Ailus commit 81d1adeb52c97fbe097e8c94e36c3eb702cdb110 upstream. This reverts commit c9d52c114a9fcc61c30512c7f810247a9f2812af. The patch being reverted changed the memory layout of struct ipu3_uapi_acc_param. Revert it, and address the compiler warning issues in further patches.

[PATCH 5.4 13/38] net: dsa: mt7530: set CPU port to fallback mode

2020-06-05 Thread Greg Kroah-Hartman
From: DENG Qingfang commit 38152ea37d8bdaffa22603e0a5b5b86cfa8714c9 upstream. Currently, setting a bridge's self PVID to other value and deleting the default VID 1 renders untagged ports of that VLAN unable to talk to the CPU port: bridge vlan add dev br0 vid 2 pvid untagged self

[PATCH 5.6 36/43] mt76: mt76x02u: Add support for newer versions of the XBox One wifi adapter

2020-06-05 Thread Greg Kroah-Hartman
From: Matthew Garrett commit b2934279c3e9719145ff4090d4ab951e340df17e upstream. The current version has a new USB ID and reports as an 0x7632 device. Adding the IDs results in it working out of the box. Signed-off-by: Matthew Garrett Signed-off-by: Felix Fietkau Signed-off-by: Greg

[PATCH 5.4 12/38] scsi: ufs: Release clock if DMA map fails

2020-06-05 Thread Greg Kroah-Hartman
From: Can Guo commit 17c7d35f141ef6158076adf3338f115f64fcf760 upstream. In queuecommand path, if DMA map fails, it bails out with clock held. In this case, release the clock to keep its usage paired. [mkp: applied by hand] Link:

[PATCH 5.4 14/38] airo: Fix read overflows sending packets

2020-06-05 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 11e7a91994c29da96d847f676be023da6a2c1359 upstream. The problem is that we always copy a minimum of ETH_ZLEN (60) bytes from skb->data even when skb->len is less than ETH_ZLEN so it leads to a read overflow. The fix is to pad skb->data to at least ETH_ZLEN bytes. Cc:

[PATCH 5.4 01/38] Revert "cgroup: Add memory barriers to plug cgroup_rstat_updated() race window"

2020-06-05 Thread Greg Kroah-Hartman
From: Tejun Heo [ Upstream commit d8ef4b38cb69d907f9b0e889c44d05fc0f890977 ] This reverts commit 9a9e97b2f1f2 ("cgroup: Add memory barriers to plug cgroup_rstat_updated() race window"). The commit was added in anticipation of memcg rstat conversion which needed synchronous accounting for the

[PATCH 5.6 41/43] media: staging: ipu3-imgu: Move alignment attribute to field

2020-06-05 Thread Greg Kroah-Hartman
From: Sakari Ailus commit 8c038effd893920facedf18c2c0976cec4a33408 upstream. Move the alignment attribute of struct ipu3_uapi_awb_fr_config_s to the field in struct ipu3_uapi_4a_config, the other location where the struct is used. Fixes: commit c9d52c114a9f ("media: staging: imgu: Address a

[PATCH resend] fs/namei.c: micro-optimize acl_permission_check

2020-06-05 Thread Rasmus Villemoes
Just something like open(/usr/include/sys/stat.h) causes five calls of generic_permission -> acl_permission_check -> in_group_p; if the compiler first tried /usr/local/include/..., that would be a few more. Altogether, on a bog-standard Ubuntu 20.04 install, a workload consisting of compiling

[PATCH] powerpc/mm: Fix typo in IS_ENABLED()

2020-06-05 Thread Kees Cook
From: Joe Perches IS_ENABLED() matches names exactly, so the missing "CONFIG_" prefix means this code would never be built. Also fixes a missing newline in pr_warn(). Signed-off-by: Joe Perches Link: https://lore.kernel.org/lkml/b08611018fdb6d88757c6008a5c02fa0e07b32fb.ca...@perches.com

[PATCH 5.4 21/38] s390/ftrace: save traced function caller

2020-06-05 Thread Greg Kroah-Hartman
From: Vasily Gorbik [ Upstream commit b4adfe55915d8363e244e42386d69567db1719b9 ] A typical backtrace acquired from ftraced function currently looks like the following (e.g. for "path_openat"): arch_stack_walk+0x15c/0x2d8 stack_trace_save+0x50/0x68 stack_trace_call+0x15a/0x3b8

[PATCH 5.4 05/38] HID: i2c-hid: add Schneider SCL142ALM to descriptor override

2020-06-05 Thread Greg Kroah-Hartman
From: Julian Sax commit 6507ef10660efdfee93f0f3b9fac24b5e4d83e56 upstream. This device uses the SIPODEV SP1064 touchpad, which does not supply descriptors, so it has to be added to the override list. Cc: sta...@vger.kernel.org Signed-off-by: Julian Sax Signed-off-by: Jiri Kosina

[PATCH 5.4 27/38] scsi: pm: Balance pm_only counter of request queue during system resume

2020-06-05 Thread Greg Kroah-Hartman
From: Can Guo [ Upstream commit 05d18ae1cc8a0308b12f37b4ab94afce3535fac9 ] During system resume, scsi_resume_device() decreases a request queue's pm_only counter if the scsi device was quiesced before. But after that, if the scsi device's RPM status is RPM_SUSPENDED, the pm_only counter is

[PATCH 5.4 16/38] scsi: hisi_sas: Check sas_port before using it

2020-06-05 Thread Greg Kroah-Hartman
From: Xiang Chen [ Upstream commit 8c39673d5474b95374df2104dc1f65205c5278b8 ] Need to check the structure sas_port before using it. Link: https://lore.kernel.org/r/1573551059-107873-2-git-send-email-john.ga...@huawei.com Signed-off-by: Xiang Chen Signed-off-by: John Garry Signed-off-by:

[PATCH 5.4 06/38] p54usb: add AirVasT USB stick device-id

2020-06-05 Thread Greg Kroah-Hartman
From: Giuseppe Marco Randazzo commit 63e49a9fdac1b4e97ac26cb3fe953f210d83bc53 upstream. This patch adds the AirVasT USB wireless devices 124a:4026 to the list of supported devices. It's using the ISL3886 usb firmware. Without this modification, the wiki adapter is not recognized. Cc:

[PATCH 5.4 34/38] null_blk: return error for invalid zone size

2020-06-05 Thread Greg Kroah-Hartman
From: Chaitanya Kulkarni [ Upstream commit e274832590211c4b1b1e807ca66fad8b5bb8b328 ] In null_init_zone_dev() check if the zone size is larger than device capacity, return error if needed. This also fixes the following oops :- null_blk: changed the number of conventional zones to 4294967295

[PATCH 5.4 25/38] ARC: [plat-eznps]: Restrict to CONFIG_ISA_ARCOMPACT

2020-06-05 Thread Greg Kroah-Hartman
From: Vineet Gupta [ Upstream commit 799587d5731db9dcdafaac4002463aa7d9cd6cf7 ] Elide invalid configuration EZNPS + ARCv2, triggered by a make allyesconfig build. Granted the root cause is in source code (asm/barrier.h) where we check for ARCv2 before PLAT_EZNPS, but it is better to avoid such

[PATCH 5.4 08/38] kernel/relay.c: handle alloc_percpu returning NULL in relay_open

2020-06-05 Thread Greg Kroah-Hartman
From: Daniel Axtens commit 54e200ab40fc14c863bcc80a51e20b7906608fce upstream. alloc_percpu() may return NULL, which means chan->buf may be set to NULL. In that case, when we do *per_cpu_ptr(chan->buf, ...), we dereference an invalid pointer: BUG: Unable to handle kernel data access at

[PATCH 5.4 19/38] spi: dw: use "smp_mb()" to avoid sending spi data error

2020-06-05 Thread Greg Kroah-Hartman
From: Xinwei Kong [ Upstream commit bfda044533b213985bc62bd7ca96f2b984d21b80 ] Because of out-of-order execution about some CPU architecture, In this debug stage we find Completing spi interrupt enable -> prodrucing TXEI interrupt -> running "interrupt_transfer" function will prior to set

[PATCH 5.4 32/38] drm/edid: Add Oculus Rift S to non-desktop list

2020-06-05 Thread Greg Kroah-Hartman
From: Jan Schmidt [ Upstream commit 5a3f610877e9d08968ea7237551049581f02b163 ] Add a quirk for the Oculus Rift S OVR0012 display so it shows up as a non-desktop display. Signed-off-by: Jan Schmidt Signed-off-by: Dave Airlie Link:

[PATCH 5.4 28/38] i2c: altera: Fix race between xfer_msg and isr thread

2020-06-05 Thread Greg Kroah-Hartman
From: Atsushi Nemoto [ Upstream commit 5d4c7977499a736f3f80826bdc9744344ad55589 ] Use a mutex to protect access to idev->msg_len, idev->buf, etc. which are modified by both altr_i2c_xfer_msg() and altr_i2c_isr(). This is the minimal fix for easy backporting. A cleanup to remove the spinlock

[PATCH 5.4 30/38] x86/mmiotrace: Use cpumask_available() for cpumask_var_t variables

2020-06-05 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit d7110a26e5905ec2fe3fc88bc6a538901accb72b ] When building with Clang + -Wtautological-compare and CONFIG_CPUMASK_OFFSTACK unset: arch/x86/mm/mmio-mod.c:375:6: warning: comparison of array 'downed_cpus' equal to a null pointer is always false

[PATCH 5.4 31/38] net: bmac: Fix read of MAC address from ROM

2020-06-05 Thread Greg Kroah-Hartman
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer.

[PATCH 4.19 13/28] scsi: hisi_sas: Check sas_port before using it

2020-06-05 Thread Greg Kroah-Hartman
From: Xiang Chen [ Upstream commit 8c39673d5474b95374df2104dc1f65205c5278b8 ] Need to check the structure sas_port before using it. Link: https://lore.kernel.org/r/1573551059-107873-2-git-send-email-john.ga...@huawei.com Signed-off-by: Xiang Chen Signed-off-by: John Garry Signed-off-by:

[PATCH 4.19 23/28] drm/edid: Add Oculus Rift S to non-desktop list

2020-06-05 Thread Greg Kroah-Hartman
From: Jan Schmidt [ Upstream commit 5a3f610877e9d08968ea7237551049581f02b163 ] Add a quirk for the Oculus Rift S OVR0012 display so it shows up as a non-desktop display. Signed-off-by: Jan Schmidt Signed-off-by: Dave Airlie Link:

[PATCH 4.19 14/28] powerpc/powernv: Avoid re-registration of imc debugfs directory

2020-06-05 Thread Greg Kroah-Hartman
From: Anju T Sudhakar [ Upstream commit 48e626ac85b43cc589dd1b3b8004f7f85f03544d ] export_imc_mode_and_cmd() function which creates the debugfs interface for imc-mode and imc-command, is invoked when each nest pmu units is registered. When the first nest pmu unit is registered,

[PATCH 4.19 11/28] airo: Fix read overflows sending packets

2020-06-05 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 11e7a91994c29da96d847f676be023da6a2c1359 upstream. The problem is that we always copy a minimum of ETH_ZLEN (60) bytes from skb->data even when skb->len is less than ETH_ZLEN so it leads to a read overflow. The fix is to pad skb->data to at least ETH_ZLEN bytes. Cc:

[PATCH 4.19 21/28] x86/mmiotrace: Use cpumask_available() for cpumask_var_t variables

2020-06-05 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit d7110a26e5905ec2fe3fc88bc6a538901accb72b ] When building with Clang + -Wtautological-compare and CONFIG_CPUMASK_OFFSTACK unset: arch/x86/mm/mmio-mod.c:375:6: warning: comparison of array 'downed_cpus' equal to a null pointer is always false

[PATCH 4.19 24/28] s390/mm: fix set_huge_pte_at() for empty ptes

2020-06-05 Thread Greg Kroah-Hartman
From: Gerald Schaefer [ Upstream commit ac8372f3b4e41015549b331a4f350224661e7fc6 ] On s390, the layout of normal and large ptes (i.e. pmds/puds) differs. Therefore, set_huge_pte_at() does a conversion from a normal pte to the corresponding large pmd/pud. So, when converting an empty pte, this

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