[PATCH v11 05/10] fs/ntfs3: Add attrib operations

2020-10-30 Thread Konstantin Komarov
This adds attrib operations Signed-off-by: Konstantin Komarov --- fs/ntfs3/attrib.c | 1400 +++ fs/ntfs3/attrlist.c | 463 ++ fs/ntfs3/xattr.c| 1069 + 3 files changed, 2932 insertions(+) create mode 1006

[PATCH v11 09/10] fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

2020-10-30 Thread Konstantin Komarov
This adds NTFS3 in fs/Kconfig and fs/Makefile Signed-off-by: Konstantin Komarov --- fs/Kconfig | 1 + fs/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/Kconfig b/fs/Kconfig index aa4c12282301..eae96d55ab67 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -145,6 +145,7 @@ menu "DOS

[PATCH v11 07/10] fs/ntfs3: Add NTFS journal

2020-10-30 Thread Konstantin Komarov
This adds NTFS journal Signed-off-by: Konstantin Komarov --- fs/ntfs3/fslog.c | 5221 ++ 1 file changed, 5221 insertions(+) create mode 100644 fs/ntfs3/fslog.c diff --git a/fs/ntfs3/fslog.c b/fs/ntfs3/fslog.c new file mode 100644 index ..

[PATCH v11 04/10] fs/ntfs3: Add file operations and implementation

2020-10-30 Thread Konstantin Komarov
This adds file operations and implementation Signed-off-by: Konstantin Komarov --- fs/ntfs3/dir.c | 610 ++ fs/ntfs3/file.c| 1153 +++ fs/ntfs3/frecord.c | 2696 fs/ntfs3/namei.c | 576 ++ fs/ntfs3/record.c

[PATCH v11 01/10] fs/ntfs3: Add headers and misc files

2020-10-30 Thread Konstantin Komarov
This adds headers and misc files Signed-off-by: Konstantin Komarov --- fs/ntfs3/debug.h | 61 +++ fs/ntfs3/ntfs.h| 1262 fs/ntfs3/ntfs_fs.h | 988 ++ fs/ntfs3/upcase.c | 77 +++ 4 files changed, 2388 inserti

[PATCH v11 03/10] fs/ntfs3: Add bitmap

2020-10-30 Thread Konstantin Komarov
This adds bitmap Signed-off-by: Konstantin Komarov --- fs/ntfs3/bitfunc.c | 135 fs/ntfs3/bitmap.c | 1504 2 files changed, 1639 insertions(+) create mode 100644 fs/ntfs3/bitfunc.c create mode 100644 fs/ntfs3/bitmap.c diff --git a/fs/ntfs3/b

Re: Python 2.7 support and automarkup.py - Was: Re: [PATCH v2 1/5] docs: automarkup.py: Use new C roles in Sphinx 3

2020-10-30 Thread Nícolas F . R . A . Prado
On Fri Oct 30, 2020 at 11:39 AM -03, Matthew Wilcox wrote: > > On Fri, Oct 30, 2020 at 08:14:40AM -0600, Jonathan Corbet wrote: > > On Fri, 30 Oct 2020 15:10:26 +0100 > > Mauro Carvalho Chehab wrote: > > > > > I see a few alternatives: > > > > > > 1) fix automarkup.py for it to work again with pyt

[PATCH] drm/panfrost: Fix module unload

2020-10-30 Thread Steven Price
When unloading the call to pm_runtime_put_sync_suspend() will attempt to turn the GPU cores off, however panfrost_device_fini() will have turned the clocks off. This leads to the hardware locking up. Instead don't call pm_runtime_put_sync_suspend() and instead simply mark the device as suspended u

Re: [RESEND PATCH v18 2/4] overlayfs: handle XATTR_NOSECURITY flag for get xattr method

2020-10-30 Thread Miklos Szeredi
On Wed, Oct 21, 2020 at 5:19 PM Mark Salyzyn wrote: > > Because of the overlayfs getxattr recursion, the incoming inode fails > to update the selinux sid resulting in avc denials being reported > against a target context of u:object_r:unlabeled:s0. > > Solution is to respond to the XATTR_NOSECURIT

Re: [PATCH] cpufreq: schedutil: Don't skip freq update if need_freq_update is set

2020-10-30 Thread Rafael J. Wysocki
On Fri, Oct 30, 2020 at 8:31 AM Viresh Kumar wrote: > > The cpufreq policy's frequency limits (min/max) can get changed at any > point of time, while schedutil is trying to update the next frequency. > Though the schedutil governor has necessary locking and support in place > to make sure we don't

Re: [PATCH] media: v4l2-mem2mem: always call poll_wait() on queues

2020-10-30 Thread Hans Verkuil
On 22/10/2020 14:24, Alexandre Courbot wrote: > do_poll()/do_select() seem to set the _qproc member of poll_table to > NULL the first time they are called on a given table, making subsequent > calls of poll_wait() on that table no-ops. This is a problem for mem2mem > which calls poll_wait() on the

Re: [PATCH v6 6/9] kfence, kasan: make KFENCE compatible with KASAN

2020-10-30 Thread Jann Horn
On Fri, Oct 30, 2020 at 2:46 PM Marco Elver wrote: > On Fri, 30 Oct 2020 at 03:50, Jann Horn wrote: > > On Thu, Oct 29, 2020 at 2:17 PM Marco Elver wrote: > > > We make KFENCE compatible with KASAN for testing KFENCE itself. In > > > particular, KASAN helps to catch any potential corruptions to

