[GIT PULL] x86 fixes

2020-08-15 Thread Ingo Molnar
Linus, Please pull the latest x86/urgent git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-2020-08-15 # HEAD: a6d996cbd38b42341ad3fce74506b9fdc280e395 x86/alternatives: Acquire pte lock with interrupts enabled Misc fixes and small updates all around

Re: [PATCH v3] kunit: added lockdep support

2020-08-15 Thread Peter Zijlstra
On Sat, Aug 15, 2020 at 10:30:29AM +0200, Ingo Molnar wrote: > > * Uriel Guajardo wrote: > > > From: Uriel Guajardo > > > > KUnit will fail tests upon observing a lockdep failure. Because lockdep > > turns itself off after its first failure, only fail the first test and > > warn users to not

Re: [PATCH RFC 1/2] mm: Extract SLAB_QUARANTINE from KASAN

2020-08-15 Thread Matthew Wilcox
On Thu, Aug 13, 2020 at 06:19:21PM +0300, Alexander Popov wrote: > +config SLAB_QUARANTINE > + bool "Enable slab freelist quarantine" > + depends on !KASAN && (SLAB || SLUB) > + help > + Enable slab freelist quarantine to break heap spraying technique > + used for

[PATCH RFC 04/12] kernel/entry: Add support for core-wide protection of kernel-mode

2020-08-15 Thread Joel Fernandes (Google)
Core-scheduling prevents hyperthreads in usermode from attacking each other, but it does not do anything about one of the hyperthreads entering the kernel for any reason. This leaves the door open for MDS and L1TF attacks with concurrent execution sequences between hyperthreads. This patch

Re: [GIT PULL] edac for v5.9 (part 2)

2020-08-15 Thread Linus Torvalds
On Fri, Aug 14, 2020 at 5:36 PM Luck, Tony wrote: > > Here's one more pull for EDAC with a driver that I let slip > through the cracks. Shortlog? Diffstat? Just what am I getting? Linus

[PATCH 4/9] habanalabs: use standard BIT() and GENMASK()

2020-08-15 Thread Oded Gabbay
Use the standard macros to define bitmasks. Reported-by: kernel test robot Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/gaudi/gaudiP.h | 44 +- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/misc/habanalabs/gaudi/gaudiP.h

[PATCH RFC 05/12] entry/idle: Enter and exit kernel protection during idle entry and exit

2020-08-15 Thread Joel Fernandes (Google)
Make use of the generic_idle_{enter,exit} helper function added in earlier patches to enter and exit kernel protection. On exiting idle, protection will be reenabled. Signed-off-by: Joel Fernandes (Google) --- include/linux/entry-common.h | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [PATCH] genksyms: keywords: Use __restrict not _restrict

2020-08-15 Thread Nick Desaulniers
On Fri, Aug 14, 2020 at 6:38 PM Joe Perches wrote: > > Use the proper form of the RESTRICT keyword. > > Quote the comments properly too. > > Signed-off-by: Joe Perches Acked-by: Nick Desaulniers (Surprised what looked to me like a typo compiled). Would a checkpatch warning be helpful, too?

[PATCH RFC 00/12] Core-sched v6+: kernel protection and hotplug fixes

2020-08-15 Thread Joel Fernandes (Google)
Hello! This series is continuation of main core-sched v6 series [1] and adds support for syscall and IRQ isolation from usermode processes and guests. It is key to safely entering kernel mode in an HT while the other HT is in use by a user or guest. The series also fixes CPU hotplug issues

Re: WARNING: refcount bug in p9_req_put

2020-08-15 Thread syzbot
syzbot suspects this issue was fixed by commit: commit a39c46067c845a8a2d7144836e9468b7f072343e Author: Christoph Hellwig Date: Fri Jul 10 08:57:22 2020 + net/9p: validate fds in p9_fd_open bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1015f01290 start commit:

[PATCH RFC 01/12] irq_work: Add support to detect if work is pending

2020-08-15 Thread Joel Fernandes (Google)
When an unsafe region is entered on an HT, an IPI needs to be sent to siblings to ensure they enter the kernel. Following are the reasons why we would like to use irq_work to implement forcing of sibling into kernel mode: 1. Existing smp_call infrastructure cannot be used easily since we could

[PATCH 2/9] habanalabs: cast int to u32 before printing it with %u

2020-08-15 Thread Oded Gabbay
%u is used for unsigned so we need to cast the int variable to u32 to avoid compiler warning. Reported-by: kernel test robot Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/common/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 0/4] Add support for Feixin K101-IM2BYL02 panel

2020-08-15 Thread Sam Ravnborg
Hi Icenowy On Mon, Jul 20, 2020 at 01:04:06AM +0800, Icenowy Zheng wrote: > The controller chip of Feixin K101-IM2BA02 is going to be discontinued, > so Feixin start to provide K101-IM2BYL02 panel as a replacement, which > utilizes Ilitek ILI9881C controller. > > Add support for K101-IM2BYL02

