[PATCH 4.9 067/101] btrfs: Refactor check_leaf function for later expansion

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Qu Wenruo commit c3267bbaa9cae09b62960eafe33ad19196803285 upstream. Current check_leaf() function does a good job checking key order and item offset/size. However it only checks from slot 0 to

[PATCH 4.9 063/101] hugetlbfs: fix offset overflow in hugetlbfs mmap

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mike Kravetz commit 045c7a3f53d9403b62d396b6d051c4be5044cdb4 upstream. If mmap() maps a file, it can be passed an offset into the file at which the mapping is to start. Offset could be a negat

[PATCH 4.9 062/101] mm/hugetlb.c: dont call region_abort if region_chg fails

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mike Kravetz commit ff8c0c53c47530ffea82c22a0a6df6332b56c957 upstream. Changes to hugetlbfs reservation maps is a two step process. The first step is a call to region_chg to determine what nee

[PATCH 4.9 060/101] bpf: Prevent memory disambiguation attack

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alexei Starovoitov commit af86ca4e3088fe5eacf2f7e58c01fa68ca067672 upstream. Detect code patterns where malicious 'speculative store bypass' can be used and sanitize such patterns. 39: (bf) r

[PATCH 4.9 055/101] libceph: implement CEPHX_V2 calculation mode

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit cc255c76c70f7a87d97939621eae04b600d9f4a1 upstream. Derive the signature from the entire buffer (both AES cipher blocks) instead of using just the first half of the first blo

[PATCH 4.9 059/101] bpf/verifier: Pass instruction index to check_mem_access() and check_xadd()

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings Extracted from commit 31fd85816dbe "bpf: permits narrower load from bpf program context fields". Cc: Daniel Borkmann Cc: Alexei Starovoitov Signed-off-by: Ben Hutchings Signed-

[PATCH 4.9 056/101] libceph: weaken sizeof check in ceph_x_verify_authorizer_reply()

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit f1d10e04637924f2b00a0fecdd2ca4565f5cfc3f upstream. Allow for extending ceph_x_authorize_reply in the future. Signed-off-by: Ilya Dryomov Reviewed-by: Sage Weil Signed-off

[PATCH 4.9 051/101] libceph: factor out __prepare_write_connect()

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit c0f56b483aa09c99bfe97409a43ad786f33b8a5a upstream. Will be used for sending ceph_msg_connect with an updated authorizer, after the server challenges the initial authorizer.

[PATCH 4.9 049/101] libceph: no need to drop con->mutex for ->get_authorizer()

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit b3bbd3f2ab19c8ca319003b4b51ce4c4ca74da06 upstream. ->get_authorizer(), ->verify_authorizer_reply(), ->sign_message() and ->check_message_signature() shouldn't be doing anyth

[PATCH 4.9 048/101] libceph: drop len argument of *verify_authorizer_reply()

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit 0dde584882ade13dc9708d611fbf69b0ae8a9e48 upstream. The length of the reply is protocol-dependent - for cephx it's ceph_x_authorize_reply. Nothing sensible can be passed fro

[PATCH 4.9 047/101] tipc: use destination length for copy string

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Guoqing Jiang commit 29e270fc32192e7729057963ae7120663856c93e upstream. Got below warning with gcc 8.2 compiler. net/tipc/topsrv.c: In function ‘tipc_topsrv_start’: net/tipc/topsrv.c:660:2: wa

Re: [PATCH] usb: dwc2: Revert "usb: dwc2: Disable all EP's on disconnect"

2018-12-06 Thread Dan Carpenter
Hi Marek, I'm surprised you don't get deadlocks when you apply this patch. On Wed, Nov 21, 2018 at 04:45:04PM +0100, Marek Szyprowski wrote: > @@ -4020,9 +4008,7 @@ static int dwc2_hsotg_ep_disable(struct usb_ep *ep) > > epctrl_reg = dir_in ? DIEPCTL(index) : DOEPCTL(index); > > -

[PATCH 4.9 000/101] 4.9.144-stable review

2018-12-06 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.144 release. There are 101 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 Sat Dec 8 14:29:43 UTC 2018. Anything recei

[PATCH 4.9 007/101] ip_tunnel: Fix name string concatenate in __ip_tunnel_create()

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sultan Alsawaf commit 000ade8016400d93b4d7c89970d96b8c14773d45 upstream. By passing a limit of 2 bytes to strncat, strncat is limited to writing fewer bytes than what it's supposed to append to

