[PATCH 5.10 021/145] 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 5.10 011/145] net: mvpp2: Fix GoP port 3 Networking Complex Control configurations

2021-01-11 Thread Greg Kroah-Hartman
From: Stefan Chulski [ Upstream commit 2575bc1aa9d52a62342b57a0b7d0a12146cf6aed ] During GoP port 2 Networking Complex Control mode of operation configurations, also GoP port 3 mode of operation was wrongly set. Patch removes these configurations. Fixes: f84bf386f395 ("net: mvpp2: initialize th

[PATCH 5.10 010/145] 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 5.4 67/92] 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 5.10 001/145] i40e: Fix Error I40E_AQ_RC_EINVAL when removing VFs

2021-01-11 Thread Greg Kroah-Hartman
From: Sylwester Dziedziuch [ Upstream commit 3ac874fa84d1baaf0c0175f2a1499f5d88d528b2 ] When removing VFs for PF added to bridge there was an error I40E_AQ_RC_EINVAL. It was caused by not properly resetting and reinitializing PF when adding/removing VFs. Changed how reset is performed when addin

[PATCH 5.4 64/92] USB: yurex: fix control-URB timeout handling

2021-01-11 Thread Greg Kroah-Hartman
From: Johan Hovold commit 372c93131998c0622304bed118322d2a04489e63 upstream. Make sure to always cancel the control URB in write() so that it can be reused after a timeout or spurious CMD_ACK. Currently any further write requests after a timeout would fail after triggering a WARN() in usb_submi

[PATCH 5.4 89/92] netfilter: xt_RATEEST: reject non-null terminated string from userspace

2021-01-11 Thread Greg Kroah-Hartman
From: Florian Westphal commit 6cb56218ad9e580e519dcd23bfb3db08d8692e5a upstream. syzbot reports: detected buffer overflow in strlen [..] Call Trace: strlen include/linux/string.h:325 [inline] strlcpy include/linux/string.h:348 [inline] xt_rateest_tg_checkentry+0x2a5/0x6b0 net/netfilter/xt_RAT

[PATCH 5.10 014/145] ibmvnic: continue fatal error reset after passive init

2021-01-11 Thread Greg Kroah-Hartman
From: Lijun Pan [ Upstream commit 1f45dc22066797479072978feeada0852502e180 ] Commit f9c6cea0b385 ("ibmvnic: Skip fatal error reset after passive init") says "If the passive CRQ initialization occurs before the FATAL reset task is processed, the FATAL error reset task would try to access a CRQ me

[PATCH 5.10 005/145] 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 5.4 65/92] 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

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

2021-01-11 Thread Krzysztof Kozlowski
On Mon, Jan 11, 2021 at 01:40:26PM +0100, Bartosz Golaszewski wrote: > 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 inserti

[PATCH 5.4 92/92] KVM: x86: fix shift out of bounds reported by UBSAN

2021-01-11 Thread Greg Kroah-Hartman
From: Paolo Bonzini commit 2f80d502d627f30257ba7e3655e71c373b7d1a5a upstream. Since we know that e >= s, we can reassociate the left shift, changing the shifted number from 1 to 2 in exchange for decreasing the right hand side by 1. Reported-by: syzbot+e87846c48bf72bc85...@syzkaller.appspotmail

[PATCH 5.4 84/92] 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 5.4 91/92] 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 5.4 81/92] ALSA: hda/realtek: Enable mute and micmute LED on HP EliteBook 850 G7

2021-01-11 Thread Greg Kroah-Hartman
From: Kai-Heng Feng commit a598098cc9737f612dbab52294433fc26c51cc9b upstream. HP EliteBook 850 G7 uses the same GPIO pins as ALC285_FIXUP_HP_GPIO_LED to enable mute and micmute LED. So apply the quirk to enable the LEDs. Signed-off-by: Kai-Heng Feng Cc: Link: https://lore.kernel.org/r/202012

[PATCH 5.4 79/92] 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 5.4 88/92] 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 5.4 87/92] netfilter: x_tables: Update remaining dereference to RCU

