[PATCH 3.16 42/61] scsi: sg: don't return bogus Sg_requests

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Johannes Thumshirn commit 48ae8484e9fc324b4968d33c585e54bc98e44d61 upstream. If the list search in sg_get_rq_mark() fails to find a valid request, we return a bogus element. This then can late

Re: [PATCH v3 1/7] Documentation: dynamic-debug: Add description of level bitmask

2020-06-09 Thread Edward Cree
On 09/06/2020 18:56, Joe Perches wrote: > These are _not_ netif_ control flags. Some are though. > For instance: > > $ git grep "MODULE_PARM.*\bdebug\b" drivers/net | head -10 > [...] > > These are all level/class output controls. TIL, thanks!  I should have looked deeperrather than assuming  they

Re: [RFC PATCH 0/2] TAS2563 DSP Firmware Loader

2020-06-09 Thread Dan Murphy
Mark On 6/9/20 12:52 PM, Mark Brown wrote: On Tue, Jun 09, 2020 at 12:28:39PM -0500, Dan Murphy wrote: These programs and configurations are selectable via files under the I2C dev node. There may be a better way to select this through ALSA controls but I was unable to find a good example of t

[PATCH 3.16 44/61] scsi: sg: add sg_remove_request in sg_common_write

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Li Bin commit 849f8583e955dbe3a1806e03ecacd5e71cce0a08 upstream. If the dxfer_len is greater than 256M then the request is invalid and we need to call sg_remove_request in sg_common_write. Li

[PATCH 3.16 46/61] signal: Extend exec_id to 64bits

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: "Eric W. Biederman" commit d1e7fd6462ca9fc76650fbe6ca800e35b24267da upstream. Replace the 32bit exec_id with a 64bit exec_id to make it impossible to wrap the exec_id counter. With care an at

[PATCH 3.16 33/61] scsi: sg: factor out sg_fill_request_table()

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Hannes Reinecke commit 4759df905a474d245752c9dc94288e779b8734dd upstream. Factor out sg_fill_request_table() for better readability. [mkp: typos, applied by hand] Signed-off-by: Hannes Reine

[PATCH 3.16 58/61] x86/speculation: Add SRBDS vulnerability and mitigation documentation

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Mark Gross commit 7222a1b5b87417f22265c92deea76a6aecd0fb0f upstream. Add documentation for the SRBDS vulnerability and its mitigation. [ bp: Massage. jpoimboe: sysfs table strings. ] Sig

[PATCH 3.16 37/61] scsi: sg: check for valid direction before starting the request

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Johannes Thumshirn commit 28676d869bbb5257b5f14c0c95ad3af3a7019dd5 upstream. Check for a valid direction before starting the request, otherwise we risk running into an assertion in the scsi mi

Re: [PATCH v2 1/9] dt-bindings: reset: Add a binding for the RPi Firmware reset controller

2020-06-09 Thread Florian Fainelli
On 6/9/2020 10:49 AM, Nicolas Saenz Julienne wrote: > The firmware running on the RPi VideoCore can be used to reset and > initialize HW controlled by the firmware. > > Signed-off-by: Nicolas Saenz Julienne > > --- > > Changes since v1: > - Correct cells binding as per Florian's comment >

[PATCH 3.16 39/61] scsi: sg: fix SG_DXFER_FROM_DEV transfers

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Johannes Thumshirn commit 68c59fcea1f2c6a54c62aa896cc623c1b5bc9b47 upstream. SG_DXFER_FROM_DEV transfers do not necessarily have a dxferp as we set it to NULL for the old sg_io read/write inte

[PATCH 3.16 26/61] scsi: sg: protect accesses to 'reserved' page array

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Hannes Reinecke commit 1bc0eb0446158cc76562176b80623aa119afee5b upstream. The 'reserved' page array is used as a short-cut for mapping data, saving us to allocate pages per request. However, t

[PATCH 3.16 57/61] x86/speculation: Add Special Register Buffer Data Sampling (SRBDS) mitigation

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Mark Gross commit 7e5b3c267d256822407a22fdce6afdf9cd13f9fb upstream. SRBDS is an MDS-like speculative side channel that can leak bits from the random number generator (RNG) across cores and th

