[PATCH 12/14] [media] saa7146: drop double zeroing

2020-09-20 Thread Julia Lawall
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,n,flags; @@ x = - kcalloc + kmalloc_array (n,sizeof(struct scatterlist),flags) ... sg_init_tab

[PATCH 05/14] RDMA/efa: drop double zeroing

2020-09-20 Thread Julia Lawall
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,n,flags; @@ x = - kcalloc + kmalloc_array (n,sizeof(*x),flags) ... sg_init_table(x,n) // Sig

[PATCH 14/14] PCI/P2PDMA: drop double zeroing

2020-09-20 Thread Julia Lawall
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; @@ x = - kzalloc + kmalloc (...) ... sg_init_table(x,...) // Signed-off-by: Julia Lawall --

[PATCH 00/14] drop double zeroing

2020-09-20 Thread Julia Lawall
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. --- block/bsg-lib.c |2 +- drivers/dma/sh/rcar-dmac.c |2 +- drivers/dma/sh/shdma-base.c |2 +- drivers/infiniband/

[PATCH 04/14] dmaengine: sh: drop double zeroing

2020-09-20 Thread Julia Lawall
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,n,flags; @@ x = - kcalloc + kmalloc_array (n,sizeof(*x),flags) ... sg_init_table(x,n) // Sig

[PATCH 11/14] spi/topcliff-pch: drop double zeroing

2020-09-20 Thread Julia Lawall
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,n,flags; @@ x = - kcalloc + kmalloc_array (n,sizeof(*x),flags) ... sg_init_table(x,n) // Sig

[PATCH 03/14] dpaa2-eth: drop double zeroing

2020-09-20 Thread Julia Lawall
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,n,flags; @@ x = - kcalloc + kmalloc_array (n,sizeof(struct scatterlist),flags) ... sg_init_tab

[PATCH 01/14] pch_uart: drop double zeroing

2020-09-20 Thread Julia Lawall
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,n,flags; @@ x = - kcalloc + kmalloc_array (n,sizeof(struct scatterlist),flags) ... sg_init_tab

[PATCH 02/14] target/rd: drop double zeroing

2020-09-20 Thread Julia Lawall
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,n,flags; @@ x = - kcalloc + kmalloc_array (n,sizeof(*x),flags) ... sg_init_table(x,n) // Sig

[PATCH 07/14] RDS: drop double zeroing

2020-09-20 Thread Julia Lawall
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,n,flags; @@ x = - kcalloc + kmalloc_array (n,sizeof(*x),flags) ... sg_init_table(x,n) // Sig

[PATCH 09/14] dmaengine: rcar-dmac: drop double zeroing

2020-09-20 Thread Julia Lawall
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,n,flags; @@ x = - kcalloc + kmalloc_array (n,sizeof(*x),flags) ... sg_init_table(x,n) // Sig

[PATCH 10/14] iwlwifi: dbg_ini: drop double zeroing

2020-09-20 Thread Julia Lawall
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,n,flags; @@ x = - kcalloc + kmalloc_array (n,sizeof(*x),flags) ... sg_init_table(x,n) // Sig

Re: [PATCH 01/14] pch_uart: drop double zeroing

2020-09-20 Thread Greg Kroah-Hartman
On Sun, Sep 20, 2020 at 01:26:13PM +0200, Julia Lawall wrote: > sg_init_table zeroes its first argument, so the allocation of that argument > doesn't have to. > > the semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,n,flags; > @@ > >

Re: [PATCH v3 3/7] ASoC: sun4i-i2s: Add support for H6 I2S

2020-09-20 Thread Clément Péron
Hi Maxime, On Thu, 17 Sep 2020 at 16:06, Maxime Ripard wrote: > > Hi Clement, > > On Thu, Sep 17, 2020 at 03:55:45PM +0200, Clément Péron wrote: > > Hi Maxime and Samuel, > > > > On Thu, 17 Sep 2020 at 15:21, Maxime Ripard wrote: > > > > > > Hi, > > > > > > On Sat, Sep 12, 2020 at 03:29:55PM -05

Re: [PATCH 01/14] pch_uart: drop double zeroing

2020-09-20 Thread Julia Lawall
On Sun, 20 Sep 2020, Greg Kroah-Hartman wrote: > On Sun, Sep 20, 2020 at 01:26:13PM +0200, Julia Lawall wrote: > > sg_init_table zeroes its first argument, so the allocation of that argument > > doesn't have to. > > > > the semantic patch that makes this change is as follows: > > (http://coccin

Re: [PATCH 1/2] KVM: Fix the build error

2020-09-20 Thread Paolo Bonzini
On 14/09/20 11:11, lihaiwei.ker...@gmail.com wrote: > From: Haiwei Li > > When CONFIG_SMP is not set, an build error occurs with message "error: > use of undeclared identifier 'kvm_send_ipi_mask_allbutself'" > > Fixes: 0f990222108d ("KVM: Check the allocation of pv cpu mask", 2020-09-01) > Repor

Re: [PATCH v2 2/2] Input: atmel_mxt_ts - wake mXT1386 from deep-sleep mode

