Re: [PATCH v6 1/4] usb: dwc3: of-simple: bail probe if no dwc3 child node

2021-04-05 Thread Greg KH
On Thu, Apr 01, 2021 at 11:36:49PM +0200, Johan Jonker wrote: > For some of the dwc3-of-simple compatible SoCs we > don't want to bind this driver to a dwc3 node, > but bind that node to the 'snps,dwc3' driver instead. > The kernel has no logic to decide which driver to bind > to if there are 2 mat

Re: [PATCH 1/2] usb: xhci-mtk: remove unnecessary assignments in periodic TT scheduler

2021-04-05 Thread Greg Kroah-Hartman
On Wed, Mar 31, 2021 at 04:30:55PM +0800, Chunfeng Yun wrote: > cc Yaqii Wu > > I'll test it , thanks Did you test this series and find any problems? If not, I'll go queue these up... thanks, greg k-h

Re: [PATCH v5 3/6] usb: typec: Port mapping utility

2021-04-05 Thread Greg Kroah-Hartman
On Thu, Apr 01, 2021 at 01:58:44PM +0300, Heikki Krogerus wrote: > Adding functions that can be used to link/unlink ports - > USB ports, TBT3/USB4 ports, DisplayPorts and so on - to > the USB Type-C connectors they are attached to inside a > system. The symlink that is created for the port device i

[PATCH] Revert "mfd: max8997: Add of_compatible to Extcon and Charger mfd_cell"

2021-04-05 Thread Timon Baetz
This reverts commit 9c03008da125c1007919a9186628af3cc105f526. commit 41a8a027f4d3 ("regulator: dt-bindings: Document charger-supply for max8997") introduced a binding which uses a property of the max8997 pmic node to configure charger supply, making subnodes for MFD cells obsolete. Signed-off-by:

Re: [PATCH v3 3/4] kernel/smp: add more data to CSD lock debugging

2021-04-05 Thread Juergen Gross
On 02.04.21 18:11, Paul E. McKenney wrote: On Fri, Apr 02, 2021 at 05:46:52PM +0200, Juergen Gross wrote: On 30.03.21 19:33, Paul E. McKenney wrote: On Wed, Mar 24, 2021 at 11:18:03AM +0100, Jürgen Groß wrote: On 02.03.21 07:28, Juergen Gross wrote: In order to help identifying problems with

Re: Patch "kbuild: Add resolve_btfids clean to root clean target" has been added to the 5.11-stable tree

2021-04-05 Thread Greg KH
On Sat, Apr 03, 2021 at 02:56:50PM -0400, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > kbuild: Add resolve_btfids clean to root clean target > > to the 5.11-stable tree which can be found at: > > http://www.kernel.org/git/?p=linux/kernel/g

Re: [PATCH v1 1/4] docs: make reporting-issues.rst official and delete reporting-bugs.rst

2021-04-05 Thread Thorsten Leemhuis
On 31.03.21 21:47, Jonathan Corbet wrote: > Greg KH writes: > >> On Tue, Mar 30, 2021 at 04:13:04PM +0200, Thorsten Leemhuis wrote: >>> Removing Documentation/admin-guide/reporting-bugs.rst will break links >>> in some of the translations. I was unsure if simply changing them to >>> Documentation

[PATCH] rockchip: enabled LAN port on NanoPi R2S

2021-04-05 Thread Tianling Shen
From: David Bauer Enable the USB3 port on the FriendlyARM NanoPi R2S. This is required for the USB3 attached LAN port to work. Signed-off-by: David Bauer Signed-off-by: Tianling Shen --- .../boot/dts/rockchip/rk3328-nanopi-r2s.dts | 23 +++ 1 file changed, 23 insertions(+)

Re: [syzbot] UBSAN: shift-out-of-bounds in detach_tasks

2021-04-05 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:e49d033b Linux 5.12-rc6 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15f7cc6ad0 kernel config: https://syzkaller.appspot.com/x/.config?x=f91155ccddaf919c dashboard link: https://syz

[PATCH] rtlwifi: Simplify locking of a skb list accesses

2021-04-05 Thread Christophe JAILLET
The 'c2hcmd_lock' spinlock is only used to protect some __skb_queue_tail() and __skb_dequeue() calls. Use the lock provided in the skb itself and call skb_queue_tail() and skb_dequeue(). These functions already include the correct locking. Signed-off-by: Christophe JAILLET --- drivers/net/wirele

Re: [PATCH 02/10] tty/sysrq: Fix issues of code indent should use tabs

2021-04-05 Thread kernel test robot
e' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Xiaofei-Tan/tty-Fix-some-coding-style-issues/20210405-113900 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing config: s390-randconfig-r016-20210405

Re: [PATCH] rockchip: enabled LAN port on NanoPi R2S

2021-04-05 Thread Chen-Yu Tsai
Hi, On Mon, Apr 5, 2021 at 3:46 PM Tianling Shen wrote: > > From: David Bauer > > Enable the USB3 port on the FriendlyARM NanoPi R2S. > This is required for the USB3 attached LAN port to work. > > Signed-off-by: David Bauer > Signed-off-by: Tianling Shen > --- > .../boot/dts/rockchip/rk3328-n

Re: [PATCH] tools/kvm_stat: fix out of date aarch64 kvm_exit reason definations

2021-04-05 Thread Stefan Raspl
On 4/3/21 11:17 AM, Zeng Tao wrote: Aarch64 kvm exit reason defination is out of date for some time, so in this patch: 1. Sync some newly introduced or missing EC definations. 2. Change the WFI to WFx. 3. Fix the comment. Not all the definations are used or usable for aarch64 kvm, but it's bette

