Re: [PATCH v1 3/7] perf cs-etm: Calculate per CPU metadata array size

2021-01-11 Thread Mike Leach
Hi Leo, I think there is an issue here in that your modification assumes that all cpus in the system are of the same ETM type. The original routine allowed for differing ETM types, thus differing cpu ETM field lengths between ETMv4 / ETMv3, the field size was used after the relevant magic number f

Re: [RFC PATCH net] udp: check sk for UDP GRO fraglist

2021-01-11 Thread Alexander Lobakin
From: Steffen Klassert Date: Mon, 11 Jan 2021 09:43:22 +0100 > On Mon, Jan 11, 2021 at 11:02:42AM +0900, Dongseok Yi wrote: >> On 2021-01-08 22:35, Steffen Klassert wrote: >>> On Fri, Jan 08, 2021 at 09:52:28PM +0900, Dongseok Yi wrote: It is a workaround patch. UDP/IP header of UD

re: platform/surface: Add Surface Aggregator user-space interface (static analysis issues)

2021-01-11 Thread Colin Ian King
Hi Maximilian, Static analysis of linux-next with Coverity has found several issues with the following commit: commit 178f6ab77e617c984d6520b92e747075a12676ff Author: Maximilian Luz Date: Mon Dec 21 19:39:58 2020 +0100 platform/surface: Add Surface Aggregator user-space interface The ana

Re: [PATCH v3 2/2] power: supply: mt6360_charger: add MT6360 charger support

2021-01-11 Thread Gene Chen
Sebastian Reichel 於 2021年1月7日 週四 上午4:16寫道: > > Hi Gene, > > I have a bunch of comments, please take a look at my inline > comments. > > On Thu, Dec 24, 2020 at 03:48:04PM +0800, Gene Chen wrote: > > From: Gene Chen > > > > Add basic support for the battery charger for MT6360 PMIC > > > > Signed-o

Re: [PATCH] hantro: Format IOCTLs compliance fixes

2021-01-11 Thread Ricardo Ribalda
Hi Ezequiel On Mon, Jan 11, 2021 at 12:55 PM Ricardo Ribalda wrote: > > Hi Ezequiel > > On Mon, Jan 11, 2021 at 12:48 PM Ezequiel Garcia > wrote: > > > > Hi Ricardo, > > > > On Mon, 2021-01-11 at 12:35 +0100, Ricardo Ribalda wrote: > > > Clear the reserved fields. > > > > > > Fixes: > > > fai

Re: [PATCH] sched: pull tasks when CPU is about to run SCHED_IDLE tasks

2021-01-11 Thread chin
At 2020-12-23 19:30:26, "Vincent Guittot" wrote: >On Wed, 23 Dec 2020 at 09:32, wrote: >> >> From: Chen Xiaoguang >> >> Before a CPU switches from running SCHED_NORMAL task to >> SCHED_IDLE task, trying to pull SCHED_NORMAL tasks from other > >Could you explain more in detail why you only care

Re: [RFC PATCH 6/8] sched: Report local wake up on resched blind zone within idle loop

2021-01-11 Thread Peter Zijlstra
On Sat, Jan 09, 2021 at 03:05:34AM +0100, Frederic Weisbecker wrote: > The idle loop has several need_resched() checks that make sure we don't > miss a rescheduling request. This means that any wake up performed on > the local runqueue after the last generic need_resched() check is going > to have

Re: [PATCH] mmc: sdhci-iproc: Add ACPI bindings for the rpi4

2021-01-11 Thread Stefan Wahren
Hi, Am 11.01.21 um 04:39 schrieb Jeremy Linton: > Hi, > > On 1/9/21 5:07 AM, Stefan Wahren wrote: >> Hi Jeremy, >> >> +add Nicolas >> >> Am 08.01.21 um 22:13 schrieb Jeremy Linton: >>> The rpi4 has a Arasan controller it carries over >>> from the rpi3, and a newer eMMC2 controller. >>> Because of

Re: [PATCH 21/21] vdpasim: control virtqueue support

2021-01-11 Thread Eli Cohen
On Wed, Dec 16, 2020 at 02:48:18PM +0800, Jason Wang wrote: > This patch introduces the control virtqueue support for vDPA > simulator. This is a requirement for supporting advanced features like > multiqueue. > > A requirement for control virtqueue is to isolate its memory access > from the rx/tx

Re: [PATCH] hantro: Format IOCTLs compliance fixes

2021-01-11 Thread Ezequiel Garcia
On Mon, 2021-01-11 at 13:22 +0100, Ricardo Ribalda wrote: > Hi Ezequiel > > On Mon, Jan 11, 2021 at 12:55 PM Ricardo Ribalda wrote: > > > > Hi Ezequiel > > > > On Mon, Jan 11, 2021 at 12:48 PM Ezequiel Garcia > > wrote: > > > > > > Hi Ricardo, > > > > > > On Mon, 2021-01-11 at 12:35 +0100,

Re: drivers/soc/litex/litex_soc_ctrl.c:143:34: warning: unused variable 'litex_soc_ctrl_of_match'

2021-01-11 Thread Stafford Horne
On Thu, Jan 07, 2021 at 04:04:47AM +0800, kernel test robot wrote: > Hi Pawel, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 > commit: 22447a99c97e353bde8f90c235

Re: [PATCH] gcc-plugins: fix gcc 11 indigestion with plugins...

2021-01-11 Thread Valdis Klētnieks
On Mon, 11 Jan 2021 05:56:59 -0500, I said: > > It's probably related. I'm just having a hard time understanding why 4.9 > > and 5.4 > > whine about the lack of a space, while 8.3 and 11 didn't complain... So after more digging, at least some clarity has surfaced. It looks like it's not a kerne

Re: Old platforms: bring out your dead

