Re: [PATCH net-next] drivers/net/wan/hdlc_fr: Improve fr_rx and add support for any Ethertype

2020-10-18 Thread Jakub Kicinski
On Fri, 16 Oct 2020 22:19:51 -0700 Xie He wrote: > 1. Change the fr_rx function to make this driver support any Ethertype > when receiving. (This driver is already able to handle any Ethertype > when sending.) > > Originally in the fr_rx function, the code that parses the long (10-byte) > header

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

2020-10-18 Thread Rustam Kovhaev
On Fri, Apr 19, 2019 at 07:36:05AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:d34f9519 usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan/tree/usb-fuzzer > console output:

Re: Fwd: [WARNING AND ERROR] may be system slow and audio and video breaking

2020-10-18 Thread Jeffrin Jose T
On Sun, 2020-10-18 at 23:03 +0200, Borislav Petkov wrote: > On Mon, Oct 19, 2020 at 01:51:34AM +0530, Jeffrin Jose T wrote: > > On Sun, 2020-10-18 at 19:49 +0200, Borislav Petkov wrote: > > > On Sun, Oct 18, 2020 at 10:42:39PM +0530, Jeffrin Jose T wrote: > > > > smpboot: Scheduler frequency

Re: [GIT PULL] Kunit next update for Linux 5.10-rc1

2020-10-18 Thread pr-tracker-bot
The pull request you sent on Sun, 18 Oct 2020 15:33:53 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux-kselftest-kunit-5.10-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7cf726a59435301046250c42131554d9ccc566b8 Thank

Re: [PATCH 1/2] Fonts: Support FONT_EXTRA_WORDS macros for font_6x8

2020-10-18 Thread Daniel Vetter
On Sun, Oct 18, 2020 at 10:45 PM Peilin Ye wrote: > > On Sun, Oct 18, 2020 at 10:33:11PM +0200, Daniel Vetter wrote: > > On Sun, Oct 18, 2020 at 10:18 PM Peilin Ye wrote: > > > 2/2 is just updating the fb documentation: > > > > > > [PATCH 2/2] docs: fb: Add font_6x8 to available built-in fonts >

Re: [GIT PULL] Mailbox changes for v5.10

2020-10-18 Thread pr-tracker-bot
The pull request you sent on Sun, 18 Oct 2020 13:22:33 -0500: > git://git.linaro.org/landing-teams/working/fujitsu/integration.git > tags/mailbox-v5.10 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/373014bb517e0bb291714fe1e232fb606d54931b Thank you! --

Re: [PATCH] arch: um: convert tasklets to use new tasklet_setup() API

2020-10-18 Thread Richard Weinberger
On Mon, Aug 17, 2020 at 11:17 AM Allen Pais wrote: > > From: Allen Pais > > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly. > >

[PATCH v12 4/4] gpio: xilinx: Utilize generic bitmap_get_value and _set_value

2020-10-18 Thread Syed Nayyar Waris
This patch reimplements the xgpio_set_multiple() function in drivers/gpio/gpio-xilinx.c to use the new generic functions: bitmap_get_value() and bitmap_set_value(). The code is now simpler to read and understand. Moreover, instead of looping for each bit in xgpio_set_multiple() function, now we

[PATCH v12 3/4] gpio: thunderx: Utilize for_each_set_clump macro

2020-10-18 Thread Syed Nayyar Waris
This patch reimplements the thunderx_gpio_set_multiple function in drivers/gpio/gpio-thunderx.c to use the new for_each_set_clump macro. Instead of looping for each bank in thunderx_gpio_set_multiple function, now we can skip bank which is not set and save cycles. Cc: Robert Richter Cc: Bartosz

Re: [GIT PULL] RCU changes for v5.10

2020-10-18 Thread Linus Torvalds
On Mon, Oct 12, 2020 at 7:14 AM Ingo Molnar wrote: > > Please pull the latest core/rcu git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > core-rcu-2020-10-12 I've pulled everything but that last merge and the PREEMPT_COUNT stuff that came with it. When Paul asked

[PATCH v12 1/4] bitops: Introduce the for_each_set_clump macro

2020-10-18 Thread Syed Nayyar Waris
This macro iterates for each group of bits (clump) with set bits, within a bitmap memory region. For each iteration, "start" is set to the bit offset of the found clump, while the respective clump value is stored to the location pointed by "clump". Additionally, the bitmap_get_value() and

[PATCH v12 2/4] lib/test_bitmap.c: Add for_each_set_clump test cases

2020-10-18 Thread Syed Nayyar Waris
The introduction of the generic for_each_set_clump macro need test cases to verify the implementation. This patch adds test cases for scenarios in which clump sizes are 8 bits, 24 bits, 30 bits and 6 bits. The cases contain situations where clump is getting split at the word boundary and also when

[PATCH v12 0/4] Introduce the for_each_set_clump macro

2020-10-18 Thread Syed Nayyar Waris
This patchset introduces a new generic version of for_each_set_clump. The previous version of for_each_set_clump8 used a fixed size 8-bit clump, but the new generic version can work with clump (n-bits) having size between 1 and BITS_PER_LONG inclusive. size less than 1 or more than

[GIT PULL] Kunit next update for Linux 5.10-rc1

2020-10-18 Thread Shuah Khan
Hi Linus, Please pull the following Kunit next update for Linux 5.10-rc1. This Kunit update for Linux 5.10-rc1 consists of: - add Kunit to kernel_init() and remove KUnit from init calls entirely. This addresses the concern Kunit would not work correctly during late init phase. - add a