Re: High kmalloc-32 slab cache consumption with 10k containers

2021-04-05 Thread kernel test robot
submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Bharata-B-Rao/High-kmalloc-32-slab-cache-consumption-with-10k-containers/20210405-135124 base: https://git.kernel.org/pub/scm/linux/kernel/gi

Build regressions/improvements in v5.12-rc6

2021-04-05 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v5.12-rc6[1] compared to v5.11[2]. Summarized: - build errors: +5/-0 - build warnings: +110/-8 JFYI, when comparing v5.12-rc6[1] to v5.12-rc5[3], the summaries are: - build errors: +0/-0 - build warnings: +0/-0 Note tha

[PATCH] kernel: sched: Remove unnecessary struct declaration"

2021-04-05 Thread Wan Jiabing
struct sg_lb_stats is defined at 8043rd line. The declaration and the definition are all independent on the MACRO. The declaration here is unnecessary. Remove it. Signed-off-by: Wan Jiabing --- kernel/sched/fair.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel

Re: [PATCH v3 2/2] driver core: add helper for deferred probe reason setting

2021-04-05 Thread Ahmad Fatoum
Hello Greg, On 23.03.21 16:37, Ahmad Fatoum wrote: > We now have three places within the same file doing the same operation > of freeing this pointer and setting it anew. A helper makes this > arguably easier to read, so add one. > > Reviewed-by: Andy Shevchenko > Reviewed-by: Andrzej Hajda > S

Re: [PATCH v3 0/3] watchdog: f71808e_wdt: migrate to new kernel API

2021-04-05 Thread Ahmad Fatoum
Hello, On 16.03.21 18:47, Ahmad Fatoum wrote: > On 04.02.21 18:00, Ahmad Fatoum wrote: >> This series migrates the driver to the new kernel watchdog API and >> then to the driver model. >> >> Main feedback from Guenther on v2 was that I need to split it up to >> enable review. I have done so by re

Re: [PATCH v3 2/2] driver core: add helper for deferred probe reason setting

2021-04-05 Thread Greg Kroah-Hartman
On Mon, Apr 05, 2021 at 10:27:56AM +0200, Ahmad Fatoum wrote: > Hello Greg, > > On 23.03.21 16:37, Ahmad Fatoum wrote: > > We now have three places within the same file doing the same operation > > of freeing this pointer and setting it anew. A helper makes this > > arguably easier to read, so add

Re: [PATCH 1/2] Revert "mtd: spi-nor: macronix: Add support for mx25l51245g"

2021-04-05 Thread Pratyush Yadav
On 02/04/21 11:20AM, Tudor Ambarus wrote: > This reverts commit 04b8edad262eec0d153005973dfbdd83423c0dcb. > > mx25l51245g and mx66l51235l have the same flash ID. The flash > detection returns the first entry in the flash_info array that > matches the flash ID that was read, thus for the 0xc2201a I

Re: [PATCH 4/4] dt-bindings: spi: Convert cadence-quadspi.txt to cadence-quadspi.yaml

2021-04-05 Thread Pratyush Yadav
On 01/04/21 03:13PM, Mark Brown wrote: > On Thu, Apr 01, 2021 at 01:09:32AM +0530, Pratyush Yadav wrote: > > > I did take a look by running git log on > > Documentation/devicetree/bindings/spi/ and there is no single style > > being used. Using "dt-bindings: spi:" is a popular choice. Some other

Re: [PATCH v6] RISC-V: enable XIP

2021-04-05 Thread Vitaly Wool
On Sun, Apr 4, 2021 at 10:39 AM Vitaly Wool wrote: > > On Sat, Apr 3, 2021 at 12:00 PM Alex Ghiti wrote: > > > > Hi Vitaly, > > > > Le 4/1/21 à 7:10 AM, Alex Ghiti a écrit : > > > Le 4/1/21 à 4:52 AM, Vitaly Wool a écrit : > > >> Hi Alex, > > >> > > >> On Thu, Apr 1, 2021 at 10:11 AM Alex Ghiti

Re: [PATCHv2 0/4] Enable various hardware blocks on SC7280 SoC

2021-04-05 Thread Sai Prakash Ranjan
Hi Bjorn, On 2021-03-16 00:05, Sai Prakash Ranjan wrote: This series enables various hardware blocks such as LLCC, IPCC, AOSS QMP and Coresight on SC7280 SoC. Changes in v2: * Rename qmp to power-controller (Stephen) * Drop the ipcc mailbox dt-binding from this series and send it separately

Re: [PATCHv2 2/2] iommu/arm-smmu-qcom: Move the adreno smmu specific impl earlier

2021-04-05 Thread Sai Prakash Ranjan
Hi Bjorn, On 2021-03-25 20:35, Will Deacon wrote: On Thu, Mar 25, 2021 at 01:10:12PM +0530, Sai Prakash Ranjan wrote: ... I think there is consensus on this series. I can resend if required but it still applies cleanly, let me know if you have any comments? Please resend with the bindin

Re: [PATCH] net: phy: fix PHY possibly unwork after MDIO bus resume back

2021-04-05 Thread Christian Melki
On 4/5/21 12:48 AM, Heiner Kallweit wrote: > On 04.04.2021 16:09, Heiner Kallweit wrote: >> On 04.04.2021 12:07, Joakim Zhang wrote: >>> commit 4c0d2e96ba055 ("net: phy: consider that suspend2ram may cut >>> off PHY power") invokes phy_init_hw() when MDIO bus resume, it will >>> soft reset PHY if P

Re: [PATCH 4/4] ARM: dts: Fix-up EMMC2 controller's frequency

