Re: [PATCH v8 3/5] remoteproc: Pass size and offset as arguments to segment dump function

2020-07-20 Thread Mathieu Poirier
On Thu, Jul 16, 2020 at 03:20:33PM -0700, Rishabh Bhatnagar wrote: > Change the segment dump API signature to include size and offset > arguments. Refactor the qcom_q6v5_mss driver to use these > arguments while copying the segment. Doing this lays the ground > work for "inline" coredump

Re: [PATCH v4 09/10] kallsyms: Hide layout

2020-07-20 Thread Kristen Carlson Accardi
On Sun, 2020-07-19 at 18:25 -0700, Kees Cook wrote: > On Fri, Jul 17, 2020 at 10:00:06AM -0700, Kristen Carlson Accardi > wrote: > > This patch makes /proc/kallsyms display in a random order, rather > > than sorted by address in order to hide the newly randomized > > address > > layout. > > Ah!

[net-next v4 PATCH 6/7] net: prp: add packet handling support

2020-07-20 Thread Murali Karicheri
DAN-P (Dual Attached Nodes PRP) nodes are expected to receive traditional IP packets as well as PRP (Parallel Redundancy Protocol) tagged (trailer) packets. PRP trailer is 6 bytes of PRP protocol unit called RCT, Redundancy Control Trailer (RCT) similar to HSR tag. PRP network can have traditional

[net-next v4 PATCH 4/7] net: prp: add supervision frame generation utility function

2020-07-20 Thread Murali Karicheri
Add support for generation of PRP supervision frames. For PRP, supervision frame format is similar to HSR version 0, but have a PRP Redundancy Control Trailer (RCT) added and uses a different message type, PRP_TLV_LIFE_CHECK_DD. Also update is_supervision_frame() to include the new message type

[net-next v4 PATCH 1/7] hsr: enhance netlink socket interface to support PRP

2020-07-20 Thread Murali Karicheri
Parallel Redundancy Protocol (PRP) is another redundancy protocol introduced by IEC 63439 standard. It is similar to HSR in many aspects:- - Use a pair of Ethernet interfaces to created the PRP device - Use a 6 byte redundancy protocol part (RCT, Redundancy Check Trailer) similar to HSR Tag.

Re: io_uring vs in_compat_syscall()

2020-07-20 Thread Andy Lutomirski
> On Jul 20, 2020, at 9:37 AM, Jens Axboe wrote: > > On 7/20/20 12:10 AM, Christoph Hellwig wrote: >> Hi Jens, >> >> I just found a (so far theoretical) issue with the io_uring submission >> offloading to workqueues or threads. We have lots of places using >> in_compat_syscall() to check if

[net-next v4 PATCH 5/7] net: hsr: define and use proto_ops ptrs to handle hsr specific frames

2020-07-20 Thread Murali Karicheri
As a preparatory patch to introduce PRP, refactor the code specific to handling HSR frames into separate functions and call them through proto_ops function pointers. Signed-off-by: Murali Karicheri --- net/hsr/hsr_device.c | 5 +++- net/hsr/hsr_forward.c | 63

[net-next v4 PATCH 7/7] net: prp: enhance debugfs to display PRP info

2020-07-20 Thread Murali Karicheri
Print PRP specific information from node table as part of debugfs node table display. Also display the node as DAN-H or DAN-P depending on the info from node table. Signed-off-by: Murali Karicheri --- net/hsr/hsr_debugfs.c | 31 ++- 1 file changed, 22 insertions(+),

[net-next v4 PATCH 3/7] net: hsr: introduce protocol specific function pointers

2020-07-20 Thread Murali Karicheri
As a preparatory patch to introduce support for PRP protocol, add a protocol ops ptr in the private hsr structure to hold function pointers as some of the functions at protocol level packet handling is different for HSR vs PRP. It is expected that PRP will add its of set of functions for protocol

[net-next v4 PATCH 0/7] Add PRP driver

2020-07-20 Thread Murali Karicheri
Hello, This series is dependent on the following patches sent out to netdev list. 2 & 3 are already merged to net/master as of sending this, but not on the net-next master branch. So need to apply them to net-next before applying this series. v3 of the iproute2 patches can be merged to work with

Re: [PATCH v1 2/4] remoteproc: qcom_q6v5_mss: Replace mask based tracking with size

2020-07-20 Thread Mathieu Poirier
On Thu, Jul 09, 2020 at 01:31:54PM -0700, Rishabh Bhatnagar wrote: > From: Sibi Sankar > > In order to land inline coredump support for mss, the dump_segment > function would need to support granularities less than the segment > size. This is achieved by replacing mask based tracking with size.

[net-next v4 PATCH 2/7] net: hsr: introduce common code for skb initialization

2020-07-20 Thread Murali Karicheri
As a preparatory patch to introduce PRP protocol support in the driver, refactor the skb init code to a separate function. Signed-off-by: Murali Karicheri --- net/hsr/hsr_device.c | 41 - 1 file changed, 28 insertions(+), 13 deletions(-) diff --git

Re: linux-next: Tree for Jul 20 (arch/x86/kvm/)

2020-07-20 Thread Randy Dunlap
On 7/20/20 2:42 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20200717: > on x86_64: CC [M] arch/x86/kvm/mmu/page_track.o In file included from ../include/linux/pid.h:5:0, from ../include/linux/sched.h:14, from ../include/linux/kvm_host.h:12,

