Re: [PATCH 01/32] pwm: sun4i: convert to devm_platform_ioremap_resource

2020-11-12 Thread Thierry Reding
On Thu, Nov 12, 2020 at 05:13:46PM +0100, Uwe Kleine-König wrote: > Hello Thierry, > > On Sun, Dec 29, 2019 at 08:05:39AM +, Yangtao Li wrote: > > Use devm_platform_ioremap_resource() to simplify code. > > > > Signed-off-by: Yangtao Li > > --- > > drivers/pwm/pwm-sun4i.c | 4 +--- > > 1 fil

Re: [PATCH v8 2/9] mmap: make mlock_future_check() global

2020-11-12 Thread Mike Rapoport
On Thu, Nov 12, 2020 at 05:22:00PM +0100, David Hildenbrand wrote: > On 10.11.20 19:06, Mike Rapoport wrote: > > On Tue, Nov 10, 2020 at 06:17:26PM +0100, David Hildenbrand wrote: > > > On 10.11.20 16:14, Mike Rapoport wrote: > > > > From: Mike Rapoport > > > > > > > > It will be used by the upco

Re: [GIT PULL] Power management fixes for v5.10-rc4

2020-11-12 Thread pr-tracker-bot
The pull request you sent on Thu, 12 Nov 2020 16:58:55 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-5.10-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fcfb67918c0bc26c595c424b14f736205a49328a Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] ACPI updates for v5.10-rc4

2020-11-12 Thread pr-tracker-bot
The pull request you sent on Thu, 12 Nov 2020 17:00:05 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > acpi-5.10-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/af5043c89a8ef6b6949a245fff355a552eaed240 Thank you! -- Deet-doot-dot, I

Re: [PATCH v3 01/12] mm: Make pagecache tagged lookups return only head pages

2020-11-12 Thread Mike Rapoport
On Thu, Nov 12, 2020 at 05:41:50PM +, Matthew Wilcox wrote: > On Wed, Oct 28, 2020 at 09:50:56AM +0200, Mike Rapoport wrote: > > > @@ -2074,8 +2074,8 @@ EXPORT_SYMBOL(find_get_pages_contig); > > > * @nr_pages:the maximum number of pages > > > * @pages: where the resulting pages ar

[PATCH] USB: storage: avoid use of uninitialized values in error path

2020-11-12 Thread Lukas Bulwahn
: Lukas Bulwahn --- applies cleanly on current master and next-20201112 I did some basic compile testing... Alan, Greg, please pick this minor non-urgent clean-up patch. drivers/usb/storage/transport.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/usb/storage/transp

Re: [PATCH bpf v5 0/2] Fix bpf_probe_read_user_str() overcopying

2020-11-12 Thread Daniel Xu
On Wed Nov 11, 2020 at 3:22 PM PST, Andrii Nakryiko wrote: > On Wed, Nov 11, 2020 at 2:46 PM Daniel Xu wrote: > > > > 6ae08ae3dea2 ("bpf: Add probe_read_{user, kernel} and probe_read_{user, > > kernel}_str helpers") introduced a subtle bug where > > bpf_probe_read_user_str() would potentially copy

Re: [PATCH] mm/page_owner: Record timestamp and pid

2020-11-12 Thread Andrew Morton
On Thu, 12 Nov 2020 20:41:06 +0200 Georgi Djakov wrote: > From: Liam Mark > > Collect the time for each allocation recorded in page owner so that > allocation "surges" can be measured. > > Record the pid for each allocation recorded in page owner so that > the source of allocation "surges" ca

iommu/vt-d: Cure VF irqdomain hickup

2020-11-12 Thread Thomas Gleixner
The recent changes to store the MSI irqdomain pointer in struct device missed that Intel DMAR does not register virtual function devices. Due to that a VF device gets the plain PCI-MSI domain assigned and then issues compat MSI messages which get caught by the interrupt remapping unit. Cure that

Re: [PATCH v1 11/30] drm/tegra: dc: Support OPP and SoC core voltage scaling

2020-11-12 Thread Dmitry Osipenko
12.11.2020 20:16, Mark Brown пишет: > On Thu, Nov 12, 2020 at 07:59:36PM +0300, Dmitry Osipenko wrote: >> 11.11.2020 14:55, Mark Brown пишет: >>> On Wed, Nov 11, 2020 at 12:23:41AM +0300, Dmitry Osipenko wrote: > I already changed that code to use regulator_get_optional() for v2. > >>> That

Re: [PATCH v6 3/3] firmware: QCOM_SCM: Allow qcom_scm driver to be loadable as a permenent module

2020-11-12 Thread John Stultz
On Thu, Nov 12, 2020 at 9:37 AM Will Deacon wrote: > On Tue, Nov 10, 2020 at 10:51:46AM -0800, John Stultz wrote: > > On Tue, Nov 10, 2020 at 5:35 AM Linus Walleij > > wrote: > > > On Fri, Nov 6, 2020 at 5:27 AM John Stultz wrote: > > > > > > > Allow the qcom_scm driver to be loadable as a perm

[RFC] ACPI PM during kernel poweroff/reboot

2020-11-12 Thread Furquan Shaikh
On x86 Chromebooks, we have observed this issue for a long time now - when the system is powered off or rebooted, ACPI PM is not invoked and this results in PowerResource _OFF methods not being invoked for any of the devices. The _OFF methods are invoked correctly in case of suspend-to-idle (S0ix)

Re: [PATCH] usb: core: Null deref in kernel with USB webcams.

