[PATCH AUTOSEL 5.2 10/76] scripts/sphinx-pre-install: don't use LaTeX with CentOS 7

2019-08-02 Thread Sasha Levin
From: Mauro Carvalho Chehab [ Upstream commit 56e5a633923793b31515795ad30156a307572c1e ] There aren't enough texlive packages for LaTeX-based builds to work on CentOS/RHEL <= 7. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- scripts/sphinx-pre-install | 68

[PATCH AUTOSEL 5.2 26/76] iscsi_ibft: make ISCSI_IBFT dependson ACPI instead of ISCSI_IBFT_FIND

2019-08-02 Thread Sasha Levin
From: Thomas Tai [ Upstream commit 94bccc34071094c165c79b515d21b63c78f7e968 ] iscsi_ibft can use ACPI to find the iBFT entry during bootup, currently, ISCSI_IBFT depends on ISCSI_IBFT_FIND which is a X86 legacy way to find the iBFT by searching through the low memory. This patch changes the

[PATCH AUTOSEL 5.2 47/76] s390/qdio: add sanity checks to the fast-requeue path

2019-08-02 Thread Sasha Levin
From: Julian Wiedmann [ Upstream commit a6ec414a4dd529eeac5c3ea51c661daba3397108 ] If the device driver were to send out a full queue's worth of SBALs, current code would end up discovering the last of those SBALs as PRIMED and erroneously skip the SIGA-w. This immediately stalls the queue.

[PATCH AUTOSEL 5.2 19/76] drm/amd/display: fix DMCU hang when going into Modern Standby

2019-08-02 Thread Sasha Levin
From: Zi Yu Liao [ Upstream commit 1ca068ed34d6b39d336c1b0d618ed73ba8f04548 ] [why] When the system is going into suspend, set_backlight gets called after the eDP got blanked. Since smooth brightness is enabled, the driver will make a call into the DMCU to ramp the brightness. The DMCU would

[PATCH AUTOSEL 5.2 24/76] drm/amd/display: Only enable audio if speaker allocation exists

2019-08-02 Thread Sasha Levin
From: Alvin Lee [ Upstream commit 6ac25e6d5b2fbf251e9fa2f4131d42c815b43867 ] [Why] In dm_helpers_parse_edid_caps, there is a corner case where no speakers can be allocated even though the audio mode count is greater than 0. Enabling audio when no speaker allocations exists can cause issues in

[PATCH AUTOSEL 5.2 58/76] ACPI/IORT: Fix off-by-one check in iort_dev_find_its_id()

2019-08-02 Thread Sasha Levin
From: Lorenzo Pieralisi [ Upstream commit 5a46d3f71d5e5a9f82eabc682f996f1281705ac7 ] Static analysis identified that index comparison against ITS entries in iort_dev_find_its_id() is off by one. Update the comparison condition and clarify the resulting error message. Fixes: 4bf2efd26d76

Re: [RFC PATCH v4 2/6] vfio: Introduce vGPU display irq type

2019-08-02 Thread kra...@redhat.com
Hi, > > > Couldn't you expose this as another capability within the IRQ_INFO return > > > data? If you were to define it as a macro, I assume that means it would > > > be > > > hard coded, in which case this probably becomes an Intel specific IRQ, > > > rather > > > than what appears to be

[PATCH AUTOSEL 5.2 46/76] cpufreq/pasemi: fix use-after-free in pas_cpufreq_cpu_init()

2019-08-02 Thread Sasha Levin
From: Wen Yang [ Upstream commit e0a12445d1cb186d875410d093a00d215bec6a89 ] The cpu variable is still being used in the of_get_property() call after the of_node_put() call, which may result in use-after-free. Fixes: a9acc26b75f6 ("cpufreq/pasemi: fix possible object reference leak")

[PATCH AUTOSEL 5.2 50/76] ALSA: compress: Don't allow paritial drain operations on capture streams

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit a70ab8a8645083f3700814e757f2940a88b7ef88 ] Partial drain and next track are intended for gapless playback and don't really have an obvious interpretation for a capture stream, so makes sense to not allow those operations on capture streams. Signed-off-by:

[PATCH AUTOSEL 5.2 51/76] ALSA: compress: Be more restrictive about when a drain is allowed

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 3b8179944cb0dd53e5223996966746cdc8a60657 ] Draining makes little sense in the situation of hardware overrun, as the hardware will have consumed all its available samples. Additionally, draining whilst the stream is paused would presumably get stuck as no

[PATCH AUTOSEL 5.2 25/76] drm/amd/display: Increase size of audios array

2019-08-02 Thread Sasha Levin
From: Tai Man [ Upstream commit 7352193a33dfc9b69ba3bf6a8caea925b96243b1 ] [Why] The audios array defined in "struct resource_pool" is only 6 (MAX_PIPES) but the max number of audio devices (num_audio) is 7. In some projects, it will run out of audios array. [How] Incraese the audios array

[PATCH AUTOSEL 5.2 28/76] mac80211: fix possible memory leak in ieee80211_assign_beacon