[PATCH] libtraceevent: install html files

2020-10-18 Thread Sudip Mukherjee
Only the man pages were installed using "make install". Add rules to install html files also. Signed-off-by: Sudip Mukherjee --- tools/lib/traceevent/Documentation/Makefile | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 2/2] net: dsa: mv88e6xxx: Support serdes ports on MV88E6097

2020-10-18 Thread Chris Packham
On 19/10/20 9:25 am, Andrew Lunn wrote: >> I assume you're talking about the PHY Control Register 0 bit 11. If so >> that's for the internal PHYs on ports 0-7. Ports 8, 9 and 10 don't have >> PHYs. > Hi Chris > > I have a datasheet for the 6122/6121, from some corner of the web, > Part 3 of 3,

Re: [PATCH v7 6/6] rcu/segcblist: Add additional comments to explain smp_mb()

2020-10-18 Thread Alan Stern
On Sun, Oct 18, 2020 at 01:45:31PM -0700, Joel Fernandes wrote: > Hi, > Thanks Alan for your replies. You're welcome. > > > C rcubarrier+ctrldep > > > > > > (* > > > * Result: Never > > > * > > > * This litmus test shows that rcu_barrier (P1) prematurely > > > * returning by reading len 0

Re: [PATCH] tpm_tis: Disable interrupts on ThinkPad T490s

2020-10-18 Thread Jarkko Sakkinen
On Mon, Oct 19, 2020 at 12:11:44AM +0300, Jarkko Sakkinen wrote: > On Thu, Oct 15, 2020 at 02:44:30PM -0700, Jerry Snitselaar wrote: > > There is a misconfiguration in the bios of the gpio pin used for the > > interrupt in the T490s. When interrupts are enabled in the tpm_tis > > driver code this

Re: [PATCH] tpm_tis: Disable interrupts on ThinkPad T490s

2020-10-18 Thread Jarkko Sakkinen
On Thu, Oct 15, 2020 at 02:44:30PM -0700, Jerry Snitselaar wrote: > There is a misconfiguration in the bios of the gpio pin used for the > interrupt in the T490s. When interrupts are enabled in the tpm_tis > driver code this results in an interrupt storm. This was initially > reported when we

Re: Fwd: [WARNING AND ERROR] may be system slow and audio and video breaking

2020-10-18 Thread Borislav Petkov
On Mon, Oct 19, 2020 at 01:51:34AM +0530, Jeffrin Jose T wrote: > On Sun, 2020-10-18 at 19:49 +0200, Borislav Petkov wrote: > > On Sun, Oct 18, 2020 at 10:42:39PM +0530, Jeffrin Jose T wrote: > > > smpboot: Scheduler frequency invariance went wobbly, disabling! > > > [ 1112.592866] unchecked MSR

[PATCH 2/2 RESEND] docs: fb: Add font_6x8 to available built-in fonts

2020-10-18 Thread Peilin Ye
Recently we added a new 6x8 font in commit e2028c8e6bf9 ("lib/fonts: add font 6x8 for OLED display"). Add its name to the "compiled-in fonts" list. Signed-off-by: Peilin Ye --- Resending +Cc: dri-devel, sorry if I spammed. Documentation/fb/fbcon.rst | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v7 6/6] rcu/segcblist: Add additional comments to explain smp_mb()

2020-10-18 Thread Joel Fernandes
Hi, Thanks Alan for your replies. On Sat, Oct 17, 2020 at 1:24 PM Alan Stern wrote: > > [I sent this reply earlier, but since it hasn't shown up in the mailing > list archives, I may have forgotten to include the proper CC's. At the > risk of repeating myself, here it is again.] Np, I did get

Re: [PATCH 1/2] Fonts: Support FONT_EXTRA_WORDS macros for font_6x8

2020-10-18 Thread Peilin Ye
On Sun, Oct 18, 2020 at 10:33:11PM +0200, Daniel Vetter wrote: > On Sun, Oct 18, 2020 at 10:18 PM Peilin Ye wrote: > > 2/2 is just updating the fb documentation: > > > > [PATCH 2/2] docs: fb: Add font_6x8 to available built-in fonts > >

Re: [PATCH v2] iio: light: tsl2563 change of_property_read to device_property_read

2020-10-18 Thread Vaishnav M A
On Sun, Oct 18, 2020 at 8:14 PM Vaishnav M A wrote: > > On Sun, Oct 18, 2020 at 5:05 PM Jonathan Cameron wrote: > > > > On Sun, 18 Oct 2020 08:55:43 +0530 > > Vaishnav M A wrote: > > > > > replace the of_property_read_u32 for reading the amstaos,cover-comp-gain > > > property with

[PATCH v9 3/3] leds: trigger: implement a tty trigger

2020-10-18 Thread Uwe Kleine-König
Usage is as follows: myled=ledname tty=ttyS0 echo tty > /sys/class/leds/$myled/trigger echo $tty > /sys/class/leds/$myled/ttyname . When this new trigger is active it periodically checks the tty's statistics and when it changed since the last check the led is

[PATCH v9 0/3] leds: trigger: implement a tty trigger

2020-10-18 Thread Uwe Kleine-König
Hello, this is v9 of this series. Changes compared to v8 sent with Message-Id 20201012123358.1475928-1-u.kleine-koe...@pengutronix.de on Oct 12: - make struct led_trigger ledtrig_tty static - drop write-only variable firstrun (which is a remains of the changes done in v8) Both issues were

