[PATCH 4.4 22/50] pinctrl: mvebu: Use seq_puts() in mvebu_pinconf_group_dbg_show()

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Markus Elfring [ Upstream commit 420dc61642920849d824a0de2aa853db59f5244f ] Strings which did not contain data format specifications should be put into a sequence. Thus use the corresponding f

[PATCH 4.4 23/50] partitions/efi: Fix integer overflow in GPT size calculation

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alden Tondettar [ Upstream commit c5082b70adfe8e1ea1cf4a8eff92c9f260e364d2 ] If a GUID Partition Table claims to have more than 2**25 entries, the calculation of the partition table size in al

Re: [BUG] fs/super: a possible sleep-in-atomic bug in put_super

2017-10-06 Thread Michal Hocko
[CC Vladimir] On Fri 06-10-17 16:59:18, Jia-Ju Bai wrote: > According to fs/super.c, the kernel may sleep under a spinlock. > The function call path is: > put_super (acquire the spinlock) > __put_super > destroy_super > list_lru_destroy > list_lru_unregister > mutex_l

[PATCH 4.4 27/50] ASoC: dapm: fix some pointer error handling

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Linus Walleij [ Upstream commit 639467c8f26d834c934215e8b59129ce442475fe ] commit 66feeec9322132689d42723df2537d60f96f8e44 "RFC: ASoC: dapm: handle probe deferrals" forgot a to update some two

[PATCH 4.4 26/50] usb: chipidea: vbus event may exist before starting gadget

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Peter Chen [ Upstream commit c3b674a04b8ab62a1d35e86714d466af0a0ecc18 ] At some situations, the vbus may already be there before starting gadget. So we need to check vbus event after switching

[PATCH 4.4 28/50] MIPS: Lantiq: Fix another request_mem_region() return code check

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann [ Upstream commit 98ea51cb0c8ce009d9da1fd7b48f0ff1d7a9bbb0 ] Hauke already fixed a couple of them, but one instance remains that checks for a negative integer when it should chec

[PATCH 4.4 05/50] ARM: dts: r8a7790: Use R-Car Gen 2 fallback binding for msiof nodes

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Simon Horman [ Upstream commit 654450baf2afba86cf328e1849ccac61ec4630af ] Use recently added R-Car Gen 2 fallback binding for msiof nodes in DT for r8a7790 SoC. This has no run-time effect fo

[PATCH 4.4 07/50] MIPS: ralink: Fix incorrect assignment on ralink_soc

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Colin Ian King [ Upstream commit 08d90c81b714482dceb5323d14f6617bcf55ee61 ] ralink_soc sould be assigned to RT3883_SOC, replace incorrect comparision with assignment. Signed-off-by: Colin Ian

[PATCH 4.4 04/50] RDS: RDMA: Fix the composite message user notification

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Santosh Shilimkar [ Upstream commit 941f8d55f6d613a460a5e080d25a38509f45eb75 ] When application sends an RDS RDMA composite message consist of RDMA transfer to be followed up by non RDMA paylo

[PATCH 4.4 09/50] extcon: axp288: Use vbus-valid instead of -present to determine cable presence

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede [ Upstream commit 5757aca10146061befd168dab37fb0db1ccd8f73 ] The vbus-present bit in the power status register also gets set to 1 when a usb-host cable (id-pin shorted to ground)

[PATCH 4.4 30/50] net/packet: check length in getsockopt() called with PACKET_HDRLEN

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Potapenko [ Upstream commit fd2c83b35752f0a8236b976978ad4658df14a59f ] In the case getsockopt() is called with PACKET_HDRLEN and optlen < 4 |val| remains uninitialized and the syscal

[PATCH 4.4 41/50] rds: ib: add error handle

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Zhu Yanjun [ Upstream commit 3b12f73a5c2977153f28a224392fd4729b50d1dc ] In the function rds_ib_setup_qp, the error handle is missing. When some error occurs, it is possible that memory leak oc

[PATCH 4.4 42/50] md/raid10: submit bio directly to replacement disk

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Shaohua Li [ Upstream commit 6d399783e9d4e9bd44931501948059d24ad96ff8 ] Commit 57c67df(md/raid10: submit IO from originating thread instead of md thread) submits bio directly for normal disks

[PATCH 4.4 45/50] libata: transport: Remove circular dependency at free time

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Gwendal Grignou [ Upstream commit d85fc67dd11e9a32966140677d4d6429ca540b25 ] Without this patch, failed probe would not free resources like irq. ata port tdev object currently hold a referenc