2019-08-02 Thread Sasha Levin
From: Lorenzo Bianconi [ Upstream commit bcc27fab8cc673ddc95452674373cce618ccb3a3 ] Free new beacon_data in ieee80211_assign_beacon whenever ieee80211_assign_beacon fails Fixes: 8860020e0be1 ("cfg80211: restructure AP/GO mode API") Fixes: bc847970f432 ("mac80211: support FTM responder

[PATCH AUTOSEL 5.2 61/76] nvme: fix multipath crash when ANA is deactivated

2019-08-02 Thread Sasha Levin
From: Marta Rybczynska [ Upstream commit 66b20ac0a1a10769d059d6903202f53494e3d902 ] Fix a crash with multipath activated. It happends when ANA log page is larger than MDTS and because of that ANA is disabled. The driver then tries to access unallocated buffer when connecting to a nvme target.

[PATCH AUTOSEL 5.2 59/76] nvme: ignore subnqn for ADATA SX6000LNP

2019-08-02 Thread Sasha Levin
From: Misha Nasledov [ Upstream commit 08b903b5fd0c49e5f224a9bf085b6329ec3c55c0 ] The ADATA SX6000LNP NVMe SSDs have the same subnqn and, due to this, a system with more than one of these SSDs will only have one usable. [ 0.942706] nvme nvme1: ignoring ctrl due to duplicate subnqn

Re: [PATCH 1/4] dt-bindings: counter: new bindings for TI eQEP

2019-08-02 Thread Rob Herring
On Fri, Aug 2, 2019 at 1:25 AM William Breathitt Gray wrote: > > On Sat, Jul 27, 2019 at 08:48:36PM +0100, Jonathan Cameron wrote: > > On Mon, 22 Jul 2019 10:45:35 -0500 > > David Lechner wrote: > > > > > This documents device tree binding for the Texas Instruments Enhanced > > > Quadrature

[PATCH AUTOSEL 5.2 63/76] ARM: dts: bcm: bcm47094: add missing #cells for mdio-bus-mux

2019-08-02 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 3a9d2569e45cb02769cda26fee4a02126867c934 ] The mdio-bus-mux has no #address-cells/#size-cells property, which causes a few dtc warnings: arch/arm/boot/dts/bcm47094-linksys-panamera.dts:129.4-18: Warning (reg_format): /mdio-bus-mux/mdio@200:reg: property

Re: [PATCH v2 2/2] usbip: Implement SG support to vhci

2019-08-02 Thread shuah
On 8/2/19 1:41 AM, Suwan Kim wrote: On Thu, Aug 01, 2019 at 08:03:59AM -0600, shuah wrote: On 8/1/19 12:38 AM, Suwan Kim wrote: On Mon, Jul 29, 2019 at 10:32:31AM -0600, shuah wrote: On 7/29/19 8:52 AM, Suwan Kim wrote: Hi Shuah, On Tue, Jul 23, 2019 at 06:21:53PM -0600, shuah wrote: Hi

[PATCH AUTOSEL 5.2 56/76] perf probe: Avoid calling freeing routine multiple times for same pointer

2019-08-02 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit d95daf5accf4a72005daa13fbb1d1bd8709f2861 ] When perf_add_probe_events() we call cleanup_perf_probe_events() for the pev pointer it receives, then, as part of handling this failure the main 'perf probe' goes on and calls cleanup_params() and that

[PATCH AUTOSEL 5.2 66/76] scsi: scsi_dh_alua: always use a 2 second delay before retrying RTPG

2019-08-02 Thread Sasha Levin
From: Hannes Reinecke [ Upstream commit 20122994e38aef0ae50555884d287adde6641c94 ] Retrying immediately after we've received a 'transitioning' sense code is pretty much pointless, we should always use a delay before retrying. So ensure the default delay is applied before retrying.

[PATCH AUTOSEL 5.2 68/76] sched/fair: Don't free p->numa_faults with concurrent readers