2020-11-12 Thread Alan Stern
On Thu, Nov 12, 2020 at 05:13:30PM +, John Boero wrote: > Sorry header was generated by git email and I should have > paid closer attention to it before sending. > Long time listener, first time caller. > > Yes the patch is backwards sorry. Testing alt proposal from > st...@rowland.harvard.ed

Re: [PATCH bpf v5 0/2] Fix bpf_probe_read_user_str() overcopying

2020-11-12 Thread Andrii Nakryiko
On Thu, Nov 12, 2020 at 11:13 AM Daniel Xu wrote: > > On Wed Nov 11, 2020 at 3:22 PM PST, Andrii Nakryiko wrote: > > On Wed, Nov 11, 2020 at 2:46 PM Daniel Xu wrote: > > > > > > 6ae08ae3dea2 ("bpf: Add probe_read_{user, kernel} and probe_read_{user, > > > kernel}_str helpers") introduced a subtle

Re: Linux 4.19.157 -- fixing SGX problem?

2020-11-12 Thread Pavel Machek
Hi! > I'm announcing the release of the 4.19.157 kernel. > > Please see the 5.9.8 announcement if you are curious if you should > upgrade or not: > https://lore.kernel.org/lkml/1605041246232...@kroah.com/ Quoting: # Hint, if you are using SGX, then upgrade. And then possibly # reconsider

Re: [PATCH] usb: core: Null deref in kernel with USB webcams.

2020-11-12 Thread Alan Stern
On Thu, Nov 12, 2020 at 06:15:08PM +, John Boero wrote: > Then why does line 278 right below it check for NULL? Are you asking about line 278 in drivers/usb/core/usb.c? The statement which says: if (!config) return NULL; This is because it is perfectly valid for con

Re: [PATCH] USB: storage: avoid use of uninitialized values in error path

2020-11-12 Thread Alan Stern
et *act_len > to 0 in those paths. That makes clang-analyzer happy. > > Proposal was discussed in this mail thread: > > Link: > https://lore.kernel.org/linux-usb/alpine.DEB.2.21.202146110.13119@felia/ > > Signed-off-by: Lukas Bulwahn > --- > applies cleanly on c

[PATCH] cpufreq: intel_pstate: Simplify intel_cpufreq_update_pstate()

2020-11-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Avoid doing the same assignment in both branches of a conditional, do it after the whole conditional instead. Signed-off-by: Rafael J. Wysocki --- drivers/cpufreq/intel_pstate.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) Index: linux-pm/drivers/c

[PATCH] cpufreq: schedutil: Simplify sugov_update_next_freq()

2020-11-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Rearrange a conditional to make it more straightforward. Signed-off-by: Rafael J. Wysocki --- kernel/sched/cpufreq_schedutil.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) Index: linux-pm/kernel/sched/cpufreq_schedutil.c

Re: [PATCH v9 21/44] kasan: kasan_non_canonical_hook only for software modes

2020-11-12 Thread Andrey Konovalov
On Thu, Nov 12, 2020 at 4:16 PM Alexander Potapenko wrote: > > On Wed, Nov 11, 2020 at 7:52 PM 'Andrey Konovalov' via kasan-dev > wrote: > > > > On Wed, Nov 11, 2020 at 4:09 PM Alexander Potapenko > > wrote: > > > > > > On Tue, Nov 10, 2020 at 11:11 PM Andrey Konovalov > > > wrote: > > > > >

Re: [PATCH 16/30] drm/atmel-hlcdc/atmel_hlcdc_plane: Staticise local function 'atmel_hlcdc_plane_setup_scaler()'

2020-11-12 Thread Sam Ravnborg
On Thu, Nov 12, 2020 at 07:00:25PM +, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c:283:6: warning: no previous > prototype for ‘atmel_hlcdc_plane_setup_scaler’ [-Wmissing-prototypes] > > Cc: Sam Ravnborg > Cc: Boris

Re: [PATCH 13/30] drm/atmel-hlcdc/atmel_hlcdc_crtc: Apply correct formatting to struct docs

2020-11-12 Thread Sam Ravnborg
On Thu, Nov 12, 2020 at 07:00:22PM +, Lee Jones wrote: > And fix-up a misnamed member description. > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c:33: warning: cannot > understand function prototype: 'struct atmel_hlcdc_crtc_state ' >

Re: [PATCH 17/30] drm/atmel-hlcdc/atmel_hlcdc_plane: Fix documentation formatting and add missing description

2020-11-12 Thread Sam Ravnborg
On Thu, Nov 12, 2020 at 07:00:26PM +, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c:283:6: warning: no previous > prototype for ‘atmel_hlcdc_plane_setup_scaler’ [-Wmissing-prototypes] > drivers/gpu/drm/atmel-hlcdc/atm

Re: [PATCH] ACPICA: fix -Wfallthrough

2020-11-12 Thread Nick Desaulniers
On Thu, Nov 12, 2020 at 7:13 AM Moore, Robert wrote: > > > > -Original Message- > From: Nick Desaulniers > Sent: Wednesday, November 11, 2020 10:48 AM > To: Moore, Robert > Cc: Kaneda, Erik ; Wysocki, Rafael J > ; Gustavo A . R . Silva ; > clang-built-li...@googlegroups.com; Len Brown

Re: [PATCH 01/30] drm/savage/savage_bci: Remove set but never used 'aper_rsrc' and 'fb_rsrc'

2020-11-12 Thread Sam Ravnborg
On Thu, Nov 12, 2020 at 07:00:10PM +, Lee Jones wrote: > The comment about them (also removed) says: > > /* fb_rsrc and aper_rsrc aren't really used currently, but still exist > * in case we decide we need information on the BAR for BSD in the > * future. > */ > > Well that was written