Re: [Y2038][time namespaces] Question regarding CLOCK_REALTIME support plans in Linux time namespaces

2020-10-30 Thread Thomas Gleixner
On Fri, Oct 30 2020 at 10:02, Zack Weinberg wrote: > On Fri, Oct 30, 2020 at 9:57 AM Cyril Hrubis wrote: >> > According to patch description [1] and time_namespaces documentation >> > [2] the CLOCK_REALTIME is not supported (for now?) to avoid complexity >> > and overhead in the kernel. > ... >> >

[PATCH] drm/msm/dsi: do not try reading 28nm vco rate if it's not enabled

2020-10-30 Thread Dmitry Baryshkov
Reading VCO rate for this PLL can cause boot stalls, if it is not enabled. Guard clk_hw_get_rate with a call to dsi_pll_28nm_clk_is_enabled(). Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dr

Re: [LKP] Re: [rcu] 44bad5b3cc: dmesg.INFO:rcu_preempt_detected_stalls_on_CPUs/tasks

2020-10-30 Thread Philip Li
On Fri, Oct 30, 2020 at 06:56:21AM -0700, Paul E. McKenney wrote: > On Fri, Oct 30, 2020 at 03:47:40PM +0800, kernel test robot wrote: > > Greeting, > > > > FYI, we noticed the following commit (built with gcc-9): > > > > commit: 44bad5b3cca2d452d17ef82841b20b42a2cf11a0 ("rcu: Do full report for

[PATCH] KVM: x86: Fix NULL dereference at kvm_msr_ignored_check()

2020-10-30 Thread Takashi Iwai
The newly introduced kvm_msr_ignored_check() tries to print error or debug messages via vcpu_*() macros, but those may cause Oops when NULL vcpu is passed for KVM_GET_MSRS ioctl. Fix it by replacing the print calls with kvm_*() macros. (Note that this will leave vcpu argument completely unused in

Re: [PATCH v3] usb: dwc3: core: fix a issue about clear connect state

2020-10-30 Thread Dejin Zheng
On Wed, Oct 28, 2020 at 03:57:03PM +0200, Felipe Balbi wrote: Hi Balbi and all: > > Hi, > > Dejin Zheng writes: > >> Dejin Zheng writes: > >> > According to Synopsys Programming Guide chapter 2.2 Register Resets, > >> > it cannot reset the DCTL register by setting DCTL.CSFTRST for core soft > >

Re: [PATCH] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Zi Yan
On 30 Oct 2020, at 10:50, Vlastimil Babka wrote: > On 10/29/20 9:04 PM, Zi Yan wrote: >> From: Zi Yan >> >> In isolate_migratepages_block, when cc->alloc_contig is true, we are >> able to isolate compound pages, nr_migratepages and nr_isolated did not >> count compound pages correctly, causing us

[PATCH v2 00/15] timers: clean up ARCH_GETTIMEOFFSET, LEGACY_TIMER_TICK

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann This is a resend of the combined cleanups for CONFIG_ARCH_GETTIMEOFFSET, which gets removed, and CONFIG_LEGACY_TIMER_TICK, which replaces CONFIG_GENERIC_CLOCKEVENTS, with the reverse meaning. CONFIG_ARCH_GETTIMEOFFSET has been gradually phased out from all platforms, with onl

Re: [PATCH v6 6/9] kfence, kasan: make KFENCE compatible with KASAN

2020-10-30 Thread Marco Elver
On Fri, 30 Oct 2020 at 16:09, Jann Horn wrote: > > On Fri, Oct 30, 2020 at 2:46 PM Marco Elver wrote: > > On Fri, 30 Oct 2020 at 03:50, Jann Horn wrote: > > > On Thu, Oct 29, 2020 at 2:17 PM Marco Elver wrote: > > > > We make KFENCE compatible with KASAN for testing KFENCE itself. In > > > > pa

[PATCH v2 13/15] m68k: remove timer_interrupt() function

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann This gets passed to a number of init functions, but is ignored everywhere, so remove the function and change the mach_sched_init callback to take no arguments. Reviewed-by: Geert Uytterhoeven Acked-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven Reviewed-by: Linus Wal

[PATCH v2 08/15] m68k: coldfire: use legacy_timer_tick()

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann Replace the indirect function calls in the timer code with direct calls to the newly added legacy_timer_tick() helper for those that have not yet been converted to generic clockevents. This makes the timer code a little more self-contained. Tested-by: Greg Ungerer Reviewed-

[PATCH v2 12/15] m68k: change remaining timers to legacy_timer_tick

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann There are nine more machines that each have their own timer interrupt calling the m68k timer_interrupt() function through an indirect pointer. This function is now the same as legacy_timer_tick, so just call that directly and select the corresponding Kconfig symbol. Reviewed

[PATCH v2 07/15] parisc: use legacy_timer_tick

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann parisc has selected CONFIG_GENERIC_CLOCKEVENTS since commit 43b1f6abd590 ("parisc: Switch to generic sched_clock implementation"), but does not appear to actually be using it, and instead calls the low-level timekeeping functions directly. Remove the GENERIC_CLOCKEVENTS selec

[PATCH v2 15/15] timekeeping: default GENERIC_CLOCKEVENTS to enabled

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann Almost all machines use GENERIC_CLOCKEVENTS, so it feels wrong to require each one to select that symbol manually. Instead, enable it whenever CONFIG_LEGACY_TIMER_TICK is disabled as a simplification. It should be possible to select both GENERIC_CLOCKEVENTS and LEGACY_TIMER_T

[PATCH v2 09/15] m68k: split heartbeat out of timer function

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann The heartbeat functionality is mostly separate from the actual timer interrupt handling, and it is only used on five platforms. Split it out into a separate function and call that directly from the timer irq on those platforms. Reviewed-by: Geert Uytterhoeven Acked-by: Geer

[PATCH v2 06/15] ARM: rpc: use legacy_timer_tick

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann rpc is the only user of the timer_tick() function now, and can just call the newly added generic version instead. Reviewed-by: Linus Walleij Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig | 1 + arch/arm/include/asm/mach/time.h | 2 -- arch/arm/kernel/

Re: [External] Re: [PATCH v2 00/19] Free some vmemmap pages of hugetlb page

2020-10-30 Thread Michal Hocko
On Fri 30-10-20 18:24:25, Muchun Song wrote: > On Fri, Oct 30, 2020 at 5:14 PM Michal Hocko wrote: > > > > On Mon 26-10-20 22:50:55, Muchun Song wrote: > > > If we uses the 1G hugetlbpage, we can save 4095 pages. This is a very > > > substantial gain. On our server, run some SPDK/QEMU applications

[PATCH v2 10/15] m68k: sun3/sun3c: use legacy_timer_tick

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann These two are different from all other machines: * sun3 does not call timer_routine() but open-codes it except for the profile_tick() call that appears to be unintentionally missing. * sun3x has a commented-out timer irq handler but no functional timer tick I could fin

[PATCH v2 14/15] timekeeping: remove xtime_update

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann There are no more users of xtime_update aside from legacy_timer_tick(), so fold it into that function and remove the declaration. update_process_times() is now only called inside of the kernel/time/ code, so the declaration can be moved there. Reviewed-by: Geert Uytterhoeven

[PATCH 5/6] perf/arch: Remove perf_sample_data::regs_user_copy

2020-10-30 Thread Peter Zijlstra
struct perf_sample_data lives on-stack, we should be careful about it's size. Furthermore, the pt_regs copy in there is only because x86_64 is a trainwreck, solve it differently. Reported-by: Thomas Gleixner Signed-off-by: Peter Zijlstra (Intel) Tested-by: Steven Rostedt --- arch/arm/kernel/pe

[PATCH v2 11/15] m68k: m68328: use legacy_timer_tick()

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann A couple of machines share the m68328 timer code that is based on calling timer_interrupt(). Change these to the new and slightly more generic legacy_timer_tick() helper. Reviewed-by: Geert Uytterhoeven Reviewed-by: Linus Walleij Signed-off-by: Arnd Bergmann --- arch/m68k

Jaliokd

2020-10-30 Thread Michelle
Hallo Schatz Ich habe einen dringenden Vorschlag für Sie. Schreiben Sie mir für Details zurück Dein, Michelle

[PATCH 6/6] perf/x86: Make dummy_iregs static

2020-10-30 Thread Peter Zijlstra
Having pt_regs on-stack is unfortunate, it's 168 bytes. Since it isn't actually used, make it a static variable. This both gets if off the stack and ensures it gets 0 initialized, just in case someone does look at it. Reported-by: Steven Rostedt Signed-off-by: Peter Zijlstra (Intel) --- arch/x8

[PATCH 4/6] perf: Optimize get_recursion_context()

2020-10-30 Thread Peter Zijlstra
"Look ma, no branches!" Cc: Jesper Dangaard Brouer Cc: Steven Rostedt Signed-off-by: Peter Zijlstra (Intel) --- kernel/events/internal.h | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) --- a/kernel/events/internal.h +++ b/kernel/events/internal.h @@ -205,16 +205,15

[PATCH 0/6] perf: Reduce stack usage (and misc bits)

2020-10-30 Thread Peter Zijlstra
Hi, Steve reported an NMI stack overflow when running perf and function tracing together. Thomas found that we had 4 copies of struct perf_sample_data on-stack. These here patches reduce that to 2 copies and half the size of it. So just for perf_sample_data we go from 4*384=1536 to 2*192=384 byt

[PATCH 1/6] perf: Reduce stack usage of perf_output_begin()

2020-10-30 Thread Peter Zijlstra
__perf_output_begin() has an on-stack struct perf_sample_data in the unlikely case it needs to generate a LOST record. However, every call to perf_output_begin() must already have a perf_sample_data on-stack. Reported-by: Thomas Gleixner Signed-off-by: Peter Zijlstra (Intel) --- arch/powerpc/pe

[PATCH 2/6] perf/x86: Reduce stack usage for x86_pmu::drain_pebs()

2020-10-30 Thread Peter Zijlstra
intel_pmu_drain_pebs_*() is typically called from handle_pmi_common(), both have an on-stack struct perf_sample_data, which is *big*. Rewire things so that drain_pebs() can use the one handle_pmi_common() has. Reported-by: Thomas Gleixner Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/event

[PATCH 3/6] perf: Fix get_recursion_context()

2020-10-30 Thread Peter Zijlstra
One should use in_server_softirq() to detector SoftIRQ context. Fixes: 96f6d302 ("perf_counter: avoid recursion") Signed-off-by: Peter Zijlstra (Intel) --- kernel/events/internal.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/events/internal.h +++ b/kernel/events/in

Re: [PATCH v6 2/9] x86, kfence: enable KFENCE for x86

2020-10-30 Thread Jann Horn
On Fri, Oct 30, 2020 at 2:00 PM Marco Elver wrote: > On Fri, 30 Oct 2020 at 03:49, Jann Horn wrote: > > On Thu, Oct 29, 2020 at 2:17 PM Marco Elver wrote: > > > Add architecture specific implementation details for KFENCE and enable > > > KFENCE for the x86 architecture. In particular, this imple

Re: [PATCH] cpufreq: schedutil: Don't skip freq update if need_freq_update is set

2020-10-30 Thread Rafael J. Wysocki
On Fri, Oct 30, 2020 at 4:07 PM Rafael J. Wysocki wrote: > > On Fri, Oct 30, 2020 at 8:31 AM Viresh Kumar wrote: > > > > The cpufreq policy's frequency limits (min/max) can get changed at any > > point of time, while schedutil is trying to update the next frequency. > > Though the schedutil gover

[PATCH -next] fs: Fix memory leaks in do_renameat2() error paths

2020-10-30 Thread Qian Cai
We will need to call putname() before do_renameat2() returning -EINVAL to avoid memory leaks. Fixes: 3c5499fa56f5 ("fs: make do_renameat2() take struct filename") Signed-off-by: Qian Cai --- fs/namei.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/fs/namei.c b

Re: [PATCH v11 00/10] NTFS read-write driver GPL implementation by Paragon Software

2020-10-30 Thread Pali Rohár
Hello and thanks for update! I have just two comments for the last v11 version. I really do not like nls_alt mount option and I do not think we should merge this mount option into ntfs kernel driver. Details I described in: https://lore.kernel.org/linux-fsdevel/20201009154734.andv4es3azkkskm5@pal

Re: [PATCH v6 5/6] dt-bindings: spi: Convert cadence-quadspi.txt to cadence-quadspi.yaml

2020-10-30 Thread Rob Herring
On Fri, Oct 30, 2020 at 01:31:52PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Convert the cadence-quadspi.txt documentation to cadence-quadspi.yaml > remove the cadence-quadspi.txt from Documentation/devicetree/bindings/spi/ > > Signed-off-by: Ramuthevar Vad

Re: [PATCH RESEND v2 1/3] sched/topology,schedutil: wrap sched domains rebuild

2020-10-30 Thread Rafael J. Wysocki
On Tue, Oct 27, 2020 at 7:08 PM Ionela Voinescu wrote: > > Add the rebuild_sched_domains_energy() function to wrap the functionality > that rebuilds the scheduling domains if any of the Energy Aware Scheduling > (EAS) initialisation conditions change. This functionality is used when > schedutil is

[PATCH v2 05/15] ia64: convert to legacy_timer_tick

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann ia64 is the only architecture that calls xtime_update() in a loop, once for each jiffie that has passed since the last event. Before commit 3171a0305d62 ("[PATCH] simplify update_times (avoid jiffies/jiffies_64 aliasing problem)") in 2006, it could not actually do this any di

[PATCH v2 04/15] timekeeping: add CONFIG_LEGACY_TIMER_TICK

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann All platforms that currently do not use generic clockevents roughly call the same set of functions in their timer interrupts: xtime_update(), update_process_times() and profile_tick(), sometimes in a different sequence. Add a helper function that performs all three of them, t

[PATCH v2 02/15] net: remove am79c961a driver

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann This driver was only used on the EBSA110 platform, which is now getting removed, so the driver is no longer needed either. Acked-by: Russell King Acked-by: Jakub Kicinski Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/amd/Kconfig | 10 +- drivers/net/ethernet/

[PATCH v2 01/15] ARM: remove ebsa110 platform

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann Russell said that he is no longer using this machine, and it seems that nobody else has in a long time, so it's time to say goodbye to it. As this is the last platform using CONFIG_ARCH_USES_GETTIMEOFFSET, there are some follow-up patches to remove that as well. Acked-by: Ru

[PATCH v2 03/15] timekeeping: remove arch_gettimeoffset

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann With Arm EBSA110 gone, nothing uses it any more, so the corresponding code and the Kconfig option can be removed. Acked-by: Thomas Gleixner Reviewed-by: Linus Walleij Signed-off-by: Arnd Bergmann --- .../time/modern-timekeeping/arch-support.txt | 33 ---

Re: [PATCH -next] fs: Fix memory leaks in do_renameat2() error paths

2020-10-30 Thread Jens Axboe
On 10/30/20 9:24 AM, Qian Cai wrote: > We will need to call putname() before do_renameat2() returning -EINVAL > to avoid memory leaks. Thanks, should mention that this isn't final by any stretch (which is why it hasn't been posted yet), just pushed out for some exposure. -- Jens Axboe