2019-08-02 Thread Sasha Levin
From: Jann Horn [ Upstream commit 16d51a590a8ce3befb1308e0e7ab77f3b661af33 ] When going through execve(), zero out the NUMA fault statistics instead of freeing them. During execve, the task is reachable through procfs and the scheduler. A concurrent /proc/*/sched reader can read data from a

[PATCH AUTOSEL 5.2 70/76] tty/ldsem, locking/rwsem: Add missing ACQUIRE to read_failed sleep loop

2019-08-02 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 952041a8639a7a3a73a2b6573cb8aa8518bc39f8 ] While reviewing rwsem down_slowpath, Will noticed ldsem had a copy of a bug we just found for rwsem. X = 0; CPU0 CPU1 rwsem_down_read() for (;;) {

[PATCH AUTOSEL 5.2 73/76] perf/x86: Apply more accurate check on hypervisor platform

2019-08-02 Thread Sasha Levin
From: Zhenzhong Duan [ Upstream commit 5ea3f6fb37b79da33ac9211df336fd2b9f47c39f ] check_msr is used to fix a bug report in guest where KVM doesn't support LBR MSR and cause #GP. The msr check is bypassed on real HW to workaround a false failure, see commit d0e1a507bdc7 ("perf/x86/intel:

[PATCH AUTOSEL 5.2 71/76] perf/x86/intel: Fix SLOTS PEBS event constraint

2019-08-02 Thread Sasha Levin
From: Kan Liang [ Upstream commit 3d0c3953601d250175c7684ec0d9df612061dae5 ] Sampling SLOTS event and ref-cycles event in a group on Icelake gives EINVAL. SLOTS event is the event stands for the fixed counter 3, not fixed counter 2. Wrong mask was set to SLOTS event in

Re: KASAN: use-after-free Read in __pm_runtime_resume

2019-08-02 Thread Pavel Machek
On Fri 2019-08-02 05:58:05, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:e96407b4 usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

[PATCH AUTOSEL 4.19 06/42] scripts/sphinx-pre-install: fix script for RHEL/CentOS

2019-08-02 Thread Sasha Levin
From: Mauro Carvalho Chehab [ Upstream commit b308467c916aa7acc5069802ab76a9f657434701 ] There's a missing parenthesis at the script, with causes it to fail to detect non-Fedora releases (e. g. RHEL/CentOS). Tested with Centos 7.6.1810. Signed-off-by: Mauro Carvalho Chehab Signed-off-by:

[PATCH AUTOSEL 4.19 03/42] netfilter: Fix rpfilter dropping vrf packets by mistake

2019-08-02 Thread Sasha Levin
From: Miaohe Lin [ Upstream commit b575b24b8eee37f10484e951b62ce2a31c579775 ] When firewalld is enabled with ipv4/ipv6 rpfilter, vrf ipv4/ipv6 packets will be dropped. Vrf device will pass through netfilter hook twice. One with enslaved device and another one with l3 master device. So in device

[PATCH AUTOSEL 4.19 04/42] netfilter: conntrack: always store window size un-scaled

2019-08-02 Thread Sasha Levin
From: Florian Westphal [ Upstream commit 959b69ef57db00cb33e9c4777400ae7183ebddd3 ] Jakub Jankowski reported following oddity: After 3 way handshake completes, timeout of new connection is set to max_retrans (300s) instead of established (5 days). shortened excerpt from pcap provided:

[PATCH AUTOSEL 4.19 14/42] mac80211: don't warn about CW params when not using them

2019-08-02 Thread Sasha Levin
From: Brian Norris [ Upstream commit d2b3fe42bc629c2d4002f652b3abdfb2e72991c7 ] ieee80211_set_wmm_default() normally sets up the initial CW min/max for each queue, except that it skips doing this if the driver doesn't support ->conf_tx. We still end up calling drv_conf_tx() in some cases (e.g.,

[PATCH AUTOSEL 4.19 28/42] perf probe: Avoid calling freeing routine multiple times for same pointer

2019-08-02 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit d95daf5accf4a72005daa13fbb1d1bd8709f2861 ] When perf_add_probe_events() we call cleanup_perf_probe_events() for the pev pointer it receives, then, as part of handling this failure the main 'perf probe' goes on and calls cleanup_params() and that

[PATCH AUTOSEL 4.19 23/42] ALSA: compress: Fix regression on compressed capture streams

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 4475f8c4ab7b248991a60d9c02808dbb813d6be8 ] A previous fix to the stop handling on compressed capture streams causes some knock on issues. The previous fix updated snd_compr_drain_notify to set the state back to PREPARED for capture streams. This causes

[PATCH AUTOSEL 4.19 13/42] nl80211: fix NL80211_HE_MAX_CAPABILITY_LEN

2019-08-02 Thread Sasha Levin
From: John Crispin [ Upstream commit 5edaac063bbf1267260ad2a5b9bb803399343e58 ] NL80211_HE_MAX_CAPABILITY_LEN has changed between D2.0 and D4.0. It is now MAC (6) + PHY (11) + MCS (12) + PPE (25) = 54. Signed-off-by: John Crispin Link:

[PATCH AUTOSEL 4.19 18/42] x86/mm: Sync also unmappings in vmalloc_sync_all()

2019-08-02 Thread Sasha Levin
From: Joerg Roedel [ Upstream commit 8e998fc24de47c55b47a887f6c95ab91acd4a720 ] With huge-page ioremap areas the unmappings also need to be synced between all page-tables. Otherwise it can cause data corruption when a region is unmapped and later re-used. Make the vmalloc_sync_one() function

[PATCH AUTOSEL 4.19 12/42] iscsi_ibft: make ISCSI_IBFT dependson ACPI instead of ISCSI_IBFT_FIND

2019-08-02 Thread Sasha Levin
From: Thomas Tai [ Upstream commit 94bccc34071094c165c79b515d21b63c78f7e968 ] iscsi_ibft can use ACPI to find the iBFT entry during bootup, currently, ISCSI_IBFT depends on ISCSI_IBFT_FIND which is a X86 legacy way to find the iBFT by searching through the low memory. This patch changes the

[PATCH AUTOSEL 4.19 20/42] drm: silence variable 'conn' set but not used

2019-08-02 Thread Sasha Levin
From: Qian Cai [ Upstream commit bbb6fc43f131f77fcb7ae8081f6d7c51396a2120 ] The "struct drm_connector" iteration cursor from "for_each_new_connector_in_state" is never used in atomic_remove_fb() which generates a compilation warning, drivers/gpu/drm/drm_framebuffer.c: In function

[PATCH AUTOSEL 4.19 21/42] cpufreq/pasemi: fix use-after-free in pas_cpufreq_cpu_init()

2019-08-02 Thread Sasha Levin
From: Wen Yang [ Upstream commit e0a12445d1cb186d875410d093a00d215bec6a89 ] The cpu variable is still being used in the of_get_property() call after the of_node_put() call, which may result in use-after-free. Fixes: a9acc26b75f6 ("cpufreq/pasemi: fix possible object reference leak")

Re: [patch V2 6/7] fs/jbd2: Make state lock a spinlock

2019-08-02 Thread Jan Kara
On Thu 01-08-19 13:28:49, Peter Zijlstra wrote: > On Thu, Aug 01, 2019 at 03:01:32AM +0200, Thomas Gleixner wrote: > > > @@ -1931,7 +1932,7 @@ static void __jbd2_journal_temp_unlink_b > > transaction_t *transaction; > > struct buffer_head *bh = jh2bh(jh); > > > > - J_ASSERT_JH(jh,

[PATCH AUTOSEL 4.19 30/42] ACPI/IORT: Fix off-by-one check in iort_dev_find_its_id()

2019-08-02 Thread Sasha Levin
From: Lorenzo Pieralisi [ Upstream commit 5a46d3f71d5e5a9f82eabc682f996f1281705ac7 ] Static analysis identified that index comparison against ITS entries in iort_dev_find_its_id() is off by one. Update the comparison condition and clarify the resulting error message. Fixes: 4bf2efd26d76

[PATCH AUTOSEL 4.19 26/42] ALSA: compress: Be more restrictive about when a drain is allowed

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 3b8179944cb0dd53e5223996966746cdc8a60657 ] Draining makes little sense in the situation of hardware overrun, as the hardware will have consumed all its available samples. Additionally, draining whilst the stream is paused would presumably get stuck as no

[PATCH AUTOSEL 4.19 37/42] test_firmware: fix a memory leak bug

2019-08-02 Thread Sasha Levin
From: Wenwen Wang [ Upstream commit d4fddac5a51c378c5d3e68658816c37132611e1f ] In test_firmware_init(), the buffer pointed to by the global pointer 'test_fw_config' is allocated through kzalloc(). Then, the buffer is initialized in __test_firmware_config_init(). In the case that the

[PATCH -next 03/12] crypto: exynos - use devm_platform_ioremap_resource() to simplify code

2019-08-02 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/crypto/exynos-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/crypto/exynos-rng.c

[PATCH AUTOSEL 4.19 32/42] ARM: davinci: fix sleep.S build error on ARMv4

2019-08-02 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit d64b212ea960db4276a1d8372bd98cb861dfcbb0 ] When building a multiplatform kernel that includes armv4 support, the default target CPU does not support the blx instruction, which leads to a build failure: arch/arm/mach-davinci/sleep.S: Assembler messages:

[PATCH AUTOSEL 4.19 27/42] perf tools: Fix proper buffer size for feature processing

2019-08-02 Thread Sasha Levin
From: Jiri Olsa [ Upstream commit 79b2fe5e756163897175a8f57d66b26cd9befd59 ] After Song Liu's segfault fix for pipe mode, Arnaldo reported following error: # perf record -o - | perf script 0x514 [0x1ac]: failed to process type: 80 It's caused by wrong buffer size setup in feature

[PATCH AUTOSEL 4.19 22/42] s390/qdio: add sanity checks to the fast-requeue path

2019-08-02 Thread Sasha Levin
From: Julian Wiedmann [ Upstream commit a6ec414a4dd529eeac5c3ea51c661daba3397108 ] If the device driver were to send out a full queue's worth of SBALs, current code would end up discovering the last of those SBALs as PRIMED and erroneously skip the SIGA-w. This immediately stalls the queue.

[PATCH AUTOSEL 4.19 38/42] sched/fair: Don't free p->numa_faults with concurrent readers

2019-08-02 Thread Sasha Levin
From: Jann Horn [ Upstream commit 16d51a590a8ce3befb1308e0e7ab77f3b661af33 ] When going through execve(), zero out the NUMA fault statistics instead of freeing them. During execve, the task is reachable through procfs and the scheduler. A concurrent /proc/*/sched reader can read data from a