2021-01-11 Thread Greg Kroah-Hartman
From: Subash Abhinov Kasiviswanathan commit 443d6e86f821a165fae3fc3fc13086d27ac140b1 upstream. This fixes the dereference to fetch the RCU pointer when holding the appropriate xtables lock. Reported-by: kernel test robot Fixes: cc00bcaa5899 ("netfilter: x_tables: Switch synchronization to RCU"

[PATCH 5.4 66/92] 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 5.4 83/92] btrfs: send: fix wrong file path when there is an inode with a pending rmdir

2021-01-11 Thread Greg Kroah-Hartman
From: Filipe Manana commit 0b3f407e6728d990ae1630a02c7b952c21c288d3 upstream. When doing an incremental send, if we have a new inode that happens to have the same number that an old directory inode had in the base snapshot and that old directory has a pending rmdir operation, we end up computing

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

2021-01-11 Thread Krzysztof Kozlowski
On Mon, Jan 11, 2021 at 01:40:27PM +0100, Bartosz Golaszewski wrote: > 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

[PATCH 5.4 75/92] 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 5.4 63/92] USB: serial: option: add Quectel EM160R-GL

2021-01-11 Thread Greg Kroah-Hartman
From: Bjørn Mork commit d6c1ddd938d84a1adef7e19e8efc10e1b4df5034 upstream. New modem using ff/ff/30 for QCDM, ff/00/00 for AT and NMEA, and ff/ff/ff for RMNET/QMI. T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0 D: Ver= 3.20 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs= 1 P: Ven

[PATCH 5.4 74/92] usb: gadget: configfs: Fix use-after-free issue with udc_name

2021-01-11 Thread Greg Kroah-Hartman
From: Eddie Hung commit 64e6bbfff52db4bf6785fab9cffab850b2de6870 upstream. There is a use-after-free issue, if access udc_name in function gadget_dev_desc_UDC_store after another context free udc_name in function unregister_gadget. Context 1: gadget_dev_desc_UDC_store()->unregister_gadget()-> f

[PATCH 5.4 70/92] usb: gadget: u_ether: Fix MTU size mismatch with RX packet size

2021-01-11 Thread Greg Kroah-Hartman
From: Manish Narani commit 0a88fa221ce911c331bf700d2214c5b2f77414d3 upstream. Fix the MTU size issue with RX packet size as the host sends the packet with extra bytes containing ethernet header. This causes failure when user sets the MTU size to the maximum i.e. 15412. In this case the ethernet

[PATCH 5.4 55/92] USB: cdc-wdm: Fix use after free in service_outstanding_interrupt().

2021-01-11 Thread Greg Kroah-Hartman
From: Tetsuo Handa commit 5e5ff0b4b6bcb4d17b7a26ec8bcfc7dd4651684f upstream. syzbot is reporting UAF at usb_submit_urb() [1], for service_outstanding_interrupt() is not checking WDM_DISCONNECTING before calling usb_submit_urb(). Close the race by doing same checks wdm_read() does upon retry. Al

[PATCH 5.4 72/92] 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 5.4 62/92] 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 5.4 26/92] 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 5.4 85/92] dmabuf: fix use-after-free of dmabufs file->f_inode

2021-01-11 Thread Greg Kroah-Hartman
From: Charan Teja Reddy commit 05cd84691eafcd7959a1e120d5e72c0dd98c5d91 upstream. It is observed 'use-after-free' on the dmabuf's file->f_inode with the race between closing the dmabuf file and reading the dmabuf's debug info. Consider the below scenario where P1 is closing the dma_buf file and

[PATCH v3 10/21] arm64: cpufeature: Use IDreg override in __read_sysreg_by_encoding()

2021-01-11 Thread Marc Zyngier
__read_sysreg_by_encoding() is used by a bunch of cpufeature helpers, which should take the feature override into account. Let's do that. For a good measure (and because we are likely to need to further down the line), make this helper available to the rest of the non-modular kernel. Code that ne

Re: [PATCH v1 4/7] perf cs-etm: Add PID format into metadata