2021-04-05 Thread Nicolas Saenz Julienne
Hi Alan, On Thu, 2021-04-01 at 11:23 -0400, Alan Cooper wrote: > Nicolas, > > Sorry, I just noticed this thread. > This is a known bug in some newer Arasan cores. > The problem happens when the difference between the core clock and the bus > clock is too great. > Limiting the clock to 200KHz mini

RE: [PATCH 2/3] fpga: region: Add fpga-region property 'power-domains'

2021-04-05 Thread Nava kishore Manne
Hi Moritz, Thanks for the response. Please find my response inline. > -Original Message- > From: Moritz Fischer > Sent: Friday, April 2, 2021 10:46 PM > To: Nava kishore Manne > Cc: m...@kernel.org; t...@redhat.com; robh...@kernel.org; Michal Simek > ; linux-f...@vger.kernel.org

Re: [PATCH rdma-next 1/8] RDMA/core: Check if client supports IB device or not

2021-04-05 Thread Leon Romanovsky
On Mon, Apr 05, 2021 at 09:20:32AM +0300, Gal Pressman wrote: > On 05/04/2021 8:49, Leon Romanovsky wrote: > > From: Parav Pandit > > > > RDMA devices are of different transport(iWarp, IB, RoCE) and have > > different attributes. > > Not all clients are interested in all type of devices. > > > >

Re: [PATCH] rockchip: enabled LAN port on NanoPi R2S

2021-04-05 Thread Tianling Shen
Hi Chen-Yu, On 2021-04-05 16:14, Chen-Yu Tsai wrote: > > Hi, > > On Mon, Apr 5, 2021 at 3:46 PM Tianling Shen wrote: > > > > From: David Bauer > > > > Enable the USB3 port on the FriendlyARM NanoPi R2S. > > This is required for the USB3 attached LAN port to work. > > > > Signed-off-by: David Ba

[PATCH 4.4 01/28] selinux: vsock: Set SID for socket returned by accept()

2021-04-05 Thread Greg Kroah-Hartman
From: David Brazdil [ Upstream commit 1f935e8e72ec28dddb2dc0650b3b6626a293d94b ] For AF_VSOCK, accept() currently returns sockets that are unlabelled. Other socket families derive the child's SID from the SID of the parent and the SID of the incoming packet. This is typically done as the connect

[PATCH 4.4 10/28] staging: comedi: cb_pcidas: fix request_irq() warn

2021-04-05 Thread Greg Kroah-Hartman
From: Tong Zhang [ Upstream commit 2e5848a3d86f03024ae096478bdb892ab3d79131 ] request_irq() wont accept a name which contains slash so we need to repalce it with something else -- otherwise it will trigger a warning and the entry in /proc/irq/ will not be created since the .name might be used by

[PATCH 4.4 11/28] staging: comedi: cb_pcidas64: fix request_irq() warn

2021-04-05 Thread Greg Kroah-Hartman
From: Tong Zhang [ Upstream commit d2d106fe3badfc3bf0dd3899d1c3f210c7203eab ] request_irq() wont accept a name which contains slash so we need to repalce it with something else -- otherwise it will trigger a warning and the entry in /proc/irq/ will not be created since the .name might be used by

[PATCH 4.4 12/28] ext4: do not iput inode under running transaction in ext4_rename()

2021-04-05 Thread Greg Kroah-Hartman
From: zhangyi (F) [ Upstream commit 5dccdc5a1916d4266edd251f20113a5c495f ] In ext4_rename(), when RENAME_WHITEOUT failed to add new entry into directory, it ends up dropping new created whiteout inode under the running transaction. After commit <9b88f9fb0d2> ("ext4: Do not iput inode under r

[PATCH 4.4 14/28] net: wan/lmc: unregister device when no matching device is found

2021-04-05 Thread Greg Kroah-Hartman
From: Tong Zhang [ Upstream commit 62e69bc419772638369eff8ff81340bde8aceb61 ] lmc set sc->lmc_media pointer when there is a matching device. However, when no matching device is found, this pointer is NULL and the following dereference will result in a null-ptr-deref. To fix this issue, unregist

[PATCH 4.4 13/28] appletalk: Fix skb allocation size in loopback case

2021-04-05 Thread Greg Kroah-Hartman
From: Doug Brown [ Upstream commit 39935dccb21c60f9bbf1bb72d22ab6fd14ae7705 ] If a DDP broadcast packet is sent out to a non-gateway target, it is also looped back. There is a potential for the loopback device to have a longer hardware header length than the original target route's device, which

[PATCH 4.4 15/28] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-04-05 Thread Greg Kroah-Hartman
From: Ikjoon Jang commit 625bd5a616ceda4840cd28f82e957c8ced394b6a upstream. Logitech ConferenceCam Connect is a compound USB device with UVC and UAC. Not 100% reproducible but sometimes it keeps responding STALL to every control transfer once it receives get_freq request. This patch adds 046d:0

[PATCH 4.4 16/28] ALSA: hda/realtek: call alc_update_headset_mode() in hp_automute_hook

2021-04-05 Thread Greg Kroah-Hartman
From: Hui Wang commit e54f30befa7990b897189b44a56c1138c6bfdbb5 upstream. We found the alc_update_headset_mode() is not called on some machines when unplugging the headset, as a result, the mode of the ALC_HEADSET_MODE_UNPLUGGED can't be set, then the current_headset_type is not cleared, if users

[PATCH 4.4 17/28] tracing: Fix stack trace event size

2021-04-05 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) commit 9deb193af69d3fd6dd8e47f292b67c805a787010 upstream. Commit cbc3b92ce037 fixed an issue to modify the macros of the stack trace event so that user space could parse it properly. Originally the stack trace format to user space showed that the called stack was a