[PATCH AUTOSEL 4.19 39/42] sched/fair: Use RCU accessors consistently for ->numa_group

2019-08-02 Thread Sasha Levin
From: Jann Horn [ Upstream commit cb361d8cdef69990f6b4504dc1fd9a594d983c97 ] The old code used RCU annotations and accessors inconsistently for ->numa_group, which can lead to use-after-frees and NULL dereferences. Let all accesses to ->numa_group use proper RCU helpers to prevent such issues.

[PATCH AUTOSEL 4.19 41/42] perf/core: Fix creating kernel counters for PMUs that override event->cpu

2019-08-02 Thread Sasha Levin
From: Leonard Crestez [ Upstream commit 4ce54af8b33d3e21ca935fc1b89b58cbba956051 ] Some hardware PMU drivers will override perf_event.cpu inside their event_init callback. This causes a lockdep splat when initialized through the kernel API: WARNING: CPU: 0 PID: 250 at

[PATCH AUTOSEL 4.19 33/42] ARM: dts: bcm: bcm47094: add missing #cells for mdio-bus-mux

2019-08-02 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 3a9d2569e45cb02769cda26fee4a02126867c934 ] The mdio-bus-mux has no #address-cells/#size-cells property, which causes a few dtc warnings: arch/arm/boot/dts/bcm47094-linksys-panamera.dts:129.4-18: Warning (reg_format): /mdio-bus-mux/mdio@200:reg: property

Re: [PATCH 2/2] perf unwind: fix libunwind when tid != pid

2019-08-02 Thread Jiri Olsa
On Mon, Jul 29, 2019 at 06:24:30PM +0100, John Keeping wrote: > Commit e5adfc3e7e77 ("perf map: Synthesize maps only for thread group > leader") changed the recording side so that we no longer get mmap events > for threads other than the thread group leader. > > When a file recorded after this

[PATCH AUTOSEL 4.9 17/22] ARM: davinci: fix sleep.S build error on ARMv4

2019-08-02 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit d64b212ea960db4276a1d8372bd98cb861dfcbb0 ] When building a multiplatform kernel that includes armv4 support, the default target CPU does not support the blx instruction, which leads to a build failure: arch/arm/mach-davinci/sleep.S: Assembler messages:

Re: [PATCH v2 1/2] fork: extend clone3() to support CLONE_SET_TID