2021-01-11 Thread Leo Yan
On Mon, Jan 11, 2021 at 09:45:12AM +, Suzuki Kuruppassery Poulose wrote: > Hi Leo, > > On 1/9/21 7:44 AM, Leo Yan wrote: > > It's possible for CoreSight to trace PID in either CONTEXTIDR_EL1 or > > CONTEXTIDR_EL2, the PID format info is used to distinguish the PID > > is traced in which regist

[PATCH v3 12/21] arm64: cpufeature: Add an early command-line cpufeature override facility

2021-01-11 Thread Marc Zyngier
In order to be able to override CPU features at boot time, let's add a command line parser that matches options of the form "cpureg.feature=value", and store the corresponding value into the override val/mask pair. No features are currently defined, so no expected change in functionality. Signed-

[PATCH] ASoC: wm_adsp: Fix uninitialized variable warnings

2021-01-11 Thread Richard Fitzgerald
wm_adsp_read_data_word() used if (ret) to check for an error from wm_adsp_read_raw_data_block(). While this is perfectly valid, wm_adsp_read_raw_data_block() itself uses if (ret < 0) and three calls to wm_adsp_read_data_word() also use if (ret < 0). This creates an error check chain like this:

[PATCH v3 14/21] arm64: Honor VHE being disabled from the command-line

2021-01-11 Thread Marc Zyngier
Finally we can check whether VHE is disabled on the command line, and not enable it if that's the user's wish. Signed-off-by: Marc Zyngier --- arch/arm64/kernel/hyp-stub.S | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/arch/arm64/kernel/hyp-stub.S b/arch/a

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

2021-01-11 Thread Josh Poimboeuf
On Mon, Jan 11, 2021 at 07:31:17AM -0500, Valdis Klētnieks wrote: > 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 m

[PATCH v3 20/21] arm64: Defer enabling pointer authentication on boot core

2021-01-11 Thread Marc Zyngier
From: Srinivas Ramana Defer enabling pointer authentication on boot core until after its required to be enabled by cpufeature framework. This will help in controlling the feature dynamically with a boot parameter. Signed-off-by: Ajay Patil Signed-off-by: Prasad Sodagudi Signed-off-by: Srinivas

[PATCH 5.4 71/92] USB: gadget: legacy: fix return error code in acm_ms_bind()

2021-01-11 Thread Greg Kroah-Hartman
From: Yang Yingliang commit c91d3a6bcaa031f551ba29a496a8027b31289464 upstream. If usb_otg_descriptor_alloc() failed, it need return ENOMEM. Fixes: 578aa8a2b12c ("usb: gadget: acm_ms: allocate and init otg descriptor by otg capabilities") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang

[PATCH v3 19/21] arm64: cpufeatures: Allow disabling of BTI from the command-line

2021-01-11 Thread Marc Zyngier
In order to be able to disable BTI at runtime, whether it is for testing purposes, or to work around HW issues, let's add support for overriding the ID_AA64PFR1_EL1.BTI field. This is further mapped on the arm64.nobti command-line alias. Signed-off-by: Marc Zyngier --- Documentation/admin-guide

[PATCH v3 16/21] arm64: Make kvm-arm.mode={nvhe,protected} an alias of id_aa64mmfr1.vh=0

2021-01-11 Thread Marc Zyngier
Admitedly, passing id_aa64mmfr1.vh=0 on the command-line isn't that easy to understand, and it is likely that users would much prefer write "kvm-arm.mode=nvhe", or "...=protected". So here you go. This has the added advantage that we can now always honor the "kvm-arm.mode=protected" option, even w

[PATCH v3 13/21] arm64: Allow ID_AA64MMFR1_EL1.VH to be overridden from the command line

2021-01-11 Thread Marc Zyngier
As we want to be able to disable VHE at runtime, let's match "id_aa64mmfr1.vh=" from the command line as an override. This doesn't have much effect yet as our boot code doesn't look at the cpufeature, but only at the HW registers. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/cpufeature

[PATCH v3 17/21] KVM: arm64: Document HVC_VHE_RESTART stub hypercall