[PATCH 4.4 18/28] mm: fix race by making init_zero_pfn() early_initcall

2021-04-05 Thread Greg Kroah-Hartman
From: Ilya Lipnitskiy commit e720e7d0e983bf05de80b231bccc39f1487f0f16 upstream. There are code paths that rely on zero_pfn to be fully initialized before core_initcall. For example, wq_sysfs_init() is a core_initcall function that eventually results in a call to kernel_execve, which causes a pa

[PATCH 4.4 19/28] reiserfs: update reiserfs_xattrs_initialized() condition

2021-04-05 Thread Greg Kroah-Hartman
From: Tetsuo Handa commit 5e46d1b78a03d52306f21f77a4e4a144b6d31486 upstream. syzbot is reporting NULL pointer dereference at reiserfs_security_init() [1], for commit ab17c4f02156c4f7 ("reiserfs: fixup xattr_root caching") is assuming that REISERFS_SB(s)->xattr_root != NULL in reiserfs_xattr_jcre

[PATCH 4.4 20/28] pinctrl: rockchip: fix restore error in resume

2021-04-05 Thread Greg Kroah-Hartman
From: Wang Panzhenzhuan commit c971af25cda94afe71617790826a86253e88eab0 upstream. The restore in resume should match to suspend which only set for RK3288 SoCs pinctrl. Fixes: 8dca933127024 ("pinctrl: rockchip: save and restore gpio6_c6 pinmux in suspend/resume") Reviewed-by: Jianqun Xu Review

[PATCH 4.4 21/28] extcon: Fix error handling in extcon_dev_register

2021-04-05 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit d3bdd1c3140724967ca4136755538fa7c05c2b4e ] When devm_kcalloc() fails, we should execute device_unregister() to unregister edev->dev from system. Fixes: 046050f6e623e ("extcon: Update the prototype of extcon_register_notifier() with enum extcon") Signed-off-b

[PATCH 4.4 22/28] firewire: nosy: Fix a use-after-free bug in nosy_ioctl()

2021-04-05 Thread Greg Kroah-Hartman
From: Zheyu Ma [ Upstream commit 829933ef05a951c8ff140e814656d73e74915faf ] For each device, the nosy driver allocates a pcilynx structure. A use-after-free might happen in the following scenario: 1. Open nosy device for the first time and call ioctl with command NOSY_IOC_START, then a new

[PATCH 4.4 24/28] cdc-acm: fix BREAK rx code path adding necessary calls

2021-04-05 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 08dff274edda54310d6f1cf27b62fddf0f8d146e upstream. Counting break events is nice but we should actually report them to the tty layer. Fixes: 5a6a62bdb9257 ("cdc-acm: add TIOCMIWAIT") Signed-off-by: Oliver Neukum Link: https://lore.kernel.org/r/20210311133714.31881-1-

[PATCH 4.4 23/28] USB: quirks: ignore remote wake-up on Fibocom L850-GL LTE modem

2021-04-05 Thread Greg Kroah-Hartman
From: Vincent Palatin commit 0bd860493f81eb2a46173f6f5e44cc38331c8dbd upstream. This LTE modem (M.2 card) has a bug in its power management: there is some kind of race condition for U3 wake-up between the host and the device. The modem firmware sometimes crashes/locks when both events happen at

[PATCH 4.4 26/28] USB: cdc-acm: fix use-after-free after probe failure

2021-04-05 Thread Greg Kroah-Hartman
From: Johan Hovold commit 4e49bf376c0451ad2eae2592e093659cde12be9a upstream. If tty-device registration fails the driver would fail to release the data interface. When the device is later disconnected, the disconnect callback would still be called for the data interface and would go about releas

[PATCH 4.4 02/28] ipv6: weaken the v4mapped source check

2021-04-05 Thread Greg Kroah-Hartman
From: Jakub Kicinski [ Upstream commit dcc32f4f183ab8479041b23a1525d48233df1d43 ] This reverts commit 6af1799aaf3f1bc8defedddfa00df3192445bbf3. Commit 6af1799aaf3f ("ipv6: drop incoming packets having a v4mapped source address") introduced an input check against v4mapped addresses. Use of such

[PATCH 4.4 25/28] USB: cdc-acm: downgrade message to debug

2021-04-05 Thread Greg Kroah-Hartman
From: Oliver Neukum commit e4c77070ad45fc940af1d7fb1e637c349e848951 upstream. This failure is so common that logging an error here amounts to spamming log files. Reviewed-by: Bruno Thomsen Signed-off-by: Oliver Neukum Cc: stable Link: https://lore.kernel.org/r/20210311130126.15972-2-oneu...@

[PATCH 4.4 27/28] staging: rtl8192e: Fix incorrect source in memcpy()