2019-08-02 Thread Oleg Nesterov
On 08/02, Christian Brauner wrote: > > On Wed, Jul 31, 2019 at 06:12:22PM +0200, Adrian Reber wrote: > > The main motivation to add CLONE_SET_TID to clone3() is CRIU. > > > > To restore a process with the same PID/TID CRIU currently uses > > /proc/sys/kernel/ns_last_pid. It writes the desired (PID

Re: [PATCH v2 1/2] fork: extend clone3() to support CLONE_SET_TID

2019-08-02 Thread Oleg Nesterov
On 08/02, Oleg Nesterov wrote: > > On 08/02, Adrian Reber wrote: > > > > On Wed, Jul 31, 2019 at 07:41:36PM +0200, Oleg Nesterov wrote: > > > But the main question is how it can really help if ns->level > 0, unlikely > > > CRIU will ever need to clone the process with the same pid_nr == set_tid >

[PATCH AUTOSEL 4.14 04/30] netfilter: nft_hash: fix symhash with modulus one

2019-08-02 Thread Sasha Levin
From: Laura Garcia Liebana [ Upstream commit 28b1d6ef53e3303b90ca8924bb78f31fa527cafb ] The rule below doesn't work as the kernel raises -ERANGE. nft add rule netdev nftlb lb01 ip daddr set \ symhash mod 1 map { 0 : 192.168.0.10 } fwd to "eth0" This patch allows to use the symhash

[PATCH AUTOSEL 4.14 01/30] netfilter: nfnetlink: avoid deadlock due to synchronous request_module

2019-08-02 Thread Sasha Levin
From: Florian Westphal [ Upstream commit 1b0890cd60829bd51455dc5ad689ed58c4408227 ] Thomas and Juliana report a deadlock when running: (rmmod nf_conntrack_netlink/xfrm_user) conntrack -e NEW -E & modprobe -v xfrm_user They provided following analysis: conntrack -e NEW -E

[PATCH AUTOSEL 4.14 08/30] hwmon: (nct6775) Fix register address and added missed tolerance for nct6106

2019-08-02 Thread Sasha Levin
From: Björn Gerhart [ Upstream commit f3d43e2e45fd9d44ba52d20debd12cd4ee9c89bf ] Fixed address of third NCT6106_REG_WEIGHT_DUTY_STEP, and added missed NCT6106_REG_TOLERANCE_H. Fixes: 6c009501ff200 ("hwmon: (nct6775) Add support for NCT6102D/6106D") Signed-off-by: Bjoern Gerhart Signed-off-by:

[PATCH AUTOSEL 4.19 34/42] scsi: megaraid_sas: fix panic on loading firmware crashdump

2019-08-02 Thread Sasha Levin
From: Junxiao Bi [ Upstream commit 3b5f307ef3cb5022bfe3c8ca5b8f2114d5bf6c29 ] While loading fw crashdump in function fw_crash_buffer_show(), left bytes in one dma chunk was not checked, if copying size over it, overflow access will cause kernel panic. Signed-off-by: Junxiao Bi Acked-by: Sumit

[PATCH AUTOSEL 4.19 42/42] s390/dma: provide proper ARCH_ZONE_DMA_BITS value

2019-08-02 Thread Sasha Levin
From: Halil Pasic [ Upstream commit 1a2dcff881059dedc14fafc8a442664c8dbd60f1 ] On s390 ZONE_DMA is up to 2G, i.e. ARCH_ZONE_DMA_BITS should be 31 bits. The current value is 24 and makes __dma_direct_alloc_pages() take a wrong turn first (but __dma_direct_alloc_pages() recovers then). Let's

[PATCH AUTOSEL 4.14 09/30] x86/mm: Check for pfn instead of page in vmalloc_sync_one()

2019-08-02 Thread Sasha Levin
From: Joerg Roedel [ Upstream commit 51b75b5b563a2637f9d8dc5bd02a31b2ff9e5ea0 ] Do not require a struct page for the mapped memory location because it might not exist. This can happen when an ioremapped region is mapped with 2MB pages. Fixes: 5d72b4fba40ef ('x86, mm: support huge I/O mapping

[PATCH AUTOSEL 4.14 07/30] mac80211: don't warn about CW params when not using them

2019-08-02 Thread Sasha Levin
From: Brian Norris [ Upstream commit d2b3fe42bc629c2d4002f652b3abdfb2e72991c7 ] ieee80211_set_wmm_default() normally sets up the initial CW min/max for each queue, except that it skips doing this if the driver doesn't support ->conf_tx. We still end up calling drv_conf_tx() in some cases (e.g.,

[PATCH AUTOSEL 4.14 10/30] x86/mm: Sync also unmappings in vmalloc_sync_all()

2019-08-02 Thread Sasha Levin
From: Joerg Roedel [ Upstream commit 8e998fc24de47c55b47a887f6c95ab91acd4a720 ] With huge-page ioremap areas the unmappings also need to be synced between all page-tables. Otherwise it can cause data corruption when a region is unmapped and later re-used. Make the vmalloc_sync_one() function

[PATCH AUTOSEL 4.14 14/30] s390/qdio: add sanity checks to the fast-requeue path

2019-08-02 Thread Sasha Levin
From: Julian Wiedmann [ Upstream commit a6ec414a4dd529eeac5c3ea51c661daba3397108 ] If the device driver were to send out a full queue's worth of SBALs, current code would end up discovering the last of those SBALs as PRIMED and erroneously skip the SIGA-w. This immediately stalls the queue.

[PATCH AUTOSEL 4.14 21/30] drbd: dynamically allocate shash descriptor

2019-08-02 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 77ce56e2bfaa64127ae5e23ef136c0168b818777 ] Building with clang and KASAN, we get a warning about an overly large stack frame on 32-bit architectures: drivers/block/drbd/drbd_receiver.c:921:31: error: stack frame size of 1280 bytes in function

[PATCH AUTOSEL 4.14 15/30] ALSA: compress: Fix regression on compressed capture streams

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 4475f8c4ab7b248991a60d9c02808dbb813d6be8 ] A previous fix to the stop handling on compressed capture streams causes some knock on issues. The previous fix updated snd_compr_drain_notify to set the state back to PREPARED for capture streams. This causes

[PATCH AUTOSEL 4.14 18/30] ALSA: compress: Be more restrictive about when a drain is allowed

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 3b8179944cb0dd53e5223996966746cdc8a60657 ] Draining makes little sense in the situation of hardware overrun, as the hardware will have consumed all its available samples. Additionally, draining whilst the stream is paused would presumably get stuck as no