2021-01-11 Thread Marc Zyngier
For completeness, let's document the HVC_VHE_RESTART stub. Signed-off-by: Marc Zyngier --- Documentation/virt/kvm/arm/hyp-abi.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/virt/kvm/arm/hyp-abi.rst b/Documentation/virt/kvm/arm/hyp-abi.rst index 83cadd8186fa..1ba6

[PATCH v3 15/21] arm64: Add an aliasing facility for the idreg override

2021-01-11 Thread Marc Zyngier
In order to map the override of idregs to options that a user can easily understand, let's introduce yet another option array, which maps an option to the corresponding idreg options. Signed-off-by: Marc Zyngier --- arch/arm64/kernel/idreg-override.c | 20 1 file changed, 20

[PATCH v3 11/21] arm64: Extract early FDT mapping from kaslr_early_init()

2021-01-11 Thread Marc Zyngier
As we want to parse more options very early in the kernel lifetime, let's always map the FDT early. This is achieved by moving that code out of kaslr_early_init(). No functionnal change expected. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/setup.h | 11 +++ arch/arm64/kernel/

Re: [PATCH 1/2] pinctrl: Add driver for Awinic AW9523/B I2C GPIO Expander

2021-01-11 Thread Mark Brown
On Sun, Jan 10, 2021 at 03:32:47PM +0100, AngeloGioacchino Del Regno wrote: > Then, the set_bit/clear_bit in aw9523_irq_mask(), aw9523_irq_unmask were > replaced with calls to regmap_update_bits_async, example: Why are you trying to use the _async() versions here? Don't you need the I/O to compl

[PATCH v3 18/21] arm64: Move "nokaslr" over to the early cpufeature infrastructure

2021-01-11 Thread Marc Zyngier
Given that the early cpufeature infrastructure has borrowed quite a lot of code from the kaslr implementation, let's reimplement the matching of the "nokaslr" option with it. Signed-off-by: Marc Zyngier --- arch/arm64/kernel/idreg-override.c | 17 ++ arch/arm64/kernel/kaslr.c

[PATCH 5.4 82/92] ALSA: hda/realtek: Add two "Intel Reference board" SSID in the ALC256.

2021-01-11 Thread Greg Kroah-Hartman
From: PeiSen Hou commit ce2e79b223867b9e586021b55dee7035517a236b upstream. Add two "Intel Reference boad" SSID in the alc256. Enable "power saving mode" and Enable "headset jack mode". Signed-off-by: PeiSen Hou Cc: Link: https://lore.kernel.org/r/5978d2267f034c28973d117925ec9...@realtek.com S

Re: [PATCH net-next 2/2] drivers: net: dsa: mt7530: MT7530 optional GPIO support

2021-01-11 Thread DENG Qingfang
On Mon, Jan 11, 2021 at 7:04 PM Russell King - ARM Linux admin wrote: > > FYI, Documentation/driver-api/gpio/consumer.rst says: > > For output GPIOs, the value provided becomes the initial output value. > This helps avoid signal glitching during system startup. > > Setting the pin to be an out

[PATCH 5.4 80/92] 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 5.4 60/92] 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 v3 21/21] arm64: cpufeatures: Allow disabling of Pointer Auth from the command-line

2021-01-11 Thread Marc Zyngier
In order to be able to disable Pointer Authentication at runtime, whether it is for testing purposes, or to work around HW issues, let's add support for overriding the ID_AA64ISAR1_EL1.{GPI,GPA,API,APA} fields. This is further mapped on the arm64.nopauth command-line alias. Signed-off-by: Marc Z

[PATCH 5.4 76/92] 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 5.4 78/92] ALSA: hda/via: Fix runtime PM for Clevo W35xSS

2021-01-11 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 4bfd6247fa9164c8e193a55ef9c0ea3ee22f82d8 upstream. Clevo W35xSS_370SS with VIA codec has had the runtime PM problem that looses the power state of some nodes after the runtime resume. This was worked around by disabling the default runtime PM via a denylist entry. Sin

Re: [PATCH 0/3] arm64: cpufeature: Add filter function to control