[PATCH 4.9 004/101] kobject: Replace strncpy with memcpy

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit 77d2a24b6107bd9b3bf2403a65c1428a9da83dd0 upstream. gcc 8.1.0 complains: lib/kobject.c:128:3: warning: 'strncpy' output truncated before terminating nul copying as

[PATCH 4.9 045/101] usb: gadget: dummy: fix nonsensical comparisons

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 7661ca09b2ff98f48693f431bb01fed62830e433 upstream. gcc-8 points out two comparisons that are clearly bogus and almost certainly not what the author intended to write: driv

[PATCH 4.9 030/101] Input: elan_i2c - add ELAN0620 to the ACPI table

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Patrick Gaskin commit 3ed64da3b790be7c63601e8ca6341b7dff74a660 upstream. Add ELAN0620 to the ACPI table to support the elan touchpad in the Lenovo IdeaPad 130-15IKB. Signed-off-by: Patrick Gas

[PATCH 4.9 031/101] Input: elan_i2c - add ACPI ID for Lenovo IdeaPad 330-15ARR

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Noah Westervelt commit ad33429cd02565c28404bb16ae7a4c2bdfda6626 upstream. Add ELAN061E to the ACPI table to support Elan touchpad found in Lenovo IdeaPad 330-15ARR. Signed-off-by: Noah Westerv

[PATCH 4.9 003/101] test_hexdump: use memcpy instead of strncpy

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit b1286ed7158e9b62787508066283ab0b8850b518 upstream. New versions of gcc reasonably warn about the odd pattern of strncpy(p, q, strlen(q)); which really doesn't ma

[PATCH 4.9 027/101] drm/mediatek: fix OF sibling-node lookup

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit ceff2f4dcd44abf35864d9a99f85ac619e89a01d upstream. Use the new of_get_compatible_child() helper to lookup the sibling instead of using of_find_compatible_node(), which searc

[PATCH 4.9 028/101] Input: xpad - quirk all PDP Xbox One gamepads

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Cameron Gutman commit a6754fae1e66e9a40fed406290d7ca3f2b4d227c upstream. Since we continue to find tons of new variants [0,1,2,3,4,5,6] that need the PDP quirk, let's just quirk all devices fro

[PATCH 4.9 025/101] binder: fix proc->files use-after-free

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Todd Kjos commit 7f3dc0088b98533f17128058fac73cd8b2752ef1 upstream. proc->files cleanup is initiated by binder_vma_close. Therefore a reference on the binder_proc is not enough to prevent the f

[PATCH 4.9 022/101] scsi: csiostor: Avoid content leaks and casts

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 42c335f7e67029d2e01711f2f2bc6252277c8993 upstream. When copying attributes, the len argument was padded out and the resulting memcpy() would copy beyond the end of the source b

Re: [PATCH 0/7] microblaze: fix various problems in building boot images

2018-12-06 Thread Michal Simek
On 03. 12. 18 8:50, Masahiro Yamada wrote: > This patch set fixes various issues in microblaze Makefiles. > > BTW, "simpleImage." works like a phony target to generate the > following four images, where the first three are just aliases. > > - arch/microblaze/boot/simpleImage.: > identic

[PATCH 4.9 002/101] disable stringop truncation warnings for now

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Stephen Rothwell commit 217c3e0196758662aa0429863b09d1c13da1c5d6 upstream. They are too noisy Signed-off-by: Stephen Rothwell Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman

[PATCH 4.9 019/101] drm: set is_master to 0 upon drm_new_set_master() failure

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sergio Correia commit 23a336b34258aba3b50ea6863cca4e81b5ef6384 upstream. When drm_new_set_master() fails, set is_master to 0, to prevent a possible NULL pointer deref. Here is a problematic fl

[PATCH 4.9 020/101] scsi: scsi_devinfo: cleanly zero-pad devinfo strings

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Martin Wilck commit 81df022b688d43d2a3667518b2f755d384397910 upstream. Cleanly fill memory for "vendor" and "model" with 0-bytes for the "compatible" case rather than adding only a single 0 byt

[PATCH 4.9 014/101] uprobes: Fix handle_swbp() vs. unregister() + register() race once more

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Andrea Parri commit 09d3f015d1e1b4fee7e9bbdcf54201d239393391 upstream. Commit: 142b18ddc8143 ("uprobes: Fix handle_swbp() vs unregister() + register() race") added the UPROBE_COPY_INSN flag

