Re: LTP: crypto: af_alg02 regression on linux-next 20200621 tag

2020-06-23 Thread Eric Biggers
On Tue, Jun 23, 2020 at 04:40:56PM +1000, Herbert Xu wrote: > On Tue, Jun 23, 2020 at 11:53:43AM +0530, Naresh Kamboju wrote: > > > > Thanks for the investigation. > > After reverting, two test cases got PASS out of four reported failure cases. > > ltp-crypto-tests: > > * af_alg02 - still fai

Re: [RFC v5 02/10] drm/vblank: Add vblank works

2020-06-23 Thread Daniel Vetter
On Mon, Jun 22, 2020 at 04:07:22PM -0400, Lyude Paul wrote: > Add some kind of vblank workers. The interface is similar to regular > delayed works, and is mostly based off kthread_work. It allows for > scheduling delayed works that execute once a particular vblank sequence > has passed. It also all

Re: [RESEND PATCH] mm: fix migrate_vma_setup() src_owner and normal pages

2020-06-23 Thread Ralph Campbell
On 6/23/20 4:40 AM, Christoph Hellwig wrote: On Mon, Jun 22, 2020 at 03:20:08PM -0700, Ralph Campbell wrote: The caller of migrate_vma_setup() does not know what type of page is stored in the CPU's page tables. Pages within the specified range are free to be swapped out, migrated, or freed unt

Re: [PATCH v1 2/2] romfs: address performance regression since v3.10

2020-06-23 Thread Sven Van Asbroeck
On Tue, Jun 23, 2020 at 12:17 PM kernel test robot wrote: > >ld: fs/romfs/super.o: in function `romfs_largest_blocksize': > >> fs/romfs/super.c:505: undefined reference to `__moddi3' > > > 505 if ((device_sz % blksz) == 0) I can change this to device_sz & (blksz-1) if this p

Re: [PATCH v7 5/8] loop: be paranoid on exit and prevent new additions / removals

2020-06-23 Thread Johannes Thumshirn
On 22/06/2020 14:27, Luis Chamberlain wrote: [...]> If you run run_0004.sh from break-blktrace [0]. Even with all my patches > merged we still run into this. And so the bug lies within the block > layer or on the driver. I haven't been able to find the issue yet. > > [0] https://github.com/mcgrof/

Re: [PATCH tip/core/rcu 16/26] rcu: Mark rcu_nmi_enter() call to rcu_cleanup_after_idle() noinstr

2020-06-23 Thread Peter Zijlstra
On Mon, Jun 22, 2020 at 05:21:37PM -0700, paul...@kernel.org wrote: > From: "Paul E. McKenney" > > The objtool complains about the call to rcu_cleanup_after_idle() from > rcu_nmi_enter(), so this commit adds instrumentation_begin() before that > call and instrumentation_end() after it. Hmm, I've

Re: [PATCH bpf 1/2] flow_dissector: reject invalid attach_flags

2020-06-23 Thread Lorenz Bauer
On Wed, 17 Jun 2020 at 07:49, John Fastabend wrote: > > Alexei Starovoitov wrote: > > On Tue, Jun 16, 2020 at 1:30 AM Lorenz Bauer wrote: > > > > > > On Tue, 16 Jun 2020 at 04:55, Alexei Starovoitov > > > wrote: > > > > > > > > On Mon, Jun 15, 2020 at 7:43 AM Lorenz Bauer > > > > wrote: > > >

[PATCH] linux/log2.h: enclose macro arg in parens

2020-06-23 Thread Jonathan Lemon
From: Jonathan Lemon roundup_pow_of_two uses its arg without enclosing it in parens. A call of the form: roundup_pow_of_two(boolval ? PAGE_SIZE : frag_size) resulted in an compile warning: warning: ?: using integer constants in boolean context [-Wint-in-bool-context] PAGE_SIZ

Re: Strange problem with SCTP+IPv6

2020-06-23 Thread Michael Tuexen
> On 23. Jun 2020, at 15:17, David Laight wrote: > > From: Marcelo Ricardo Leitner >> Sent: 22 June 2020 19:33 >> On Mon, Jun 22, 2020 at 08:01:24PM +0200, Michael Tuexen wrote: On 22. Jun 2020, at 18:57, Corey Minyard wrote: On Mon, Jun 22, 2020 at 08:01:23PM +0800, Xin Long wro

[GIT PULL] KVM fixes for Linux 5.8-rc3

2020-06-23 Thread Paolo Bonzini
Linus, The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to e4553b4976d1178c13da295cb5c7b2

Re: [PATCH 16/22] gpiolib: cdev: add V2 uAPI implementation to parity with V1 (fwd)

2020-06-23 Thread Julia Lawall
tree, kindly drop us a note. And when submitting patch, we suggest to use as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Kent-Gibson/gpio-cdev-add-uAPI-V2/20200623-120634 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/li

Hello, Please

2020-06-23 Thread Mr. Scott Donald
Dear Friend, I'm Mr. Scott Donald a Successful business Man. dealing with Exportation, I got your mail contact through search to let you know my Ugly Situation Am a dying Man here in Los Angeles California Hospital Bed in (USA), I Lost my Wife and my only Daughter for Covid-19 I'm dying with same s

Re: [PATCH AUTOSEL 4.14 090/108] ovl: verify permissions in ovl_path_open()