2021-04-05 Thread Greg Kroah-Hartman
From: Atul Gopinathan commit 72ad25fbbb78930f892b191637359ab5b94b3190 upstream. The variable "info_element" is of the following type: struct rtllib_info_element *info_element defined in drivers/staging/rtl8192e/rtllib.h: struct rtllib_info_element { u8 id;

[PATCH 4.4 28/28] staging: rtl8192e: Change state information from u16 to u8

2021-04-05 Thread Greg Kroah-Hartman
From: Atul Gopinathan commit e78836ae76d20f38eed8c8c67f21db97529949da upstream. The "u16 CcxRmState[2];" array field in struct "rtllib_network" has 4 bytes in total while the operations performed on this array through-out the code base are only 2 bytes. The "CcxRmState" field is fed only 2 byte

[PATCH 4.4 03/28] ext4: fix bh ref count on error paths

2021-04-05 Thread Greg Kroah-Hartman
From: Zhaolong Zhang [ Upstream commit c915fb80eaa6194fa9bd0a4487705cd5b0dda2f1 ] __ext4_journalled_writepage should drop bhs' ref count on error paths Signed-off-by: Zhaolong Zhang Link: https://lore.kernel.org/r/1614678151-70481-1-git-send-email-zhangzl2...@126.com Signed-off-by: Theodore T

[PATCH 4.4 04/28] rpc: fix NULL dereference on kmalloc failure

2021-04-05 Thread Greg Kroah-Hartman
From: J. Bruce Fields [ Upstream commit 0ddc942394013f08992fc379ca04cffacbbe3dae ] I think this is unlikely but possible: svc_authenticate sets rq_authop and calls svcauth_gss_accept. The kmalloc(sizeof(*svcdata), GFP_KERNEL) fails, leaving rq_auth_data NULL, and returning SVC_DENIED. This ca

[PATCH 4.4 05/28] ASoC: rt5640: Fix dac- and adc- vol-tlv values being off by a factor of 10

2021-04-05 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit cfa26ed1f9f885c2fd8f53ca492989d1e16d0199 ] The adc_vol_tlv volume-control has a range from -17.625 dB to +30 dB, not -176.25 dB to + 300 dB. This wrong scale is esp. a problem in userspace apps which translate the dB scale to a linear scale. With the logarit

[PATCH 4.4 07/28] ASoC: sgtl5000: set DAP_AVC_CTRL register to correct default value on probe

2021-04-05 Thread Greg Kroah-Hartman
From: Benjamin Rood [ Upstream commit f86f58e3594fb0ab1993d833d3b9a2496f3c928c ] According to the SGTL5000 datasheet [1], the DAP_AVC_CTRL register has the following bit field definitions: | BITS | FIELD | RW | RESET | DEFINITION| | 15| RSVD| RO | 0x0

[PATCH 4.4 06/28] ASoC: rt5651: Fix dac- and adc- vol-tlv values being off by a factor of 10

2021-04-05 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit eee51df776bd6cac10a76b2779a9fdee3f622b2b ] The adc_vol_tlv volume-control has a range from -17.625 dB to +30 dB, not -176.25 dB to + 300 dB. This wrong scale is esp. a problem in userspace apps which translate the dB scale to a linear scale. With the logarit

[PATCH 4.4 08/28] scsi: st: Fix a use after free in st_open()

2021-04-05 Thread Greg Kroah-Hartman
From: Lv Yunlong [ Upstream commit c8c165dea4c8f5ad67b1240861e4f6c5395fa4ac ] In st_open(), if STp->in_use is true, STp will be freed by scsi_tape_put(). However, STp is still used by DEBC_printk() after. It is better to DEBC_printk() before scsi_tape_put(). Link: https://lore.kernel.org/r/2021

[PATCH 4.4 00/28] 4.4.265-rc1 review

2021-04-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.265 release. There are 28 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, 07 Apr 2021 08:50:09 +. Anything rec

[PATCH 4.9 11/35] scsi: qla2xxx: Fix broken #endif placement

2021-04-05 Thread Greg Kroah-Hartman
From: Alexey Dobriyan [ Upstream commit 5999b9e5b1f8a2f5417b755130919b3ac96f5550 ] Only half of the file is under include guard because terminating #endif is placed too early. Link: https://lore.kernel.org/r/YE4snvoW1SuwcXAn@localhost.localdomain Reviewed-by: Himanshu Madhani Signed-off-by: Al

[PATCH 4.9 12/35] staging: comedi: cb_pcidas: fix request_irq() warn

2021-04-05 Thread Greg Kroah-Hartman
From: Tong Zhang [ Upstream commit 2e5848a3d86f03024ae096478bdb892ab3d79131 ] request_irq() wont accept a name which contains slash so we need to repalce it with something else -- otherwise it will trigger a warning and the entry in /proc/irq/ will not be created since the .name might be used by

[PATCH 4.9 13/35] staging: comedi: cb_pcidas64: fix request_irq() warn

2021-04-05 Thread Greg Kroah-Hartman
From: Tong Zhang [ Upstream commit d2d106fe3badfc3bf0dd3899d1c3f210c7203eab ] request_irq() wont accept a name which contains slash so we need to repalce it with something else -- otherwise it will trigger a warning and the entry in /proc/irq/ will not be created since the .name might be used by

[PATCH 4.9 15/35] ext4: do not iput inode under running transaction in ext4_rename()