[PATCH v9 1/3] tty: rename tty_kopen() and add new function tty_kopen_shared()

2020-10-18 Thread Uwe Kleine-König
Introduce a new function tty_kopen_shared() that yields a struct tty_struct. The semantic difference to tty_kopen() is that the tty is expected to be used already. So rename tty_kopen() to tty_kopen_exclusive() for clearness, adapt the single user and put the common code in a new static helper

[PATCH v9 2/3] tty: new helper function tty_get_icount()

2020-10-18 Thread Uwe Kleine-König
For a given struct tty_struct this yields the corresponding statistics about sent and received characters (and some more) which is needed to implement an LED trigger for tty devices. The new function is then used to simplify tty_tiocgicount(). Signed-off-by: Uwe Kleine-König ---

[PATCH v4] iio:light:tsl2563 use generic fw accessors

2020-10-18 Thread Vaishnav M A
Replace of_property_read_u32() with device_property_read_u32(), when reading the amstaos,cover-comp-gain.This opens up the possibility of passing the properties during platform instantiation of the device by a suitable populated struct property_entry. Additionally, a minor change in logic is added

Re: [PATCH 1/2] Fonts: Support FONT_EXTRA_WORDS macros for font_6x8

2020-10-18 Thread Daniel Vetter
On Sun, Oct 18, 2020 at 10:18 PM Peilin Ye wrote: > > On Sun, Oct 18, 2020 at 10:09:06PM +0200, Daniel Vetter wrote: > > Adding dri-devel too, not sure anyone is still listening on linux-fbdev. > > I see, thanks! > > > On Sun, Oct 18, 2020 at 8:13 PM Peilin Ye wrote: > > > > > > Recently, in

Re: [PATCH 2/2] net: dsa: mv88e6xxx: Support serdes ports on MV88E6097

2020-10-18 Thread Andrew Lunn
> I assume you're talking about the PHY Control Register 0 bit 11. If so > that's for the internal PHYs on ports 0-7. Ports 8, 9 and 10 don't have > PHYs. Hi Chris I have a datasheet for the 6122/6121, from some corner of the web, Part 3 of 3, Gigabit PHYs and SERDES.

Re: Intel PMC driver on Broadwell system to gather C-State statistics

2020-10-18 Thread Box, David E
From: Box, David E Sent: Sunday, October 18, 2020 11:11 AM To: Paul Menzel ; Rajneesh Bhardwaj ; Vivi, Rodrigo Cc: platform-driver-...@vger.kernel.org ; Mika Westerberg ; Zha, Qipeng ; Mario Limonciello ; LKML Subject: Re: Intel PMC driver on Broadwell system to gather C-State statistics  

Re: [PATCH] checkpatch: Allow --fix removal of unnecessary break statements

2020-10-18 Thread Joe Perches
On Sun, 2020-10-18 at 13:07 -0700, Tom Rix wrote: > I like! [] > could add a '|break' here to catch the couple [] > break; > > break; Unfortunately, checkpatch is really stupid and it wouldn't catch those cases as there are blank lines between the existing consecutive break statements. It would

Re: [PATCH 1/2] Fonts: Support FONT_EXTRA_WORDS macros for font_6x8

2020-10-18 Thread Peilin Ye
On Sun, Oct 18, 2020 at 10:09:06PM +0200, Daniel Vetter wrote: > Adding dri-devel too, not sure anyone is still listening on linux-fbdev. I see, thanks! > On Sun, Oct 18, 2020 at 8:13 PM Peilin Ye wrote: > > > > Recently, in commit 6735b4632def ("Fonts: Support FONT_EXTRA_WORDS macros > > for

Re: [PATCH v7 6/6] rcu/segcblist: Add additional comments to explain smp_mb()

2020-10-18 Thread Joel Fernandes
On Sat, Oct 17, 2020 at 7:31 AM Alan Stern wrote: > > On Fri, Oct 16, 2020 at 09:27:53PM -0400, j...@joelfernandes.org wrote: > > Adding Alan as well as its memory barrier discussion ;-) > > I don't know the internals of how RCU works, so I'll just speak to the > litmus test itself, ignoring

Re: [PATCH v5 2/4] leds: Add driver for Qualcomm LPG

2020-10-18 Thread Andy Shevchenko
On Sat, Oct 17, 2020 at 8:41 AM Bjorn Andersson wrote: > > The Light Pulse Generator (LPG) is a PWM-block found in a wide range of > PMICs from Qualcomm. It can operate on fixed parameters or based on a > lookup-table, altering the duty cycle over time - which provides the > means for e.g.

Re: [PATCH 2/2] net: dsa: mv88e6xxx: Support serdes ports on MV88E6097

2020-10-18 Thread Chris Packham
On 19/10/20 5:16 am, Andrew Lunn wrote: > On Tue, Oct 13, 2020 at 03:18:58PM +1300, Chris Packham wrote: >> Implement serdes_power, serdes_get_lane and serdes_pcs_get_state ops for >> the MV88E6097 so that ports 8 & 9 can be supported as serdes ports and >> directly connected to other network

Re: [PATCH 1/2] Fonts: Support FONT_EXTRA_WORDS macros for font_6x8

2020-10-18 Thread Daniel Vetter
Adding dri-devel too, not sure anyone is still listening on linux-fbdev. On Sun, Oct 18, 2020 at 8:13 PM Peilin Ye wrote: > > Recently, in commit 6735b4632def ("Fonts: Support FONT_EXTRA_WORDS macros > for built-in fonts"), we wrapped each of our built-in data buffers in a > `font_data`