Re: [RESEND PATCH v3 1/4] dt-bindings: connector: add power-opmode optional property to usb-connector

2020-10-30 Thread Amelie DELAUNAY
On 10/30/20 3:29 PM, Rob Herring wrote: On Thu, Oct 29, 2020 at 11:49 AM Amelie DELAUNAY wrote: On 10/29/20 4:40 PM, Rob Herring wrote: On Thu, Oct 29, 2020 at 10:58:03AM +0100, Amelie Delaunay wrote: Power operation mode may depends on hardware design, so, add the optional property pow

Re: [RFC PATCH] mwifiex: pcie: use shutdown_sw()/reinit_sw() on suspend/resume

2020-10-30 Thread Tsuchiya Yuto
On Wed, 2020-10-28 at 23:27 +0900, Tsuchiya Yuto wrote: > On Microsoft Surface devices (PCIe-88W8897), there are issues with S0ix > achievement and AP scanning after suspend with the current Host Sleep > method. > > When using the Host Sleep method, it prevents the platform to reach S0ix > during s

Re: [PATCH v2 2/2] init/Kconfig: Increase default log buffer size from 128 KB to 512 KB

2020-10-30 Thread Petr Mladek
On Thu 2020-10-29 23:16:01, Paul Menzel wrote: > Dear Petr, > > > Am 11.08.20 um 12:53 schrieb Petr Mladek: > > On Tue 2020-08-11 11:29:24, Paul Menzel wrote: > > > Commit f17a32e97e (let LOG_BUF_SHIFT default to 17) from 2008 was the > > > last time, the the default log buffer size bump was incr