[PATCH 4.9 017/101] IB/mlx5: Avoid load failure due to unknown link width

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michael Guralnik commit db7a691a1551a748cb92d9c89c6b190ea87e28d5 upstream. If the firmware reports a connection width that is not 1x, 4x, 8x or 12x it causes the driver to fail during initializ

[PATCH 4.9 011/101] kdb: use memmove instead of overlapping memcpy

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 2cf2f0d5b91fd1b06a6ae260462fc7945ea84add upstream. gcc discovered that the memcpy() arguments in kdbnearsym() overlap, so we should really use memmove(), which is defined t

[PATCH 4.9 013/101] iser: set sector for ambiguous mr status errors

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sagi Grimberg commit 24c3456c8d5ee6fc1933ca40f7b4406130682668 upstream. If for some reason we failed to query the mr status, we need to make sure to provide sufficient information for an ambigu

[PATCH 4.9 001/101] Kbuild: suppress packed-not-aligned warning for default setting only

2018-12-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Xiongfeng Wang commit 321cb0308a9e76841394b4bbab6a1107cfedbae0 upstream. gcc-8 reports many -Wpacked-not-aligned warnings. The below are some examples. ./include/linux/ceph/msgr.h:67:1: warnin

[PATCH 4.14 25/55] userfaultfd: shmem: UFFDIO_COPY: set the page dirty if VM_WRITE is not set

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Andrea Arcangeli commit dcf7fe9d89763a28e0f43975b422ff141fe79e43 upstream. Set the page dirty if VM_WRITE is not set because in such case the pte won't be marked dirty and the page would be re

[PATCH 4.14 23/55] userfaultfd: shmem: allocate anonymous memory for MAP_PRIVATE shmem

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Andrea Arcangeli commit 5b51072e97d587186c2f5390c8c9c1fb7e179505 upstream. Userfaultfd did not create private memory when UFFDIO_COPY was invoked on a MAP_PRIVATE shmem mapping. Instead it wr

[PATCH 4.14 24/55] userfaultfd: shmem: add i_size checks

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Andrea Arcangeli commit e2a50c1f64145a04959df2442305d57307e5395a upstream. With MAP_SHARED: recheck the i_size after taking the PT lock, to serialize against truncate with the PT lock. Delete

[PATCH 4.14 22/55] userfaultfd: use ENOENT instead of EFAULT if the atomic copy user fails

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Andrea Arcangeli commit 9e368259ad988356c4c95150fafd1a06af095d98 upstream. Patch series "userfaultfd shmem updates". Jann found two bugs in the userfaultfd shmem MAP_SHARED backend: the lack

Re: [PATCH v10 0/8] Introduce on-chip interconnect API

2018-12-06 Thread Greg KH
On Wed, Dec 05, 2018 at 12:41:35PM -0800, Evan Green wrote: > On Tue, Nov 27, 2018 at 10:03 AM Georgi Djakov > wrote: > > > > Modern SoCs have multiple processors and various dedicated cores (video, > > gpu, > > graphics, modem). These cores are talking to each other and can generate a > > lot o

[PATCH v2] mtd: spi-nor: parse SFDP 4-byte Address Instruction Table

2018-12-06 Thread Tudor.Ambarus
From: Cyrille Pitchen Add support for SFDP (JESD216B) 4-byte Address Instruction Table. This table is optional but when available, we parse it to get the 4-byte address op codes supported by the memory. Using these op codes is stateless as opposed to entering the 4-byte address mode or setting th

[PATCH 4.14 52/55] thermal/drivers/hisi: Remove costly sensor inspection

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Lezcano commit 10d7e9a9181f4637640f388d334c6740c1b5d0e8 upstream. The sensor is all setup, bind, resetted, acked, etc... every single second. That was the way to workaround a problem w

[PATCH 4.14 49/55] thermal/drivers/hisi: Remove pointless lock

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Lezcano commit 2d4fa7b4c6f8080ced2e8237c9f46fb1fc110d64 upstream. The threaded interrupt inspect the sensors structure to look in the temp threshold field, but this field is read-only i

[PATCH 4.14 37/55] Input: elan_i2c - add ELAN0620 to the ACPI table

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Patrick Gaskin commit 3ed64da3b790be7c63601e8ca6341b7dff74a660 upstream. Add ELAN0620 to the ACPI table to support the elan touchpad in the Lenovo IdeaPad 130-15IKB. Signed-off-by: Patrick Ga