[PATCH AUTOSEL 4.14 13/30] cpufreq/pasemi: fix use-after-free in pas_cpufreq_cpu_init()

2019-08-02 Thread Sasha Levin
From: Wen Yang [ Upstream commit e0a12445d1cb186d875410d093a00d215bec6a89 ] The cpu variable is still being used in the of_get_property() call after the of_node_put() call, which may result in use-after-free. Fixes: a9acc26b75f6 ("cpufreq/pasemi: fix possible object reference leak")

[PATCH AUTOSEL 4.14 30/30] perf/core: Fix creating kernel counters for PMUs that override event->cpu

2019-08-02 Thread Sasha Levin
From: Leonard Crestez [ Upstream commit 4ce54af8b33d3e21ca935fc1b89b58cbba956051 ] Some hardware PMU drivers will override perf_event.cpu inside their event_init callback. This causes a lockdep splat when initialized through the kernel API: WARNING: CPU: 0 PID: 250 at

[PATCH AUTOSEL 4.9 04/22] hwmon: (nct6775) Fix register address and added missed tolerance for nct6106

2019-08-02 Thread Sasha Levin
From: Björn Gerhart [ Upstream commit f3d43e2e45fd9d44ba52d20debd12cd4ee9c89bf ] Fixed address of third NCT6106_REG_WEIGHT_DUTY_STEP, and added missed NCT6106_REG_TOLERANCE_H. Fixes: 6c009501ff200 ("hwmon: (nct6775) Add support for NCT6102D/6106D") Signed-off-by: Bjoern Gerhart Signed-off-by:

[PATCH AUTOSEL 4.9 05/22] x86/mm: Check for pfn instead of page in vmalloc_sync_one()

2019-08-02 Thread Sasha Levin
From: Joerg Roedel [ Upstream commit 51b75b5b563a2637f9d8dc5bd02a31b2ff9e5ea0 ] Do not require a struct page for the mapped memory location because it might not exist. This can happen when an ioremapped region is mapped with 2MB pages. Fixes: 5d72b4fba40ef ('x86, mm: support huge I/O mapping

[PATCH AUTOSEL 4.9 06/22] x86/mm: Sync also unmappings in vmalloc_sync_all()

2019-08-02 Thread Sasha Levin
From: Joerg Roedel [ Upstream commit 8e998fc24de47c55b47a887f6c95ab91acd4a720 ] With huge-page ioremap areas the unmappings also need to be synced between all page-tables. Otherwise it can cause data corruption when a region is unmapped and later re-used. Make the vmalloc_sync_one() function

[PATCH AUTOSEL 4.9 09/22] s390/qdio: add sanity checks to the fast-requeue path

2019-08-02 Thread Sasha Levin
From: Julian Wiedmann [ Upstream commit a6ec414a4dd529eeac5c3ea51c661daba3397108 ] If the device driver were to send out a full queue's worth of SBALs, current code would end up discovering the last of those SBALs as PRIMED and erroneously skip the SIGA-w. This immediately stalls the queue.

[PATCH AUTOSEL 4.9 13/22] ALSA: compress: Be more restrictive about when a drain is allowed

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 3b8179944cb0dd53e5223996966746cdc8a60657 ] Draining makes little sense in the situation of hardware overrun, as the hardware will have consumed all its available samples. Additionally, draining whilst the stream is paused would presumably get stuck as no

[PATCH AUTOSEL 4.9 11/22] ALSA: compress: Prevent bypasses of set_params

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 26c3f1542f5064310ad26794c09321780d00c57d ] Currently, whilst in SNDRV_PCM_STATE_OPEN it is possible to call snd_compr_stop, snd_compr_drain and snd_compr_partial_drain, which allow a transition to SNDRV_PCM_STATE_SETUP. The stream should only be able to

[PATCH AUTOSEL 4.9 15/22] drbd: dynamically allocate shash descriptor

2019-08-02 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 77ce56e2bfaa64127ae5e23ef136c0168b818777 ] Building with clang and KASAN, we get a warning about an overly large stack frame on 32-bit architectures: drivers/block/drbd/drbd_receiver.c:921:31: error: stack frame size of 1280 bytes in function

[PATCH AUTOSEL 4.9 12/22] ALSA: compress: Don't allow paritial drain operations on capture streams

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit a70ab8a8645083f3700814e757f2940a88b7ef88 ] Partial drain and next track are intended for gapless playback and don't really have an obvious interpretation for a capture stream, so makes sense to not allow those operations on capture streams. Signed-off-by:

[PATCH AUTOSEL 4.9 10/22] ALSA: compress: Fix regression on compressed capture streams

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 4475f8c4ab7b248991a60d9c02808dbb813d6be8 ] A previous fix to the stop handling on compressed capture streams causes some knock on issues. The previous fix updated snd_compr_drain_notify to set the state back to PREPARED for capture streams. This causes

Re: [PATCH v3 04/10] dt-bindings: mfd: Add compatible for the MediaTek MT6358 PMIC

2019-08-02 Thread Hsin-hsiung Wang
Hi Nicolas, On Tue, 2019-05-07 at 14:24 +0900, Nicolas Boichat wrote: > On Fri, May 3, 2019 at 6:34 PM Hsin-Hsiung Wang > wrote: > > ... > > This adds compatible for the MediaTek MT6358 PMIC. > > > > Acked-for-MFD-by: Lee Jones > > Signed-off-by: Hsin-Hsiung Wang > > --- > >

[PATCH AUTOSEL 4.9 07/22] drm/msm: stop abusing dma_map/unmap for cache