Re: [PATCH v4 10/19] sched: Fix migrate_disable() vs set_cpus_allowed_ptr()

2020-11-12 Thread Valentin Schneider
On 12/11/20 18:01, Qian Cai wrote: > On Thu, 2020-11-12 at 17:26 +, Valentin Schneider wrote: >> On 12/11/20 16:38, Qian Cai wrote: >> > Some syscall fuzzing from an unprivileged user starts to trigger this below >> > since this commit first appeared in the linux-next today. Does it ring any

Re: [PATCH v4 06/17] PCI: add SIOV and IMS capability detection

2020-11-12 Thread Konrad Rzeszutek Wilk
.monster snip.. > 4. Using CPUID to detect running as guest. But as Thomas pointed out, this > approach is less reliable as not all hypervisors do this way. Is that truly true? It is the first time I see the argument that extra steps are needed and that checking for X86_FEATURE_HYPERVISOR is not

Re: [PATCH v2 1/3] regmap-irq: Add support for peripheral offsets

2020-11-12 Thread Mark Brown
On Thu, Oct 22, 2020 at 02:35:40PM -0700, Guru Das Srinagesh wrote: > Some MFD chips do not have the register space for their peripherals > mapped out with a fixed stride. Add peripheral address offsets to the > framework to support such address spaces. > In this new scheme, the regmap-irq client

Re: [PATCH v2 0/2] Support SC7180 sound card variation without headset

2020-11-12 Thread Mark Brown
On Thu, 12 Nov 2020 09:43:26 +0800, xuyuqing wrote: > Use compatible string to let machine driver handle the case > where ALC5682 headset codec is replaced with ADAU7002 dmic codec > > xuyuqing (2): > ASoC: google: dt-bindings: add new compatible for sc7180-coachz > ASoC: qcom: sc7180: Add mac

Re: [PATCH v2 04/20] kasan, arm64: unpoison stack only with CONFIG_KASAN_STACK

2020-11-12 Thread Andrey Konovalov
On Thu, Nov 12, 2020 at 10:51 AM Catalin Marinas wrote: > > On Tue, Nov 10, 2020 at 11:20:08PM +0100, Andrey Konovalov wrote: > > There's a config option CONFIG_KASAN_STACK that has to be enabled for > > KASAN to use stack instrumentation and perform validity checks for > > stack variables. > > >

Re: [PATCH] regmap: Fix order of regmap write log

2020-11-12 Thread Mark Brown
On Thu, 12 Nov 2020 15:02:17 +, Lucas Tanure wrote: > _regmap_write can trigger a _regmap_select_page, which will call > another _regmap_write that will be executed first, but the log shows > the inverse order > > Also, keep consistency with _regmap_read which only logs in case of > success A

Re: [PATCH v2 0/2] SPI/ Input: ads7846: properly handle spi->mode flags

2020-11-12 Thread Mark Brown
On Tue, 27 Oct 2020 10:57:22 +0100, Oleksij Rempel wrote: > changes v2: > - add SPI_MODE_X_MASK macro > - ads7846: clear SPI_MODE_X_MASK bits to set driver specific mode. > > Oleksij Rempel (2): > spi: introduce SPI_MODE_X_MASK macro > Input: ads7846: do not overwrite spi->mode flags set by sp

Re: [PATCH v4 10/19] sched: Fix migrate_disable() vs set_cpus_allowed_ptr()

2020-11-12 Thread Qian Cai
On Thu, 2020-11-12 at 19:31 +, Valentin Schneider wrote: > One thing I don't get: that trace shows refcount_dec_and_test() > (kernel/sched/core.c:2263) happening before the wait_for_completion(). It's > not the case in the below trace. Yes, that is normal. Sometimes, the decoding is a bit off

Re: [PATCH v2 10/20] kasan: inline and rename kasan_unpoison_memory

2020-11-12 Thread Andrey Konovalov
On Wed, Nov 11, 2020 at 6:49 PM Marco Elver wrote: > > On Tue, Nov 10, 2020 at 11:20PM +0100, Andrey Konovalov wrote: > > Currently kasan_unpoison_memory() is used as both an external annotation > > and as an internal memory poisoning helper. Rename external annotation to > > kasan_unpoison_data()

Re: [PATCH 06/25] soc: ti: knav_qmss_queue: Remove set but unchecked variable 'ret'

2020-11-12 Thread santosh . shilimkar
On 11/12/20 11:02 AM, Lee Jones wrote: On Thu, 12 Nov 2020, santosh.shilim...@oracle.com wrote: On 11/12/20 5:21 AM, Lee Jones wrote: On Thu, 12 Nov 2020, Tero Kristo wrote: On 12/11/2020 12:31, Lee Jones wrote: Cc:ing a few people I know. On Tue, 03 Nov 2020, Lee Jones wrote: Fixes the

Re: [PATCH v3 net-next 07/13] octeontx2-af: Add debugfs entry to dump the MCAM rules

2020-11-12 Thread Saeed Mahameed
On Wed, 2020-11-11 at 12:43 +0530, Naveen Mamindlapalli wrote: > From: Subbaraya Sundeep > > Add debugfs support to dump the MCAM rules installed using > NPC_INSTALL_FLOW mbox message. Debugfs file can display mcam > entry, counter if any, flow type and counter hits. > > Ethtool will dump the nt

Re: [PATCH] mm/zsmalloc: include sparsemem.h for MAX_PHYSMEM_BITS