Re: [PATCH net-next] net: phy: realtek: Add support for RTL8221B-CG series

2020-10-30 Thread Jakub Kicinski
On Fri, 30 Oct 2020 13:56:20 +0800 Willy Liu wrote: > diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c > old mode 100644 > new mode 100755 > index fb1db71..2ba0d73 checkpatch says: ERROR: do not set execute permissions for source files #23: FILE: drivers/net/phy/realtek.c total

Re: [PATCH v1 2/2] seccomp: Set PF_SUPERPRIV when checking capability

2020-10-30 Thread Jann Horn
On Fri, Oct 30, 2020 at 1:39 PM Mickaël Salaün wrote: > Replace the use of security_capable(current_cred(), ...) with > ns_capable_noaudit() which set PF_SUPERPRIV. > > Since commit 98f368e9e263 ("kernel: Add noaudit variant of > ns_capable()"), a new ns_capable_noaudit() helper is available. Let

Re: [PATCH v3 1/2] dt-bindings: can: add can-controller.yaml

2020-10-30 Thread Rob Herring
On Thu, 22 Oct 2020 09:52:17 +0200, Oleksij Rempel wrote: > For now we have only node name as common rule for all CAN controllers > > Signed-off-by: Oleksij Rempel > Link: https://lore.kernel.org/r/20201016073315.16232-2-o.rem...@pengutronix.de > Signed-off-by: Marc Kleine-Budde > --- > .../bin

