[PATCH v3] net: inet: diag: expose sockets cgroup classid

2017-08-16 Thread Levin, Alexander (Sasha Levin)
From: "Levin, Alexander (Sasha Levin)" <alexander.le...@one.verizon.com> This is useful for directly looking up a task based on class id rather than having to scan through all open file descriptors. Signed-off-by: Sasha Levin <alexander.le...@verizon.com> --- include/uapi/

Re: block: hung task writing to device

2017-07-10 Thread Levin, Alexander (Sasha Levin)
On Sat, Jul 08, 2017 at 07:29:20PM -0600, Jens Axboe wrote: >On 07/08/2017 01:06 PM, Levin, Alexander (Sasha Levin) wrote: >> Hi all, >> >> syzkaller seems to be hitting a lockup with the reproducer below: > >Thanks for the reproducer, but this is missing a lot of de

Re: [PATCH 00/17] v3 net generic subsystem refcount conversions

2017-07-08 Thread Levin, Alexander (Sasha Levin)
On Mon, Jul 03, 2017 at 02:28:56AM -0700, Eric Dumazet wrote: >On Fri, 2017-06-30 at 13:07 +0300, Elena Reshetova wrote: >> Changes in v3: >> Rebased on top of the net-next tree. >> >> Changes in v2: >> No changes in patches apart from rebases, but now by >> default refcount_t = atomic_t (*) and

block: hung task writing to device

2017-07-08 Thread Levin, Alexander (Sasha Levin)
Hi all, syzkaller seems to be hitting a lockup with the reproducer below: INFO: task syzkaller490361:8788 blocked for more than 120 seconds. Not tainted 4.12.0-next-20170706+ #186 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syzkaller490361 D18312 8788 5843

[PATCH for v4.9 LTS 03/87] ARM: omap2+: fixing wrong strcat for Non-NULL terminated string

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Maninder Singh [ Upstream commit 5066d5296ff2db20625e5f46e7338872c90c649f ] Issue caught with static analysis tool: "Dangerous usage of 'name' (strncpy doesn't always 0-terminate it)" Use strlcpy _includes_ the NUL terminator, and strlcat() which ensures that it

[PATCH for v4.9 LTS 48/87] ASoC: fsl_ssi: set fifo watermark to more reliable value

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Caleb Crome [ Upstream commit 4ee437fbf626b5ad756889d8bc0fcead3d66dde7 ] The fsl_ssi fifo watermark is by default set to 2 free spaces (i.e. activate DMA on FIFO when only 2 spaces are left.) This means the DMA must service the fifo within 2 audio samples, which is just

[PATCH for v4.9 LTS 60/87] ASoC: dpcm: Avoid putting stream state to STOP when FE stream is paused

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Patrick Lai [ Upstream commit 9f169b9f52a4afccdab7a7d2311b0c53a78a1e6b ] When multiple front-ends are using the same back-end, putting state of a front-end to STOP state upon receiving pause command will result in backend stream getting released by DPCM framework

[PATCH for v4.9 LTS 66/87] spi: spi-axi: Free resources on error path

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Christophe JAILLET [ Upstream commit 9620ca90115d4bd700f05862d3b210a266a66efe ] We should go to 'err_put_master' here instead of returning directly. Otherwise a call to 'spi_master_put' is missing. Signed-off-by: Christophe JAILLET

[PATCH for v4.9 LTS 73/87] scsi: qla2xxx: Get mutex lock before checking optrom_state

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: "Milan P. Gandhi" [ Upstream commit c7702b8c22712a06080e10f1d2dee1a133ec8809 ] There is a race condition with qla2xxx optrom functions where one thread might modify optrom buffer, optrom_state while other thread is still reading from it. In couple of crashes, it was

[PATCH for v4.9 LTS 08/87] net/mlx5: Disable RoCE on the e-switch management port under switchdev mode

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Or Gerlitz [ Upstream commit 9da34cd34e85aacc55af8774b81b1f23e86014f9 ] Under the switchdev/offloads mode, packets that don't match any e-switch steering rule are sent towards the e-switch management port. We use a NIC HW steering rule set per vport (uplink and VFs)

[PATCH for v4.9 LTS 78/87] iw_cxgb4: do not send RX_DATA_ACK CPLs after close/abort

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Steve Wise [ Upstream commit 3bcf96e0183f5c863657cb6ae9adad307a0f6071 ] Function rx_data(), which handles ingress CPL_RX_DATA messages, was always sending an RX_DATA_ACK with the goal of updating the credits. However, if the RDMA connection is moved out of

[PATCH for v4.9 LTS 80/87] virtio_blk: fix panic in initialization error path

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Omar Sandoval [ Upstream commit 6bf6b0aa3da84a3d9126919a94c49c0fb7ee2fb3 ] If blk_mq_init_queue() returns an error, it gets assigned to vblk->disk->queue. Then, when we call put_disk(), we end up calling blk_put_queue() with the ERR_PTR, causing a bad dereference. Fix it