Re: [PATCH v6 4/4] dt-bindings: display: imx: add bindings for DCSS

2020-07-20 Thread Laurentiu Palcu
Hi Rob, On Mon, Jul 20, 2020 at 10:49:27AM -0600, Rob Herring wrote: > On Fri, 17 Jul 2020 17:41:29 +0300, Laurentiu Palcu wrote: > > From: Laurentiu Palcu > > > > Add bindings for iMX8MQ Display Controller Subsystem. > > > > Signed-off-by: Laurentiu Palcu > > --- > >

Re: [PATCH 6/7] KVM: x86: Use common definition for kvm_nested_vmexit tracepoint

2020-07-20 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Use the newly introduced TRACE_EVENT_KVM_EXIT to define the guts of > kvm_nested_vmexit so that it captures and prints the same information as > with kvm_exit. This has the bonus side effect of fixing the interrupt > info and error code printing for the case where

Re: [RFC][PATCH] objtool,x86_64: Replace recordmcount with objtool

2020-07-20 Thread Sami Tolvanen
On Fri, Jul 17, 2020 at 11:05 AM Steven Rostedt wrote: > > On Fri, 17 Jul 2020 10:47:51 -0700 > Sami Tolvanen wrote: > > > > Someone just submitted a patch for arm64 for this: > > > > > > https://lore.kernel.org/r/20200717143338.19302-1-gregory.herr...@oracle.com > > > > > > Is that what you

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Kanchan Joshi
On Fri, Jul 10, 2020 at 7:41 PM Kanchan Joshi wrote: > > On Fri, Jul 10, 2020 at 7:21 PM Matthew Wilcox wrote: > > > > On Fri, Jul 10, 2020 at 02:49:32PM +0100, Christoph Hellwig wrote: > > > On Fri, Jul 10, 2020 at 02:48:24PM +0100, Matthew Wilcox wrote: > > > > If we're going to go the route

Re: [PATCH 5.4 047/215] iio:humidity:hdc100x Fix alignment and data leak issues

2020-07-20 Thread Joe Perches
On Mon, 2020-07-20 at 17:35 +0200, Greg Kroah-Hartman wrote: > From: Jonathan Cameron > > commit ea5e7a7bb6205d24371373cd80325db1bc15eded upstream. > > One of a class of bugs pointed out by Lars in a recent review. > iio_push_to_buffers_with_timestamp assumes the buffer used is aligned > to the

Re: [PATCH 4/6] venus: venc: Add support for frame-skip mode v4l2 control

2020-07-20 Thread kernel test robot
Hi Stanimir, I love your patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on linux/master soc/for-next linus/master v5.8-rc6 next-20200720] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH v4 00/24] seqlock: Extend seqcount API with associated locks

2020-07-20 Thread Eric Biggers
On Mon, Jul 20, 2020 at 05:55:06PM +0200, Ahmed S. Darwish wrote: > Hi, > > This is v4 of the seqlock patch series: > >[PATCH v1 00/25] > > https://lore.kernel.org/lkml/20200519214547.352050-1-a.darw...@linutronix.de > >[PATCH v2 00/06] (bugfixes-only, merged) > >

Re: [PATCH] tools/memory-model: document the "one-time init" pattern

2020-07-20 Thread peterz
On Mon, Jul 20, 2020 at 09:04:34AM -0700, Paul E. McKenney wrote: > 2.If we were to say "unlock" instead of "release", consistency > would demand that we also say "lock" instead of "acquire". > But "lock" is subtlely different than "acquire", and there is > a history of

Re: [PATCH v6 4/4] dt-bindings: display: imx: add bindings for DCSS

2020-07-20 Thread Rob Herring
On Fri, 17 Jul 2020 17:41:29 +0300, Laurentiu Palcu wrote: > From: Laurentiu Palcu > > Add bindings for iMX8MQ Display Controller Subsystem. > > Signed-off-by: Laurentiu Palcu > --- > .../bindings/display/imx/nxp,imx8mq-dcss.yaml | 104 ++ > 1 file changed, 104 insertions(+) >

[PATCH 4.4 22/58] llc: make sure applications use ARPHRD_ETHER

2020-07-20 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit a9b1110162357689a34992d5c925852948e5b9fd ] syzbot was to trigger a bug by tricking AF_LLC with non sensible addr->sllc_arphrd It seems clear LLC requires an Ethernet device. Back in commit abf9d537fea2 ("llc: add support for SO_BINDTODEVICE") Octavian

[PATCH 4.4 27/58] tcp: md5: refine tcp_md5_do_add()/tcp_md5_hash_key() barriers

2020-07-20 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit e6ced831ef11a2a06e8d00aad9d4fc05b610bf38 ] My prior fix went a bit too far, according to Herbert and Mathieu. Since we accept that concurrent TCP MD5 lookups might see inconsistent keys, we can use READ_ONCE()/WRITE_ONCE() instead of smp_rmb()/smp_wmb()

[PATCH 4.4 29/58] i2c: eg20t: Load module automatically if ID matches

2020-07-20 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit 5f90786b31fb7d1e199a8999d46c4e3aea672e11 ] The driver can't be loaded automatically because it misses module alias to be provided. Add corresponding MODULE_DEVICE_TABLE() call to the driver. Signed-off-by: Andy Shevchenko Signed-off-by: Wolfram Sang

Re: [PATCH for v5.9] RDS: Replace HTTP links with HTTPS ones