2020-11-12 Thread Minchan Kim
Hi, On Wed, Nov 11, 2020 at 08:52:00AM +0200, Mike Rapoport wrote: > Hi, > > On Tue, Nov 10, 2020 at 03:36:20PM -0800, Minchan Kim wrote: > > On Tue, Nov 10, 2020 at 06:21:55PM +0200, Mike Rapoport wrote: > > > On Tue, Nov 10, 2020 at 12:21:11PM +0100, Arnd Bergmann wrote: > > > > On Tue, Nov 10,

Re: [PATCH] mm/zsmalloc: include sparsemem.h for MAX_PHYSMEM_BITS

2020-11-12 Thread Minchan Kim
On Wed, Nov 11, 2020 at 03:33:18PM +0100, Arnd Bergmann wrote: > On Wed, Nov 11, 2020 at 2:39 PM Thomas Bogendoerfer > wrote: > > On Wed, Nov 11, 2020 at 11:57:02AM +0100, Arnd Bergmann wrote: > > > On Wed, Nov 11, 2020 at 11:26 AM Mike Rapoport wrote: > > > > > > > > On Wed, Nov 11, 2020 at 10:3

Re: [PATCH v2 10/20] kasan: inline and rename kasan_unpoison_memory

2020-11-12 Thread Marco Elver
On Thu, 12 Nov 2020 at 20:45, Andrey Konovalov wrote: > > On Wed, Nov 11, 2020 at 6:49 PM Marco Elver wrote: > > > > On Tue, Nov 10, 2020 at 11:20PM +0100, Andrey Konovalov wrote: > > > Currently kasan_unpoison_memory() is used as both an external annotation > > > and as an internal memory poison

Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-12 Thread Andrey Konovalov
On Wed, Nov 11, 2020 at 7:29 PM Marco Elver wrote: > > > +#include > > +#include > > This should include -- although the rest of the > kernel seems to also inconsistently use on or the other. Since the name, > as referred to also by macros are "static keys", perhaps the > static_key.h header is

Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-12 Thread Andrey Konovalov
On Thu, Nov 12, 2020 at 1:55 PM Catalin Marinas wrote: > > On Thu, Nov 12, 2020 at 12:53:58PM +0100, Marco Elver wrote: > > On Thu, 12 Nov 2020 at 12:35, Catalin Marinas > > wrote: > > > > > > On Tue, Nov 10, 2020 at 11:20:15PM +0100, Andrey Konovalov wrote: > > > > Hardware tag-based KASAN mode

Re: [PATCH v1 00/30] Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs

2020-11-12 Thread Dmitry Osipenko
11.11.2020 14:38, Ulf Hansson пишет: > On Sun, 8 Nov 2020 at 13:19, Dmitry Osipenko wrote: >> >> 05.11.2020 18:22, Dmitry Osipenko пишет: >>> 05.11.2020 12:45, Ulf Hansson пишет: >>> ... I need some more time to review this, but just a quick check found a few potential issues... >>> >>>

Re: [PATCH v3 net-next 01/13] octeontx2-af: Modify default KEX profile to extract TX packet fields

2020-11-12 Thread Saeed Mahameed
On Wed, 2020-11-11 at 12:43 +0530, Naveen Mamindlapalli wrote: > From: Stanislaw Kardach > > The current default Key Extraction(KEX) profile can only use RX > packet fields while generating the MCAM search key. The profile > can't be used for matching TX packet fields. This patch modifies > the d

Re: [PATCH] kfence: Avoid stalling work queue task without allocations

2020-11-12 Thread Paul E. McKenney
On Thu, Nov 12, 2020 at 07:12:54PM +0100, Marco Elver wrote: > On Thu, Nov 12, 2020 at 09:54AM -0800, Paul E. McKenney wrote: > > On Thu, Nov 12, 2020 at 05:14:39PM +0100, Marco Elver wrote: > > > On Thu, Nov 12, 2020 at 01:49PM +0100, Marco Elver wrote: > > > > On Thu, 12 Nov 2020 at 01:11, Paul E

Re: [PATCH v1 11/30] drm/tegra: dc: Support OPP and SoC core voltage scaling

2020-11-12 Thread Mark Brown
On Thu, Nov 12, 2020 at 10:16:14PM +0300, Dmitry Osipenko wrote: > 12.11.2020 20:16, Mark Brown пишет: > > On Thu, Nov 12, 2020 at 07:59:36PM +0300, Dmitry Osipenko wrote: > >> Also, some device-trees won't have that regulator anyways because board > >> schematics isn't available, and thus, we can

Re: [PATCH 4.19 105/191] memory: emif: Remove bogus debugfs error handling