[PATCH for v4.9 LTS 74/87] drm/virtio: fix framebuffer sparse warning

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Gerd Hoffmann [ Upstream commit 71d3f6ef7f5af38dea2975ec5715c88bae92e92d ] virtio uses normal ram as backing storage for the framebuffer, so we should assign the address to new screen_buffer (added by commit 17a7b0b4d9749f80d365d7baff5dec2f54b0e992) instead of

[PATCH for v4.9 LTS 83/87] lib/Kconfig.debug: fix frv build failure

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Sudip Mukherjee [ Upstream commit da0510c47519fe0999cffe316e1d370e29f952be ] The build of frv allmodconfig was failing with the errors like: /tmp/cc0JSPc3.s: Assembler messages: /tmp/cc0JSPc3.s:1839: Error: symbol `.LSLT0' is already defined

[PATCH for v4.9 LTS 79/87] nbd: blk_mq_init_queue returns an error code on failure, not NULL

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jeff Moyer [ Upstream commit 25b4acfc7de0fc4da3bfea3a316f7282c6fbde81 ] Additionally, don't assign directly to disk->queue, otherwise blk_put_queue (called via put_disk) will choke (panic) on the errno stored there. Bug found by code inspection after Omar found a

[PATCH for v4.9 LTS 71/87] clk/samsung: exynos542x: mark some clocks as critical

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Marek Szyprowski [ Upstream commit 318fa46cc60d37fec1e87dbf03a82aca0f5ce695 ] Some parent clocks of the Exynos542x clock blocks, which have separate power domains (like DISP, MFC, MSC, GSC, FSYS and G2D) must be always enabled to access any register related to

[PATCH for v4.9 LTS 62/87] sh_eth: R8A7740 supports packet shecksumming

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Sergei Shtylyov [ Upstream commit 0f1f9cbc04dbb3cc310f70a11cba0cf1f2109d9c ] The R8A7740 GEther controller supports the packet checksum offloading but the 'hw_crc' (bad name, I'll fix it) flag isn't set in the R8A7740 data, thus CSMR isn't cleared...

[PATCH for v4.9 LTS 77/87] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Emmanuel Vadot [ Upstream commit 3116d37651d77125bf50f81f859b1278e02ccce6 ] The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. This makes the original node (mmc2_pins_a) scrapped out of the dtb and result in a unusable eMMC if U-Boot didn't

[PATCH for v4.9 LTS 04/87] dt-bindings: power/supply: Update TPS65217 properties

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Milo Kim [ Upstream commit 81d7358d7038dd1001547950087e5b0641732f3f ] Add interrupt specifiers for USB and AC charger input. Interrupt numbers are from the datasheet. Fix wrong property for compatible string. Signed-off-by: Milo Kim

[PATCH for v4.9 LTS 30/87] perf probe: Fix to get correct modname from elf header

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Masami Hiramatsu [ Upstream commit 1f2ed153b916c95a49a1ca9d7107738664224b7f ] Since 'perf probe' supports cross-arch probes, it is possible to analyze different arch kernel image which has different bits-per-long. In that case, it fails to get the module name because

[PATCH for v4.9 LTS 15/87] drm/msm: Verify that MSM_SUBMIT_BO_FLAGS are set

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jordan Crouse [ Upstream commit a6cb3b864b21b7345f824a4faa12b723c8aaf099 ] For every submission buffer object one of MSM_SUBMIT_BO_WRITE and MSM_SUBMIT_BO_READ must be set (and nothing else). If we allowed zero then the buffer object would never get queued to be

[PATCH for v4.9 LTS 22/87] openrisc: Add _text symbol to fix ksym build error

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Stafford Horne [ Upstream commit 086cc1c31a0ec075dac02425367c871bb65bc2c9 ] The build robot reports: .tmp_kallsyms1.o: In function `kallsyms_relative_base': >> (.rodata+0x8a18): undefined reference to `_text' This is when using 'make alldefconfig'. Adding this _text

[PATCH for v4.9 LTS 57/87] scsi: snic: Return error code on memory allocation failure

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Burak Ok [ Upstream commit 0371adcdaca92912baaa3256ed13e058a016e62d ] If a call to mempool_create_slab_pool() in snic_probe() returns NULL, return -ENOMEM to indicate failure. mempool_creat_slab_pool() only fails if it cannot allocate memory.

[PATCH for v4.9 LTS 31/87] ARM: s3c2410_defconfig: Fix invalid values for NF_CT_PROTO_*

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Krzysztof Kozlowski [ Upstream commit 3ef01c968fbfb21c2f16281445d30a865ee4412c ] NF_CT_PROTO_DCCP/SCTP/UDPLITE were switched from tristate to boolean so defconfig needs to be adjusted to silence warnings: warning: symbol value 'm' invalid for NF_CT_PROTO_DCCP

[PATCH for v4.9 LTS 14/87] drm/msm: Put back the vaddr in submit_reloc()

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jordan Crouse [ Upstream commit 6490abc4bc35fa4f3bdb9c7e49096943c50e29ea ] The error cases in submit_reloc() need to put back the virtual address of the bo before failling. Add a single failure path for the function. Signed-off-by: Jordan Crouse