2019-08-02 Thread Sasha Levin
From: Rob Clark [ Upstream commit 0036bc73ccbe7e600a3468bf8e8879b122252274 ] Recently splats like this started showing up: WARNING: CPU: 4 PID: 251 at drivers/iommu/dma-iommu.c:451 __iommu_dma_unmap+0xb8/0xc0 Modules linked in: ath10k_snoc ath10k_core fuse msm ath mac80211 uvcvideo

[PATCH AUTOSEL 4.9 19/22] scsi: ibmvfc: fix WARN_ON during event pool release

2019-08-02 Thread Sasha Levin
From: Tyrel Datwyler [ Upstream commit 5578257ca0e21056821e6481bd534ba267b84e58 ] While removing an ibmvfc client adapter a WARN_ON like the following WARN_ON is seen in the kernel log: WARNING: CPU: 6 PID: 5421 at ./include/linux/dma-mapping.h:541 ibmvfc_free_event_pool+0x12c/0x1f0 [ibmvfc]

Re: [PATCH] mailmap: add entry for Jaegeuk Kim

2019-08-02 Thread Jonathan Corbet
On Fri, 2 Aug 2019 09:21:35 +0800 Chao Yu wrote: > Add entry to connect all Jaegeuk's email addresses. > > Acked-by: Jaegeuk Kim > Signed-off-by: Chao Yu > --- > .mailmap | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/.mailmap b/.mailmap > index 477debe3d960..70d41c86e644

[PATCH AUTOSEL 4.4 04/17] hwmon: (nct6775) Fix register address and added missed tolerance for nct6106

2019-08-02 Thread Sasha Levin
From: Björn Gerhart [ Upstream commit f3d43e2e45fd9d44ba52d20debd12cd4ee9c89bf ] Fixed address of third NCT6106_REG_WEIGHT_DUTY_STEP, and added missed NCT6106_REG_TOLERANCE_H. Fixes: 6c009501ff200 ("hwmon: (nct6775) Add support for NCT6102D/6106D") Signed-off-by: Bjoern Gerhart Signed-off-by:

[PATCH AUTOSEL 4.4 06/17] x86/mm: Sync also unmappings in vmalloc_sync_all()

2019-08-02 Thread Sasha Levin
From: Joerg Roedel [ Upstream commit 8e998fc24de47c55b47a887f6c95ab91acd4a720 ] With huge-page ioremap areas the unmappings also need to be synced between all page-tables. Otherwise it can cause data corruption when a region is unmapped and later re-used. Make the vmalloc_sync_one() function

[PATCH AUTOSEL 4.4 05/17] x86/mm: Check for pfn instead of page in vmalloc_sync_one()

2019-08-02 Thread Sasha Levin
From: Joerg Roedel [ Upstream commit 51b75b5b563a2637f9d8dc5bd02a31b2ff9e5ea0 ] Do not require a struct page for the mapped memory location because it might not exist. This can happen when an ioremapped region is mapped with 2MB pages. Fixes: 5d72b4fba40ef ('x86, mm: support huge I/O mapping

[PATCH AUTOSEL 4.4 13/17] ARM: davinci: fix sleep.S build error on ARMv4

2019-08-02 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit d64b212ea960db4276a1d8372bd98cb861dfcbb0 ] When building a multiplatform kernel that includes armv4 support, the default target CPU does not support the blx instruction, which leads to a build failure: arch/arm/mach-davinci/sleep.S: Assembler messages:

[PATCH AUTOSEL 4.4 10/17] ALSA: compress: Prevent bypasses of set_params

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 26c3f1542f5064310ad26794c09321780d00c57d ] Currently, whilst in SNDRV_PCM_STATE_OPEN it is possible to call snd_compr_stop, snd_compr_drain and snd_compr_partial_drain, which allow a transition to SNDRV_PCM_STATE_SETUP. The stream should only be able to

[PATCH AUTOSEL 4.4 17/17] perf/core: Fix creating kernel counters for PMUs that override event->cpu

2019-08-02 Thread Sasha Levin
From: Leonard Crestez [ Upstream commit 4ce54af8b33d3e21ca935fc1b89b58cbba956051 ] Some hardware PMU drivers will override perf_event.cpu inside their event_init callback. This causes a lockdep splat when initialized through the kernel API: WARNING: CPU: 0 PID: 250 at

[PATCH AUTOSEL 4.4 11/17] ALSA: compress: Be more restrictive about when a drain is allowed

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 3b8179944cb0dd53e5223996966746cdc8a60657 ] Draining makes little sense in the situation of hardware overrun, as the hardware will have consumed all its available samples. Additionally, draining whilst the stream is paused would presumably get stuck as no

[PATCH AUTOSEL 4.4 14/17] scsi: megaraid_sas: fix panic on loading firmware crashdump

2019-08-02 Thread Sasha Levin
From: Junxiao Bi [ Upstream commit 3b5f307ef3cb5022bfe3c8ca5b8f2114d5bf6c29 ] While loading fw crashdump in function fw_crash_buffer_show(), left bytes in one dma chunk was not checked, if copying size over it, overflow access will cause kernel panic. Signed-off-by: Junxiao Bi Acked-by: Sumit

[PATCH AUTOSEL 4.4 15/17] scsi: ibmvfc: fix WARN_ON during event pool release

2019-08-02 Thread Sasha Levin
From: Tyrel Datwyler [ Upstream commit 5578257ca0e21056821e6481bd534ba267b84e58 ] While removing an ibmvfc client adapter a WARN_ON like the following WARN_ON is seen in the kernel log: WARNING: CPU: 6 PID: 5421 at ./include/linux/dma-mapping.h:541 ibmvfc_free_event_pool+0x12c/0x1f0 [ibmvfc]

[PATCH AUTOSEL 4.4 16/17] tty/ldsem, locking/rwsem: Add missing ACQUIRE to read_failed sleep loop