2020-07-20 Thread Leon Romanovsky
On Mon, Jul 20, 2020 at 08:36:35AM -0600, Jonathan Corbet wrote: > On Mon, 20 Jul 2020 17:07:16 +0300 > Leon Romanovsky wrote: > > > > Do *you* want to review that megapatch? The number of issues that have > > > come up make it clear that these patches do, indeed, need review... > > > > Can you

Re: [PATCH] x86/idt: Make sure idt_table takes a whole page

2020-07-20 Thread Thomas Gleixner
Joerg Roedel writes: > On Sun, Jul 19, 2020 at 12:39:44PM +0200, Thomas Gleixner wrote: >> *(.bss..page_aligned) \ >> +. = ALIGN(PAGE_SIZE); \ >> *(.dynbss)

Re: kernel BUG at mm/vmalloc.c:LINE! (2)

2020-07-20 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:ab8be66e Add linux-next specific files for 20200720 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=161a0cc890 kernel config: https://syzkaller.appspot.com/x/.config?x

[PATCH 4.4 15/58] btrfs: fix fatal extent_buffer readahead vs releasepage race

2020-07-20 Thread Greg Kroah-Hartman
From: Boris Burkov commit 6bf9cd2eed9aee6d742bb9296c994a91f5316949 upstream. Under somewhat convoluted conditions, it is possible to attempt to release an extent_buffer that is under io, which triggers a BUG_ON in btrfs_release_extent_buffer_pages. This relies on a few different factors.

[PATCH 4.4 23/58] net: Added pointer check for dst->ops->neigh_lookup in dst_neigh_lookup_skb

2020-07-20 Thread Greg Kroah-Hartman
From: Martin Varghese [ Upstream commit 394de110a73395de2ca4516b0de435e91b11b604 ] The packets from tunnel devices (eg bareudp) may have only metadata in the dst pointer of skb. Hence a pointer check of neigh_lookup is needed in dst_neigh_lookup_skb Kernel crashes when packets from bareudp

Re: [PATCH v6] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime

2020-07-20 Thread Bruno Meneguele
On Mon, Jul 20, 2020 at 10:56:55AM -0400, Mimi Zohar wrote: > On Mon, 2020-07-20 at 10:40 -0400, Nayna wrote: > > On 7/13/20 12:48 PM, Bruno Meneguele wrote: > > > The IMA_APPRAISE_BOOTPARAM config allows enabling different > > > "ima_appraise=" > > > modes - log, fix, enforce - at run time, but

[PATCH 4.4 16/58] drm/radeon: fix double free

2020-07-20 Thread Greg Kroah-Hartman
From: Tom Rix commit 41855a898650803e24b284173354cc3e44d07725 upstream. clang static analysis flags this error drivers/gpu/drm/radeon/ci_dpm.c:5652:9: warning: Use of memory after it is freed [unix.Malloc] kfree(rdev->pm.dpm.ps[i].ps_priv);

[PATCH 4.4 31/58] Revert "usb/xhci-plat: Set PM runtime as active on resume"

2020-07-20 Thread Greg Kroah-Hartman
This reverts commit 737c975db35b0117fc5c702072ca2df6f2f7eb63. Eugeniu Rosca writes: On Thu, Jul 09, 2020 at 09:00:23AM +0200, Eugeniu Rosca wrote: >After integrating v4.14.186 commit 5410d158ca2a50 ("usb/ehci-platform: >Set PM runtime as active on resume") into downstream v4.14.x, we started >to

[PATCH 4.4 09/58] arm64: kgdb: Fix single-step exception handling oops

2020-07-20 Thread Greg Kroah-Hartman
From: Wei Li [ Upstream commit 8523c006264df65aac7d77284cc69aac46a6f842 ] After entering kdb due to breakpoint, when we execute 'ss' or 'go' (will delay installing breakpoints, do single-step first), it won't work correctly, and it will enter kdb due to oops. It's because the reason gotten in

[PATCH 4.4 36/58] mtd: rawnand: brcmnand: fix CS0 layout

2020-07-20 Thread Greg Kroah-Hartman
From: Álvaro Fernández Rojas commit 3d3fb3c5be9ce07fa85d8f67fb3922e4613b955b upstream. Only v3.3-v5.0 have a different CS0 layout. Controllers before v3.3 use the same layout for every CS. Fixes: 27c5b17cd1b1 ("mtd: nand: add NAND driver "library" for Broadcom STB NAND controller")

Re: [PATCH 5.7 021/244] cgroup: fix cgroup_sk_alloc() for sk_clone_lock()

2020-07-20 Thread Roman Gushchin
On Mon, Jul 20, 2020 at 05:34:52PM +0200, Greg Kroah-Hartman wrote: > From: Cong Wang > > [ Upstream commit ad0f75e5f57ccbceec13274e1e242f2b5a6397ed ] Hi Greg! There is a fix for this commit: 14b032b8f8fc ("cgroup: Fix sock_cgroup_data on big-endian.") Can you, please, grab it too? Thanks!

[PATCH 4.4 55/58] hwmon: (emc2103) fix unable to change fan pwm1_enable attribute

2020-07-20 Thread Greg Kroah-Hartman
From: Vishwas M commit 14b0e83dc4f1e52b94acaeb85a18fd7fdd46d2dc upstream. This patch fixes a bug which does not let FAN mode to be changed from sysfs(pwm1_enable). i.e pwm1_enable can not be set to 3, it will always remain at 0. This is caused because the device driver handles the result of

