Re: [PATCH V2] arm64/cpufeature: Drop open encodings while extracting parange

2020-05-18 Thread Marc Zyngier
On Mon, 18 May 2020 18:09:34 +0100, Will Deacon wrote: > > On Mon, May 18, 2020 at 05:59:59PM +0100, Will Deacon wrote: > > On Wed, May 13, 2020 at 02:33:34PM +0530, Anshuman Khandual wrote: > > > Currently there are multiple instances of parange feature width mask open > > > encodings while fetc

Re: [PATCH 3/3] iio: magnetometer: ak8975: Add gpio reset support

2020-05-18 Thread Jonathan Albrieux
On Mon, May 18, 2020 at 08:51:29PM +0300, Andy Shevchenko wrote: > On Mon, May 18, 2020 at 8:43 PM Jonathan Albrieux > wrote: > > > > On Mon, May 18, 2020 at 07:43:17PM +0300, Andy Shevchenko wrote: > > > On Mon, May 18, 2020 at 06:01:20PM +0200, Jonathan Albrieux wrote: > > > > On Mon, May 18, 20

Re: [PATCH v2 1/2] drm/bridge: ti-sn65dsi86: Implement lane reordering + polarity

2020-05-18 Thread Sam Ravnborg
Hi Douglas. On Mon, May 18, 2020 at 11:22:22AM -0700, Doug Anderson wrote: > Sam, > > On Fri, May 15, 2020 at 2:43 PM Rob Clark wrote: > > > > On Wed, May 6, 2020 at 2:03 PM Douglas Anderson > > wrote: > > > > > > The ti-sn65dsi86 MIPI DSI to eDP bridge chip supports arbitrary > > > remapping

Re: [PATCH] interconnect: Disallow interconnect core to be built as a module

2020-05-18 Thread Bjorn Andersson
On Fri 15 May 00:11 PDT 2020, Greg Kroah-Hartman wrote: > On Fri, May 15, 2020 at 07:48:47AM +0300, Georgi Djakov wrote: > > On 9/12/19 19:33, Bjorn Andersson wrote: > > > On Thu, Aug 29, 2019 at 1:07 AM Viresh Kumar > > > wrote: > > >> > > >> Building individual drivers as modules is fine but a