Re: [PATCH] lib/string.c: implement stpcpy

2020-08-15 Thread Joe Perches
On Fri, 2020-08-14 at 17:24 -0700, Nick Desaulniers wrote: > LLVM implemented a recent "libcall optimization" that lowers calls to > `sprintf(dest, "%s", str)` where the return value is used to > `stpcpy(dest, str) - dest`. This generally avoids the machinery involved > in parsing format strings.

[tip: x86/mm] x86/mm/64: Update comment in preallocate_vmalloc_pages()

2020-08-15 Thread tip-bot2 for Joerg Roedel
The following commit has been merged into the x86/mm branch of tip: Commit-ID: 7a27ef5e83089090f3a4073a9157c862ef00acfc Gitweb: https://git.kernel.org/tip/7a27ef5e83089090f3a4073a9157c862ef00acfc Author:Joerg Roedel AuthorDate:Fri, 14 Aug 2020 17:19:47 +02:00 Committer:

Re: [PATCH] x86/hotplug: Silence APIC only after all irq's are migrated

2020-08-15 Thread Raj, Ashok
Hi Randy, On Fri, Aug 14, 2020 at 04:25:32PM -0700, Randy Dunlap wrote: > On 8/14/20 2:38 PM, Ashok Raj wrote: > > When offlining CPU's, fixup_irqs() migrates all interrupts away from the > > CPUs, Thanks for catching these. I'll fix all these suggested changes in my next rev

[GIT PULL] edac for v5.9 (part 2)

2020-08-15 Thread Luck, Tony
Hi Linus, Here's one more pull for EDAC with a driver that I let slip through the cracks. -Tony The following changes since commit 709ed1bcef12398ac1a35c149f3e582db04456c2: EDAC/ie31200: Fallback if host bridge device is already initialized (2020-08-10 11:13:06 -0700) are available in the

Re: [RFC PATCH] vsprintf: Add %pv extension replacement for print_vma_addr