[PATCH 3.16 60/61] random: always use batched entropy for get_random_u{32,64}

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: "Jason A. Donenfeld" commit 69efea712f5b0489e67d07565aad5c94e09a3e52 upstream. It turns out that RDRAND is pretty slow. Comparing these two constructions: for (i = 0; i < CHACHA_BLOCK_SIZE;

Re: [RFC PATCH 1/2] dt-bindings: tas2562: Add firmware support for tas2563

2020-06-09 Thread Dan Murphy
Mark On 6/9/20 12:58 PM, Mark Brown wrote: On Tue, Jun 09, 2020 at 12:35:50PM -0500, Dan Murphy wrote: On 6/9/20 12:31 PM, Mark Brown wrote: Why not just use a standard name for the firmware? If the firmwares vary per-board then building it using the machine compatible (or DMI info) could han

[PATCH 3.16 61/61] fs/binfmt_elf.c: allocate initialized memory in fill_thread_core_info()

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Alexander Potapenko commit 1d605416fb7175e1adf094251466caa52093b413 upstream. KMSAN reported uninitialized data being written to disk when dumping core. As a result, several kilobytes of kmal

[PATCH 3.16 49/61] ext4: protect journal inode's blocks using block_validity

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit 345c0dbf3a30872d9b204db96b5857cd00808cae upstream. Add the blocks which belong to the journal inode to block_validity's system zone so attempts to deallocate or overwrite

[PATCH 3.16 38/61] scsi: sg: close race condition in sg_remove_sfp_usercontext()

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Hannes Reinecke commit 97d27b0dd015e980ade63fda111fd1353276e28b upstream. sg_remove_sfp_usercontext() is clearing any sg requests, but needs to take 'rq_list_lock' when modifying the list. Re

[PATCH 3.16 30/61] scsi: sg: remove 'save_scat_len'

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Hannes Reinecke commit 136e57bf43dc4babbfb8783abbf707d483cacbe3 upstream. Unused. Signed-off-by: Hannes Reinecke Reviewed-by: Johannes Thumshirn Tested-by: Johannes Thumshirn Reviewed-by:

[PATCH 3.16 16/61] drivers: usb: core: Don't disable irqs in usb_sg_wait() during URB submit.

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: David Mosberger commit 98b74b0ee57af1bcb6e8b2e76e707a71c5ef8ec9 upstream. usb_submit_urb() may take quite long to execute. For example, a single sg list may have 30 or more entries, possibly

[PATCH 3.16 34/61] scsi: sg: fixup infoleak when using SG_GET_REQUEST_TABLE

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Hannes Reinecke commit 3e0097499839e0fe3af380410eababe5a47c4cf9 upstream. When calling SG_GET_REQUEST_TABLE ioctl only a half-filled table is returned; the remaining part will then contain sta

[PATCH 3.16 54/61] x86/cpu: Rename cpu_data.x86_mask to cpu_data.x86_stepping

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Jia Zhang commit b399151cb48db30ad1e0e93dd40d68c6d007b637 upstream. x86_mask is a confusing name which is hard to associate with the processor's stepping. Additionally, correct an indent issu

[PATCH 3.16 13/61] selinux: Print 'sclass' as string when unrecognized netlink message occurs

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Marek Milkovic commit cded3fffbeab777e6ad2ec05d4a3b62c5caca0f3 upstream. This prints the 'sclass' field as string instead of index in unrecognized netlink message. The textual representation

[PATCH 3.16 00/61] 3.16.85-rc1 review

2020-06-09 Thread Ben Hutchings
This is the start of the stable review cycle for the 3.16.85 release. There are 61 patches in this series, which will be posted as responses to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Jun 11 18:03:51 UTC 2020. Anything recei

[PATCH 3.16 41/61] scsi: sg: only check for dxfer_len greater than 256M

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Johannes Thumshirn commit f930c7043663188429cd9b254e9d761edfc101ce upstream. Don't make any assumptions on the sg_io_hdr_t::dxfer_direction or the sg_io_hdr_t::dxferp in order to determine if

[PATCH 3.16 18/61] USB: core: Fix free-while-in-use bug in the USB S-Glibrary

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 056ad39ee9253873522f6469c3364964a322912b upstream. FuzzUSB (a variant of syzkaller) found a free-while-still-in-use bug in the USB scatter-gather library: BUG: KASAN: use-af

Re: [PATCH v2] pinctrl-single: fix pcs_parse_pinconf() return value

2020-06-09 Thread Tony Lindgren
* Drew Fustini [200608 12:52]: > This patch causes pcs_parse_pinconf() to return -ENOTSUPP when no > pinctrl_map is added. The current behavior is to return 0 when > !PCS_HAS_PINCONF or !nconfs. Thus pcs_parse_one_pinctrl_entry() > incorrectly assumes that a map was added and sets num_maps = 2.

[PATCH 3.16 31/61] scsi: sg: use standard lists for sg_requests

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Hannes Reinecke commit 109bade9c625c89bb5ea753aaa1a0a97e6fbb548 upstream. 'Sg_request' is using a private list implementation; convert it to standard lists. Signed-off-by: Hannes Reinecke Re

[PATCH 3.16 14/61] selinux: rate-limit netlink message warnings in selinux_nlmsg_perm()

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Vladis Dronov commit 76319946f321e30872dd72af7de867cb26e7a373 upstream. Any process is able to send netlink messages with invalid types. Make the warning rate-limited to prevent too much log s

[PATCH 3.16 43/61] scsi: sg: fix minor memory leak in error path

2020-06-09 Thread Ben Hutchings
3.16.85-rc1 review patch. If anyone has any objections, please let me know. -- From: Tony Battersby commit c170e5a8d222537e98aa8d4fddb667ff7a2ee114 upstream. Fix a minor memory leak when there is an error opening a /dev/sg device. Fixes: cc833acbee9d ("sg: O_EXCL and other lo

[PATCH 4.19 18/25] nvmem: qfprom: remove incorrect write support

2020-06-09 Thread Greg Kroah-Hartman
From: Srinivas Kandagatla commit 8d9eb0d6d59a5d7028c80a30831143d3e75515a7 upstream. qfprom has different address spaces for read and write. Reads are always done from corrected address space, where as writes are done on raw address space. Writing to corrected address space is invalid and ignored

[PATCH 4.19 04/25] net: usb: qmi_wwan: add Telit LE910C1-EUX composition

2020-06-09 Thread Greg Kroah-Hartman
From: Daniele Palmas [ Upstream commit 591612aa578cd7148b7b9d74869ef40118978389 ] Add support for Telit LE910C1-EUX composition 0x1031: tty, tty, tty, rmnet Signed-off-by: Daniele Palmas Acked-by: Bjørn Mork Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/u

[PATCH 4.19 23/25] x86/speculation: Add Ivy Bridge to affected list

2020-06-09 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 3798cc4d106e91382bfe016caa2edada27c2bb3f upstream Make the docs match the code. Signed-off-by: Josh Poimboeuf Signed-off-by: Thomas Gleixner Signed-off-by: Greg Kroah-Hartman --- Documentation/admin-guide/hw-vuln/special-register-buffer-data-sampling.rst | 7

[PATCH 4.19 05/25] NFC: st21nfca: add missed kfree_skb() in an error path

2020-06-09 Thread Greg Kroah-Hartman
From: Chuhong Yuan [ Upstream commit 3decabdc714ca56c944f4669b4cdec5c2c1cea23 ] st21nfca_tm_send_atr_res() misses to call kfree_skb() in an error path. Add the missed function call to fix it. Fixes: 1892bf844ea0 ("NFC: st21nfca: Adding P2P support to st21nfca in Initiator & Target mode") Signe

[PATCH 4.19 24/25] uprobes: ensure that uprobe->offset and ->ref_ctr_offset are properly aligned

2020-06-09 Thread Greg Kroah-Hartman
From: Oleg Nesterov commit 013b2deba9a6b80ca02f4fafd7dedf875e9b4450 upstream. uprobe_write_opcode() must not cross page boundary; prepare_uprobe() relies on arch_uprobe_analyze_insn() which should validate "vaddr" but some architectures (csky, s390, and sparc) don't do this. We can remove the B

[PATCH 4.19 25/25] Revert "net/mlx5: Annotate mutex destroy for root ns"

2020-06-09 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman This reverts commit 95fde2e46860c183f6f47a99381a3b9bff488bd5 which is commit 9ca415399dae133b00273a4283ef31d003a6818d upstream. It was backported incorrectly, Paul writes at: https://lore.kernel.org/r/20200607203425.gd23...@windriver.com I happened to no

[PATCH 4.14 23/46] devinet: fix memleak in inetdev_init()

2020-06-09 Thread Greg Kroah-Hartman
From: Yang Yingliang [ Upstream commit 1b49cd71b52403822731dc9f283185d1da355f97 ] When devinet_sysctl_register() failed, the memory allocated in neigh_parms_alloc() should be freed. Fixes: 20e61da7ffcf ("ipv4: fail early when creating netdev named all or default") Signed-off-by: Yang Yingliang

[PATCH] iommu/arm-smmu: Don't bypass pinned stream mappings

2020-06-09 Thread Jordan Crouse
Commit 0e764a01015d ("iommu/arm-smmu: Allow client devices to select direct mapping") sets the initial domain type to SMMU_DOMAIN_IDENTITY for devices that select direct mapping. This ends up setting the domain as ARM_SMMU_DOMAIN_BYPASS which causes the stream ID mappings for the device to be progr

[PATCH 4.19 02/25] l2tp: add sk_family checks to l2tp_validate_socket

2020-06-09 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit d9a81a225277686eb629938986d97629ea102633 ] syzbot was able to trigger a crash after using an ISDN socket and fool l2tp. Fix this by making sure the UDP socket is of the proper family. BUG: KASAN: slab-out-of-bounds in setup_udp_tunnel_sock+0x465/0x540 net/

[PATCH 4.19 10/25] USB: serial: option: add Telit LE910C1-EUX compositions

2020-06-09 Thread Greg Kroah-Hartman
From: Daniele Palmas commit 399ad9477c523f721f8e51d4f824bdf7267f120c upstream. Add Telit LE910C1-EUX compositions: 0x1031: tty, tty, tty, rmnet 0x1033: tty, tty, tty, ecm Signed-off-by: Daniele Palmas Link: https://lore.kernel.org/r/20200525211106.27338-1-dnl...@gmail.com Cc:

[PATCH 5.4 11/34] net: be more gentle about silly gso requests coming from user

2020-06-09 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 7c6d2ecbda83150b2036a2b36b21381ad4667762 ] Recent change in virtio_net_hdr_to_skb() broke some packetdrill tests. When --mss=XXX option is set, packetdrill always provide gso_type & gso_size for its inbound packets, regardless of packet size. if (pa

[PATCH 5.4 10/34] net: check untrusted gso_size at kernel entry

2020-06-09 Thread Greg Kroah-Hartman
From: Willem de Bruijn [ Upstream commit 6dd912f82680761d8fb6b1bb274a69d4c7010988 ] Syzkaller again found a path to a kernel crash through bad gso input: a packet with gso size exceeding len. These packets are dropped in tcp_gso_segment and udp[46]_ufo_fragment. But they may affect gso size cal

[PATCH 4.14 27/46] vsock: fix timeout in vsock_accept()

2020-06-09 Thread Greg Kroah-Hartman
From: Stefano Garzarella [ Upstream commit 7e0afbdfd13d1e708fe96e31c46c4897101a6a43 ] The accept(2) is an "input" socket interface, so we should use SO_RCVTIMEO instead of SO_SNDTIMEO to set the timeout. So this patch replace sock_sndtimeo() with sock_rcvtimeo() to use the right timeout in the

[PATCH 4.19 11/25] iio: vcnl4000: Fix i2c swapped word reading.

2020-06-09 Thread Greg Kroah-Hartman
From: Mathieu Othacehe commit 18dfb5326370991c81a6d1ed6d1aeee055cb8c05 upstream. The bytes returned by the i2c reading need to be swapped unconditionally. Otherwise, on be16 platforms, an incorrect value will be returned. Taking the slow path via next merge window as its been around a while and

[PATCH 5.4 13/34] USB: serial: usb_wwan: do not resubmit rx urb on fatal errors

2020-06-09 Thread Greg Kroah-Hartman
From: Bin Liu commit 986c1748c84d7727defeaeca74a73b37f7d5cce1 upstream. usb_wwan_indat_callback() shouldn't resubmit rx urb if the previous urb status is a fatal error. Or the usb controller would keep processing the new urbs then run into interrupt storm, and has no chance to recover. Fixes: 6

man-pages-5.07 is released

2020-06-09 Thread Michael Kerrisk (man-pages)
Gidday, The Linux man-pages maintainer proudly announces: man-pages-5.07 - man pages for Linux This release resulted from patches, bug reports, reviews, and comments from over 80 people, with over 380 commits making changes to more than 380 pages. One new page was added in this release, and

[PATCH 4.19 19/25] x86/cpu: Add a steppings field to struct x86_cpu_id

2020-06-09 Thread Greg Kroah-Hartman
From: Mark Gross commit e9d7144597b10ff13ff2264c059f7d4a7fbc89ac upstream Intel uses the same family/model for several CPUs. Sometimes the stepping must be checked to tell them apart. On x86 there can be at most 16 steppings. Add a steppings bitmask to x86_cpu_id and a X86_MATCH_VENDOR_FAMILY_M

[PATCH 5.4 26/34] nvmem: qfprom: remove incorrect write support

2020-06-09 Thread Greg Kroah-Hartman
From: Srinivas Kandagatla commit 8d9eb0d6d59a5d7028c80a30831143d3e75515a7 upstream. qfprom has different address spaces for read and write. Reads are always done from corrected address space, where as writes are done on raw address space. Writing to corrected address space is invalid and ignored

[PATCH 5.4 25/34] CDC-ACM: heed quirk also in error handling

2020-06-09 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 97fe809934dd2b0b37dfef3a2fc70417f485d7af upstream. If buffers are iterated over in the error case, the lower limits for quirky devices must be heeded. Signed-off-by: Oliver Neukum Reported-by: Jean Rene Dawin Fixes: a4e7279cd1d19 ("cdc-acm: introduce a cool down") C

Re: [PATCH v3] IMA: Add audit log for failure conditions

2020-06-09 Thread Lakshmi Ramasubramanian
On 6/9/20 10:35 AM, Steve Grubb wrote: If it is added, it should be appended to the end of the record since it is an existing record format, then in the case of res=1, errno= should still be present (not swing in and out) and just contain zero. (Or another value if there is a non-fatal warning?

[PATCH 5.4 07/34] NFC: st21nfca: add missed kfree_skb() in an error path

2020-06-09 Thread Greg Kroah-Hartman
From: Chuhong Yuan [ Upstream commit 3decabdc714ca56c944f4669b4cdec5c2c1cea23 ] st21nfca_tm_send_atr_res() misses to call kfree_skb() in an error path. Add the missed function call to fix it. Fixes: 1892bf844ea0 ("NFC: st21nfca: Adding P2P support to st21nfca in Initiator & Target mode") Signe

[PATCH 5.4 03/34] l2tp: do not use inet_hash()/inet_unhash()

2020-06-09 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 02c71b144c811bcdd865e0a1226d0407d11357e8 ] syzbot recently found a way to crash the kernel [1] Issue here is that inet_hash() & inet_unhash() are currently only meant to be used by TCP & DCCP, since only these protocols provide the needed hashinfo pointer.

[PATCH 5.4 05/34] net: stmmac: enable timestamp snapshot for required PTP packets in dwmac v5.10a

2020-06-09 Thread Greg Kroah-Hartman
From: Fugang Duan [ Upstream commit f2fb6b6275eba9d312957ca44c487bd780da6169 ] For rx filter 'HWTSTAMP_FILTER_PTP_V2_EVENT', it should be PTP v2/802.AS1, any layer, any kind of event packet, but HW only take timestamp snapshot for below PTP message: sync, Pdelay_req, Pdelay_resp. Then it causes

[PATCH 5.4 16/34] iio:chemical:sps30: Fix timestamp alignment

2020-06-09 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit a5bf6fdd19c327bcfd9073a8740fa19ca4525fd4 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 whi

[PATCH 4.19 17/25] CDC-ACM: heed quirk also in error handling

2020-06-09 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 97fe809934dd2b0b37dfef3a2fc70417f485d7af upstream. If buffers are iterated over in the error case, the lower limits for quirky devices must be heeded. Signed-off-by: Oliver Neukum Reported-by: Jean Rene Dawin Fixes: a4e7279cd1d19 ("cdc-acm: introduce a cool down") C

[PATCH 5.4 28/34] x86/cpu: Add a steppings field to struct x86_cpu_id

2020-06-09 Thread Greg Kroah-Hartman
From: Mark Gross commit e9d7144597b10ff13ff2264c059f7d4a7fbc89ac upstream Intel uses the same family/model for several CPUs. Sometimes the stepping must be checked to tell them apart. On x86 there can be at most 16 steppings. Add a steppings bitmask to x86_cpu_id and a X86_MATCH_VENDOR_FAMILY_M

[PATCH 5.4 31/34] x86/speculation: Add SRBDS vulnerability and mitigation documentation

2020-06-09 Thread Greg Kroah-Hartman
From: Mark Gross commit 7222a1b5b87417f22265c92deea76a6aecd0fb0f upstream Add documentation for the SRBDS vulnerability and its mitigation. [ bp: Massage. jpoimboe: sysfs table strings. ] Signed-off-by: Mark Gross Signed-off-by: Borislav Petkov Reviewed-by: Tony Luck Reviewed-by: Josh P

[PATCH 5.4 32/34] x86/speculation: Add Ivy Bridge to affected list

2020-06-09 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 3798cc4d106e91382bfe016caa2edada27c2bb3f upstream Make the docs match the code. Signed-off-by: Josh Poimboeuf Signed-off-by: Thomas Gleixner Signed-off-by: Greg Kroah-Hartman --- Documentation/admin-guide/hw-vuln/special-register-buffer-data-sampling.rst | 7

[PATCH 4.19 09/25] USB: serial: usb_wwan: do not resubmit rx urb on fatal errors

2020-06-09 Thread Greg Kroah-Hartman
From: Bin Liu commit 986c1748c84d7727defeaeca74a73b37f7d5cce1 upstream. usb_wwan_indat_callback() shouldn't resubmit rx urb if the previous urb status is a fatal error. Or the usb controller would keep processing the new urbs then run into interrupt storm, and has no chance to recover. Fixes: 6

[PATCH 5.4 18/34] iio:chemical:pms7003: Fix timestamp alignment and prevent data leak.

2020-06-09 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit 13e945631c2ffb946c0af342812a3cd39227de6e 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 whi

[PATCH 5.4 01/34] devinet: fix memleak in inetdev_init()

2020-06-09 Thread Greg Kroah-Hartman
From: Yang Yingliang [ Upstream commit 1b49cd71b52403822731dc9f283185d1da355f97 ] When devinet_sysctl_register() failed, the memory allocated in neigh_parms_alloc() should be freed. Fixes: 20e61da7ffcf ("ipv4: fail early when creating netdev named all or default") Signed-off-by: Yang Yingliang

[PATCH 5.4 04/34] net/mlx5: Fix crash upon suspend/resume

2020-06-09 Thread Greg Kroah-Hartman
From: Mark Bloch [ Upstream commit 8fc3e29be9248048f449793502c15af329f35c6e ] Currently a Linux system with the mlx5 NIC always crashes upon hibernation - suspend/resume. Add basic callbacks so the NIC could be suspended and resumed. Fixes: 9603b61de1ee ("mlx5: Move pci device handling from ml

[PATCH 5.4 20/34] usb: musb: start session in resume for host port

2020-06-09 Thread Greg Kroah-Hartman
From: Bin Liu commit 7f88a5ac393f39319f69b8b20cc8d5759878d1a1 upstream. Commit 17539f2f4f0b ("usb: musb: fix enumeration after resume") replaced musb_start() in musb_resume() to not override softconnect bit, but it doesn't restart the session for host port which was done in musb_start(). The ses

[PATCH 5.6 01/41] devinet: fix memleak in inetdev_init()

2020-06-09 Thread Greg Kroah-Hartman
From: Yang Yingliang [ Upstream commit 1b49cd71b52403822731dc9f283185d1da355f97 ] When devinet_sysctl_register() failed, the memory allocated in neigh_parms_alloc() should be freed. Fixes: 20e61da7ffcf ("ipv4: fail early when creating netdev named all or default") Signed-off-by: Yang Yingliang

[PATCH 5.6 00/41] 5.6.18-rc1 review

2020-06-09 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.6.18 release. There are 41 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 Thu, 11 Jun 2020 17:40:51 +. Anything rece

Re: [PATCH 01/10] rcu: Directly lock rdp->nocb_lock on nocb code entrypoints

2020-06-09 Thread Paul E. McKenney
On Mon, Jun 08, 2020 at 02:57:17PM +0200, Frederic Weisbecker wrote: > On Thu, Jun 04, 2020 at 09:36:55AM -0700, Paul E. McKenney wrote: > > On Thu, Jun 04, 2020 at 01:41:22PM +0200, Frederic Weisbecker wrote: > > > On Fri, May 22, 2020 at 10:57:39AM -0700, Paul E. McKenney wrote: > > > > On Wed, M

[PATCH 5.4 06/34] net: usb: qmi_wwan: add Telit LE910C1-EUX composition

2020-06-09 Thread Greg Kroah-Hartman
From: Daniele Palmas [ Upstream commit 591612aa578cd7148b7b9d74869ef40118978389 ] Add support for Telit LE910C1-EUX composition 0x1031: tty, tty, tty, rmnet Signed-off-by: Daniele Palmas Acked-by: Bjørn Mork Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/u

[PATCH 5.4 02/34] l2tp: add sk_family checks to l2tp_validate_socket

2020-06-09 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit d9a81a225277686eb629938986d97629ea102633 ] syzbot was able to trigger a crash after using an ISDN socket and fool l2tp. Fix this by making sure the UDP socket is of the proper family. BUG: KASAN: slab-out-of-bounds in setup_udp_tunnel_sock+0x465/0x540 net/

Re: [RFC PATCH 0/2] TAS2563 DSP Firmware Loader

2020-06-09 Thread Mark Brown
On Tue, Jun 09, 2020 at 12:28:39PM -0500, Dan Murphy wrote: > These programs and configurations are selectable via files under the I2C dev > node. There may be a better way to select this through ALSA controls but I > was > unable to find a good example of this. This is why this is an RFC patch

[PATCH 5.6 19/41] USB: serial: usb_wwan: do not resubmit rx urb on fatal errors

2020-06-09 Thread Greg Kroah-Hartman
From: Bin Liu commit 986c1748c84d7727defeaeca74a73b37f7d5cce1 upstream. usb_wwan_indat_callback() shouldn't resubmit rx urb if the previous urb status is a fatal error. Or the usb controller would keep processing the new urbs then run into interrupt storm, and has no chance to recover. Fixes: 6

[PATCH 5.6 08/41] NFC: st21nfca: add missed kfree_skb() in an error path

2020-06-09 Thread Greg Kroah-Hartman
From: Chuhong Yuan [ Upstream commit 3decabdc714ca56c944f4669b4cdec5c2c1cea23 ] st21nfca_tm_send_atr_res() misses to call kfree_skb() in an error path. Add the missed function call to fix it. Fixes: 1892bf844ea0 ("NFC: st21nfca: Adding P2P support to st21nfca in Initiator & Target mode") Signe

[PATCH 5.4 09/34] vsock: fix timeout in vsock_accept()

2020-06-09 Thread Greg Kroah-Hartman
From: Stefano Garzarella [ Upstream commit 7e0afbdfd13d1e708fe96e31c46c4897101a6a43 ] The accept(2) is an "input" socket interface, so we should use SO_RCVTIMEO instead of SO_SNDTIMEO to set the timeout. So this patch replace sock_sndtimeo() with sock_rcvtimeo() to use the right timeout in the

[PATCH 5.4 08/34] nfp: flower: fix used time of merge flow statistics

2020-06-09 Thread Greg Kroah-Hartman
From: Heinrich Kuhn [ Upstream commit 5b186cd60f033110960a3db424ffbd6de4cee528 ] Prior to this change the correct value for the used counter is calculated but not stored nor, therefore, propagated to user-space. In use-cases such as OVS use-case at least this results in active flows being remove

[PATCH 5.6 25/41] iio:chemical:pms7003: Fix timestamp alignment and prevent data leak.

2020-06-09 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit 13e945631c2ffb946c0af342812a3cd39227de6e 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 whi

[PATCH 5.6 18/41] USB: serial: qcserial: add DW5816e QDL support

2020-06-09 Thread Greg Kroah-Hartman
From: Matt Jolly commit 3429444abdd9dbd5faebd9bee552ec6162b17ad6 upstream. Add support for Dell Wireless 5816e Download Mode (AKA boot & hold mode / QDL download mode) to drivers/usb/serial/qcserial.c This is required to update device firmware. Signed-off-by: Matt Jolly Cc: sta...@vger.kernel

[PATCH 5.6 21/41] USB: serial: ch341: add basis for quirk detection

2020-06-09 Thread Greg Kroah-Hartman
From: Michael Hanselmann commit c404bf4aa9236cb4d1068e499ae42acf48a6ff97 upstream. A subset of CH341 devices does not support all features, namely the prescaler is limited to a reduced precision and there is no support for sending a RS232 break condition. This patch adds a detection function whi

[PATCH 5.6 23/41] iio:chemical:sps30: Fix timestamp alignment

2020-06-09 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit a5bf6fdd19c327bcfd9073a8740fa19ca4525fd4 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 whi

[PATCH 5.6 26/41] iio: adc: stm32-adc: fix a wrong error message when probing interrupts

2020-06-09 Thread Greg Kroah-Hartman
From: Fabrice Gasnier commit 10134ec3f8cefa6a40fe84987f1795e9e0da9715 upstream. A wrong error message is printed out currently, like on STM32MP15: - stm32-adc-core 48003000.adc: IRQ index 2 not found. This is seen since commit 7723f4c5ecdb ("driver core: platform: Add an error message to platfo

[PATCH 5.6 09/41] nfp: flower: fix used time of merge flow statistics

2020-06-09 Thread Greg Kroah-Hartman
From: Heinrich Kuhn [ Upstream commit 5b186cd60f033110960a3db424ffbd6de4cee528 ] Prior to this change the correct value for the used counter is calculated but not stored nor, therefore, propagated to user-space. In use-cases such as OVS use-case at least this results in active flows being remove

[PATCH 5.6 27/41] usb: musb: start session in resume for host port

2020-06-09 Thread Greg Kroah-Hartman
From: Bin Liu commit 7f88a5ac393f39319f69b8b20cc8d5759878d1a1 upstream. Commit 17539f2f4f0b ("usb: musb: fix enumeration after resume") replaced musb_start() in musb_resume() to not override softconnect bit, but it doesn't restart the session for host port which was done in musb_start(). The ses

Re: [PATCH v11 5/6] ndctl/papr_scm,uapi: Add support for PAPR nvdimm specific methods

2020-06-09 Thread Vaibhav Jain
Thanks Dan for the consideration and taking time to look into this. My responses below: Dan Williams writes: > On Mon, Jun 8, 2020 at 5:16 PM kernel test robot wrote: >> >> Hi Vaibhav, >> >> Thank you for the patch! Perhaps something to improve: >> >> [auto build test WARNING on powerpc/next]

[PATCH 5.4 27/34] x86/speculation/spectre_v2: Exclude Zhaoxin CPUs from SPECTRE_V2

2020-06-09 Thread Greg Kroah-Hartman
From: Tony W Wang-oc commit 1e41a766c98b481400ab8c5a7aa8ea63a1bb03de upstream. New Zhaoxin family 7 CPUs are not affected by SPECTRE_V2. So define a separate cpu_vuln_whitelist bit NO_SPECTRE_V2 and add these CPUs to the cpu vulnerability whitelist. Signed-off-by: Tony W Wang-oc Signed-off-by:

[PATCH 5.6 28/41] usb: musb: Fix runtime PM imbalance on error

2020-06-09 Thread Greg Kroah-Hartman
From: Dinghao Liu commit e4befc121df03dc8ed2ac1031c98f9538e244bae upstream. When copy_from_user() returns an error code, there is a runtime PM usage counter imbalance. Fix this by moving copy_from_user() to the beginning of this function. Fixes: 7b6c1b4c0e1e ("usb: musb: fix runtime PM in debu

[PATCH 5.6 33/41] CDC-ACM: heed quirk also in error handling

2020-06-09 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 97fe809934dd2b0b37dfef3a2fc70417f485d7af upstream. If buffers are iterated over in the error case, the lower limits for quirky devices must be heeded. Signed-off-by: Oliver Neukum Reported-by: Jean Rene Dawin Fixes: a4e7279cd1d19 ("cdc-acm: introduce a cool down") C

[PATCH 5.6 31/41] tty: hvc_console, fix crashes on parallel open/close

2020-06-09 Thread Greg Kroah-Hartman
From: Jiri Slaby commit 24eb2377f977fe06d84fca558f891f95bc28a449 upstream. hvc_open sets tty->driver_data to NULL when open fails at some point. Typically, the failure happens in hp->ops->notifier_add(). If there is a racing process which tries to open such mangled tty, which was not closed yet,

[PATCH 5.6 34/41] nvmem: qfprom: remove incorrect write support

2020-06-09 Thread Greg Kroah-Hartman
From: Srinivas Kandagatla commit 8d9eb0d6d59a5d7028c80a30831143d3e75515a7 upstream. qfprom has different address spaces for read and write. Reads are always done from corrected address space, where as writes are done on raw address space. Writing to corrected address space is invalid and ignored

[PATCH 5.6 30/41] vt: keyboard: avoid signed integer overflow in k_ascii

2020-06-09 Thread Greg Kroah-Hartman
From: Dmitry Torokhov commit b86dab054059b970111b5516ae548efaae5b3aae upstream. When k_ascii is invoked several times in a row there is a potential for signed integer overflow: UBSAN: Undefined behaviour in drivers/tty/vt/keyboard.c:888:19 signed integer overflow: 10 * 11 cannot be rep

[PATCH 5.6 12/41] vsock: fix timeout in vsock_accept()

2020-06-09 Thread Greg Kroah-Hartman
From: Stefano Garzarella [ Upstream commit 7e0afbdfd13d1e708fe96e31c46c4897101a6a43 ] The accept(2) is an "input" socket interface, so we should use SO_RCVTIMEO instead of SO_SNDTIMEO to set the timeout. So this patch replace sock_sndtimeo() with sock_rcvtimeo() to use the right timeout in the

[PATCH v4] x86/umip: Add emulation/spoofing for SLDT and STR instructions

2020-06-09 Thread Brendan Shanks
Add emulation/spoofing of SLDT and STR for both 32- and 64-bit processes. Wine users have found a small number of Windows apps using SLDT that were crashing when run on UMIP-enabled systems. Reported-by: Andreas Rammhold Originally-by: Ricardo Neri Signed-off-by: Brendan Shanks --- v4: Use br

[PATCH 5.6 16/41] net/sched: fix infinite loop in sch_fq_pie

2020-06-09 Thread Greg Kroah-Hartman
From: Davide Caratti [ Upstream commit bb2f930d6dd708469a587dc9ed1efe1ef969c0bf ] this command hangs forever: # tc qdisc add dev eth0 root fq_pie flows 65536 watchdog: BUG: soft lockup - CPU#1 stuck for 23s! [tc:1028] [...] CPU: 1 PID: 1028 Comm: tc Not tainted 5.7.0-rc6+ #167 RIP: 0010:f

[PATCH 5.6 10/41] sctp: check assoc before SCTP_ADDR_{MADE_PRIM, ADDED} event

2020-06-09 Thread Greg Kroah-Hartman
From: Jonas Falkevik [ Upstream commit 45ebf73ebcec88a34a778f5feaa0b82b1c76069e ] Make sure SCTP_ADDR_{MADE_PRIM,ADDED} are sent only for associations that have been established. These events are described in rfc6458#section-6.1 SCTP_PEER_ADDR_CHANGE: This tag indicates that an address that is

[PATCH 5.6 11/41] virtio_vsock: Fix race condition in virtio_transport_recv_pkt

2020-06-09 Thread Greg Kroah-Hartman
From: Jia He [ Upstream commit 8692cefc433f282228fd44938dd4d26ed38254a2 ] When client on the host tries to connect(SOCK_STREAM, O_NONBLOCK) to the server on the guest, there will be a panic on a ThunderX2 (armv8a server): [ 463.718844] Unable to handle kernel NULL pointer dereference at virtua

[PATCH 5.6 39/41] x86/speculation: Add Ivy Bridge to affected list

2020-06-09 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 3798cc4d106e91382bfe016caa2edada27c2bb3f upstream Make the docs match the code. Signed-off-by: Josh Poimboeuf Signed-off-by: Thomas Gleixner Signed-off-by: Greg Kroah-Hartman --- Documentation/admin-guide/hw-vuln/special-register-buffer-data-sampling.rst | 7

[PATCH 5.6 40/41] uprobes: ensure that uprobe->offset and ->ref_ctr_offset are properly aligned

2020-06-09 Thread Greg Kroah-Hartman
From: Oleg Nesterov commit 013b2deba9a6b80ca02f4fafd7dedf875e9b4450 upstream. uprobe_write_opcode() must not cross page boundary; prepare_uprobe() relies on arch_uprobe_analyze_insn() which should validate "vaddr" but some architectures (csky, s390, and sparc) don't do this. We can remove the B

[PATCH 5.7 02/24] USB: serial: usb_wwan: do not resubmit rx urb on fatal errors

2020-06-09 Thread Greg Kroah-Hartman
From: Bin Liu commit 986c1748c84d7727defeaeca74a73b37f7d5cce1 upstream. usb_wwan_indat_callback() shouldn't resubmit rx urb if the previous urb status is a fatal error. Or the usb controller would keep processing the new urbs then run into interrupt storm, and has no chance to recover. Fixes: 6

[PATCH 5.6 41/41] Revert "net/mlx5: Annotate mutex destroy for root ns"

2020-06-09 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman This reverts commit 9b035b08e7e5fe7b2e75636324edf41ee30c5f94 which is commit 9ca415399dae133b00273a4283ef31d003a6818d upstream. It was backported incorrectly, Paul writes at: https://lore.kernel.org/r/20200607203425.gd23...@windriver.com I happened to no

[PATCH 5.7 11/24] usb: musb: Fix runtime PM imbalance on error

2020-06-09 Thread Greg Kroah-Hartman
From: Dinghao Liu commit e4befc121df03dc8ed2ac1031c98f9538e244bae upstream. When copy_from_user() returns an error code, there is a runtime PM usage counter imbalance. Fix this by moving copy_from_user() to the beginning of this function. Fixes: 7b6c1b4c0e1e ("usb: musb: fix runtime PM in debu

[PATCH 5.4 23/34] tty: hvc_console, fix crashes on parallel open/close

2020-06-09 Thread Greg Kroah-Hartman
From: Jiri Slaby commit 24eb2377f977fe06d84fca558f891f95bc28a449 upstream. hvc_open sets tty->driver_data to NULL when open fails at some point. Typically, the failure happens in hp->ops->notifier_add(). If there is a racing process which tries to open such mangled tty, which was not closed yet,

[PATCH 5.7 10/24] usb: musb: start session in resume for host port

2020-06-09 Thread Greg Kroah-Hartman
From: Bin Liu commit 7f88a5ac393f39319f69b8b20cc8d5759878d1a1 upstream. Commit 17539f2f4f0b ("usb: musb: fix enumeration after resume") replaced musb_start() in musb_resume() to not override softconnect bit, but it doesn't restart the session for host port which was done in musb_start(). The ses

[PATCH 5.7 06/24] iio:chemical:sps30: Fix timestamp alignment

2020-06-09 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit a5bf6fdd19c327bcfd9073a8740fa19ca4525fd4 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 whi

[PATCH 5.7 07/24] iio: vcnl4000: Fix i2c swapped word reading.

2020-06-09 Thread Greg Kroah-Hartman
From: Mathieu Othacehe commit 18dfb5326370991c81a6d1ed6d1aeee055cb8c05 upstream. The bytes returned by the i2c reading need to be swapped unconditionally. Otherwise, on be16 platforms, an incorrect value will be returned. Taking the slow path via next merge window as its been around a while and

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