[PATCH] dmaengine: stm32-dmamux: Fix runtime PM imbalance on error

2020-05-24 Thread Dinghao Liu
In stm32_dmamux_route_allocate(), pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. In stm32_dmamux_probe(), when platform_get_resource() returns an error

Re: KASAN: use-after-free Read in uif_close

2020-05-24 Thread syzbot
syzbot has bisected this bug to: commit 32ec783ae19d48084b893cc54747fed37b07eb0c Author: Arnd Bergmann Date: Wed Apr 8 19:02:57 2020 + firmware: imx: fix compile-testing bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=15b2297210 start commit: c11d28ab Add

Re: [PATCHv2 1/2] optee: do drivers initialization before and after tee-supplicant run

2020-05-24 Thread Jens Wiklander
Hi Maxim, On Thu, May 21, 2020 at 8:47 AM Maxim Uvarov wrote: > > Some drivers (like ftpm) can operate only after tee-supplicant > runs becase of tee-supplicant provides things like storage > services. This patch splits probe of non tee-supplicant dependable > drivers to early stage, and after

Re: [PATCH v2 04/18] nitro_enclaves: Init PCI device driver

2020-05-24 Thread Greg KH
On Sat, May 23, 2020 at 10:25:25PM +0200, Alexander Graf wrote: > Hey Greg, > > On 22.05.20 09:04, Greg KH wrote: > > > > On Fri, May 22, 2020 at 09:29:32AM +0300, Andra Paraschiv wrote: > > > +/** > > > + * ne_setup_msix - Setup MSI-X vectors for the PCI device. > > > + * > > > + * @pdev: PCI

Re: arm64: Register modification during syscall entry/exit stop

2020-05-24 Thread Keno Fischer
Just ran into this issue again, with what I think may be most compelling example yet why this is problematic: The tracee incurred a signal, we PTRACE_SYSEMU'd to the rt_sigreturn, which the tracer tried to emulate by applying the state from the signal frame. However, the PTRACE_SYSEMU stop is a

Re: [PATCH v2] ALSA: line6: add hw monitor volume control for POD HD500

2020-05-24 Thread Takashi Iwai
On Sat, 23 May 2020 19:49:57 +0200, Vasily Khoruzhick wrote: > > Add hw monitor volume control for POD HD500. The same change may > work for HD500X but I don't have it to test. > > Signed-off-by: Vasily Khoruzhick > --- > v2: clamp volume value to [0, ARRAY_SIZE() -1] in >

Re: [PATCH v2 1/2] drivers: provide devm_platform_request_irq()

2020-05-24 Thread Markus Elfring
> It will call devm_request_irq() after platform_get_irq() function > in many drivers, sometimes, it is not right for the error handling > of these two functions in some drivers. so provide this function > to simplify the driver. I recommend to improve also this change description. How do you

My Dear in the lord

2020-05-24 Thread Mrs.A.Mina
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politicians who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in year February 2010, During his lifetime he deposited

Re: [PATCH 0/7] Record the mm_struct in the page table pages

2020-05-24 Thread Mike Rapoport
On Tue, Apr 28, 2020 at 06:51:26PM -0700, Matthew Wilcox wrote: > On Wed, Apr 29, 2020 at 03:26:24AM +0300, Kirill A. Shutemov wrote: > > On Tue, Apr 28, 2020 at 12:44:42PM -0700, Matthew Wilcox wrote: > > > From: "Matthew Wilcox (Oracle)" > > > > > > Pages which are in use as page tables have

Re: [PATCH] proc/fd: Remove the initialization of variables in seq_show()

2020-05-24 Thread Markus Elfring
> The variables{files, file} will definitely be assigned, I find an other specification nicer for these identifiers. > so we don't need to initialize them. I suggest to recheck programming concerns around the handling of the null pointer for the variable “file”.

Re: [PATCH v2] Makefile: support compressed debug info

2020-05-24 Thread Sedat Dilek
On Sun, May 24, 2020 at 5:57 AM Masahiro Yamada wrote: > > On Fri, May 22, 2020 at 6:57 AM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > > On Wed, May 20, 2020 at 7:48 PM Masahiro Yamada > > wrote: > > > > > > > Suggested-by: Fangrui Song > > > > > > > > > Suggested-by ->

Re: KASAN: use-after-free Read in uif_close

2020-05-24 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "syzbot" > An: "Arnd Bergmann" , "daniel baluta" , > "festevam" , "Greg > Kroah-Hartman" , "kernel" > , "linux-arm-kernel" > , "linux-imx" , > "linux-kernel" , > "linux-mtd" , li...@rempel-privat.de, "Miquel > Raynal" , > "richard" , "Sascha Hauer" , >

[PATCH] drivers/irqchip: Remove function callback casts

2020-05-24 Thread Oscar Carter
In an effort to enable -Wcast-function-type in the top-level Makefile to support Control Flow Integrity builds, remove all the function callback casts. To do this, modify the IRQCHIP_ACPI_DECLARE macro initializing the acpi_probe_entry struct directly instead of use the existent macro

Re: [PATCH 1/3 RESEND] sched: Remove __rcu annotation from cred pointer

2020-05-24 Thread Amol Grover
On Thu, Apr 02, 2020 at 11:26:38AM +0530, Amol Grover wrote: > task_struct::cred (subjective credentials) is *always* used > task-synchronously, hence, does not require RCU semantics. > > task_struct::real_cred (objective credentials) can be used in > RCU context and its __rcu annotation is

[PATCH] staging: rtl8188eu: clean up some declarations

2020-05-24 Thread Michael Straube
Clean up some array declarations in phy_iq_calibrate() to reduce indentation and clear line over 80 characters checkpatch warnings. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/phy.c | 33 +++-- 1 file changed, 17 insertions(+), 16 deletions(-) diff

Re: [PATCH v13 1/3] dt-bindings: i2c: npcm7xx: add NPCM I2C controller

2020-05-24 Thread Tali Perry
Hi Rob, On Sat, May 23, 2020 at 1:47 AM Rob Herring wrote: > > On Fri, May 22, 2020 at 4:42 PM Rob Herring wrote: > > > > On Fri, 22 May 2020 14:33:10 +0300, Tali Perry wrote: > > > Added device tree binding documentation for Nuvoton BMC > > > NPCM I2C controller. > > > > > > Signed-off-by:

Re: [PATCH v2 3/3] x86/boot/compressed: get rid of GOT fixup code

2020-05-24 Thread Ard Biesheuvel
On Sat, 23 May 2020 at 17:18, Arvind Sankar wrote: > > On Sat, May 23, 2020 at 02:00:21PM +0200, Ard Biesheuvel wrote: > > In a previous patch, we have eliminated GOT entries from the decompressor > > binary and added an assertion that the .got section is empty. This means > > that the GOT fixup

Re: [PATCH] staging: rtl8188eu: clean up some declarations

2020-05-24 Thread Joe Perches
On Sun, 2020-05-24 at 10:27 +0200, Michael Straube wrote: > Clean up some array declarations in phy_iq_calibrate() to reduce > indentation and clear line over 80 characters checkpatch warnings. Better still would be to mark these as static const and also mark the functions that use them to take

[PATCH v3 0/3] vmalloc kernel mapping and relocatable kernel

2020-05-24 Thread Alexandre Ghiti
This patchset originally implemented relocatable kernel support but now also moves the kernel mapping into the vmalloc zone. The first patch explains why we need to move the kernel into vmalloc zone (instead of memcpying it around). That patch should ease KASLR implementation a lot. The second

[PATCH v3 1/3] riscv: Move kernel mapping to vmalloc zone

2020-05-24 Thread Alexandre Ghiti
This is a preparatory patch for relocatable kernel. The kernel used to be linked at PAGE_OFFSET address and used to be loaded physically at the beginning of the main memory. Therefore, we could use the linear mapping for the kernel mapping. But the relocated kernel base address will be different

[PATCH v3 2/3] riscv: Introduce CONFIG_RELOCATABLE

2020-05-24 Thread Alexandre Ghiti
This config allows to compile the kernel as PIE and to relocate it at any virtual address at runtime: this paves the way to KASLR and to 4-level page table folding at runtime. Runtime relocation is possible since relocation metadata are embedded into the kernel. Note that relocating at runtime

[PATCH v3 3/3] arch, scripts: Add script to check relocations at compile time

2020-05-24 Thread Alexandre Ghiti
Relocating kernel at runtime is done very early in the boot process, so it is not convenient to check for relocations there and react in case a relocation was not expected. Powerpc architecture has a script that allows to check at compile time for such unexpected relocations: extract the common

Re: [PATCH v2] media: s3c-camif: Fix missing disable in tegra_adma_probe()

2020-05-24 Thread Markus Elfring
> "pm_runtime_enable()" was not handled by "pm_runtime_disable()" > after a call of the function “pm_runtime_get_sync()” failed. > Thus move the jump target “err_pm” before calling function > "calling pm_runtime_disable()". I find such a change description still improvable (also according to the

[PATCH 0/8] Introduce sv48 support

2020-05-24 Thread Alexandre Ghiti
This patchset implements sv48 support at runtime. The kernel will try to boot with 4-level page table and will fallback to 3-level if the HW does not support it.

[PATCH 1/8] riscv: Get rid of compile time logic with MAX_EARLY_MAPPING_SIZE

2020-05-24 Thread Alexandre Ghiti
There is no need to compare at compile time MAX_EARLY_MAPPING_SIZE value with PGDIR_SIZE since MAX_EARLY_MAPPING_SIZE is set to 128MB which is less than PGDIR_SIZE that is equal to 1GB: that allows to simplify early_pmd definition. Signed-off-by: Alexandre Ghiti Reviewed-by: Anup Patel

[PATCH 2/8] riscv: Allow to dynamically define VA_BITS

2020-05-24 Thread Alexandre Ghiti
With 4-level page table folding at runtime, we don't know at compile time the size of the virtual address space so we must set VA_BITS dynamically so that sparsemem reserves the right amount of memory for struct pages. Signed-off-by: Alexandre Ghiti Reviewed-by: Anup Patel Reviewed-by: Palmer

[PATCH 3/8] riscv: Simplify MAXPHYSMEM config

2020-05-24 Thread Alexandre Ghiti
Either the user specifies maximum physical memory size of 2GB or the user lives with the system constraint which is 1/4th of maximum addressable memory in Sv39 MMU mode (i.e. 128GB) for now. Signed-off-by: Alexandre Ghiti Reviewed-by: Anup Patel --- arch/riscv/Kconfig | 20 ++--

[PATCH 4/8] riscv: Prepare ptdump for vm layout dynamic addresses

2020-05-24 Thread Alexandre Ghiti
This is a preparatory patch for sv48 support that will introduce dynamic PAGE_OFFSET. Dynamic PAGE_OFFSET implies that all zones (vmalloc, vmemmap, fixaddr...) whose addresses depend on PAGE_OFFSET become dynamic and can't be used to statically initialize the array used by ptdump to identify the

[PATCH 5/8] riscv: Implement sv48 support

2020-05-24 Thread Alexandre Ghiti
By adding a new 4th level of page table, give the possibility to 64bit kernel to address 2^48 bytes of virtual address: in practice, that roughly offers ~160TB of virtual address space to userspace and allows up to 64TB of physical memory. If the underlying hardware does not support sv48, we will

[PATCH] workqueue: Fix double kfree(rescuer) in destroy_workqueue()

2020-05-24 Thread qiang.zhang
From: Zhang Qiang When destroy_workqueue if rescuer worker exist,wq->rescuer pointer be kfree. if sanity checks passed. the func call_rcu(>rcu, rcu_free_wq) will be called if the wq->flags & WQ_UNBOUND is false,in rcu_free_wq func wq->rescuer pointer was kfree again. Signed-off-by: Zhang Qiang

[PATCH 6/8] riscv: Allow user to downgrade to sv39 when hw supports sv48

2020-05-24 Thread Alexandre Ghiti
This is made possible by using the mmu-type property of the cpu node of the device tree. By default, the kernel will boot with 4-level page table if the hw supports it but it can be interesting for the user to select 3-level page table as it is less memory consuming and faster since it requires

[PATCH] staging/rtl8192e: Remove function callback casts

2020-05-24 Thread Oscar Carter
In an effort to enable -Wcast-function-type in the top-level Makefile to support Control Flow Integrity builds, remove all the function callback casts. To do this modify the function prototypes accordingly. Signed-off-by: Oscar Carter --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 24

[PATCH 7/8] riscv: Use pgtable_l4_enabled to output mmu type in cpuinfo

2020-05-24 Thread Alexandre Ghiti
Now that the mmu type is determined at runtime using SATP characteristic, use the global variable pgtable_l4_enabled to output mmu type of the processor through /proc/cpuinfo instead of relying on device tree infos. Signed-off-by: Alexandre Ghiti Reviewed-by: Anup Patel Reviewed-by: Palmer

[PATCH 8/8] riscv: Explicit comment about user virtual address space size

2020-05-24 Thread Alexandre Ghiti
Define precisely the size of the user accessible virtual space size for sv32/39/48 mmu types and explain why the whole virtual address space is split into 2 equal chunks between kernel and user space. Signed-off-by: Alexandre Ghiti Reviewed-by: Anup Patel Reviewed-by: Palmer Dabbelt ---

Re: [PATCH] MIPS: DTS: Only build subdir of current platform

2020-05-24 Thread Thomas Bogendoerfer
On Thu, May 21, 2020 at 10:15:06AM +0800, Tiezhu Yang wrote: > Add config check in Makefile to only build the subdir of current platform. > > E.g. without this patch: > > AR arch/mips/built-in.a > AR arch/mips/boot/dts/brcm/built-in.a > AR

Re: [PATCH V3 3/8] clk: qcom: Add A53 PLL support for ipq6018 devices

2020-05-24 Thread Sivaprakash Murugesan
On 5/15/2020 2:10 AM, Stephen Boyd wrote: Quoting Sivaprakash Murugesan (2020-04-22 03:44:33) On 4/22/2020 2:30 PM, Stephen Boyd wrote: Quoting Sivaprakash Murugesan (2020-04-13 19:55:17) diff --git a/drivers/clk/qcom/a53-pll.c b/drivers/clk/qcom/a53-pll.c index 45cfc57..a95351c 100644 ---

Re: [PATCH V4 7/8] mailbox: qcom: Add ipq6018 apcs compatible

2020-05-24 Thread Sivaprakash Murugesan
Hi Bjorn, On 5/13/2020 1:49 AM, Bjorn Andersson wrote: On Sun 03 May 23:20 PDT 2020, Sivaprakash Murugesan wrote: The Qualcomm ipq6018 has apcs block, add compatible for the same. Also, the apcs provides a clock controller functionality similar to msm8916 but the clock driver is different.

Re: [PATCH V4 5/8] clk: qcom: Add ipq apss clock controller

2020-05-24 Thread Sivaprakash Murugesan
On 5/13/2020 1:42 AM, Bjorn Andersson wrote: On Sun 03 May 23:20 PDT 2020, Sivaprakash Murugesan wrote: The CPU on Qualcomm ipq platform is clocked primarily by a aplha PLL and xo which are connected to a mux and enable block. Add support for the mux and enable block which feeds the CPU on

Re: [PATCH V4 2/8] dt-bindings: clock: Add schema for QCOM IPQ apss pll

2020-05-24 Thread Sivaprakash Murugesan
On 5/13/2020 1:26 AM, Bjorn Andersson wrote: On Sun 03 May 23:20 PDT 2020, Sivaprakash Murugesan wrote: Add dt-binding for apss pll found on QCOM IPQ platforms Signed-off-by: Sivaprakash Murugesan This seems quite similar to the existing qcom,a53pll binding, can't you just describe both

[PATCH 0/2] drivers/phy/ti: Constify structs

2020-05-24 Thread Rikard Falkeborn
Constify some static structs that are not modified in order to allow the compiler to put them in read-only memory. Rikard Falkeborn (2): phy: ti: am654-serdes: Constify regmap_config phy: ti: j721e-wiz: Constify structs drivers/phy/ti/phy-am654-serdes.c | 2 +-

[PATCH 1/2] phy: ti: am654-serdes: Constify regmap_config

2020-05-24 Thread Rikard Falkeborn
regmap_config is not modified and can be made static to allow the compiler to put it in read-only memory. Before: textdata bss dec hex filename 123283644 64 160363ea4 drivers/phy/ti/phy-am654-serdes.o After: textdata bss dec hex filename

[PATCH 2/2] phy: ti: j721e-wiz: Constify structs

2020-05-24 Thread Rikard Falkeborn
clk_div_table and wiz_regmap_config are not modified and can therefore be made const to allow the compiler to put them in read-only memory. Before: textdata bss dec hex filename 202657044 64 273736aed drivers/phy/ti/phy-j721e-wiz.o After: textdata

Re: [PATCHSET v2 0/12] Add support for async buffered reads

2020-05-24 Thread Chris Panayis
Yes! Jens & Team! Yes! My code has never looked so beautiful, been so efficient and run so well since switching to io_uring/async awesome-ness.. Really, really is a game-changer in terms of software design, control, performance, expressiveness... so many levels. Really, really great work!

Re: [RFC PATCH v2 1/3] printk: Add function to set console to preferred console's driver

2020-05-24 Thread Daniel Vetter
On Wed, May 13, 2020 at 7:35 AM Sergey Senozhatsky wrote: > > On (20/04/30 19:14), Alper Nebi Yasak wrote: > [..] > > +int update_console_to_preferred(void) > > +{ > > + struct console_cmdline *c = NULL; > > + struct console *con = NULL; > > + struct console *tmp = NULL; > > + > > +

[PATCH V5 2/8] dt-bindings: clock: add ipq6018 a53 pll compatible

2020-05-24 Thread Sivaprakash Murugesan
cpus on ipq6018 are clocked by a53 pll, add device compatible for a53 pll found on ipq6018 devices. Signed-off-by: Sivaprakash Murugesan --- [V5] * Addressed Bjorn's review comment. now the a53 dt-binding represents ipq a53 pll as well. .../devicetree/bindings/clock/qcom,a53pll.yaml

[PATCH V5 0/8] Add APSS clock controller support for IPQ6018

2020-05-24 Thread Sivaprakash Murugesan
The CPU on Qualcomm's IPQ6018 devices are primarily fed by APSS PLL and XO, these are connected to a clock mux and enable block. This patch series adds support for these clocks and inturn enables clocks required for CPU freq. [V5] * Addressed Bjorn comments on apss clk and dt-bindings * Patch

[PATCH V5 8/8] arm64: dts: ipq6018: Add a53 pll and apcs clock

2020-05-24 Thread Sivaprakash Murugesan
add support for apps pll and apcs clock. Signed-off-by: Sivaprakash Murugesan --- [V5] * changed compatible to match the bindings arch/arm64/boot/dts/qcom/ipq6018.dtsi | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi

[PATCH V5 1/8] dt-bindings: mailbox: Add YAML schemas for QCOM APCS global block

2020-05-24 Thread Sivaprakash Murugesan
Qualcomm APCS global block provides a bunch of generic properties which are required in a device tree. Add YAML schema for these properties. Reviewed-by: Rob Herring Signed-off-by: Sivaprakash Murugesan --- .../bindings/mailbox/qcom,apcs-kpss-global.txt | 88 --

[PATCH V5 5/8] clk: qcom: Add ipq6018 apss clock controller

2020-05-24 Thread Sivaprakash Murugesan
The CPU on Qualcomm ipq6018 devices are clocked primarily by a aplha PLL and xo which are connected to a mux and enable block. Add support for the mux and enable block which feeds the CPU on ipq6018 devices. Signed-off-by: Sivaprakash Murugesan --- [V5] * Addressed Bjorn's review comments,

[PATCH V5 7/8] mailbox: qcom: Add ipq6018 apcs compatible

2020-05-24 Thread Sivaprakash Murugesan
The Qualcomm ipq6018 has apcs block, add compatible for the same. Also, the apcs provides a clock controller functionality similar to msm8916 but the clock driver is different. Create a child platform device based on the apcs compatible for the clock controller functionality. Signed-off-by:

[PATCH V5 3/8] clk: qcom: Add ipq apss pll driver

2020-05-24 Thread Sivaprakash Murugesan
The CPUs on Qualcomm ipq based devices are clocked by an alpha PLL. Add support for the apss pll found on ipq based devices which can support CPU frequencies above 1Ghz. Signed-off-by: Sivaprakash Murugesan --- drivers/clk/qcom/Kconfig| 8 drivers/clk/qcom/Makefile | 1 +

[PATCH V5 4/8] clk: qcom: Add DT bindings for ipq6018 apss clock controller

2020-05-24 Thread Sivaprakash Murugesan
add dt-binding for ipq6018 apss clock controller Signed-off-by: Sivaprakash Murugesan --- include/dt-bindings/clock/qcom,apss-ipq.h | 12 1 file changed, 12 insertions(+) create mode 100644 include/dt-bindings/clock/qcom,apss-ipq.h diff --git

[PATCH V5 6/8] dt-bindings: mailbox: Add dt-bindings for ipq6018 apcs global block

2020-05-24 Thread Sivaprakash Murugesan
Add dt-bindings for ipq6018 mailbox driver Reviewed-by: Rob Herring Signed-off-by: Sivaprakash Murugesan --- .../bindings/mailbox/qcom,apcs-kpss-global.yaml | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git

[PATCH] nios2: enable HAVE_COPY_THREAD_TLS, switch to kernel_clone_args

2020-05-24 Thread Christian Brauner
This is part of a larger series that aims at getting rid of the copy_thread()/copy_thread_tls() split that makes the process creation codepaths in the kernel more convoluted and error-prone than they need to be. I'm converting all the remaining arches that haven't yet switched and am collecting

[tip:x86/timers] BUILD SUCCESS bd35c77e32e4359580207891c0f7a438ad4b42df

2020-05-24 Thread kbuild test robot
randconfig-a014-20200521 i386 randconfig-a013-20200524 i386 randconfig-a015-20200524 i386 randconfig-a012-20200524 i386 randconfig-a011-20200524 i386 randconfig-a016-20200524 i386

[PATCH v2 1/2] staging: rtl8188eu: clean up some declarations

2020-05-24 Thread Michael Straube
Clean up some array declarations in phy_iq_calibrate() to reduce indentation and clear line over 80 characters checkpatch warnings. Signed-off-by: Michael Straube --- v1 -> v2 Added patch that makes arrays static const. drivers/staging/rtl8188eu/hal/phy.c | 33 +++-- 1

[PATCH v2 2/2] staging: rtl8188eu: make some arrays static const

2020-05-24 Thread Michael Straube
Make some arrays in phy_iq_calibrate() static const and adjust the functions that take these arrays as parameters accordingly. Reduces object file size by 84 bytes (GCC 9.3.1 x86_64). Suggested-by: Joe Perches Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/phy.c | 21

Re: [PATCH -next] pwm: pca9685: Remove set but not used variable 'pwm'

2020-05-24 Thread Uwe Kleine-König
On Sat, May 23, 2020 at 08:24:23PM -0400, Sven Van Asbroeck wrote: > Hi Uwe, > > On Sat, May 23, 2020 at 4:17 PM Uwe Kleine-König > wrote: > > > > Is this patch still relevant? > > A slightly different version of this patch has already landed in > mainline. Clemens Gruber had > relevant

KASAN: use-after-free Read in evdev_cleanup

2020-05-24 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:c11d28ab Add linux-next specific files for 20200522 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=14f5444110 kernel config: https://syzkaller.appspot.com/x/.config?x=3f6dbdea4159fb66 dashboard

KASAN: use-after-free Read in joydev_cleanup

2020-05-24 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:c11d28ab Add linux-next specific files for 20200522 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1587269a10 kernel config: https://syzkaller.appspot.com/x/.config?x=3f6dbdea4159fb66 dashboard

Re: KVM broken after suspend in most recent kernels.

2020-05-24 Thread Brad Campbell
On 24/5/20 12:50 pm, Brad Campbell wrote: G'day all. Machine is a Macbook Pro Retina ~ 2014. Kernels are always vanilla kernel and compiled on the machine. No additional patches. vendor_id    : GenuineIntel cpu family    : 6 model    : 69 model name    : Intel(R) Core(TM) i5-4278U CPU

Re: [PATCH v1 07/25] lockdep: Add preemption disabled assertion API

2020-05-24 Thread Sebastian A. Siewior
On 2020-05-24 00:41:32 [+0200], Peter Zijlstra wrote: > Because...? /me rummages around.. Ah you're proposing sticking this in > seqcount itself and then header hell. > > Moo.. ok I'll go have another look on Monday. if you have a look on Monday you might want to start with the patch at the

Re: KASAN: use-after-free Read in uif_close

2020-05-24 Thread Arnd Bergmann
On Sun, May 24, 2020 at 10:09 AM Richard Weinberger wrote: > > - Ursprüngliche Mail - > > Von: "syzbot" > > An: "Arnd Bergmann" , "daniel baluta" > > , "festevam" , "Greg > > Kroah-Hartman" , "kernel" > > , "linux-arm-kernel" > > , "linux-imx" , > > "linux-kernel" , > > "linux-mtd" ,

Re: [PATCH v2 2/2] staging: rtl8188eu: make some arrays static const

2020-05-24 Thread Joe Perches
On Sun, 2020-05-24 at 12:15 +0200, Michael Straube wrote: > Make some arrays in phy_iq_calibrate() static const and adjust > the functions that take these arrays as parameters accordingly. > Reduces object file size by 84 bytes (GCC 9.3.1 x86_64). You could also do

Re: [PATCH] mm/compaction: avoid VM_BUG_ON(PageSlab()) in page_mapcount()

2020-05-24 Thread Konstantin Khlebnikov
On 24/05/2020 04.01, Hugh Dickins wrote: On Wed, 13 May 2020, Konstantin Khlebnikov wrote: Function isolate_migratepages_block() runs some checks out of lru_lock when choose pages for migration. After checking PageLRU() it checks extra page references by comparing page_count() and

Re: KASAN: use-after-free Read in evdev_cleanup

2020-05-24 Thread Greg KH
On Sun, May 24, 2020 at 03:24:12AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:c11d28ab Add linux-next specific files for 20200522 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=14f5444110 > kernel

[PATCH] Removing ununsed variable int lo, hi, int data and int i from comedi/drivers/dt2814.c.

2020-05-24 Thread Gaurav Pathak
Silence following sparse warning: drivers/staging/comedi/drivers/dt2814.c: In function ‘dt2814_interrupt’: drivers/staging/comedi/drivers/dt2814.c:193:6: warning: variable ‘data’ set but not used [-Wunused-but-set-variable] int data; ^~~~ drivers/staging/comedi/drivers/dt2814.c: In

Re: [PATCH v3 1/5] dt-bindings: iio: imu: bmi160: convert txt format to yaml

2020-05-24 Thread Jonathan Cameron
On Wed, 20 May 2020 21:46:40 +0200 Jonathan Albrieux wrote: > Converts documentation from txt format to yaml. > > Signed-off-by: Jonathan Albrieux A reminder on the maintainer bit as that thread crossed with this one. Also, drop the spi-max-frequency as we don't need to mention it explicitly

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-24 Thread Greg Kroah-Hartman
On Sat, May 23, 2020 at 12:04:30PM -0700, Dmitry Torokhov wrote: > On Sat, May 23, 2020 at 8:48 AM Randy Dunlap wrote: > > > > On 5/23/20 8:36 AM, Greg Kroah-Hartman wrote: > > > On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > > >> In the function kobject_cleanup(),

[tip:x86/build] BUILD SUCCESS d6ee6529436a15a0541aff6e1697989ee7dc2c44

2020-05-24 Thread kbuild test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/build branch HEAD: d6ee6529436a15a0541aff6e1697989ee7dc2c44 x86/boot: Discard .discard.unreachable for arch/x86/boot/compressed/vmlinux elapsed time: 2655m configs tested: 67 configs skipped: 74 The following

Re: [PATCH v3 5/5] iio: imu: bmi160: added mount-matrix support

2020-05-24 Thread Jonathan Cameron
On Wed, 20 May 2020 21:46:44 +0200 Jonathan Albrieux wrote: > Add mount-matrix binding support. As chip could have different orientations > a mount matrix support is needed to correctly translate these differences. > > Signed-off-by: Jonathan Albrieux Other than those bits for the binding

Re: [PATCH] drivers/irqchip: Remove function callback casts

2020-05-24 Thread Marc Zyngier
On Sun, 24 May 2020 10:09:10 +0200 Oscar Carter wrote: Hi Oscar, Thanks for this. Comments below. > In an effort to enable -Wcast-function-type in the top-level Makefile to > support Control Flow Integrity builds, remove all the function callback > casts. > > To do this, modify the

Re: [PATCH V5 3/5] iio: adc: Add support for PMIC7 ADC

2020-05-24 Thread Jonathan Cameron
On Fri, 22 May 2020 19:54:10 +0530 Jishnu Prakash wrote: > The ADC architecture on PMIC7 is changed as compared to PMIC5. The > major change from PMIC5 is that all SW communication to ADC goes through > PMK8350, which communicates with other PMICs through PBS when the ADC > on PMK8350 works in

Re: [PATCH V5 5/5] iio: adc: Clean up ADC code common to PMIC5 and PMIC7

2020-05-24 Thread Jonathan Cameron
On Fri, 22 May 2020 19:54:12 +0530 Jishnu Prakash wrote: > This commit includes the following changes: > > Add a common function used for read_raw callback for both PMIC5 > and PMIC7 ADCs. > > Add exit function for ADC. Hi Jishnu, I don't understand why one is needed, and if it is you can't

Re: Some -serious- BPF-related litmus tests

2020-05-24 Thread Akira Yokosawa
On Fri, 22 May 2020 12:38:21 -0700, Andrii Nakryiko wrote: > On 5/22/20 10:43 AM, Paul E. McKenney wrote: >> On Fri, May 22, 2020 at 10:32:01AM -0400, Alan Stern wrote: >>> On Fri, May 22, 2020 at 11:44:07AM +0200, Peter Zijlstra wrote: On Thu, May 21, 2020 at 05:38:50PM -0700, Paul E.

Re: [PATCH] Removing ununsed variable int lo, hi, int data and int i from comedi/drivers/dt2814.c.

2020-05-24 Thread Luc Van Oostenryck
Hi, On Sun, May 24, 2020 at 05:06:18PM +0530, Gaurav Pathak wrote: > Silence following sparse warning: > drivers/staging/comedi/drivers/dt2814.c: In function ‘dt2814_interrupt’: > drivers/staging/comedi/drivers/dt2814.c:193:6: warning: variable ‘data’ set > but not used

drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1680: undefined reference to `devm_ioremap_resource'

2020-05-24 Thread kbuild test robot
date: 4 months ago config: um-randconfig-s001-20200524 (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-193-gb8fad4bc-dirty git checkout 0e31e3573f0cd94d7b821117db854187ffc85765 # save

Re: [PATCH v13 2/3] i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver

2020-05-24 Thread kbuild test robot
Hi Tali, I love your patch! Yet something to improve: [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on v5.7-rc6 next-20200522] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to

Capabilities are list when creating a user namespace

2020-05-24 Thread Idan Yadgar
Hello, A process which changes its user namespace (unshare or setns), or a process that is created by clone with the CLONE_NEWUSER flag has all capabilities inside the new namespace, and loses all its capabilities in the parent/previous user namespace. This poses an issue because some operations

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-24 Thread Mike Rapoport
On Thu, May 21, 2020 at 04:02:11PM -0700, Guenter Roeck wrote: > On 5/20/20 12:51 PM, Mike Rapoport wrote: > > On Wed, May 20, 2020 at 12:03:31PM -0700, Guenter Roeck wrote: > >> On 5/20/20 10:03 AM, Mike Rapoport wrote: > >>> On Mon, May 18, 2020 at 09:37:15AM +0100, Will Deacon wrote: > On

[PATCH] bitops: simplify get_count_order_long()

2020-05-24 Thread Wei Yang
These two cases could be unified into one. Signed-off-by: Wei Yang --- include/linux/bitops.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 9acf654f0b19..5b5609e81a84 100644 --- a/include/linux/bitops.h +++

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-24 Thread Greg Kroah-Hartman
On Sat, May 23, 2020 at 08:44:06AM -0700, Randy Dunlap wrote: > On 5/23/20 8:36 AM, Greg Kroah-Hartman wrote: > > On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > >> In the function kobject_cleanup(), kobject_del(kobj) is > >> called before the kobj->release(). That makes it

Re: [PATCH] iio: stm32-adc: keep a reference to the iio device on the state struct

2020-05-24 Thread Jonathan Cameron
On Fri, 22 May 2020 16:07:19 +0300 Alexandru Ardelean wrote: > We may want to get rid of the iio_priv_to_dev() helper. The reason is that > we will hide some of the members of the iio_dev structure (to prevent > drivers from accessing them directly), and that will also mean hiding the >

Re: [PATCH] iio: stm32-dfsdm-adc: keep a reference to the iio device on the state struct

2020-05-24 Thread Jonathan Cameron
On Fri, 22 May 2020 16:08:04 +0300 Alexandru Ardelean wrote: > We may want to get rid of the iio_priv_to_dev() helper. The reason is that > we will hide some of the members of the iio_dev structure (to prevent > drivers from accessing them directly), and that will also mean hiding the >

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-24 Thread Greg Kroah-Hartman
On Sun, May 24, 2020 at 02:57:27PM +0200, Greg Kroah-Hartman wrote: > On Sat, May 23, 2020 at 08:44:06AM -0700, Randy Dunlap wrote: > > On 5/23/20 8:36 AM, Greg Kroah-Hartman wrote: > > > On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > > >> In the function kobject_cleanup(),

Re: [PATCH] ipc/msg.c: wake up senders until there is a queue empty capacity

2020-05-24 Thread Manfred Spraul
Hello Artur, On 5/23/20 10:34 PM, Artur Barsegyan wrote: Take into account the total size of the already enqueued messages of previously handled senders before another one. Otherwise, we have serious degradation of receiver throughput for case with multiple senders because another sender wakes

[PATCH v2] firewire-core: remove cast of function callback

2020-05-24 Thread Takashi Sakamoto
In 1394 OHCI specification, Isochronous Receive DMA context has several modes. One of mode is 'BufferFill' and Linux FireWire stack uses it to receive isochronous packets for multiple isochronous channel as FW_ISO_CONTEXT_RECEIVE_MULTICHANNEL. The mode is not used by in-kernel driver, while it's

Re: [PATCH] lib/bitmap: rework bitmap_cut()

2020-05-24 Thread Stefano Brivio
Hi Yury, On Sat, 7 Mar 2020 06:07:39 -0800 Yury Norov wrote: > On Sat, Mar 07, 2020 at 02:33:41PM +0100, Stefano Brivio wrote: > > > > [...] > > > > ...which means it would be a good idea to also add tests for numbers of > > bits that are not multiple of eight, and single bits too. > > OK, I

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-24 Thread Greg Kroah-Hartman
On Sun, May 24, 2020 at 03:14:05PM +0200, Greg Kroah-Hartman wrote: > On Sun, May 24, 2020 at 02:57:27PM +0200, Greg Kroah-Hartman wrote: > > On Sat, May 23, 2020 at 08:44:06AM -0700, Randy Dunlap wrote: > > > On 5/23/20 8:36 AM, Greg Kroah-Hartman wrote: > > > > On Wed, May 13, 2020 at 06:18:40PM

Re: [PATCH] Removing ununsed variable int lo, hi, int data and int i from comedi/drivers/dt2814.c.

2020-05-24 Thread GAURAV PATHAK
Nevermind, my sparse version was broken. Installed sparse 0.6.1, but still no warnings from sparse in any of the directories in drivers staging. E.g.: make C=2 M=drivers/staging/sm750fb CHECK drivers/staging/sm750fb/sm750.c CHECK drivers/staging/sm750fb/sm750_hw.c CHECK

Re: [PATCH 3/3] iio: remove iio_triggered_buffer_postenable()/iio_triggered_buffer_predisable()

2020-05-24 Thread Jonathan Cameron
On Fri, 22 May 2020 13:46:32 +0300 Alexandru Ardelean wrote: > From: Lars-Peter Clausen > > This patch should be squashed into the first one, as the first one is > breaking the build (intentionally) to make the IIO core files easier to > review. > > Signed-off-by: Lars-Peter Clausen >

Re: [PATCH 1/3] iio: Move attach/detach of the poll func to the core

2020-05-24 Thread Jonathan Cameron
On Fri, 22 May 2020 13:46:30 +0300 Alexandru Ardelean wrote: > From: Lars-Peter Clausen > > All devices using a triggered buffer need to attach and detach the trigger > to the device in order to properly work. Instead of doing this in each and > every driver by hand move this into the core. >

[PATCH v2] mm: remove VM_BUG_ON(PageSlab()) from page_mapcount()

2020-05-24 Thread Konstantin Khlebnikov
Replace superfluous VM_BUG_ON() with comment about correct usage. Technically reverts commit 1d148e218a0d0566b1c06f2f45f1436d53b049b2 ("mm: add VM_BUG_ON_PAGE() to page_mapcount()"), but context have changed. Function isolate_migratepages_block() runs some checks out of lru_lock when choose

Re: [PATCH 2/3] iio: adc: at91-sama5d2_adc: remove predisable/postenable hooks

2020-05-24 Thread Jonathan Cameron
On Fri, 22 May 2020 13:46:31 +0300 Alexandru Ardelean wrote: > This should be squashed into the first patch, but it's the more peculiar of > the changes. > I am not sure whether this is correct. The touchscreen channels shouldn't > be enabled by the IIO framework. So, we may need a different way

Re: [PATCH] Removing ununsed variable int lo, hi, int data and int i from comedi/drivers/dt2814.c.

2020-05-24 Thread Luc Van Oostenryck
On Sun, May 24, 2020 at 06:19:22PM +0530, GAURAV PATHAK wrote: > Thanks a lot for your reply. > I am trying to run sparse on drivers/staging directory, > but I am not getting any useful warnings. > Steps that I did: > > - Referred https://www.kernel.org/doc/man-pages/linux-next.html to get >

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-24 Thread Phil Auld
On Fri, May 22, 2020 at 05:35:24PM -0400 Joel Fernandes wrote: > On Fri, May 22, 2020 at 02:59:05PM +0200, Peter Zijlstra wrote: > [..] > > > > It doens't allow tasks for form their own groups (by for example setting > > > > the key to that of another task). > > > > > > So for this, I was

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-24 Thread Guenter Roeck
On 5/24/20 5:32 AM, Mike Rapoport wrote: > On Thu, May 21, 2020 at 04:02:11PM -0700, Guenter Roeck wrote: >> On 5/20/20 12:51 PM, Mike Rapoport wrote: >>> On Wed, May 20, 2020 at 12:03:31PM -0700, Guenter Roeck wrote: On 5/20/20 10:03 AM, Mike Rapoport wrote: > On Mon, May 18, 2020 at

[tip:x86/mm] BUILD SUCCESS 0fcfdf55db9e1ecf85edd6aa8d0bc78a448cb96a

2020-05-24 Thread kbuild test robot
-a006-20200521 i386 randconfig-a003-20200521 i386 randconfig-a002-20200521 i386 randconfig-a005-20200521 x86_64 randconfig-a013-20200524 x86_64 randconfig-a015-20200524 x86_64 randconfig-a016-20200524 x86_64

Re: [PATCH 05/12] mm: support async buffered reads in generic_file_buffered_read()

2020-05-24 Thread Trond Myklebust
On Sat, 2020-05-23 at 12:57 -0600, Jens Axboe wrote: > Use the async page locking infrastructure, if IOCB_WAITQ is set in > the > passed in iocb. The caller must expect an -EIOCBQUEUED return value, > which means that IO is started but not done yet. This is similar to > how > O_DIRECT signals the

Re: [PATCH] Removing ununsed variable int lo, hi, int data and int i from comedi/drivers/dt2814.c.

2020-05-24 Thread Luc Van Oostenryck
On Sun, May 24, 2020 at 07:02:20PM +0530, GAURAV PATHAK wrote: > > For few drivers, I am getting: > > CC [M] drivers/staging/vt6656/key.o > CHECK drivers/staging/vt6656/rf.c > /usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:417:9: warning: preprocessor > token offsetof redefined >

  1   2   3   4   5   6   >