2021-01-11 Thread Marc Zyngier
Hi Srinivas, On 2021-01-09 00:29, Srinivas Ramana wrote: This patchset adds a control function for cpufeature framework so that the feature can be controlled at runtime. Defer PAC on boot core and use the filter function added to disable PAC from command line. This will help toggling the featur

[PATCH 5.4 73/92] 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 5.4 30/92] 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 5.4 56/92] usb: dwc3: ulpi: Use VStsDone to detect PHY regs access completion

2021-01-11 Thread Greg Kroah-Hartman
From: Serge Semin commit ce722da66d3e9384aa2de9d33d584ee154e5e157 upstream. In accordance with [1] the DWC_usb3 core sets the GUSB2PHYACCn.VStsDone bit when the PHY vendor control access is done and clears it when the application initiates a new transaction. The doc doesn't say anything about th

[PATCH 5.4 07/92] 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 5.4 35/92] 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 5.4 54/92] 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 5.4 42/92] net: usb: qmi_wwan: add Quectel EM160R-GL

2021-01-11 Thread Greg Kroah-Hartman
From: "Bj�rn Mork" [ Upstream commit cfd82dfc9799c53ef109343a23af006a0f6860a9 ] New modem using ff/ff/30 for QCDM, ff/00/00 for AT and NMEA, and ff/ff/ff for RMNET/QMI. T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0 D: Ver= 3.20 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs= 1 P

[PATCH 5.4 33/92] 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 5.4 32/92] net: mvpp2: fix pkt coalescing int-threshold configuration

2021-01-11 Thread Greg Kroah-Hartman
From: Stefan Chulski [ Upstream commit 4f374d2c43a9e5e773f1dee56db63bd6b8a36276 ] The packet coalescing interrupt threshold has separated registers for different aggregated/cpu (sw-thread). The required value should be loaded for every thread but not only for 1 current cpu. Fixes: 213f428f5056

[PATCH 5.4 25/92] 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 5.4 31/92] tun: fix return value when the number of iovs exceeds MAX_SKB_FRAGS

2021-01-11 Thread Greg Kroah-Hartman
From: Yunjian Wang [ Upstream commit 950271d7cc0b4546af3549d8143c4132d6e1f138 ] Currently the tun_napi_alloc_frags() function returns -ENOMEM when the number of iovs exceeds MAX_SKB_FRAGS + 1. However this is inappropriate, we should use -EMSGSIZE instead of -ENOMEM. The following distinctions

[PATCH 5.4 50/92] crypto: asym_tpm: correct zero out potential secrets

2021-01-11 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman commit f93274ef0fe972c120c96b3207f8fce376231a60 upstream. The function derive_pub_key() should be calling memzero_explicit() instead of memset() in case the complier decides to optimize away the call to memset() because it "knows" no one is going to touch the memory anym

[PATCH 5.4 00/92] 5.4.89-rc1 review

2021-01-11 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.89 release. There are 92 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 rece

[PATCH 5.4 23/92] 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 5.4 36/92] erspan: fix version 1 check in gre_parse_header()

2021-01-11 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit 085c7c4e1c0e50d90b7d90f61a12e12b317a91e2 ] Both version 0 and version 1 use ETH_P_ERSPAN, but version 0 does not have an erspan header. So the check in gre_parse_header() is wrong, we have to distinguish version 1 from version 0. We can just check the gre heade

[PATCH 5.4 49/92] 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 5.4 57/92] 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

Re: [PATCH V2 1/3] mm/hotplug: Prevalidate the address range being added with platform

2021-01-11 Thread Oscar Salvador
On Mon, Jan 11, 2021 at 11:51:47AM +0100, David Hildenbrand wrote: > AFAIKs, all memhp_get_pluggable_range() users pass "1". > > What about the "add_pages()-only" path? I guess you refer to memremap_pages(), right? If so, moving the added memhp_range_allowed() check above the if-else might do the

[PATCH 5.4 47/92] Bluetooth: revert: hci_h5: close serdev device and free hu in h5_close