[PATCH for v4.9 LTS 29/87] ARM64: zynqmp: Fix i2c node's compatible string

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Moritz Fischer [ Upstream commit c415f9e8304a1d235ef118d912f374ee2e46c45d ] The Zynq Ultrascale MP uses version 1.4 of the Cadence IP core which fixes some silicon bugs that needed software workarounds in Version 1.0 that was used on Zynq systems. Signed-off-by: Moritz

[PATCH for v4.9 LTS 39/87] tools lib traceevent: Fix prev/next_prio for deadline tasks

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Daniel Bristot de Oliveira [ Upstream commit 074859184d770824f4437dca716bdeb625ae8b1c ] Currently, the sched:sched_switch tracepoint reports deadline tasks with priority -1. But when reading the trace via perf script I've got the following output: # ./d & # (d is a

[PATCH for v4.9 LTS 27/87] usb: dwc3: omap: fix race of pm runtime with irq handler in probe

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Grygorii Strashko [ Upstream commit 12a7f17fac5b370bec87259e4c718faf563ce900 ] Now races can happen between interrupt handler execution and PM runtime in error handling code path in probe and in dwc3_omap_remove() which will lead to system crash: in probe: ...

[PATCH for v4.9 LTS 40/87] perf tools: Install tools/lib/traceevent plugins with install-bin

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Arnaldo Carvalho de Melo [ Upstream commit 30a9c6444810429aa2b7cbfbd453ce339baaadbf ] Those are binaries as well, so should be installed by: make -C tools/perf install-bin' too. Cc: Alexander Shishkin Cc: Daniel Bristot de

[PATCH for v4.9 LTS 07/87] ARM: dts: n900: Mark eMMC slot with no-sdio and no-sd flags

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Pali Rohár [ Upstream commit 4cf48f1d7520a4d325af58eded4d8090e1b40be7 ] Trying to initialize eMMC slot as SDIO or SD cause failure in n900 port of qemu. eMMC itself is not detected and is not working. Real Nokia N900 harware does not have this problem. As eMMC is