2020-06-23 Thread Sasha Levin
On Tue, Jun 23, 2020 at 08:55:38PM +0530, Naresh Kamboju wrote: On Thu, 18 Jun 2020 at 07:18, Sasha Levin wrote: From: Miklos Szeredi [ Upstream commit 56230d956739b9cb1cbde439d76227d77979a04d ] Check permission before opening a real file. ovl_path_open() is used by readdir and copy-up rou

RE: [PATCH] tools/thermal: tmon: include pthread and time headers in tmon.h

2020-06-23 Thread Pawnikar, Sumeet R
> -Original Message- > From: Florian Fainelli > Sent: Thursday, June 18, 2020 8:23 AM > To: Markus Mayer ; Daniel Lezcano > ; Pawnikar, Sumeet R > ; Zhang, Rui ; Brian > Norris > Cc: Broadcom Kernel List ; Linux > Kernel Mailing List > Subject: Re: [PATCH] tools/thermal: tmon: include pt

Re: [PATCH v4 2/2] ASoC: tas2562: Update shutdown GPIO property

2020-06-23 Thread Mark Brown
On Tue, Jun 23, 2020 at 10:59:49AM -0500, Dan Murphy wrote: > On 6/12/20 12:14 PM, Dan Murphy wrote: > > Update the shutdown GPIO property to be shutdown from shut-down. > I have some other patches that go on top of this patchset I am wondering if > I should re-submit with those patches on top or

Re: [PATCH][V3] arm64: perf: Get the wrong PC value in REGS_ABI_32 mode

2020-06-23 Thread Will Deacon
On Thu, Jun 18, 2020 at 02:03:32PM +0100, Mark Rutland wrote: > On Thu, May 28, 2020 at 08:54:19AM +0100, Will Deacon wrote: > > On Thu, May 28, 2020 at 09:06:07AM +0800, Jiping Ma wrote: > > > On 05/27/2020 11:19 PM, Mark Rutland wrote: > > > > On Wed, May 27, 2020 at 09:33:00AM +0800, Jiping Ma w

Re: [PATCH v4 2/2] ASoC: tas2562: Update shutdown GPIO property

2020-06-23 Thread Dan Murphy
Mark On 6/23/20 12:18 PM, Mark Brown wrote: On Tue, Jun 23, 2020 at 10:59:49AM -0500, Dan Murphy wrote: On 6/12/20 12:14 PM, Dan Murphy wrote: Update the shutdown GPIO property to be shutdown from shut-down. I have some other patches that go on top of this patchset I am wondering if I should

[PATCH v3 01/10] objtool: Do not assume order of parent/child functions

2020-06-23 Thread Kristen Carlson Accardi
If a .cold function is examined prior to it's parent, the link to the parent/child function can be overwritten when the parent is examined. Only update pfunc and cfunc if they were previously nil to prevent this from happening. Signed-off-by: Kristen Carlson Accardi Acked-by: Josh Poimboeuf ---

[PATCH v3 05/10] x86: Make sure _etext includes function sections

2020-06-23 Thread Kristen Carlson Accardi
When using -ffunction-sections to place each function in it's own text section so it can be randomized at load time, the linker considers these .text.* sections "orphaned sections", and will place them after the first similar section (.text). In order to accurately represent the end of the text sec

[PATCH v3 04/10] x86: Makefile: Add build and config option for CONFIG_FG_KASLR

2020-06-23 Thread Kristen Carlson Accardi
Allow user to select CONFIG_FG_KASLR if dependencies are met. Change the make file to build with -ffunction-sections if CONFIG_FG_KASLR. While the only architecture that supports CONFIG_FG_KASLR does not currently enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION, make sure these 2 features play nicely to

[PATCH v3 09/10] kallsyms: Hide layout

2020-06-23 Thread Kristen Carlson Accardi
This patch makes /proc/kallsyms display alphabetically by symbol name rather than sorted by address in order to hide the newly randomized address layout. Signed-off-by: Kristen Carlson Accardi Reviewed-by: Tony Luck Tested-by: Tony Luck --- kernel/kallsyms.c | 128 +

[PATCH v3 07/10] x86/boot/compressed: change definition of STATIC

2020-06-23 Thread Kristen Carlson Accardi
In preparation for changes to the upcoming fgkaslr commit, change misc.c to not define STATIC as static, but instead set STATIC to "". This allows memptr to become accessible to multiple files. Signed-off-by: Kristen Carlson Accardi --- arch/x86/boot/compressed/kaslr.c | 4 arch/x86/boot/co

[PATCH v3 06/10] x86/tools: Add relative relocs for randomized functions

2020-06-23 Thread Kristen Carlson Accardi
When reordering functions, the relative offsets for relocs that are either in the randomized sections, or refer to the randomized sections will need to be adjusted. Add code to detect whether a reloc satisifies these cases, and if so, add them to the appropriate reloc list. Signed-off-by: Kristen

[PATCH v3 02/10] x86: tools/relocs: Support >64K section headers

2020-06-23 Thread Kristen Carlson Accardi
While the relocs tool already supports finding the total number of section headers if vmlinux exceeds 64K sections, it fails to read the extended symbol table to get section header indexes for symbols, causing incorrect symbol table indexes to be used when there are > 64K symbols. Parse the elf fi