2021-01-11 Thread Greg Kroah-Hartman
From: Hans de Goede commit 5c3b5796866f85354a5ce76a28f8ffba0dcefc7e upstream. There have been multiple revisions of the patch fix the h5->rx_skb leak. Accidentally the first revision (which is buggy) and v5 have both been merged: v1 commit 70f259a3f427 ("Bluetooth: hci_h5: close serdev device a

Re: 5.11-rc device reordering breaks ThinkPad rmi4 suspend

2021-01-11 Thread Thierry Reding
On Sun, Jan 10, 2021 at 08:44:13PM -0800, 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 probe"), > and reverting tha

Re: [PATCH 00/11] scsi: libsas: Remove in_interrupt() check

2021-01-11 Thread Ahmed S. Darwish
Hi John, Jason, On Tue, Dec 22, 2020 at 12:54:58PM +, John Garry wrote: > On 22/12/2020 12:30, Jason Yan wrote: > > >  return event; > > > > > > > > > So default for phy->ha->event_thres is 32, and I can't imagine that > > > > The default value is 1024. > > Ah, 32 is the minimum allowed se

[PATCH 5.4 46/92] 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

Re: [PATCH net-next 0/2] dsa: add MT7530 GPIO support

2021-01-11 Thread Vladimir Oltean
On Mon, Jan 11, 2021 at 01:44:26PM +0800, DENG Qingfang wrote: > MT7530's LED controller can be used as GPIO controller. Add support for > it. > > DENG Qingfang (2): > dt-bindings: net: dsa: add MT7530 GPIO controller binding > drivers: net: dsa: mt7530: MT7530 optional GPIO support > > .../

[PATCH 5.4 28/92] net-sysfs: take the rtnl lock when storing xps_rxqs

2021-01-11 Thread Greg Kroah-Hartman
From: Antoine Tenart [ Upstream commit 2d57b4f142e0b03e854612b8e28978935414bced ] Two race conditions can be triggered when storing xps rxqs, 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 5.4 29/92] net-sysfs: take the rtnl lock when accessing xps_rxqs_map and num_tc

2021-01-11 Thread Greg Kroah-Hartman
From: Antoine Tenart [ Upstream commit 4ae2bb81649dc03dfc95875f02126b14b773f7ab ] Accesses to dev->xps_rxqs_map (when using dev->num_tc) should be protected by the rtnl lock, like we do for netif_set_xps_queue. I didn't see an actual bug being triggered, but let's be safe here and take the rtnl

[PATCH 5.4 43/92] 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 5.4 37/92] 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 5.4 21/92] 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 5.4 38/92] r8169: work around power-saving bug on some chip versions

2021-01-11 Thread Greg Kroah-Hartman
From: Heiner Kallweit [ Upstream commit e80bd76fbf563cc7ed8c9e9f3bbcdf59b0897f69 ] A user reported failing network with RTL8168dp (a quite rare chip version). Realtek confirmed that few chip versions suffer from a PLL power-down hw bug. Fixes: 07df5bd874f0 ("r8169: power down chip in probe") Si

[PATCH 5.4 09/92] proc: fix lookup in /proc/net subdirectories after setns(2)

2021-01-11 Thread Greg Kroah-Hartman
From: Alexey Dobriyan [ Upstream commit c6c75deda81344c3a95d1d1f606d5cee109e5d54 ] Commit 1fde6f21d90f ("proc: fix /proc/net/* after setns(2)") only forced revalidation of regular files under /proc/net/ However, /proc/net/ is unusual in the sense of /proc/net/foo handlers take netns pointer fro

[PATCH 5.4 40/92] net: dsa: lantiq_gswip: Fix GSWIP_MII_CFG(p) register access

2021-01-11 Thread Greg Kroah-Hartman
From: Martin Blumenstingl [ Upstream commit 709a3c9dff2a639966ae7d8ba6239d2b8aba036d ] There is one GSWIP_MII_CFG register for each switch-port except the CPU port. The register offset for the first port is 0x0, 0x02 for the second, 0x04 for the third and so on. Update the driver to not only re

