Re: [PATCH 5.10 000/156] 5.10.26-rc2 review

2021-03-22 Thread Guenter Roeck
On Mon, Mar 22, 2021 at 04:19:10PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.26 release. > There are 156 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

[PATCH] drm/amd: Fix a typo in two different sentences

2021-03-22 Thread Bhaskar Chowdhury
s/defintion/definition/ .two different places. Signed-off-by: Bhaskar Chowdhury --- drivers/gpu/drm/amd/include/atombios.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/include/atombios.h b/drivers/gpu/drm/amd/include/atombios.h index c1d7b1d0

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-22 Thread Borislav Petkov
On Mon, Mar 22, 2021 at 12:37:02PM -0700, Sean Christopherson wrote: > Yes. Note, it's still true if you strike out the "too", KVM support is > completely > orthogonal to this code. The purpose of this patch is to separate out the > EREMOVE > path used for host enclaves (/dev/sgx_enclave), beca

Re: [PATCH -next] x86: Fix unused variable 'msr_val' warning

2021-03-22 Thread Ingo Molnar
* Xu Yihang wrote: > Fixes the following W=1 kernel build warning(s): > arch/x86/hyperv/hv_spinlock.c:28:16: warning: variable ‘msr_val’ set but not > used [-Wunused-but-set-variable] > unsigned long msr_val; > > As Hypervisor Top-Level Functional Specification states in chapter 7.5 > Virt

[tip: perf/urgent] lockdep: Address clang -Wformat warning printing for %hd

2021-03-22 Thread tip-bot2 for Arnd Bergmann
The following commit has been merged into the perf/urgent branch of tip: Commit-ID: 6d48b7912cc72275dc7c59ff961c8bac7ef66a92 Gitweb: https://git.kernel.org/tip/6d48b7912cc72275dc7c59ff961c8bac7ef66a92 Author:Arnd Bergmann AuthorDate:Mon, 22 Mar 2021 12:55:25 +01:00 Committ

[PATCH v1 3/6] usb: gadget: pch_udc: Revert d3cb25a12138 completely

2021-03-22 Thread Andy Shevchenko
The commit d3cb25a12138 ("usb: gadget: udc: fix spin_lock in pch_udc") obviously was not thought through and had made the situation even worse than it was before. Two changes after almost reverted it. but a few leftovers have been left as it. With this revert d3cb25a12138 completely. While at it,

[PATCH v1 4/6] usb: gadget: pch_udc: Move pch_udc_init() to satisfy kernel doc

2021-03-22 Thread Andy Shevchenko
Kernel doc and the content described by it shouldn't be teared apart. Otherwise validator is not happy: .../pch_udc.c:573: warning: expecting prototype for pch_udc_reconnect(). Prototype was for pch_udc_init() instead Fixes: 1c575d2d2e3f ("usb: gadget: pch_udc: Fix usb/gadget/pch_udc: Fix ether

[PATCH v1 6/6] usb: gadget: pch_udc: Provide a GPIO line used on Intel Minnowboard (v1)

2021-03-22 Thread Andy Shevchenko
Intel Minnowboard (v1) uses SCH GPIO line SUS7 (i.e. 12) for VBUS sense. Provide a DMI based quirk to have it's being used. Fixes: e20849a8c883 ("usb: gadget: pch_udc: Convert to use GPIO descriptors") Signed-off-by: Andy Shevchenko --- drivers/usb/gadget/udc/pch_udc.c | 71 +

[PATCH v1 1/6] usb: gadget: pch_udc: Drop unneeded cpu_to_le32() call

2021-03-22 Thread Andy Shevchenko
Either way ~0 will be in the correct byte order, hence drop unneeded cpu_to_le32() call. Moreover, it makes sparse happy, otherwise it complains: pch_udc.c:1813:27: warning: incorrect type in assignment (different base types) pch_udc.c:1813:27:expected unsigned int [usertype] dataptr pch_udc.c

[PATCH v1 5/6] usb: gadget: pch_udc: Initialize device pointer before use

2021-03-22 Thread Andy Shevchenko
During conversion to use GPIO descriptors the device pointer, which is applied to devm_gpiod_get(), is not yet initialized. Move initialization in the ->probe() in order to have it set before use. Fixes: e20849a8c883 ("usb: gadget: pch_udc: Convert to use GPIO descriptors") Signed-off-by: Andy Sh

[PATCH v1 2/6] usb: gardet: pch_udc: Check if driver is present before calling ->setup()