[PATCH 4.4 31/50] team: fix memory leaks

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Pan Bian [ Upstream commit 72ec0bc64b9a5d8e0efcb717abfc757746b101b7 ] In functions team_nl_send_port_list_get() and team_nl_send_options_get(), pointer skb keeps the return value of nlmsg_new(

[PATCH 4.4 44/50] xfs: remove kmem_zalloc_greedy

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: "Darrick J. Wong" [ Upstream commit 08b005f1333154ae5b404ca28766e0ffb9f1c150 ] The sole remaining caller of kmem_zalloc_greedy is bulkstat, which uses it to grab 1-4 pages for staging of inobt

[PATCH 4.4 49/50] ALSA: au88x0: avoid theoretical uninitialized access

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 13f99ebdd602ebdafb909e15ec6ffb1e34690167 upstream. The latest gcc-7.0.1 snapshot points out that we if nr_ch is zero, we never initialize some variables: sound/pci/au88x0/

[PATCH 4.4 34/50] bridge: netlink: register netdevice before executing changelink

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ido Schimmel [ Upstream commit 5b8d5429daa05bebef6ffd3297df3b502cc6f184 ] Peter reported a kernel oops when executing the following command: $ ip link add name test type bridge vlan_default_p

[PATCH 4.4 36/50] MIPS: IRQ Stack: Unwind IRQ stack onto task stack

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Matt Redfearn [ Upstream commit db8466c581cca1a08b505f1319c3ecd246f16fa8 ] When the separate IRQ stack was introduced, stack unwinding only proceeded as far as the top of the IRQ stack, leadin

[PATCH 4.4 38/50] netfilter: nfnl_cthelper: fix incorrect helper->expect_class_max

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Liping Zhang [ Upstream commit ae5c682113f9f94cc5e76f92cf041ee624c173ee ] The helper->expect_class_max must be set to the total number of expect_policy minus 1, since we will use the statement

[BUG] fs/super: a possible sleep-in-atomic bug in put_super

2017-10-06 Thread Jia-Ju Bai
According to fs/super.c, the kernel may sleep under a spinlock. The function call path is: put_super (acquire the spinlock) __put_super destroy_super list_lru_destroy list_lru_unregister mutex_lock --> may sleep memcg_get_cache_ids down_read --> may

Re: [PATCH v7 2/2] tracing: Add support for preempt and irq enable/disable events

2017-10-06 Thread Joel Fernandes
Hi Peter, On 10/04/2017 09:43 AM, Joel Fernandes wrote: [..] >>> + */ >>> +static DEFINE_PER_CPU(int, tracing_irq_cpu); >>> + >>> #if defined(CONFIG_TRACE_IRQFLAGS) && !defined(CONFIG_PROVE_LOCKING) >>> void trace_hardirqs_on(void) >>> { >>> + if (!this_cpu_read(tracing_irq_cpu)) >>> +

[PATCH 4.4 29/50] net: core: Prevent from dereferencing null pointer when releasing SKB

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Myungho Jung [ Upstream commit 9899886d5e8ec5b343b1efe44f185a0e68dc6454 ] Added NULL check to make __dev_kfree_skb_irq consistent with kfree family of functions. Link: https://bugzilla.kernel

[PATCH 4.4 33/50] mmc: sdio: fix alignment issue in struct sdio_func

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Heiner Kallweit [ Upstream commit 5ef1ecf060f28ecef313b5723f1fd39bf5a35f56 ] Certain 64-bit systems (e.g. Amlogic Meson GX) require buffers to be used for DMA to be 8-byte-aligned. struct sdio

[PATCH 4.4 37/50] [media] exynos-gsc: Do not swap cb/cr for semi planar formats

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Thibault Saunier [ Upstream commit d7f3e33df4fbdc9855fb151f4a328ec46447e3ba ] In the case of semi planar formats cb and cr are in the same plane in memory, meaning that will be set to 'cb' wha

[PATCH 4.4 39/50] parisc: perf: Fix potential NULL pointer dereference

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arvind Yadav [ Upstream commit 74e3f6e63da6c8e8246fba1689e040bc926b4a1a ] Fix potential NULL pointer dereference and clean up coding style errors (code indent, trailing whitespaces). Signed-o

[PATCH 4.4 46/50] drivers: firmware: psci: drop duplicate const from psci_of_match

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jisheng Zhang commit 1d2d8de44a6c20af262b4c3d3b93ef7ec3c5488e upstream. This is to fix below sparse warning: drivers/firmware/psci.c:mmm:nn: warning: duplicate const Signed-off-by: Jisheng Zha

[PATCH 4.4 43/50] i2c: meson: fix wrong variable usage in meson_i2c_put_data

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Heiner Kallweit [ Upstream commit 3b0277f198ac928f323c42e180680d2f79aa980d ] Most likely a copy & paste error. Signed-off-by: Heiner Kallweit Acked-by: Jerome Brunet Signed-off-by: Wolfram

[PATCH 4.4 40/50] iommu/io-pgtable-arm: Check for leaf entry before dereferencing it

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Oleksandr Tyshchenko [ Upstream commit ed46e66cc1b3d684042f92dfa2ab15ee917b4cac ] Do a check for already installed leaf entry at the current level before dereferencing it in order to avoid wal

[PATCH 4.4 50/50] [media] ttpci: address stringop overflow warning

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 69d3973af1acd4c0989ec8218c05f12d303cd7cf upstream. gcc-7.0.1 warns about old code in ttpci: In file included from drivers/media/pci/ttpci/av7110.c:63:0: In function 'irdeb

[PATCH 4.4 35/50] netfilter: invoke synchronize_rcu after set the _hook_ to NULL

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Liping Zhang [ Upstream commit 3b7dabf029478bb80507a6c4500ca94132a2bc0b ] Otherwise, another CPU may access the invalid pointer. For example: CPU0CPU1 - r

[PATCH 4.4 08/50] igb: re-assign hw address pointer on reset after PCI error

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Guilherme G Piccoli [ Upstream commit 69b97cf6dbce7403845a28bbc75d57f5be7b12ac ] Whenever the igb driver detects the result of a read operation returns a value composed only by F's (like 0xFFF

[PATCH 4.4 47/50] IB/qib: fix false-postive maybe-uninitialized warning

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit f6aafac184a3e46e919769dd4faa8bf0dc436534 upstream. aarch64-linux-gcc-7 complains about code it doesn't fully understand: drivers/infiniband/hw/qib/qib_iba7322.c: In functi

[PATCH 4.4 00/50] 4.4.91-stable review

2017-10-06 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.91 release. There are 50 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 Sun Oct 8 08:36:32 UTC 2017. Anything receive

[PATCH 4.4 25/50] audit: log 32-bit socketcalls

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Richard Guy Briggs [ Upstream commit 62bc306e2083436675e33b5bdeb6a77907d35971 ] 32-bit socketcalls were not being logged by audit on x86_64 systems. Log them. This is basically a duplicate of

[PATCH 4.4 16/50] IB/ipoib: Fix deadlock over vlan_mutex

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Feras Daoud [ Upstream commit 1c3098cdb05207e740715857df7b0998e372f527 ] This patch fixes Deadlock while executing ipoib_vlan_delete. The function takes the vlan_rwsem semaphore and calls unr

[PATCH 4.4 18/50] IB/ipoib: Replace list_del of the neigh->list with list_del_init

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Feras Daoud [ Upstream commit c586071d1dc8227a7182179b8e50ee92cc43f6d2 ] In order to resolve a situation where a few process delete the same list element in sequence and cause panic, list_del

[PATCH 4.4 03/50] GFS2: Fix reference to ERR_PTR in gfs2_glock_iter_next

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter [ Upstream commit 14d37564fa3dc4e5d4c6828afcd26ac14e6796c5 ] This patch fixes a place where function gfs2_glock_iter_next can reference an invalid error pointer. Signed-off-by:

[PATCH 4.4 06/50] MIPS: Ensure bss section ends on a long-aligned address

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Paul Burton [ Upstream commit 3f00f4d8f083bc61005d0a1ef592b149f5c88bbd ] When clearing the .bss section in kernel_entry we do so using LONG_S instructions, and branch whilst the current write

[PATCH 4.4 13/50] iio: adc: hx711: Add DT binding for avia,hx711

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Andreas Klinger [ Upstream commit ff1293f67734da68e23fecb6ecdae7112b8c43f9 ] Add DT bindings for avia,hx711 Add vendor avia to vendor list Signed-off-by: Andreas Klinger Acked-by: Rob Herrin

[PATCH 4.4 24/50] ASoC: dapm: handle probe deferrals

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Linus Walleij [ Upstream commit 37e1df8c95e2c8a57c77eafc097648f6e40a60ff ] This starts to handle probe deferrals on regulators and clocks on the ASoC DAPM. I came to this patch after audio st

[PATCH 4.4 11/50] hwmon: (gl520sm) Fix overflows and crash seen when writing into limit attributes

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck [ Upstream commit 87cdfa9d60f4f40e6d71b04b10b36d9df3c89282 ] Writes into limit attributes can overflow due to multplications and additions with unbound input values. Writing into

[PATCH 4.4 01/50] drm_fourcc: Fix DRM_FORMAT_MOD_LINEAR #define

2017-10-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: "Kristian H. Kristensen" [ Upstream commit af913418261d6d3e7a29f06cf35f04610ead667c ] We need to define DRM_FORMAT_MOD_VENDOR_NONE for the fourcc_mod_code() macro to work correctly. Signed-of

[PATCH 4.9 064/104] qed: Fix possible system hang in the dcbnl-getdcbx() path.

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: "sudarsana.kall...@cavium.com" [ Upstream commit 62289ba27558553871fd047baadaaeda886c6a63 ] qed_dcbnl_get_dcbx() API uses kmalloc in GFT_KERNEL mode. The API gets invoked in the interrupt cont

[PATCH 4.9 096/104] tools/power turbostat: bugfix: GFXMHz column not changing

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Len Brown [ Upstream commit 22048c5485503749754b3b5daf9d99ef89fcacdc ] turbostat displays a GFXMHz column, which comes from reading /sys/class/graphics/fb0/device/drm/card0/gt_cur_freq_mhz Bu

[PATCH 4.9 095/104] ARM: dts: BCM5301X: Fix memory start address

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jon Mason [ Upstream commit 88d1fa70c21d7b431386cfe70cdc514d98b0c9c4 ] Memory starts at 0x8000, not 0. 0 "works" due to mirrior of the first 128M of RAM to that address. Anything greater

[PATCH 4.9 099/104] ASoC: rt5514: fix gcc-7 warning

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 03ba791df98d15d07ea74075122af71e35c7611c upstream. gcc-7 warns that there is a duplicate 'const' specifier in some variables that are declared using the SOC_ENUM_SINGLE_DEC

[PATCH 4.9 069/104] sata_via: Enable hotplug only on VT6421

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ondrej Zary [ Upstream commit 3cf864520e877505158f09075794a08abab11bbe ] Commit 57e5568fda27 ("sata_via: Implement hotplug for VT6421") adds hotplug IRQ handler for VT6421 but enables hotplug

[PATCH 4.9 071/104] kasan: do not sanitize kexec purgatory

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith [ Upstream commit 13a6798e4a03096b11bf402a063786a7be55d426 ] Fixes this: kexec: Undefined symbol: __asan_load8_noabort kexec-bzImage64: Loading purgatory failed Link: http

[PATCH 4.9 086/104] arm64: kasan: avoid bad virt_to_pfn()

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mark Rutland [ Upstream commit b0de0ccc8b9edd8846828e0ecdc35deacdf186b0 ] Booting a v4.11-rc1 kernel with DEBUG_VIRTUAL and KASAN enabled produces the following splat (trimmed for brevity): [

[PATCH 4.9 068/104] Btrfs: fix potential use-after-free for cloned bio

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Liu Bo [ Upstream commit a967efb30b3afa3d858edd6a17f544f9e9e46eea ] KASAN reports that there is a use-after-free case of bio in btrfs_map_bio. If we need to submit IOs to several disks at a t

[PATCH 4.9 089/104] md/raid10: submit bio directly to replacement disk

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Shaohua Li [ Upstream commit 6d399783e9d4e9bd44931501948059d24ad96ff8 ] Commit 57c67df(md/raid10: submit IO from originating thread instead of md thread) submits bio directly for normal disks

[PATCH 4.9 092/104] xfs: remove kmem_zalloc_greedy

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: "Darrick J. Wong" [ Upstream commit 08b005f1333154ae5b404ca28766e0ffb9f1c150 ] The sole remaining caller of kmem_zalloc_greedy is bulkstat, which uses it to grab 1-4 pages for staging of inobt

[PATCH 4.9 076/104] [media] exynos-gsc: Do not swap cb/cr for semi planar formats

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Thibault Saunier [ Upstream commit d7f3e33df4fbdc9855fb151f4a328ec46447e3ba ] In the case of semi planar formats cb and cr are in the same plane in memory, meaning that will be set to 'cb' wha

[PATCH 4.9 065/104] mmc: sdio: fix alignment issue in struct sdio_func

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Heiner Kallweit [ Upstream commit 5ef1ecf060f28ecef313b5723f1fd39bf5a35f56 ] Certain 64-bit systems (e.g. Amlogic Meson GX) require buffers to be used for DMA to be 8-byte-aligned. struct sdio

[PATCH 4.9 066/104] bridge: netlink: register netdevice before executing changelink

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ido Schimmel [ Upstream commit 5b8d5429daa05bebef6ffd3297df3b502cc6f184 ] Peter reported a kernel oops when executing the following command: $ ip link add name test type bridge vlan_default_p

[PATCH 4.9 082/104] ibmvnic: Free tx/rx scrq pointer array when releasing sub-crqs

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Nathan Fontenot [ Upstream commit 9501df3cd9204f5859f649182431616a31ee88a1 ] The pointer array for the tx/rx sub crqs should be free'ed when releasing the tx/rx sub crqs. Signed-off-by: Natha

[PATCH 4.9 078/104] nvme-rdma: handle cpu unplug when re-establishing the controller

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sagi Grimberg [ Upstream commit c248c64387fac5a6b31b343d9acb78f478e8619c ] If a cpu unplug event has occured, we need to take the minimum of the provided nr_io_queues and the number of online

[PATCH 4.9 031/104] serial: 8250: moxa: Store num_ports in brd

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: "Matwey V. Kornilov" [ Upstream commit 9c4b60fe5313c125b1bf68ef04b0010512c27f2d ] When struct moxa8250_board is allocated, then num_ports should be initialized in order to use it later in moxa

[PATCH 4.9 033/104] serial: 8250_port: Remove dangerous pr_debug()

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Brodkin [ Upstream commit 699a11ba7ec869b006623182881f2f1f5b4aea53 ] With CONFIG_DYNAMIC_DEBUG if dyndbg enables debug output in 8250_port.c deadlock happens inevitably on UART IRQ hand

[PATCH 4.9 058/104] net: core: Prevent from dereferencing null pointer when releasing SKB

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Myungho Jung [ Upstream commit 9899886d5e8ec5b343b1efe44f185a0e68dc6454 ] Added NULL check to make __dev_kfree_skb_irq consistent with kfree family of functions. Link: https://bugzilla.kernel

[PATCH 4.9 060/104] team: fix memory leaks

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Pan Bian [ Upstream commit 72ec0bc64b9a5d8e0efcb717abfc757746b101b7 ] In functions team_nl_send_port_list_get() and team_nl_send_options_get(), pointer skb keeps the return value of nlmsg_new(

[PATCH 4.9 044/104] ASoC: dapm: handle probe deferrals

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Linus Walleij [ Upstream commit 37e1df8c95e2c8a57c77eafc097648f6e40a60ff ] This starts to handle probe deferrals on regulators and clocks on the ASoC DAPM. I came to this patch after audio st

[PATCH 4.9 052/104] drm: mali-dp: Fix destination size handling when rotating

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Brian Starkey [ Upstream commit edabb3c4cd2d035bc93a3d67b25a304ea6217301 ] The destination rectangle provided by userspace in the CRTC_X/Y/W/H properties is already expressed as the dimensions

[PATCH 4.9 048/104] iommu/arm-smmu: Set privileged attribute to default instead of unprivileged

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sricharan R [ Upstream commit e19898077cfb642fe151ba22981e795c74d9e114 ] Currently the driver sets all the device transactions privileges to UNPRIVILEGED, but there are cases where the iommu m

[PATCH 4.9 046/104] ath10k: prevent sta pointer rcu violation

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michal Kazior [ Upstream commit 0a744d927406389e00687560d9ce3c5ab0e58db9 ] Station pointers are RCU protected so driver must be extra careful if it tries to store them internally for later use

[PATCH 4.9 041/104] sfc: get PIO buffer size from the NIC

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Edward Cree [ Upstream commit c634700f7eec3c0da46e299cd0a0ae8b594f9b55 ] The 8000 series SFC NICs have 4K PIO buffers, rather than the 2K of the 7000 series. Rather than having a hard-coded

[PATCH 4.9 003/104] GFS2: Fix reference to ERR_PTR in gfs2_glock_iter_next

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter [ Upstream commit 14d37564fa3dc4e5d4c6828afcd26ac14e6796c5 ] This patch fixes a place where function gfs2_glock_iter_next can reference an invalid error pointer. Signed-off-by:

[PATCH 4.9 037/104] arm: dts: mt2701: Add subsystem clock controller device nodes

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: James Liao [ Upstream commit f235c7e7a75325f28a33559a71f25a0eca6112db ] Add MT2701 subsystem clock controllers, inlcude mmsys, imgsys, vdecsys, hifsys, ethsys and bdpsys. Signed-off-by: James

[PATCH 4.9 015/104] scsi: be2iscsi: Add checks to validate CID alloc/free

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jitendra Bhivare [ Upstream commit 413f365657a8b9669bd0ba3628e9fde9ce63604e ] Set CID slot to 0x to indicate empty. Check if connection already exists in conn_table before binding. Check i

[PATCH 4.9 023/104] hwmon: (gl520sm) Fix overflows and crash seen when writing into limit attributes

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck [ Upstream commit 87cdfa9d60f4f40e6d71b04b10b36d9df3c89282 ] Writes into limit attributes can overflow due to multplications and additions with unbound input values. Writing into

[PATCH 4.9 002/104] drm: bridge: add DT bindings for TI ths8135

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bartosz Golaszewski [ Upstream commit 2e644be30fcc08c736f66b60f4898d274d4873ab ] THS8135 is a configurable video DAC. Add DT bindings for this chip. Signed-off-by: Bartosz Golaszewski Review

[PATCH 4.9 016/104] ARM: dts: am335x-chilisom: Wakeup from RTC-only state by power on event

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Marcin Niestroj [ Upstream commit ca244a83ecc7f0a9242ee2116e622cb6d7ec2a90 ] On chiliSOM TPS65217 nWAKEUP pin is connected to AM335x internal RTC EXT_WAKEUP input. In RTC-only state TPS65217 i

[PATCH 4.9 024/104] iio: adc: imx25-gcq: Fix module autoload

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Javier Martinez Canillas [ Upstream commit 8f0d7daf53972da0004f7a5a4d938c85333db300 ] If the driver is built as a module, autoload won't work because the module alias information is not filled

[PATCH 4.9 001/104] drm_fourcc: Fix DRM_FORMAT_MOD_LINEAR #define

2017-10-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: "Kristian H. Kristensen" [ Upstream commit af913418261d6d3e7a29f06cf35f04610ead667c ] We need to define DRM_FORMAT_MOD_VENDOR_NONE for the fourcc_mod_code() macro to work correctly. Signed-of

[PATCH 4.9 000/104] 4.9.54-stable review

2017-10-06 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.54 release. There are 104 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 Sun Oct 8 08:37:55 UTC 2017. Anything receiv

Re: [PATCH 1/2] sched/rt: Add a helper to test for a RT task

2017-10-06 Thread Sebastian Andrzej Siewior
On 2017-10-06 10:19:37 [+0200], Peter Zijlstra wrote: > > --- a/include/linux/sched/rt.h > > +++ b/include/linux/sched/rt.h > > @@ -17,6 +17,17 @@ static inline int rt_task(struct task_struct *p) > > return rt_prio(p->prio); > > } > > > > +static inline bool task_is_elevated(struct task_stru

Re: [PATCHv2 1/2] mm: Introduce wrappers to access mm->nr_ptes

2017-10-06 Thread Michal Hocko
On Thu 05-10-17 13:14:41, Kirill A. Shutemov wrote: > Let's add wrappers for ->nr_ptes with the same interface as for nr_pmd > and nr_pud. > > It's preparation for consolidation of page-table counters in mm_struct. You are also making the accounting dependent on MMU which is OK because no nommu a

Re: [PATCHv2 2/2] mm: Consolidate page table accounting

2017-10-06 Thread Michal Hocko
[CC linux-api because this is a user visible change] On Thu 05-10-17 13:14:42, Kirill A. Shutemov wrote: > Currently, we account page tables separately for each page table level, > but that's redundant -- we only make use of total memory allocated to > page tables for oom_badness calculation. We a

Re: [PATCH 07/20] ARM: dts: sun4i: Remove skeleton and memory to avoid warnings

2017-10-06 Thread Maxime Ripard
On Thu, Oct 05, 2017 at 03:43:53PM +, Chen-Yu Tsai wrote: > On Thu, Oct 5, 2017 at 6:49 PM, Maxime Ripard > wrote: > > Using skeleton.dtsi will create a memory node that will generate a warning > > in DTC. However, that node will be created by the bootloader, so we can > > just remove it entir

Re: [PATCH 05/20] ARM: dts: sun4i: Change pinctrl nodes to avoid warning

2017-10-06 Thread Maxime Ripard
Hi, On Thu, Oct 05, 2017 at 03:29:56PM +, Chen-Yu Tsai wrote: > > @@ -531,83 +531,83 @@ > > bias-pull-up; > > }; > > > > - ps20_pins_a: ps20@0 { > > - pins = "PI20", "PI21"; > > +

Re: __ubsan_handle_type_mismatch converted to __ubsan_handle_type_mismatch_v1

2017-10-06 Thread Andrey Ryabinin
On 10/06/2017 05:29 AM, Sodagudi Prasad wrote: > Hi All, > > Based on below links __ubsan_handle_type_mismatch has been renamed to  > __ubsan_handle_type_mismatch_v1. > > https://github.com/llvm-mirror/compiler-rt/commit/56faee71af1888ba12ab076b3d1f9bbe223493df#diff-21369cc6f3917b27df3ced8de89

Re: [PATCH] ALSA: usb-audio: Add sample rate quirk for Plantronics P610

2017-10-06 Thread Takashi Iwai
On Fri, 06 Oct 2017 06:27:59 +0200, Kai-Heng Feng wrote: > > Hi, > > On Fri, Oct 6, 2017 at 2:22 AM, Takashi Iwai wrote: > > On Thu, 05 Oct 2017 20:04:06 +0200, > > Kai-Heng Feng wrote: > >> > >> Like other Plantronics devices, P610 does not support sample > >> rate reading. Apply sample rate qu

Re: [PATCH 0/6] Switch arm64 over to qrwlock

2017-10-06 Thread Will Deacon
Hi Jeremy, On Thu, Oct 05, 2017 at 05:12:44PM -0500, Jeremy Linton wrote: > On 10/05/2017 07:54 AM, Will Deacon wrote: > >This patch series reworks bits of the qrwlock code that it can be used > >to replace the asm rwlocks currently implemented for arm64. The structure > >of the series is: > > > >

Re: [PATCH v2 09/16] driver core: add iommu device fault reporting data

2017-10-06 Thread Joerg Roedel
On Fri, Oct 06, 2017 at 12:11:45AM -0700, Christoph Hellwig wrote: > This is the 3rd iommu field, in addition to 8 dma-specific fields > that we carry around for each struct device. Agreed, consolidating the iommu-fields in 'struct device' into a single 'struct iommu_data' is on my todo-list. Jac

Re: [PATCH] drm/i915: Convert timers to use timer_setup()

2017-10-06 Thread Jani Nikula
On Thu, 05 Oct 2017, Kees Cook wrote: > On Thu, Oct 5, 2017 at 6:45 AM, Joonas Lahtinen > wrote: >> On Wed, 2017-10-04 at 17:54 -0700, Kees Cook wrote: >>> In preparation for unconditionally passing the struct timer_list pointer to >>> all timer callbacks, switch to using the new timer_setup() an

Re: [PATCH 3/3] pinctrl: sunxi: Enforce the strict mode by default

2017-10-06 Thread Chen-Yu Tsai
On Fri, Oct 6, 2017 at 4:54 AM, Maxime Ripard wrote: > The strict mode should always have been enabled on our driver, and leaving > it unchecked just makes it harder to find a migration path as time passes. > > Let's enable it by default now so that hopefully the new SoCs should be > safe. > > Sig

Re: [PATCH 2/3] pinctrl: sunxi: Disable strict mode for old pinctrl drivers

2017-10-06 Thread Chen-Yu Tsai
On Fri, Oct 6, 2017 at 4:54 AM, Maxime Ripard wrote: > Old pinctrl drivers will need to disable strict mode for various reasons, > among which: > - Some DT will still have a pinctrl group for each GPIO used, which will > be rejected by pin_request. While we could remove those nodes, we still

Re: [PATCH 1/3] pinctrl: sunxi: Introduce the strict flag

2017-10-06 Thread Chen-Yu Tsai
On Fri, Oct 6, 2017 at 4:54 AM, Maxime Ripard wrote: > Our pinctrl device should have had strict set all along. However, it wasn't > the case, and most of our old device trees also have a pinctrl group in > addition to the GPIOs properties, which mean that we can't really turn it > on now. > > All

Re: [PATCH tip/core/rcu 1/3] membarrier: Provide register expedited private command

2017-10-06 Thread Peter Zijlstra
> AFAIU the scheduler rq->lock is held while preemption is disabled. > synchronize_sched() is used here to ensure that all pre-existing > preempt-off critical sections have completed. > > So saying that we use synchronize_sched() to synchronize with rq->lock > would be stretching the truth a bit.

[PATCH] pinctrl: meson-gx: add TEST_N i2s pinmux

2017-10-06 Thread Jerome Brunet
Add TEST_N pinmux for channel 6 and 7 of the i2s output Signed-off-by: Jerome Brunet --- Hi Linus, FYI, This change depends on clean-up series you've just merged. Cheers, Jerome drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 5 + drivers/pinctrl/meson/pinctrl-meson-gxl.c | 6 +- 2 fil

Re: [PATCH] pinctrl: cherryview: fix issues caused by dynamic gpio irqs mapping

2017-10-06 Thread Mika Westerberg
On Wed, Oct 04, 2017 at 09:42:49AM +0300, Mika Westerberg wrote: > On Tue, Oct 03, 2017 at 12:00:49PM -0500, Grygorii Strashko wrote: > > New GPIO IRQs are allocated and mapped dynamically by default when > > GPIO IRQ infrastructure is used by cherryview-pinctrl driver. > > This causes issues on so

Re: [PATCH v2 09/16] driver core: add iommu device fault reporting data

2017-10-06 Thread Greg Kroah-Hartman
On Fri, Oct 06, 2017 at 12:11:45AM -0700, Christoph Hellwig wrote: > On Thu, Oct 05, 2017 at 04:03:37PM -0700, Jacob Pan wrote: > > DMA faults can be detected by IOMMU at device level. Adding a pointer > > to struct device allows IOMMU subsystem to report relevant faults > > back to the device driv

Re: [PATCH v2] block/laptop_mode: Convert timers to use timer_setup()

2017-10-06 Thread Christoph Hellwig
> -static void blk_rq_timed_out_timer(unsigned long data) > +static void blk_rq_timed_out_timer(struct timer_list *t) > { > - struct request_queue *q = (struct request_queue *)data; > + struct request_queue *q = from_timer(q, t, timeout); > > kblockd_schedule_work(&q->timeout_work)

Re: [PATCH v3 0/3] Basical device tree parts for Allwinner R40 SoC

2017-10-06 Thread Maxime Ripard
Hi, On Fri, Oct 06, 2017 at 06:42:30AM +, Icenowy Zheng wrote: > This patchset adds basical device tree parts for the Allwinner R40 SoC > and two boards feature this SoC -- Banana Pi M2 Ultra and Berry (The > BPi M2 Berry board uses V40 SoC, which is just a renamed R40). Applied all three, th

Re: [PATCH 1/2] sched/rt: Add a helper to test for a RT task

2017-10-06 Thread Peter Zijlstra
On Wed, Oct 04, 2017 at 05:49:00PM +0200, Sebastian Andrzej Siewior wrote: > This helper returns true if a task has elevated priority which is true > for RT tasks (SCHED_RR and SCHED_FIFO) and also for SCHED_DEADLINE. > A task which runs at RT priority due to PI-boosting is not considered as > one

Re: [PATCH v5 1/7] media: add glossary.rst with a glossary of terms used at V4L2 spec

2017-10-06 Thread Sakari Ailus
Hi Mauro, On Thu, Oct 05, 2017 at 09:26:51AM -0300, Mauro Carvalho Chehab wrote: > > > > > + > > > > > + See :ref:`media_controller`. > > > > > + > > > > > +MC-centric > > > > > + V4L2 hardware that requires a Media controller. > > > > > + > > > > > + See :ref:`v4l2_hardware_contro

Re: [PATCH v3] HID: hid-multitouch: support fine-grain orientation reporting

2017-10-06 Thread Benjamin Tissoires
Hi, On Oct 05 2017 or thereabouts, Jiri Kosina wrote: > > [ adding Benjamin to CC ] > > On Thu, 28 Sep 2017, Wei-Ning Huang wrote: > > > The current hid-multitouch driver only allow the report of two > > orientations, vertical and horizontal. We use the Azimuth orientation > > usage 0x3F under

Re: [PATCH review for 4.4 12/47] clk: wm831x: fix usleep_range with bad range

2017-10-06 Thread Nicholas Mc Guire
On Sun, Sep 24, 2017 at 12:18:12AM +, Levin, Alexander (Sasha Levin) wrote: > On Fri, Sep 22, 2017 at 09:46:28AM +0100, Charles Keepax wrote: > >On Wed, Sep 20, 2017 at 04:45:02AM +, Levin, Alexander (Sasha Levin) > >wrote: > >> From: Nicholas Mc Guire > >> > >> [ Upstream commit ed784c53

Re: [PATCH V9 13/15] mmc: block: Add CQE and blk-mq support

2017-10-06 Thread Adrian Hunter
On 02/10/17 11:32, Ulf Hansson wrote: > On 22 September 2017 at 14:37, Adrian Hunter wrote: >> Add CQE support to the block driver, including: >> - optionally using DCMD for flush requests >> - "manually" issuing discard requests >> - issuing read / write requests to the CQE >> - s

<    4   5   6   7   8   9   10   >