[PATCH 4.4 54/58] MIPS: Fix build for LTS kernel caused by backporting lpj adjustment

2020-07-20 Thread Greg Kroah-Hartman
From: Huacai Chen Commit ed26aacfb5f71eecb20a ("mips: Add udelay lpj numbers adjustment") has backported to 4.4~5.4, but the "struct cpufreq_freqs" (and also the cpufreq notifier machanism) of 4.4~4.19 are different from the upstream kernel. These differences cause build errors, and this patch

Re: [PATCH] tools/memory-model: document the "one-time init" pattern

2020-07-20 Thread Matthew Wilcox
On Mon, Jul 20, 2020 at 10:52:11AM -0400, Alan Stern wrote: > On Mon, Jul 20, 2020 at 11:33:20AM +1000, Dave Chinner wrote: > > On Sat, Jul 18, 2020 at 10:08:11AM -0400, Alan Stern wrote: > > > > This is one of the reasons that the LKMM documetnation is so damn > > > > difficult to read and

Re: [PATCH] tools/memory-model: document the "one-time init" pattern

2020-07-20 Thread Darrick J. Wong
On Mon, Jul 20, 2020 at 10:52:11AM -0400, Alan Stern wrote: > On Mon, Jul 20, 2020 at 11:33:20AM +1000, Dave Chinner wrote: > > On Sat, Jul 18, 2020 at 10:08:11AM -0400, Alan Stern wrote: > > > > This is one of the reasons that the LKMM documetnation is so damn > > > > difficult to read and

[PATCH 4.4 45/58] USB: serial: cypress_m8: enable Simply Automated UPB PIM

2020-07-20 Thread Greg Kroah-Hartman
From: James Hilliard commit 5c45d04c5081c1830d674f4d22d4400ea2083afe upstream. This is a UPB (Universal Powerline Bus) PIM (Powerline Interface Module) which allows for controlling multiple UPB compatible devices from Linux using the standard serial interface. Based on vendor application

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Kanchan Joshi
On Fri, Jul 10, 2020 at 7:39 PM Jens Axboe wrote: > > On 7/10/20 7:10 AM, Christoph Hellwig wrote: > > On Fri, Jul 10, 2020 at 12:35:43AM +0530, Kanchan Joshi wrote: > >> Append required special treatment (conversion for sector to bytes) for > >> io_uring. > >> And we were planning a user-space

[PATCH 4.4 47/58] USB: serial: option: add GosunCn GM500 series

2020-07-20 Thread Greg Kroah-Hartman
From: Jörgen Storvist commit 08d4ef5cc9203a113702f24725f6cf4db476c958 upstream. Add USB IDs for GosunCn GM500 series cellular modules. RNDIS config: usb-devices T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 12 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P:

[PATCH 4.4 37/58] HID: magicmouse: do not set up autorepeat

2020-07-20 Thread Greg Kroah-Hartman
From: Dmitry Torokhov commit 6363d2065cd399cf9d6dc9d08c437f8658831100 upstream. Neither the trackpad, nor the mouse want input core to generate autorepeat events for their buttons, so let's reset the bit (as hid-input sets it for these devices based on the usage vendor code). Cc:

Re: 5.8-rc*: kernel BUG at kernel/signal.c:1917

2020-07-20 Thread Peter Zijlstra
On Mon, Jul 20, 2020 at 05:35:15PM +0200, Oleg Nesterov wrote: > On 07/20, Oleg Nesterov wrote: > > > > On 07/20, Peter Zijlstra wrote: > > > > > > --- a/kernel/sched/core.c > > > +++ b/kernel/sched/core.c > > > @@ -4193,9 +4193,6 @@ static void __sched notrace __schedule(bool preempt) > > >

[PATCH 4.4 41/58] USB: c67x00: fix use after free in c67x00_giveback_urb

2020-07-20 Thread Greg Kroah-Hartman
From: Tom Rix commit 211f08347355cba1f769bbf3355816a12b3ddd55 upstream. clang static analysis flags this error c67x00-sched.c:489:55: warning: Use of memory after it is freed [unix.Malloc] usb_hcd_giveback_urb(c67x00_hcd_to_hcd(c67x00), urb, urbp->status);

[PATCH 4.4 50/58] fuse: Fix parameter for FS_IOC_{GET,SET}FLAGS

2020-07-20 Thread Greg Kroah-Hartman
From: Chirantan Ekbote commit 31070f6ccec09f3bd4f1e28cd1e592fa4f3ba0b6 upstream. The ioctl encoding for this parameter is a long but the documentation says it should be an int and the kernel drivers expect it to be an int. If the fuse driver treats this as a long it might end up scribbling

[PATCH 4.4 53/58] uio_pdrv_genirq: fix use without device tree and no interrupt

2020-07-20 Thread Greg Kroah-Hartman
From: Esben Haabendal commit bf12fdf0ab728ca8e5933aac46dd972c0dd0421e upstream. While e3a3c3a20555 ("UIO: fix uio_pdrv_genirq with device tree but no interrupt") added support for using uio_pdrv_genirq for devices without interrupt for device tree platforms, the removal of uio_pdrv in

[PATCH 4.4 40/58] ALSA: usb-audio: Fix race against the error recovery URB submission

2020-07-20 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 9b7e5208a941e2e491a83eb5fa83d889e888fa2f upstream. USB MIDI driver has an error recovery mechanism to resubmit the URB in the delayed timer handler, and this may race with the standard start / stop operations. Although both start and stop operations themselves don't