[PATCH 4.14 44/55] udf: Allow mounting volumes with incorrect identification strings

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit b54e41f5efcb4316b2f30b30c2535cc194270373 upstream. Commit c26f6c615788 ("udf: Fix conversion of 'dstring' fields to UTF8") started to be more strict when checking whether conve

[PATCH 4.14 46/55] reset: remove remaining WARN_ON() in

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Masahiro Yamada commit bb6c7768385b200063a14d6615cc1246c3d00760 upstream. Commit bb475230b8e5 ("reset: make optional functions really optional") gave a new meaning to _get_optional variants.

[PATCH 4.14 40/55] btrfs: tree-checker: Dont check max block group size as current max chunk size limit is unreliable

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Qu Wenruo commit 10950929e994c5ecee149ff0873388d3c98f12b5 upstream. [BUG] A completely valid btrfs will refuse to mount, with error message like: BTRFS critical (device sdb2): corrupt leaf:

[PATCH 4.14 42/55] ARC: change defconfig defaults to ARCv2

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Kevin Hilman commit b7cc40c32a8bfa6f2581a71747f6a7d491fe43ba upstream. Change the default defconfig (used with 'make defconfig') to the ARCv2 nsim_hs_defconfig, and also switch the default Kco

[PATCH 4.14 27/55] userfaultfd: shmem/hugetlbfs: only allow to register VM_MAYWRITE vmas

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Andrea Arcangeli commit 29ec90660d68bbdd69507c1c8b4e33aa299278b1 upstream. After the VMA to register the uffd onto is found, check that it has VM_MAYWRITE set before allowing registration. Th

Re: [PATCH][next] drivers: base: remove need for a temporary string for the node name

2018-12-06 Thread Greg Kroah-Hartman
On Thu, Nov 29, 2018 at 06:08:44PM +, Colin King wrote: > From: Colin Ian King > > Currently the node name is being formatting into a temporary string > node_name, however, kobject_init_and_add allows one to format up > a node name, so use that instead. This removes the need for the > node_na

[PATCH 4.14 34/55] Input: synaptics - add PNP ID for ThinkPad P50 to SMBus

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Lyude Paul commit 9df39bedbf292680655c6a947c77d6562c693d4a upstream. Noticed the other day the trackpoint felt different on my P50, then realized it was because rmi4 wasn't loading for this ma

[PATCH 4.14 19/55] drm: set is_master to 0 upon drm_new_set_master() failure

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Sergio Correia commit 23a336b34258aba3b50ea6863cca4e81b5ef6384 upstream. When drm_new_set_master() fails, set is_master to 0, to prevent a possible NULL pointer deref. Here is a problematic f

[PATCH 4.14 32/55] drm/msm: fix OF child-node lookup

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit f9a7082327e26f54067a49cac2316d31e0cc8ba7 upstream. Use the new of_get_compatible_child() helper to lookup the legacy pwrlevels child node instead of using of_find_compatibl

[PATCH man-pages] Add rseq manpage

2018-12-06 Thread Mathieu Desnoyers
[ Michael, rseq(2) was merged into 4.18. Can you have a look at this patch which adds rseq documentation to the man-pages project ? ] Signed-off-by: Mathieu Desnoyers CC: "Paul E. McKenney" CC: Peter Zijlstra CC: Paul Turner CC: Thomas Gleixner CC: Andy Lutomirski CC: Andi Kleen CC: Dave

[PATCH 4.14 36/55] Input: cros_ec_keyb - fix button/switch capability reports

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Brian Norris commit ac5722c1643a2fb75224c79b578214956d34f989 upstream. The cros_ec_keyb_bs array lists buttons and switches together, expecting that its users will match the appropriate type a

[PATCH 4.14 30/55] kgdboc: Fix warning with module build

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Laura Abbott commit 1cd25cbb2fedbc777f3a8c3cb1ba69b645aeaa64 upstream. After 2dd453168643 ("kgdboc: Fix restrict error"), kgdboc_option_setup is now only used when built in, resulting in a war

[PATCH 4.14 28/55] ALSA: trident: Suppress gcc string warning

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit d6b340d7cb33c816ef4abe8143764ec5ab14a5cc upstream. The meddlesome gcc warns about the possible shortname string in trident driver code: sound/pci/trident/trident.c: In fu