2021-04-05 Thread Greg Kroah-Hartman
From: zhangyi (F) [ Upstream commit 5dccdc5a1916d4266edd251f20113a5c495f ] In ext4_rename(), when RENAME_WHITEOUT failed to add new entry into directory, it ends up dropping new created whiteout inode under the running transaction. After commit <9b88f9fb0d2> ("ext4: Do not iput inode under r

[PATCH 4.9 01/35] selinux: vsock: Set SID for socket returned by accept()

2021-04-05 Thread Greg Kroah-Hartman
From: David Brazdil [ Upstream commit 1f935e8e72ec28dddb2dc0650b3b6626a293d94b ] For AF_VSOCK, accept() currently returns sockets that are unlabelled. Other socket families derive the child's SID from the SID of the parent and the SID of the incoming packet. This is typically done as the connect

[PATCH 4.9 16/35] appletalk: Fix skb allocation size in loopback case

2021-04-05 Thread Greg Kroah-Hartman
From: Doug Brown [ Upstream commit 39935dccb21c60f9bbf1bb72d22ab6fd14ae7705 ] If a DDP broadcast packet is sent out to a non-gateway target, it is also looped back. There is a potential for the loopback device to have a longer hardware header length than the original target route's device, which

[PATCH 4.9 17/35] net: wan/lmc: unregister device when no matching device is found

2021-04-05 Thread Greg Kroah-Hartman
From: Tong Zhang [ Upstream commit 62e69bc419772638369eff8ff81340bde8aceb61 ] lmc set sc->lmc_media pointer when there is a matching device. However, when no matching device is found, this pointer is NULL and the following dereference will result in a null-ptr-deref. To fix this issue, unregist

[PATCH 4.9 18/35] bpf: Remove MTU check in __bpf_skb_max_len

2021-04-05 Thread Greg Kroah-Hartman
From: Jesper Dangaard Brouer commit 6306c1189e77a513bf02720450bb43bd4ba5d8ae upstream. Multiple BPF-helpers that can manipulate/increase the size of the SKB uses __bpf_skb_max_len() as the max-length. This function limit size against the current net_device MTU (skb->dev->mtu). When a BPF-prog g

[PATCH 4.9 19/35] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-04-05 Thread Greg Kroah-Hartman
From: Ikjoon Jang commit 625bd5a616ceda4840cd28f82e957c8ced394b6a upstream. Logitech ConferenceCam Connect is a compound USB device with UVC and UAC. Not 100% reproducible but sometimes it keeps responding STALL to every control transfer once it receives get_freq request. This patch adds 046d:0

[PATCH 4.9 14/35] ASoC: rt5659: Update MCLK rate in set_sysclk()

2021-04-05 Thread Greg Kroah-Hartman
From: Sameer Pujar [ Upstream commit dbf54a9534350d6aebbb34f5c1c606b81a4f35dd ] Simple-card/audio-graph-card drivers do not handle MCLK clock when it is specified in the codec device node. The expectation here is that, the codec should actually own up the MCLK clock and do necessary setup in the

[PATCH 4.4 09/28] scsi: qla2xxx: Fix broken #endif placement

2021-04-05 Thread Greg Kroah-Hartman
From: Alexey Dobriyan [ Upstream commit 5999b9e5b1f8a2f5417b755130919b3ac96f5550 ] Only half of the file is under include guard because terminating #endif is placed too early. Link: https://lore.kernel.org/r/YE4snvoW1SuwcXAn@localhost.localdomain Reviewed-by: Himanshu Madhani Signed-off-by: Al

[PATCH 4.9 02/35] ipv6: weaken the v4mapped source check

2021-04-05 Thread Greg Kroah-Hartman
From: Jakub Kicinski [ Upstream commit dcc32f4f183ab8479041b23a1525d48233df1d43 ] This reverts commit 6af1799aaf3f1bc8defedddfa00df3192445bbf3. Commit 6af1799aaf3f ("ipv6: drop incoming packets having a v4mapped source address") introduced an input check against v4mapped addresses. Use of such

[PATCH 4.9 20/35] ALSA: hda/realtek: call alc_update_headset_mode() in hp_automute_hook

2021-04-05 Thread Greg Kroah-Hartman
From: Hui Wang commit e54f30befa7990b897189b44a56c1138c6bfdbb5 upstream. We found the alc_update_headset_mode() is not called on some machines when unplugging the headset, as a result, the mode of the ALC_HEADSET_MODE_UNPLUGGED can't be set, then the current_headset_type is not cleared, if users

[PATCH 4.9 22/35] mm: fix race by making init_zero_pfn() early_initcall

2021-04-05 Thread Greg Kroah-Hartman
From: Ilya Lipnitskiy commit e720e7d0e983bf05de80b231bccc39f1487f0f16 upstream. There are code paths that rely on zero_pfn to be fully initialized before core_initcall. For example, wq_sysfs_init() is a core_initcall function that eventually results in a call to kernel_execve, which causes a pa

[PATCH 4.9 21/35] tracing: Fix stack trace event size

2021-04-05 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) commit 9deb193af69d3fd6dd8e47f292b67c805a787010 upstream. Commit cbc3b92ce037 fixed an issue to modify the macros of the stack trace event so that user space could parse it properly. Originally the stack trace format to user space showed that the called stack was a

Re: [PATCH] rockchip: enabled LAN port on NanoPi R2S

2021-04-05 Thread Chen-Yu Tsai
On Mon, Apr 5, 2021 at 4:53 PM Tianling Shen wrote: > > Hi Chen-Yu, > > On 2021-04-05 16:14, Chen-Yu Tsai wrote: > > > > Hi, > > > > On Mon, Apr 5, 2021 at 3:46 PM Tianling Shen wrote: > > > > > > From: David Bauer > > > > > > Enable the USB3 port on the FriendlyARM NanoPi R2S. > > > This is re

[PATCH 4.9 10/35] scsi: st: Fix a use after free in st_open()

2021-04-05 Thread Greg Kroah-Hartman
From: Lv Yunlong [ Upstream commit c8c165dea4c8f5ad67b1240861e4f6c5395fa4ac ] In st_open(), if STp->in_use is true, STp will be freed by scsi_tape_put(). However, STp is still used by DEBC_printk() after. It is better to DEBC_printk() before scsi_tape_put(). Link: https://lore.kernel.org/r/2021

[PATCH 4.9 23/35] reiserfs: update reiserfs_xattrs_initialized() condition