Re: [PATCH v3 2/2] dt-bindings: can: flexcan: convert fsl,*flexcan bindings to yaml

2020-10-30 Thread Rob Herring
On Thu, 22 Oct 2020 09:52:18 +0200, Oleksij Rempel wrote: > In order to automate the verification of DT nodes convert > fsl-flexcan.txt to fsl,flexcan.yaml > > Signed-off-by: Oleksij Rempel > Link: https://lore.kernel.org/r/20201016073315.16232-3-o.rem...@pengutronix.de > Signed-off-by: Marc Klei

Re: [PATCH 1/4] dt-bindings: add defines for i.MX8MN power domains

2020-10-30 Thread Rob Herring
On Thu, 22 Oct 2020 10:08:04 -0500, Adam Ford wrote: > The i.MX8M Nano has a similar power domain controller to that of the > mini, but it isn't fully compatible, so it needs a separate binding > and power domain tables. > > Add the bindings and tables. > > Signed-off-by: Adam Ford > Acked-by:

Re: [PATCH v2 08/10] dt-bindings: pwm: Add binding for RPi firmware PWM bus

2020-10-30 Thread Rob Herring
On Thu, 22 Oct 2020 17:58:55 +0200, Nicolas Saenz Julienne wrote: > The PWM bus controlling the fan in RPi's official PoE hat can only be > controlled by the board's co-processor. > > Signed-off-by: Nicolas Saenz Julienne > > --- > Changes since v1: > - Update bindings to use 2 #pwm-cells > >

Re: [PATCH] Input: add SW_COVER_ATTACHED and SW_EXT_PEN_ATTACHED

2020-10-30 Thread Sebastian Reichel
Hi, On Fri, Oct 30, 2020 at 10:15:52PM +0900, Jungrae Kim wrote: > From 23aed4567e234b7e108c31abadb9f3a3f7d2 Mon Sep 17 00:00:00 2001 > From: Jungrae Kim > Date: Fri, 30 Oct 2020 21:23:12 +0900 > Subject: [PATCH] Input: add SW_COVER_ATTACHED and SW_EXT_PEN_ATTACHED > > SW_COVER_ATTACHED repr

Re: [PATCH v6 4/9] mm, kfence: insert KFENCE hooks for SLAB