2021-03-22 Thread Andy Shevchenko
Since we have a separate routine for VBUS sense, the interrupt may occur before gadget driver is present. Hence, ->setup() call may oops the kernel: [ 55.245843] BUG: kernel NULL pointer dereference, address: 0010 ... [ 55.245843] EIP: pch_udc_isr.cold+0x162/0x33f ... [ 55.245843] [

Re: [PATCH v3] usb: dwc3: gadget: Prevent EP queuing while stopping transfers

2021-03-22 Thread Andy Shevchenko
On Mon, Mar 22, 2021 at 10:06 PM Wesley Cheng wrote: > > Hi Andy, > > On 3/22/2021 12:34 PM, Andy Shevchenko wrote: > > On Mon, Mar 22, 2021 at 8:49 PM Wesley Cheng wrote: > >> > >> Hi Andy, > >> > >> On 3/22/2021 5:48 AM, Andy Shevchenko wrote: > >>> On Fri, Mar 12, 2021 at 2:01 AM Wesley Cheng

Re: [PATCH] Introduced new tracing mode KCOV_MODE_UNIQUE.

2021-03-22 Thread Alexander Lochmann
On 22.03.21 13:17, Miguel Ojeda wrote: > Hi Alexander, > > On Sun, Mar 21, 2021 at 8:14 PM Alexander Lochmann > wrote: >> >> diff --git a/Documentation/dev-tools/kcov.rst >> b/Documentation/dev-tools/kcov.rst >> index d2c4c27e1702..e105ffe6b6e3 100644 >> --- a/Documentation/dev-tools/kcov.rst

Re: [PATCH v3 1/2] perf stat: Align CSV output for summary mode

2021-03-22 Thread Jiri Olsa
On Fri, Mar 19, 2021 at 03:01:55PM +0800, Jin Yao wrote: SNIP > 102107,,branch-misses,8012781751,100.00,4.15,of all branches > > This option can be enabled in perf config by setting the variable > 'stat.no-cvs-summary'. > > # perf config stat.no-cvs-summary=true > > # perf config -l >

Re: kernel projects for students

2021-03-22 Thread Jeffrey Walton
On Mon, Mar 22, 2021 at 11:37 AM Muni Sekhar wrote: > > What are some good Linux projects in kernel space for final year > computer.science engineering students? > Could someone help and share your ideas on this please. Hedging deployed cryptography. Hedging can be used to keep the state of a ma

Re: [PATCH] static_call: fix function type mismatch

2021-03-22 Thread Arnd Bergmann
On Mon, Mar 22, 2021 at 9:47 PM Peter Zijlstra wrote: > On Mon, Mar 22, 2021 at 03:32:14PM -0400, Steven Rostedt wrote: > > On Mon, 22 Mar 2021 18:06:37 +0100 > > Arnd Bergmann wrote: > > > > > From: Arnd Bergmann > > > > > > The __static_call_return0() function is declared to return a 'long', >

Re: [mm, net-next v2] mm: net: memcg accounting for TCP rx zerocopy

2021-03-22 Thread Arjun Roy
On Wed, Mar 17, 2021 at 8:21 PM Andrew Morton wrote: > > On Mon, 15 Mar 2021 18:30:03 -0700 Arjun Roy wrote: > > > From: Arjun Roy > > > > TCP zerocopy receive is used by high performance network applications > > to further scale. For RX zerocopy, the memory containing the network > > data fille

Re: [PATCH v4 18/19] coresight: sink: Add TRBE driver

2021-03-22 Thread Mathieu Poirier
On Thu, Feb 25, 2021 at 07:35:42PM +, Suzuki K Poulose wrote: > From: Anshuman Khandual > > Trace Buffer Extension (TRBE) implements a trace buffer per CPU which is > accessible via the system registers. The TRBE supports different addressing > modes including CPU virtual address and buffer m

Re: [PATCH v2] block: fix trace completion for chained bio

2021-03-22 Thread NeilBrown
On Wed, Mar 03 2021, edwardh wrote: > From: Edward Hsieh > > For chained bio, trace_block_bio_complete in bio_endio is currently called > only by the parent bio once upon all chained bio completed. > However, the sector and size for the parent bio are modified in bio_split. > Therefore, the size

Re: [PATCH v4 18/19] coresight: sink: Add TRBE driver

2021-03-22 Thread Mathieu Poirier
On Fri, Mar 19, 2021 at 11:55:10AM +, Mike Leach wrote: > HI Suzuki, > > On Fri, 19 Mar 2021 at 10:30, Suzuki K Poulose wrote: > > > > Hi Mike > > > > > On 8 Mar 2021, at 17:26, Mike Leach wrote: > > > > > > Hi Suzuki, > > > > > > On Thu, 25 Feb 2021 at 19:36, Suzuki K Poulose > > > wrote:

[PATCH] arm64: dts: imx8mq-kontron-pitx-imx8m: pass phy reset delays

2021-03-22 Thread Heiko Thiery
The TI DP83867 PHY datasheet says: T1: Post RESET stabilization time == 195us T3: Hardware configuration pins transition to output drivers == 64us T4: RESET pulse width == 1us So with a little overhead set 'reset-assert-us' to 10us (T4) and 'reset-deassert-us' to 280us (T1+T3). Signed-off-by: Hei

[PATCH, -v3] mm: Fix typos in comments

2021-03-22 Thread Ingo Molnar
* Randy Dunlap wrote: > > New version attached. Can I add your Reviewed-by? > > Sure. > Reviewed-by: Randy Dunlap -v3 attached, the only change is the addition of your Reviewed-by. This would be for -mm I suppose, if Andrew agrees too? Thanks, Ingo ==> From: Ingo

[no subject]

2021-03-22 Thread Steven Rostedt

[no subject]

2021-03-22 Thread Steven Rostedt

Re: [PATCH 1/2] KVM: x86/mmu: Ensure TLBs are flushed when yielding during GFN range zap

2021-03-22 Thread Ben Gardon
On Fri, Mar 19, 2021 at 4:20 PM Sean Christopherson wrote: > > When flushing a range of GFNs across multiple roots, ensure any pending > flush from a previous root is honored before yielding while walking the > tables of the current root. > > Note, kvm_tdp_mmu_zap_gfn_range() now intentionally ove

Re: [PATCH 2/2] KVM: x86/mmu: Ensure TLBs are flushed when yielding during NX zapping

2021-03-22 Thread Ben Gardon
On Fri, Mar 19, 2021 at 4:20 PM Sean Christopherson wrote: > > Fix two intertwined bugs in the NX huge page zapping that were introduced > by the incorporation of the TDP MMU. Because there is a unified list of > NX huge pages, zapping can encounter both TDP MMU and legacy MMU pages, > and the tw

Re: [PATCH v4 09/19] coresight: etm4x: Move ETM to prohibited region for disable

2021-03-22 Thread Mathieu Poirier
On Thu, Feb 25, 2021 at 07:35:33PM +, Suzuki K Poulose wrote: > If the CPU implements Arm v8.4 Trace filter controls (FEAT_TRF), > move the ETM to trace prohibited region using TRFCR, while disabling. > > Cc: Mathieu Poirier > Cc: Mike Leach > Cc: Anshuman Khandual > Signed-off-by: Suzuki K

Re: [PATCH] static_call: fix function type mismatch

2021-03-22 Thread Steven Rostedt
On Mon, 22 Mar 2021 22:18:17 +0100 Arnd Bergmann wrote: > I think the code works correctly on all architectures we support because > both 'int' and 'long' are returned in a register with any unused bits cleared. > It is however undefined behavior in C because 'int' and 'long' are not > compatible

[PATCH v3 3/3] drm/tilcdc: fix pixel clock setting warning message

2021-03-22 Thread Dario Binacchi
The warning message did not printed the LCD pixel clock rate but the LCD clock divisor input rate. As a consequence, the required and real pixel clock rates are now passed to the tilcdc_pclk_diff(). Signed-off-by: Dario Binacchi --- Changes in v3: - Replace calculated with requested in the warn

[PATCH v3 2/3] drm/tilcdc: fix LCD pixel clock setting

2021-03-22 Thread Dario Binacchi
The tilcdc_pclk_diff() compares the requested pixel clock rate to the real one, so passing it clk_rate instead of clk_rate / clkdiv caused it to fail even if the clk_rate was properly set. Adding the real_pclk_rate variable makes the code more readable. Signed-off-by: Dario Binacchi --- (no cha

[PATCH v3 1/3] drm/tilcdc: rename req_rate to pclk_rate

2021-03-22 Thread Dario Binacchi
The req_rate name is a little misleading, so let's rename to pclk_rate (pixel clock rate). Signed-off-by: Dario Binacchi --- (no changes since v2) Changes in v2: - The patch has been added in version 2. drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 12 ++-- 1 file changed, 6 insertions(+),

[PATCH v3 0/3] drm/tilcdc: fix LCD pixel clock setting

2021-03-22 Thread Dario Binacchi
The series was born from a patch to fix the LCD pixel clock setting. Two additional patches have been added to this. One renames a misleading variable name that was probably the cause of the bug and the other fixes a warning message. Changes in v3: - Replace calculated with requested in the war

Re: [mm, net-next v2] mm: net: memcg accounting for TCP rx zerocopy

2021-03-22 Thread Arjun Roy
On Wed, Mar 17, 2021 at 3:12 PM Johannes Weiner wrote: > > On Tue, Mar 16, 2021 at 11:05:11PM -0700, Arjun Roy wrote: > > On Tue, Mar 16, 2021 at 3:27 AM Johannes Weiner wrote: > > > > > > Hello, > > > > > > On Mon, Mar 15, 2021 at 09:16:45PM -0700, Arjun Roy wrote: > > > > From: Arjun Roy > > >

[tip: x86/microcode] x86/microcode: Check for offline CPUs before requesting new microcode

2021-03-22 Thread tip-bot2 for Otavio Pontes
The following commit has been merged into the x86/microcode branch of tip: Commit-ID: 7189b3c11903667808029ec9766a6e96de5012a5 Gitweb: https://git.kernel.org/tip/7189b3c11903667808029ec9766a6e96de5012a5 Author:Otavio Pontes AuthorDate:Fri, 19 Mar 2021 09:55:15 -07:00 Commi

Re: your mail

2021-03-22 Thread Steven Rostedt
On Mon, Mar 22, 2021 at 05:21:56PM -0400, Steven Rostedt wrote: Bah! John 'Warthog' Hawley email had those single quotes in it that I cut and pasted into the Cc list, causing the quilt mail parsing to fail, but as LKML was in the "To" part, it still sent! Take 2 -- Steve

[no subject]

2021-03-22 Thread Steven Rostedt

[no subject]

2021-03-22 Thread Steven Rostedt

Greetings!

2021-03-22 Thread Blake Arnold
Hello, I have sent you mails, but still have not received a response. Kindly get back to me for a mutual benefit transaction. Thank you. Blake Arnold

Re: [PATCH 02/11] x86: tboot: avoid Wstringop-overread-warning

2021-03-22 Thread Arnd Bergmann
On Mon, Mar 22, 2021 at 9:29 PM Ingo Molnar wrote: > * Arnd Bergmann wrote: > > From: Arnd Bergmann > This is indeed rather ugly - and the other patch that removes a debug > check seems counterproductive as well. > > Do we know how many genuine bugs -Wstringop-overread-warning has > caught or i

Re: [PATCH] fs: Improve eventpoll logging to stop indicting timerfd

2021-03-22 Thread Thomas Gleixner
Manish, On Mon, Mar 22 2021 at 10:15, Manish Varma wrote: > On Thu, Mar 18, 2021 at 6:04 AM Thomas Gleixner wrote: >> > +static atomic_t instance_count = ATOMIC_INIT(0); >> >> instance_count is misleading as it does not do any accounting of >> instances as the name suggests. >> > > Not sure if I

Re: your mail

2021-03-22 Thread Steven Rostedt
On Mon, Mar 22, 2021 at 05:36:44PM -0400, Steven Rostedt wrote: $@#@#$%%% Bah! There was another typo in the email list! Take 3 -- Steve

[PATCH 1/2] streamline_config.pl: Make spacing consistent

2021-03-22 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" As Perl code tends to have 4 space indentation, but uses tabs for every 8 spaces, make that consistent in the streamline_config.pl code. Replace all 8 spaces with a single tab. Signed-off-by: Steven Rostedt (VMware) --- scripts/kconfig/streamline_config.pl | 78

[PATCH 0/2] streamline_config.pl: Fix Perl spacing

2021-03-22 Thread Steven Rostedt
Talking with John Hawley about how vim and emacs deal with Perl files with respect to tabs and spaces, I found that some of my Perl code in the kernel had inconsistent spacing. The way emacs handles Perl by default is to use 4 spaces per indent, but make all 8 spaces into a single tab. Vim does n

[PATCH 2/2] streamline_config.pl: Add softtabstop=4 for vim users

2021-03-22 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The tab stop for Perl files is by default (at least in emacs) to be 4 spaces, where a tab is used for all 8 spaces. Add a local variable comment to make vim do the same by default, and this will help keep the file consistent in the future when others edit it via vi

Re: [PATCHv2 00/38] Convert power-supply DT bindings to YAML

2021-03-22 Thread Sebastian Reichel
Hi, On Mon, Mar 22, 2021 at 10:25:49AM -0600, Rob Herring wrote: > On Wed, Mar 17, 2021 at 7:49 AM Sebastian Reichel wrote: > > Sebastian Reichel (38): > > ARM: dts: motorola-cpcap-mapphone: Prepare for dtbs_check parsing > > dt-bindings: power: supply: cpcap-battery: Convert to DT schema form

Re: [PATCH V4] clk: imx: Fix reparenting of UARTs not associated with stdout

2021-03-22 Thread Abel Vesa
On 21-03-13 06:28:17, Adam Ford wrote: > Most if not all i.MX SoC's call a function which enables all UARTS. > This is a problem for users who need to re-parent the clock source, > because any attempt to change the parent results in an busy error > due to the fact that the clocks have been enabled

[PATCH] [v2] static_call: fix function type mismatch

2021-03-22 Thread Arnd Bergmann
From: Arnd Bergmann The __static_call_return0() function is declared to return a 'long', while it aliases a couple of functions that all return 'int'. When building with 'make W=1', gcc warns about this: kernel/sched/core.c:5420:37: error: cast between incompatible function types from 'long int

[PATCH] [v2] x86: math-emu: Fix function cast warning

2021-03-22 Thread Arnd Bergmann
From: Arnd Bergmann Building with 'make W=1', gcc points out that casting between incompatible function types can be dangerous: arch/x86/math-emu/fpu_trig.c:1638:60: error: cast between incompatible function types from ‘int (*)(FPU_REG *, u_char)’ {aka ‘int (*)(struct fpu__reg *, unsigned char

[PATCH] ftrace: shut up -Wcast-function-type warning for ftrace_ops_no_ops

2021-03-22 Thread Arnd Bergmann
From: Arnd Bergmann With 'make W=1', gcc warns about casts between incompatible function types: kernel/trace/ftrace.c:128:31: error: cast between incompatible function types from 'void (*)(long unsigned int, long unsigned int)' to 'void (*)(long unsigned int, long unsigned int, struct ftrac

[PATCH] clk: tegra: fix old-style declaration

2021-03-22 Thread Arnd Bergmann
From: Arnd Bergmann With extra warnings enabled, gcc complains about a slightly odd prototype: drivers/clk/tegra/clk-dfll.c:1380:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] 1380 | static void inline dfll_debug_init(struct tegra_dfll *td) { } Move the

Re: [PATCH 5.11 000/120] 5.11.9-rc1 review

2021-03-22 Thread Guenter Roeck
On Mon, Mar 22, 2021 at 01:26:23PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.11.9 release. > There are 120 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

[PATCH net-next] iwlwifi: fix old-style-declaration warning

2021-03-22 Thread Arnd Bergmann
From: Arnd Bergmann The correct order is 'static const', not 'const static', as seen from make W=1: drivers/net/wireless/intel/iwlwifi/mvm/rfi.c:14:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] Fixes: 21254908cbe9 ("iwlwifi: mvm: add RFI-M support") Sign

[PATCH] bpf: avoid old-style declaration warnings

2021-03-22 Thread Arnd Bergmann
From: Arnd Bergmann gcc -Wextra wants type modifiers in the normal order: kernel/bpf/bpf_lsm.c:70:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 70 | const static struct bpf_func_proto bpf_bprm_opts_set_proto = { | ^ kernel/bpf/bpf_lsm.c:91:1:

Re: [PATCH 5.10 000/156] 5.10.26-rc2 review

2021-03-22 Thread Guenter Roeck
On Mon, Mar 22, 2021 at 04:19:10PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.26 release. > There are 156 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

[PATCH] omfs: avoid gcc-10 stringop-overflow warning

2021-03-22 Thread Arnd Bergmann
From: Arnd Bergmann gcc-10 correctly points out a memcpy beyond the end of the structure it gets copied into: fs/omfs/file.c: In function 'omfs_grow_extent': cc1: warning: writing 16 bytes into a region of size 0 [-Wstringop-overflow=] In file included from fs/omfs/omfs.h:8, fro

Re: [PATCH 4.19 00/43] 4.19.183-rc1 review

2021-03-22 Thread Guenter Roeck
On Mon, Mar 22, 2021 at 01:28:14PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.183 release. > There are 43 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

Re: [PATCH 5.4 00/60] 5.4.108-rc1 review

2021-03-22 Thread Guenter Roeck
On Mon, Mar 22, 2021 at 01:27:48PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.108 release. > There are 60 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 4.14 00/43] 4.14.227-rc1 review

2021-03-22 Thread Guenter Roeck
On Mon, Mar 22, 2021 at 01:28:41PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.227 release. > There are 43 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

Re: [PATCH 4.9 00/25] 4.9.263-rc1 review

2021-03-22 Thread Guenter Roeck
On Mon, Mar 22, 2021 at 01:28:50PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.263 release. > There are 25 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 4.4 00/14] 4.4.263-rc1 review

2021-03-22 Thread Guenter Roeck
On Mon, Mar 22, 2021 at 01:28:54PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.263 release. > There are 14 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

[tip:core/entry] BUILD SUCCESS 97258ce902d1e1c396a4d7c38f6ae7085adb73c5

2021-03-22 Thread kernel test robot
allmodconfig powerpc allnoconfig i386 randconfig-a004-20210322 i386 randconfig-a003-20210322 i386 randconfig-a001-20210322 i386 randconfig-a002-20210322 i386 randconfig-a006-20210322 i386

Re: [Ksummit-discuss] RFC: create mailing list "linux-issues" focussed on issues/bugs and regressions

2021-03-22 Thread Theodore Ts'o
On Mon, Mar 22, 2021 at 08:25:15PM +0100, Thorsten Leemhuis wrote: > I agree to the last point and yeah, maybe regressions are the more > important problem we should work on – at least from the perspective of > kernel development. But from the users perspective (and > reporting-issues.rst is writt

Re: [PATCH next v1 2/3] printk: remove safe buffers

2021-03-22 Thread John Ogness
On 2021-03-22, Petr Mladek wrote: > On Mon 2021-03-22 12:16:15, John Ogness wrote: >> On 2021-03-21, Sergey Senozhatsky wrote: >> >> @@ -369,7 +70,10 @@ __printf(1, 0) int vprintk_func(const char *fmt, >> >> va_list args) >> >>* Use the main logbuf even in NMI. But avoid calling console >> >

[PATCH] mm, thp: Relax the VM_DENYWRITE constraint on file-backed THPs

2021-03-22 Thread Collin Fijalkovich
Transparent huge pages are supported for read-only non-shmem filesystems, but are only used for vmas with VM_DENYWRITE. This condition ensures that file THPs are protected from writes while an application is running (ETXTBSY). Any existing file THPs are then dropped from the page cache when a file

Re: [PATCH] ftrace: shut up -Wcast-function-type warning for ftrace_ops_no_ops

2021-03-22 Thread Steven Rostedt
On Mon, 22 Mar 2021 22:49:58 +0100 Arnd Bergmann wrote: > From: Arnd Bergmann > > With 'make W=1', gcc warns about casts between incompatible function > types: > > kernel/trace/ftrace.c:128:31: error: cast between incompatible function types > from 'void (*)(long unsigned int, long unsigned

Re: [PATCH] of: overlay: fix for_each_child.cocci warnings

2021-03-22 Thread Frank Rowand
On 3/22/21 1:21 PM, Julia Lawall wrote: > From: kernel test robot > > Function "for_each_child_of_node" should have of_node_put() before goto. > > Generated by: scripts/coccinelle/iterators/for_each_child.cocci > > Fixes: 82c2d81361ec ("coccinelle: iterators: Add for_each_child.cocci script") >

Re: [PATCH v3 4/4] ioctl_userfaultfd.2: Add write-protect mode docs

2021-03-22 Thread Peter Xu
On Fri, Mar 19, 2021 at 11:37:20PM +0100, Alejandro Colomar (man-pages) wrote: > Hi Peter, Hi, Alex, > > +generate another write-protect userfault message. > > +This is only used in conjunction with write-protect mode when both missing > > and > > "when both missing" > > both what? I modified

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-22 Thread Kai Huang
On Mon, 22 Mar 2021 22:06:45 +0100 Borislav Petkov wrote: > On Mon, Mar 22, 2021 at 12:37:02PM -0700, Sean Christopherson wrote: > > Yes. Note, it's still true if you strike out the "too", KVM support is > > completely > > orthogonal to this code. The purpose of this patch is to separate out the

Re: [PATCH v6] close_range.2: new page documenting close_range(2)

2021-03-22 Thread Stephen Kitt
On Sun, 21 Mar 2021 16:38:59 +0100, "Michael Kerrisk (man-pages)" wrote: > On 3/9/21 8:53 PM, Stephen Kitt wrote: > > On Thu, 28 Jan 2021 21:50:23 +0100, "Michael Kerrisk (man-pages)" > > wrote: > >> Thanks for your patch revision. I've merged it, and have > >> done some light editing, but I st

Re: [PATCH 02/11] x86: tboot: avoid Wstringop-overread-warning

2021-03-22 Thread Martin Sebor
On 3/22/21 2:29 PM, Ingo Molnar wrote: * Arnd Bergmann wrote: From: Arnd Bergmann gcc-11 warns about using string operations on pointers that are defined at compile time as offsets from a NULL pointer. Unfortunately that also happens on the result of fix_to_virt(), which is a compile-time c

[PATCH v4 0/4] man2: udpate mm/userfaultfd manpages to latest

2021-03-22 Thread Peter Xu
v4: - Fixed a few "subordinate clauses" (SC) cases [Alex] - Reword in ioctl_userfaultfd.2 to use bold font for the two modes referenced, so as to be clear on what is "both" referring to [Alex] v3: - Don't use "Currently", instead add "(since x.y)" mark where proper [Alex] - Always use semantic n

[PATCH v4 4/4] ioctl_userfaultfd.2: Add write-protect mode docs

2021-03-22 Thread Peter Xu
Userfaultfd write-protect mode is supported starting from Linux 5.7. Signed-off-by: Peter Xu --- man2/ioctl_userfaultfd.2 | 84 ++-- 1 file changed, 81 insertions(+), 3 deletions(-) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index d4a837

[PATCH v4 3/4] ioctl_userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs

2021-03-22 Thread Peter Xu
UFFD_FEATURE_THREAD_ID is supported in Linux 4.14. Signed-off-by: Peter Xu --- man2/ioctl_userfaultfd.2 | 5 + 1 file changed, 5 insertions(+) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index 47ae5f473..d4a8375b8 100644 --- a/man2/ioctl_userfaultfd.2 +++ b/man2/ioctl_u

[PATCH v4 1/4] userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs

2021-03-22 Thread Peter Xu
UFFD_FEATURE_THREAD_ID is supported since Linux 4.14. Signed-off-by: Peter Xu --- man2/userfaultfd.2 | 13 + 1 file changed, 13 insertions(+) diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 index e7dc9f813..555e37409 100644 --- a/man2/userfaultfd.2 +++ b/man2/userfaultfd.2 @@ -

[PATCH v4 2/4] userfaultfd.2: Add write-protect mode

2021-03-22 Thread Peter Xu
Write-protect mode is supported starting from Linux 5.7. Signed-off-by: Peter Xu --- man2/userfaultfd.2 | 104 - 1 file changed, 102 insertions(+), 2 deletions(-) diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 index 555e37409..8ad4a71b5 100644 -

Re: [PATCH 1/2] zram: fix crashes due to use of cpu hotplug multistate

2021-03-22 Thread Minchan Kim
On Mon, Mar 22, 2021 at 08:41:56PM +, Luis Chamberlain wrote: > On Mon, Mar 22, 2021 at 09:37:17AM -0700, Minchan Kim wrote: > > On Fri, Mar 19, 2021 at 07:09:24PM +, Luis Chamberlain wrote: > > > Indeed one issue is a consequence of the other but a bit better > > > description can be put t

Re: [PATCH 0/3] Apple M1 DART IOMMU driver

2021-03-22 Thread Sven Peter
Hi Mark, On Sun, Mar 21, 2021, at 19:35, Mark Kettenis wrote: > > Guess we do need to understand a little bit better how the USB DART > actually works. My hypothesis (based on our discussion on #asahi) is > that the XHCI host controller and the peripheral controller of the > DWC3 block use diff

Re: [PATCH 1/5] cifsd: add server handler and tranport layers

2021-03-22 Thread Matthew Wilcox
On Mon, Mar 22, 2021 at 02:13:40PM +0900, Namjae Jeon wrote: > +#define RESPONSE_BUF(w) ((void *)(w)->response_buf) > +#define REQUEST_BUF(w) ((void *)(w)->request_buf) Why do you do this obfuscation? > +#define RESPONSE_BUF_NEXT(w) \ > + ((void *)((w)->response_buf

Re: [PATCH v4 03/19] kvm: arm64: Hide system instruction access to Trace registers

2021-03-22 Thread Suzuki K Poulose
Will, Catalin, On 25/02/2021 19:35, Suzuki K Poulose wrote: Currently we advertise the ID_AA6DFR0_EL1.TRACEVER for the guest, when the trace register accesses are trapped (CPTR_EL2.TTA == 1). So, the guest will get an undefined instruction, if trusts the ID registers and access one of the trace

Re: [syzbot] KASAN: use-after-free Read in disk_part_iter_next (2)

2021-03-22 Thread Bart Van Assche
On 3/22/21 12:18 AM, Christoph Hellwig wrote: I've been running the reproducer on a KASAN enable VM for about 15 minutes now, but haven't been able to reproduce it. Is there a way to inject this proposed fix into the syzbot queue? diff --git a/block/partitions/core.c b/block/partitions/core.c i

Re: [PATCH v2 00/10] Rid W=1 warnings from OF

2021-03-22 Thread Rob Herring
On Thu, Mar 18, 2021 at 4:40 AM Lee Jones wrote: > > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. > > v2: > - Provided some descriptions to exported functions > > Lee Jones (10): > of: d

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-22 Thread Kai Huang
> > Btw, I probably have seen this and forgotten again so pls remind me, > is the amount of pages available for SGX use static and limited by, > I believe BIOS, or can a leakage in EPC pages cause system memory > shortage? > Yes EPC size is fixed and configured in BIOS. Leaking EPC pages may c

Re: [RFC PATCH v2 net-next 14/16] net: dsa: don't set skb->offload_fwd_mark when not offloading the bridge

2021-03-22 Thread Vladimir Oltean
On Mon, Mar 22, 2021 at 04:04:01PM +0800, DENG Qingfang wrote: > On Fri, Mar 19, 2021 at 6:49 PM Vladimir Oltean wrote: > > Why would you even want to look at the source net device for forwarding? > > I'd say that if dp->bridge_dev is NULL in the xmit function, you certainly > > want to bypass add

Re: [PATCH v4 05/19] kvm: arm64: Disable guest access to trace filter controls

2021-03-22 Thread Suzuki K Poulose
Hi Marc, On 25/02/2021 19:35, Suzuki K Poulose wrote: Disable guest access to the Trace Filter control registers. We do not advertise the Trace filter feature to the guest (ID_AA64DFR0_EL1: TRACE_FILT is cleared) already, but the guest can still access the TRFCR_EL1 unless we trap it. This will

Re: [PATCH 1/2] mtd: spi-nor: sfdp: save a copy of the SFDP data

2021-03-22 Thread Michael Walle
Am 2021-03-22 19:42, schrieb Pratyush Yadav: On 22/03/21 04:32PM, Michael Walle wrote: Am 2021-03-22 15:21, schrieb Pratyush Yadav: > On 18/03/21 10:24AM, Michael Walle wrote: > > + > > + sfdp->num_dwords = DIV_ROUND_UP(sfdp_size, sizeof(*sfdp->dwords)); > > The SFDP spec says that Parameter

[PATCH] hfs/hfsplus: use WARN_ON for sanity check

2021-03-22 Thread Arnd Bergmann
From: Arnd Bergmann gcc warns about a couple of instances in which a sanity check exists but the author wasn't sure how to react to it failing, which makes it look like a possible bug: fs/hfsplus/inode.c: In function 'hfsplus_cat_read_inode': fs/hfsplus/inode.c:503:37: error: suggest braces arou

Re: [PATCH v2 01/18] vfs: add miscattr ops

2021-03-22 Thread Darrick J. Wong
On Mon, Mar 22, 2021 at 03:48:59PM +0100, Miklos Szeredi wrote: > There's a substantial amount of boilerplate in filesystems handling > FS_IOC_[GS]ETFLAGS/ FS_IOC_FS[GS]ETXATTR ioctls. > > Also due to userspace buffers being involved in the ioctl API this is > difficult to stack, as shown by overl

Re: [PATCH 2/2] mm/vmalloc: Use kvmalloc to allocate the table of pages

2021-03-22 Thread Uladzislau Rezki
On Mon, Mar 22, 2021 at 07:38:20PM +, Matthew Wilcox (Oracle) wrote: > If we're trying to allocate 4MB of memory, the table will be 8KiB in size > (1024 pointers * 8 bytes per pointer), which can usually be satisfied > by a kmalloc (which is significantly faster). Instead of changing this > op

[PATCH] x86/mce: Add Skylake quirk for patrol scrub reported errors

2021-03-22 Thread Tony Luck
From: Youquan Song Skylake has a mode where the system administrator can use a BIOS setup option to request that the memory controller report uncorrected errors found by the patrol scrubber as corrected. This results in them being signalled using CMCI, which is less disruptive than a machine che

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-22 Thread Borislav Petkov
On Tue, Mar 23, 2021 at 11:06:43AM +1300, Kai Huang wrote: > This path is called by host SGX driver only, so yes this leaking is done by > host enclaves only. Yes, so I was told. > This patch is purpose is to break EREMOVE out of sgx_free_epc_page() so > virtual > EPC code can use sgx_free_epc_p

Re: [PATCH] scsi: bfa: Fix a typo in two places

2021-03-22 Thread Randy Dunlap
On 3/22/21 1:58 PM, Bhaskar Chowdhury wrote: > > s/defintions/definitions/ two different places. > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > drivers/scsi/bfa/bfa_fc.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/scsi/bfa/b

Re: [PATCH V4 06/10] x86/fault: Adjust WARN_ON for PKey fault

2021-03-22 Thread Ira Weiny
On Mon, Mar 22, 2021 at 09:05:43AM -0700, Sean Christopherson wrote: > On Sun, Mar 21, 2021, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > PKey faults may now happen on kernel mappings if the feature is enabled. > > Remove the warning in the fault path if PKS is enabled. > > When/why ca

Re: [PATCH] drm/amd: Fix a typo in two different sentences

2021-03-22 Thread Randy Dunlap
On 3/22/21 2:06 PM, Bhaskar Chowdhury wrote: > > s/defintion/definition/ .two different places. > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > drivers/gpu/drm/amd/include/atombios.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers

[PATCH] tracing: Fix various typos in comments

2021-03-22 Thread Ingo Molnar
Fix ~59 single-word typos in the tracing code comments. Signed-off-by: Ingo Molnar Cc: Steven Rostedt Cc: linux-kernel@vger.kernel.org --- arch/microblaze/include/asm/ftrace.h | 2 +- arch/nds32/kernel/ftrace.c | 2 +- arch/powerpc/include/asm/ftrace.h| 4 ++-- arch/sh/kernel

[PATCH v3] mmc: sdhci-of-dwcmshc: add ACPI support for BlueField-3 SoC

2021-03-22 Thread Liming Sun
This commit adds ACPI support in the sdhci-of-dwcmshc driver for BlueField-3 SoC. It has changes to only use the clock hierarchy for Deviec Tree since the clk is not supported by ACPI. Instead, ACPI can define 'clock-frequency' which is parsed by existing sdhci_get_property(). This clock value will

RE: [PATCH v2] mmc: sdhci-of-dwcmshc: add ACPI support for BlueField-3 SoC

2021-03-22 Thread Liming Sun
> -Original Message- > From: Ulf Hansson > Sent: Monday, March 22, 2021 5:51 AM > To: Liming Sun > Cc: Adrian Hunter ; Khalil Blaiech > ; linux-mmc ; Linux > Kernel Mailing List > Subject: Re: [PATCH v2] mmc: sdhci-of-dwcmshc: add ACPI support for > BlueField-3 SoC > > On Fri, 19 Mar 2

Re: [PATCH v4 15/19] dts: bindings: Document device tree bindings for ETE

2021-03-22 Thread Suzuki K Poulose
On 22/03/2021 17:28, Rob Herring wrote: On Mon, Mar 22, 2021 at 10:53 AM Suzuki K Poulose wrote: Hi Rob On 06/03/2021 21:06, Rob Herring wrote: On Thu, Feb 25, 2021 at 07:35:39PM +, Suzuki K Poulose wrote: Document the device tree bindings for Embedded Trace Extensions. ETE can be conne

Re: [PATCH 02/11] x86: tboot: avoid Wstringop-overread-warning

2021-03-22 Thread Arnd Bergmann
On Mon, Mar 22, 2021 at 11:09 PM Martin Sebor wrote: > On 3/22/21 2:29 PM, Ingo Molnar wrote: > > * Arnd Bergmann wrote: > > > > I.e. the real workaround might be to turn off the > > -Wstringop-overread-warning, > > until GCC-11 gets fixed? > > In GCC 10 -Wstringop-overread is a subset of -Wstri

Re: [PATCH v2 10/18] xfs: convert to miscattr

2021-03-22 Thread Darrick J. Wong
On Mon, Mar 22, 2021 at 03:49:08PM +0100, Miklos Szeredi wrote: > Use the miscattr API to let the VFS handle locking, permission checking and > conversion. > > Signed-off-by: Miklos Szeredi > Cc: Darrick J. Wong > --- > fs/xfs/libxfs/xfs_fs.h | 4 - > fs/xfs/xfs_ioctl.c | 316

Re: [PATCH v2 18/18] vfs: remove unused ioctl helpers

2021-03-22 Thread Darrick J. Wong
On Mon, Mar 22, 2021 at 03:49:16PM +0100, Miklos Szeredi wrote: > Remove vfs_ioc_setflags_prepare(), vfs_ioc_fssetxattr_check() and > simple_fill_fsxattr(), which are no longer used. > > Signed-off-by: Miklos Szeredi Woo hoo, so much boilerplate goes away! Reviewed-by: Darrick J. Wong --D >

  1   2   3   4   5   6   7   8   9   10   >