[PATCH v3 03/10] x86/boot: Allow a "silent" kaslr random byte fetch

2020-06-23 Thread Kristen Carlson Accardi
From: Kees Cook Under earlyprintk, each RNG call produces a debug report line. When shuffling hundreds of functions, this is not useful information (each line is identical and tells us nothing new). Instead, allow for a NULL "purpose" to suppress the debug reporting. Signed-off-by: Kees Cook Si

[PATCH v3 10/10] module: Reorder functions

2020-06-23 Thread Kristen Carlson Accardi
Introduce a new config option to allow modules to be re-ordered by function. This option can be enabled independently of the kernel text KASLR or FG_KASLR settings so that it can be used by architectures that do not support either of these features. This option will be selected by default if CONFIG

[PATCH v3 08/10] x86: Add support for function granular KASLR

2020-06-23 Thread Kristen Carlson Accardi
This commit contains the changes required to re-layout the kernel text sections generated by -ffunction-sections shortly after decompression. Documentation of the feature is also added. After decompression, the decompressed image's elf headers are parsed. In order to manually update certain data s

Re: [PATCHv3] coresight: tmc: Add shutdown callback for TMC ETR

2020-06-23 Thread Mathieu Poirier
On Tue, Jun 16, 2020 at 10:26:23AM +0530, Sai Prakash Ranjan wrote: > Implement a shutdown callback to ensure ETR hardware is > properly shutdown in reboot/shutdown path. This is required > for ETR which has SMMU address translation enabled like on > SC7180 SoC and few others. If the hardware is st

[PATCH v3 00/10] Function Granular KASLR

2020-06-23 Thread Kristen Carlson Accardi
Function Granular Kernel Address Space Layout Randomization (fgkaslr) - This patch set is an implementation of finer grained kernel address space randomization. It rearranges your kernel code at load time on a per-function level

Re: [PATCH v2 00/21] KVM: Cleanup and unify kvm_mmu_memory_cache usage

2020-06-23 Thread Sean Christopherson
On Mon, Jun 22, 2020 at 01:08:01PM -0700, Sean Christopherson wrote: > Note, patch 18 will conflict with the p4d rework in 5.8. I originally > stated I would send v2 only after that got pulled into Paolo's tree, but > I got my timing wrong, i.e. I was thinking that would have already > happened.

Re: [PATCH] coresight: tmc: Fix TMC mode read in tmc_read_unprepare_etb()

2020-06-23 Thread Mathieu Poirier
On Tue, Jun 16, 2020 at 10:24:41AM +0530, Sai Prakash Ranjan wrote: > Reading TMC mode register without proper coresight power > management can lead to exceptions like the one in the call > trace below in tmc_read_unprepare_etb() when the trace data > is read after the sink is disabled. So fix this

[PATCH v4 0/7] hwmon: pmbus: adm1266: add support

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici Add PMBus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. 1. Add PMBus probing driver for inputs vh1->vh4 and vp1->vp13.

[PATCH v4 6/7] hwmon: pmbus: adm1266: debugfs for blackbox info

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici Add a debugfs file to print information in the BLACKBOX_INFORMATION register. Contains information about the number of stored records, logic index and id of the latest record. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 56 ++

[PATCH AUTOSEL 5.7 19/28] s390/vdso: Use $(LD) instead of $(CC) to link vDSO

2020-06-23 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit 2b2a25845d534ac6d55086e35c033961fdd83a26 ] Currently, the VDSO is being linked through $(CC). This does not match how the rest of the kernel links objects, which is through the $(LD) variable. When clang is built in a default configuration, it first att

[PATCH AUTOSEL 5.7 03/28] drm/amd/display: Use kfree() to free rgb_user in calculate_user_regamma_ramp()

2020-06-23 Thread Sasha Levin
From: Denis Efremov [ Upstream commit 43a562774fceba867e8eebba977d7d42f8a2eac7 ] Use kfree() instead of kvfree() to free rgb_user in calculate_user_regamma_ramp() because the memory is allocated with kcalloc(). Signed-off-by: Denis Efremov Signed-off-by: Alex Deucher Signed-off-by: Sasha Levi

[PATCH v4 2/7] hwmon: pmbus: adm1266: Add Block process call

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici PmBus devices support Block Write-Block Read Process Call described in SMBus specification v 2.0 with the exception that Block writes and reads are permitted to have up 255 data bytes instead of max 32 bytes (SMBus). This patch adds Block WR process call support for ADM12

[PATCH v4 7/7] dt-bindings: hwmon: Add bindings for ADM1266

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici Add bindings for the Analog Devices ADM1266 sequencer. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,adm1266.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,adm1266.y

[PATCH v4 5/7] hwmon: pmbus: adm1266: read blackbox

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici Use the nvmem kernel api to expose the black box chip functionality to userspace. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 134 ++ 1 file changed, 134 insertions(+) diff --git a/drivers/hwmon/pmbus/adm1266.c b

[PATCH AUTOSEL 5.7 12/28] mvpp2: ethtool rxtx stats fix

2020-06-23 Thread Sasha Levin
From: Sven Auhagen [ Upstream commit cc970925feb9a38c2f0d34305518e00a3084ce85 ] The ethtool rx and tx queue statistics are reporting wrong values. Fix reading out the correct ones. Signed-off-by: Sven Auhagen Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet

[PATCH AUTOSEL 5.7 08/28] ibmvnic: Harden device login requests

2020-06-23 Thread Sasha Levin
From: Thomas Falcon [ Upstream commit dff515a3e71dc8ab3b9dcc2e23a9b5fca88b3c18 ] The VNIC driver's "login" command sequence is the final step in the driver's initialization process with device firmware, confirming the available device queue resources to be utilized by the driver. Under high syst

[PATCH AUTOSEL 5.7 18/28] s390/ptrace: fix setting syscall number

2020-06-23 Thread Sasha Levin
From: Sven Schnelle [ Upstream commit 873e5a763d604c32988c4a78913a8dab3862d2f9 ] When strace wants to update the syscall number, it sets GPR2 to the desired number and updates the GPR via PTRACE_SETREGSET. It doesn't update regs->int_code which would cause the old syscall executed on syscall res

[PATCH AUTOSEL 5.7 24/28] kprobes: Suppress the suspicious RCU warning on kprobes

2020-06-23 Thread Sasha Levin
From: Masami Hiramatsu [ Upstream commit 6743ad432ec92e680cd0d9db86cb17b949cf5a43 ] Anders reported that the lockdep warns that suspicious RCU list usage in register_kprobe() (detected by CONFIG_PROVE_RCU_LIST.) This is because get_kprobe() access kprobe_table[] by hlist_for_each_entry_rcu() wit

[PATCH AUTOSEL 5.7 20/28] s390/vdso: fix vDSO clock_getres()

2020-06-23 Thread Sasha Levin
From: Vincenzo Frascino [ Upstream commit 478237a595120a18e9b52fd2c57a6e8b7a01e411 ] clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depe

[PATCH AUTOSEL 5.4 07/24] ibmvnic: Harden device login requests

2020-06-23 Thread Sasha Levin
From: Thomas Falcon [ Upstream commit dff515a3e71dc8ab3b9dcc2e23a9b5fca88b3c18 ] The VNIC driver's "login" command sequence is the final step in the driver's initialization process with device firmware, confirming the available device queue resources to be utilized by the driver. Under high syst

[PATCH AUTOSEL 5.4 17/24] s390/vdso: fix vDSO clock_getres()

2020-06-23 Thread Sasha Levin
From: Vincenzo Frascino [ Upstream commit 478237a595120a18e9b52fd2c57a6e8b7a01e411 ] clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depe

[PATCH AUTOSEL 5.4 19/24] kbuild: improve cc-option to clean up all temporary files