Re: [RFC PATCH 4/7] x86: use exit_lazy_tlb rather than membarrier_mm_sync_core_before_usermode

2020-07-20 Thread Mathieu Desnoyers
- On Jul 19, 2020, at 11:03 PM, Nicholas Piggin npig...@gmail.com wrote: > Excerpts from Mathieu Desnoyers's message of July 17, 2020 11:42 pm: >> - On Jul 16, 2020, at 7:26 PM, Nicholas Piggin npig...@gmail.com wrote: >> [...] >>> >>> membarrier does replace barrier instructions on

ERROR: "min_low_pfn" undefined!

2020-07-20 Thread kernel test robot
: 11 months ago config: ia64-randconfig-m031-20200720 (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git

[PATCH v3] net: hyperv: add support for vlans in netvsc driver

2020-07-20 Thread Sriram Krishnan
Vlan tagged packets are getting dropped when used with DPDK that uses the AF_PACKET interface on a hyperV guest. The packet layer uses the tpacket interface to communicate the vlans information to the upper layers. On Rx path, these drivers can read the vlan info from the tpacket header but on

[PATCH 4.9 02/86] gpu: host1x: Detach driver on unregister

2020-07-20 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit d9a0a05bf8c76e6dc79230669a8b5d685b168c30 ] Currently when a host1x device driver is unregistered, it is not detached from the host1x controller, which means that the device will stay around and when the driver is registered again, it may bind to the old,

[PATCH 4.9 09/86] net: cxgb4: fix return error value in t4_prep_fw