[PATCH 4.14 09/55] drm: gma500: fix logic error

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 67a3b63a54cbe18944191f43d644686731cf30c7 upstream. gcc-8 points out a condition that almost certainly doesn't do what the author had in mind: drivers/gpu/drm/gma500/mdfld

[PATCH 4.14 02/55] disable stringop truncation warnings for now

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Stephen Rothwell commit 217c3e0196758662aa0429863b09d1c13da1c5d6 upstream. They are too noisy Signed-off-by: Stephen Rothwell Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman

[PATCH 4.14 15/55] MIPS: ralink: Fix mt7620 nd_sd pinmux

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Kresin commit 7d35baa4e9ec4b717bc0e58a39cdb6a1c50f5465 upstream. In case the nd_sd group is set to the sd-card function, Pins 45 + 46 are configured as GPIOs. If they are blocked by th

[PATCH 4.14 04/55] kobject: Replace strncpy with memcpy

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit 77d2a24b6107bd9b3bf2403a65c1428a9da83dd0 upstream. gcc 8.1.0 complains: lib/kobject.c:128:3: warning: 'strncpy' output truncated before terminating nul copying as

[PATCH 4.14 12/55] kdb: use memmove instead of overlapping memcpy

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 2cf2f0d5b91fd1b06a6ae260462fc7945ea84add upstream. gcc discovered that the memcpy() arguments in kdbnearsym() overlap, so we should really use memmove(), which is defined

[PATCH 4.14 01/55] Kbuild: suppress packed-not-aligned warning for default setting only

2018-12-06 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Xiongfeng Wang commit 321cb0308a9e76841394b4bbab6a1107cfedbae0 upstream. gcc-8 reports many -Wpacked-not-aligned warnings. The below are some examples. ./include/linux/ceph/msgr.h:67:1: warni

Re: [PATCH 00/15 v4] Regulator ena_gpiod fixups

2018-12-06 Thread Linus Walleij
On Thu, Dec 6, 2018 at 2:49 PM Charles Keepax wrote: > On Thu, Dec 06, 2018 at 02:27:03PM +0100, Marek Szyprowski wrote: > > On 2018-12-06 13:43, Linus Walleij wrote: > > One more thing - if I got everything right, gpiod_put() in > > *regulator_register() error path has to be removed also in > > w

[PATCH 4.19 41/41] tipc: use destination length for copy string

2018-12-06 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Guoqing Jiang commit 29e270fc32192e7729057963ae7120663856c93e upstream. Got below warning with gcc 8.2 compiler. net/tipc/topsrv.c: In function ‘tipc_topsrv_start’: net/tipc/topsrv.c:660:2: w

[PATCH 4.19 38/41] btrfs: tree-checker: Dont check max block group size as current max chunk size limit is unreliable

2018-12-06 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Qu Wenruo commit 10950929e994c5ecee149ff0873388d3c98f12b5 upstream. [BUG] A completely valid btrfs will refuse to mount, with error message like: BTRFS critical (device sdb2): corrupt leaf:

[PATCH 4.19 36/41] Input: elan_i2c - add ACPI ID for Lenovo IdeaPad 330-15ARR

2018-12-06 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Noah Westervelt commit ad33429cd02565c28404bb16ae7a4c2bdfda6626 upstream. Add ELAN061E to the ACPI table to support Elan touchpad found in Lenovo IdeaPad 330-15ARR. Signed-off-by: Noah Wester

[PATCH 4.19 33/41] Input: matrix_keypad - check for errors from of_get_named_gpio()

2018-12-06 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Christian Hoff commit d55bda1b3e7c5a87f10da54fdda866a9a9cef30b upstream. "of_get_named_gpio()" returns a negative error value if it fails and drivers should check for this. This missing check

[PATCH 4.19 07/41] arm64: ftrace: Fix to enable syscall events on arm64

2018-12-06 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Masami Hiramatsu commit 874bfc6e5422d2421f7e4d5ea318d30e91679dfe upstream. Since commit 4378a7d4be30 ("arm64: implement syscall wrappers") introduced "__arm64_" prefix to all syscall wrapper s

Re: siginfo pid not populated from ptrace?

2018-12-06 Thread Eric W. Biederman
Kees Cook writes: > On Sat, Dec 1, 2018 at 7:04 AM Eric W. Biederman > wrote: >> >> Kees Cook writes: >> >> > On Tue, Nov 27, 2018 at 8:44 PM Eric W. Biederman >> > wrote: >> >> >> >> Kees Cook writes: >> >> >> >> > On Tue, Nov 27, 2018 at 4:38 PM, Kees Cook >> >> > wrote: >> >> >> On Tue