2020-06-23 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit f2f02ebd8f3833626642688b2d2c6a7b3c141fa9 ] When cc-option and friends evaluate compiler flags, the temporary file $$TMP is created as an output object, and automatically cleaned up. The actual file path of $$TMP is ..tmp, here is the process ID of $(shell

[PATCH AUTOSEL 5.4 11/24] mvpp2: ethtool rxtx stats fix

2020-06-23 Thread Sasha Levin
From: Sven Auhagen [ Upstream commit cc970925feb9a38c2f0d34305518e00a3084ce85 ] The ethtool rx and tx queue statistics are reporting wrong values. Fix reading out the correct ones. Signed-off-by: Sven Auhagen Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet

[PATCH AUTOSEL 4.19 03/15] drm/amd/display: Use kfree() to free rgb_user in calculate_user_regamma_ramp()

2020-06-23 Thread Sasha Levin
From: Denis Efremov [ Upstream commit 43a562774fceba867e8eebba977d7d42f8a2eac7 ] Use kfree() instead of kvfree() to free rgb_user in calculate_user_regamma_ramp() because the memory is allocated with kcalloc(). Signed-off-by: Denis Efremov Signed-off-by: Alex Deucher Signed-off-by: Sasha Levi

[PATCH AUTOSEL 5.7 26/28] nvdimm/region: always show the 'align' attribute

2020-06-23 Thread Sasha Levin
From: Vishal Verma [ Upstream commit 543094e19c82b5d171e139d09a1a3ea0a7361117 ] It is possible that a platform that is capable of 'namespace labels' comes up without the labels properly initialized. In this case, the region's 'align' attribute is hidden. Howerver, once the user does initialize h

[PATCH AUTOSEL 5.4 09/24] test_objagg: Fix potential memory leak in error handling

2020-06-23 Thread Sasha Levin
From: Aditya Pakki [ Upstream commit a6379f0ad6375a707e915518ecd5c2270afcd395 ] In case of failure of check_expect_hints_stats(), the resources allocated by objagg_hints_get should be freed. The patch fixes this issue. Signed-off-by: Aditya Pakki Signed-off-by: David S. Miller Signed-off-by:

[PATCH AUTOSEL 4.14 5/6] kbuild: improve cc-option to clean up all temporary files

2020-06-23 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit f2f02ebd8f3833626642688b2d2c6a7b3c141fa9 ] When cc-option and friends evaluate compiler flags, the temporary file $$TMP is created as an output object, and automatically cleaned up. The actual file path of $$TMP is ..tmp, here is the process ID of $(shell

[PATCH AUTOSEL 5.4 22/24] blktrace: break out of blktrace setup on concurrent calls

2020-06-23 Thread Sasha Levin
From: Luis Chamberlain [ Upstream commit 1b0b283648163dae2a214ca28ed5a99f62a77319 ] We use one blktrace per request_queue, that means one per the entire disk. So we cannot run one blktrace on say /dev/vda and then /dev/vda1, or just two calls on /dev/vda. We check for concurrent setup only at

[PATCH AUTOSEL 4.14 2/6] net: alx: fix race condition in alx_remove

2020-06-23 Thread Sasha Levin
From: Zekun Shen [ Upstream commit e89df5c4322c1bf495f62d74745895b5fd2a4393 ] There is a race condition exist during termination. The path is alx_stop and then alx_remove. An alx_schedule_link_check could be called before alx_stop by interrupt handler and invoke alx_link_check later. Alx_stop fr

[PATCH AUTOSEL 4.19 04/15] riscv/atomic: Fix sign extension for RV64I

2020-06-23 Thread Sasha Levin
From: Nathan Huckleberry [ Upstream commit 6c58f25e6938c073198af8b1e1832f83f8f0df33 ] The argument passed to cmpxchg is not guaranteed to be sign extended, but lr.w sign extends on RV64I. This makes cmpxchg fail on clang built kernels when __old is negative. To fix this, we just cast __old to l

[PATCH AUTOSEL 5.4 23/24] block: update hctx map when use multiple maps

2020-06-23 Thread Sasha Levin
From: Weiping Zhang [ Upstream commit fe35ec58f0d339221643287bbb7cee15c93a5389 ] There is an issue when tune the number for read and write queues, if the total queue count was not changed. The hctx->type cannot be updated, since __blk_mq_update_nr_hw_queues will return directly if the total queu

[PATCH AUTOSEL 4.19 11/15] s390/vdso: fix vDSO clock_getres()

2020-06-23 Thread Sasha Levin
From: Vincenzo Frascino [ Upstream commit 478237a595120a18e9b52fd2c57a6e8b7a01e411 ] clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depe

[PATCH AUTOSEL 5.4 21/24] kprobes: Suppress the suspicious RCU warning on kprobes

2020-06-23 Thread Sasha Levin
From: Masami Hiramatsu [ Upstream commit 6743ad432ec92e680cd0d9db86cb17b949cf5a43 ] Anders reported that the lockdep warns that suspicious RCU list usage in register_kprobe() (detected by CONFIG_PROVE_RCU_LIST.) This is because get_kprobe() access kprobe_table[] by hlist_for_each_entry_rcu() wit

[PATCH AUTOSEL 4.4 2/3] kbuild: improve cc-option to clean up all temporary files

2020-06-23 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit f2f02ebd8f3833626642688b2d2c6a7b3c141fa9 ] When cc-option and friends evaluate compiler flags, the temporary file $$TMP is created as an output object, and automatically cleaned up. The actual file path of $$TMP is ..tmp, here is the process ID of $(shell

[PATCH AUTOSEL 4.9 6/6] blktrace: break out of blktrace setup on concurrent calls

2020-06-23 Thread Sasha Levin
From: Luis Chamberlain [ Upstream commit 1b0b283648163dae2a214ca28ed5a99f62a77319 ] We use one blktrace per request_queue, that means one per the entire disk. So we cannot run one blktrace on say /dev/vda and then /dev/vda1, or just two calls on /dev/vda. We check for concurrent setup only at

[PATCH AUTOSEL 4.9 5/6] kbuild: improve cc-option to clean up all temporary files

2020-06-23 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit f2f02ebd8f3833626642688b2d2c6a7b3c141fa9 ] When cc-option and friends evaluate compiler flags, the temporary file $$TMP is created as an output object, and automatically cleaned up. The actual file path of $$TMP is ..tmp, here is the process ID of $(shell

[PATCH AUTOSEL 4.14 6/6] blktrace: break out of blktrace setup on concurrent calls

2020-06-23 Thread Sasha Levin
From: Luis Chamberlain [ Upstream commit 1b0b283648163dae2a214ca28ed5a99f62a77319 ] We use one blktrace per request_queue, that means one per the entire disk. So we cannot run one blktrace on say /dev/vda and then /dev/vda1, or just two calls on /dev/vda. We check for concurrent setup only at

[PATCH AUTOSEL 4.4 1/3] net: alx: fix race condition in alx_remove

2020-06-23 Thread Sasha Levin
From: Zekun Shen [ Upstream commit e89df5c4322c1bf495f62d74745895b5fd2a4393 ] There is a race condition exist during termination. The path is alx_stop and then alx_remove. An alx_schedule_link_check could be called before alx_stop by interrupt handler and invoke alx_link_check later. Alx_stop fr

[PATCH AUTOSEL 4.9 4/6] s390/ptrace: fix setting syscall number

2020-06-23 Thread Sasha Levin
From: Sven Schnelle [ Upstream commit 873e5a763d604c32988c4a78913a8dab3862d2f9 ] When strace wants to update the syscall number, it sets GPR2 to the desired number and updates the GPR via PTRACE_SETREGSET. It doesn't update regs->int_code which would cause the old syscall executed on syscall res

[PATCH AUTOSEL 4.4 3/3] blktrace: break out of blktrace setup on concurrent calls

2020-06-23 Thread Sasha Levin
From: Luis Chamberlain [ Upstream commit 1b0b283648163dae2a214ca28ed5a99f62a77319 ] We use one blktrace per request_queue, that means one per the entire disk. So we cannot run one blktrace on say /dev/vda and then /dev/vda1, or just two calls on /dev/vda. We check for concurrent setup only at

[PATCH AUTOSEL 4.9 3/6] rocker: fix incorrect error handling in dma_rings_init

2020-06-23 Thread Sasha Levin
From: Aditya Pakki [ Upstream commit 58d0c864e1a759a15c9df78f50ea5a5c32b3989e ] In rocker_dma_rings_init, the goto blocks in case of errors caused by the functions rocker_dma_cmd_ring_waits_alloc() and rocker_dma_ring_create() are incorrect. The patch fixes the order consistent with cleanup in r

[PATCH AUTOSEL 4.9 2/6] net: alx: fix race condition in alx_remove

2020-06-23 Thread Sasha Levin
From: Zekun Shen [ Upstream commit e89df5c4322c1bf495f62d74745895b5fd2a4393 ] There is a race condition exist during termination. The path is alx_stop and then alx_remove. An alx_schedule_link_check could be called before alx_stop by interrupt handler and invoke alx_link_check later. Alx_stop fr

[PATCH AUTOSEL 4.14 4/6] s390/ptrace: fix setting syscall number

2020-06-23 Thread Sasha Levin
From: Sven Schnelle [ Upstream commit 873e5a763d604c32988c4a78913a8dab3862d2f9 ] When strace wants to update the syscall number, it sets GPR2 to the desired number and updates the GPR via PTRACE_SETREGSET. It doesn't update regs->int_code which would cause the old syscall executed on syscall res

[PATCH AUTOSEL 4.14 3/6] rocker: fix incorrect error handling in dma_rings_init

2020-06-23 Thread Sasha Levin
From: Aditya Pakki [ Upstream commit 58d0c864e1a759a15c9df78f50ea5a5c32b3989e ] In rocker_dma_rings_init, the goto blocks in case of errors caused by the functions rocker_dma_cmd_ring_waits_alloc() and rocker_dma_ring_create() are incorrect. The patch fixes the order consistent with cleanup in r

[PATCH AUTOSEL 4.19 07/15] ibmvnic: Harden device login requests

2020-06-23 Thread Sasha Levin
From: Thomas Falcon [ Upstream commit dff515a3e71dc8ab3b9dcc2e23a9b5fca88b3c18 ] The VNIC driver's "login" command sequence is the final step in the driver's initialization process with device firmware, confirming the available device queue resources to be utilized by the driver. Under high syst

[PATCH AUTOSEL 4.9 1/6] ata/libata: Fix usage of page address by page_address in ata_scsi_mode_select_xlat function

2020-06-23 Thread Sasha Levin
From: Ye Bin [ Upstream commit f650ef61e040bcb175dd8762164b00a5d627f20e ] BUG: KASAN: use-after-free in ata_scsi_mode_select_xlat+0x10bd/0x10f0 drivers/ata/libata-scsi.c:4045 Read of size 1 at addr 88803b8cd003 by task syz-executor.6/12621 CPU: 1 PID: 12621 Comm: syz-executor.6 Not tainted

[PATCH AUTOSEL 4.19 08/15] net: alx: fix race condition in alx_remove

2020-06-23 Thread Sasha Levin
From: Zekun Shen [ Upstream commit e89df5c4322c1bf495f62d74745895b5fd2a4393 ] There is a race condition exist during termination. The path is alx_stop and then alx_remove. An alx_schedule_link_check could be called before alx_stop by interrupt handler and invoke alx_link_check later. Alx_stop fr

[PATCH AUTOSEL 4.19 13/15] kbuild: improve cc-option to clean up all temporary files

2020-06-23 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit f2f02ebd8f3833626642688b2d2c6a7b3c141fa9 ] When cc-option and friends evaluate compiler flags, the temporary file $$TMP is created as an output object, and automatically cleaned up. The actual file path of $$TMP is ..tmp, here is the process ID of $(shell

[PATCH AUTOSEL 4.19 14/15] blktrace: break out of blktrace setup on concurrent calls

2020-06-23 Thread Sasha Levin
From: Luis Chamberlain [ Upstream commit 1b0b283648163dae2a214ca28ed5a99f62a77319 ] We use one blktrace per request_queue, that means one per the entire disk. So we cannot run one blktrace on say /dev/vda and then /dev/vda1, or just two calls on /dev/vda. We check for concurrent setup only at

[PATCH AUTOSEL 4.19 15/15] RISC-V: Don't allow write+exec only page mapping request in mmap

2020-06-23 Thread Sasha Levin
From: Yash Shah [ Upstream commit e0d17c842c0f824fd4df9f4688709fc6907201e1 ] As per the table 4.4 of version "20190608-Priv-MSU-Ratified" of the RISC-V instruction set manual[0], the PTE permission bit combination of "write+exec only" is reserved for future use. Hence, don't allow such mapping r

[PATCH AUTOSEL 4.19 05/15] hwrng: ks-sa - Fix runtime PM imbalance on error

2020-06-23 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit 95459261c99f1621d90bc628c2a48e60b7cf9a88 ] pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Li