2020-11-12 Thread Pavel Machek
Hi! > From: Dan Carpenter > > [ Upstream commit fd22781648080cc400772b3c68aa6b059d2d5420 ] > > Callers are generally not supposed to check the return values from > debugfs functions. Debugfs functions never return NULL so this error > handling will never trigger. (Historically debugfs functio

Re: [PATCH] Revert "mm/vunmap: add cond_resched() in vunmap_pmd_range"

2020-11-12 Thread Minchan Kim
Hi Andrew, How should we proceed this problem? On Sat, Nov 07, 2020 at 12:39:39AM -0800, Minchan Kim wrote: > Hi Andrew, > > On Fri, Nov 06, 2020 at 05:59:33PM -0800, Andrew Morton wrote: > > On Thu, 5 Nov 2020 09:02:49 -0800 Minchan Kim wrote: > > > > > This reverts commit e47110e90584a22e99

Re: [RFC 1/2] x86/bugs: Disable coresched on hardware that does not need it

2020-11-12 Thread Alexander Graf
On 12.11.20 16:28, Joel Fernandes wrote: On Thu, Nov 12, 2020 at 03:52:32PM +0100, Alexander Graf wrote: On 12.11.20 14:40, Joel Fernandes wrote: On Wed, Nov 11, 2020 at 11:29:37PM +0100, Alexander Graf wrote: On 11.11.20 23:15, Joel Fernandes wrote: On Wed, Nov 11, 2020 at 5:13 PM

Re: [PATCH v3 net-next 01/13] octeontx2-af: Modify default KEX profile to extract TX packet fields

2020-11-12 Thread Alexander Duyck
On Tue, Nov 10, 2020 at 11:22 PM Naveen Mamindlapalli wrote: > > From: Stanislaw Kardach > > The current default Key Extraction(KEX) profile can only use RX > packet fields while generating the MCAM search key. The profile > can't be used for matching TX packet fields. This patch modifies > the d

Re: [PATCH bpf-next 1/2] bpf: Augment the set of sleepable LSM hooks

2020-11-12 Thread KP Singh
On Thu, Nov 12, 2020 at 7:48 PM Andrii Nakryiko wrote: > > On Thu, Nov 12, 2020 at 9:20 AM KP Singh wrote: > > > > From: KP Singh > > > > Update the set of sleepable hooks with the ones that do not trigger > > a warning with might_fault() when exercised with the correct kernel > > config options

[PATCH bpf-next v2 2/2] bpf: Expose bpf_d_path helper to sleepable LSM hooks

2020-11-12 Thread KP Singh
From: KP Singh Sleepable hooks are never called from an NMI/interrupt context, so it is safe to use the bpf_d_path helper in LSM programs attaching to these hooks. The helper is not restricted to sleepable programs and merely uses the list of sleeable hooks as the initial subset of LSM hooks whe

[PATCH bpf-next v2 1/2] bpf: Augment the set of sleepable LSM hooks

2020-11-12 Thread KP Singh
From: KP Singh Update the set of sleepable hooks with the ones that do not trigger a warning with might_fault() when exercised with the correct kernel config options enabled, i.e. DEBUG_ATOMIC_SLEEP=y LOCKDEP=y PROVE_LOCKING=y This means that a sleepable LSM eBPF program

[PATCH bpf-next v2 0/2] Sleepable LSM Hooks

2020-11-12 Thread KP Singh
From: KP Singh # v1 -> v2 * Fixed typos and formatting errors. * Added Andrii's ack. KP Singh (2): bpf: Augment the set of sleepable LSM hooks bpf: Expose bpf_d_path helper to sleepable LSM hooks include/linux/bpf_lsm.h | 7 +++ kernel/bpf/bpf_lsm.c | 121 ++

Re: [PATCH v3 net-next 02/13] octeontx2-af: Verify MCAM entry channel and PF_FUNC

2020-11-12 Thread Alexander Duyck
On Tue, Nov 10, 2020 at 11:18 PM Naveen Mamindlapalli wrote: > > From: Subbaraya Sundeep > > This patch adds support to verify the channel number sent by > mailbox requester before writing MCAM entry for Ingress packets. > Similarly for Egress packets, verifying the PF_FUNC sent by the > mailbox

[PATCH v3] Make iwmmxt.S support Clang's integrated assembler

2020-11-12 Thread Jian Cai
This patch replaces 6 IWMMXT instructions Clang's integrated assembler does not support in iwmmxt.S using macros, while making sure GNU assembler still emit the same instructions. This should be easier than providing full IWMMXT support in Clang. This is one of the last bits of kernel code that co

Re: [PATCH 06/25] soc: ti: knav_qmss_queue: Remove set but unchecked variable 'ret'

2020-11-12 Thread Lee Jones
On Thu, 12 Nov 2020, santosh.shilim...@oracle.com wrote: > On 11/12/20 11:02 AM, Lee Jones wrote: > > On Thu, 12 Nov 2020, santosh.shilim...@oracle.com wrote: > > > > > On 11/12/20 5:21 AM, Lee Jones wrote: > > > > On Thu, 12 Nov 2020, Tero Kristo wrote: > > > > > > > > > On 12/11/2020 12:31, Le

[PATCH] crypto: crypto4xx - Replace bitwise OR with logical OR in crypto4xx_build_pd

2020-11-12 Thread Nathan Chancellor
Clang warns: drivers/crypto/amcc/crypto4xx_core.c:921:60: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses] (crypto_tfm_alg_type(req->tfm) == CRYPTO_ALG_TYPE_AEAD) ? ~~

Re: [PATCH 01/30] drm/savage/savage_bci: Remove set but never used 'aper_rsrc' and 'fb_rsrc'