Re: [PATCH] checkpatch: Allow --fix removal of unnecessary break statements

2020-10-18 Thread Tom Rix
I like! On 10/18/20 12:49 PM, Joe Perches wrote: > switch/case use of break after a return or goto is unnecessary. > > There is an existing warning for these uses, so add a --fix option too. > > Signed-off-by: Joe Perches > --- > > For today's next, this would remove ~300 instances like: > >

Re: [PATCH v3] iio: proximity: vl53l0x-i2c add i2c_device_id

2020-10-18 Thread Vaishnav M A
On Mon, Oct 19, 2020 at 12:00 AM Andy Shevchenko wrote: > > On Sun, Oct 18, 2020 at 6:53 PM Vaishnav M A wrote: > > > > Add i2c_device_id table for the vl53l0x-i2c driver, > > helps in device instantiation using i2c_new_client_device > > or from userspace in cases where device-tree based

[PATCH] staging: r8188eu: inline rtw_init_netdev_name()

2020-10-18 Thread Ivan Safonov
The rtw_init_netdev_name() is a small function that is used once and does not encapsulate any logic. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/osdep_intf.h | 1 - drivers/staging/rtl8188eu/os_dep/os_intfs.c| 9 - drivers/staging/rtl8188eu/os_dep/usb_intf.c

Re: [PATCH v3] iio: light: vcnl4035 add i2c_device_id

2020-10-18 Thread Vaishnav M A
On Sun, Oct 18, 2020 at 11:59 PM Andy Shevchenko wrote: > > On Sun, Oct 18, 2020 at 6:47 PM Vaishnav M A wrote: > > > > Add i2c_device_id table for the vl53l0x-i2c driver, > > helps in device instantiation using i2c_new_client_device > > In all your patches please refer to the functions like

[PATCH AUTOSEL 5.9 004/111] crypto: ccp - fix error handling

2020-10-18 Thread Sasha Levin
From: Pavel Machek [ Upstream commit e356c49c6cf0db3f00e1558749170bd56e47652d ] Fix resource leak in error handling. Signed-off-by: Pavel Machek (CIP) Acked-by: John Allen Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/ccp/ccp-ops.c | 2 +- 1 file changed, 1

[PATCH AUTOSEL 5.9 002/111] block: ratelimit handle_bad_sector() message

2020-10-18 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit f4ac712e4fe009635344b9af5d890fe25fcc8c0d ] syzbot is reporting unkillable task [1], for the caller is failing to handle a corrupted filesystem image which attempts to access beyond the end of the device. While we need to fix the caller, flooding the console

[PATCH AUTOSEL 5.9 010/111] media: sti: Fix reference count leaks

2020-10-18 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit 6f4432bae9f2d12fc1815b5e26cc07e69bcad0df ] pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code, causing incorrect ref count if pm_runtime_put_noidle() is not called in error handling paths. Thus call

[PATCH AUTOSEL 5.9 005/111] x86/asm: Replace __force_order with a memory clobber

2020-10-18 Thread Sasha Levin
From: Arvind Sankar [ Upstream commit aa5cacdc29d76a005cbbee018a47faa6e724dd2d ] The CRn accessor functions use __force_order as a dummy operand to prevent the compiler from reordering CRn reads/writes with respect to each other. The fact that the asm is volatile should be enough to prevent

[PATCH AUTOSEL 5.9 006/111] x86/mce: Add Skylake quirk for patrol scrub reported errors

2020-10-18 Thread Sasha Levin
From: Borislav Petkov [ Upstream commit fd258dc4442c5c1c069c6b5b42bfe7d10cddda95 ] The patrol scrubber in Skylake and Cascade Lake systems can be configured to report uncorrected errors using a special signature in the machine check bank and to signal using CMCI instead of machine check.

[PATCH AUTOSEL 5.9 007/111] media: firewire: fix memory leak

2020-10-18 Thread Sasha Levin
From: Pavel Machek [ Upstream commit b28e32798c78a346788d412f1958f36bb760ec03 ] Fix memory leak in node_probe. Signed-off-by: Pavel Machek (CIP) Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/firewire/firedtv-fw.c | 6 --

[PATCH AUTOSEL 5.9 017/111] media: bdisp: Fix runtime PM imbalance on error

2020-10-18 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit dbd2f2dc025f9be8ae063e4f270099677238f620 ] 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. Signed-off-by: Dinghao

[PATCH AUTOSEL 5.9 008/111] media: ati_remote: sanity check for both endpoints

2020-10-18 Thread Sasha Levin
From: Oliver Neukum [ Upstream commit a8be80053ea74bd9c3f9a3810e93b802236d6498 ] If you do sanity checks, you should do them for both endpoints. Hence introduce checking for endpoint type for the output endpoint, too. Reported-by: syzbot+998261c2ae5932458...@syzkaller.appspotmail.com

[PATCH AUTOSEL 5.9 015/111] media: platform: s3c-camif: Fix runtime PM imbalance on error

2020-10-18 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit dafa3605fe60d5a61239d670919b2a36e712481e ] 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. Also, call

[PATCH AUTOSEL 5.9 030/111] media: venus: fixes for list corruption