2020-09-20 Thread Wang, Jiada
Hi Dmitry On 2020/09/20 15:02, Dmitry Torokhov wrote: On Sat, Sep 19, 2020 at 10:28 PM Wang, Jiada wrote: Hi Dmitry On 2020/09/20 4:49, Dmitry Osipenko wrote: 18.09.2020 18:55, Wang, Jiada пишет: ... +static void mxt_wake(struct mxt_data *data) +{ +struct i2c_client *client = data-

Re: [PATCH] rhashtable: fix indentation of a continue statement

2020-09-20 Thread Herbert Xu
On Fri, Sep 18, 2020 at 10:51:26PM +0100, Colin King wrote: > From: Colin Ian King > > A continue statement is indented incorrectly, add in the missing > tab. > > Signed-off-by: Colin Ian King > --- > lib/test_rhashtable.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Herb

[PATCH 0/2] net: wireless: rtw88: Fix oops on probe errors

2020-09-20 Thread Andreas Färber
Hello, This mini-series fixes oopses in rtw88 device probe error handling, resulting from asynchronous firmware loading. Since there does not appear to be a public kernel API for canceling scheduled or ongoing firmware loads, it seems we need to wait with teardown until rtw88's callback was invok

[PATCH 1/2] rtw88: Fix probe error handling race with firmware loading

2020-09-20 Thread Andreas Färber
In case of rtw8822be, a probe failure after successful rtw_core_init() has been observed to occasionally lead to an oops from rtw_load_firmware_cb(): [3.924268] pci 0001:01:00.0: [10ec:b822] type 00 class 0xff [3.930531] pci 0001:01:00.0: reg 0x10: [io 0x-0x00ff] [3.936360] pc

[PATCH 2/2] rtw88: Fix potential probe error handling race with wow firmware loading

2020-09-20 Thread Andreas Färber
If rtw_core_init() fails to load the wow firmware, rtw_core_deinit() will not get called to clean up the regular firmware. Ensure that an error loading the wow firmware does not produce an oops for the regular firmware by waiting on its completion to be signalled before returning. Also release the

[GIT PULL] TTY/Serial driver fixes for 5.9-rc6

2020-09-20 Thread Greg KH
The following changes since commit f75aef392f869018f78cfedf3c320a6b3fcfda6b: Linux 5.9-rc3 (2020-08-30 16:01:54 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tags/tty-5.9-rc6 for you to fetch changes up to ec0972adecb391a8d865083

[GIT PULL] USB/Thunderbolt fixes for 5.9-rc6

2020-09-20 Thread Greg KH
The following changes since commit 856deb866d16e29bd65952e0289066f6078af773: Linux 5.9-rc5 (2020-09-13 16:06:00 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git tags/usb-5.9-rc6 for you to fetch changes up to 9cdabcb3ef8c24ca3a456e4

[PATCH] Staging list.h: Modified comment

2020-09-20 Thread Asif Rasheed
We (everyone from my Operating System Lecture Section) were confused on whether the list is circular or not (because no one bothered to look at the implementation). Modified the comment on top for clarification. Signed-off-by: Asif Rasheed --- include/linux/list.h | 2 +- 1 file changed, 1 ins

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Arnd Bergmann
On Sun, Sep 20, 2020 at 12:09 AM Al Viro wrote: > On Fri, Sep 18, 2020 at 05:16:15PM +0200, Christoph Hellwig wrote: > > On Fri, Sep 18, 2020 at 02:58:22PM +0100, Al Viro wrote: > > > Said that, why not provide a variant that would take an explicit > > > "is it compat" argument and use it there?

Re: linux-next: manual merge of the staging tree with the crypto tree

2020-09-20 Thread Greg KH
On Fri, Sep 18, 2020 at 05:50:36PM +1000, Herbert Xu wrote: > On Fri, Sep 18, 2020 at 09:49:11AM +0200, Greg KH wrote: > > > > Ok, I'll go revert these. > > Thanks! > > > > As the driver has been converted over to the lib arc4 API, it > > > does not need to select CRYPTO at all. > > > > Is it co

Re: [PATCH AUTOSEL 4.14 05/15] regulator: pwm: Fix machine constraints application

2020-09-20 Thread Sasha Levin
On Tue, Sep 15, 2020 at 09:55:08AM +0200, Vincent Whitchurch wrote: On Mon, Sep 14, 2020 at 03:05:16PM +0200, Sasha Levin wrote: From: Vincent Whitchurch [ Upstream commit 59ae97a7a9e1499c2070e29841d1c4be4ae2994a ] If the zero duty cycle doesn't correspond to any voltage in the voltage table,

Re: [PATCH AUTOSEL 4.14 09/15] kobject: Drop unneeded conditional in __kobject_del()

2020-09-20 Thread Sasha Levin
On Mon, Sep 14, 2020 at 04:13:18PM +0200, Greg Kroah-Hartman wrote: On Mon, Sep 14, 2020 at 09:05:20AM -0400, Sasha Levin wrote: From: Andy Shevchenko [ Upstream commit 07ecc6693f9157cf293da5d165c73fb28fd69bf4 ] __kobject_del() is called from two places, in one where kobj is dereferenced befo

Re: [PATCH 11/20] dt-bindings: usb: renesas,usbhs: Add r8a774e1 support

2020-09-20 Thread Greg Kroah-Hartman
On Sat, Sep 19, 2020 at 11:54:05AM +0100, Lad, Prabhakar wrote: > Hi Greg, > > On Thu, Jul 16, 2020 at 6:19 PM Lad Prabhakar > wrote: > > > > Document RZ/G2H (R8A774E1) SoC bindings. > > > > Signed-off-by: Lad Prabhakar > > Reviewed-by: Marian-Cristian Rotariu > > > > --- > > Documentation/de

Re: [PATCH 07/20] dt-bindings: usb: renesas,usb3-peri: Document r8a774e1 support

2020-09-20 Thread Greg Kroah-Hartman
On Sat, Sep 19, 2020 at 11:50:07AM +0100, Lad, Prabhakar wrote: > Hi Greg, > > On Thu, Jul 16, 2020 at 6:19 PM Lad Prabhakar > wrote: > > > > Document RZ/G2H (R8A774E1) SoC bindings. > > > > Signed-off-by: Lad Prabhakar > > Reviewed-by: Marian-Cristian Rotariu > > > > --- > > Documentation/de

Re: [PATCH v7 05/11] dt-bindings: connector: Add property to set initial current cap for FRS

2020-09-20 Thread Greg Kroah-Hartman
On Thu, Sep 17, 2020 at 03:18:50AM -0700, Badhri Jagan Sridharan wrote: > This change adds frs-typec-current which allows setting the initial current > capability of the new source when vSafe5V is applied during PD3.0 > sink Fast Role Swap. > > Signed-off-by: Badhri Jagan Sridharan > --- > Change

KASAN: use-after-free Read in btrfs_scan_one_device

2020-09-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:eb5f95f1 Merge tag 's390-5.9-6' of git://git.kernel.org/pu.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10a0a8bb90 kernel config: https://syzkaller.appspot.com/x/.config?x=ffe85b197a57c180 das

[PATCH] drm/gma500: clean up indentation issues

2020-09-20 Thread Colin King
From: Colin Ian King There are a couple of statements that are indented too deeply, remove the extraneous tabs and also an empty line. Signed-off-by: Colin Ian King --- drivers/gpu/drm/gma500/cdv_intel_dp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/dr

Re: ledtrig-cpu: Limit to 4 CPUs

2020-09-20 Thread Jacek Anaszewski
Hi Pavel, On 9/19/20 11:38 AM, Pavel Machek wrote: commit 318681d3e019e39354cc6c2155a7fd1bb8e8084d Author: Pavel Machek Date: Sat Sep 19 11:34:58 2020 +0200 ledtrig-cpu: Limit to 4 CPUs Some machines have thousands of CPUs... and trigger mechanisms was not really meant

[PATCH v4 1/2] net: mdio-ipq4019: change defines to upper case

2020-09-20 Thread Robert Marko
In the commit adding the IPQ4019 MDIO driver, defines for timeout and sleep partially used lower case. Lets change it to upper case in line with the rest of driver defines. Signed-off-by: Robert Marko Cc: Luka Perkov Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli --- drivers/net/phy/

Re: [PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-20 Thread Greg Kroah-Hartman
On Thu, Sep 17, 2020 at 11:46:22AM -0700, Matthias Kaehlcke wrote: > The main issue this driver addresses is that a USB hub needs to be > powered before it can be discovered. For onboard hubs this is often > solved by supplying the hub with an 'always-on' regulator, which is > kind of a hack. Some

[PATCH v4 2/2] net: mdio-ipq4019: add Clause 45 support

2020-09-20 Thread Robert Marko
While up-streaming the IPQ4019 driver it was thought that the controller had no Clause 45 support, but it actually does and its activated by writing a bit to the mode register. So lets add it as newer SoC-s use the same controller and Clause 45 compliant PHY-s. Signed-off-by: Robert Marko Cc:

[PATCH v4 0/2] net: mdio-ipq4019: add Clause 45 support

2020-09-20 Thread Robert Marko
This patch series adds support for Clause 45 to the driver. While at it also change some defines to upper case to match rest of the driver. Changes since v1: * Drop clock patches, these need further investigation and no user for non default configuration has been found Robert Marko (2): net: m

[PATCH] HID: alps: clean up indentation issue

2020-09-20 Thread Colin King
From: Colin Ian King There is an if statement that is indented too deeply, fix this by removing the extraneous tab. Signed-off-by: Colin Ian King --- drivers/hid/hid-alps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c index

Re: [PATCH v3 2/2] net: mdio-ipq4019: add Clause 45 support

2020-09-20 Thread Robert Marko
On Sun, Sep 20, 2020 at 2:19 AM Andrew Lunn wrote: > > > + > > +/* 0 = Clause 22, 1 = Clause 45 */ > > +#define MDIO_MODE_BITBIT(8) > > How about calling this MDIO_MODE_C45 Good idea, will rename it. > > > + /* Enter Clause 45 mode */ > > +

Re: [PATCH v4 2/2] net: mdio-ipq4019: add Clause 45 support

2020-09-20 Thread Andrew Lunn
On Sun, Sep 20, 2020 at 04:16:53PM +0200, Robert Marko wrote: > While up-streaming the IPQ4019 driver it was thought that the controller had > no Clause 45 support, > but it actually does and its activated by writing a bit to the mode register. > > So lets add it as newer SoC-s use the same contr

[PATCH] misc: hisi_hikey_usb: clean up indentation issue

2020-09-20 Thread Colin King
From: Colin Ian King There is a return statement that is indented too deeply, fix this by removing the extraneous tab. Signed-off-by: Colin Ian King --- drivers/misc/hisi_hikey_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/hisi_hikey_usb.c b/drivers/mis

Re: [PATCH v2 2/2] Input: atmel_mxt_ts - wake mXT1386 from deep-sleep mode

2020-09-20 Thread Dmitry Osipenko
20.09.2020 16:13, Wang, Jiada пишет: > Hi Dmitry > > On 2020/09/20 15:02, Dmitry Torokhov wrote: >> On Sat, Sep 19, 2020 at 10:28 PM Wang, Jiada >> wrote: >>> >>> Hi Dmitry >>> >>> On 2020/09/20 4:49, Dmitry Osipenko wrote: 18.09.2020 18:55, Wang, Jiada пишет: ... >>>     +static vo

[PATCH] regulator: fix indentation issue

2020-09-20 Thread Colin King
From: Colin Ian King There is a return statement that is indented with an extra space, fix this by removing it. Signed-off-by: Colin Ian King --- drivers/regulator/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c ind

Re: [PATCH v2 2/2] Input: atmel_mxt_ts - wake mXT1386 from deep-sleep mode

2020-09-20 Thread Wang, Jiada
Hi Dmitry On 2020/09/20 23:21, Dmitry Osipenko wrote: 20.09.2020 16:13, Wang, Jiada пишет: Hi Dmitry On 2020/09/20 15:02, Dmitry Torokhov wrote: On Sat, Sep 19, 2020 at 10:28 PM Wang, Jiada wrote: Hi Dmitry On 2020/09/20 4:49, Dmitry Osipenko wrote: 18.09.2020 18:55, Wang, Jiada пишет: .

[PATCH RESEND 0/7] ARM: dts: qcom: msm8974: klte: Enable some hardware

2020-09-20 Thread Iskren Chernev
Enable support for various hw found on the Samsung Galaxy S5: - touchkey (the two buttons around the home button) - touchscreen - notification led - wifi - external SD card Please note that for working wifi the correct firmware is needed. Check [1] for links and locations. Also note, that to actu

[PATCH RESEND 1/7] ARM: dts: qcom: msm8974-klte: Merge pinctrl nodes

2020-09-20 Thread Iskren Chernev
commit cd13c72c1853f219e1f ("ARM: dts: qcom: msm8974-klte: Add max77826 pmic node") and commit 8bf7a360a92cc6b2aebc8 ("ARM: dts: qcom: msm8974-klte: Add sdhci1 node") both added pinctrl node. This patch merges the two nodes. Signed-off-by: Iskren Chernev --- .../boot/dts/qcom-msm8974-samsung-klt

[PATCH RESEND 2/7] ARM: dts: qcom: msm8974-klte: Add support for touchkey

2020-09-20 Thread Iskren Chernev
Add support for the touchkey found on the Samsung Galaxy S5. The touchkey is responsible for handling the application and back buttons found around the home button. Signed-off-by: Iskren Chernev --- .../boot/dts/qcom-msm8974-samsung-klte.dts| 44 ++- 1 file changed, 43 insert

[PATCH RESEND 4/7] ARM: dts: qcom: msm8974-klte: Add support for led

2020-09-20 Thread Iskren Chernev
The klte uses a Panasonic AN30259A LED controller for it's indicator led. Signed-off-by: Iskren Chernev --- .../boot/dts/qcom-msm8974-samsung-klte.dts| 48 +++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts b/arch/arm/boot/dts/

[PATCH RESEND 7/7] ARM: dts: qcom: msm8974-klte: Add support for SD card

2020-09-20 Thread Iskren Chernev
The Samsung Galaxy S5 (klte), has 3 SDHCI nodes used for internal storage, WiFi, external SD card slot. The external SD card slot is similar to the internal storage. Signed-off-by: Iskren Chernev --- .../boot/dts/qcom-msm8974-samsung-klte.dts| 44 ++- 1 file changed, 43 inser

[PATCH RESEND 3/7] ARM: dts: qcom: msm8974-klte: Add support for touchscreen

2020-09-20 Thread Iskren Chernev
Add support for the touchscreen found on the Samsung Galaxy S5. Signed-off-by: Iskren Chernev --- .../boot/dts/qcom-msm8974-samsung-klte.dts| 54 +++ 1 file changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts b/arch/arm/boot/dts/qcom-msm89

[PATCH RESEND 5/7] ARM: dts: qcom: msm8974-klte: Add gpio expander chip

2020-09-20 Thread Iskren Chernev
The Samsung Galaxy S5 has a GPIO Expander chip, the PCAL6416A with 16 ports on a i2c bus. These pins are used for WiFi, NFC, IR among other things. Signed-off-by: Iskren Chernev --- .../boot/dts/qcom-msm8974-samsung-klte.dts| 29 +-- 1 file changed, 27 insertions(+), 2 deleti

[PATCH RESEND 6/7] ARM: dts: qcom: msm8974-klte: Add support for wifi

2020-09-20 Thread Iskren Chernev
The Samsung Galaxy S5 (klte), uses a Broadcom 4354 Chip connected on the SDIO bus. The chip also requires a corresponding firmware + txt file[1]. [1] https://gitlab.com/postmarketOS/pmaports/-/blob/master/firmware/firmware-samsung-klte/APKBUILD Signed-off-by: Iskren Chernev --- .../boot/dts/qc

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Al Viro
On Sun, Sep 20, 2020 at 03:55:47PM +0200, Arnd Bergmann wrote: > On Sun, Sep 20, 2020 at 12:09 AM Al Viro wrote: > > On Fri, Sep 18, 2020 at 05:16:15PM +0200, Christoph Hellwig wrote: > > > On Fri, Sep 18, 2020 at 02:58:22PM +0100, Al Viro wrote: > > > > Said that, why not provide a variant that w

Re: [RFC PATCH v2 1/2] Documentation/admin-guide: README & svga: remove use of "rdev"

2020-09-20 Thread Martin Mareš
Hello! > "rdev" is considered antiquated, ancient, archaic, obsolete, deprecated > {choose any or all}. > > Remove use of "rdev" and "vidmode" (a symlink to rdev) in > admin-guide/README.rst and admin-guide/svga.rst. Acked-by: Martin Mares Have a nice fortnight

Re: [PATCH 4/4] rcu/tree: Use schedule_delayed_work() instead of WQ_HIGHPRI queue

2020-09-20 Thread Paul E. McKenney
On Fri, Sep 18, 2020 at 09:48:17PM +0200, Uladzislau Rezki (Sony) wrote: > Recently the separate worker thread has been introduced to > maintain the local page cache from the regular kernel context, > instead of kvfree_rcu() contexts. That was done because a caller > of the k[v]free_rcu() can be an

Re: [PATCH v2] checkpatch: extend author Signed-off-by check for split From: header

2020-09-20 Thread Joe Perches
On Sun, 2020-09-20 at 14:47 +0530, Dwaipayan Ray wrote: > Checkpatch did not handle cases where the author From: header > was split into multiple lines. The author identity could not > be resolved and checkpatch generated a false NO_AUTHOR_SIGN_OFF > warning. Hi Dwaipayan. > A typical example is

KASAN: use-after-free Read in tcf_action_destroy

2020-09-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:0f9ad4e7 Merge branch 's390-qeth-next' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=15fc675590 kernel config: https://syzkaller.appspot.com/x/.config?x=d29a102d22f784ea dashboard link: https://s

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Matthew Wilcox
On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: > Add a flag to force processing a syscall as a compat syscall. This is > required so that in_compat_syscall() works for I/O submitted by io_uring > helper threads on behalf of compat syscalls. Al doesn't like this much, but my su

Re: [PATCH] Staging list.h: Modified comment

2020-09-20 Thread Paul E. McKenney
On Sun, Sep 20, 2020 at 05:31:54PM +0400, Asif Rasheed wrote: > We (everyone from my Operating System Lecture Section) were confused on > whether the list is circular or not (because no one bothered to look at the > implementation). Modified the comment on top for clarification. > > Signed-off-b

Re: [PATCH v1 05/12] fpga: enable secure updates

2020-09-20 Thread Tom Rix
On 9/18/20 6:10 PM, Russ Weight wrote: > > On 9/5/20 3:04 PM, Tom Rix wrote: >> On 9/4/20 4:52 PM, Russ Weight wrote: >>> Extend the FPGA Intel Security Manager class driver to >>> include an update/filename sysfs node that can be used >>> to initiate a security update. The filename of a secure

Re: [PATCH] sgl_alloc_order: memory leak

2020-09-20 Thread Bart Van Assche
On 2020-09-19 22:36, Douglas Gilbert wrote: > Noticed that when sgl_alloc_order() failed with order > 0 that > free memory on my machine shrank. That function shouldn't call > sgl_free() on its error path since that is only correct when > order==0 . > > Signed-off-by: Douglas Gilbert > --- > lib

Re: outside repository fatal error

2020-09-20 Thread Joe Perches
On Sun, 2020-09-20 at 13:53 +0200, Julia Lawall wrote: > The commit bcf4271d4bc3 ("checkpatch: allow not using -f with files that > are in git") in linux-next seems to cause checkpatch to fail on a file > containing a patch if that file is not in the directory containing the > Linux kernel. Thanks

Re: [PATCH 08/14] xprtrdma: drop double zeroing

2020-09-20 Thread Chuck Lever
Thanks, Julia! > On Sep 20, 2020, at 7:26 AM, Julia Lawall wrote: > > sg_init_table zeroes its first argument, so the allocation of that argument > doesn't have to. > > the semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,n,flags;

Re: ledtrig-cpu: Limit to 4 CPUs

2020-09-20 Thread Marek Behun
On Sun, 20 Sep 2020 16:15:09 +0200 Jacek Anaszewski wrote: > Hi Pavel, > > On 9/19/20 11:38 AM, Pavel Machek wrote: > > commit 318681d3e019e39354cc6c2155a7fd1bb8e8084d > > Author: Pavel Machek > > Date: Sat Sep 19 11:34:58 2020 +0200 > > > > ledtrig-cpu: Limit to 4 CPUs > > > >

[RFC PATCH] Use feature bit names in clearcpuid=

2020-09-20 Thread Borislav Petkov
Hi, so tglx hates this clearcpuid= interface where you have to give the X86_FEATURE array indices in order to disable a feature bit for testing. Below is a first attempt (lightly tested in a VM only) to accept the bit names from /proc/cpuinfo too. I say "too" because not all feature bits have nam

Re: [PATCH v2 2/2] Input: atmel_mxt_ts - wake mXT1386 from deep-sleep mode

2020-09-20 Thread Dmitry Osipenko
20.09.2020 17:36, Wang, Jiada пишет: > Hi Dmitry > > On 2020/09/20 23:21, Dmitry Osipenko wrote: >> 20.09.2020 16:13, Wang, Jiada пишет: >>> Hi Dmitry >>> >>> On 2020/09/20 15:02, Dmitry Torokhov wrote: On Sat, Sep 19, 2020 at 10:28 PM Wang, Jiada wrote: > > Hi Dmitry >

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread William Kucharski
I really like that as it’s self-documenting and anyone debugging it can see what is actually being used at a glance. > On Sep 20, 2020, at 09:15, Matthew Wilcox wrote: > > On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: >> Add a flag to force processing a syscall as a compat

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Arnd Bergmann
On Sun, Sep 20, 2020 at 5:15 PM Matthew Wilcox wrote: > > On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: > > Add a flag to force processing a syscall as a compat syscall. This is > > required so that in_compat_syscall() works for I/O submitted by io_uring > > helper threads on

Re: outside repository fatal error

2020-09-20 Thread Julia Lawall
On Sun, 20 Sep 2020, Joe Perches wrote: > On Sun, 2020-09-20 at 13:53 +0200, Julia Lawall wrote: > > The commit bcf4271d4bc3 ("checkpatch: allow not using -f with files that > > are in git") in linux-next seems to cause checkpatch to fail on a file > > containing a patch if that file is not in

Re: [RFC PATCH] Use feature bit names in clearcpuid=

2020-09-20 Thread Arvind Sankar
On Sun, Sep 20, 2020 at 05:42:28PM +0200, Borislav Petkov wrote: > Hi, > > so tglx hates this clearcpuid= interface where you have to give the > X86_FEATURE array indices in order to disable a feature bit for testing. > Below is a first attempt (lightly tested in a VM only) to accept the bit > nam

Re: [PATCH v4 2/2] KVM: nSVM: implement ondemand allocation of the nested state

2020-09-20 Thread Sean Christopherson
On Sat, Sep 19, 2020 at 05:09:09PM +0200, Paolo Bonzini wrote: > On 17/09/20 18:29, Sean Christopherson wrote: > >> + vcpu->arch.efer = old_efer; > >> + kvm_make_request(KVM_REQ_OUT_OF_MEMORY, vcpu); > > I really dislike KVM_REQ_OUT_OF_MEMORY. It's

[PATCH -next] checkpatch: Fix git "fatal" warning if file argument outside kernel tree

2020-09-20 Thread Joe Perches
commit bcf4271d4bc3 ("checkpatch: allow not using -f with files that are in git") in linux-next causes checkpatch to emit a fatal message: fatal: : '' is outside repository at '' Fix that by sending git's error output to /dev/null instead. Signed-off-by: Joe Perches Reported-by: Julia Lawall R

[PATCH v7 00/10] crpyto: introduce OSCCA certificate and SM2 asymmetric algorithm

2020-09-20 Thread Tianjia Zhang
Hello all, This new module implement the OSCCA certificate and SM2 public key algorithm. It was published by State Encryption Management Bureau, China. List of specifications for OSCCA certificate and SM2 elliptic curve public key cryptography: * GM/T 0003.1-2012 * GM/T 0003.2-2012 * GM/T 0003.3-

[PATCH v7 03/10] lib/mpi: Introduce ec implementation to MPI library

2020-09-20 Thread Tianjia Zhang
The implementation of EC is introduced from libgcrypt as the basic algorithm of elliptic curve, which can be more perfectly integrated with MPI implementation. Some other algorithms will be developed based on mpi ecc, such as SM2. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang --- include

[PATCH v7 08/10] X.509: support OSCCA certificate parse

2020-09-20 Thread Tianjia Zhang
The digital certificate format based on SM2 crypto algorithm as specified in GM/T 0015-2012. It was published by State Encryption Management Bureau, China. This patch adds the OID object identifier defined by OSCCA. The x509 certificate supports SM2-with-SM3 type certificate parsing. It uses the s

[PATCH v7 01/10] crypto: sm3 - export crypto_sm3_final function

2020-09-20 Thread Tianjia Zhang
Both crypto_sm3_update and crypto_sm3_finup have been exported, exporting crypto_sm3_final, to avoid having to use crypto_sm3_finup(desc, NULL, 0, dgst) to calculate the hash in some cases. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang --- crypto/sm3_generic.c | 7 --- include/crypto

[PATCH v7 05/10] crypto: testmgr - support test with different ciphertext per encryption

2020-09-20 Thread Tianjia Zhang
Some asymmetric algorithms will get different ciphertext after each encryption, such as SM2, and let testmgr support the testing of such algorithms. In struct akcipher_testvec, set c and c_size to be empty, skip the comparison of the ciphertext, and compare the decrypted plaintext with m to achiev

[PATCH v7 04/10] crypto: sm2 - introduce OSCCA SM2 asymmetric cipher algorithm

2020-09-20 Thread Tianjia Zhang
This new module implement the SM2 public key algorithm. It was published by State Encryption Management Bureau, China. List of specifications for SM2 elliptic curve public key cryptography: * GM/T 0003.1-2012 * GM/T 0003.2-2012 * GM/T 0003.3-2012 * GM/T 0003.4-2012 * GM/T 0003.5-2012 IETF: https:

[PATCH v7 02/10] lib/mpi: Extend the MPI library

2020-09-20 Thread Tianjia Zhang
Expand the mpi library based on libgcrypt, and the ECC algorithm of mpi based on libgcrypt requires these functions. Some other algorithms will be developed based on mpi ecc, such as SM2. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang --- include/linux/mpi.h| 87 +++ lib/mpi/

[PATCH v7 10/10] integrity: Asymmetric digsig supports SM2-with-SM3 algorithm

2020-09-20 Thread Tianjia Zhang
Asymmetric digsig supports SM2-with-SM3 algorithm combination, so that IMA can also verify SM2's signature data. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang Reviewed-by: Mimi Zohar Reviewed-by: Vitaly Chikunov --- security/integrity/digsig_asymmetric.c | 14 +++--- 1 file cha

[PATCH v7 07/10] crypto: sm2 - add SM2 test vectors to testmgr

2020-09-20 Thread Tianjia Zhang
Add testmgr test vectors for SM2 algorithm. These vectors come from `openssl pkeyutl -sign` and libgcrypt. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang --- crypto/testmgr.c | 6 + crypto/testmgr.h | 59 2 files changed, 65 insertions

[PATCH v7 09/10] X.509: support OSCCA SM2-with-SM3 certificate verification

2020-09-20 Thread Tianjia Zhang
The digital certificate format based on SM2 crypto algorithm as specified in GM/T 0015-2012. It was published by State Encryption Management Bureau, China. The method of generating Other User Information is defined as ZA=H256(ENTLA || IDA || a || b || xG || yG || xA || yA), it also specified in ht

Re: [PATCH v2] add the FPGA Device Feature List (DFL) EMIF support

2020-09-20 Thread Krzysztof Kozlowski
On Wed, Sep 16, 2020 at 01:37:01PM +0800, Xu Yilun wrote: > The patchsets "Modularization of DFL private feature drivers" & "add dfl > bus support to MODULE_DEVICE_TABLE()" are all queued to linux-next. So > there is no dependency now. What do you mean there is no dependency? The DFL is required

[PATCH v7 06/10] crypto: testmgr - Fix potential memory leak in test_akcipher_one()

2020-09-20 Thread Tianjia Zhang
When the 'key' allocation fails, the 'req' will not be released, which will cause memory leakage on this path. This patch adds a 'free_req' tag used to solve this problem, and two new err values are added to reflect the real reason of the error. Signed-off-by: Tianjia Zhang --- crypto/testmgr.c

Re: [PATCH v2] checkpatch: extend author Signed-off-by check for split From: header

2020-09-20 Thread Dwaipayan Ray
On Sun, Sep 20, 2020 at 8:39 PM Joe Perches wrote: > > On Sun, 2020-09-20 at 14:47 +0530, Dwaipayan Ray wrote: > > Checkpatch did not handle cases where the author From: header > > was split into multiple lines. The author identity could not > > be resolved and checkpatch generated a false NO_AUTH

[PATCH] mm/shmem.c: Fix the missing unaccount on the failed path

2020-09-20 Thread Tianjia Zhang
In function __shmem_file_setup(), shmem_unacct_size() is forgotten on the failed path, so add it. Fixes: 93dec2da7b234 ("... and switch shmem_file_setup() to alloc_file_pseudo()") Cc: Al Viro Signed-off-by: Tianjia Zhang --- mm/shmem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

Re: [PATCH v2] memory: dfl-emif: add the DFL EMIF private feature driver

2020-09-20 Thread Krzysztof Kozlowski
On Wed, Sep 16, 2020 at 01:37:02PM +0800, Xu Yilun wrote: > This driver is for the EMIF private feature implemented under FPGA > Device Feature List (DFL) framework. It is used to expose memory > interface status information as well as memory clearing control. > > The purpose of memory clearing bl

Re: [PATCH v4 2/2] KVM: nSVM: implement ondemand allocation of the nested state

2020-09-20 Thread Paolo Bonzini
On 20/09/20 18:16, Sean Christopherson wrote: >> Maxim, your previous version was adding some error handling to >> kvm_x86_ops.set_efer. I don't remember what was the issue; did you have >> any problems propagating all the errors up to KVM_SET_SREGS (easy), >> kvm_set_msr (harder) etc.? > I object

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-20 Thread Daniel Vetter
On Wed, Sep 16, 2020 at 02:00:54PM +0200, Greg Kroah-Hartman wrote: > On Wed, Sep 16, 2020 at 11:47:58AM +0300, Oded Gabbay wrote: > > On Wed, Sep 16, 2020 at 11:21 AM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, Sep 16, 2020 at 11:02:39AM +0300, Oded Gabbay wrote: > > > > On Wed, Sep 16, 202

Re: [PATCH v35 01/13] Linux Random Number Generator

2020-09-20 Thread Stephan Mueller
Am Freitag, 18. September 2020, 15:02:17 CEST schrieb kernel test robot: Hi, > All errors (new ones prefixed by >>): > >> drivers/char/lrng/lrng_chacha20.c:33:8: error: structure variable > >> 'chacha20' with 'latent_entropy' attribute has a non-integer field > >> 'block' > 33 | struct chac

Re: [PATCH] watchdog: fix memory leak in error path

2020-09-20 Thread Christophe Leroy
Pavel Machek a écrit : Fix memory leak in error path. Signed-off-by: Pavel Machek (CIP) diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c index 6798addabd5a..785270ee337c 100644 --- a/drivers/watchdog/watchdog_dev.c +++ b/drivers/watchdog/watchdog_dev.c @@ -99

Re: [PATCH v2] checkpatch: extend author Signed-off-by check for split From: header

2020-09-20 Thread Joe Perches
On Sun, 2020-09-20 at 21:52 +0530, Dwaipayan Ray wrote: > On Sun, Sep 20, 2020 at 8:39 PM Joe Perches wrote: > > On Sun, 2020-09-20 at 14:47 +0530, Dwaipayan Ray wrote: > > > Checkpatch did not handle cases where the author From: header > > > was split into multiple lines. The author identity coul

Re: ledtrig-cpu: Limit to 4 CPUs

2020-09-20 Thread Jacek Anaszewski
On 9/20/20 5:39 PM, Marek Behun wrote: On Sun, 20 Sep 2020 16:15:09 +0200 Jacek Anaszewski wrote: Hi Pavel, On 9/19/20 11:38 AM, Pavel Machek wrote: commit 318681d3e019e39354cc6c2155a7fd1bb8e8084d Author: Pavel Machek Date: Sat Sep 19 11:34:58 2020 +0200 ledtrig-cpu: Limit to 4 CPU

Re: [PATCH v2] memory: dfl-emif: add the DFL EMIF private feature driver

2020-09-20 Thread Krzysztof Kozlowski
On Sun, Sep 20, 2020 at 06:35:38PM +0200, Krzysztof Kozlowski wrote: > On Wed, Sep 16, 2020 at 01:37:02PM +0800, Xu Yilun wrote: > > This driver is for the EMIF private feature implemented under FPGA > > Device Feature List (DFL) framework. It is used to expose memory > > interface status informati

Re: [PATCH -next v2] memory: tegra: Convert to DEFINE_SHOW_ATTRIBUTE

2020-09-20 Thread Krzysztof Kozlowski
On Thu, Sep 17, 2020 at 08:51:14PM +0800, Qinglang Miao wrote: > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Qinglang Miao > --- > v2: based on linux-next(20200917), and can be applied to > mainline cleanly now. > > drivers/memory/tegra/tegra124-emc.c | 14 +

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Andy Lutomirski
On Sat, Sep 19, 2020 at 7:57 PM Al Viro wrote: > > On Sat, Sep 19, 2020 at 05:14:41PM -0700, Andy Lutomirski wrote: > > > > 2) have you counted the syscalls that do and do not need that? > > > > No. > > Might be illuminating... > > > > 3) how many of those realistically *can* be unified with their

Re: [PATCH -next v2] memory: emif: Convert to DEFINE_SHOW_ATTRIBUTE

2020-09-20 Thread Krzysztof Kozlowski
On Thu, Sep 17, 2020 at 08:51:13PM +0800, Qinglang Miao wrote: > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Along with this change, we get additionally: > .owner = THIS_MODULE, > .llseek = seq_lseek, > > 1. The llseek method is used to change the cu

Re: [PATCH] Staging list.h: Modified comment

2020-09-20 Thread Asif Rasheed
Everything looks good. Thank you! Regards, Asif Rasheed > On 20 Sep 2020, at 7:18 PM, Paul E. McKenney wrote: > > On Sun, Sep 20, 2020 at 05:31:54PM +0400, Asif Rasheed wrote: >> We (everyone from my Operating System Lecture Section) were confused on >> whether the list is circular or not (be

Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends

2020-09-20 Thread Linus Torvalds
On Sun, Sep 20, 2020 at 1:49 AM Thomas Gleixner wrote: > > Actually most usage sites of kmap atomic do not need page faults to be > disabled at all. Right. I think the pagefault disabling has (almost) nothing at all to do with the kmap() itself - it comes from the "atomic" part, not the "kmap" pa

<    1   2   3   4   5   >