2020-10-30 Thread Marco Elver
On Fri, 30 Oct 2020 at 03:49, Jann Horn wrote: > On Thu, Oct 29, 2020 at 2:17 PM Marco Elver wrote: > > Inserts KFENCE hooks into the SLAB allocator. > [...] > > diff --git a/mm/slab.c b/mm/slab.c > [...] > > @@ -3416,6 +3427,11 @@ static void cache_flusharray(struct kmem_cache > > *cachep, stru

Re: [PATCH] sched/fair: remove the spin_lock operations

2020-10-30 Thread Phil Auld
On Fri, Oct 30, 2020 at 10:46:21PM +0800 Hui Su wrote: > Since 'ab93a4bc955b ("sched/fair: Remove > distribute_running fromCFS bandwidth")',there is > nothing to protect between raw_spin_lock_irqsave/store() > in do_sched_cfs_slack_timer(). > > So remove it. > > Signed-off-by: Hui Su > --- > ke

Re: [PATCH v2 6/7] media: dt-bindings: media: qcom,camss: Add bindings for SDM660 camss

2020-10-30 Thread Rob Herring
On Thu, 22 Oct 2020 19:47:05 +0200, khol...@gmail.com wrote: > From: AngeloGioacchino Del Regno > > Add bindings for qcom,sdm660-camss in order to support the camera > subsystem on SDM630/660 and SDA variants. > > Signed-off-by: AngeloGioacchino Del Regno > Reviewed-by: Robert Foss > --- > Do

Re: [Y2038][time namespaces] Question regarding CLOCK_REALTIME support plans in Linux time namespaces

2020-10-30 Thread Lukasz Majewski
Hi Thomas, > Lukasz, > > On Fri, Oct 30 2020 at 11:02, Lukasz Majewski wrote: > > I do have a question regarding the Linux time namespaces in respect > > of adding support for virtualizing the CLOCK_REALTIME. > > > > According to patch description [1] and time_namespaces documentation > > [2] the

[PATCH v4 0/9] ARM: remove set_fs callers and implementation

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann Hi Christoph, Russell, This is the rebased version of my ARM set_fs patches on top of v5.10-rc1, dropping the TASK_SIZE_MAX patch but leaving everything else unchanged. I have tested the oabi-compat changes using the LTP tests for the three modified syscalls using an Armv7 k

Re: [PATCH v1 1/2] ptrace: Set PF_SUPERPRIV when checking capability

2020-10-30 Thread Jann Horn
On Fri, Oct 30, 2020 at 1:39 PM Mickaël Salaün wrote: > Commit 69f594a38967 ("ptrace: do not audit capability check when outputing > /proc/pid/stat") replaced the use of ns_capable() with > has_ns_capability{,_noaudit}() which doesn't set PF_SUPERPRIV. > > Commit 6b3ad6649a4c ("ptrace: reintroduce

Re: [PATCH v6 3/9] arm64, kfence: enable KFENCE for ARM64

2020-10-30 Thread Mark Rutland
On Thu, Oct 29, 2020 at 02:16:43PM +0100, Marco Elver wrote: > Add architecture specific implementation details for KFENCE and enable > KFENCE for the arm64 architecture. In particular, this implements the > required interface in . > > KFENCE requires that attributes for pages from its memory pool

[PATCH 4.14 ] ALSA: Corrects warning: missing braces around initializer

2020-10-30 Thread john . p . donnelly
From: John Donnelly The assignment statement of a local variable "struct hpi_pci pci = { 0 }; " is not valid for all versions of compiler. Fixes: 9c3c9d37ae1e ("ALSA: asihpi: fix iounmap in error handler") Signed-off-by: John Donnelly --- sound/pci/asihpi/hpioctl.c | 3 ++- 1 file changed, 2

[PATCH] arm64: qcom: sc7180: trogdor: Add ADC nodes and thermal zone for charger thermistor

2020-10-30 Thread Matthias Kaehlcke
From: Antony Wang Trogdor has a thermistor to monitor the temperature of the charger IC. Add the ADC (monitor) nodes and a thermal zone for this thermistor. Signed-off-by: Antony Wang [ mka: tweaked commit message ] Signed-off-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7180-trogdor

Re: [PATCH v2 2/3] dt-bindings: mfd: Add QCOM PM8008 MFD bindings

2020-10-30 Thread Rob Herring
On Thu, Oct 22, 2020 at 02:35:41PM -0700, Guru Das Srinagesh wrote: > Add device tree bindings for the driver for Qualcomm Technology Inc.'s > PM8008 MFD PMIC. > > Signed-off-by: Guru Das Srinagesh > --- > .../bindings/mfd/qcom,pm8008-irqchip.yaml | 102 > + > 1 fil

[PATCH 1/9] mm/maccess: fix unaligned copy_{from,to}_kernel_nofault

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann On machines such as ARMv5 that trap unaligned accesses, these two functions can be slow when each access needs to be emulated, or they might not work at all. Change them so that each loop is only used when both the src and dst pointers are naturally aligned. Reviewed-by: Chr

Re: [PATCH RFC v2 10/21] kasan: inline random_tag for HW_TAGS

2020-10-30 Thread Andrey Konovalov
On Wed, Oct 28, 2020 at 12:08 PM Dmitry Vyukov wrote: > > On Thu, Oct 22, 2020 at 3:19 PM Andrey Konovalov > wrote: > > > > Using random_tag() currently results in a function call. Move its > > definition to mm/kasan/kasan.h and turn it into a static inline function > > for hardware tag-based mo

[PATCH 3/9] ARM: oabi-compat: add epoll_pwait handler

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann The epoll_wait() syscall has a special version for OABI compat mode to convert the arguments to the EABI structure layout of the kernel. However, the later epoll_pwait() syscall was added in arch/arm in linux-2.6.32 without this conversion. Use the same kind of handler for bo

[PATCH 7/9] ARM: oabi-compat: rework fcntl64() emulation

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann This is one of the last users of get_fs(), and this is fairly easy to change, since the infrastructure for it is already there. The replacement here is essentially a copy of the existing fcntl64() syscall entry function. Signed-off-by: Arnd Bergmann --- arch/arm/kernel/sys

[PATCH 9/9] ARM: uaccess: remove set_fs() implementation

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann There are no remaining callers of set_fs(), so just remove it along with all associated code that operates on thread_info->addr_limit. There are still further optimizations that can be done: - In get_user(), the address check could be moved entirely into the out of line co

Re: [PATCH v2 0/6] ARM: dts: sun8i: v3s: Enable video decoder

2020-10-30 Thread Maxime Ripard
Hi! On Fri, Oct 30, 2020 at 12:06:10PM +0100, Hans Verkuil wrote: > Maxime, > > Are you OK with this series? It looks good to me. I am, you can take it. I'll merge the dt patches through arm-soc Thanks! Maxime signature.asc Description: PGP signature

[PATCH 4/9] ARM: syscall: always store thread_info->syscall

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann The system call number is used in a a couple of places, in particular ptrace, seccomp and /proc//syscall. The last one apparently never worked reliably on ARM for tasks that are not currently getting traced. Storing the syscall number in the normal entry path makes it work,

[PATCH 8/9] ARM: uaccess: add __{get,put}_kernel_nofault

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann These mimic the behavior of get_user and put_user, except for domain switching, address limit checking and handling of mismatched sizes, none of which are relevant here. To work with pre-Armv6 kernels, this has to avoid TUSER() inside of the new macros, the new approach passe

[PATCH 5/9] ARM: oabi-compat: rework epoll_wait/epoll_pwait emulation

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann The epoll_wait() system call wrapper is one of the remaining users of the set_fs() infrasturcture for Arm. Changing it to not require set_fs() is rather complex unfortunately. The approach I'm taking here is to allow architectures to override the code that copies the output t

[PATCH 6/9] ARM: oabi-compat: rework sys_semtimedop emulation

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann sys_oabi_semtimedop() is one of the last users of set_fs() on Arm. To remove this one, expose the internal code of the actual implementation that operates on a kernel pointer and call it directly after copying. There should be no measurable impact on the normal execution of t

[PATCH 2/9] ARM: traps: use get_kernel_nofault instead of set_fs()

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann ARM uses set_fs() and __get_user() to allow the stack dumping code to access possibly invalid pointers carefully. These can be changed to the simpler get_kernel_nofault(), and allow the eventual removal of set_fs(). dump_instr() will print either kernel or user space pointers

Re: [PATCH v2 1/5] dt-bindings: display: mediatek: disp: add documentation for MT8167 SoC

2020-10-30 Thread Rob Herring
On Fri, 23 Oct 2020 15:31:26 +0200, Fabien Parent wrote: > Add binding documentation for the MT8167 SoC > > Signed-off-by: Fabien Parent > Reviewed-by: Chun-Kuang Hu > --- > > Changelog: > > V2: No change > > .../devicetree/bindings/display/mediatek/mediatek,disp.txt| 4 ++-- > 1 file ch

RE: [PATCH v11 00/10] NTFS read-write driver GPL implementation by Paragon Software

2020-10-30 Thread Konstantin Komarov
From: Pali Rohár Sent: Friday, October 30, 2020 6:25 PM > To: Konstantin Komarov > Cc: linux-fsde...@vger.kernel.org; v...@zeniv.linux.org.uk; > linux-kernel@vger.kernel.org; dste...@suse.cz; aap...@suse.com; > wi...@infradead.org; rdun...@infradead.org; j...@perches.com; > m...@harmstone.com;

Re: [PATCH -next] fs: Fix memory leaks in do_renameat2() error paths

2020-10-30 Thread Qian Cai
On Fri, 2020-10-30 at 09:27 -0600, Jens Axboe wrote: > On 10/30/20 9:24 AM, Qian Cai wrote: > > We will need to call putname() before do_renameat2() returning -EINVAL > > to avoid memory leaks. > > Thanks, should mention that this isn't final by any stretch (which is > why it hasn't been posted ye

[PATCH 4.14 ] platform/x86: Corrects warning: missing braces around initializer

2020-10-30 Thread john . p . donnelly
From: John Donnelly The assignment statement of a local variable "struct tp_nvram_state s[2] = {0}; " is not valid for all versions of compilers (UEK6 on OL7). Fixes: 515ded02bc4b ("platform/x86: thinkpad_acpi: initialize tp_nvram_state variable") Signed-off-by: John Donnelly --- drivers/pl

RE: [PATCH v10 02/10] fs/ntfs3: Add initialization of super block

2020-10-30 Thread Konstantin Komarov
From: Matthew Wilcox Sent: Friday, October 23, 2020 9:25 PM > To: Konstantin Komarov > Cc: linux-fsde...@vger.kernel.org; v...@zeniv.linux.org.uk; > linux-kernel@vger.kernel.org; p...@kernel.org; dste...@suse.cz; > aap...@suse.com; rdun...@infradead.org; j...@perches.com; m...@harmstone.com; >

Re:(2) [PATCH] Input: add SW_COVER_ATTACHED and SW_EXT_PEN_ATTACHED

2020-10-30 Thread Jungrae Kim
> Hi, > > On Fri, Oct 30, 2020 at 10:15:52PM +0900, Jungrae Kim wrote: > > From 23aed4567e234b7e108c31abadb9f3a3f7d2 Mon Sep 17 00:00:00 2001 > > From: Jungrae Kim > > Date: Fri, 30 Oct 2020 21:23:12 +0900 > > Subject: [PATCH] Input: add SW_COVER_ATTACHED and SW_EXT_PEN_ATTACHED > > > > SW_C

Re: [PATCH v6 3/9] arm64, kfence: enable KFENCE for ARM64

2020-10-30 Thread Marco Elver
On Fri, 30 Oct 2020 at 16:47, Mark Rutland wrote: > > On Thu, Oct 29, 2020 at 02:16:43PM +0100, Marco Elver wrote: > > Add architecture specific implementation details for KFENCE and enable > > KFENCE for the arm64 architecture. In particular, this implements the > > required interface in . > > >

Re: [PATCH net-next] net: phy: realtek: Add support for RTL8221B-CG series

2020-10-30 Thread Andrew Lunn
On Fri, Oct 30, 2020 at 01:56:20PM +0800, Willy Liu wrote: > Realtek single-port 2.5Gbps Ethernet PHYs are list as below: > RTL8226-CG: the 1st generation 2.5Gbps single port PHY > RTL8226B-CG/RTL8221B-CG: the 2nd generation 2.5Gbps single port PHY > RTL8221B-VB-CG: the 3rd generation 2.5Gbps singl

[PATCH 4.14 v2 ] platform/x86: Corrects warning: missing braces around initializer

2020-10-30 Thread john . p . donnelly
From: John Donnelly The assignment statement of a local variable "struct tp_nvram_state s[2] = {0}; is not valid for all versions of compilers. Fixes: 515ded02bc4b ("platform/x86: thinkpad_acpi: initialize tp_nvram_state variable") Signed-off-by: John Donnelly --- drivers/platform/x86/thinkp

Re: [PATCH 4.14 ] platform/x86: Corrects warning: missing braces around initializer

2020-10-30 Thread John Donnelly
> On Oct 30, 2020, at 10:52 AM, john.p.donne...@oracle.com wrote: > > From: John Donnelly > > The assignment statement of a local variable "struct tp_nvram_state s[2] = > {0}; " > is not valid for all versions of compilers (UEK6 on OL7). > > Fixes: 515ded02bc4b ("platform/x86: thinkpad_acpi

[PATCH v2 2/2] mm/compaction: stop isolation if too many pages are isolated and we have pages to migrate.

2020-10-30 Thread Zi Yan
From: Zi Yan In isolate_migratepages_block, if we have too many isolated pages and nr_migratepages is not zero, we should try to migrate what we have without wasting time on isolating. Fixes: 1da2f328fa64 (“mm,thp,compaction,cma: allow THP migration for CMA allocations”) Suggested-by: Vlastimil

[PATCH v2 1/2] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Zi Yan
From: Zi Yan In isolate_migratepages_block, when cc->alloc_contig is true, we are able to isolate compound pages, nr_migratepages and nr_isolated did not count compound pages correctly, causing us to isolate more pages than we thought. Use thp_nr_pages to count pages. Otherwise, we might be trapp

Re: [PATCH v6 3/9] arm64, kfence: enable KFENCE for ARM64

2020-10-30 Thread Mark Rutland
On Fri, Oct 30, 2020 at 03:49:26AM +0100, Jann Horn wrote: > On Thu, Oct 29, 2020 at 2:17 PM Marco Elver wrote: > > @@ -312,6 +313,9 @@ static void __do_kernel_fault(unsigned long addr, > > unsigned int esr, > > "Ignoring spurious kernel translation fault at virtual address > > %016l

Re: [PATCH v2 1/2] init/Kconfig: Fix CPU number in LOG_CPU_MAX_BUF_SHIFT description

2020-10-30 Thread Paul Menzel
Dear Petr, Am 11.08.20 um 11:29 schrieb Paul Menzel: Currently, LOG_BUF_SHIFT defaults to 17, which is 2 ^ 17 bytes = 128 KB, and LOG_CPU_MAX_BUF_SHIFT defaults to 12, which is 2 ^ 12 bytes = 4 KB. Half of 128 KB is 64 KB, so more than 16 CPUs are required for the value to be used, as then the

Re: [RESEND PATCH v18 2/4] overlayfs: handle XATTR_NOSECURITY flag for get xattr method

2020-10-30 Thread Mark Salyzyn
On 10/30/20 8:07 AM, Miklos Szeredi wrote: On Wed, Oct 21, 2020 at 5:19 PM Mark Salyzyn wrote: Because of the overlayfs getxattr recursion, the incoming inode fails to update the selinux sid resulting in avc denials being reported against a target context of u:object_r:unlabeled:s0. Solution i

Re: [PATCH 1/4] prandom.h: add *_state variant of prandom_u32_max

2020-10-30 Thread Petr Mladek
On Sun 2020-10-25 22:48:39, Rasmus Villemoes wrote: > It is useful for test modules that make use of random numbers to allow > the exact same series of test cases to be repeated (e.g., after fixing > a bug in the code being tested). For that, the test module needs to > obtain its random numbers fro

Re: [PATCH 2/4] kselftest_module.h: unconditionally expand the KSTM_MODULE_GLOBALS() macro

2020-10-30 Thread Petr Mladek
On Sun 2020-10-25 22:48:40, Rasmus Villemoes wrote: > Two out of three users of the kselftest_module.h header > manually define the failed_tests/total_tests variables instead of > making use of the KSTM_MODULE_GLOBALS() macro. However, instead of > just replacing those definitions with an invocatio

Re: [PATCH v1 1/2] ptrace: Set PF_SUPERPRIV when checking capability

2020-10-30 Thread Mickaël Salaün
On 30/10/2020 16:47, Jann Horn wrote: > On Fri, Oct 30, 2020 at 1:39 PM Mickaël Salaün wrote: >> Commit 69f594a38967 ("ptrace: do not audit capability check when outputing >> /proc/pid/stat") replaced the use of ns_capable() with >> has_ns_capability{,_noaudit}() which doesn't set PF_SUPERPRIV.

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