[PATCH for v4.9 LTS 32/87] ACPI / scan: Prefer devices without _HID/_CID for _ADR matching

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: "Rafael J. Wysocki" [ Upstream commit c2a6bbaf0c5f90463a7011a295bbdb7e33c80b51 ] The way acpi_find_child_device() works currently is that, if there are two (or more) devices with the same _ADR value in the same namespace scope (which is not specifically allowed

[PATCH for v4.9 LTS 33/87] usb: gadget: Fix copy/pasted error message

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: David Lechner [ Upstream commit 43aef5c2ca90535b3227e97e71604291875444ed ] This fixes an error message that was probably copied and pasted. The same message is used for both the in and out endpoints, so it makes it impossible to know which one actually failed because

[PATCH for v4.9 LTS 53/87] perf/x86: Set pmu->module in Intel PMU modules

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: David Carrillo-Cisneros [ Upstream commit 74545f63890e38520eb4d1dbedcadaa9c0dbc824 ] The conversion of Intel PMU drivers into modules did not include reference counting. The machine will crash when attempting to access deleted code if an event from a module PMU is

[PATCH for v4.9 LTS 43/87] perf probe: Fix to probe on gcc generated symbols for offline kernel

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Masami Hiramatsu [ Upstream commit 8a937a25a7e3c19d5fb3f9d92f605cf5fda219d8 ] Fix perf-probe to show probe definition on gcc generated symbols for offline kernel (including cross-arch kernel image). gcc sometimes optimizes functions and generate new symbols with

[PATCH for v4.9 LTS 09/87] ipv6: Should use consistent conditional judgement for ip6 fragment between __ip6_append_data and ip6_finish_output

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Zheng Li [ Upstream commit e4c5e13aa45c23692e4acf56f0b3533f328199b2 ] There is an inconsistent conditional judgement between __ip6_append_data and ip6_finish_output functions, the variable length in __ip6_append_data just include the length of application's

[PATCH for v4.9 LTS 35/87] Btrfs: fix lockdep warning about log_mutex

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Liu Bo [ Upstream commit 781feef7e6befafd4d9787d1f7ada1f9ccd504e4 ] While checking INODE_REF/INODE_EXTREF for a corner case, we may acquire a different inode's log_mutex with holding the current inode's log_mutex, and lockdep has complained this with a possilble

[PATCH for v4.9 LTS 52/87] x86/platform/intel-mid: Rename 'spidev' to 'mrfld_spidev'

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Andy Shevchenko [ Upstream commit 159d3726db12b3476bc59ea0ab0a702103d466b5 ] The current implementation supports only Intel Merrifield platforms. Don't mess with the rest of the Intel MID family by not registering device with wrong properties.

[PATCH for v4.9 LTS 58/87] scsi: bfa: Increase requested firmware version to 3.2.5.1

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Benjamin Poirier [ Upstream commit 2d1148f0f45079d25a0fa0d67e4fdb2a656d12fb ] bna & bfa firmware version 3.2.5.1 was submitted to linux-firmware on Feb 17 19:10:20 2015 -0500 in 0ab54ff1dc ("linux-firmware: Add QLogic BR Series Adapter Firmware"). bna was updated to

[PATCH for v4.9 LTS 28/87] ARM64: zynqmp: Fix W=1 dtc 1.4 warnings

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Michal Simek [ Upstream commit 4ea2a6be9565455f152c12f80222af1582ede0c7 ] The patch removes these warnings reported by dtc 1.4: Warning (unit_address_vs_reg): Node /amba_apu has a reg or ranges property, but no unit name Warning (unit_address_vs_reg): Node /memory

[PATCH for v4.9 LTS 86/87] net: account for current skb length when deciding about UFO

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Michal Kubeček [ Upstream commit a5cb659bbc1c8644efa0c3138a757a1e432a4880 ] Our customer encountered stuck NFS writes for blocks starting at specific offsets w.r.t. page boundary caused by networking stack sending packets via UFO enabled device with wrong checksum. The

[PATCH for v4.9 LTS 84/87] signal: protect SIGNAL_UNKILLABLE from unintentional clearing.

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jamie Iles [ Upstream commit 2d39b3cd34e6d323720d4c61bd714f5ae202c022 ] Since commit 00cd5c37afd5 ("ptrace: permit ptracing of /sbin/init") we can now trace init processes. init is initially protected with SIGNAL_UNKILLABLE which will prevent fatal signals such as

[PATCH for v4.9 LTS 81/87] ARM: 8632/1: ftrace: fix syscall name matching

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Rabin Vincent [ Upstream commit 270c8cf1cacc69cb8d99dea812f06067a45e4609 ] ARM has a few system calls (most notably mmap) for which the names of the functions which are referenced in the syscall table do not match the names of the syscall tracepoints. As a consequence of

[PATCH for v4.9 LTS 65/87] x86/boot: Add missing declaration of string functions

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Nicholas Mc Guire [ Upstream commit fac69d0efad08fc15e4dbfc116830782acc0dc9a ] Add the missing declarations of basic string functions to string.h to allow a clean build. Fixes: 5be865661516 ("String-handling functions for the new x86 setup code.") Signed-off-by:

[PATCH for v4.9 LTS 82/87] mm, slab: make sure that KMALLOC_MAX_SIZE will fit into MAX_ORDER

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Michal Hocko [ Upstream commit bb1107f7c6052c863692a41f78c000db792334bf ] Andrey Konovalov has reported the following warning triggered by the syzkaller fuzzer. WARNING: CPU: 1 PID: 9935 at mm/page_alloc.c:3511 __alloc_pages_nodemask+0x159c/0x1e20 Kernel panic - not

[PATCH for v4.9 LTS 63/87] net: phy: dp83867: fix irq generation

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Grygorii Strashko [ Upstream commit 5ca7d1ca77dc23934504b95a96d2660d345f83c2 ] For proper IRQ generation by DP83867 phy the INT/PWDN pin has to be programmed as an interrupt output instead of a Powerdown input in Configuration Register 3 (CFG3), Address 0x001E,

[PATCH for v4.9 LTS 72/87] libfs: Modify mount_pseudo_xattr to be clear it is not a userspace mount

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: "Eric W. Biederman" [ Upstream commit 75422726b0f717d67db3283c2eb5bc14fa2619c5 ] Add MS_KERNMOUNT to the flags that are passed. Use sget_userns and force _user_ns instead of calling sget so that even if called from a weird context the internal filesystem will be

[PATCH for v4.9 LTS 51/87] ALSA: usb-audio: test EP_FLAG_RUNNING at urb completion

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Ioan-Adrian Ratiu [ Upstream commit 13a6c8328e6056932dc680e447d4c5e8ad9add17 ] Testing EP_FLAG_RUNNING in snd_complete_urb() before running the completion logic allows us to save a few cpu cycles by returning early, skipping the pending urb in case the stream was stopped;

[PATCH for v4.9 LTS 42/87] video: fbdev: cobalt_lcdfb: Handle return NULL error from devm_ioremap

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Arvind Yadav [ Upstream commit 4dcd19bfabaee8f9f4bcf203afba09b98ccbaf76 ] Here, If devm_ioremap will fail. It will return NULL. Kernel can run into a NULL-pointer dereference. This error check will avoid NULL pointer dereference. Signed-off-by: Arvind Yadav

[PATCH for v4.9 LTS 41/87] perf symbols: Robustify reading of build-id from sysfs

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Arnaldo Carvalho de Melo [ Upstream commit 7934c98a6e04028eb34c1293bfb5a6b0ab630b66 ] Markus reported that perf segfaults when reading /sys/kernel/notes from a kernel linked with GNU gold, due to what looks like a gold bug, so do some bounds checking to avoid crashing in

[PATCH for v4.9 LTS 37/87] Btrfs: adjust outstanding_extents counter properly when dio write is split

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Liu Bo [ Upstream commit c2931667c83ded6504b3857e99cc45b21fa496fb ] Currently how btrfs dio deals with split dio write is not good enough if dio write is split into several segments due to the lack of contiguous space, a large dio write like 'dd bs=1G count=1' can

[PATCH for v4.9 LTS 44/87] vfio-pci: Handle error from pci_iomap

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Arvind Yadav [ Upstream commit e19f32da5ded958238eac1bbe001192acef191a2 ] Here, pci_iomap can fail, handle this case release selected pci regions and return -ENOMEM. Signed-off-by: Arvind Yadav Signed-off-by: Alex Williamson

[PATCH for v4.9 LTS 34/87] Btrfs: use down_read_nested to make lockdep silent

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Liu Bo [ Upstream commit e321f8a801d7b4c40da8005257b05b9c2b51b072 ] If @block_group is not @used_bg, it'll try to get @used_bg's lock without droping @block_group 's lock and lockdep has throwed a scary deadlock warning about it. Fix it by using down_read_nested.

[PATCH for v4.9 LTS 26/87] dmaengine: ti-dma-crossbar: Add some 'of_node_put()' in error path.

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Christophe JAILLET [ Upstream commit 75bdc7f31a3a6e9a12e218b31a44a1f54a91554c ] Add some missing 'of_node_put()' in early exit error path. Signed-off-by: Christophe JAILLET Signed-off-by: Vinod Koul

[PATCH for v4.9 LTS 55/87] HID: ignore Petzl USB headlamp

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jiri Kosina [ Upstream commit 08f9572671c8047e7234cbf150869aa3c3d59a97 ] This headlamp contains a dummy HID descriptor which pretends to be a mouse-like device, but can't be used as a mouse at all. Reported-by: Lukas Ocilka Signed-off-by: Jiri

[PATCH for v4.9 LTS 19/87] spi: dw: Make debugfs name unique between instances

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Phil Reid [ Upstream commit 13288bdf4adbaa6bd1267f10044c1bc25d90ce7f ] Some system have multiple dw devices. Currently the driver uses a fixed name for the debugfs dir. Append dev name to the debugfs dir name to make it unique. Signed-off-by: Phil Reid

[PATCH for v4.9 LTS 17/87] irqchip/keystone: Fix "scheduling while atomic" on rt

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: "Strashko, Grygorii" [ Upstream commit 2f884e6e688a0deb69e6c9552e51aef8b7e3f5f1 ] The below call chain generates "scheduling while atomic" backtrace and causes system crash when Keystone 2 IRQ chip driver is used with RT-kernel: gic_handle_irq()

[PATCH for v4.9 LTS 13/87] drm/msm: Ensure that the hardware write pointer is valid

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jordan Crouse [ Upstream commit 88b333b0ed790f9433ff542b163bf972953b74d3 ] Currently the value written to CP_RB_WPTR is calculated on the fly as (rb->next - rb->start). But as the code is designed rb->next is wrapped before writing the commands so if a series of

[PATCH for v4.9 LTS 05/87] dt-bindings: input: Specify the interrupt number of TPS65217 power button

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Milo Kim [ Upstream commit 820381572fc015baa4f5744f5d4583ec0c0f1b82 ] Specify the power button interrupt number which is from the datasheet. Signed-off-by: Milo Kim Acked-by: Rob Herring Signed-off-by: Tony Lindgren

[PATCH for v4.9 LTS 11/87] net/mlx4: Remove BUG_ON from ICM allocation routine

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Leon Romanovsky [ Upstream commit c1d5f8ff80ea84768f5fae1ca9d1abfbb5e6bbaa ] This patch removes BUG_ON() macro from mlx4_alloc_icm_coherent() by checking DMA address alignment in advance and performing proper folding in case of error. Fixes: 5b0bf5e25efe ("mlx4_core:

[PATCH for v4.9 LTS 10/87] net/mlx4_core: Use-after-free causes a resource leak in flow-steering detach

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jack Morgenstein [ Upstream commit 3b01fe7f91c8e4f9afc4fae3c5af72c14958d2d8 ] mlx4_QP_FLOW_STEERING_DETACH_wrapper first removes the steering rule (which results in freeing the rule structure), and then references a field in this struct (the qp number) when

[PATCH for v4.9 LTS 01/87] x86/mce/AMD: Make the init code more robust

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Thomas Gleixner [ Upstream commit 0dad3a3014a0b9e72521ff44f17e0054f43dcdea ] If mce_device_init() fails then the mce device pointer is NULL and the AMD mce code happily dereferences it. Add a sanity check. Reported-by: Markus Trippelsdorf

[PATCH for v4.9 LTS 06/87] ARM: dts: am57xx-idk: Put USB2 port in peripheral mode

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Roger Quadros [ Upstream commit 5acd016c88937be3667ba4e6b60f0f74455b5e80 ] USB2 port can be operated in dual-role mode but till we have dual-role support in dwc3 driver let's limit this port to peripheral mode. If we don't do so it defaults to host mode. USB1 port is meant

Re: [PATCH 5/5] sched: Accumulate vtime on top of nsec clocksource

2017-07-14 Thread Levin, Alexander (Sasha Levin)
On Thu, Jun 29, 2017 at 07:15:11PM +0200, Frederic Weisbecker wrote: >From: Wanpeng Li > >Currently the cputime source used by vtime is jiffies. When we cross >a context boundary and jiffies have changed since the last snapshot, the >pending cputime is accounted to the

[PATCH for v4.9 LTS 49/87] sh_eth: enable RX descriptor word 0 shift on SH7734

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Sergei Shtylyov [ Upstream commit 71eae1ca77fd6be218d8a952d97bba827e56516d ] The RX descriptor word 0 on SH7734 has the RFS[9:0] field in bits 16-25 (bits 0-15 usually used for that are occupied by the packet checksum). Thus we need to set the

[PATCH for v4.9 LTS 56/87] scsi: fnic: Avoid sending reset to firmware when another reset is in progress

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Satish Kharat [ Upstream commit 9698b6f473555a722bf81a3371998427d5d27bde ] This fix is to avoid calling fnic_fw_reset_handler through fnic_host_reset when a finc reset is alreay in progress. Signed-off-by: Satish Kharat Signed-off-by: Sesidhar

[PATCH for v4.9 LTS 45/87] arm64: mm: fix show_pte KERN_CONT fallout

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Mark Rutland [ Upstream commit 6ef4fb387d50fa8f3bffdffc868b57e981cdd709 ] Recent changes made KERN_CONT mandatory for continued lines. In the absence of KERN_CONT, a newline may be implicit inserted by the core printk code. In show_pte, we (erroneously) use printk

[PATCH for v4.9 LTS 47/87] net: usb: asix_devices: add .reset_resume for USB PM

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Peter Chen [ Upstream commit 63dfb0dac9055145db85ce764355aef2f563739a ] The USB core may call reset_resume when it fails to resume asix device. And USB core can recovery this abnormal resume at low level driver, the same .resume at asix driver can work too. Add

[PATCH for v4.9 LTS 38/87] Xen: ARM: Zero reserved fields of xatp before making hypervisor call

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jiandi An [ Upstream commit 0b47a6bd1150f4846b1d61925a4cc5a96593a541 ] Ensure all reserved fields of xatp are zero before making hypervisor call to XEN in xen_map_device_mmio(). xenmem_add_to_physmap_one() in XEN fails the mapping request if extra.res reserved

[PATCH for v4.9 LTS 46/87] nvmem: imx-ocotp: Fix wrong register size

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Daniel Schultz [ Upstream commit 14ba972842f9e84e6d3264bc0302101b8a792288 ] All i.MX6 SoCs have an OCOTP Controller with 4kbit fuses. The i.MX6SL is an exception and has only 2kbit fuses. In the TRM for the i.MX6DQ (IMX6QDRM - Rev 2, 06/2014) the fuses size is

[PATCH for v4.9 LTS 50/87] ARCv2: IRQ: Call entry/exit functions for chained handlers in MCIP

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Yuriy Kolerov [ Upstream commit e51d5d02f688c45b6f644f472f0c80fdfa73f0cb ] It is necessary to call entry/exit functions for parent interrupt controllers for proper masking/unmasking of interrupt lines. Signed-off-by: Yuriy Kolerov

[PATCH for v4.9 LTS 64/87] tg3: Fix race condition in tg3_get_stats64().

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Michael Chan [ Upstream commit f5992b72ebe0dde488fa8f706b887194020c66fc ] The driver's ndo_get_stats64() method is not always called under RTNL. So it can race with driver close or ethtool reconfigurations. Fix the race condition by taking tp->lock spinlock in

[PATCH for v4.9 LTS 67/87] ASoC: rt5645: set sel_i2s_pre_div1 to 2

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Bard Liao [ Upstream commit 02c5c03283c52157d336abf5e44ffcda10579fbf ] The i2s clock pre-divider 1 is used for both i2s1 and sysclk. The i2s1 is usually used for the main i2s and the pre-divider will be set in hw_params function. However, if i2s2 is used, the

[PATCH for v4.9 LTS 61/87] sh_eth: fix EESIPR values for SH77{34|63}

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Sergei Shtylyov [ Upstream commit 978d3639fd13d987950e4ce85c8737ae92154b2c ] As the SH77{34|63} manuals are freely available, I've checked the EESIPR values written against the manuals, and they appeared to set the reserved bits 11-15 (which should be

[PATCH for v4.9 LTS 70/87] ipv4: make tcp_notsent_lowat sysctl knob behave as true unsigned int

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Pavel Tikhomirov [ Upstream commit b007f09072ca8afa118ade333e717ba443e8d807 ] > cat /proc/sys/net/ipv4/tcp_notsent_lowat -1 > echo 4294967295 > /proc/sys/net/ipv4/tcp_notsent_lowat -bash: echo: write error: Invalid argument > echo -2147483648 >

[PATCH for v4.9 LTS 85/87] mm: don't dereference struct page fields of invalid pages

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Ard Biesheuvel [ Upstream commit f073bdc51771f5a5c7a8d1191bfc3ae371d44de7 ] The VM_BUG_ON() check in move_freepages() checks whether the node id of a page matches the node id of its zone. However, it does this before having checked whether the struct page

[PATCH for v4.9 LTS 87/87] net/mlx5: E-Switch, Re-enable RoCE on mode change only after FDB destroy

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Or Gerlitz [ Upstream commit 5bae8c031053c69b4aa74b7f1ba15d4ec8426208 ] We must re-enable RoCE on the e-switch management port (PF) only after destroying the FDB in its switchdev/offloaded mode. Otherwise, when encapsulation is supported, this re-enablement will

[PATCH for v4.9 LTS 69/87] phy state machine: failsafe leave invalid RUNNING state

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Zefir Kurtisi [ Upstream commit 811a919135b980bac8009d042acdccf10dc1ef5e ] While in RUNNING state, phy_state_machine() checks for link changes by comparing phydev->link before and after calling phy_read_status(). This works as long as it is guaranteed that

[PATCH for v4.9 LTS 68/87] netfilter: use fwmark_reflect in nf_send_reset

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Pau Espin Pedrol [ Upstream commit cc31d43b4154ad5a7d8aa5543255a93b7e89edc2 ] Otherwise, RST packets generated by ipt_REJECT always have mark 0 when the routing is checked later in the same code path. Fixes: e110861f8609 ("net: add a sysctl to reflect the fwmark

[PATCH for v4.9 LTS 75/87] ARM: dts: sun6i: hummingbird: Enable display engine again

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Chen-Yu Tsai [ Upstream commit 6b546c2a15f9d8d3b1fb22adeb4063d497b08265 ] Now that we disable the display engine by default, we need to re-enable it for the Hummingbird A31, which already had its display pipeline enabled. Signed-off-by: Chen-Yu Tsai

[PATCH for v4.9 LTS 76/87] ARM: dts: sun8i: Support DTB build for NanoPi M1

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Milo Kim [ Upstream commit 661ccdc1a95f18ab6c1373322fde09afd5b90a1f ] The commit 10efbf5f1633 ("ARM: dts: sun8i: Add dts file for NanoPi M1 SBC") introduced NanoPi M1 board but it's missing in Allwinner H3 DTB build. Signed-off-by: Milo Kim

[PATCH for v4.9 LTS 36/87] benet: stricter vxlan offloading check in be_features_check

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Sabrina Dubroca [ Upstream commit 096de2f83ebc8e0404c5b7e847a4abd27b9739da ] When VXLAN offloading is enabled, be_features_check() tries to check if an encapsulated packet is indeed a VXLAN packet. The check is not strict enough, and considers any UDP-encapsulated

[PATCH for v4.9 LTS 16/87] vfio-pci: use 32-bit comparisons for register address for gcc-4.5

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Arnd Bergmann [ Upstream commit 45e869714489431625c569d21fc952428d761476 ] Using ancient compilers (gcc-4.5 or older) on ARM, we get a link failure with the vfio-pci driver: ERROR: "__aeabi_lcmp" [drivers/vfio/pci/vfio-pci.ko] undefined! The reason is that the compiler

[PATCH for v4.9 LTS 54/87] ASoC: Intel: bytcr-rt5640: fix settings in internal clock mode

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Pierre-Louis Bossart [ Upstream commit 60448b077ed93d227e6c117a9e87db76ff0c1911 ] Frequency value of zero did not make sense, use same 24.576MHz setting and only change the clock source in idle mode Suggested-by: Bard Liao

[PATCH for v4.9 LTS 59/87] ASoC: Intel: Skylake: Release FW ctx in cleanup

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jeeja KP [ Upstream commit bc65a326c579e93a5c2120a65ede72f11369ee5a ] Saved firmware ctx was not never released, so release Firmware ctx in cleanup routine. Signed-off-by: Jeeja KP Acked-by: Vinod Koul Signed-off-by: Mark

[PATCH for v4.9 LTS 25/87] l2tp: consider '::' as wildcard address in l2tp_ip6 socket lookup

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Guillaume Nault [ Upstream commit 97b84fd6d91766ea57dcc350d78f42639e011c30 ] An L2TP socket bound to the unspecified address should match with any address. If not, it can't receive any packet and __l2tp_ip6_bind_lookup() can't prevent another socket from binding on

[PATCH for v4.9 LTS 21/87] irqchip/mxs: Enable SKIP_SET_WAKE and MASK_ON_SUSPEND

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Stefan Wahren [ Upstream commit 88e20c74ee020f9e0c99dfce0dd9aa61c3f0cca0 ] The ICOLL controller doesn't provide any facility to configure the wakeup sources. That's the reason why this implementation lacks the irq_set_wake implementation. But this prevent us from

[PATCH for v4.9 LTS 24/87] dmaengine: ioatdma: workaround SKX ioatdma version

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Dave Jiang [ Upstream commit 34a31f0af84158955a9747fb5c6712da5bbb5331 ] The Skylake ioatdma is technically CBDMA 3.2+ and contains the same hardware bits with some additional 3.3 features, but it's not really 3.3 where the driver is concerned. Signed-off-by: Dave

[PATCH for v4.9 LTS 23/87] dmaengine: ioatdma: Add Skylake PCI Dev ID

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Dave Jiang [ Upstream commit 1594c18fd297a8edcc72bc4b161f3f52603ebb92 ] Adding Skylake Xeon PCI device ids for ioatdma and related bits. Signed-off-by: Dave Jiang Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin

[PATCH for v4.9 LTS 12/87] net/mlx4_core: Fix raw qp flow steering rules under SRIOV

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jack Morgenstein [ Upstream commit 10b1c04e92229ebeb38ccd0dcf2b6d3ec73c0575 ] Demoting simple flow steering rule priority (for DPDK) was achieved by wrapping FW commands MLX4_QP_FLOW_STEERING_ATTACH/DETACH for the PF as well, and forcing the priority to

[PATCH for v4.9 LTS 18/87] ASoC: tlv320aic3x: Mark the RESET register as volatile

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Peter Ujfalusi [ Upstream commit 63c3194b82530bd71fd49db84eb7ab656b8d404a ] The RESET register only have one self clearing bit and it should not be cached. If it is cached, when we sync the registers back to the chip we will initiate a software reset as well, which

[PATCH for v4.9 LTS 02/87] r8169: add support for RTL8168 series add-on card.

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Chun-Hao Lin [ Upstream commit 610c908773d30907c950ca3b2ee8ac4b2813537b ] This chip is the same as RTL8168, but its device id is 0x8161. Signed-off-by: Chun-Hao Lin Signed-off-by: David S. Miller Signed-off-by: Sasha Levin

[PATCH for v4.9 LTS 20/87] ASoC: nau8825: fix invalid configuration in Pre-Scalar of FLL

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: John Hsu [ Upstream commit a1792cda51300e15b03549cccf0b09f3be82e697 ] The clk_ref_div is not configured in the correct position of the register. The patch fixes that clk_ref_div, Pre-Scalar, is assigned the wrong value. Signed-off-by: John Hsu

[PATCH] wireless: wext: terminate ifr name coming from userspace

2017-07-17 Thread Levin, Alexander (Sasha Levin)
ifr name is assumed to be a valid string by the kernel, but nothing was forcing username to pass a valid string. In turn, this would cause panics as we tried to access the string past it's valid memory. Signed-off-by: Sasha Levin --- net/core/dev_ioctl.c | 2 ++

Re: [PATCH for v4.9 LTS 72/87] libfs: Modify mount_pseudo_xattr to be clear it is not a userspace mount

2017-07-15 Thread Levin, Alexander (Sasha Levin)
op this patch from the queue. > >Eric > > >"Levin, Alexander (Sasha Levin)" <alexander.le...@verizon.com> writes: > >> From: "Eric W. Biederman" <ebied...@xmission.com> >> >> [ Upstream commit 75422726b0f717d67db3283c2eb5bc14fa2619

Re: [PATCH for v4.9 LTS 86/87] net: account for current skb length when deciding about UFO

2017-07-24 Thread Levin, Alexander (Sasha Levin)
On Sat, Jul 15, 2017 at 10:53:27AM +0200, Michal Kubecek wrote: >On Sat, Jul 15, 2017 at 01:26:27AM +0000, Levin, Alexander (Sasha Levin) wrote: >> From: Michal Kubeček <mkube...@suse.cz> >> >> [ Upstream commit a5cb659bbc1c8644efa0c3138a757a1e432a4880 ] >> >

[PATCH v2] net: inet: diag: expose sockets cgroup classid

2017-07-27 Thread Levin, Alexander (Sasha Levin)
This is useful for directly looking up a task based on class id rather than having to scan through all open file descriptors. Signed-off-by: Sasha Levin --- Changes in V2: - Addressed comments from Cong Wang (use nla_put_u32()) include/uapi/linux/inet_diag.h | 1

[PATCH] net: inet: diag: expose sockets cgroup classid

2017-07-26 Thread Levin, Alexander (Sasha Levin)
This is useful for directly looking up a task based on class id rather than having to scan through all open file descriptors. Signed-off-by: Sasha Levin --- include/uapi/linux/inet_diag.h | 1 + net/ipv4/inet_diag.c | 10 ++ 2 files changed, 11

Re: [PATCH] net: inet: diag: expose sockets cgroup classid

2017-07-26 Thread Levin, Alexander (Sasha Levin)
On Wed, Jul 26, 2017 at 03:01:32PM -0700, Cong Wang wrote: >On Wed, Jul 26, 2017 at 10:22 AM, Levin, Alexander (Sasha Levin) ><alexander.le...@verizon.com> wrote: >> + if (ext & (1 << (INET_DIAG_CLASS_ID - 1))) { >> + u32 classid = 0; >&

Re: [PATCH 4.9 031/108] jump label: pass kbuild_cflags when checking for asm goto support

2017-06-27 Thread Levin, Alexander (Sasha Levin)
On Tue, Jun 27, 2017 at 01:33:42PM +0200, Greg Kroah-Hartman wrote: >On Mon, Jun 19, 2017 at 06:29:18PM +0300, Gleb Fotengauer-Malinovskiy wrote: >> On Thu, Jun 15, 2017 at 07:52:37PM +0200, Greg Kroah-Hartman wrote: >> > 4.9-stable review patch. If anyone has any objections, please let me know.

Re: [PATCH v4 1/2] x86/unwind: add ORC unwinder

2017-07-28 Thread Levin, Alexander (Sasha Levin)
On Fri, Jul 28, 2017 at 01:57:20PM -0500, Josh Poimboeuf wrote: >Thanks, that's much better. I'm relieved the unwinder didn't screw that >up, at least. > >This looks like a tricky one. Is it easily recreatable? Yeah, I just hit it again with slightly different initial calls: [ 49.261152]

  1   2   3   4   5   6   7   8   9   10   >