2020-10-18 Thread Sasha Levin
From: Vikash Garodia [ Upstream commit e1c69c4eef61ffe295b747992c6fd849e6cd747d ] There are few list handling issues while adding and deleting node in the registered buf list in the driver. 1. list addition - buffer added into the list during buf_init while not deleted during cleanup. 2. list

[PATCH AUTOSEL 5.9 032/111] fs: dlm: fix configfs memory leak

2020-10-18 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 3d2825c8c6105b0f36f3ff72760799fa2e71420e ] This patch fixes the following memory detected by kmemleak and umount gfs2 filesystem which removed the last lockspace: unreferenced object 0x9264f482f600 (size 192): comm "dlm_controld", pid 325, jiffies

[PATCH AUTOSEL 5.9 029/111] media: atomisp: fix memleak in ia_css_stream_create

2020-10-18 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit c1bca5b5ced0cbd779d56f60cdbc9f5e6f6449fe ] When aspect_ratio_crop_init() fails, curr_stream needs to be freed just like what we've done in the following error paths. However, current code is returning directly and ends up leaking memory. Signed-off-by:

[PATCH AUTOSEL 5.9 026/111] seccomp: kill process instead of thread for unknown actions

2020-10-18 Thread Sasha Levin
From: Rich Felker [ Upstream commit 4d671d922d51907bc41f1f7f2dc737c928ae78fd ] Asynchronous termination of a thread outside of the userspace thread library's knowledge is an unsafe operation that leaves the process in an inconsistent, corrupt, and possibly unrecoverable state. In order to make

[PATCH AUTOSEL 5.9 012/111] media: exynos4-is: Fix a reference count leak due to pm_runtime_get_sync

2020-10-18 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit c47f7c779ef0458a58583f00c9ed71b7f5a4d0a2 ] On calling pm_runtime_get_sync() the reference count of the device is incremented. In case of failure, decrement the reference count before returning the error. Signed-off-by: Qiushi Wu Signed-off-by: Hans Verkuil

[PATCH AUTOSEL 5.9 016/111] media: platform: sti: hva: Fix runtime PM imbalance on error

2020-10-18 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit d912a1d9e9afe69c6066c1ceb6bfc09063074075 ] 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. Signed-off-by: Dinghao

[PATCH AUTOSEL 5.9 020/111] crypto: hisilicon - fixed memory allocation error

2020-10-18 Thread Sasha Levin
From: Longfang Liu [ Upstream commit 24efcec2919afa7d56f848c83a605b46c8042a53 ] 1. Fix the bug of 'mac' memory leak as allocating 'pbuf' failing. 2. Fix the bug of 'qps' leak as allocating 'qp_ctx' failing. Signed-off-by: Longfang Liu Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.9 025/111] media: uvcvideo: Ensure all probed info is returned to v4l2

2020-10-18 Thread Sasha Levin
From: Adam Goode [ Upstream commit 8a652a17e3c005dcdae31b6c8fdf14382a29cbbe ] bFrameIndex and bFormatIndex can be negotiated by the camera during probing, resulting in the camera choosing a different format than expected. v4l2 can already accommodate such changes, but the code was not updating

[PATCH AUTOSEL 5.9 021/111] spi: fsi: Fix clock running too fast

2020-10-18 Thread Sasha Levin
From: Brad Bishop [ Upstream commit 0b546bbe9474ff23e6843916ad6d567f703b2396 ] Use a clock divider tuned to a 200MHz FSI bus frequency (the maximum). Use of the previous divider at 200MHz results in corrupt data from endpoint devices. Ideally the clock divider would be calculated from the FSI

[PATCH AUTOSEL 5.9 035/111] ipv6/icmp: l3mdev: Perform icmp error route lookup on source device routing table (v2)

2020-10-18 Thread Sasha Levin
From: Mathieu Desnoyers [ Upstream commit 272928d1cdacfc3b55f605cb0e9115832ecfb20c ] As per RFC4443, the destination address field for ICMPv6 error messages is copied from the source address field of the invoking packet. In configurations with Virtual Routing and Forwarding tables, looking up

[PATCH AUTOSEL 5.9 031/111] notifier: Fix broken error handling pattern

2020-10-18 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 70d932985757fbe978024db313001218e9f8fe5c ] The current notifiers have the following error handling pattern all over the place: int err, nr; err = __foo_notifier_call_chain(, val_up, v, -1, ); if (err & NOTIFIER_STOP_MASK)

[PATCH AUTOSEL 5.9 033/111] media: venus: core: Fix error handling in probe

2020-10-18 Thread Sasha Levin
From: Rajendra Nayak [ Upstream commit 98cd831088c64aa8fe7e1d2a8bb94b6faba0462b ] Post a successful pm_ops->core_get, an error in probe should exit by doing a pm_ops->core_put which seems to be missing. So fix it. Signed-off-by: Rajendra Nayak Reviewed-by: Bjorn Andersson Signed-off-by:

[PATCH AUTOSEL 5.9 040/111] libbpf: Close map fd if init map slots failed

2020-10-18 Thread Sasha Levin
From: Hangbin Liu [ Upstream commit a0f2b7acb4b1d29127ff99c714233b973afd1411 ] Previously we forgot to close the map fd if bpf_map_update_elem() failed during map slot init, which will leak map fd. Let's move map slot initialization to new function init_map_slots() to simplify the code. And

[PATCH AUTOSEL 5.9 042/111] PM: hibernate: remove the bogus call to get_gendisk() in software_resume()