[PATCH 4.19 03/41] unifdef: use memcpy instead of strncpy

2018-12-06 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit 38c7b224ce22c25fed04007839edf974bd13439d upstream. New versions of gcc reasonably warn about the odd pattern of strncpy(p, q, strlen(q)); which really doesn't m

[PATCH 4.19 27/41] svm: Add mutex_lock to protect apic_access_page_done on AMD systems

2018-12-06 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Wei Wang commit 30510387a5e45bfcf8190e03ec7aa15b295828e2 upstream. There is a race condition when accessing kvm->arch.apic_access_page_done. Due to it, x86_set_memory_region will fail when cre

[PATCH 4.19 25/41] kgdboc: Fix restrict error

2018-12-06 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Laura Abbott commit 2dd453168643d9475028cd867c57e65956a0f7f9 upstream. There's an error when compiled with restrict: drivers/tty/serial/kgdboc.c: In function ‘configure_kgdboc’: drivers/tty/s

[PATCH 4.19 21/41] userfaultfd: use ENOENT instead of EFAULT if the atomic copy user fails

2018-12-06 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Andrea Arcangeli commit 9e368259ad988356c4c95150fafd1a06af095d98 upstream. Patch series "userfaultfd shmem updates". Jann found two bugs in the userfaultfd shmem MAP_SHARED backend: the lack

[PATCH 4.19 17/41] drm: set is_master to 0 upon drm_new_set_master() failure

2018-12-06 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Sergio Correia commit 23a336b34258aba3b50ea6863cca4e81b5ef6384 upstream. When drm_new_set_master() fails, set is_master to 0, to prevent a possible NULL pointer deref. Here is a problematic f

[PATCH 4.19 13/41] tracing/fgraph: Fix set_graph_function from showing interrupts