2021-04-05 Thread Greg Kroah-Hartman
From: Tetsuo Handa commit 5e46d1b78a03d52306f21f77a4e4a144b6d31486 upstream. syzbot is reporting NULL pointer dereference at reiserfs_security_init() [1], for commit ab17c4f02156c4f7 ("reiserfs: fixup xattr_root caching") is assuming that REISERFS_SB(s)->xattr_root != NULL in reiserfs_xattr_jcre

[PATCH 4.9 24/35] pinctrl: rockchip: fix restore error in resume

2021-04-05 Thread Greg Kroah-Hartman
From: Wang Panzhenzhuan commit c971af25cda94afe71617790826a86253e88eab0 upstream. The restore in resume should match to suspend which only set for RK3288 SoCs pinctrl. Fixes: 8dca933127024 ("pinctrl: rockchip: save and restore gpio6_c6 pinmux in suspend/resume") Reviewed-by: Jianqun Xu Review

[PATCH 4.9 25/35] extcon: Fix error handling in extcon_dev_register

2021-04-05 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit d3bdd1c3140724967ca4136755538fa7c05c2b4e ] When devm_kcalloc() fails, we should execute device_unregister() to unregister edev->dev from system. Fixes: 046050f6e623e ("extcon: Update the prototype of extcon_register_notifier() with enum extcon") Signed-off-b

[PATCH 4.9 26/35] firewire: nosy: Fix a use-after-free bug in nosy_ioctl()

2021-04-05 Thread Greg Kroah-Hartman
From: Zheyu Ma [ Upstream commit 829933ef05a951c8ff140e814656d73e74915faf ] For each device, the nosy driver allocates a pcilynx structure. A use-after-free might happen in the following scenario: 1. Open nosy device for the first time and call ioctl with command NOSY_IOC_START, then a new

[PATCH 4.9 27/35] USB: quirks: ignore remote wake-up on Fibocom L850-GL LTE modem

2021-04-05 Thread Greg Kroah-Hartman
From: Vincent Palatin commit 0bd860493f81eb2a46173f6f5e44cc38331c8dbd upstream. This LTE modem (M.2 card) has a bug in its power management: there is some kind of race condition for U3 wake-up between the host and the device. The modem firmware sometimes crashes/locks when both events happen at

[PATCH 4.9 28/35] usb: xhci-mtk: fix broken streams issue on 0.96 xHCI

2021-04-05 Thread Greg Kroah-Hartman
From: Chunfeng Yun commit 6f978a30c9bb12dab1302d0f06951ee290f5e600 upstream. The MediaTek 0.96 xHCI controller on some platforms does not support bulk stream even HCCPARAMS says supporting, due to MaxPSASize is set a default value 1 by mistake, here use XHCI_BROKEN_STREAMS quirk to fix it. Fixe

[PATCH 4.9 03/35] ext4: fix bh ref count on error paths

2021-04-05 Thread Greg Kroah-Hartman
From: Zhaolong Zhang [ Upstream commit c915fb80eaa6194fa9bd0a4487705cd5b0dda2f1 ] __ext4_journalled_writepage should drop bhs' ref count on error paths Signed-off-by: Zhaolong Zhang Link: https://lore.kernel.org/r/1614678151-70481-1-git-send-email-zhangzl2...@126.com Signed-off-by: Theodore T

[PATCH 4.9 29/35] cdc-acm: fix BREAK rx code path adding necessary calls

2021-04-05 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 08dff274edda54310d6f1cf27b62fddf0f8d146e upstream. Counting break events is nice but we should actually report them to the tty layer. Fixes: 5a6a62bdb9257 ("cdc-acm: add TIOCMIWAIT") Signed-off-by: Oliver Neukum Link: https://lore.kernel.org/r/20210311133714.31881-1-

[PATCH 4.9 30/35] USB: cdc-acm: downgrade message to debug

2021-04-05 Thread Greg Kroah-Hartman
From: Oliver Neukum commit e4c77070ad45fc940af1d7fb1e637c349e848951 upstream. This failure is so common that logging an error here amounts to spamming log files. Reviewed-by: Bruno Thomsen Signed-off-by: Oliver Neukum Cc: stable Link: https://lore.kernel.org/r/20210311130126.15972-2-oneu...@

[PATCH 4.9 31/35] USB: cdc-acm: fix use-after-free after probe failure

2021-04-05 Thread Greg Kroah-Hartman
From: Johan Hovold commit 4e49bf376c0451ad2eae2592e093659cde12be9a upstream. If tty-device registration fails the driver would fail to release the data interface. When the device is later disconnected, the disconnect callback would still be called for the data interface and would go about releas

[PATCH 4.9 06/35] ASoC: rt5651: Fix dac- and adc- vol-tlv values being off by a factor of 10

2021-04-05 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit eee51df776bd6cac10a76b2779a9fdee3f622b2b ] The adc_vol_tlv volume-control has a range from -17.625 dB to +30 dB, not -176.25 dB to + 300 dB. This wrong scale is esp. a problem in userspace apps which translate the dB scale to a linear scale. With the logarit

[PATCH v3 0/5] RISC-V: Add kexec/kdump support

2021-04-05 Thread Nick Kossifidis
This patch series adds kexec/kdump and crash kernel support on RISC-V. For testing the patches a patched version of kexec-tools is needed (still a work in progress) which can be found at: https://riscv.ics.forth.gr/kexec-tools-patched.tar.xz v3: * Rebase on newer kernel tree * Minor cleanups *

[PATCH 4.9 05/35] ASoC: rt5640: Fix dac- and adc- vol-tlv values being off by a factor of 10