2020-07-20 Thread Greg Kroah-Hartman
From: Li Heng [ Upstream commit 8a259e6b73ad8181b0b2ef338b35043433db1075 ] t4_prep_fw goto bye tag with positive return value when something bad happened and which can not free resource in adap_init0. so fix it to return negative value. Fixes: 16e47624e76b ("cxgb4: Add new scheme to update

[PATCH 4.9 21/86] Revert "ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb"

2020-07-20 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman This reverts commit 5317abc46279d900c7e63cc122682d819da658bd which is commit 2bbcaaee1fcbd83272e29f31e2bb7e70d8c49e05 upstream. It is being reverted upstream, just hasn't made it there yet and is causing lots of problems. Reported-by: Hans de Goede Cc: Qiujun Huang

[PATCH 4.9 17/86] ALSA: hda - let hs_mic be picked ahead of hp_mic

2020-07-20 Thread Greg Kroah-Hartman
From: Hui Wang commit 6a6ca7881b1ab1c13fe0d70bae29211a65dd90de upstream. We have a Dell AIO, there is neither internal speaker nor internal mic, only a multi-function audio jack on it. Users reported that after freshly installing the OS and plug a headset to the audio jack, the headset can't

[PATCH 4.9 11/86] smsc95xx: avoid memory leak in smsc95xx_bind

2020-07-20 Thread Greg Kroah-Hartman
From: Andre Edich [ Upstream commit 3ed58f96a70b85ef646d5427258f677f1395b62f ] In a case where the ID_REV register read is failed, the memory for a private data structure has to be freed before returning error from the function smsc95xx_bind. Fixes: bbd9f9ee69242 ("smsc95xx: add wol support

[PATCH 4.9 23/86] drm/radeon: fix double free

2020-07-20 Thread Greg Kroah-Hartman
From: Tom Rix commit 41855a898650803e24b284173354cc3e44d07725 upstream. clang static analysis flags this error drivers/gpu/drm/radeon/ci_dpm.c:5652:9: warning: Use of memory after it is freed [unix.Malloc] kfree(rdev->pm.dpm.ps[i].ps_priv);

[PATCH 4.9 16/86] ALSA: opl3: fix infoleak in opl3

2020-07-20 Thread Greg Kroah-Hartman
From: xidongwang commit ad155712bb1ea2151944cf06a0e08c315c70c1e3 upstream. The stack object “info” in snd_opl3_ioctl() has a leaking problem. It has 2 padding bytes which are not initialized and leaked via “copy_to_user”. Signed-off-by: xidongwang Cc: Link:

[PATCH 4.9 25/86] ARC: elf: use right ELF_ARCH

2020-07-20 Thread Greg Kroah-Hartman
From: Vineet Gupta commit b7faf971081a4e56147f082234bfff55135305cb upstream. Cc: Signed-off-by: Vineet Gupta Signed-off-by: Greg Kroah-Hartman --- arch/arc/include/asm/elf.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arc/include/asm/elf.h +++

[PATCH 4.9 40/86] i2c: eg20t: Load module automatically if ID matches

2020-07-20 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit 5f90786b31fb7d1e199a8999d46c4e3aea672e11 ] The driver can't be loaded automatically because it misses module alias to be provided. Add corresponding MODULE_DEVICE_TABLE() call to the driver. Signed-off-by: Andy Shevchenko Signed-off-by: Wolfram Sang

[PATCH 4.9 41/86] iio:magnetometer:ak8974: Fix alignment and data leak issues

2020-07-20 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit 838e00b13bfd4cac8b24df25bfc58e2eb99bcc70 upstream. One of a class of bugs pointed out by Lars in a recent review. iio_push_to_buffers_with_timestamp assumes the buffer used is aligned to the size of the timestamp (8 bytes). This is not guaranteed in this driver

[PATCH 4.9 00/86] 4.9.231-rc1 review

2020-07-20 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.231 release. There are 86 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, 22 Jul 2020 15:27:31 +. Anything

[PATCH v10 01/13] iommu/arm-smmu: Pass io-pgtable config to implementation specific function

2020-07-20 Thread Jordan Crouse
Construct the io-pgtable config before calling the implementation specific init_context function and pass it so the implementation specific function can get a chance to change it before the io-pgtable is created. Signed-off-by: Jordan Crouse --- drivers/iommu/arm-smmu-impl.c | 3 ++-

[PATCH 4.9 42/86] iio: magnetometer: ak8974: Fix runtime PM imbalance on error

2020-07-20 Thread Greg Kroah-Hartman
From: Dinghao Liu commit 0187294d227dfc42889e1da8f8ce1e44fc25f147 upstream. When devm_regmap_init_i2c() returns an error code, a pairing runtime PM usage counter decrement is needed to keep the counter balanced. For error paths after ak8974_set_power(), ak8974_detect() and ak8974_reset(),

Re: [PATCH v4 1/2] remoteproc: Add remoteproc character device interface

2020-07-20 Thread Mathieu Poirier
On Thu, 16 Jul 2020 at 23:48, Bjorn Andersson wrote: > > On Wed 15 Jul 13:18 PDT 2020, Mathieu Poirier wrote: > > > On Tue, Jul 07, 2020 at 12:07:49PM -0700, Siddharth Gupta wrote: > > > Add the character device interface into remoteproc framework. > > > This interface can be used in order to

[PATCH v10 00/13] iommu/arm-smmu: Add Adreno SMMU specific implementation

2020-07-20 Thread Jordan Crouse
(reworded the summary to reflect ongoing changes in the code) This series adds an Adreno SMMU implementation to arm-smmu to allow GPU hardware pagetable switching. The Adreno GPU has built in capabilities to switch the TTBR0 pagetable during runtime to allow each individual instance or

[PATCH 4.9 43/86] iio: mma8452: Add missed iio_device_unregister() call in mma8452_probe()

2020-07-20 Thread Greg Kroah-Hartman
From: Chuhong Yuan commit d7369ae1f4d7cffa7574d15e1f787dcca184c49d upstream. The function iio_device_register() was called in mma8452_probe(). But the function iio_device_unregister() was not called after a call of the function mma8452_set_freefall_mode() failed. Thus add the missed function

[PATCH 4.9 31/86] net: usb: qmi_wwan: add support for Quectel EG95 LTE modem

2020-07-20 Thread Greg Kroah-Hartman
From: AceLan Kao [ Upstream commit f815dd5cf48b905eeecf0a2b990e9b7ab048b4f1 ] Add support for Quectel Wireless Solutions Co., Ltd. EG95 LTE modem T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=02 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=2c7c

[PATCH 4.9 44/86] iio: pressure: zpa2326: handle pm_runtime_get_sync failure

2020-07-20 Thread Greg Kroah-Hartman
From: Navid Emamdoost commit d88de040e1df38414fc1e4380be9d0e997ab4d58 upstream. Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost Fixes: 03b262f2bbf4

[PATCH 4.9 50/86] Revert "usb/xhci-plat: Set PM runtime as active on resume"

2020-07-20 Thread Greg Kroah-Hartman
This reverts commit 9e148a5e5e0929a4cb3000de9c843a07508ce575. Eugeniu Rosca writes: On Thu, Jul 09, 2020 at 09:00:23AM +0200, Eugeniu Rosca wrote: >After integrating v4.14.186 commit 5410d158ca2a50 ("usb/ehci-platform: >Set PM runtime as active on resume") into downstream v4.14.x, we started >to

[PATCH v10 12/13] drm/msm/a6xx: Add support for per-instance pagetables

2020-07-20 Thread Jordan Crouse
Add support for using per-instance pagetables if all the dependencies are available. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 53 +++ drivers/gpu/drm/msm/adreno/a6xx_gpu.h | 1 + drivers/gpu/drm/msm/msm_ringbuffer.h | 1 + 3 files

Re: [RFC PATCH v4 02/12] security: add ipe lsm evaluation loop and audit system

2020-07-20 Thread Deven Bowers
On 7/17/2020 4:16 PM, Randy Dunlap wrote: On 7/17/20 4:09 PM, Deven Bowers wrote: +config SECURITY_IPE_PERMISSIVE_SWITCH + bool "Enable the ability to switch IPE to permissive mode" + default y + help + This option enables two ways of switching IPE to permissive

Re: [PATCH 0/2] task_put batching

2020-07-20 Thread Pavel Begunkov
On 20/07/2020 19:11, Jens Axboe wrote: > On 7/20/20 10:06 AM, Pavel Begunkov wrote: >> On 20/07/2020 18:49, Jens Axboe wrote: >>> On 7/20/20 9:22 AM, Pavel Begunkov wrote: On 18/07/2020 17:37, Jens Axboe wrote: > On 7/18/20 2:32 AM, Pavel Begunkov wrote: >> For my a bit exaggerated

[PATCH 4.9 32/86] tcp: md5: add missing memory barriers in tcp_md5_do_add()/tcp_md5_hash_key()

2020-07-20 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 6a2febec338df7e7699a52d00b2e1207dcf65b28 ] MD5 keys are read with RCU protection, and tcp_md5_do_add() might update in-place a prior key. Normally, typical RCU updates would allocate a new piece of memory. In this case only key->key and key->keylen might be