Re: [PATCH v7 2/4] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2020-05-18 Thread Bjorn Andersson
On Thu 14 May 23:29 PDT 2020, Felipe Balbi wrote: > > Hi, > > Georgi Djakov writes: > >> Sandeep Maheswaram writes: > >>> +static int dwc3_qcom_interconnect_init(struct dwc3_qcom *qcom) > >>> +{ > >>> + struct device *dev = qcom->dev; > >>> + int ret; > >>> + >

Re: [PATCH 0/3] tracing: histogram internals doc, hist_debug, and misc

2020-05-18 Thread Tom Zanussi
ping... Thanks, Tom On Fri, 2020-04-03 at 14:31 -0500, Tom Zanussi wrote: > Hi Steve, > > Here's the histogram internals documentation I promised awhile back > (second patch). > > Accompanying it is a new config option that enables a new hist_debug > event file, which is used by the examples i

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix off-by-one error in clock choice

2020-05-18 Thread Sam Ravnborg
Hi Douglas. On Mon, May 18, 2020 at 11:23:44AM -0700, Doug Anderson wrote: > Sam, > > On Fri, May 15, 2020 at 2:49 PM Rob Clark wrote: > > > > On Mon, May 4, 2020 at 9:32 PM Douglas Anderson > > wrote: > > > > > > If the rate in our table is _equal_ to the rate we want then it's OK > > > to pi

Re: [RFC][PATCH 1/5] objtool: Exit successfully when requesting help

2020-05-18 Thread Matt Helsley
On Fri, May 15, 2020 at 02:52:53PM -0500, Josh Poimboeuf wrote: > On Mon, May 11, 2020 at 10:35:09AM -0700, Matt Helsley wrote: > > When the user requests help it's not an error so do not exit with > > a non-zero exit code. This is not especially useful for a user but > > any script that might wish

Re: [PATCH v4 5/5] mtd: rawnand: micron: Micron SLC NAND filling block

2020-05-18 Thread Steve deRosier
On Mon, May 18, 2020 at 7:00 AM Bean Huo wrote: > > From: Bean Huo > > On some legacy planar 2D Micron NAND devices when a block erase command I object the use of the qualifications you're putting in this sentence. By saying "some legacy" you're implying that there's a set that does and a se

[PATCH 4.4 22/86] net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup

2020-05-18 Thread Greg Kroah-Hartman
From: Sabrina Dubroca commit 6c8991f41546c3c472503dff1ea9daaddf9331c2 upstream. ipv6_stub uses the ip6_dst_lookup function to allow other modules to perform IPv6 lookups. However, this function skips the XFRM layer entirely. All users of ipv6_stub->ip6_dst_lookup use ip_route_output_flow (via t

[PATCH 4.4 33/86] ptp: fix the race between the release of ptp_clock and cdev

2020-05-18 Thread Greg Kroah-Hartman
From: Vladis Dronov commit a33121e5487b424339636b25c35d3a180eaa5f5e upstream. In a case when a ptp chardev (like /dev/ptp0) is open but an underlying device is removed, closing this file leads to a race. This reproduces easily in a kvm virtual machine: ts# cat openptp0.c int main() { ... fp = f

[PATCH 4.4 27/86] blktrace: fix dereference after null check

2020-05-18 Thread Greg Kroah-Hartman
From: Cengiz Can commit 153031a301bb07194e9c37466cfce8eacb977621 upstream. There was a recent change in blktrace.c that added a RCU protection to `q->blk_trace` in order to fix a use-after-free issue during access. However the change missed an edge case that can lead to dereferencing of `bt` po

[RESEND PATCH 2/3] drm/mediatek: mtk_dpi: Convert to bridge driver

2020-05-18 Thread Enric Balletbo i Serra
Convert mtk_dpi to a bridge driver with built-in encoder support for compatibility with existing component drivers. Signed-off-by: Enric Balletbo i Serra Reviewed-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_dpi.c | 66 +++--- 1 file changed, 34 insertions(+), 32

[PATCH 4.4 52/86] net/mlx5: Fix driver load error flow when firmware is stuck

2020-05-18 Thread Greg Kroah-Hartman
From: Gal Pressman [ Upstream commit 8ce59b16b4b6eacedaec1f7b652b4781cdbfe15f ] When wait for firmware init fails, previous code would mistakenly return success and cause inconsistency in the driver state. Fixes: 6c780a0267b8 ("net/mlx5: Wait for FW readiness before initializing command interf

[RESEND PATCH 0/3] Convert mtk-dpi to drm_bridge API

2020-05-18 Thread Enric Balletbo i Serra
The reason for this resend is because I forget to add some bridge maintainers. So adding them and collect the actual tags. The mtk-dpi driver still uses the drm_encoder API which is now somewhat deprecated. We started to move all the Mediatek drivers to the drm_bridge API, like we did for the mtk-

[RESEND PATCH 3/3] drm/mediatek: mtk_dpi: Use simple encoder

2020-05-18 Thread Enric Balletbo i Serra
The mtk_dpi driver uses an empty implementation for its encoder. Replace the code with the generic simple encoder. Signed-off-by: Enric Balletbo i Serra Reviewed-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_dpi.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff

Re: [RFC v1 2/3] drivers: nvmem: Add driver for QTI qfprom-efuse support

2020-05-18 Thread Doug Anderson
Hi, On Mon, May 18, 2020 at 3:45 AM Srinivas Kandagatla wrote: > > On 18/05/2020 11:39, Ravi Kumar Bokka (Temp) wrote: > > > > Based on the compatible, do i need to separate probe function for > > qfprom-efuse and maintain separate nvmem object to register nvmem > > framework. Is this what you ar

[PATCH 4.4 31/86] chardev: add helper function to register char devs with a struct device

2020-05-18 Thread Greg Kroah-Hartman
From: Logan Gunthorpe commit 233ed09d7fdacf592ee91e6c97ce5f4364fbe7c0 upstream. Credit for this patch goes is shared with Dan Williams [1]. I've taken things one step further to make the helper function more useful and clean up calling code. There's a common pattern in the kernel whereby a stru

[PATCH 4.4 37/86] net: moxa: Fix a potential double free_irq()

2020-05-18 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit ee8d2267f0e39a1bfd95532da3a6405004114b27 ] Should an irq requested with 'devm_request_irq' be released explicitly, it should be done by 'devm_free_irq()', not 'free_irq()'. Fixes: 6c821bd9edc9 ("net: Add MOXA ART SoCs ethernet driver") Signed-off-by: C

[PATCH 4.4 39/86] scsi: sg: add sg_remove_request in sg_write

2020-05-18 Thread Greg Kroah-Hartman
From: Wu Bo commit 83c6f2390040f188cc25b270b4befeb5628c1aee upstream. If the __copy_from_user function failed we need to call sg_remove_request in sg_write. Link: https://lore.kernel.org/r/610618d9-e983-fd56-ed0f-639428343...@huawei.com Acked-by: Douglas Gilbert Signed-off-by: Wu Bo Signed-of

[PATCH 4.4 78/86] exec: Move would_dump into flush_old_exec

2020-05-18 Thread Greg Kroah-Hartman
From: Eric W. Biederman commit f87d1c9559164294040e58f5e3b74a162bf7c6e8 upstream. I goofed when I added mm->user_ns support to would_dump. I missed the fact that in the case of binfmt_loader, binfmt_em86, binfmt_misc, and binfmt_script bprm->file is reassigned. Which made the move of would_dum

[PATCH v4 1/3] media: rkvdec: Fix .buf_prepare

2020-05-18 Thread Ezequiel Garcia
The driver should only set the payload on .buf_prepare if the buffer is CAPTURE type, or if an OUTPUT buffer has a zeroed payload. Fix it. Fixes: cd33c830448ba ("media: rkvdec: Add the rkvdec driver") Signed-off-by: Ezequiel Garcia --- drivers/staging/media/rkvdec/rkvdec.c | 10 +- 1 fi

[PATCH 4.4 73/86] ALSA: rawmidi: Fix racy buffer resize under concurrent accesses

2020-05-18 Thread Greg Kroah-Hartman
From: Takashi Iwai commit c1f6e3c818dd734c30f6a7eeebf232ba2cf3181d upstream. The rawmidi core allows user to resize the runtime buffer via ioctl, and this may lead to UAF when performed during concurrent reads or writes: the read/write functions unlock the runtime lock temporarily during copying

[PATCH 4.4 68/86] gcc-10: avoid shadowing standard library free() in crypto

2020-05-18 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 1a263ae60b04de959d9ce9caea4889385eefcc7b upstream. gcc-10 has started warning about conflicting types for a few new built-in functions, particularly 'free()'. This results in warnings like: crypto/xts.c:325:13: warning: conflicting types for built-in function ‘f

Re: [PATCH] sysctl: const-ify ngroups_max

2020-05-18 Thread Luis Chamberlain
On Mon, May 18, 2020 at 11:17:47AM -0700, Kees Cook wrote: > On Mon, May 18, 2020 at 05:25:09PM +, Luis Chamberlain wrote: > > On Mon, May 18, 2020 at 09:08:22AM -0700, Kees Cook wrote: > > > On Mon, May 18, 2020 at 05:57:27PM +0200, Stephen Kitt wrote: > > > > ngroups_max is a read-only sysctl

[PATCH 4.4 72/86] ALSA: hda/realtek - Limit int mic boost for Thinkpad T530

2020-05-18 Thread Greg Kroah-Hartman
From: Takashi Iwai commit b590b38ca305d6d7902ec7c4f7e273e0069f3bcc upstream. Lenovo Thinkpad T530 seems to have a sensitive internal mic capture that needs to limit the mic boost like a few other Thinkpad models. Although we may change the quirk for ALC269_FIXUP_LENOVO_DOCK, this hits way too ma

[PATCH 4.4 60/86] gcc-10: disable array-bounds warning for now

2020-05-18 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 44720996e2d79e47d508b0abe99b931a726a3197 upstream. This is another fine warning, related to the 'zero-length-bounds' one, but hitting the same historical code in the kernel. Because C didn't historically support flexible array members, we have code that instead uses

[PATCH 4.4 45/86] drm/qxl: lost qxl_bo_kunmap_atomic_page in qxl_image_init_helper()

2020-05-18 Thread Greg Kroah-Hartman
From: Vasily Averin [ Upstream commit 5b5703dbafae74adfbe298a56a81694172caf5e6 ] v2: removed TODO reminder Signed-off-by: Vasily Averin Link: http://patchwork.freedesktop.org/patch/msgid/a4e0ae09-a73c-1c62-04ef-3f990d41b...@virtuozzo.com Signed-off-by: Gerd Hoffmann Signed-off-by: Sasha Levi

[PATCH 4.4 76/86] ARM: dts: imx27-phytec-phycard-s-rdk: Fix the I2C1 pinctrl entries

2020-05-18 Thread Greg Kroah-Hartman
From: Fabio Estevam commit 0caf34350a25907515d929a9c77b9b206aac6d1e upstream. The I2C2 pins are already used and the following errors are seen: imx27-pinctrl 10015000.iomuxc: pin MX27_PAD_I2C2_SDA already requested by 10012000.i2c; cannot claim for 1001d000.i2c imx27-pinctrl 10015000.iomuxc: p

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix off-by-one error in clock choice

2020-05-18 Thread Doug Anderson
Sam, On Fri, May 15, 2020 at 2:49 PM Rob Clark wrote: > > On Mon, May 4, 2020 at 9:32 PM Douglas Anderson wrote: > > > > If the rate in our table is _equal_ to the rate we want then it's OK > > to pick it. It doesn't need to be greater than the one we want. > > > > Fixes: a095f15c00e2 ("drm/bri

[PATCH 4.4 62/86] gcc-10: disable restrict warning for now

2020-05-18 Thread Greg Kroah-Hartman
From: Linus Torvalds commit adc71920969870dfa54e8f40dac8616284832d02 upstream. gcc-10 now warns about passing aliasing pointers to functions that take restricted pointers. That's actually a great warning, and if we ever start using 'restrict' in the kernel, it might be quite useful. But right

[PATCH 4.4 66/86] blk-mq: Allow blocking queue tag iter callbacks

2020-05-18 Thread Greg Kroah-Hartman
From: Keith Busch commit 530ca2c9bd6949c72c9b5cfc330cb3dbccaa3f5b upstream. A recent commit runs tag iterator callbacks under the rcu read lock, but existing callbacks do not satisfy the non-blocking requirement. The commit intended to prevent an iterator from accessing a queue that's being modi

[PATCH 4.4 61/86] gcc-10: disable stringop-overflow warning for now

2020-05-18 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 5a76021c2eff7fcf2f0918a08fd8a37ce7922921 upstream. This is the final array bounds warning removal for gcc-10 for now. Again, the warning is good, and we should re-enable all these warnings when we have converted all the legacy array declaration cases to flexible arra

[PATCH 4.4 46/86] ipc/util.c: sysvipc_find_ipc() incorrectly updates position index

2020-05-18 Thread Greg Kroah-Hartman
From: Vasily Averin [ Upstream commit 5e698222c70257d13ae0816720dde57c56f81e15 ] Commit 89163f93c6f9 ("ipc/util.c: sysvipc_find_ipc() should increase position index") is causing this bug (seen on 5.6.8): # ipcs -q -- Message Queues keymsqid owner perms

[PATCH 4.4 48/86] gre: do not keep the GRE header around in collect medata mode

2020-05-18 Thread Greg Kroah-Hartman
From: Jiri Benc [ Upstream commit e271c7b4420ddbb9fae82a2b31a5ab3edafcf4fe ] For ipgre interface in collect metadata mode, it doesn't make sense for the interface to be of ARPHRD_IPGRE type. The outer header of received packets is not needed, as all the information from it is present in metadata

[PATCH 4.4 81/86] usb: gadget: legacy: fix error return code in gncm_bind()

2020-05-18 Thread Greg Kroah-Hartman
From: Wei Yongjun commit e27d4b30b71c66986196d8a1eb93cba9f602904a upstream. If 'usb_otg_descriptor_alloc()' fails, we must return a negative error code -ENOMEM, not 0. Fixes: 1156e91dd7cc ("usb: gadget: ncm: allocate and init otg descriptor by otg capabilities") Reported-by: Hulk Robot Signed

[PATCH 4.4 80/86] usb: gadget: audio: Fix a missing error return value in audio_bind()

2020-05-18 Thread Greg Kroah-Hartman
From: Christophe JAILLET commit 19b94c1f9c9a16d41a8de3ccbdb8536cf1aecdbf upstream. If 'usb_otg_descriptor_alloc()' fails, we must return an error code, not 0. Fixes: 56023ce0fd70 ("usb: gadget: audio: allocate and init otg descriptor by otg capabilities") Reviewed-by: Peter Chen Signed-off-by

[PATCH 4.4 79/86] usb: gadget: net2272: Fix a memory leak in an error handling path in net2272_plat_probe()

2020-05-18 Thread Greg Kroah-Hartman
From: Christophe JAILLET commit ccaef7e6e354fb65758eaddd3eae8065a8b3e295 upstream. 'dev' is allocated in 'net2272_probe_init()'. It must be freed in the error handling path, as already done in the remove function (i.e. 'net2272_plat_remove()') Fixes: 90fccb529d24 ("usb: gadget: Gadget directory

Re: [PATCH v1] dt-bindings: serial: qca,ar9330-uart: Convert to json-schema

2020-05-18 Thread Rob Herring
On Sun, 10 May 2020 07:15:22 +0200, Oleksij Rempel wrote: > Convert the Qualcomm Atheros AR9330 High-Speed UART > Device Tree binding documentation to json-schema. > > Signed-off-by: Oleksij Rempel > --- > .../bindings/serial/qca,ar9330-uart.txt | 31 > .../bindings/serial/qca

[PATCH 4.4 69/86] net: fix a potential recursive NETDEV_FEAT_CHANGE

2020-05-18 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit dd912306ff008891c82cd9f63e8181e47a9cb2fb ] syzbot managed to trigger a recursive NETDEV_FEAT_CHANGE event between bonding master and slave. I managed to find a reproducer for this: ip li set bond0 up ifenslave bond0 eth0 brctl addbr br0 ethtool -K eth0

Re: [PATCH v12 00/18] Enable FSGSBASE instructions

2020-05-18 Thread Thomas Gleixner
Sasha Levin writes: > On Mon, May 18, 2020 at 11:51:07AM +0200, Thomas Gleixner wrote: >>Sasha Levin writes: >>> On Fri, May 15, 2020 at 12:24:14PM +0300, Jarkko Sakkinen wrote: Can you put me to the CC-loop for this patches. Some SGX-enabled frameworks such as Graphene use out-of-tr

[PATCH 4.9 02/90] dp83640: reverse arguments to list_add_tail

2020-05-18 Thread Greg Kroah-Hartman
From: Julia Lawall [ Upstream commit 865308373ed49c9fb05720d14cbf1315349b32a9 ] In this code, it appears that phyter_clocks is a list head, based on the previous list_for_each, and that clock->list is intended to be a list element, given that it has just been initialized in dp83640_clock_init.

[PATCH] tracing: Fix events.rst section numbering

2020-05-18 Thread Tom Zanussi
The in-kernel trace event API should have its own section, and the duplicate section numbers need fixing as well. Signed-off-by: Tom Zanussi Reported-by: Li Xinhai --- Documentation/trace/events.rst | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

Re: [RFC][PATCH 5/5] objtool: Report missing support for subcommands

2020-05-18 Thread Matt Helsley
On Fri, May 15, 2020 at 04:04:48PM -0500, Josh Poimboeuf wrote: > On Mon, May 11, 2020 at 10:35:13AM -0700, Matt Helsley wrote: > > The check and orc-related subcommands for objtool are x86-specific. > > To make this clear to anyone using the tool return a non-zero exit > > code and indicate in the

[PATCH 4.9 19/90] batman-adv: fix batadv_nc_random_weight_tq

2020-05-18 Thread Greg Kroah-Hartman
From: George Spelvin commit fd0c42c4dea54335967c5a86f15fc064235a2797 upstream. and change to pseudorandom numbers, as this is a traffic dithering operation that doesn't need crypto-grade. The previous code operated in 4 steps: 1. Generate a random byte 0 <= rand_tq <= 255 2. Multiply it by BAT

[PATCH 4.9 14/90] binfmt_elf: move brk out of mmap when doing direct loader exec

2020-05-18 Thread Greg Kroah-Hartman
From: Kees Cook commit bbdc6076d2e5d07db44e74c11b01a3e27ab90b32 upstream. Commmit eab09532d400 ("binfmt_elf: use ELF_ET_DYN_BASE only for PIE"), made changes in the rare case when the ELF loader was directly invoked (e.g to set a non-inheritable LD_LIBRARY_PATH, testing new versions of the loade

[PATCH 4.4 55/86] pnp: Use list_for_each_entry() instead of open coding

2020-05-18 Thread Greg Kroah-Hartman
From: Jason Gunthorpe commit 01b2bafe57b19d9119413f138765ef57990921ce upstream. Aside from good practice, this avoids a warning from gcc 10: ./include/linux/kernel.h:997:3: warning: array subscript -31 is outside array bounds of ‘struct list_head[1]’ [-Warray-bounds] 997 | ((type *)(__mptr

[PATCH 4.4 58/86] Stop the ad-hoc games with -Wno-maybe-initialized

2020-05-18 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 78a5255ffb6a1af189a83e493d916ba1c54d8c75 upstream. We have some rather random rules about when we accept the "maybe-initialized" warnings, and when we don't. For example, we consider it unreliable for gcc versions < 4.9, but also if -O3 is enabled, or if optimizing f

[PATCH 4.9 13/90] Revert "ACPI / video: Add force_native quirk for HP Pavilion dv6"

2020-05-18 Thread Greg Kroah-Hartman
From: Hans de Goede commit fd25ea29093e275195d0ae8b2573021a1c98959f upstream. Revert commit 6276e53fa8c0 (ACPI / video: Add force_native quirk for HP Pavilion dv6). In the commit message for the quirk this revert removes I wrote: "Note that there are quite a few HP Pavilion dv6 variants, some

[PATCH 4.4 54/86] IB/mlx4: Test return value of calls to ib_get_cached_pkey

2020-05-18 Thread Greg Kroah-Hartman
From: Jack Morgenstein [ Upstream commit 6693ca95bd4330a0ad7326967e1f9bcedd6b0800 ] In the mlx4_ib_post_send() flow, some functions call ib_get_cached_pkey() without checking its return value. If ib_get_cached_pkey() returns an error code, these functions should return failure. Fixes: 1ffeb2eb8

Re: [PATCH v2 1/2] drm/bridge: ti-sn65dsi86: Implement lane reordering + polarity

2020-05-18 Thread Doug Anderson
Sam, On Fri, May 15, 2020 at 2:43 PM Rob Clark wrote: > > On Wed, May 6, 2020 at 2:03 PM Douglas Anderson wrote: > > > > The ti-sn65dsi86 MIPI DSI to eDP bridge chip supports arbitrary > > remapping of eDP lanes and also polarity inversion. Both of these > > features have been described in the

[PATCH 4.4 84/86] ARM: dts: r8a7740: Add missing extal2 to CPG node

2020-05-18 Thread Greg Kroah-Hartman
From: Geert Uytterhoeven commit e47cb97f153193d4b41ca8d48127da14513d54c7 upstream. The Clock Pulse Generator (CPG) device node lacks the extal2 clock. This may lead to a failure registering the "r" clock, or to a wrong parent for the "usb24s" clock, depending on MD_CK2 pin configuration and boot

Re: [PATCH v5 0/6] drm: Prepare to use a GPIO on ti-sn65dsi86 for Hot Plug Detect

2020-05-18 Thread Sam Ravnborg
Hi Douglas, On Mon, May 18, 2020 at 11:05:58AM -0700, Doug Anderson wrote: > Sam, > > On Mon, May 18, 2020 at 10:59 AM Sam Ravnborg wrote: > > > > Hi Douglas. > > > > > > Given the previous feedback from Linus W, Stephen, and Laurent I > > > > expect things are good enough to land now, but it'd b

[PATCH 4.9 35/90] ptp: use is_visible method to hide unused attributes

2020-05-18 Thread Greg Kroah-Hartman
From: Dmitry Torokhov commit af59e717d5ff9c8dbf9bcc581c0dfb3b2a9c9030 upstream. Instead of creating selected attributes after the device is created (and after userspace potentially seen uevent), lets use attribute group is_visible() method to control which attributes are shown. This will allow u

[PATCH 4.9 40/90] ptp: free ptp device pin descriptors properly

2020-05-18 Thread Greg Kroah-Hartman
From: Vladis Dronov commit 75718584cb3c64e6269109d4d54f888ac5a5fd15 upstream. There is a bug in ptp_clock_unregister(), where ptp_cleanup_pin_groups() first frees ptp->pin_{,dev_}attr, but then posix_clock_unregister() needs them to destroy a related sysfs device. These functions can not be jus

[PATCH 4.9 22/90] batman-adv: Fix refcnt leak in batadv_v_ogm_process

2020-05-18 Thread Greg Kroah-Hartman
From: Xiyu Yang commit 6f91a3f7af4186099dd10fa530dd7e0d9c29747d upstream. batadv_v_ogm_process() invokes batadv_hardif_neigh_get(), which returns a reference of the neighbor object to "hardif_neigh" with increased refcount. When batadv_v_ogm_process() returns, "hardif_neigh" becomes invalid, so

[PATCH 4.9 03/90] fq_codel: fix TCA_FQ_CODEL_DROP_BATCH_SIZE sanity checks

2020-05-18 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 14695212d4cd8b0c997f6121b6df8520038ce076 ] My intent was to not let users set a zero drop_batch_size, it seems I once again messed with min()/max(). Fixes: 9d18562a2278 ("fq_codel: add batch ability to fq_codel_drop()") Signed-off-by: Eric Dumazet Acked-by:

Re: [PATCH 1/2] dt-bindings: n133hse-ea1: Add Innolux N133HSE panel

2020-05-18 Thread Rob Herring
On Sat, May 09, 2020 at 01:18:33PM +0200, s...@48.io wrote: > From: Sean Cross > > The Innolux N133HSE panel is a 13.3" 1920x1080 panel that contains an > integrated backlight, and connects via eDP. > > It is used in the Kosagi Novena. > > Signed-off-by: Sean Cross > Signed-off-by: Richard Mar

[PATCH 4.9 37/90] chardev: add helper function to register char devs with a struct device

2020-05-18 Thread Greg Kroah-Hartman
From: Logan Gunthorpe commit 233ed09d7fdacf592ee91e6c97ce5f4364fbe7c0 upstream. Credit for this patch goes is shared with Dan Williams [1]. I've taken things one step further to make the helper function more useful and clean up calling code. There's a common pattern in the kernel whereby a stru

[PATCH 4.9 38/90] ptp: Fix pass zero to ERR_PTR() in ptp_clock_register

2020-05-18 Thread Greg Kroah-Hartman
From: YueHaibing commit aea0a897af9e44c258e8ab9296fad417f1bc063a upstream. Fix smatch warning: drivers/ptp/ptp_clock.c:298 ptp_clock_register() warn: passing zero to 'ERR_PTR' 'err' should be set while device_create_with_groups and pps_register_source fails Fixes: 85a66e550195 ("ptp: create

[PATCH 4.9 08/90] sch_sfq: validate silly quantum values

2020-05-18 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit df4953e4e997e273501339f607b77953772e3559 ] syzbot managed to set up sfq so that q->scaled_quantum was zero, triggering an infinite loop in sfq_dequeue() More generally, we must only accept quantum between 1 and 2^18 - 7, meaning scaled_quantum must be in [1,

[PATCH 4.9 43/90] net: moxa: Fix a potential double free_irq()

2020-05-18 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit ee8d2267f0e39a1bfd95532da3a6405004114b27 ] Should an irq requested with 'devm_request_irq' be released explicitly, it should be done by 'devm_free_irq()', not 'free_irq()'. Fixes: 6c821bd9edc9 ("net: Add MOXA ART SoCs ethernet driver") Signed-off-by: C

[PATCH 4.9 36/90] ptp: create "pins" together with the rest of attributes

2020-05-18 Thread Greg Kroah-Hartman
From: Dmitry Torokhov commit 85a66e55019583da1e0f18706b7a8281c9f6de5b upstream. Let's switch to using device_create_with_groups(), which will allow us to create "pins" attribute group together with the rest of ptp device attributes, and before userspace gets notified about ptp device creation.

[PATCH 4.9 39/90] ptp: fix the race between the release of ptp_clock and cdev

2020-05-18 Thread Greg Kroah-Hartman
From: Vladis Dronov commit a33121e5487b424339636b25c35d3a180eaa5f5e upstream. In a case when a ptp chardev (like /dev/ptp0) is open but an underlying device is removed, closing this file leads to a race. This reproduces easily in a kvm virtual machine: ts# cat openptp0.c int main() { ... fp = f

[PATCH 4.9 57/90] IB/mlx4: Test return value of calls to ib_get_cached_pkey

2020-05-18 Thread Greg Kroah-Hartman
From: Jack Morgenstein [ Upstream commit 6693ca95bd4330a0ad7326967e1f9bcedd6b0800 ] In the mlx4_ib_post_send() flow, some functions call ib_get_cached_pkey() without checking its return value. If ib_get_cached_pkey() returns an error code, these functions should return failure. Fixes: 1ffeb2eb8

Re: [PATCH] drm/mediatek: Delete not used of_device_get_match_data

2020-05-18 Thread Enric Balletbo i Serra
Hi Matthias, On 18/5/20 13:22, matthias@kernel.org wrote: > From: Matthias Brugger > > The driver will be loaded by via a platform device. So we > will need to get the device_node from the parent device. > Depending on this we will set the driver data. > As all this is done later already, ju

[PATCH 4.9 26/90] ext4: add cond_resched() to ext4_protect_reserved_inode

2020-05-18 Thread Greg Kroah-Hartman
From: Shijie Luo commit af133ade9a40794a37104ecbcc2827c0ea373a3c upstream. When journal size is set too big by "mkfs.ext4 -J size=", or when we mount a crafted image to make journal inode->i_size too big, the loop, "while (i < num)", holds cpu too long. This could cause soft lockup. [ 529.3575

Re: [PATCH v6 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC

2020-05-18 Thread Rob Herring
On Thu, May 14, 2020 at 8:08 PM Ramuthevar, Vadivel MuruganX wrote: > > Hi Rob, > > On 14/5/2020 8:57 pm, Rob Herring wrote: > > On Wed, 13 May 2020 18:46:14 +0800, Ramuthevar,Vadivel MuruganX wrote: > >> From: Ramuthevar Vadivel Murugan > >> > >> > >> Add YAML file for dt-bindings to support NA

[PATCH 1/3] dt-bindings: vendor-prefixes: Add MikroTik

2020-05-18 Thread Jonathan McDowell
MikroTik (SIA Mikrotīkls) is a Latvian company who develop routers and wireless ISP systems. Signed-off-by: Jonathan McDowell --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b

[PATCH 4.9 59/90] gcc-10 warnings: fix low-hanging fruit

2020-05-18 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 9d82973e032e246ff5663c9805fbb5407ae932e3 upstream. Due to a bug-report that was compiler-dependent, I updated one of my machines to gcc-10. That shows a lot of new warnings. Happily they seem to be mostly the valid kind, but it's going to cause a round of churn for

[PATCH 4.9 55/90] i40iw: Fix error handling in i40iw_manage_arp_cache()

2020-05-18 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 37e31d2d26a4124506c24e95434e9baf3405a23a ] The i40iw_arp_table() function can return -EOVERFLOW if i40iw_alloc_resource() fails so we can't just test for "== -1". Fixes: 4e9042e647ff ("i40iw: add hw and utils files") Link: https://lore.kernel.org/r/20200422

[PATCH 4.14 004/114] net: macsec: preserve ingress frame ordering

2020-05-18 Thread Greg Kroah-Hartman
From: Scott Dial [ Upstream commit ab046a5d4be4c90a3952a0eae75617b49c0cb01b ] MACsec decryption always occurs in a softirq context. Since the FPU may not be usable in the softirq context, the call to decrypt may be scheduled on the cryptd work queue. The cryptd work queue does not provide orderi

[PATCH 4.9 48/90] cifs: Fix a race condition with cifs_echo_request

2020-05-18 Thread Greg Kroah-Hartman
From: Ronnie Sahlberg [ Upstream commit f2caf901c1b7ce65f9e6aef4217e3241039db768 ] There is a race condition with how we send (or supress and don't send) smb echos that will cause the client to incorrectly think the server is unresponsive and thus needs to be reconnected. Summary of the race co

[PATCH 4.9 50/90] dmaengine: mmp_tdma: Reset channel error on release

2020-05-18 Thread Greg Kroah-Hartman
From: Lubomir Rintel [ Upstream commit 0c89446379218698189a47871336cb30286a7197 ] When a channel configuration fails, the status of the channel is set to DEV_ERROR so that an attempt to submit it fails. However, this status sticks until the heat end of the universe, making it impossible to recov

[PATCH 4.9 78/90] usb: xhci: Fix NULL pointer dereference when enqueuing trbs from urb sg list

2020-05-18 Thread Greg Kroah-Hartman
From: Sriharsha Allenki commit 3c6f8cb92c9178fc0c66b580ea3df1fa3ac1155a upstream. On platforms with IOMMU enabled, multiple SGs can be coalesced into one by the IOMMU driver. In that case the SG list processing as part of the completion of a urb on a bulk endpoint can result into a NULL pointer

[PATCH 4.9 46/90] spi: spi-dw: Add lock protect dw_spi rx/tx to prevent concurrent calls

2020-05-18 Thread Greg Kroah-Hartman
From: wuxu.wu commit 19b61392c5a852b4e8a0bf35aecb969983c5932d upstream. dw_spi_irq() and dw_spi_transfer_one concurrent calls. I find a panic in dw_writer(): txw = *(u8 *)(dws->tx), when dw->tx==null, dw->len==4, and dw->tx_end==1. When tpm driver's message overtime dw_spi_irq() and dw_spi_tra

[PATCH 4.9 79/90] ARM: dts: imx27-phytec-phycard-s-rdk: Fix the I2C1 pinctrl entries

2020-05-18 Thread Greg Kroah-Hartman
From: Fabio Estevam commit 0caf34350a25907515d929a9c77b9b206aac6d1e upstream. The I2C2 pins are already used and the following errors are seen: imx27-pinctrl 10015000.iomuxc: pin MX27_PAD_I2C2_SDA already requested by 10012000.i2c; cannot claim for 1001d000.i2c imx27-pinctrl 10015000.iomuxc: p

[PATCH 4.9 85/90] usb: gadget: legacy: fix error return code in cdc_bind()

2020-05-18 Thread Greg Kroah-Hartman
From: Wei Yongjun commit e8f7f9e3499a6d96f7f63a4818dc7d0f45a7783b upstream. If 'usb_otg_descriptor_alloc()' fails, we must return a negative error code -ENOMEM, not 0. Fixes: ab6796ae9833 ("usb: gadget: cdc2: allocate and init otg descriptor by otg capabilities") Reported-by: Hulk Robot Signe

[PATCH 4.9 76/90] ALSA: usb-audio: Add control message quirk delay for Kingston HyperX headset

2020-05-18 Thread Greg Kroah-Hartman
From: Jesus Ramos commit 073919e09ca445d4486968e3f851372ff44cf2b5 upstream. Kingston HyperX headset with 0951:16ad also needs the same quirk for delaying the frequency controls. Signed-off-by: Jesus Ramos Cc: Link: https://lore.kernel.org/r/by5pr19mb3634ba68c7cca23d8df428e796...@by5pr19mb363

[PATCH 4.9 62/90] net: phy: micrel: Use strlcpy() for ethtool::get_strings

2020-05-18 Thread Greg Kroah-Hartman
From: Florian Fainelli commit 55f53567afe5f0cd2fd9e006b174c08c31c466f8 upstream. Our statistics strings are allocated at initialization without being bound to a specific size, yet, we would copy ETH_GSTRING_LEN bytes using memcpy() which would create out of bounds accesses, this was flagged by K

[PATCH 4.9 69/90] netlabel: cope with NULL catmap

2020-05-18 Thread Greg Kroah-Hartman
From: Paolo Abeni [ Upstream commit eead1c2ea2509fd754c6da893a94f0e69e83ebe4 ] The cipso and calipso code can set the MLS_CAT attribute on successful parsing, even if the corresponding catmap has not been allocated, as per current configuration and external input. Later, selinux code tries to a

[PATCH 4.14 000/114] 4.14.181-rc1 review

2020-05-18 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.181 release. There are 114 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, 20 May 2020 17:32:42 +. Anything r

[PATCH 4.9 65/90] gcc-10: disable array-bounds warning for now

2020-05-18 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 44720996e2d79e47d508b0abe99b931a726a3197 upstream. This is another fine warning, related to the 'zero-length-bounds' one, but hitting the same historical code in the kernel. Because C didn't historically support flexible array members, we have code that instead uses

[PATCH 4.9 89/90] KVM: x86: Fix off-by-one error in kvm_vcpu_ioctl_x86_setup_mce

2020-05-18 Thread Greg Kroah-Hartman
From: Jim Mattson commit c4e0e4ab4cf3ec2b3f0b628ead108d677644ebd9 upstream. Bank_num is a one-based count of banks, not a zero-based index. It overflows the allocated space only when strictly greater than KVM_MAX_MCE_BANKS. Fixes: a9e38c3e01ad ("KVM: x86: Catch potential overrun in MCE setup")

[PATCH 4.9 67/90] gcc-10: disable restrict warning for now

2020-05-18 Thread Greg Kroah-Hartman
From: Linus Torvalds commit adc71920969870dfa54e8f40dac8616284832d02 upstream. gcc-10 now warns about passing aliasing pointers to functions that take restricted pointers. That's actually a great warning, and if we ever start using 'restrict' in the kernel, it might be quite useful. But right

[PATCH 4.9 81/90] exec: Move would_dump into flush_old_exec

2020-05-18 Thread Greg Kroah-Hartman
From: Eric W. Biederman commit f87d1c9559164294040e58f5e3b74a162bf7c6e8 upstream. I goofed when I added mm->user_ns support to would_dump. I missed the fact that in the case of binfmt_loader, binfmt_em86, binfmt_misc, and binfmt_script bprm->file is reassigned. Which made the move of would_dum

[PATCH 4.9 71/90] net: ipv4: really enforce backoff for redirects

2020-05-18 Thread Greg Kroah-Hartman
From: Paolo Abeni [ Upstream commit 57644431a6c2faac5d754ebd35780cf43a531b1a ] In commit b406472b5ad7 ("net: ipv4: avoid mixed n_redirects and rate_tokens usage") I missed the fact that a 0 'rate_tokens' will bypass the backoff algorithm. Since rate_tokens is cleared after a redirect silence, a

[PATCH 4.9 68/90] net: fix a potential recursive NETDEV_FEAT_CHANGE

2020-05-18 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit dd912306ff008891c82cd9f63e8181e47a9cb2fb ] syzbot managed to trigger a recursive NETDEV_FEAT_CHANGE event between bonding master and slave. I managed to find a reproducer for this: ip li set bond0 up ifenslave bond0 eth0 brctl addbr br0 ethtool -K eth0

Re: [PATCH] x86/mm: Don't try to change poison pages to uncacheable in a guest

2020-05-18 Thread Luck, Tony
On Mon, May 18, 2020 at 06:55:00PM +0200, Borislav Petkov wrote: > On Mon, May 18, 2020 at 08:36:25AM -0700, Luck, Tony wrote: > > The VMM gets the page fault (because the unmapping of the guest > > physical address is at the VMM EPT level). The VMM can't map a new > > page into that guest physica

[PATCH 4.9 84/90] usb: gadget: legacy: fix error return code in gncm_bind()

2020-05-18 Thread Greg Kroah-Hartman
From: Wei Yongjun commit e27d4b30b71c66986196d8a1eb93cba9f602904a upstream. If 'usb_otg_descriptor_alloc()' fails, we must return a negative error code -ENOMEM, not 0. Fixes: 1156e91dd7cc ("usb: gadget: ncm: allocate and init otg descriptor by otg capabilities") Reported-by: Hulk Robot Signed

Re: [RFC][PATCH 4/5] objtool: Enable compilation of objtool for all architectures

2020-05-18 Thread Matt Helsley
On Fri, May 15, 2020 at 03:51:35PM -0500, Josh Poimboeuf wrote: > On Wed, May 13, 2020 at 05:55:31PM +0100, Julien Thierry wrote: > > > > Since the stuff under arch/missing is only weak symbols to make up for > > > > missing subcmd implementations, can we put everything in a file > > > > subcmd_def

[PATCH 4.14 028/114] batman-adv: Fix refcnt leak in batadv_v_ogm_process

2020-05-18 Thread Greg Kroah-Hartman
From: Xiyu Yang commit 6f91a3f7af4186099dd10fa530dd7e0d9c29747d upstream. batadv_v_ogm_process() invokes batadv_hardif_neigh_get(), which returns a reference of the neighbor object to "hardif_neigh" with increased refcount. When batadv_v_ogm_process() returns, "hardif_neigh" becomes invalid, so

[PATCH 4.14 015/114] ipv6: fix cleanup ordering for ip6_mr failure

2020-05-18 Thread Greg Kroah-Hartman
From: Sabrina Dubroca commit afe49de44c27a89e8e9631c44b5ffadf6ace65e2 upstream. Commit 15e668070a64 ("ipv6: reorder icmpv6_init() and ip6_mr_init()") moved the cleanup label for ipmr_fail, but should have changed the contents of the cleanup labels as well. Now we can end up cleaning up icmpv6 ev

[PATCH 2/3] ARM: dts: qcom: add ethernet definitions to ipq8064

2020-05-18 Thread Jonathan McDowell
Plumb in the 4 IPQ8064 stmmac based ethernet interfaces. Signed-off-by: Jonathan McDowell --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 108 1 file changed, 108 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index b

[PATCH 0/3] Add initial support for MikroTik RB3011

2020-05-18 Thread Jonathan McDowell
This patches do some prep (device tree vendor addition, missing ethernet definitions for IPQ8064 dts) and then add an initial device tree for the MikroTik RB3011 1U router, which is an IPQ8064 device with 1G RAM. They are sufficient to boot with an initrd, the serial console and the first 5 switch

[PATCH 4.14 036/114] scripts/decodecode: fix trapping instruction formatting

2020-05-18 Thread Greg Kroah-Hartman
From: Ivan Delalande commit e08df079b23e2e982df15aa340bfbaf50f297504 upstream. If the trapping instruction contains a ':', for a memory access through segment registers for example, the sed substitution will insert the '*' marker in the middle of the instruction instead of the line address:

[PATCH 4.14 022/114] KVM: arm: vgic: Fix limit condition when writing to GICD_I[CS]ACTIVER

2020-05-18 Thread Greg Kroah-Hartman
From: Marc Zyngier commit 1c32ca5dc6d00012f0c964e5fdd7042fcc71efb1 upstream. When deciding whether a guest has to be stopped we check whether this is a private interrupt or not. Unfortunately, there's an off-by-one bug here, and we fail to recognize a whole range of interrupts as being global (G

[PATCH 4.14 001/114] USB: serial: qcserial: Add DW5816e support

2020-05-18 Thread Greg Kroah-Hartman
From: Matt Jolly commit 78d6de3cfbd342918d31cf68d0d2eda401338aef upstream. Add support for Dell Wireless 5816e to drivers/usb/serial/qcserial.c Signed-off-by: Matt Jolly Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/qcserial.c |1 + 1

[PATCH 4.9 63/90] gcc-10: avoid shadowing standard library free() in crypto

2020-05-18 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 1a263ae60b04de959d9ce9caea4889385eefcc7b upstream. gcc-10 has started warning about conflicting types for a few new built-in functions, particularly 'free()'. This results in warnings like: crypto/xts.c:325:13: warning: conflicting types for built-in function ‘f

[PATCH 4.14 023/114] mm/page_alloc: fix watchdog soft lockups during set_zone_contiguous()

2020-05-18 Thread Greg Kroah-Hartman
From: David Hildenbrand commit e84fe99b68ce353c37ceeecc95dce9696c976556 upstream. Without CONFIG_PREEMPT, it can happen that we get soft lockups detected, e.g., while booting up. watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper/0:1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.6.0-

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