2020-08-15 Thread Joe Perches
On Sat, 2020-08-15 at 12:52 +0900, Sergey Senozhatsky wrote: > Cc-ing John > > On (20/08/14 10:53), Joe Perches wrote: > [..] > > In general, the idea looks nice. > > > +static noinline_for_stack > > +char *vma_addr(char *buf, char *end, void *ip, > > + struct printf_spec spec, const

Re: [PATCH] x86/fsgsbase/64: Fix NULL deref in 86_fsgsbase_read_task

2020-08-15 Thread Ingo Molnar
* Eric Dumazet wrote: > syzbot found its way in 86_fsgsbase_read_task() [1] > > Fix is to make sure ldt pointer is not NULL. Thanks for this fix. Linus has picked it up (inclusive the typos to the x86_fsgsbase_read_task() function name ;-), it's now upstream under: 8ab49526b53d:

Re: [PATCH v4 07/20] gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTL

2020-08-15 Thread Kent Gibson
On Sat, Aug 15, 2020 at 09:21:22AM +0200, Bartosz Golaszewski wrote: > On Sat, Aug 15, 2020 at 8:53 AM Kent Gibson wrote: > > > > On Fri, Aug 14, 2020 at 09:31:29PM +0200, Bartosz Golaszewski wrote: > > > On Fri, Aug 14, 2020 at 5:04 AM Kent Gibson wrote: > > > > > > > > Add support for

[tip: x86/paravirt] x86/entry/32: Simplify CONFIG_XEN_PV build dependency

2020-08-15 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/paravirt branch of tip: Commit-ID: 76fdb041c1f02311e6e05211c895e932af08b041 Gitweb: https://git.kernel.org/tip/76fdb041c1f02311e6e05211c895e932af08b041 Author:Juergen Gross AuthorDate:Sat, 15 Aug 2020 12:06:39 +02:00

[PATCH 1/2] power: supply: Add support for RN5T618/RC5T619 charger and fuel gauge

2020-08-15 Thread Andreas Kemnade
Both chips have charger and a fuel gauge. This adds basic support for displaying the state of the battery and the input power, settings are not modified. There are some defaults set via OTP. Charging also starts after plugging USB. Known issues of the fuel gauge: There are drivers in the wild

[PATCH RFC 06/12] entry/kvm: Protect the kernel when entering from guest

2020-08-15 Thread Joel Fernandes (Google)
From: Vineeth Pillai Similar to how user to kernel mode transitions are protected in earlier patches, protect the entry into kernel from guest mode as well. Signed-off-by: Joel Fernandes (Google) --- arch/x86/kvm/x86.c| 3 +++ include/linux/entry-kvm.h | 12

Re: general protection fault in io_poll_double_wake

2020-08-15 Thread Jens Axboe
On 8/15/20 11:16 AM, Jens Axboe wrote: > On 8/15/20 10:00 AM, syzbot wrote: >> Hello, >> >> syzbot found the following issue on: >> >> HEAD commit:7fca4dee Merge tag 'powerpc-5.9-2' of git://git.kernel.org.. >> git tree: upstream >> console output:

Re: Re: possible deadlock in io_poll_double_wake

2020-08-15 Thread syzbot
> #syz dupe general protection fault in io_poll_double_wake unknown command "dupe" > > -- > Jens Axboe > > -- > You received this message because you are subscribed to the Google Groups > "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an >

[PATCH] Documentation: add riscv entry in list of existing profiles

2020-08-15 Thread Lukas Bulwahn
As long as there are only a few maintainer entry profiles, i.e., three in v5.8, continue to maintain a complete a list of entries in the maintainer handbook. Complete the list by adding the RISC-V ARCHITECTURE maintainer entry profile found in MAINTAINERS. Signed-off-by: Lukas Bulwahn ---

[tip: x86/mm] x86/mm/64: Do not sync vmalloc/ioremap mappings

2020-08-15 Thread tip-bot2 for Joerg Roedel
The following commit has been merged into the x86/mm branch of tip: Commit-ID: 58a18fe95e83b8396605154db04d73b08063f31b Gitweb: https://git.kernel.org/tip/58a18fe95e83b8396605154db04d73b08063f31b Author:Joerg Roedel AuthorDate:Fri, 14 Aug 2020 17:19:46 +02:00 Committer:

Re: general protection fault in syscall_return_slowpath

2020-08-15 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 033724d6864245a11f8e04c066002e6ad22b3fd0 Author: Tetsuo Handa Date: Wed Jul 15 01:51:02 2020 + fbdev: Detect integer underflow at "struct fbcon_ops"->clear_margins. bisection log:

[PATCH 3/9] habanalabs: eliminate redundant else condition

2020-08-15 Thread Oded Gabbay
If both parts of if-else are goto statements, we can remove the else and put the else goto statement after the if statement. Reported-by: kernel test robot Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/common/command_submission.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-15 Thread Peter Zijlstra
On Sat, Aug 15, 2020 at 01:14:53AM +0200, Thomas Gleixner wrote: > > As a matter of fact I assume^Wdeclare that removing struct rcu_head which > provides a fallback is not an option at all. I know that you want to, > but it wont work ever. Dream on, but as we agreed on recently there is > this

[PATCH 1/3] regulator: rt4801: Add support for RT4801 Display Bias regulator driver

2020-08-15 Thread cy_huang
From: ChiYuan Huang Adds support for the RT4801 DSV. It has two regulators (DSVP/DSVN) with an I2C interface. DSVP/DSVN can provide the display panel module for the positive/negative voltage range from (+/-)4V to (+/-)6V. Signed-off-by: ChiYuan Huang --- drivers/regulator/Kconfig|

Re: [PATCH v4 07/20] gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTL

2020-08-15 Thread Bartosz Golaszewski
On Sat, Aug 15, 2020 at 8:53 AM Kent Gibson wrote: > > On Fri, Aug 14, 2020 at 09:31:29PM +0200, Bartosz Golaszewski wrote: > > On Fri, Aug 14, 2020 at 5:04 AM Kent Gibson wrote: > > > > > > Add support for requesting lines using the GPIO_V2_GET_LINE_IOCTL, and > > > returning their current

Re: [PATCH net v2] bonding: show saner speed for broadcast mode

2020-08-15 Thread David Miller
From: Jarod Wilson Date: Thu, 13 Aug 2020 10:09:00 -0400 > Broadcast mode bonds transmit a copy of all traffic simultaneously out of > all interfaces, so the "speed" of the bond isn't really the aggregate of > all interfaces, but rather, the speed of the slowest active interface. > > Also, the

Re: [PATCH] x86/fsgsbase/64: Fix NULL deref in 86_fsgsbase_read_task

2020-08-15 Thread Eric Dumazet
On Sat, Aug 15, 2020 at 4:48 AM Ingo Molnar wrote: > > > * Eric Dumazet wrote: > > > syzbot found its way in 86_fsgsbase_read_task() [1] > > > > Fix is to make sure ldt pointer is not NULL. > > Thanks for this fix. Linus has picked it up (inclusive the typos to > the x86_fsgsbase_read_task()

Re: [GIT PULL] perf tool changes for v5.9: 2nd batch

2020-08-15 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 14:49:17 -0300: > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-tools-2020-08-14 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/713eee84720e6525bc5b65954c5087604a15f5e8 Thank you! --

[PATCH] squashfs: avoid bio_alloc() failure with 1Mbyte blocks

2020-08-15 Thread Phillip Lougher
This is a regression introduced by the "migrate from ll_rw_block usage to BIO" patch. Bio_alloc() is limited to 256 pages (1 Mbyte). This can cause a failure when reading 1 Mbyte block filesystems. The problem is a datablock can be fully (or almost uncompressed), requiring 256 pages, but,

Re: [PATCH v9 00/11] Genericize DW MIPI DSI bridge and add i.MX 6 driver

2020-08-15 Thread Ezequiel Garcia
Hi Neil, On Wed, 2020-07-01 at 09:35 +0300, Adrian Ratiu wrote: > Hi Neil, > > On Mon, 29 Jun 2020, Neil Armstrong > wrote: > > Hi Adrian, > > > > On 09/06/2020 19:49, Adrian Ratiu wrote: > > > [Re-submitting to cc dri-devel, sorry about the noise] Hello > > > all, v9 cleanly applies on

general protection fault in io_poll_double_wake

2020-08-15 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:7fca4dee Merge tag 'powerpc-5.9-2' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1264d11690 kernel config: https://syzkaller.appspot.com/x/.config?x=21f0d1d2df6d5fc

Re: [PATCH net] drivers/net/wan/hdlc_x25: Added needed_headroom and a skb->len check

2020-08-15 Thread David Miller
From: Xie He Date: Thu, 13 Aug 2020 11:17:04 -0700 > 1. Added a skb->len check > > This driver expects upper layers to include a pseudo header of 1 byte > when passing down a skb for transmission. This driver will read this > 1-byte header. This patch added a skb->len check before reading the >

Re: [PATCH v4 07/20] gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTL

2020-08-15 Thread Kent Gibson
On Fri, Aug 14, 2020 at 09:31:29PM +0200, Bartosz Golaszewski wrote: > On Fri, Aug 14, 2020 at 5:04 AM Kent Gibson wrote: > > > > Add support for requesting lines using the GPIO_V2_GET_LINE_IOCTL, and > > returning their current values using GPIO_V2_LINE_GET_VALUES_IOCTL. > > > > Signed-off-by:

Re: Protecting usb_set_interface() against device removal

2020-08-15 Thread Guenter Roeck
On 8/14/20 7:07 PM, Alan Stern wrote: > On Fri, Aug 14, 2020 at 04:07:03PM -0700, Guenter Roeck wrote: >> Hi all, >> >> over time, there have been a number of reports of crashes in >> usb_ifnum_to_if(), >> called from usb_hcd_alloc_bandwidth, which is in turn called from >> usb_set_interface().

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

2020-08-15 Thread Sedat Dilek
On Sat, Aug 15, 2020 at 5:28 AM Sedat Dilek wrote: > > On Sat, Aug 15, 2020 at 2:27 AM Nick Desaulniers > wrote: > > > > On Fri, Aug 14, 2020 at 3:57 PM Nick Desaulniers > > wrote: > > > > > > On Fri, Aug 14, 2020 at 2:19 PM Sedat Dilek wrote: > > > > > > > > On Fri, Aug 14, 2020 at 7:29 PM

Re: [PATCH] lib/string.c: implement stpcpy

2020-08-15 Thread Nick Desaulniers
On Fri, Aug 14, 2020 at 6:33 PM Arvind Sankar wrote: > > On Fri, Aug 14, 2020 at 05:24:15PM -0700, Nick Desaulniers wrote: > > +#ifndef __HAVE_ARCH_STPCPY > > +/** > > + * stpcpy - copy a string from src to dest returning a pointer to the new > > end > > + * of dest, including src's

[PATCH 2/2] treewide: Make all debug_obj_descr's const

2020-08-15 Thread Stephen Boyd
This should make it harder for the kernel to corrupt the debug object descriptor, used to call functions to fixup state and track debug objects, by moving the structure to read-only memory. Signed-off-by: Stephen Boyd --- drivers/gpu/drm/i915/i915_active.c | 2 +-

[PATCH] ARM: dts: meson: move the L2 cache-controller inside the SoC node

2020-08-15 Thread Martin Blumenstingl
All IO mapped SoC peripherals should be within the "soc" node. Move the L2 cache-controller there as well since it's the only one not following this pattern. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson.dtsi | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-)

Re: [PATCH] lib/string.c: implement stpcpy

2020-08-15 Thread Nick Desaulniers
On Fri, Aug 14, 2020 at 5:52 PM Joe Perches wrote: > > On Fri, 2020-08-14 at 17:24 -0700, Nick Desaulniers wrote: > > LLVM implemented a recent "libcall optimization" that lowers calls to > > `sprintf(dest, "%s", str)` where the return value is used to > > `stpcpy(dest, str) - dest`. This

Re: [PATCH] edac,ghes,cper: Add Row Extension to Memory Error Record

2020-08-15 Thread Borislav Petkov
On Mon, Jul 27, 2020 at 01:14:45PM -0500, Alex Kluver wrote: > Memory errors could be printed with incorrect row values since the DIMM > size has outgrown the 16 bit row field in the CPER structure. UEFI > Specification Version 2.8 has increased the size of row by allowing it to > use the first 2

[PATCH RFC 10/12] sched/coresched: Make core_pick_seq per run-queue

2020-08-15 Thread Joel Fernandes (Google)
From: Vineeth Pillai core_pick_seq is a core wide counter to identify if a task pick has been made for a CPU by its sibling. But during hotplug scenarios, pick cannot be made for CPUs that are offline and when they come up, they get tricked because the counter is incremented. So, make

[PATCH 1/2] mm: add GFP mask param to strndup_user

2020-08-15 Thread Pascal Bouchareine
Let caller specify allocation. Preserve existing calls with GFP_USER. Signed-off-by: Pascal Bouchareine --- drivers/dma-buf/dma-buf.c | 2 +- drivers/gpu/drm/i915/i915_debugfs_params.c | 2 +- drivers/gpu/drm/vc4/vc4_bo.c | 3 +- drivers/input/misc/uinput.c

Re: general protection fault in io_poll_double_wake

2020-08-15 Thread Jens Axboe
On 8/15/20 10:00 AM, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:7fca4dee Merge tag 'powerpc-5.9-2' of git://git.kernel.org.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1264d11690 > kernel config:

Re: [PATCH RFC 01/12] irq_work: Add support to detect if work is pending

2020-08-15 Thread peterz
On Fri, Aug 14, 2020 at 11:18:57PM -0400, Joel Fernandes (Google) wrote: https://lkml.kernel.org/r/20200722153017.024407...@infradead.org

[GIT PULL] 9p update for 5.9-rc1

2020-08-15 Thread Dominique Martinet
Hi Linus, the usual small stuff. Thanks! The following changes since commit 74d6a5d5662975aed7f25952f62efbb6f6dadd29: 9p/trans_fd: Fix concurrency del of req_list in p9_fd_cancelled/p9_read_work (2020-07-19 14:58:47 +0200) are available in the Git repository at:

[RFC PATCH v1 2/2] arm64: dts: rockchip: change fallback string rockchip,rk3308-spdif

2020-08-15 Thread Johan Jonker
A test with the command below shows that the compatible string "rockchip,rk3308-spdif", "rockchip,rk3328-spdif" is already in use, but is not added to a document. The current fallback string "rockchip,rk3328-spdif" points to a data set enum RK_SPDIF_RK3366 in rockchip_spdif.c that is not used

[PATCH 1/9] habanalabs: change CB's ID to be 64 bits

2020-08-15 Thread Oded Gabbay
Although the possible values for CB's ID are only 32 bits, there are a few places in the code where this field is shifted and passed into a function which expects 64 bits. Reported-by: kernel test robot Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/common/command_buffer.c | 2 +-

[PATCH] netfilter: nf_conntrack_sip: fix parsing error

2020-08-15 Thread Tong Zhang
ct_sip_parse_numerical_param can only return 0 or 1, but the caller is checking parsing error using < 0 Signed-off-by: Tong Zhang --- net/netfilter/nf_conntrack_sip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/netfilter/nf_conntrack_sip.c

Re: [PATCH net] drivers/net/wan/hdlc_x25: Added needed_headroom and a skb->len check

2020-08-15 Thread Xie He
On Fri, Aug 14, 2020 at 8:41 PM David Miller wrote: > > Applied, thanks. Thank you, David!

[GIT PULL] locking fixes

2020-08-15 Thread Ingo Molnar
Linus, Please pull the latest locking/urgent git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-urgent-2020-08-15 # HEAD: 405fa8ac89e7aaa87282df659e525992f2639e76 futex: Convert to use the preferred 'fallthrough' macro A documentation fix and a

[PATCH] x86-64: Enable x32 set_thread_area

2020-08-15 Thread H.J. Lu
X32 uses the common 64-bit syscall interface for set_thread_area. Tested with tools/testing/selftests/x86/sigreturn.c on x32. Signed-off-by: H.J. Lu --- arch/x86/entry/syscalls/syscall_64.tbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v3 1/2] scsi: ufs: change ufshcd_comp_devman_upiu() to ufshcd_compose_devman_upiu()

2020-08-15 Thread Bean Huo
On Sat, 2020-08-15 at 09:52 +0800, Can Guo wrote: > Hi Bean, > > On 2020-08-14 17:50, Bean Huo wrote: > > From: Bean Huo > > > > ufshcd_comp_devman_upiu() alwasy make me confuse that it is a > > request > > completion calling function. Change it to > > ufshcd_compose_devman_upiu(). > > > >

Re: [PATCH] seg6: using DSCP of inner IPv4 packets

2020-08-15 Thread Ahmed Abdelsalam
Hi David, Sorry for the late reply. I'm on PTO with limited email access. I will revise the patch in the next weeks and make outer IPv6 header inherit Hop limit from Inner packet for the IPv6 case. Ahmed On 08/08/2020 02:43, David Miller wrote: From: Ahmed Abdelsalam Date: Thu, 6 Aug

Re: [PATCH v2] lib/string.c: implement stpcpy

2020-08-15 Thread Dávid Bolvanský
Yeah, sprintf calls should be replaced with something safer. > Dňa 15. 8. 2020 o 18:34 užívateľ Kees Cook napísal: > > On Fri, Aug 14, 2020 at 07:09:44PM -0700, Nick Desaulniers wrote: >> LLVM implemented a recent "libcall optimization" that lowers calls to >> `sprintf(dest, "%s", str)` where

Re: [PATCH] genksyms: keywords: Use __restrict not _restrict

2020-08-15 Thread Linus Torvalds
On Fri, Aug 14, 2020 at 7:14 PM Nick Desaulniers wrote: > > What's KAO? Urban dictionary has no entry. :^P It goes back to 2003 and the original keywords.gperf file, see https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/?id=46bd1da672d66ccd8a639d3c1f8a166048cca608

[tip: x86/paravirt] x86/paravirt: Remove set_pte_at() pv-op

2020-08-15 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/paravirt branch of tip: Commit-ID: e1ac3e66d301e57472f31ebee81b916e9fa8b35b Gitweb: https://git.kernel.org/tip/e1ac3e66d301e57472f31ebee81b916e9fa8b35b Author:Juergen Gross AuthorDate:Sat, 15 Aug 2020 12:06:40 +02:00

[PATCH 9/9] habanalabs: extend busy engines mask to 64 bits

2020-08-15 Thread Oded Gabbay
From: farah kassabri change busy engines bitmask to 64 bits in order to represent more engines, needed for future ASIC support. Signed-off-by: farah kassabri Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/common/habanalabs.h | 2 +-

[PATCH RFC 07/12] bitops: Introduce find_next_or_bit

2020-08-15 Thread Joel Fernandes (Google)
From: Vineeth Pillai Hotplug fixes to core-scheduling require a new bitops API. Introduce a new API find_next_or_bit() which returns the bit number of the next set bit in OR-ed bit masks of the given bit masks. Signed-off-by: Vineeth Pillai Signed-off-by: Joel Fernandes (Google) ---

[tip: x86/paravirt] x86/paravirt: Use CONFIG_PARAVIRT_XXL instead of CONFIG_PARAVIRT

2020-08-15 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/paravirt branch of tip: Commit-ID: ecac71816a1829c0e54c41c5f1845f75b55dc618 Gitweb: https://git.kernel.org/tip/ecac71816a1829c0e54c41c5f1845f75b55dc618 Author:Juergen Gross AuthorDate:Sat, 15 Aug 2020 12:06:38 +02:00

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

2020-08-15 Thread Sedat Dilek
On Sat, Aug 15, 2020 at 10:23 AM Sedat Dilek wrote: > > On Sat, Aug 15, 2020 at 5:28 AM Sedat Dilek wrote: > > > > On Sat, Aug 15, 2020 at 2:27 AM Nick Desaulniers > > wrote: > > > > > > On Fri, Aug 14, 2020 at 3:57 PM Nick Desaulniers > > > wrote: > > > > > > > > On Fri, Aug 14, 2020 at 2:19

[PATCH] Bluetooth: Only mark socket zapped after unlocking

2020-08-15 Thread Abhishek Pandit-Subedi
Since l2cap_sock_teardown_cb doesn't acquire the channel lock before setting the socket as zapped, it could potentially race with l2cap_sock_release which frees the socket. Thus, wait until the cleanup is complete before marking the socket as zapped. This race was reproduced on a JBL GO speaker

Re: [PATCH v3] kunit: added lockdep support

2020-08-15 Thread Ingo Molnar
* Uriel Guajardo wrote: > From: Uriel Guajardo > > KUnit will fail tests upon observing a lockdep failure. Because lockdep > turns itself off after its first failure, only fail the first test and > warn users to not expect any future failures from lockdep. > > Similar to

Re: [PATCH 00/30] Rid W=1 warnings in Networking

2020-08-15 Thread David Miller
From: Lee Jones Date: Fri, 14 Aug 2020 12:39:03 +0100 > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. > > There are quite a few W=1 warnings in the Networking code. My > plan is to work

[PATCH 7/9] habanalabs: check TPC vector pipe is empty

2020-08-15 Thread Oded Gabbay
The driver waits for the TPC vector pipe to be empty before checking if the TPC kernel has finished executing, but the code doesn't validate that the pipe was indeed empty, it just wait for it without checking the return value. Reported-by: kernel test robot Signed-off-by: Oded Gabbay ---

Re: possible deadlock in io_poll_double_wake

2020-08-15 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:c9c9735c Merge tag 'scsi-misc' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=165d3b6a90 kernel config:

Re: [PATCH] lib/string.c: implement stpcpy

2020-08-15 Thread Arvind Sankar
On Fri, Aug 14, 2020 at 05:24:15PM -0700, Nick Desaulniers wrote: > +#ifndef __HAVE_ARCH_STPCPY > +/** > + * stpcpy - copy a string from src to dest returning a pointer to the new end > + * of dest, including src's NULL terminator. May overrun dest. > + * @dest: pointer to end of string

[PATCH RFC 03/12] arch/x86: Add a new TIF flag for untrusted tasks

2020-08-15 Thread Joel Fernandes (Google)
Add a new TIF flag to indicate whether the kernel needs to be careful and take additional steps to mitigate micro-architectural issues during entry into user or guest mode. This new flag will be used by the series to determine if waiting is needed or not, during exit to user or guest mode.

Re: Re: possible deadlock in io_poll_double_wake

2020-08-15 Thread syzbot
> #syz dupe general protection fault in io_poll_double_wake unknown command "dupe" > > -- > Jens Axboe >

Re: [GIT PULL v2] MFD for v5.9

2020-08-15 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 15:42:06 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tags/mfd-next-5.9-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/884e0d3dd59dde1c1f0fbb5b9db2bcdc581982c7 Thank you! -- Deet-doot-dot, I am a

Re: [PATCH v2 1/1] Drivers: hv: vmbus: Add parsing of VMbus interrupt in ACPI DSDT

2020-08-15 Thread Wei Liu
On Fri, Aug 14, 2020 at 12:45:04PM -0700, Michael Kelley wrote: > On ARM64, Hyper-V now specifies the interrupt to be used by VMbus > in the ACPI DSDT. This information is not used on x86 because the > interrupt vector must be hardcoded. But update the generic > VMbus driver to do the parsing

Re: [PATCH v2] lib/string.c: implement stpcpy

2020-08-15 Thread Nick Desaulniers
On Sat, Aug 15, 2020 at 9:34 AM Kees Cook wrote: > > On Fri, Aug 14, 2020 at 07:09:44PM -0700, Nick Desaulniers wrote: > > LLVM implemented a recent "libcall optimization" that lowers calls to > > `sprintf(dest, "%s", str)` where the return value is used to > > `stpcpy(dest, str) - dest`. This

Hello

2020-08-15 Thread Sophia
Hello Dear, How are you doing. i am Sophia by name, i will be more glad if we get to know each other more better, thank you.

[GIT PULL] perf fixes

2020-08-15 Thread Ingo Molnar
Linus, Please pull the latest perf/urgent git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-2020-08-15 # HEAD: bcfd218b66790243ef303c1b35ce59f786ded225 perf/x86/rapl: Add support for Intel SPR platform Misc fixes, an expansion of perf syscall access

Re: [PATCH RFC 1/2] mm: Extract SLAB_QUARANTINE from KASAN

2020-08-15 Thread Kees Cook
On Thu, Aug 13, 2020 at 06:19:21PM +0300, Alexander Popov wrote: > Heap spraying is an exploitation technique that aims to put controlled > bytes at a predetermined memory location on the heap. Heap spraying for > exploiting use-after-free in the Linux kernel relies on the fact that on >

Re: [PATCH v9 2/2] EDAC: al-mc-edac: Introduce Amazon's Annapurna Labs Memory Controller EDAC

2020-08-15 Thread Borislav Petkov
On Tue, Jul 28, 2020 at 12:51:55PM +0300, Talel Shenhar wrote: > +static void al_mc_edac_check(struct mem_ctl_info *mci) > +{ > + struct al_mc_edac *al_mc = mci->pvt_info; > + > + if (al_mc->irq_ue <= 0) > + handle_ue(mci); > + > + if (al_mc->irq_ce <= 0) > +

Re: [PATCH] genksyms: keywords: Use __restrict not _restrict

2020-08-15 Thread Joe Perches
On Fri, 2020-08-14 at 20:05 -0700, Linus Torvalds wrote: > On Fri, Aug 14, 2020 at 7:14 PM Nick Desaulniers > wrote: > > What's KAO? Urban dictionary has no entry. :^P > > It goes back to 2003 and the original keywords.gperf file, see > > >

Re: [GIT PULL] More ACPI updates for v5.9-rc1

2020-08-15 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 20:09:40 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > acpi-5.9-rc1-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/341323fa0eed1b201130b7af84d40fa04725c832 Thank you! -- Deet-doot-dot,

Re: [GIT PULL] One more power management update for v5.9-rc1

2020-08-15 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 20:08:24 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-5.9-rc1-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1a5d9dbbaf3af4d029a081bd58dc83b6a25d109e Thank you! -- Deet-doot-dot, I am

Re: [PATCH] edac: nxp: Add L1 and L2 error detection for A53 and A72 cores

2020-08-15 Thread Borislav Petkov
On Thu, Jul 09, 2020 at 04:22:15PM +0800, Alison Wang wrote: > Add error detection for A53 and A72 cores. Hardware error injection is > supported on A53. Software error injection is supported on both. > For hardware error injection on A53 to work, proper access to > L2ACTLR_EL1, CPUACTLR_EL1 needs

Re: [PATCH 2/2] x86/MCE/AMD Support new memory interleaving schemes during address translation

2020-08-15 Thread Ingo Molnar
* Yazen Ghannam wrote: > + /* Read D18F1x208 (System Fabric ID Mask 0). */ > + if (amd_df_indirect_read(nid, 1, 0x208, umc, )) > + goto out_err; > + > + /* Determine if system is a legacy Data Fabric type. */ > + legacy_df = !(tmp & 0xFF); 1) I see this pattern in

Re: [PATCH] dma-debug: fix debug_dma_assert_idle(), use rcu_read_lock()

2020-08-15 Thread Linus Torvalds
On Fri, Aug 14, 2020 at 5:26 PM Hugh Dickins wrote: > > We used to rely on page count there, and on trylock_page() only; but > there was at least one user whose app went wrong when occasionally we > COWed the page, just because something else momentarily took a reference > to it, or locked it.

Re: [GIT PULL] Devicetree fixes for v5.9

2020-08-15 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 13:40:00 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git > tags/devicetree-fixes-for-5.9 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b07175dc41babfec057f494d22a750af755297d8 Thank you! --

Re: [PATCH v2] lib/string.c: implement stpcpy

2020-08-15 Thread Arvind Sankar
On Fri, Aug 14, 2020 at 07:09:44PM -0700, Nick Desaulniers wrote: > LLVM implemented a recent "libcall optimization" that lowers calls to > `sprintf(dest, "%s", str)` where the return value is used to > `stpcpy(dest, str) - dest`. This generally avoids the machinery involved > in parsing format

[PATCH RFC 02/12] entry/idle: Add a common function for activites during idle entry/exit

2020-08-15 Thread Joel Fernandes (Google)
Currently only RCU hooks for idle entry/exit are called. In later patches, kernel-entry protection functionality will be added. Signed-off-by: Joel Fernandes (Google) --- include/linux/entry-common.h | 16 kernel/sched/idle.c | 17 + 2 files changed, 25

[PATCH RFC 08/12] cpumask: Introduce a new iterator for_each_cpu_wrap_or

2020-08-15 Thread Joel Fernandes (Google)
From: Vineeth Pillai Hotplug fixes to core-scheduling require a new cpumask iterator which iterates through all online cpus in both the given cpumasks. This patch introduces it. Signed-off-by: Vineeth Pillai Signed-off-by: Joel Fernandes (Google) --- include/linux/cpumask.h | 42

[PATCH] platform: cros_ec: Add fields to command traces

2020-08-15 Thread Gwendal Grignou
In ftrace, add more fields to the cros_ec command event: - Add size of commands to check if they are properly set. - Add offset (in case an EC is cascaded being another EC), to allow proper command output With: echo 1 > events/cros_ec/cros_ec_cmd/enable We now have (on samus) invalid command for

[PATCH 1/2] debugobjects: Allow debug_obj_descr to be const

2020-08-15 Thread Stephen Boyd
The debugobject core could be slightly harder to corrupt if we make the debug_obj_descr a pointer to const memory. Depending on the architecture, const datastructures are placed into read-only memory and thus are harder to corrupt or hijack. This descriptor is used to fix up stuff like timers and

Re: possible deadlock in io_poll_double_wake

2020-08-15 Thread Jens Axboe
#syz dup general protection fault in io_poll_double_wake -- Jens Axboe

Re: possible deadlock in io_poll_double_wake

2020-08-15 Thread Jens Axboe
#syz dupe general protection fault in io_poll_double_wake -- Jens Axboe

Re: [PATCH v3] kunit: added lockdep support

2020-08-15 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Sat, Aug 15, 2020 at 10:30:29AM +0200, Ingo Molnar wrote: > > > > * Uriel Guajardo wrote: > > > > > From: Uriel Guajardo > > > > > > KUnit will fail tests upon observing a lockdep failure. Because lockdep > > > turns itself off after its first failure, only

[PATCH RFC 11/12] sched/coresched: Check for dynamic changes in smt_mask

2020-08-15 Thread Joel Fernandes (Google)
From: Vineeth Pillai There are multiple loops in pick_next_task that iterate over CPUs in smt_mask. During a hotplug event, sibling could be removed from the smt_mask while pick_next_task is running. So we cannot trust the mask across the different loops. This can confuse the logic. Add a retry

[PATCH RESEND v1] ARM: dts: meson8: remove two invalid interrupt lines from the GPU node

2020-08-15 Thread Martin Blumenstingl
The 3.10 vendor kernel defines the following GPU 20 interrupt lines: #define INT_MALI_GP AM_IRQ(160) #define INT_MALI_GP_MMU AM_IRQ(161) #define INT_MALI_PP AM_IRQ(162) #define INT_MALI_PMUAM_IRQ(163) #define INT_MALI_PP0

Re: [PATCH] bootconfig: Fix off-by-one in xbc_node_compose_key_after()

2020-08-15 Thread Masami Hiramatsu
On Thu, 13 Aug 2020 23:04:06 -0400 Steven Rostedt wrote: > On Thu, 13 Aug 2020 19:38:18 -0700 > Andrew Morton wrote: > > > On Thu, 13 Aug 2020 18:30:50 -0400 Steven Rostedt > > wrote: > > > > > From: Steven Rostedt (VMware) > > > > > > While reviewing some patches for bootconfig, I

<    1   2   3   4   >