2018-12-06 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt (VMware) commit 5cf99a0f3161bc3ae2391269d134d6bf7e26f00e upstream. The tracefs file set_graph_function is used to only function graph functions that are listed in that file (or

[PATCH 4.19 12/41] IB/mlx5: Avoid load failure due to unknown link width

2018-12-06 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Michael Guralnik commit db7a691a1551a748cb92d9c89c6b190ea87e28d5 upstream. If the firmware reports a connection width that is not 1x, 4x, 8x or 12x it causes the driver to fail during initiali

[PATCH 0/2] riscv: add support for SECCOMP and SECCOMP_FILTER

2018-12-06 Thread David Abdurachmanov
This was originally tested on 4.19 kernel with Fedora 29/RISCV. Depends on audit patches (already in linux-next). The patches are on top of linux-next next-20181206 tag. Validation was done using libseccomp (at 1e64feb5f1a9ea02687228e3073e8b784a04ce46, which is master at this date). See PR

Re: [PATCH 2/2] arch: switch the default on ARCH_HAS_SG_CHAIN

2018-12-06 Thread Christoph Hellwig
I've picked this up for the dma-mapping for-next tree.

[PATCH 2/2] riscv: fix syscall_{get,set}_arguments

2018-12-06 Thread David Abdurachmanov
Testing with libseccomp master branch revealed that testcases with filters on syscall arguments were failing due to wrong values. Seccomp uses syscall_get_argumentsi() to copy syscall arguments, and there is a bug in pointer arithmetics in memcpy() call. Two alternative implementation were tested:

[PATCH 1/2] riscv: add support for SECCOMP incl. filters

2018-12-06 Thread David Abdurachmanov
The patch adds support for SECCOMP and SECCOMP_FILTER (BPF). Signed-off-by: David Abdurachmanov --- arch/riscv/Kconfig | 14 ++ arch/riscv/include/asm/thread_info.h | 5 - arch/riscv/kernel/entry.S| 27 +-- arch/riscv/kernel/

Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-06 Thread Eric W. Biederman
Christian Brauner writes: > The kill() syscall operates on process identifiers (pid). After a process > has exited its pid can be reused by another process. If a caller sends a > signal to a reused pid it will end up signaling the wrong process. This > issue has often surfaced and there has been

Re: [PATCH v2] lzo: fix ip overrun during compress.

2018-12-06 Thread Markus F.X.J. Oberhumer
Hi Yueyi, yes, my LZO patch works for all cases. The reason behind the issue in the first place is that if KASLR includes the very last page 0xf000 then we do not have a valid C "pointer to an object" anymore because of address wraparound. Unrelated to my patch I'd argue that KASLR s

Re: [PATCH 2/3] kbuild: generate asm-generic wrappers if mandatory headers are missing

2018-12-06 Thread Christoph Hellwig
On Wed, Dec 05, 2018 at 08:28:05PM +0900, Masahiro Yamada wrote: > Some time ago, Sam pointed out a certain degree of overwrap between > generic-y and mandatory-y. (https://lkml.org/lkml/2017/7/10/121) > > I a bit tweaked the meaning of mandatory-y; now it defines the minimum > set of ASM headers

Re: [PATCH 2/2] staging: greybus: Added space between string concatenated

2018-12-06 Thread Greg Kroah-Hartman
On Thu, Dec 06, 2018 at 09:43:46AM +, Bryan O'Donoghue wrote: > On 05/12/2018 21:00, Sicilia Cristian wrote: > > It doesn't change the result string > > So why do it then ? Because it is easier to read this way and odds are checkpatch is happier. thanks, greg k-h

Re: [PATCH 2/2] kobject: add kernel/uevent_features sysfs file

2018-12-06 Thread Greg KH
On Wed, Dec 05, 2018 at 12:27:45PM +0100, Peter Rajnoha wrote: > We can use extended format when writing /sys/.../uevent files to > generate synthetic uevents, introduced with commit f36776fafbaa > ("kobject: support passing in variables for synthetic uevents"). > > Before using this extended form

Re: [PATCH v2 0/2] arm64: Only call into preempt_schedule() if need_resched()

2018-12-06 Thread Peter Zijlstra
On Fri, Nov 30, 2018 at 05:34:29PM +, Will Deacon wrote: > Hi all, > > This is version two of the patches I originally posted here: > > > http://lkml.kernel.org/r/1543347902-21170-1-git-send-email-will.dea...@arm.com > > The only change since v1 is that __preempt_count_dec_and_test() now

[PATCH V3 0/2] mmc: mmci: add stop command

2018-12-06 Thread Ludovic Barre
From: Ludovic Barre This patch series adds variant property to: -Set cmdstop bit on STOP_TRANSMISSION command. -On command or data error, send a stop command. to clear DPSM if it's yet activated. change v3: -Move the cmdstop bit in separate patch. -Use Ulf re-wording for patch 2/2. -Move specifi

[PATCH V3 1/2] mmc: mmci: add variant property to set command stop bit

2018-12-06 Thread Ludovic Barre
From: Ludovic Barre On cmd12 (STOP_TRANSMISSION), STM32 sdmmc variant needs to set cmdstop bit in command register. The CPSM ("Command Path State Machine") treats the command as a Stop Transmission command and signals abort to the DPSM ("Data Path State Machine"). Signed-off-by: Ludovic Barre -

[PATCH V3 2/2] mmc: mmci: send stop command to clear the dpsm

2018-12-06 Thread Ludovic Barre
From: Ludovic Barre The current approach with sending a CMD12 (STOP_TRANSMISSION) to complete a data transfer request, either because of using the open ended transmission type or because of receiving an error during a data transfer, isn't sufficient for the STM32 sdmmc variant. More precisely, f

Re: [PATCH] clk: socfpga: Don't have get_parent for single parent ops

2018-12-06 Thread Dinh Nguyen
On 12/5/18 9:55 AM, Stephen Boyd wrote: > Quoting Dinh Nguyen (2018-12-05 07:17:41) >> Hi Stephen, >> >> On 12/5/18 1:17 AM, Stephen Boyd wrote: >>> (Adding Dinh's korg email) >>> >>> I also wonder if this driver is even used anymore or maybe we can delete >>> it? >>> >> >> The armv7 SoCFPGA pla

[PATCH 0/4] mmc: meson-gx: chained descriptor fixup and improvements

2018-12-06 Thread Jerome Brunet
The goal of the patchset was mainly to address the following warning: WARNING: CPU: 0 PID: 0 at /usr/src/kernel/drivers/mmc/host/meson-gx-mmc.c:1025 meson_mmc_irq+0xc0/0x1e0 Modules linked in: crc32_ce crct10dif_ce ipv6 overlay CPU: 0 PID: 0 Comm: swapper/0 Tainted: GW 4.19.1 #1 H

[RFT PATCH 4/4] mmc: meson-gx: add signal resampling

2018-12-06 Thread Jerome Brunet
With some eMMC devices, there is still issues with the new phase settings. Enabling signal resampling seems to solve the problem for these. Signed-off-by: Jerome Brunet --- drivers/mmc/host/meson-gx-mmc.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/mm

[PATCH 1/4] mmc: meson-gx: make sure the descriptor is stopped on errors

2018-12-06 Thread Jerome Brunet
On errors, if we don't stop the descriptor chain, it may continue to run and raise IRQ after we have called mmc_request_done(). This is bad because we won't be able to get cmd anymore and properly deal with the IRQ. This patch makes sure the descriptor chain is stopped before calling mmc_request_d

[RFT PATCH 3/4] mmc: meson-gx: align default phase on soc vendor tree

2018-12-06 Thread Jerome Brunet
Align the default Core and Tx phase with the SoC vendor tree. Even if the Tx phase is different from what the documentation recommends, it seems to provide better results. Signed-off-by: Jerome Brunet --- drivers/mmc/host/meson-gx-mmc.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-

[PATCH 2/4] mmc: meson-gx: remove useless lock

2018-12-06 Thread Jerome Brunet
The spinlock is only used within the irq handler so it does not seem very useful. Signed-off-by: Jerome Brunet --- drivers/mmc/host/meson-gx-mmc.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index fcb5d693c897..5cc31

Re: dmapool regression in next

2018-12-06 Thread Tony Battersby
On 12/6/18 4:25 AM, Krzysztof Kozlowski wrote: > On Thu, 6 Dec 2018 at 02:31, Tony Lindgren wrote: >> Hi, >> >> Looks like with commit 26abe88e830d ("mm/dmapool.c: improve scalability >> of dma_pool_free()") I'm now getting spammed with lots of "(bad vaddr)" >> on at least omap4 pandaboard, see be

Re: [PATCH][next] drivers: base: remove need for a temporary string for the node name

2018-12-06 Thread Rafael J. Wysocki
On Thu, Dec 6, 2018 at 3:57 PM Greg Kroah-Hartman wrote: > > On Thu, Nov 29, 2018 at 06:08:44PM +, Colin King wrote: > > From: Colin Ian King > > > > Currently the node name is being formatting into a temporary string > > node_name, however, kobject_init_and_add allows one to format up > > a

[PATCH 1/2] riscv: fix trace_sys_exit hook

2018-12-06 Thread David Abdurachmanov
Fix compilation error. Signed-off-by: David Abdurachmanov --- arch/riscv/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/ptrace.c b/arch/riscv/kernel/ptrace.c index c1b51539c3e2..2fd9ec48106b 100644 --- a/arch/riscv/kernel/ptrace.c +++ b/arch

[PATCH 0/2] riscv: enable syscalls tracepoints

2018-12-06 Thread David Abdurachmanov
Depends on audit patch: http://lists.infradead.org/pipermail/linux-riscv/2018-October/001931.html audit patch is already merged into linux-next. This simply fixes compilation error in do_syscall_trace_exit() and enables syscalls tracepoints. David Abdurachmanov (2): riscv: fix trace_sys_exit h

[PATCH 2/2] riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig

2018-12-06 Thread David Abdurachmanov
I looked into Documentation/trace/ftrace-design.rst and, I think, we check all the boxes needed for HAVE_SYSCALL_TRACEPOINTS. Signed-off-by: David Abdurachmanov --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a4f48f757204..

Re: [PATCH v2 2/3] arm64: dts: allwinner: a64: Add A64 CSI controller

2018-12-06 Thread Maxime Ripard
On Thu, Dec 06, 2018 at 06:53:05PM +0530, Jagan Teki wrote: > Allwinner A64 CSI controller has similar features as like in > H3, So add support for A64 via H3 fallback. > > Also updated CSI_SCLK to use 300MHz via assigned-clocks, since > the default clock 600MHz seems unable to drive the sensor(ov

Re: perf: perf_fuzzer triggers GPF in perf_prepare_sample

2018-12-06 Thread Vince Weaver
On Wed, 5 Dec 2018, Jiri Olsa wrote: > On Wed, Dec 05, 2018 at 12:11:19PM -0500, Vince Weaver wrote: > > On Wed, 5 Dec 2018, Jiri Olsa wrote: > > > > > On Wed, Dec 05, 2018 at 01:45:38PM +0100, Jiri Olsa wrote: > > > > On Tue, Dec 04, 2018 at 10:54:55AM -0500, Vince Weaver wrote: > > > > > Hello,

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