[PATCH AUTOSEL 4.14 1/6] ata/libata: Fix usage of page address by page_address in ata_scsi_mode_select_xlat function

2020-06-23 Thread Sasha Levin
From: Ye Bin [ Upstream commit f650ef61e040bcb175dd8762164b00a5d627f20e ] BUG: KASAN: use-after-free in ata_scsi_mode_select_xlat+0x10bd/0x10f0 drivers/ata/libata-scsi.c:4045 Read of size 1 at addr 88803b8cd003 by task syz-executor.6/12621 CPU: 1 PID: 12621 Comm: syz-executor.6 Not tainted

[PATCH AUTOSEL 4.19 12/15] arm64: sve: Fix build failure when ARM64_SVE=y and SYSCTL=n

2020-06-23 Thread Sasha Levin
From: Will Deacon [ Upstream commit e575fb9e76c8e33440fb859572a8b7d430f053d6 ] When I squashed the 'allnoconfig' compiler warning about the set_sve_default_vl() function being defined but not used in commit 1e570f512cbd ("arm64/sve: Eliminate data races on sve_default_vl"), I accidentally broke

[PATCH AUTOSEL 4.19 10/15] s390/ptrace: fix setting syscall number

2020-06-23 Thread Sasha Levin
From: Sven Schnelle [ Upstream commit 873e5a763d604c32988c4a78913a8dab3862d2f9 ] When strace wants to update the syscall number, it sets GPR2 to the desired number and updates the GPR via PTRACE_SETREGSET. It doesn't update regs->int_code which would cause the old syscall executed on syscall res