2020-11-12 Thread Lee Jones
On Thu, 12 Nov 2020, Sam Ravnborg wrote: > On Thu, Nov 12, 2020 at 07:00:10PM +, Lee Jones wrote: > > The comment about them (also removed) says: > > > > /* fb_rsrc and aper_rsrc aren't really used currently, but still exist > > * in case we decide we need information on the BAR for BSD in

[PATCH v2 1/1] ath10k: add option for chip-id based BDF selection

2020-11-12 Thread Abhishek Kumar
In some devices difference in chip-id should be enough to pick the right BDF. Add another support for chip-id based BDF selection. With this new option, ath10k supports 2 fallback options. The board name with chip-id as option looks as follows board name 'bus=snoc,qmi-board-id=ff,qmi-chip-id=320'

[PATCH] bpf: Expose bpf_sk_storage_* to iterator programs

2020-11-12 Thread Florent Revest
From: Florent Revest Iterators are currently used to expose kernel information to userspace over fast procfs-like files but iterators could also be used to initialize local storage. For example, the task_file iterator could be used to store associations between processes and sockets. This expose

[PATCH] bpf: Expose a bpf_sock_from_file helper to tracing programs

2020-11-12 Thread Florent Revest
From: Florent Revest eBPF programs can already check whether a file is a socket using file->f_op == &socket_file_ops but they can not convert file->private_data into a struct socket with BTF information. For that, we need a new helper that is essentially just a wrapper for sock_from_file. sock_f

[PATCH v2 0/1] This patch address comments on patch v1

2020-11-12 Thread Abhishek Kumar
This patch extends ath10k_core_create_board_name function to support chip id based BDF selection and not add provision for fallback_boardname2, thus introducing lesser lines of code. (no changes since v1) Abhishek Kumar (1): ath10k: add option for chip-id based BDF selection drivers/net/wirel

Re: [RFC 1/2] x86/bugs: Disable coresched on hardware that does not need it

2020-11-12 Thread Alexander Graf
On 12.11.20 15:40, Joel Fernandes wrote: On Thu, Nov 12, 2020 at 08:40:05AM -0500, Joel Fernandes wrote: On Wed, Nov 11, 2020 at 11:29:37PM +0100, Alexander Graf wrote: On 11.11.20 23:15, Joel Fernandes wrote: On Wed, Nov 11, 2020 at 5:13 PM Joel Fernandes wrote: On Wed, Nov 11, 2020

Re: INFO: rcu detected stall in input_repeat_key

2020-11-12 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:57cde551 Merge 5.10-rc3 into usb-next git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=154eb18150 kernel config: https

Re: [PATCH v2 18/20] kasan: clean up metadata allocation and usage

2020-11-12 Thread Andrey Konovalov
On Thu, Nov 12, 2020 at 12:06 AM Marco Elver wrote: > > > + /* Limit it with KMALLOC_MAX_SIZE (relevant for SLAB only). */ > > + if (optimal_size > KMALLOC_MAX_SIZE) > > + optimal_size = KMALLOC_MAX_SIZE; > > + /* Use optimal size if the size with added metas is not large e

Re: [PATCH] USB: storage: avoid use of uninitialized values in error path

2020-11-12 Thread Nathan Chancellor
o is okay (sounds like it is based on the other thread), this is a reasonable fix. Reviewed-by: Nathan Chancellor > --- > applies cleanly on current master and next-20201112 > > I did some basic compile testing... > > Alan, Greg, please pick this minor non-urgent clean-

Re: [PATCH v8 2/9] mmap: make mlock_future_check() global

2020-11-12 Thread David Hildenbrand
> Am 12.11.2020 um 20:08 schrieb Mike Rapoport : > > On Thu, Nov 12, 2020 at 05:22:00PM +0100, David Hildenbrand wrote: >>> On 10.11.20 19:06, Mike Rapoport wrote: >>> On Tue, Nov 10, 2020 at 06:17:26PM +0100, David Hildenbrand wrote: On 10.11.20 16:14, Mike Rapoport wrote: > From: Mik

Re: [PATCH v3 net-next 00/13] Add ethtool ntuple filters support

2020-11-12 Thread Saeed Mahameed
On Wed, 2020-11-11 at 12:43 +0530, Naveen Mamindlapalli wrote: > This patch series adds support for ethtool ntuple filters, unicast > address filtering, VLAN offload and SR-IOV ndo handlers. All of the > above features are based on the Admin Function(AF) driver support to > install and delete the l

Re: [PATCH 27/30] drm/sti/sti_hdmi: Move 'colorspace_mode_names' array to where its used

2020-11-12 Thread Sam Ravnborg
Hi Lee, On Thu, Nov 12, 2020 at 07:00:36PM +, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/sti/sti_hdmi.h:36:40: warning: ‘colorspace_mode_names’ > defined but not used [-Wunused-const-variable=] > 36 | static const struct drm_prop_enum_list colors

Re: [PATCH] ACPICA: fix -Wfallthrough

2020-11-12 Thread Joe Perches
On Thu, 2020-11-12 at 11:30 -0800, Nick Desaulniers wrote: > On Thu, Nov 12, 2020 at 7:13 AM Moore, Robert wrote: > > -Original Message- > > From: Nick Desaulniers > > On Wed, Nov 11, 2020 at 7:15 AM Moore, Robert > > wrote: > > > Yes, but: isn't the "fallthrough" keyword compiler-speci

Re: [PATCH 02/30] include: drm: drm_atomic: Artificially use 'crtc' to avoid 'not used' warning

2020-11-12 Thread Sam Ravnborg
Hi Lee, On Thu, Nov 12, 2020 at 07:00:11PM +, Lee Jones wrote: > The precedent has already been set by other macros in the same file. > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/vkms/vkms_drv.c:55:19: warning: variable ‘crtc’ set but not > used [-Wunused-but-se

[PATCH] ARM: configs: sunxi: enable Realtek PHY

2020-11-12 Thread Corentin Labbe
Lot of sunxi boards has a Realtek PHY, so let's enable it. Signed-off-by: Corentin Labbe --- arch/arm/configs/sunxi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index 244126172fd6..05f7f4ed8ded 100644 --- a/arch

Re: [PATCH 04/30] drm/via/via_dma: Remove set but unused variable 'agp_base'

2020-11-12 Thread Sam Ravnborg
Hi Lee, On Thu, Nov 12, 2020 at 07:00:13PM +, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/via/via_dma.c: In function ‘via_cmdbuf_jump’: > drivers/gpu/drm/via/via_dma.c:596:11: warning: variable ‘agp_base’ set but > not used [-Wunused-but-set-varia

saner sock_from_file() calling conventions (was Re: [PATCH] bpf: Expose a bpf_sock_from_file helper to tracing programs)

2020-11-12 Thread Al Viro
On Thu, Nov 12, 2020 at 09:09:44PM +0100, Florent Revest wrote: > From: Florent Revest > > eBPF programs can already check whether a file is a socket using > file->f_op == &socket_file_ops but they can not convert file->private_data > into a struct socket with BTF information. For that, we need a

Re: [PATCH bpf-next v2 0/2] Sleepable LSM Hooks

2020-11-12 Thread KP Singh
On Thu, Nov 12, 2020 at 9:03 PM KP Singh wrote: > > From: KP Singh > > # v1 -> v2 > > * Fixed typos and formatting errors. > * Added Andrii's ack. Oops, I sent an older patch file which does not have Andrii's ack.

[PATCH] ixgbe: Support external GBE SerDes PHY BCM54616s

2020-11-12 Thread Paul Menzel
From: Jostar Yang The Broadcom PHY is used in switches, so add the ID, and hook it up. This upstreams the Linux kernel patch from the network operating system SONiC from Februar 2020 [1]. [1]: https://github.com/Azure/sonic-linux-kernel/pull/122 Signed-off-by: Jostar Yang Signed-off-by: Guoha

Re: [PATCH v4 10/19] sched: Fix migrate_disable() vs set_cpus_allowed_ptr()

2020-11-12 Thread Qian Cai
330] INFO: task trinity-c4:60050 blocked for more than 245 seconds. [ 1235.052540][ T330] Not tainted 5.10.0-rc3-next-20201112+ #2 [ 1235.058774][ T330] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 1235.067392][ T330] task:trinity-c4 state:D

Re: [PATCH 24/24] perf record: Add --buildid-mmap option to enable mmap's build id

2020-11-12 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 12, 2020 at 12:57:10PM +0100, Jiri Olsa escreveu: > On Wed, Nov 11, 2020 at 09:00:46AM -0800, Andi Kleen wrote: > > On Mon, Nov 09, 2020 at 10:54:15PM +0100, Jiri Olsa wrote: > > > Adding --buildid-mmap option to enable build id in mmap2 events. > > > It will only work if there's kernel

[PATCH v2] ima: select ima-buf template for buffer measurement

2020-11-12 Thread Lakshmi Ramasubramanian
The default IMA template used for all policy rules is the value set for CONFIG_IMA_DEFAULT_TEMPLATE if the policy rule does not specify a template. The default IMA template for buffer measurements should be 'ima-buf' - so that the measured buffer is correctly included in the IMA measurement log ent

Re: [PATCH v1 00/30] Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs

2020-11-12 Thread Thierry Reding
On Thu, Nov 12, 2020 at 10:57:27PM +0300, Dmitry Osipenko wrote: > 11.11.2020 14:38, Ulf Hansson пишет: > > On Sun, 8 Nov 2020 at 13:19, Dmitry Osipenko wrote: > >> > >> 05.11.2020 18:22, Dmitry Osipenko пишет: > >>> 05.11.2020 12:45, Ulf Hansson пишет: > >>> ... > I need some more time to re

[PATCH net v1] lan743x: prevent entire kernel HANG on open, for some platforms

2020-11-12 Thread Sven Van Asbroeck
From: Sven Van Asbroeck On arm imx6, when opening the chip's netdev, the whole Linux kernel intermittently hangs/freezes. This is caused by a bug in the driver code which tests if pcie interrupts are working correctly, using the software interrupt: 1. open: enable the software interrupt 2. open

Re: [PATCH v3 1/3] dt-bindings: Convert graph bindings to json-schema

2020-11-12 Thread Rob Herring
On Mon, Nov 2, 2020 at 2:36 PM Rob Herring wrote: > > From: Sameer Pujar > > Convert device tree bindings of graph to YAML format. Currently graph.txt > doc is referenced in multiple files and all of these need to use schema > references. For now graph.txt is updated to refer to graph.yaml. > > F

[PATCH v24 00/12] Landlock LSM

2020-11-12 Thread Mickaël Salaün
Hi, This patch series simplifies the code, makes stacked access-control more consistent (from the user point of view), properly handles memory allocation errors, and adds more tests (covering layered ruleset corner cases). Most of these changes were sent as a separate patch series: https://lore.k

Re: [PATCH v4 8/8] [DNI] arm64: dts: renesas: eagle: Specify channel amplitude

2020-11-12 Thread Sergei Shtylyov
On 11/12/20 7:27 PM, Jacopo Mondi wrote: > Use the newly introduced 'maxim,maxim,initial-reverse-channel-mV' "maxim," repeated twice. > property to specify the initial reverse channel amplitude when the > remote serializers are not pre-programmed with noise immunity threshold > enabled. > >

[PATCH v24 01/12] landlock: Add object management

2020-11-12 Thread Mickaël Salaün
From: Mickaël Salaün A Landlock object enables to identify a kernel object (e.g. an inode). A Landlock rule is a set of access rights allowed on an object. Rules are grouped in rulesets that may be tied to a set of processes (i.e. subjects) to enforce a scoped access-control (i.e. a domain). Be

[PATCH v24 10/12] selftests/landlock: Add user space tests

2020-11-12 Thread Mickaël Salaün
From: Mickaël Salaün Test all Landlock system calls, ptrace hooks semantic and filesystem access-control. Test coverage for security/landlock/ is 94.8% of lines. The code not covered only deals with internal kernel errors (e.g. memory allocation) and race conditions. Cc: James Morris Cc: Jann

[PATCH v24 04/12] landlock: Add ptrace restrictions

2020-11-12 Thread Mickaël Salaün
From: Mickaël Salaün Using ptrace(2) and related debug features on a target process can lead to a privilege escalation. Indeed, ptrace(2) can be used by an attacker to impersonate another task and to remain undetected while performing malicious activities. Thanks to ptrace_may_access(), variou

[PATCH v24 12/12] landlock: Add user and kernel documentation

2020-11-12 Thread Mickaël Salaün
From: Mickaël Salaün This documentation can be built with the Sphinx framework. Cc: James Morris Cc: Jann Horn Cc: Kees Cook Cc: Serge E. Hallyn Signed-off-by: Mickaël Salaün Reviewed-by: Vincent Dagonneau --- Changes since v23: * Explain limitations for the maximum number of stacked rule

[PATCH v24 09/12] arch: Wire up Landlock syscalls

2020-11-12 Thread Mickaël Salaün
From: Mickaël Salaün Wire up the following system calls for all architectures: * landlock_create_ruleset(2) * landlock_add_rule(2) * landlock_enforce_ruleset_current(2) Cc: Arnd Bergmann Cc: James Morris Cc: Jann Horn Cc: Kees Cook Cc: Serge E. Hallyn Signed-off-by: Mickaël Salaün --- Cha

[PATCH v24 07/12] landlock: Support filesystem access-control

2020-11-12 Thread Mickaël Salaün
From: Mickaël Salaün Thanks to the Landlock objects and ruleset, it is possible to identify inodes according to a process's domain. To enable an unprivileged process to express a file hierarchy, it first needs to open a directory (or a file) and pass this file descriptor to the kernel through la

[PATCH v24 06/12] fs,security: Add sb_delete hook

2020-11-12 Thread Mickaël Salaün
From: Mickaël Salaün The sb_delete security hook is called when shutting down a superblock, which may be useful to release kernel objects tied to the superblock's lifetime (e.g. inodes). This new hook is needed by Landlock to release (ephemerally) tagged struct inodes. This comes from the unpri

[PATCH v24 08/12] landlock: Add syscall implementations

2020-11-12 Thread Mickaël Salaün
From: Mickaël Salaün These 3 system calls are designed to be used by unprivileged processes to sandbox themselves: * landlock_create_ruleset(2): Creates a ruleset and returns its file descriptor. * landlock_add_rule(2): Adds a rule (e.g. file hierarchy access) to a ruleset, identified by the

[PATCH v24 11/12] samples/landlock: Add a sandbox manager example

2020-11-12 Thread Mickaël Salaün
From: Mickaël Salaün Add a basic sandbox tool to launch a command which can only access a whitelist of file hierarchies in a read-only or read-write way. Cc: James Morris Cc: Jann Horn Cc: Kees Cook Cc: Serge E. Hallyn Signed-off-by: Mickaël Salaün --- Changes since v23: * Re-add hints to

[PATCH v24 05/12] LSM: Infrastructure management of the superblock

2020-11-12 Thread Mickaël Salaün
From: Casey Schaufler Move management of the superblock->sb_security blob out of the individual security modules and into the security infrastructure. Instead of allocating the blobs from within the modules, the modules tell the infrastructure how much space is required, and the space is allocate

[PATCH v24 03/12] landlock: Set up the security framework and manage credentials

2020-11-12 Thread Mickaël Salaün
From: Mickaël Salaün Process's credentials point to a Landlock domain, which is underneath implemented with a ruleset. In the following commits, this domain is used to check and enforce the ptrace and filesystem security policies. A domain is inherited from a parent to its child the same way a t

[PATCH v24 02/12] landlock: Add ruleset and domain management

2020-11-12 Thread Mickaël Salaün
From: Mickaël Salaün A Landlock ruleset is mainly a red-black tree with Landlock rules as nodes. This enables quick update and lookup to match a requested access, e.g. to a file. A ruleset is usable through a dedicated file descriptor (cf. following commit implementing syscalls) which enables a

Re: [PATCH v2 10/20] kasan: inline and rename kasan_unpoison_memory

2020-11-12 Thread Andrey Konovalov
On Thu, Nov 12, 2020 at 8:52 PM Marco Elver wrote: > > On Thu, 12 Nov 2020 at 20:45, Andrey Konovalov wrote: > > > > On Wed, Nov 11, 2020 at 6:49 PM Marco Elver wrote: > > > > > > On Tue, Nov 10, 2020 at 11:20PM +0100, Andrey Konovalov wrote: > > > > Currently kasan_unpoison_memory() is used as

Re: [PATCH v40 10/24] mm: Add 'mprotect' hook to struct vm_operations_struct

2020-11-12 Thread Dr. Greg
On Sat, Nov 07, 2020 at 11:16:25AM -0800, Dave Hansen wrote: Good afternoon, I hope the week is going well for everyone. > On 11/7/20 7:09 AM, Dr. Greg wrote: > > In all of these discussions there hasn't been a refutation of my point > > that the only reason this hook is needed is to stop the pot

linux-next: Fixes tag needs some work in the usb-chipidea-fixes tree

2020-11-12 Thread Stephen Rothwell
Hi all, In commit 3d4ee0b42f65 ("usb: cdns3: gadget: initialize link_trb as NULL") Fixes tag Fixes: 4e218882eb5a ("usb: cdns3: gadget: improve the dump TRB operation has these problem(s): - Subject has leading but no trailing parentheses - Subject has leading but no trailing quotes P

linux-next: Fixes tag needs some work in the vfs-fixes tree

2020-11-12 Thread Stephen Rothwell
Hi all, In commit 5f85b351d3d6 ("fix return values of seq_read_iter()") Fixes tag Fixes: d4d50710a8b (seq_file: add seq_read_iter) has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or more) or (for git v2.11 or later) just

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