[PATCH v10 13/13] arm: dts: qcom: sm845: Set the compatible string for the GPU SMMU

2020-07-20 Thread Jordan Crouse
Set the qcom,adreno-smmu compatible string for the GPU SMMU to enable split pagetables and per-instance pagetables for drm/msm. Signed-off-by: Jordan Crouse --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v10 04/13] iommu/arm-smmu-qcom: Add implementation for the adreno GPU SMMU

2020-07-20 Thread Jordan Crouse
Add a special implementation for the SMMU attached to most Adreno GPU target triggered from the qcom,adreno-smmu compatible string. The new Adreno SMMU implementation will enable split pagetables (TTBR1) for the domain attached to the GPU device (SID 0) and hard code it context bank 0 so the GPU

High load from process irq/65-i2c-INT3 - kernel module tps6598x

2020-07-20 Thread Jürgen Stauber
Hi all, I was made aware in the following launchpad bug report, that I should report the issue directly with the upstream maintainers: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1883511 As mentioned in the report, I experience high cpu load due to an interrupted irq/65-i2c-INT3

[PATCH 4.9 47/86] spi: fix initial SPI_SR value in spi-fsl-dspi

2020-07-20 Thread Greg Kroah-Hartman
From: Angelo Dureghello [ Upstream commit aa54c1c9d90e6db75190813907190fadcce1bf45 ] On ColdFire mcf54418, using DSPI_DMA_MODE mode, spi transfers at first boot stage are not succeding: m25p80 spi0.1: unrecognized JEDEC id bytes: 00, 00, 00 The reason is the SPI_SR initial value set by the

[PATCH 4.9 59/86] mtd: rawnand: brcmnand: fix CS0 layout

2020-07-20 Thread Greg Kroah-Hartman
From: Álvaro Fernández Rojas commit 3d3fb3c5be9ce07fa85d8f67fb3922e4613b955b upstream. Only v3.3-v5.0 have a different CS0 layout. Controllers before v3.3 use the same layout for every CS. Fixes: 27c5b17cd1b1 ("mtd: nand: add NAND driver "library" for Broadcom STB NAND controller")

[PATCH 4.9 52/86] iio:health:afe4404 Fix timestamp alignment and prevent data leak.

2020-07-20 Thread Greg Kroah-Hartman
From: Jonathan Cameron [ Upstream commit f88ecccac4be348bbcc6d056bdbc622a8955c04d ] One of a class of bugs pointed out by Lars in a recent review. iio_push_to_buffers_with_timestamp assumes the buffer used is aligned to the size of the timestamp (8 bytes). This is not guaranteed in this driver

[PATCH v10 06/13] iommu/arm-smmu-qcom: Get and set the pagetable config for split pagetables

2020-07-20 Thread Jordan Crouse
The Adreno GPU has the capability to manage its own pagetables and switch them dynamically from the hardware. To do this the GPU uses TTBR1 for "global" GPU memory and creates local pagetables for each context and switches them dynamically with the GPU. Use DOMAIN_ATTR_PGTABLE_CFG to get the

[PATCH 4.9 62/86] ALSA: line6: Perform sanity check for each URB creation

2020-07-20 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 6e8a914ad619042c5f25a4feb663357c4170fd8d upstream. LINE6 drivers create stream URBs with a fixed pipe without checking its validity, and this may lead to a kernel WARNING at the submission when a malformed USB descriptor is passed. For avoiding the kernel warning,

[PATCH v10 09/13] drm/msm: Set the global virtual address range from the IOMMU domain

2020-07-20 Thread Jordan Crouse
Use the aperture settings from the IOMMU domain to set up the virtual address range for the GPU. This allows us to transparently deal with IOMMU side features (like split pagetables). Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 13 +++--

[PATCH 4.9 58/86] perf stat: Zero all the ena and run array slot stats for interval mode

2020-07-20 Thread Greg Kroah-Hartman
From: Jin Yao commit 0e0bf1ea1147fcf74eab19c2d3c853cc3740a72f upstream. As the code comments in perf_stat_process_counter() say, we calculate counter's data every interval, and the display code shows ps->res_stats avg value. We need to zero the stats for interval mode. But the current code

[PATCH] PCI/ATS: PASID and PRI are only enumerated in PF devices.

2020-07-20 Thread Ashok Raj
PASID and PRI capabilities are only enumerated in PF devices. VF devices do not enumerate these capabilites. IOMMU drivers also need to enumerate them before enabling features in the IOMMU. Extending the same support as PASID feature discovery (pci_pasid_features) for PRI. Signed-off-by: Ashok

[PATCH 4.9 73/86] virtio: virtio_console: add missing MODULE_DEVICE_TABLE() for rproc serial

2020-07-20 Thread Greg Kroah-Hartman
From: Alexander Lobakin commit 897c44f0bae574c5fb318c759b060bebf9dd6013 upstream. rproc_serial_id_table lacks an exposure to module devicetable, so when remoteproc firmware requests VIRTIO_ID_RPROC_SERIAL, no uevent is generated and no module autoloading occurs. Add missing

[PATCH 4.9 33/86] tcp: md5: refine tcp_md5_do_add()/tcp_md5_hash_key() barriers