Re: [PATCH v2 10/15] docs: hugetlbpage.rst: fix some warnings

2020-06-23 Thread Mike Kravetz
On 6/23/20 12:09 AM, Mauro Carvalho Chehab wrote: > Some new command line parameters were added at hugetlbpage.rst. > Adjust them in order to properly parse that part of the file, > avoiding those warnings: > > Documentation/admin-guide/mm/hugetlbpage.rst:105: WARNING: Unexpected > indentatio

Re: [PATCH 1/3] nvme: Add Arbitration Burst support

2020-06-23 Thread Sagi Grimberg
From the NVMe spec, "In order to make efficient use of the non-volatile memory, it is often advantageous to execute multiple commands from a Submission Queue in parallel. For Submission Queues that are using weighted round robin with urgent priority class or round robin arbitration, host softw

[PATCH AUTOSEL 4.19 09/15] rocker: fix incorrect error handling in dma_rings_init

2020-06-23 Thread Sasha Levin
From: Aditya Pakki [ Upstream commit 58d0c864e1a759a15c9df78f50ea5a5c32b3989e ] In rocker_dma_rings_init, the goto blocks in case of errors caused by the functions rocker_dma_cmd_ring_waits_alloc() and rocker_dma_ring_create() are incorrect. The patch fixes the order consistent with cleanup in r

[PATCH AUTOSEL 4.19 06/15] arm64/sve: Eliminate data races on sve_default_vl

2020-06-23 Thread Sasha Levin
From: Dave Martin [ Upstream commit 1e570f512cbdc5e9e401ba640d9827985c1bea1e ] sve_default_vl can be modified via the /proc/sys/abi/sve_default_vl sysctl concurrently with use, and modified concurrently by multiple threads. Adding a lock for this seems overkill, and I don't want to think any mo

[PATCH AUTOSEL 4.19 01/15] sata_rcar: handle pm_runtime_get_sync failure cases

2020-06-23 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit eea1238867205b9e48a67c1a63219529a73c46fd ] Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost Signed-off-by: Jens Axboe

[PATCH AUTOSEL 4.19 02/15] ata/libata: Fix usage of page address by page_address in ata_scsi_mode_select_xlat function

2020-06-23 Thread Sasha Levin
From: Ye Bin [ Upstream commit f650ef61e040bcb175dd8762164b00a5d627f20e ] BUG: KASAN: use-after-free in ata_scsi_mode_select_xlat+0x10bd/0x10f0 drivers/ata/libata-scsi.c:4045 Read of size 1 at addr 88803b8cd003 by task syz-executor.6/12621 CPU: 1 PID: 12621 Comm: syz-executor.6 Not tainted

[PATCH AUTOSEL 5.4 20/24] recordmcount: support >64k sections

2020-06-23 Thread Sasha Levin
From: Sami Tolvanen [ Upstream commit 4ef57b21d6fb49d2b25c47e4cff467a0c2c8b6b7 ] When compiling a kernel with Clang and LTO, we need to run recordmcount on vmlinux.o with a large number of sections, which currently fails as the program doesn't understand extended section indexes. This change add

[PATCH AUTOSEL 5.4 24/24] RISC-V: Don't allow write+exec only page mapping request in mmap

2020-06-23 Thread Sasha Levin
From: Yash Shah [ Upstream commit e0d17c842c0f824fd4df9f4688709fc6907201e1 ] As per the table 4.4 of version "20190608-Priv-MSU-Ratified" of the RISC-V instruction set manual[0], the PTE permission bit combination of "write+exec only" is reserved for future use. Hence, don't allow such mapping r

[PATCH AUTOSEL 5.4 16/24] s390/vdso: Use $(LD) instead of $(CC) to link vDSO

2020-06-23 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit 2b2a25845d534ac6d55086e35c033961fdd83a26 ] Currently, the VDSO is being linked through $(CC). This does not match how the rest of the kernel links objects, which is through the $(LD) variable. When clang is built in a default configuration, it first att

process '/usr/bin/rsync' started with executable stack