[PATCH 4.19 68/77] 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 5.4 22/92] 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()

[PATCH 5.4 39/92] net: dsa: lantiq_gswip: Enable GSWIP_MII_CFG_EN also for internal PHYs

2021-01-11 Thread Greg Kroah-Hartman
From: Martin Blumenstingl [ Upstream commit c1a9ec7e5d577a9391660800c806c53287fca991 ] Enable GSWIP_MII_CFG_EN also for internal PHYs to make traffic flow. Without this the PHY link is detected properly and ethtool statistics for TX are increasing but there's no RX traffic coming in. Fixes: 14f

[PATCH 4.19 32/77] net: usb: qmi_wwan: add Quectel EM160R-GL

2021-01-11 Thread Greg Kroah-Hartman
From: "Bj�rn Mork" [ Upstream commit cfd82dfc9799c53ef109343a23af006a0f6860a9 ] New modem using ff/ff/30 for QCDM, ff/00/00 for AT and NMEA, and ff/ff/ff for RMNET/QMI. T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0 D: Ver= 3.20 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs= 1 P

[PATCH 4.19 75/77] netfilter: xt_RATEEST: reject non-null terminated string from userspace

2021-01-11 Thread Greg Kroah-Hartman
From: Florian Westphal commit 6cb56218ad9e580e519dcd23bfb3db08d8692e5a upstream. syzbot reports: detected buffer overflow in strlen [..] Call Trace: strlen include/linux/string.h:325 [inline] strlcpy include/linux/string.h:348 [inline] xt_rateest_tg_checkentry+0x2a5/0x6b0 net/netfilter/xt_RAT

[PATCH 4.19 26/77] tun: fix return value when the number of iovs exceeds MAX_SKB_FRAGS

2021-01-11 Thread Greg Kroah-Hartman
From: Yunjian Wang [ Upstream commit 950271d7cc0b4546af3549d8143c4132d6e1f138 ] Currently the tun_napi_alloc_frags() function returns -ENOMEM when the number of iovs exceeds MAX_SKB_FRAGS + 1. However this is inappropriate, we should use -EMSGSIZE instead of -ENOMEM. The following distinctions

[PATCH 4.19 69/77] 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.19 70/77] btrfs: send: fix wrong file path when there is an inode with a pending rmdir

2021-01-11 Thread Greg Kroah-Hartman
From: Filipe Manana commit 0b3f407e6728d990ae1630a02c7b952c21c288d3 upstream. When doing an incremental send, if we have a new inode that happens to have the same number that an old directory inode had in the base snapshot and that old directory has a pending rmdir operation, we end up computing

[PATCH 5.4 20/92] net: ethernet: mvneta: Fix error handling in mvneta_probe

2021-01-11 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 58f60329a6be35a5653edb3fd2023ccef9eb9943 ] When mvneta_port_power_up() fails, we should execute cleanup functions after label err_netdev to avoid memleak. Fixes: 41c2b6b4f0f80 ("net: ethernet: mvneta: Add back interface mode validation") Signed-off-by: Dingh

[PATCH 5.4 05/92] scsi: scsi_transport_spi: Set RQF_PM for domain validation commands

2021-01-11 Thread Greg Kroah-Hartman
From: Bart Van Assche [ Upstream commit cfefd9f8240a7b9fdd96fcd54cb029870b6d8d88 ] Disable runtime power management during domain validation. Since a later patch removes RQF_PREEMPT, set RQF_PM for domain validation commands such that these are executed in the quiesced SCSI device state. Link:

[PATCH 5.4 17/92] 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 5.4 04/92] 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 5.4 13/92] 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 5.4 16/92] ethernet: ucc_geth: set dev->max_mtu to 1518

2021-01-11 Thread Greg Kroah-Hartman
From: Rasmus Villemoes [ Upstream commit 1385ae5c30f238f81bc6528d897c6d7a0816783f ] All the buffers and registers are already set up appropriately for an MTU slightly above 1500, so we just need to expose this to the networking stack. AFAICT, there's no need to implement .ndo_change_mtu when the

[PATCH 5.4 01/92] 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

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