2020-07-20 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit e6ced831ef11a2a06e8d00aad9d4fc05b610bf38 ] My prior fix went a bit too far, according to Herbert and Mathieu. Since we accept that concurrent TCP MD5 lookups might see inconsistent keys, we can use READ_ONCE()/WRITE_ONCE() instead of smp_rmb()/smp_wmb()

Re: [Patch v1 2/4] dma: tegra: Adding Tegra GPC DMA controller driver

2020-07-20 Thread Randy Dunlap
On 7/19/20 11:34 PM, Rajesh Gumasta wrote: > diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig > index e9ed916..be4c395 100644 > --- a/drivers/dma/Kconfig > +++ b/drivers/dma/Kconfig > @@ -639,6 +639,18 @@ config TEGRA210_ADMA > peripheral and vice versa. It does not support memory to

[PATCH 4.9 36/86] tcp: md5: do not send silly options in SYNCOOKIES

2020-07-20 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit e114e1e8ac9d31f25b9dd873bab5d80c1fc482ca ] Whenever cookie_init_timestamp() has been used to encode ECN,SACK,WSCALE options, we can not remove the TS option in the SYNACK. Otherwise, tcp_synack_options() will still advertize options like WSCALE that we can

[PATCH 4.9 55/86] staging: comedi: verify array index is correct before using it

2020-07-20 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit ef75e14a6c935eec82abac07ab68e388514e39bc ] This code reads from the array before verifying that "trig" is a valid index. If the index is wildly out of bounds then reading from an invalid address could lead to an Oops. Fixes: a8c66b684efa ("staging:

[PATCH 4.9 53/86] spi: spi-sun6i: sun6i_spi_transfer_one(): fix setting of clock rate

2020-07-20 Thread Greg Kroah-Hartman
From: Marc Kleine-Budde [ Upstream commit ed7815db70d17b1741883f2da8e1d80bc2efe517 ] A SPI transfer defines the _maximum_ speed of the SPI transfer. However the driver doesn't take into account that the clock divider is always rounded down (due to integer arithmetics). This results in a too

[PATCH 4.9 56/86] Revert "thermal: mediatek: fix register index error"

2020-07-20 Thread Greg Kroah-Hartman
From: Enric Balletbo i Serra [ Upstream commit a8f62f183021be389561570ab5f8c701a5e70298 ] This reverts commit eb9aecd90d1a39601e91cd08b90d5fee51d321a6 The above patch is supposed to fix a register index error on mt2701. It is not clear if the problem solved is a hang or just an invalid value

[PATCH] net: hsr: check for return value of skb_put_padto()

2020-07-20 Thread Murali Karicheri
skb_put_padto() can fail. So check for return type and return NULL for skb. Caller checks for skb and acts correctly if it is NULL. Fixes: 6d6148bc78d2 ("net: hsr: fix incorrect lsdu size in the tag of HSR frames for small frames") Signed-off-by: Murali Karicheri --- net/hsr/hsr_forward.c |

[PATCH 4.9 85/86] irqchip/gic: Atomically update affinity

2020-07-20 Thread Greg Kroah-Hartman
From: Marc Zyngier commit 005c34ae4b44f085120d7f371121ec7ded677761 upstream. The GIC driver uses a RMW sequence to update the affinity, and relies on the gic_lock_irqsave/gic_unlock_irqrestore sequences to update it atomically. But these sequences only expand into anything meaningful if the

[PATCH 4.9 81/86] dmaengine: fsl-edma: Fix NULL pointer exception in fsl_edma_tx_handler

2020-07-20 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski commit f5e5677c420346b4e9788051c2e4d750996c428c upstream. NULL pointer exception happens occasionally on serial output initiated by login timeout. This was reproduced only if kernel was built with significant debugging options and EDMA driver is used with serial

[PATCH 4.9 76/86] Input: i8042 - add Lenovo XiaoXin Air 12 to i8042 nomux list

2020-07-20 Thread Greg Kroah-Hartman
From: David Pedersen commit 17d51429da722cd8fc77a365a112f008abf4f8b3 upstream. This fixes two finger trackpad scroll on the Lenovo XiaoXin Air 12. Without nomux, the trackpad behaves as if only one finger is present and moves the cursor when trying to scroll. Signed-off-by: David Pedersen Cc:

[PATCH 4.9 83/86] arm64: ptrace: Override SPSR.SS when single-stepping is enabled

2020-07-20 Thread Greg Kroah-Hartman
From: Will Deacon commit 3a5a4366cecc25daa300b9a9174f7fdd352b9068 upstream. Luis reports that, when reverse debugging with GDB, single-step does not function as expected on arm64: | I've noticed, under very specific conditions, that a PTRACE_SINGLESTEP | request by GDB won't execute the

Re: [RFC PATCH v4 05/12] fs: add security blob and hooks for block_device

2020-07-20 Thread Deven Bowers
On 7/17/2020 5:14 PM, Casey Schaufler wrote: [...snip] +EXPORT_SYMBOL(security_bdev_free); + +int security_bdev_setsecurity(struct block_device *bdev, + const char *name, const void *value, + size_t size) +{ + return

[PATCH 4.14 011/125] s390/kasan: fix early pgm check handler execution

2020-07-20 Thread Greg Kroah-Hartman
From: Vasily Gorbik [ Upstream commit 998f5bbe3dbdab81c1cfb1aef7c3892f5d24f6c7 ] Currently if early_pgm_check_handler is called it ends up in pgm check loop. The problem is that early_pgm_check_handler is instrumented by KASAN but executed without DAT flag enabled which leads to addressing

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