2021-04-05 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit cfa26ed1f9f885c2fd8f53ca492989d1e16d0199 ] The adc_vol_tlv volume-control has a range from -17.625 dB to +30 dB, not -176.25 dB to + 300 dB. This wrong scale is esp. a problem in userspace apps which translate the dB scale to a linear scale. With the logarit

[PATCH v3 2/5] RISC-V: Add kexec support

2021-04-05 Thread Nick Kossifidis
This patch adds support for kexec on RISC-V. On SMP systems it depends on HOTPLUG_CPU in order to be able to bring up all harts after kexec. It also needs a recent OpenSBI version that supports the HSM extension. I tested it on riscv64 QEMU on both an smp and a non-smp system. v5: * For now depen

[PATCH v3 4/5] RISC-V: Add kdump support

2021-04-05 Thread Nick Kossifidis
This patch adds support for kdump, the kernel will reserve a region for the crash kernel and jump there on panic. In order for userspace tools (kexec-tools) to prepare the crash kernel kexec image, we also need to expose some information on /proc/iomem for the memory regions used by the kernel and

[PATCH v3 3/5] RISC-V: Improve init_resources

2021-04-05 Thread Nick Kossifidis
* Kernel region is always present and we know where it is, no need to look for it inside the loop, just ignore it like the rest of the reserved regions within system's memory. * Don't call memblock_free inside the loop, if called it'll split the region of pre-allocated resources in two parts, mess

[PATCH 4.9 08/35] powerpc: Force inlining of cpu_has_feature() to avoid build failure

2021-04-05 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit eed5fae00593ab9d261a0c1ffc1bdb786a87a55a ] The code relies on constant folding of cpu_has_feature() based on possible and always true values as defined per CPU_FTRS_ALWAYS and CPU_FTRS_POSSIBLE. Build failure is encountered with for instance book3e_all_d

[PATCH 4.9 04/35] rpc: fix NULL dereference on kmalloc failure

2021-04-05 Thread Greg Kroah-Hartman
From: J. Bruce Fields [ Upstream commit 0ddc942394013f08992fc379ca04cffacbbe3dae ] I think this is unlikely but possible: svc_authenticate sets rq_authop and calls svcauth_gss_accept. The kmalloc(sizeof(*svcdata), GFP_KERNEL) fails, leaving rq_auth_data NULL, and returning SVC_DENIED. This ca

[PATCH v3 1/5] RISC-V: Add EM_RISCV to kexec UAPI header

2021-04-05 Thread Nick Kossifidis
Add RISC-V to the list of supported kexec architecturs, we need to add the definition early-on so that later patches can use it. EM_RISCV is 243 as per ELF psABI specification here: https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md Signed-off-by: Nick Kossifidis --- include/

[PATCH 4.9 00/35] 4.9.265-rc1 review

2021-04-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.265 release. There are 35 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, 07 Apr 2021 08:50:09 +. Anything rec

[PATCH 4.9 33/35] staging: rtl8192e: Change state information from u16 to u8

2021-04-05 Thread Greg Kroah-Hartman
From: Atul Gopinathan commit e78836ae76d20f38eed8c8c67f21db97529949da upstream. The "u16 CcxRmState[2];" array field in struct "rtllib_network" has 4 bytes in total while the operations performed on this array through-out the code base are only 2 bytes. The "CcxRmState" field is fed only 2 byte

[PATCH 4.9 07/35] ASoC: sgtl5000: set DAP_AVC_CTRL register to correct default value on probe

2021-04-05 Thread Greg Kroah-Hartman
From: Benjamin Rood [ Upstream commit f86f58e3594fb0ab1993d833d3b9a2496f3c928c ] According to the SGTL5000 datasheet [1], the DAP_AVC_CTRL register has the following bit field definitions: | BITS | FIELD | RW | RESET | DEFINITION| | 15| RSVD| RO | 0x0

[PATCH 4.9 35/35] audit: fix a net reference leak in audit_list_rules_send()

2021-04-05 Thread Greg Kroah-Hartman
From: Paul Moore commit 3054d06719079388a543de6adb812638675ad8f5 upstream. If audit_list_rules_send() fails when trying to create a new thread to send the rules it also fails to cleanup properly, leaking a reference to a net structure. This patch fixes the error patch and renames audit_send_lis

[PATCH 4.14 01/52] selinux: vsock: Set SID for socket returned by accept()

2021-04-05 Thread Greg Kroah-Hartman
From: David Brazdil [ Upstream commit 1f935e8e72ec28dddb2dc0650b3b6626a293d94b ] For AF_VSOCK, accept() currently returns sockets that are unlabelled. Other socket families derive the child's SID from the SID of the parent and the SID of the incoming packet. This is typically done as the connect

[PATCH 4.9 09/35] vhost: Fix vhost_vq_reset()

2021-04-05 Thread Greg Kroah-Hartman
From: Laurent Vivier [ Upstream commit beb691e69f4dec7bfe8b81b509848acfd1f0dbf9 ] vhost_reset_is_le() is vhost_init_is_le(), and in the case of cross-endian legacy, vhost_init_is_le() depends on vq->user_be. vq->user_be is set by vhost_disable_cross_endian(). But in vhost_vq_reset(), we have:

[PATCH 4.14 10/52] ASoC: cs42l42: Always wait at least 3ms after reset

2021-04-05 Thread Greg Kroah-Hartman
From: Lucas Tanure [ Upstream commit 19325cfea04446bc79b36bffd4978af15f46a00e ] This delay is part of the power-up sequence defined in the datasheet. A runtime_resume is a power-up so must also include the delay. Signed-off-by: Lucas Tanure Link: https://lore.kernel.org/r/20210305173442.19574

  1   2   3   4   5   6   7   8   9   10   >