2020-10-18 Thread Sasha Levin
From: Christoph Hellwig [ Upstream commit 428805c0c5e76ef643b1fbc893edfb636b3d8aef ] get_gendisk grabs a reference on the disk and file operation, so this code will leak both of them while having absolutely no use for the gendisk itself. This effectively reverts commit 2df83fa4bce421f ("PM /

[PATCH AUTOSEL 5.9 034/111] media: venus: core: Fix runtime PM imbalance in venus_probe

2020-10-18 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit bbe516e976fce538db96bd2b7287df942faa14a3 ] 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. For other error paths

[PATCH AUTOSEL 5.9 038/111] mac80211: handle lack of sband->bitrates in rates

2020-10-18 Thread Sasha Levin
From: Thomas Pedersen [ Upstream commit 8b783d104e7f40684333d2ec155fac39219beb2f ] Even though a driver or mac80211 shouldn't produce a legacy bitrate if sband->bitrates doesn't exist, don't crash if that is the case either. This fixes a kernel panic if station dump is run before last_rate can

[PATCH AUTOSEL 5.9 039/111] staging: wfx: fix handling of MMIC error

2020-10-18 Thread Sasha Levin
From: Jérôme Pouiller [ Upstream commit 8d350c14ee5eb62ecd40b0991248bfbce511954d ] As expected, when the device detect a MMIC error, it returns a specific status. However, it also strip IV from the frame (don't ask me why). So, with the current code, mac80211 detects a corrupted frame and it

[PATCH AUTOSEL 5.9 041/111] bpf: Use raw_spin_trylock() for pcpu_freelist_push/pop in NMI

2020-10-18 Thread Sasha Levin
From: Song Liu [ Upstream commit 39d8f0d1026a990604770a658708f5845f7dbec0 ] Recent improvements in LOCKDEP highlighted a potential A-A deadlock with pcpu_freelist in NMI: ./tools/testing/selftests/bpf/test_progs -t stacktrace_build_id_nmi [ 18.984807] [

[PATCH AUTOSEL 5.9 022/111] blk-mq: always allow reserved allocation in hctx_may_queue

2020-10-18 Thread Sasha Levin
From: Ming Lei [ Upstream commit 285008501c65a3fcee05d2c2c26cbf629ceff2f0 ] NVMe shares tagset between fabric queue and admin queue or between connect_q and NS queue, so hctx_may_queue() can be called to allocate request for these queues. Tags can be reserved in these tagset. Before error

[PATCH AUTOSEL 5.9 044/111] scsi: target: core: Add CONTROL field for trace events

2020-10-18 Thread Sasha Levin
From: Roman Bolshakov [ Upstream commit 7010645ba7256992818b518163f46bd4cdf8002a ] trace-cmd report doesn't show events from target subsystem because scsi_command_size() leaks through event format string: [target:target_sequencer_start] function scsi_command_size not defined

[PATCH AUTOSEL 5.9 053/111] selftests/bpf: Fix overflow tests to reflect iter size increase

2020-10-18 Thread Sasha Levin
From: Alan Maguire [ Upstream commit eb58bbf2e5c7917aa30bf8818761f26bbeeb2290 ] bpf iter size increase to PAGE_SIZE << 3 means overflow tests assuming page size need to be bumped also. Signed-off-by: Alan Maguire Signed-off-by: Alexei Starovoitov Link:

[PATCH AUTOSEL 5.9 047/111] usb: dwc3: Add splitdisable quirk for Hisilicon Kirin Soc

2020-10-18 Thread Sasha Levin
From: Yu Chen [ Upstream commit f580170f135af14e287560d94045624d4242d712 ] SPLIT_BOUNDARY_DISABLE should be set for DesignWare USB3 DRD Core of Hisilicon Kirin Soc when dwc3 core act as host. [mchehab: dropped a dev_dbg() as only traces are now allowwed on this driver] Signed-off-by: Yu Chen

[PATCH AUTOSEL 5.9 054/111] USB: cdc-acm: handle broken union descriptors

2020-10-18 Thread Sasha Levin
From: Johan Hovold [ Upstream commit 960c7339de27c6d6fec13b54880501c3576bb08d ] Handle broken union functional descriptors where the master-interface doesn't exist or where its class is of neither Communication or Data type (as required by the specification) by falling back to

[PATCH AUTOSEL 5.9 049/111] rtw88: pci: Power cycle device during shutdown

2020-10-18 Thread Sasha Levin
From: Kai-Heng Feng [ Upstream commit 44492e70adc8086c42d3745d21d591657a427f04 ] There are reports that 8822CE fails to work rtw88 with "failed to read DBI register" error. Also I have a system with 8723DE which freezes the whole system when the rtw88 is probing the device. According to [1],

[PATCH AUTOSEL 5.9 059/111] HID: multitouch: Lenovo X1 Tablet Gen3 trackpoint and buttons

2020-10-18 Thread Sasha Levin
From: Mikael Wikström [ Upstream commit 140958da9ab53a7df9e9ccc7678ea64655279ac1 ] One more device that needs 40d5bb87 to resolve regression for the trackpoint and three mouse buttons on the type cover of the Lenovo X1 Tablet Gen3. It is probably also needed for the Lenovo X1 Tablet Gen2 with

[PATCH AUTOSEL 5.9 046/111] misc: vop: add round_up(x,4) for vring_size to avoid kernel panic

2020-10-18 Thread Sasha Levin
From: Sherry Sun [ Upstream commit cc1a2679865a94b83804822996eed010a50a7c1d ] Since struct _mic_vring_info and vring are allocated together and follow vring, if the vring_size() is not four bytes aligned, which will cause the start address of struct _mic_vring_info is not four byte aligned. For

[PATCH AUTOSEL 5.9 055/111] mt76: mt7915: do not do any work in napi poll after calling napi_complete_done()

2020-10-18 Thread Sasha Levin
From: Felix Fietkau [ Upstream commit 38b04398c532e9bb9aa90fc07846ad0b0845fe94 ] Fixes a race condition where multiple tx cleanup or sta poll tasks could run in parallel. Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7915/dma.c | 9

[PATCH AUTOSEL 5.9 050/111] udf: Limit sparing table size

2020-10-18 Thread Sasha Levin
From: Jan Kara [ Upstream commit 44ac6b829c4e173fdf6df18e6dd86aecf9a3dc99 ] Although UDF standard allows it, we don't support sparing table larger than a single block. Check it during mount so that we don't try to access memory beyond end of buffer. Reported-by:

[PATCH AUTOSEL 5.9 065/111] dma-direct: Fix potential NULL pointer dereference

2020-10-18 Thread Sasha Levin
From: Thomas Tai [ Upstream commit f959dcd6ddfd29235030e8026471ac1b022ad2b0 ] When booting the kernel v5.9-rc4 on a VM, the kernel would panic when printing a warning message in swiotlb_map(). The dev->dma_mask must not be a NULL pointer when calling the dma mapping layer. A NULL pointer check

[PATCH AUTOSEL 5.9 063/111] drm/panfrost: add support for vendor quirk

2020-10-18 Thread Sasha Levin
From: Neil Armstrong [ Upstream commit 91e89097b86f566636ea5a7329c79d5521be46d2 ] The T820, G31 & G52 GPUs integrated by Amlogic in the respective GXM, G12A/SM1 & G12B SoCs needs a quirk in the PWR registers after each reset. This adds a callback in the device compatible struct of permit this.

[PATCH AUTOSEL 5.9 064/111] bpf: Limit caller's stack depth 256 for subprogs with tailcalls

2020-10-18 Thread Sasha Levin
From: Maciej Fijalkowski [ Upstream commit 7f6e4312e15a5c370e84eaa685879b6bdcc717e4 ] Protect against potential stack overflow that might happen when bpf2bpf calls get combined with tailcalls. Limit the caller's stack depth for such case down to 256 so that the worst case scenario would result

[PATCH AUTOSEL 5.9 061/111] drm/panfrost: add Amlogic GPU integration quirks

2020-10-18 Thread Sasha Levin
From: Neil Armstrong [ Upstream commit afcd0c7d3d4c22afc8befcfc906db6ce3058d3ee ] This adds the required GPU quirks, including the quirk in the PWR registers at the GPU reset time and the IOMMU quirk for shareability issues observed on G52 in Amlogic G12B SoCs. Signed-off-by: Neil Armstrong

[PATCH AUTOSEL 5.9 062/111] drm/panfrost: add amlogic reset quirk callback

2020-10-18 Thread Sasha Levin
From: Neil Armstrong [ Upstream commit 110003002291525bb209f47e6dbf121a63249a97 ] The T820, G31 & G52 GPUs integrated by Amlogic in the respective GXM, G12A/SM1 & G12B SoCs needs a quirk in the PWR registers at the GPU reset time. Since the Amlogic's integration of the GPU cores with the SoC

[PATCH AUTOSEL 5.9 069/111] xfs: make sure the rt allocator doesn't run off the end

2020-10-18 Thread Sasha Levin
From: "Darrick J. Wong" [ Upstream commit 2a6ca4baed620303d414934aa1b7b0a8e7bab05f ] There's an overflow bug in the realtime allocator. If the rt volume is large enough to handle a single allocation request that is larger than the maximum bmap extent length and the rt bitmap ends exactly on a

[PATCH AUTOSEL 5.9 058/111] can: flexcan: flexcan_chip_stop(): add error handling and propagate error value

2020-10-18 Thread Sasha Levin
From: Joakim Zhang [ Upstream commit 9ad02c7f4f279504bdd38ab706fdc97d5f2b2a9c ] This patch implements error handling and propagates the error value of flexcan_chip_stop(). This function will be called from flexcan_suspend() in an upcoming patch in some SoCs which support LPSR mode. Add a new

[PATCH AUTOSEL 5.9 067/111] reiserfs: only call unlock_new_inode() if I_NEW

2020-10-18 Thread Sasha Levin
From: Eric Biggers [ Upstream commit 8859bf2b1278d064a139e3031451524a49a56bd0 ] unlock_new_inode() is only meant to be called after a new inode has already been inserted into the hash table. But reiserfs_new_inode() can call it even before it has inserted the inode, triggering the WARNING in

[PATCH AUTOSEL 5.9 066/111] misc: rtsx: Fix memory leak in rtsx_pci_probe

2020-10-18 Thread Sasha Levin
From: Keita Suzuki [ Upstream commit bc28369c6189009b66d9619dd9f09bd8c684bb98 ] When mfd_add_devices() fail, pcr->slots should also be freed. However, the current implementation does not free the member, leading to a memory leak. Fix this by adding a new goto label that frees pcr->slots.

[PATCH AUTOSEL 5.9 108/111] drm/hisilicon: Code refactoring for hibmc_drv_de

2020-10-18 Thread Sasha Levin
From: Tian Tao [ Upstream commit 13b0d4a9ae0c2d650993c48be797992eaf621332 ] The memory used to be allocated with devres helpers and released automatically. In rare circumstances, the memory's release could have happened before the DRM device got released, which would have caused memory

[PATCH AUTOSEL 5.9 084/111] scsi: qedf: Return SUCCESS if stale rport is encountered

2020-10-18 Thread Sasha Levin
From: Saurav Kashyap [ Upstream commit 10aff62fab263ad7661780816551420cea956ebb ] If SUCCESS is not returned, error handling will escalate. Return SUCCESS similar to other conditions in this function. Link: https://lore.kernel.org/r/20200907121443.5150-6-jha...@marvell.com Signed-off-by:

[PATCH AUTOSEL 5.9 072/111] Bluetooth: Only mark socket zapped after unlocking

2020-10-18 Thread Sasha Levin
From: Abhishek Pandit-Subedi [ Upstream commit 20ae4089d0afeb24e9ceb026b996bfa55c983cc2 ] Since l2cap_sock_teardown_cb doesn't acquire the channel lock before setting the socket as zapped, it could potentially race with l2cap_sock_release which frees the socket. Thus, wait until the cleanup is

[PATCH AUTOSEL 5.9 078/111] selftests/bpf: Fix test_sysctl_loop{1, 2} failure due to clang change

2020-10-18 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 7fb5eefd76394cfefb380724a87ca40b47d44405 ] Andrii reported that with latest clang, when building selftests, we have error likes: error: progs/test_sysctl_loop1.c:23:16: in function sysctl_tcp_mem i32 (%struct.bpf_sysctl*): Looks like the BPF stack

[PATCH AUTOSEL 5.9 074/111] drm/xlnx: Use devm_drm_dev_alloc

2020-10-18 Thread Sasha Levin
From: Daniel Vetter [ Upstream commit 075342ea3d93044d68f821cf91c1a1a7d2fa569e ] Gets rid of drmm_add_final_kfree, which I want to unexport so that it stops confusion people about this transitional state of rolling drm managed memory out. This also fixes the missing drm_dev_put in the error

[PATCH AUTOSEL 5.9 071/111] drm: fix double free for gbo in drm_gem_vram_init and drm_gem_vram_create

2020-10-18 Thread Sasha Levin
From: Jia Yang [ Upstream commit da62cb7230f0871c30dc9789071f63229158d261 ] I got a use-after-free report when doing some fuzz test: If ttm_bo_init() fails, the "gbo" and "gbo->bo.base" will be freed by ttm_buffer_object_destroy() in ttm_bo_init(). But then drm_gem_vram_create() and

[PATCH AUTOSEL 5.9 075/111] iomap: fix WARN_ON_ONCE() from unprivileged users

2020-10-18 Thread Sasha Levin
From: Qian Cai [ Upstream commit a805c111650cdba6ee880f528abdd03c1af82089 ] It is trivial to trigger a WARN_ON_ONCE(1) in iomap_dio_actor() by unprivileged users which would taint the kernel, or worse - panic if panic_on_warn or panic_on_taint is set. Hence, just convert it to

[PATCH AUTOSEL 5.9 077/111] scsi: qla2xxx: Warn if done() or free() are called on an already freed srb

2020-10-18 Thread Sasha Levin
From: Daniel Wagner [ Upstream commit c0014f94218ea3a312f6235febea0d626c5f2154 ] Emit a warning when ->done or ->free are called on an already freed srb. There is a hidden use-after-free bug in the driver which corrupts the srb memory pool which originates from the cleanup callbacks. An

[PATCH AUTOSEL 5.9 086/111] scsi: qedi: Protect active command list to avoid list corruption

2020-10-18 Thread Sasha Levin
From: Nilesh Javali [ Upstream commit c0650e28448d606c84f76c34333dba30f61de993 ] Protect active command list for non-I/O commands like login response, logout response, text response, and recovery cleanup of active list to avoid list corruption. Link:

[PATCH AUTOSEL 5.9 091/111] Bluetooth: btusb: Fix memleak in btusb_mtk_submit_wmt_recv_urb

2020-10-18 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit d33fe77bdf75806d785dabf90d21d962122e5296 ] When kmalloc() on buf fails, urb should be freed just like when kmalloc() on dr fails. Signed-off-by: Dinghao Liu Signed-off-by: Marcel Holtmann Signed-off-by: Sasha Levin --- drivers/bluetooth/btusb.c | 1 + 1

[PATCH AUTOSEL 5.9 085/111] scsi: qedi: Mark all connections for recovery on link down event

2020-10-18 Thread Sasha Levin
From: Nilesh Javali [ Upstream commit 4118879be3755b38171063dfd4a57611d4b20a83 ] For short time cable pulls, the in-flight I/O to the firmware is never cleaned up, resulting in the behaviour of stale I/O completion causing list_del corruption and soft lockup of the system. On link down event,

[PATCH AUTOSEL 5.9 076/111] scsi: ibmvfc: Fix error return in ibmvfc_probe()

2020-10-18 Thread Sasha Levin
From: Jing Xiangfeng [ Upstream commit 5e48a084f4e824e1b624d3fd7ddcf53d2ba69e53 ] Fix to return error code PTR_ERR() from the error handling case instead of 0. Link: https://lore.kernel.org/r/20200907083949.154251-1-jingxiangf...@huawei.com Acked-by: Tyrel Datwyler Signed-off-by: Jing

<    1   2   3   4   5   6   7   8   >