2020-06-23 Thread Christian Kujau
Hi, exactly this[0] happened today, on a 5.6.5 kernel: process '/usr/bin/rsync' started with executable stack But I can't reproduce this message, and rsync (v3.2.0, not exactly abandonware) runs several times a day, so to repeat Andrew's questions[0] from last year: > What are poor users

[PATCH AUTOSEL 5.4 14/24] s390/ptrace: pass invalid syscall numbers to tracing

2020-06-23 Thread Sasha Levin
From: Sven Schnelle [ Upstream commit 00332c16b1604242a56289ff2b26e283dbad0812 ] tracing expects to see invalid syscalls, so pass it through. The syscall path in entry.S checks the syscall number before looking up the handler, so it is still safe. Signed-off-by: Sven Schnelle Signed-off-by: Va

[PATCH AUTOSEL 5.4 15/24] s390/ptrace: fix setting syscall number

2020-06-23 Thread Sasha Levin
From: Sven Schnelle [ Upstream commit 873e5a763d604c32988c4a78913a8dab3862d2f9 ] When strace wants to update the syscall number, it sets GPR2 to the desired number and updates the GPR via PTRACE_SETREGSET. It doesn't update regs->int_code which would cause the old syscall executed on syscall res

[PATCH AUTOSEL 5.4 18/24] arm64: sve: Fix build failure when ARM64_SVE=y and SYSCTL=n

2020-06-23 Thread Sasha Levin
From: Will Deacon [ Upstream commit e575fb9e76c8e33440fb859572a8b7d430f053d6 ] When I squashed the 'allnoconfig' compiler warning about the set_sve_default_vl() function being defined but not used in commit 1e570f512cbd ("arm64/sve: Eliminate data races on sve_default_vl"), I accidentally broke

[PATCH AUTOSEL 5.4 12/24] pinctrl: qcom: spmi-gpio: fix warning about irq chip reusage

2020-06-23 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit 5e50311556c9f409a85740e3cb4c4511e7e27da0 ] Fix the following warnings caused by reusage of the same irq_chip instance for all spmi-gpio gpio_irq_chip instances. Instead embed irq_chip into pmic_gpio_state struct. gpio gpiochip2: (c44.qcom,spmi:pmic@2

Re: [PATCH 3/3] nvme: Use USEC_PER_SEC instead of magic numbers

2020-06-23 Thread Sagi Grimberg
Reviewed-by: Sagi Grimberg

[PATCH AUTOSEL 5.4 03/24] drm/amd/display: Use kfree() to free rgb_user in calculate_user_regamma_ramp()

2020-06-23 Thread Sasha Levin
From: Denis Efremov [ Upstream commit 43a562774fceba867e8eebba977d7d42f8a2eac7 ] Use kfree() instead of kvfree() to free rgb_user in calculate_user_regamma_ramp() because the memory is allocated with kcalloc(). Signed-off-by: Denis Efremov Signed-off-by: Alex Deucher Signed-off-by: Sasha Levi

[PATCH AUTOSEL 5.4 01/24] sata_rcar: handle pm_runtime_get_sync failure cases

2020-06-23 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit eea1238867205b9e48a67c1a63219529a73c46fd ] Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost Signed-off-by: Jens Axboe

[PATCH AUTOSEL 5.4 13/24] pinctrl: tegra: Use noirq suspend/resume callbacks

2020-06-23 Thread Sasha Levin
From: Vidya Sagar [ Upstream commit 782b6b69847f34dda330530493ea62b7de3fd06a ] Use noirq suspend/resume callbacks as other drivers which implement noirq suspend/resume callbacks (Ex:- PCIe) depend on pinctrl driver to configure the signals used by their respective devices in the noirq phase. Si

Re: [PATCH v2 0/2] sched: Optionally skip uclamp logic in fast path

2020-06-23 Thread Dietmar Eggemann
On 19/06/2020 19:20, Qais Yousef wrote> This series attempts to address the report that uclamp logic could be expensive > sometimes and shows a regression in netperf UDP_STREAM under certain > conditions. > > The first patch is a fix for how struct uclamp_rq is initialized which is > required by

[PATCH AUTOSEL 5.4 10/24] rocker: fix incorrect error handling in dma_rings_init

2020-06-23 Thread Sasha Levin
From: Aditya Pakki [ Upstream commit 58d0c864e1a759a15c9df78f50ea5a5c32b3989e ] In rocker_dma_rings_init, the goto blocks in case of errors caused by the functions rocker_dma_cmd_ring_waits_alloc() and rocker_dma_ring_create() are incorrect. The patch fixes the order consistent with cleanup in r

[PATCH AUTOSEL 5.4 06/24] arm64/sve: Eliminate data races on sve_default_vl

2020-06-23 Thread Sasha Levin
From: Dave Martin [ Upstream commit 1e570f512cbdc5e9e401ba640d9827985c1bea1e ] sve_default_vl can be modified via the /proc/sys/abi/sve_default_vl sysctl concurrently with use, and modified concurrently by multiple threads. Adding a lock for this seems overkill, and I don't want to think any mo

[PATCH AUTOSEL 5.4 05/24] hwrng: ks-sa - Fix runtime PM imbalance on error

2020-06-23 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit 95459261c99f1621d90bc628c2a48e60b7cf9a88 ] pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Li

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