2021-01-11 Thread Arnd Bergmann
On Mon, Jan 11, 2021 at 1:33 AM Russell King - ARM Linux admin wrote: > On Sun, Jan 10, 2021 at 10:33:56PM +0100, Linus Walleij wrote: > > On Sun, Jan 10, 2021 at 7:16 PM Fabian Vogt wrote: > > > Am Samstag, 9. Januar 2021, 23:20:48 CET schrieb Arnd Bergmann: > > > (https://lore.kernel.org/linux-

[PATCH] VMCI: Enforce queuepair max size for IOCTL_VMCI_QUEUEPAIR_ALLOC

2021-01-11 Thread Jorgen Hansen
When create the VMCI queue pair tracking data structures on the host side, the IOCTL for creating the VMCI queue pair didn't validate the queue pair size parameters. This change adds checks for this. This avoids a memory allocation issue in qp_host_alloc_queue, as reported by nslusa...@gmx.net. Th

[PATCH] VMCI: Use set_page_dirty_lock() when unregistering guest memory

2021-01-11 Thread Jorgen Hansen
When the VMCI host support releases guest memory in the case where the VM was killed, the pinned guest pages aren't locked. Use set_page_dirty_lock() instead of set_page_dirty(). Testing done: Killed VM while having an active VMCI based vSocket connection and observed warning from ext4. With this

Re: Reply to [RFC PATCH v2 0/1] Adding support for IIO SCMI based sensors

2021-01-11 Thread Jonathan Cameron
On Sun, 10 Jan 2021 22:44:44 -0800 Jyoti Bhayana wrote: > Hi Jonathan, > > In section 4.7.2.5.1 of the specification, the following exponent is > the scale value > > uint32 axis_attributes_high > Bits[15:11] Exponent: The power-of-10 multiplier in two’s-complement > format that is applied to th

[PATCH] mfd: mt6360: Fix MFD cell names and compatibles

2021-01-11 Thread matthias . bgg
From: Matthias Brugger MFD cell names and compatibles use '_' instead of '-', which is common practice for names and the standard for DT compatibles. This will also fix the probing for the drivers already implemented (mt6360-adc and mt6360-tcpc). Fixes: 7edd363421da ("mfd: Add support for PMIC M

Re: [RFC PATCH 4/8] rcu/nocb: Trigger self-IPI on late deferred wake up before user resume

2021-01-11 Thread Frederic Weisbecker
On Mon, Jan 11, 2021 at 01:04:24PM +0100, Peter Zijlstra wrote: > > +static DEFINE_PER_CPU(struct irq_work, late_wakeup_work) = > > + IRQ_WORK_INIT(late_wakeup_func); > > + > > /** > > * rcu_user_enter - inform RCU that we are resuming userspace. > > * > > @@ -692,9 +704,17 @@ noinstr void r

[PATCH] VMCI: Stop log spew when qp allocation isn't possible

2021-01-11 Thread Jorgen Hansen
VMCI queue pair allocation is disabled, if a VM is in FT mode. In these cases, VMware Tools may still once in a while attempt to create a vSocket stream connection, resulting in multiple warnings in the kernel logs. Therefore downgrade the error log to a debug log. Reviewed-by: Vishnu Dasa Signed

Re: Old platforms: bring out your dead

2021-01-11 Thread Russell King - ARM Linux admin
On Mon, Jan 11, 2021 at 01:32:57PM +0100, Arnd Bergmann wrote: > On Mon, Jan 11, 2021 at 1:33 AM Russell King - ARM Linux admin > wrote: > > On Sun, Jan 10, 2021 at 10:33:56PM +0100, Linus Walleij wrote: > > > On Sun, Jan 10, 2021 at 7:16 PM Fabian Vogt wrote: > > > > Am Samstag, 9. Januar 2021,

Re: [PATCH v2 1/3] regulator: mt6360: Add OF match table

2021-01-11 Thread Matthias Brugger
Hi Matti, On 11/01/2021 11:32, Vaittinen, Matti wrote: > > Hello Matthias & All, > > On Mon, 2021-01-11 at 11:08 +0100, Matthias Brugger wrote: >> >> On 11/01/2021 03:18, gene_chen(陳俊宇) wrote: >>> [ Internal Use - External ] >>> >> >> Please don't top-post in the future. >> >>> Hi Matthias, >>>

[PATCH v4 0/3] rtc: s5m: driver improvements

2021-01-11 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Hopefully this time the kernel bot won't complain anymore... This is a set of improvements for the rtc-s5m driver. The first patch is new in v4: I noticed the I2C regmap is not selected by this driver's Kconfig. Two subsequent patches were already submitted separately.

[PATCH v4 3/3] rtc: s5m: use devm_i2c_new_dummy_device()

2021-01-11 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Use the managed variant of i2c_new_dummy_device() to shrink code and remove the goto label. We can drop the remove callback now too. Signed-off-by: Bartosz Golaszewski --- drivers/rtc/rtc-s5m.c | 31 +++ 1 file changed, 7 insertions(+), 24

[PATCH v4 2/3] rtc: s5m: check the return value of s5m8767_rtc_init_reg()

2021-01-11 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This function can fail if regmap operations fail so check its return value in probe(). Signed-off-by: Bartosz Golaszewski --- drivers/rtc/rtc-s5m.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rtc/rtc-s5m.c b/drivers/rtc/rtc-s5m.c index eb9dde4095a9..

[PATCH v4 1/3] rtc: s5m: select REGMAP_I2C

2021-01-11 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The rtc-s5m uses the I2C regmap but doesn't select it in Kconfig so depending on the configuration the build may fail. Fix it. Signed-off-by: Bartosz Golaszewski --- drivers/rtc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/Kconfig b/drivers/

Re: [PATCH 0/1] mm: restore full accuracy in COW page reuse

2021-01-11 Thread Matthew Wilcox
On Sun, Jan 10, 2021 at 11:26:57PM -0800, John Hubbard wrote: > IMHO, a lot of the bits in page _refcount are still being wasted (even > after GUP_PIN_COUNTING_BIAS overloading), because it's unlikely that > there are many callers of gup/pup per page. If anyone points out that > that is wrong, then

[PATCH RFC] virtio-mem: check against memhp_get_pluggable_range() which memory we can hotplug

2021-01-11 Thread David Hildenbrand
Right now, we only check against MAX_PHYSMEM_BITS - but turns out there are more restrictions of which memory we can actually hotplug, especially om arm64 or s390x once we support them: we might receive something like -E2BIG or -ERANGE from add_memory_driver_managed(), stopping device operation. S

Re: [PATCH] VMCI: Enforce queuepair max size for IOCTL_VMCI_QUEUEPAIR_ALLOC

2021-01-11 Thread Greg KH
On Mon, Jan 11, 2021 at 04:18:53AM -0800, Jorgen Hansen wrote: > When create the VMCI queue pair tracking data structures on the host > side, the IOCTL for creating the VMCI queue pair didn't validate > the queue pair size parameters. This change adds checks for this. > > This avoids a memory allo

Re: [PATCH 1/2][v2] cpufreq: intel_pstate: Add parameter to get guarantee frequency

2021-01-11 Thread Rafael J. Wysocki
On Mon, Jan 11, 2021 at 8:40 AM Chen Yu wrote: > > Add input parameter to receive guarantee pstate from > intel_pstate_get_hwp_max() > for later use. I'm not a fan of this change, because the new argument will only be needed in one place where intel_pstate_get_hwp_max() and it requires adding re

[PATCH 1/3] powerpc: get rid of small constant size cases in raw_copy_{to,from}_user()

2021-01-11 Thread Christophe Leroy
Copied from commit 4b842e4e25b1 ("x86: get rid of small constant size cases in raw_copy_{to,from}_user()") Very few call sites where that would be triggered remain, and none of those is anywhere near hot enough to bother. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/uaccess.h |

[PATCH 2/3] powerpc: Merge __put_user_size_allowed() into __put_user_size()

2021-01-11 Thread Christophe Leroy
__put_user_size_allowed() is only called from __put_user_size() now. Merge them together. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/uaccess.h | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/incl

[PATCH 3/3] powerpc: Merge raw_copy_to_user_allowed() into raw_copy_to_user()

2021-01-11 Thread Christophe Leroy
Since commit 17bc43367fc2 ("powerpc/uaccess: Implement unsafe_copy_to_user() as a simple loop"), raw_copy_to_user_allowed() is only used by raw_copy_to_user(). Merge raw_copy_to_user_allowed() into raw_copy_to_user(). Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/uaccess.h | 8 +-

Re: [PATCH v7 4/7] pwm: ntxec: Add driver for PWM function in Netronix EC

2021-01-11 Thread Thierry Reding
On Sat, Jan 09, 2021 at 07:02:17PM +0100, Jonathan Neuschäfer wrote: > The Netronix EC provides a PWM output which is used for the backlight > on some ebook readers. This patches adds a driver for the PWM output. > > The .get_state callback is not implemented, because the PWM state can't > be read

Re: [PATCH v2 1/3] regulator: mt6360: Add OF match table

2021-01-11 Thread Vaittinen, Matti
On Mon, 2021-01-11 at 13:38 +0100, Matthias Brugger wrote: > Hi Matti, > > On 11/01/2021 11:32, Vaittinen, Matti wrote: > > Hello Matthias & All, > > > > On Mon, 2021-01-11 at 11:08 +0100, Matthias Brugger wrote: > > > On 11/01/2021 03:18, gene_chen(陳俊宇) wrote: > > > > [ Internal Use - External

Re: [RFC PATCH 5/8] entry: Explicitly flush pending rcuog wakeup before last rescheduling points

2021-01-11 Thread Frederic Weisbecker
On Mon, Jan 11, 2021 at 01:08:08PM +0100, Peter Zijlstra wrote: > On Sat, Jan 09, 2021 at 03:05:33AM +0100, Frederic Weisbecker wrote: > > Following the idle loop model, cleanly check for pending rcuog wakeup > > before the last rescheduling point on resuming to user mode. This > > way we can avoid

[PATCH] drm/bridge: nwl-dsi: Avoid potential multiplication overflow on 32-bit

2021-01-11 Thread Geert Uytterhoeven
As nwl_dsi.lanes is u32, and NSEC_PER_SEC is 10L, the second multiplication in dsi->lanes * 8 * NSEC_PER_SEC will overflow on a 32-bit platform. Fix this by making the constant unsigned long long, forcing 64-bit arithmetic. While iMX8 is arm64, this driver is currently used on 64-bi

Re: [RFC PATCH 6/8] sched: Report local wake up on resched blind zone within idle loop

2021-01-11 Thread Frederic Weisbecker
On Mon, Jan 11, 2021 at 01:25:59PM +0100, Peter Zijlstra wrote: > On Sat, Jan 09, 2021 at 03:05:34AM +0100, Frederic Weisbecker wrote: > > The idle loop has several need_resched() checks that make sure we don't > > miss a rescheduling request. This means that any wake up performed on > > the local

Re: [PATCH 0/2] Remove one more platform_device_add_properties() call

2021-01-11 Thread Heikki Krogerus
On Fri, Dec 04, 2020 at 01:23:22PM +0200, Heikki Krogerus wrote: > Hi Felipe, > > On Mon, Nov 23, 2020 at 06:06:31PM +0100, Rafael J. Wysocki wrote: > > On Mon, Nov 23, 2020 at 4:32 PM Heikki Krogerus > > wrote: > > > > > > Hi, > > > > > > I originally introduced these as part of my series where

Re: 5.11-rc device reordering breaks ThinkPad rmi4 suspend

2021-01-11 Thread Rafael J. Wysocki
Hi Hugh, Thanks for the report! On Mon, Jan 11, 2021 at 5:44 AM Hugh Dickins wrote: > > Hi Rafael, > > Synaptics RMI4 SMBus touchpad on ThinkPad X1 Carbon (5th generation) > fails to suspend when running 5.11-rc kernels: bisected to > 5b6164d3465f ("driver core: Reorder devices on successful pro

[PATCH 4.4 01/38] kbuild: dont hardcode depmod path

2021-01-11 Thread Greg Kroah-Hartman
From: Dominique Martinet commit 436e980e2ed526832de822cbf13c317a458b78e1 upstream. depmod is not guaranteed to be in /sbin, just let make look for it in the path like all the other invoked programs Signed-off-by: Dominique Martinet Signed-off-by: Masahiro Yamada Signed-off-by: Greg Kroah-Hart

[PATCH 4.4 00/38] 4.4.251-rc1 review

2021-01-11 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.251 release. There are 38 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed, 13 Jan 2021 13:00:19 +. Anything rec

[PATCH 4.4 10/38] CDC-NCM: remove "connected" log message

2021-01-11 Thread Greg Kroah-Hartman
From: Roland Dreier [ Upstream commit 59b4a8fa27f5a895582ada1ae5034af7c94a57b5 ] The cdc_ncm driver passes network connection notifications up to usbnet_link_change(), which is the right place for any logging. Remove the netdev_info() duplicating this from the driver itself. This stops devices

[PATCH 4.4 11/38] vhost_net: fix ubuf refcount incorrectly when sendmsg fails

2021-01-11 Thread Greg Kroah-Hartman
From: Yunjian Wang [ Upstream commit 01e31bea7e622f1890c274f4f8bccd296aa5 ] Currently the vhost_zerocopy_callback() maybe be called to decrease the refcount when sendmsg fails in tun. The error handling in vhost handle_tx_zerocopy() will try to decrease the same refcount again. This is wrong

[PATCH 4.4 12/38] net: sched: prevent invalid Scell_log shift count

2021-01-11 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit bd1248f1ddbc48b0c30565fce897a3b6423313b8 ] Check Scell_log shift size in red_check_params() and modify all callers of red_check_params() to pass Scell_log. This prevents a shift out-of-bounds as detected by UBSAN: UBSAN: shift-out-of-bounds in ./include/ne

[PATCH 4.4 14/38] ethernet: ucc_geth: fix use-after-free in ucc_geth_remove()

2021-01-11 Thread Greg Kroah-Hartman
From: Rasmus Villemoes [ Upstream commit e925e0cd2a705aaacb0b907bb3691fcac3a973a4 ] ugeth is the netdiv_priv() part of the netdevice. Accessing the memory pointed to by ugeth (such as done by ucc_geth_memclean() and the two of_node_puts) after free_netdev() is thus use-after-free. Fixes: 80a9fa

[PATCH 4.4 17/38] USB: cdc-acm: blacklist another IR Droid device

2021-01-11 Thread Greg Kroah-Hartman
From: Sean Young commit 0ffc76539e6e8d28114f95ac25c167c37b5191b3 upstream. This device is supported by the IR Toy driver. Reported-by: Georgi Bakalski Signed-off-by: Sean Young Acked-by: Oliver Neukum Cc: stable Link: https://lore.kernel.org/r/20201227134502.4548-2-s...@mess.org Signed-off-

[PATCH 4.4 15/38] video: hyperv_fb: Fix the mmap() regression for v5.4.y and older

2021-01-11 Thread Greg Kroah-Hartman
From: Dexuan Cui db49200b1dad is backported from the mainline commit 5f1251a48c17 ("video: hyperv_fb: Fix the cache type when mapping the VRAM"), to v5.4.y and older stable branches, but unluckily db49200b1dad causes mmap() to fail for /dev/fb0 due to EINVAL: [ 5797.049560] x86/PAT: a.out:1910 m

[PATCH 4.4 03/38] lib/genalloc: fix the overflow when size is too big

2021-01-11 Thread Greg Kroah-Hartman
From: Huang Shijie [ Upstream commit 36845663843fc59c5d794e3dc0641472e3e572da ] Some graphic card has very big memory on chip, such as 32G bytes. In the following case, it will cause overflow: pool = gen_pool_create(PAGE_SHIFT, NUMA_NO_NODE); ret = gen_pool_add(pool, 0x100, SZ_32G,

[PATCH 4.4 05/38] atm: idt77252: call pci_disable_device() on error path

2021-01-11 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 8df66af5c1e5f80562fe728db5ec069b21810144 ] This error path needs to disable the pci device before returning. Fixes: ede58ef28e10 ("atm: remove deprecated use of pci api") Signed-off-by: Dan Carpenter Link: https://lore.kernel.org/r/X93dmC4NX0vbTpGp@mwanda

[PATCH 4.4 04/38] depmod: handle the case of /sbin/depmod without /sbin in PATH

2021-01-11 Thread Greg Kroah-Hartman
From: Linus Torvalds [ Upstream commit cedd1862be7e666be87ec824dabc6a2b05618f36 ] Commit 436e980e2ed5 ("kbuild: don't hardcode depmod path") stopped hard-coding the path of depmod, but in the process caused trouble for distributions that had that /sbin location, but didn't have it in the PATH (g

[PATCH 4.4 06/38] net: dcb: Validate netlink message in DCB handler

2021-01-11 Thread Greg Kroah-Hartman
From: Petr Machata [ Upstream commit 826f328e2b7e8854dd42ea44e6519cd75018e7b1 ] DCB uses the same handler function for both RTM_GETDCB and RTM_SETDCB messages. dcb_doit() bounces RTM_SETDCB mesasges if the user does not have the CAP_NET_ADMIN capability. However, the operation to be performed i

[PATCH 4.4 18/38] usb: chipidea: ci_hdrc_imx: add missing put_device() call in usbmisc_get_init_data()

2021-01-11 Thread Greg Kroah-Hartman
From: Yu Kuai commit 83a43ff80a566de8718dfc6565545a0080ec1fb5 upstream. if of_find_device_by_node() succeed, usbmisc_get_init_data() doesn't have a corresponding put_device(). Thus add put_device() to fix the exception handling for this function implementation. Fixes: ef12da914ed6 ("usb: chipid

[PATCH 4.4 02/38] workqueue: Kick a worker based on the actual activation of delayed works

2021-01-11 Thread Greg Kroah-Hartman
From: Yunfeng Ye [ Upstream commit 01341fbd0d8d4e717fc1231cdffe00343088ce0b ] In realtime scenario, We do not want to have interference on the isolated cpu cores. but when invoking alloc_workqueue() for percpu wq on the housekeeping cpu, it kick a kworker on the isolated cpu. alloc_workqueue

[PATCH 4.4 13/38] virtio_net: Fix recursive call to cpus_read_lock()

2021-01-11 Thread Greg Kroah-Hartman
From: Jeff Dike [ Upstream commit de33212f768c5d9e2fe791b008cb26f92f0aa31c ] virtnet_set_channels can recursively call cpus_read_lock if CONFIG_XPS and CONFIG_HOTPLUG are enabled. The path is: virtnet_set_channels - calls get_online_cpus(), which is a trivial wrapper around cpus_read_lock()

Re: [PATCH 2/2] perf/x86/intel/uncore: With > 8 nodes, get pci bus die id from NUMA info

2021-01-11 Thread Peter Zijlstra
On Fri, Jan 08, 2021 at 09:35:49AM -0600, Steve Wahl wrote: > + /* > + * The nodeid and idmap registers only contain enough > + * information to handle 8 nodes. On systems with more > + * than 8 nodes, we need to rely on NUMA information, > +

[PATCH 4.4 16/38] usb: gadget: enable super speed plus

2021-01-11 Thread Greg Kroah-Hartman
From: taehyun.cho commit e2459108b5a0604c4b472cae2b3cb8d3444c77fb upstream. Enable Super speed plus in configfs to support USB3.1 Gen2. This ensures that when a USB gadget is plugged in, it is enumerated as Gen 2 and connected at 10 Gbps if the host and cable are capable of it. Many in-tree gad

[PATCH 4.4 09/38] net: hdlc_ppp: Fix issues when mod_timer is called while timer is running

2021-01-11 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 1fef73597fa545c35fddc953979013882fbd4e55 ] ppp_cp_event is called directly or indirectly by ppp_rx with "ppp->lock" held. It may call mod_timer to add a new timer. However, at the same time ppp_timer may be already running and waiting for "ppp->lock". In this case,

[PATCH 4.4 08/38] net: hns: fix return value check in __lb_other_process()

2021-01-11 Thread Greg Kroah-Hartman
From: Yunjian Wang [ Upstream commit 5ede3ada3da7f050519112b81badc058190b9f9f ] The function skb_copy() could return NULL, the return value need to be checked. Fixes: b5996f11ea54 ("net: add Hisilicon Network Subsystem basic ethernet support") Signed-off-by: Yunjian Wang Signed-off-by: David

[PATCH 4.4 20/38] usb: uas: Add PNY USB Portable SSD to unusual_uas

2021-01-11 Thread Greg Kroah-Hartman
From: Thinh Nguyen commit 96ebc9c871d8a28fb22aa758dd9188a4732df482 upstream. Here's another variant PNY Pro Elite USB 3.1 Gen 2 portable SSD that hangs and doesn't respond to ATA_1x pass-through commands. If it doesn't support these commands, it should respond properly to the host. Add it to the

[PATCH 4.4 07/38] ipv4: Ignore ECN bits for fib lookups in fib_compute_spec_dst()

2021-01-11 Thread Greg Kroah-Hartman
From: Guillaume Nault [ Upstream commit 21fdca22eb7df2a1e194b8adb812ce370748b733 ] RT_TOS() only clears one of the ECN bits. Therefore, when fib_compute_spec_dst() resorts to a fib lookup, it can return different results depending on the value of the second ECN bit. For example, ECT(0) and ECT(

[PATCH 4.4 30/38] usb: gadget: Fix spinlock lockup on usb_function_deactivate

2021-01-11 Thread Greg Kroah-Hartman
From: Sriharsha Allenki commit 5cc35c224a80aa5a5a539510ef049faf0d6ed181 upstream. There is a spinlock lockup as part of composite_disconnect when it tries to acquire cdev->lock as part of usb_gadget_deactivate. This is because the usb_gadget_deactivate is called from usb_function_deactivate with

[PATCH 4.4 32/38] USB: serial: keyspan_pda: remove unused variable

2021-01-11 Thread Greg Kroah-Hartman
From: Johan Hovold Remove an unused variable which was mistakingly left by commit 37faf5061541 ("USB: serial: keyspan_pda: fix write-wakeup use-after-free") and only removed by a later change. This is needed to suppress a W=1 warning about the unused variable in the stable trees that the build b

[PATCH 4.4 38/38] x86/mtrr: Correct the range check before performing MTRR type lookups

2021-01-11 Thread Greg Kroah-Hartman
From: Ying-Tsun Huang commit cb7f4a8b1fb426a175d1708f05581939c61329d4 upstream. In mtrr_type_lookup(), if the input memory address region is not in the MTRR, over 4GB, and not over the top of memory, a write-back attribute is returned. These condition checks are for ensuring the input memory add

[PATCH 4.4 24/38] USB: usblp: fix DMA to stack

2021-01-11 Thread Greg Kroah-Hartman
From: Johan Hovold commit 020a1f453449294926ca548d8d5ca970926e8dfd upstream. Stack-allocated buffers cannot be used for DMA (on all architectures). Replace the HP-channel macro with a helper function that allocates a dedicated transfer buffer so that it can continue to be used with arguments fr

[PATCH 4.4 25/38] ALSA: usb-audio: Fix UBSAN warnings for MIDI jacks

2021-01-11 Thread Greg Kroah-Hartman
From: Takashi Iwai commit c06ccf3ebb7503706ea49fd248e709287ef385a3 upstream. The calculation of in_cables and out_cables bitmaps are done with the bit shift by the value from the descriptor, which is an arbitrary value, and can lead to UBSAN shift-out-of-bounds warnings. Fix it by filtering the

[PATCH 4.4 26/38] usb: gadget: select CONFIG_CRC32

2021-01-11 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit d7889c2020e08caab0d7e36e947f642d91015bd0 upstream. Without crc32 support, this driver fails to link: arm-linux-gnueabi-ld: drivers/usb/gadget/function/f_eem.o: in function `eem_unwrap': f_eem.c:(.text+0x11cc): undefined reference to `crc32_le' arm-linux-gnueabi-ld:

[PATCH 4.4 19/38] USB: xhci: fix U1/U2 handling for hardware with XHCI_INTEL_HOST quirk set

2021-01-11 Thread Greg Kroah-Hartman
From: Michael Grzeschik commit 5d5323a6f3625f101dbfa94ba3ef7706cce38760 upstream. The commit 0472bf06c6fd ("xhci: Prevent U1/U2 link pm states if exit latency is too long") was constraining the xhci code not to allow U1/U2 sleep states if the latency to wake up from the U-states reached the serv

[PATCH 4.9 12/45] net: hdlc_ppp: Fix issues when mod_timer is called while timer is running

2021-01-11 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 1fef73597fa545c35fddc953979013882fbd4e55 ] ppp_cp_event is called directly or indirectly by ppp_rx with "ppp->lock" held. It may call mod_timer to add a new timer. However, at the same time ppp_timer may be already running and waiting for "ppp->lock". In this case,

[PATCH 4.9 13/45] CDC-NCM: remove "connected" log message

2021-01-11 Thread Greg Kroah-Hartman
From: Roland Dreier [ Upstream commit 59b4a8fa27f5a895582ada1ae5034af7c94a57b5 ] The cdc_ncm driver passes network connection notifications up to usbnet_link_change(), which is the right place for any logging. Remove the netdev_info() duplicating this from the driver itself. This stops devices

[PATCH 4.4 27/38] usb: gadget: f_uac2: reset wMaxPacketSize

2021-01-11 Thread Greg Kroah-Hartman
From: Jerome Brunet commit 9389044f27081d6ec77730c36d5bf9a1288bcda2 upstream. With commit 913e4a90b6f9 ("usb: gadget: f_uac2: finalize wMaxPacketSize according to bandwidth") wMaxPacketSize is computed dynamically but the value is never reset. Because of this, the actual maximum packet size ca

[PATCH 4.9 03/45] lib/genalloc: fix the overflow when size is too big

2021-01-11 Thread Greg Kroah-Hartman
From: Huang Shijie [ Upstream commit 36845663843fc59c5d794e3dc0641472e3e572da ] Some graphic card has very big memory on chip, such as 32G bytes. In the following case, it will cause overflow: pool = gen_pool_create(PAGE_SHIFT, NUMA_NO_NODE); ret = gen_pool_add(pool, 0x100, SZ_32G,

[PATCH 4.9 02/45] workqueue: Kick a worker based on the actual activation of delayed works

2021-01-11 Thread Greg Kroah-Hartman
From: Yunfeng Ye [ Upstream commit 01341fbd0d8d4e717fc1231cdffe00343088ce0b ] In realtime scenario, We do not want to have interference on the isolated cpu cores. but when invoking alloc_workqueue() for percpu wq on the housekeeping cpu, it kick a kworker on the isolated cpu. alloc_workqueue

[PATCH 4.9 37/45] usb: gadget: configfs: Preserve function ordering after bind failure

2021-01-11 Thread Greg Kroah-Hartman
From: Chandana Kishori Chiluveru commit 6cd0fe91387917be48e91385a572a69dfac2f3f7 upstream. When binding the ConfigFS gadget to a UDC, the functions in each configuration are added in list order. However, if usb_add_function() fails, the failed function is put back on its configuration's func_lis

[PATCH 4.9 07/45] net: dcb: Validate netlink message in DCB handler

2021-01-11 Thread Greg Kroah-Hartman
From: Petr Machata [ Upstream commit 826f328e2b7e8854dd42ea44e6519cd75018e7b1 ] DCB uses the same handler function for both RTM_GETDCB and RTM_SETDCB messages. dcb_doit() bounces RTM_SETDCB mesasges if the user does not have the CAP_NET_ADMIN capability. However, the operation to be performed i

[PATCH 4.9 39/45] USB: serial: keyspan_pda: remove unused variable

2021-01-11 Thread Greg Kroah-Hartman
From: Johan Hovold Remove an unused variable which was mistakingly left by commit 37faf5061541 ("USB: serial: keyspan_pda: fix write-wakeup use-after-free") and only removed by a later change. This is needed to suppress a W=1 warning about the unused variable in the stable trees that the build b

[PATCH 4.9 40/45] x86/mm: Fix leak of pmd ptlock

2021-01-11 Thread Greg Kroah-Hartman
From: Dan Williams commit d1c5246e08eb64991001d97a3bd119c93edbc79a upstream. Commit 28ee90fe6048 ("x86/mm: implement free pmd/pte page interfaces") introduced a new location where a pmd was released, but neglected to run the pmd page destructor. In fact, this happened previously for a differ

[PATCH 4.9 42/45] Revert "device property: Keep secondary firmware node secondary by type"

2021-01-11 Thread Greg Kroah-Hartman
From: Bard Liao commit 47f4469970d8861bc06d2d4d45ac8200ff07c693 upstream. While commit d5dcce0c414f ("device property: Keep secondary firmware node secondary by type") describes everything correct in its commit message, the change it made does the opposite and original commit c15e1bdda436 ("devi

[PATCH 4.9 43/45] netfilter: ipset: fix shift-out-of-bounds in htable_bits()

2021-01-11 Thread Greg Kroah-Hartman
From: Vasily Averin commit 5c8193f568ae16f3242abad6518dc2ca6c8eef86 upstream. htable_bits() can call jhash_size(32) and trigger shift-out-of-bounds UBSAN: shift-out-of-bounds in net/netfilter/ipset/ip_set_hash_gen.h:151:6 shift exponent 32 is too large for 32-bit type 'unsigned int' CPU: 0 PID:

[PATCH 4.14 14/57] net: ethernet: Fix memleak in ethoc_probe

2021-01-11 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 5d41f9b7ee7a5a5138894f58846a4ffed601498a ] When mdiobus_register() fails, priv->mdio allocated by mdiobus_alloc() has not been freed, which leads to memleak. Fixes: e7f4dc3536a4 ("mdio: Move allocation of interrupts into core") Signed-off-by: Dinghao Liu Rev

[PATCH 4.9 23/45] USB: cdc-acm: blacklist another IR Droid device

2021-01-11 Thread Greg Kroah-Hartman
From: Sean Young commit 0ffc76539e6e8d28114f95ac25c167c37b5191b3 upstream. This device is supported by the IR Toy driver. Reported-by: Georgi Bakalski Signed-off-by: Sean Young Acked-by: Oliver Neukum Cc: stable Link: https://lore.kernel.org/r/20201227134502.4548-2-s...@mess.org Signed-off-

[PATCH 4.14 16/57] net: ethernet: ti: cpts: fix ethtool output when no ptp_clock registered

2021-01-11 Thread Greg Kroah-Hartman
From: Grygorii Strashko [ Upstream commit 4614792eebcbf81c60ad3604c1aeeb2b0899cea4 ] The CPTS driver registers PTP PHC clock when first netif is going up and unregister it when all netif are down. Now ethtool will show: - PTP PHC clock index 0 after boot until first netif is up; - the last ass

[PATCH 4.14 01/57] kbuild: dont hardcode depmod path

2021-01-11 Thread Greg Kroah-Hartman
From: Dominique Martinet commit 436e980e2ed526832de822cbf13c317a458b78e1 upstream. depmod is not guaranteed to be in /sbin, just let make look for it in the path like all the other invoked programs Signed-off-by: Dominique Martinet Signed-off-by: Masahiro Yamada Signed-off-by: Greg Kroah-Hart

[PATCH 4.14 10/57] qede: fix offload for IPIP tunnel packets

2021-01-11 Thread Greg Kroah-Hartman
From: Manish Chopra [ Upstream commit 5d5647dad259bb416fd5d3d87012760386d97530 ] IPIP tunnels packets are unknown to device, hence these packets are incorrectly parsed and caused the packet corruption, so disable offlods for such packets at run time. Signed-off-by: Manish Chopra Signed-off-by:

[PATCH 4.14 20/57] CDC-NCM: remove "connected" log message

2021-01-11 Thread Greg Kroah-Hartman
From: Roland Dreier [ Upstream commit 59b4a8fa27f5a895582ada1ae5034af7c94a57b5 ] The cdc_ncm driver passes network connection notifications up to usbnet_link_change(), which is the right place for any logging. Remove the netdev_info() duplicating this from the driver itself. This stops devices

[PATCH 4.14 04/57] scsi: ide: Do not set the RQF_PREEMPT flag for sense requests

2021-01-11 Thread Greg Kroah-Hartman
From: Bart Van Assche [ Upstream commit 96d86e6a80a3ab9aff81d12f9f1f2a0da2917d38 ] RQF_PREEMPT is used for two different purposes in the legacy IDE code: 1. To mark power management requests. 2. To mark requests that should preempt another request. An (old) explanation of that feature is

[PATCH 4.14 13/57] net/ncsi: Use real net-device for response handler

2021-01-11 Thread Greg Kroah-Hartman
From: John Wang [ Upstream commit 427c940558560bff2583d07fc119a21094675982 ] When aggregating ncsi interfaces and dedicated interfaces to bond interfaces, the ncsi response handler will use the wrong net device to find ncsi_dev, so that the ncsi interface will not work properly. Here, we use the

[PATCH 4.14 15/57] net-sysfs: take the rtnl lock when storing xps_cpus

2021-01-11 Thread Greg Kroah-Hartman
From: Antoine Tenart [ Upstream commit 1ad58225dba3f2f598d2c6daed4323f24547168f ] Two race conditions can be triggered when storing xps cpus, resulting in various oops and invalid memory accesses: 1. Calling netdev_set_num_tc while netif_set_xps_queue: - netif_set_xps_queue uses dev->tc_num

[PATCH 4.14 17/57] ipv4: Ignore ECN bits for fib lookups in fib_compute_spec_dst()

2021-01-11 Thread Greg Kroah-Hartman
From: Guillaume Nault [ Upstream commit 21fdca22eb7df2a1e194b8adb812ce370748b733 ] RT_TOS() only clears one of the ECN bits. Therefore, when fib_compute_spec_dst() resorts to a fib lookup, it can return different results depending on the value of the second ECN bit. For example, ECT(0) and ECT(

[PATCH 4.14 19/57] net: hdlc_ppp: Fix issues when mod_timer is called while timer is running

2021-01-11 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 1fef73597fa545c35fddc953979013882fbd4e55 ] ppp_cp_event is called directly or indirectly by ppp_rx with "ppp->lock" held. It may call mod_timer to add a new timer. However, at the same time ppp_timer may be already running and waiting for "ppp->lock". In this case,

[PATCH 4.14 36/57] USB: serial: iuu_phoenix: fix DMA from stack

2021-01-11 Thread Greg Kroah-Hartman
From: Johan Hovold commit 54d0a3ab80f49f19ee916def62fe067596833403 upstream. Stack-allocated buffers cannot be used for DMA (on all architectures) so allocate the flush command buffer using kmalloc(). Fixes: 60a8fc017103 ("USB: add iuu_phoenix driver") Cc: stable # 2.6.25 Reviewed-by: Greg

[PATCH 4.14 37/57] USB: serial: option: add LongSung M5710 module support

2021-01-11 Thread Greg Kroah-Hartman
From: Daniel Palmer commit 0e2d6795e8dbe91c2f5473564c6b25d11df3778b upstream. Add a device-id entry for the LongSung M5710 module. T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=2df3 ProdID=9d03 Rev= 1.0

[PATCH 4.14 49/57] USB: serial: keyspan_pda: remove unused variable

2021-01-11 Thread Greg Kroah-Hartman
From: Johan Hovold Remove an unused variable which was mistakingly left by commit 37faf5061541 ("USB: serial: keyspan_pda: fix write-wakeup use-after-free") and only removed by a later change. This is needed to suppress a W=1 warning about the unused variable in the stable trees that the build b

[PATCH 4.14 51/57] ALSA: hda/conexant: add a new hda codec CX11970

2021-01-11 Thread Greg Kroah-Hartman
From: bo liu commit 744a11abc56405c5a106e63da30a941b6d27f737 upstream. The current kernel does not support the cx11970 codec chip. Add a codec configuration item to kernel. [ Minor coding style fix by tiwai ] Signed-off-by: bo liu Cc: Link: https://lore.kernel.org/r/20201229035226.62120-1-bo

[PATCH 4.14 52/57] ALSA: hda/realtek - Fix speaker volume control on Lenovo C940

2021-01-11 Thread Greg Kroah-Hartman
From: Kailang Yang commit f86de9b1c0663b0a3ca2dcddec9aa910ff0fbf2c upstream. Cannot adjust speaker's volume on Lenovo C940. Applying the alc298_fixup_speaker_volume function can fix the issue. [ Additional note: C940 has I2S amp for the speaker and this needs the same initialization as Dell m

[PATCH 4.14 53/57] Revert "device property: Keep secondary firmware node secondary by type"

2021-01-11 Thread Greg Kroah-Hartman
From: Bard Liao commit 47f4469970d8861bc06d2d4d45ac8200ff07c693 upstream. While commit d5dcce0c414f ("device property: Keep secondary firmware node secondary by type") describes everything correct in its commit message, the change it made does the opposite and original commit c15e1bdda436 ("devi

[PATCH 4.14 28/57] crypto: ecdh - avoid buffer overflow in ecdh_set_secret()

2021-01-11 Thread Greg Kroah-Hartman
From: Ard Biesheuvel commit 0aa171e9b267ce7c52d3a3df7bc9c1fc0203dec5 upstream. Pavel reports that commit 17858b140bf4 ("crypto: ecdh - avoid unaligned accesses in ecdh_set_secret()") fixes one problem but introduces another: the unconditional memcpy() introduced by that commit may overflow the t

[PATCH 4.19 13/77] net: mvpp2: prs: fix PPPoE with ipv6 packet parse

2021-01-11 Thread Greg Kroah-Hartman
From: Stefan Chulski [ Upstream commit fec6079b2eeab319d9e3d074f54d3b6f623e9701 ] Current PPPoE+IPv6 entry is jumping to 'next-hdr' field and not to 'DIP' field as done for IPv4. Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit") Reported-by: Liron Himi Signe

[PATCH 4.19 02/77] workqueue: Kick a worker based on the actual activation of delayed works

2021-01-11 Thread Greg Kroah-Hartman
From: Yunfeng Ye [ Upstream commit 01341fbd0d8d4e717fc1231cdffe00343088ce0b ] In realtime scenario, We do not want to have interference on the isolated cpu cores. but when invoking alloc_workqueue() for percpu wq on the housekeeping cpu, it kick a kworker on the isolated cpu. alloc_workqueue

[PATCH 4.19 21/77] net/ncsi: Use real net-device for response handler

2021-01-11 Thread Greg Kroah-Hartman
From: John Wang [ Upstream commit 427c940558560bff2583d07fc119a21094675982 ] When aggregating ncsi interfaces and dedicated interfaces to bond interfaces, the ncsi response handler will use the wrong net device to find ncsi_dev, so that the ncsi interface will not work properly. Here, we use the

[PATCH 4.19 25/77] net: ethernet: ti: cpts: fix ethtool output when no ptp_clock registered

2021-01-11 Thread Greg Kroah-Hartman
From: Grygorii Strashko [ Upstream commit 4614792eebcbf81c60ad3604c1aeeb2b0899cea4 ] The CPTS driver registers PTP PHC clock when first netif is going up and unregister it when all netif are down. Now ethtool will show: - PTP PHC clock index 0 after boot until first netif is up; - the last ass

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