2019-08-02 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 952041a8639a7a3a73a2b6573cb8aa8518bc39f8 ] While reviewing rwsem down_slowpath, Will noticed ldsem had a copy of a bug we just found for rwsem. X = 0; CPU0 CPU1 rwsem_down_read() for (;;) {

[PATCH AUTOSEL 4.4 07/17] cpufreq/pasemi: fix use-after-free in pas_cpufreq_cpu_init()

2019-08-02 Thread Sasha Levin
From: Wen Yang [ Upstream commit e0a12445d1cb186d875410d093a00d215bec6a89 ] The cpu variable is still being used in the of_get_property() call after the of_node_put() call, which may result in use-after-free. Fixes: a9acc26b75f6 ("cpufreq/pasemi: fix possible object reference leak")

[PATCH AUTOSEL 4.4 08/17] s390/qdio: add sanity checks to the fast-requeue path

2019-08-02 Thread Sasha Levin
From: Julian Wiedmann [ Upstream commit a6ec414a4dd529eeac5c3ea51c661daba3397108 ] If the device driver were to send out a full queue's worth of SBALs, current code would end up discovering the last of those SBALs as PRIMED and erroneously skip the SIGA-w. This immediately stalls the queue.

[PATCH AUTOSEL 4.4 09/17] ALSA: compress: Fix regression on compressed capture streams

2019-08-02 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 4475f8c4ab7b248991a60d9c02808dbb813d6be8 ] A previous fix to the stop handling on compressed capture streams causes some knock on issues. The previous fix updated snd_compr_drain_notify to set the state back to PREPARED for capture streams. This causes

[PATCH AUTOSEL 4.4 12/17] perf probe: Avoid calling freeing routine multiple times for same pointer

2019-08-02 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit d95daf5accf4a72005daa13fbb1d1bd8709f2861 ] When perf_add_probe_events() we call cleanup_perf_probe_events() for the pev pointer it receives, then, as part of handling this failure the main 'perf probe' goes on and calls cleanup_params() and that

[PATCH AUTOSEL 4.4 02/17] iscsi_ibft: make ISCSI_IBFT dependson ACPI instead of ISCSI_IBFT_FIND

2019-08-02 Thread Sasha Levin
From: Thomas Tai [ Upstream commit 94bccc34071094c165c79b515d21b63c78f7e968 ] iscsi_ibft can use ACPI to find the iBFT entry during bootup, currently, ISCSI_IBFT depends on ISCSI_IBFT_FIND which is a X86 legacy way to find the iBFT by searching through the low memory. This patch changes the

[PATCH AUTOSEL 4.9 22/22] perf/core: Fix creating kernel counters for PMUs that override event->cpu

2019-08-02 Thread Sasha Levin
From: Leonard Crestez [ Upstream commit 4ce54af8b33d3e21ca935fc1b89b58cbba956051 ] Some hardware PMU drivers will override perf_event.cpu inside their event_init callback. This causes a lockdep splat when initialized through the kernel API: WARNING: CPU: 0 PID: 250 at

[PATCH AUTOSEL 4.4 03/17] mac80211: don't warn about CW params when not using them

2019-08-02 Thread Sasha Levin
From: Brian Norris [ Upstream commit d2b3fe42bc629c2d4002f652b3abdfb2e72991c7 ] ieee80211_set_wmm_default() normally sets up the initial CW min/max for each queue, except that it skips doing this if the driver doesn't support ->conf_tx. We still end up calling drv_conf_tx() in some cases (e.g.,

[PATCH AUTOSEL 4.9 21/22] tty/ldsem, locking/rwsem: Add missing ACQUIRE to read_failed sleep loop

2019-08-02 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 952041a8639a7a3a73a2b6573cb8aa8518bc39f8 ] While reviewing rwsem down_slowpath, Will noticed ldsem had a copy of a bug we just found for rwsem. X = 0; CPU0 CPU1 rwsem_down_read() for (;;) {

[PATCH AUTOSEL 4.4 01/17] netfilter: nfnetlink: avoid deadlock due to synchronous request_module

2019-08-02 Thread Sasha Levin
From: Florian Westphal [ Upstream commit 1b0890cd60829bd51455dc5ad689ed58c4408227 ] Thomas and Juliana report a deadlock when running: (rmmod nf_conntrack_netlink/xfrm_user) conntrack -e NEW -E & modprobe -v xfrm_user They provided following analysis: conntrack -e NEW -E

[PATCH AUTOSEL 4.9 14/22] perf probe: Avoid calling freeing routine multiple times for same pointer

2019-08-02 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit d95daf5accf4a72005daa13fbb1d1bd8709f2861 ] When perf_add_probe_events() we call cleanup_perf_probe_events() for the pev pointer it receives, then, as part of handling this failure the main 'perf probe' goes on and calls cleanup_params() and that

[PATCH AUTOSEL 4.9 20/22] scsi: scsi_dh_alua: always use a 2 second delay before retrying RTPG

2019-08-02 Thread Sasha Levin
From: Hannes Reinecke [ Upstream commit 20122994e38aef0ae50555884d287adde6641c94 ] Retrying immediately after we've received a 'transitioning' sense code is pretty much pointless, we should always use a delay before retrying. So ensure the default delay is applied before retrying.

[PATCH AUTOSEL 4.9 18/22] scsi: megaraid_sas: fix panic on loading firmware crashdump

2019-08-02 Thread Sasha Levin
From: Junxiao Bi [ Upstream commit 3b5f307ef3cb5022bfe3c8ca5b8f2114d5bf6c29 ] While loading fw crashdump in function fw_crash_buffer_show(), left bytes in one dma chunk was not checked, if copying size over it, overflow access will cause kernel panic. Signed-off-by: Junxiao Bi Acked-by: Sumit

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