[GIT PULL for-4.4 22/25] uapi: fix linux/mroute6.h userspace compilation errors

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: "Dmitry V. Levin" [ Upstream commit 72aa107df6a275cf03359934ca5799a2be7a1bf7 ] Include to fix the following linux/mroute6.h userspace compilation errors: /usr/include/linux/mroute6.h:80:22: error: field 'mf6cc_origin' has incomplete type struct sockaddr_in6 mf6cc_origin; /* Origin of

[GIT PULL for-4.9 40/48] target/iscsi: Fix unsolicited data seq_end_offset calculation

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Varun Prakash [ Upstream commit 4d65491c269729a1e3b375c45e73213f49103d33 ] In case of unsolicited data for the first sequence seq_end_offset must be set to minimum of total data length and FirstBurstLength, so do not add cmd->write_data_done to the min of total data length and FirstBurstLe

[GIT PULL for-4.9 46/48] btmrvl: avoid double-disable_irq() race

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Jeffy Chen [ Upstream commit 9af02d86e11dc409e5c3de46e81c0a492ba58905 ] It's much the same as what we did for mwifiex in: b9da4d2 mwifiex: avoid double-disable_irq() race "We have a race where the wakeup IRQ might be in flight while we're calling mwifiex_disable_wake() from resume(). This

Re: [PATCH 4.9 000/105] 4.9.55-stable review

2017-10-10 Thread Shuah Khan
On 10/10/2017 01:49 PM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.55 release. > There are 105 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 s

Re: [PATCH] Makefile: enable dochelp run from main make level

2017-10-10 Thread Randy Dunlap
On 10/10/17 17:54, Masahiro Yamada wrote: > 2017-10-11 5:09 GMT+09:00 Shuah Khan : >> On 10/07/2017 05:24 AM, Masahiro Yamada wrote: >>> 2017-10-03 8:44 GMT+09:00 Shuah Khan : Change to enable dochelp run from main make level to make it easier to use it. Signed-off-by: Shuah Kha

[GIT PULL for-4.4 08/25] iio: adc: xilinx: Fix error handling

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Christophe JAILLET [ Upstream commit ca1c39ef76376b67303d01f94fe98bb68bb3861a ] Reorder error handling labels in order to match the way resources have been allocated. Signed-off-by: Christophe JAILLET Acked-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron Signed-off-by: Sasha Lev

[GIT PULL for-4.4 04/25] mac80211_hwsim: check HWSIM_ATTR_RADIO_NAME length

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Johannes Berg [ Upstream commit ff4dd73dd2b4806419f8ff65cbce11d5019548d0 ] Unfortunately, the nla policy was defined to have HWSIM_ATTR_RADIO_NAME as an NLA_STRING, rather than NLA_NUL_STRING, so we can't use it as a NUL-terminated string in the kernel. Rather than break the API, kasprint

Re: mmotm 2016-08-02-15-53 uploaded

2017-10-10 Thread Changwei Ge
Hi Andrew and Vitaly, I do agree that patch ee8f7fcbe638 ("ocfs2/dlm: continue to purge recovery lockres when recovery master goes down", 2016-08-02) introduced an issue. It makes DLM recovery can't pick up a new master for an existed lock resource whose owner died seconds ago. But this patch

[GIT PULL for-4.9 37/48] uapi: fix linux/mroute6.h userspace compilation errors

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: "Dmitry V. Levin" [ Upstream commit 72aa107df6a275cf03359934ca5799a2be7a1bf7 ] Include to fix the following linux/mroute6.h userspace compilation errors: /usr/include/linux/mroute6.h:80:22: error: field 'mf6cc_origin' has incomplete type struct sockaddr_in6 mf6cc_origin; /* Origin of

[GIT PULL for-4.9 38/48] IB/hfi1: Use static CTLE with Preset 6 for integrated HFIs

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Easwar Hariharan [ Upstream commit 39e2afa8d042a53d855137d4c5a689a6f5492b39 ] After extended testing, it was found that the previous PCIe Gen 3 recipe, which used adaptive CTLE with Preset 4, could cause an NMI/Surprise Link Down in about 1 in 100 to 1 in 1000 power cycles on some platform

[GIT PULL for-4.4 05/25] mac80211: fix power saving clients handling in iwlwifi

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Emmanuel Grumbach [ Upstream commit d98937f4ea713d21e0fcc345919f86c877dd8d6f ] iwlwifi now supports RSS and can't let mac80211 track the PS state based on the Rx frames since they can come out of order. iwlwifi is now advertising AP_LINK_PS, and uses explicit notifications to teach mac8021

[GIT PULL for-4.4 10/25] f2fs: do not wait for writeback in write_begin

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Jaegeuk Kim [ Upstream commit 86d54795c94532075d862aa0a79f0c981dab4bdd ] Otherwise we can get livelock like below. [79880.428136] dbench D0 18405 18404 0x [79880.428139] Call Trace: [79880.428142] __schedule+0x219/0x6b0 [79880.428144] schedule+0x36/0x80 [79880.4281

[GIT PULL for-4.9 48/48] cpufreq: CPPC: add ACPI_PROCESSOR dependency

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Arnd Bergmann [ Upstream commit a578884fa0d2768f13d37c6591a9e1ed600482d3 ] Without the Kconfig dependency, we can get this warning: warning: ACPI_CPPC_CPUFREQ selects ACPI_CPPC_LIB which has unmet direct dependencies (ACPI && ACPI_PROCESSOR) Fixes: 5477fb3bd1e8 (ACPI / CPPC: Add a CPUFr

[GIT PULL for-4.9 36/48] uapi: fix linux/rds.h userspace compilation errors

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: "Dmitry V. Levin" [ Upstream commit feb0869d90e51ce8b6fd8a46588465b1b5a26d09 ] Consistently use types from linux/types.h to fix the following linux/rds.h userspace compilation errors: /usr/include/linux/rds.h:106:2: error: unknown type name 'uint8_t' uint8_t name[32]; /usr/include/linux

[GIT PULL for-4.9 35/48] ceph: clean up unsafe d_parent accesses in build_dentry_path

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Jeff Layton [ Upstream commit c6b0b656ca24ede6657abb4a2cd910fa9c1879ba ] While we hold a reference to the dentry when build_dentry_path is called, we could end up racing with a rename that changes d_parent. Handle that situation correctly, by using the rcu_read_lock to ensure that the pare

[GIT PULL for-4.9 34/48] ceph: fix bogus endianness change in ceph_ioctl_set_layout

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Jeff Layton [ Upstream commit 24c149ad6914d349d8b64749f20f3f8ea5031fe0 ] sparse says: fs/ceph/ioctl.c:100:28: warning: cast to restricted __le64 preferred_osd is a __s64 so we don't need to do any conversion. Also, just remove the cast in ceph_ioctl_get_layout as it's not needed. Si

[GIT PULL for-4.4 06/25] net/mlx4_en: fix overflow in mlx4_en_init_timestamp()

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Eric Dumazet [ Upstream commit 47d3a07528ecbbccf53bc4390d70b4e3d1c04fcf ] The cited commit makes a great job of finding optimal shift/multiplier values assuming a 10 seconds wrap around, but forgot to change the overflow_period computation. It overflows in cyclecounter_cyc2ns(), and the f

[GIT PULL for-4.9 45/48] regulator: core: Resolve supplies before disabling unused regulators

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Javier Martinez Canillas [ Upstream commit 3827b64dba27ebadb4faf51f2c91143e01ba1f6d ] After commit 66d228a2bf03 ("regulator: core: Don't use regulators as supplies until the parent is bound"), input supplies aren't resolved if the input supplies parent device has not been bound. This preve

[GIT PULL for-4.9 32/48] i2c: at91: ensure state is restored after suspending

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Alexandre Belloni [ Upstream commit e3ccc921b7d8fd1fcd10a00720e09823d8078666 ] When going to suspend, the I2C registers may be lost because the power to VDDcore is cut. Restore them when resuming. Signed-off-by: Alexandre Belloni Acked-by: Ludovic Desroches Signed-off-by: Wolfram Sang

[GIT PULL for-4.4 03/25] irqchip/crossbar: Fix incorrect type of local variables

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Franck Demathieu [ Upstream commit b28ace12661fbcfd90959c1e84ff5a85113a82a1 ] The max and entry variables are unsigned according to the dt-bindings. Fix following 3 sparse issues (-Wtypesign): drivers/irqchip/irq-crossbar.c:222:52: warning: incorrect type in argument 3 (different signe

[GIT PULL for-4.9 44/48] drm/nouveau/gr/gf100-: fix ccache error logging

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Ben Skeggs [ Upstream commit 1894054dc1b6e4395048b2c0f28832a3f4320fd3 ] Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin --- drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf10

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-10 Thread Byungchul Park
On Wed, Oct 11, 2017 at 09:56:05AM +0900, Byungchul Park wrote: > Thank you very much for explaining it in detail. > > But let's shift a viewpoint. Precisely, I didn't want to work on locks > but *waiters* becasue dependancies causing deadlocks only can be created > by waiters - nevertheless I hav

[PATCH] of: overlay: move resolve phandles into of_overlay_apply()

2017-10-10 Thread frowand . list
From: Frank Rowand Move more code into of_overlay_apply() so that it does not have to be duplicated by each caller of of_overlay_apply(). The test in of_resolve_phandles() that the overlay tree is detached is temporarily disabled so that old style overlay unittests do not fail. Signed-off-by: F

[GIT PULL for-4.9 31/48] qed: Read queue state before releasing buffer

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Ram Amrani [ Upstream commit c5212b943d4b52a7d9e0d9f747e7ad59c50d31f1 ] Currently the state is read only after the buffers are relesed. Signed-off-by: Ram Amrani Signed-off-by: Yuval Mintz Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qed/q

[GIT PULL for-4.9 33/48] ceph: don't update_dentry_lease unless we actually got one

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Jeff Layton [ Upstream commit 80d025ffede88969f6adf7266fbdedfd5641148a ] This if block updates the dentry lease even in the case where the MDS didn't grant one. Signed-off-by: Jeff Layton Reviewed-by: Yan, Zheng Signed-off-by: Ilya Dryomov Signed-off-by: Sasha Levin --- fs/ceph/inode

[GIT PULL for-4.4 09/25] Btrfs: send, fix failure to rename top level inode due to name collision

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Robbie Ko [ Upstream commit 4dd9920d991745c4a16f53a8f615f706fbe4b3f7 ] Under certain situations, an incremental send operation can fail due to a premature attempt to create a new top level inode (a direct child of the subvolume/snapshot root) whose name collides with another inode that was

[GIT PULL for-4.9 47/48] EDAC, mce_amd: Print IPID and Syndrome on a separate line

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Yazen Ghannam [ Upstream commit 75bf2f6478cab9b0c1d7f5f674a765d1e2ad530e ] Currently, the IPID and Syndrome are printed on the same line as the Address. There are cases when we can have a valid Syndrome but not a valid Address. For example, the MCA_SYND register can be used to hold more d

[GIT PULL for-4.4 07/25] netfilter: nf_ct_expect: Change __nf_ct_expect_check() return value.

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Jarno Rajahalme [ Upstream commit 4b86c459c7bee3acaf92f0e2b4c6ac803eaa1a58 ] Commit 4dee62b1b9b4 ("netfilter: nf_ct_expect: nf_ct_expect_insert() returns void") inadvertently changed the successful return value of nf_ct_expect_related_report() from 0 to 1 due to __nf_ct_expect_check() retu

[GIT PULL for-4.9 12/48] netfilter: nf_ct_expect: Change __nf_ct_expect_check() return value.

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Jarno Rajahalme [ Upstream commit 4b86c459c7bee3acaf92f0e2b4c6ac803eaa1a58 ] Commit 4dee62b1b9b4 ("netfilter: nf_ct_expect: nf_ct_expect_insert() returns void") inadvertently changed the successful return value of nf_ct_expect_related_report() from 0 to 1 due to __nf_ct_expect_check() retu

[GIT PULL for-4.9 17/48] f2fs: do not wait for writeback in write_begin

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Jaegeuk Kim [ Upstream commit 86d54795c94532075d862aa0a79f0c981dab4bdd ] Otherwise we can get livelock like below. [79880.428136] dbench D0 18405 18404 0x [79880.428139] Call Trace: [79880.428142] __schedule+0x219/0x6b0 [79880.428144] schedule+0x36/0x80 [79880.4281

[GIT PULL for-4.9 19/48] sparc64: Migrate hvcons irq to panicked cpu

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Vijay Kumar [ Upstream commit 7dd4fcf5b70694dc961eb6b954673e4fc9730dbd ] On panic, all other CPUs are stopped except the one which had hit panic. To keep console alive, we need to migrate hvcons irq to panicked CPU. Signed-off-by: Vijay Kumar Signed-off-by: David S. Miller Signed-off-by

[GIT PULL for-4.9 27/48] drm/amdgpu: refuse to reserve io mem for split VRAM buffers

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Nicolai Hähnle [ Upstream commit 4694335dad7357e9b3d7822ab13049014d74d8b0 ] When the fast blit path fails while attempting to move a buffer from RAM to VRAM, we fall back to a CPU-based memcpy that cannot handle split VRAM buffers. Instead of crashing, simply fail the buffer move. Ideally

[GIT PULL for-4.9 26/48] ASoC: mediatek: add I2C dependency for CS42XX8

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Arnd Bergmann [ Upstream commit 72cedf599fcebfd6cd2550274d7855838068d28c ] We should not select drivers that depend on I2C when that is disabled, as it results in a build error: warning: (SND_SOC_MT2701_CS42448) selects SND_SOC_CS42XX8_I2C which has unmet direct dependencies (SOUND && !M

[GIT PULL for-4.9 24/48] slub: do not merge cache if slub_debug contains a never-merge flag

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Grygorii Maistrenko [ Upstream commit c6e28895a4372992961888ffaadc9efc643b5bfe ] In case CONFIG_SLUB_DEBUG_ON=n, find_mergeable() gets debug features from commandline but never checks if there are features from the SLAB_NEVER_MERGE set. As a result selected by slub_debug caches are always

Re: [PATCH] Makefile: enable dochelp run from main make level

2017-10-10 Thread Shuah Khan
On 10/10/2017 06:58 PM, Randy Dunlap wrote: > On 10/10/17 17:54, Masahiro Yamada wrote: >> 2017-10-11 5:09 GMT+09:00 Shuah Khan : >>> On 10/07/2017 05:24 AM, Masahiro Yamada wrote: 2017-10-03 8:44 GMT+09:00 Shuah Khan : > Change to enable dochelp run from main make level to make it easier

[GIT PULL for-4.9 25/48] scsi: scsi_dh_emc: return success in clariion_std_inquiry()

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Dan Carpenter [ Upstream commit 4d7d39a18b8b81511f0b893b7d2203790bf8a58b ] We accidentally return an uninitialized variable on success. Fixes: b6ff1b14cdf4 ("[SCSI] scsi_dh: Update EMC handler") Signed-off-by: Dan Carpenter Reviewed-by: Hannes Reinecke Signed-off-by: Martin K. Petersen

[GIT PULL for-4.9 28/48] net: mvpp2: release reference to txq_cpu[] entry after unmapping

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Thomas Petazzoni [ Upstream commit 36fb7435b6ac4d288a2d4deea8934f9456ab46b6 ] The mvpp2_txq_bufs_free() function is called upon TX completion to DMA unmap TX buffers, and free the corresponding SKBs. It gets the references to the SKB to free and the DMA buffer to unmap from a per-CPU txq_p

[GIT PULL for-4.9 13/48] iio: adc: xilinx: Fix error handling

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Christophe JAILLET [ Upstream commit ca1c39ef76376b67303d01f94fe98bb68bb3861a ] Reorder error handling labels in order to match the way resources have been allocated. Signed-off-by: Christophe JAILLET Acked-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron Signed-off-by: Sasha Lev

[GIT PULL for-4.9 23/48] ocfs2/dlmglue: prepare tracking logic to avoid recursive cluster lock

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Eric Ren [ Upstream commit 439a36b8ef38657f765b80b775e2885338d72451 ] We are in the situation that we have to avoid recursive cluster locking, but there is no way to check if a cluster lock has been taken by a precess already. Mostly, we can avoid recursive locking by writing code careful

[GIT PULL for-4.9 21/48] crypto: xts - Add ECB dependency

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Milan Broz [ Upstream commit 12cb3a1c4184f891d965d1f39f8cfcc9ef617647 ] Since the commit f1c131b45410a202eb45cc55980a7a9e4e4b4f40 crypto: xts - Convert to skcipher the XTS mode is based on ECB, so the mode must select ECB otherwise it can fail to initialize. Signed-off-by: Milan Bro

[GIT PULL for-4.9 08/48] qed: Don't use attention PTT for configuring BW

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: "Mintz, Yuval" [ Upstream commit 6f437d431930ff86e4a971d29321951faadb97c7 ] Commit 653d2ffd6405 ("qed*: Fix link indication race") introduced another race - one of the inner functions called from the link-change flow is explicitly using the slowpath context dedicated PTT instead of gaining

[GIT PULL for-4.9 07/48] ALSA: hda: Add Geminilake HDMI codec ID

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Vinod Koul [ Upstream commit 126cfa2f5e15ae2ca7f70be71b07e6cd8d2b44d1 ] Geminilake HDMI codec 0x280d is similar to previous platforms, so add it with similar ops as previous. Signed-off-by: Senthilnathan Veppur Signed-off-by: Vinod Koul Signed-off-by: Takashi Iwai Signed-off-by: Sasha

RE: [PATCH net] driver: e1000: fix race condition between e1000_down() and e1000_watchdog

2017-10-10 Thread Brown, Aaron F
> From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of Vincenzo Maffione > Sent: Saturday, September 16, 2017 9:00 AM > To: Kirsher, Jeffrey T > Cc: intel-wired-...@lists.osuosl.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; Vincenzo Maffione > S

[GIT PULL for-4.9 29/48] qede: Prevent index problems in loopback test

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Sudarsana Reddy Kalluru [ Upstream commit afe981d664aeeebc8d1bcbd7d2070b5432edaecb ] Driver currently utilizes the same loop variable in two nested loops. Signed-off-by: Sudarsana Reddy Kalluru Signed-off-by: Yuval Mintz Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- d

[GIT PULL for-4.9 10/48] net/mlx4_en: fix overflow in mlx4_en_init_timestamp()

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Eric Dumazet [ Upstream commit 47d3a07528ecbbccf53bc4390d70b4e3d1c04fcf ] The cited commit makes a great job of finding optimal shift/multiplier values assuming a 10 seconds wrap around, but forgot to change the overflow_period computation. It overflows in cyclecounter_cyc2ns(), and the f

[GIT PULL for-4.9 11/48] staging: vchiq_2835_arm: Make cache-line-size a required DT property

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Michael Zoran [ Upstream commit 6cf1bf636a067eb308cb3a8322b9d6b1844a075d ] The original github source allowed for the cache-line-size property to be missing. Since recent firmwares also require this property, it makes sense to always require it in the driver as well. If the cache-line-si

[GIT PULL for-4.9 01/48] xen-netback: Use GFP_ATOMIC to allocate hash

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Anoob Soman [ Upstream commit 9f674e48c13dcbc31ac903433727837795b81efe ] Allocation of new_hash, inside xenvif_new_hash(), always happen in softirq context, so use GFP_ATOMIC instead of GFP_KERNEL for new hash allocation. Signed-off-by: Anoob Soman Signed-off-by: David S. Miller Signed-

[GIT PULL for-4.9 14/48] f2fs: do SSR for data when there is enough free space

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Yunlong Song [ Upstream commit 035e97adab26c1121cedaeb9bd04cf48a8e8cf51 ] In allocate_segment_by_default(), need_SSR() already detected it's time to do SSR. So, let's try to find victims for data segments more aggressively in time. Signed-off-by: Yunlong Song Signed-off-by: Jaegeuk Kim

[GIT PULL for-4.9 03/48] watchdog: kempld: fix gcc-4.3 build

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Arnd Bergmann [ Upstream commit 3736d4eb6af37492aeded7fec0072dedd959c842 ] gcc-4.3 can't decide whether the constant value in kempld_prescaler[PRESCALER_21] is built-time constant or not, and gets confused by the logic in do_div(): drivers/watchdog/kempld_wdt.o: In function `kempld_wdt_se

[GIT PULL for-4.9 05/48] initramfs: finish fput() before accessing any binary from initramfs

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Lokesh Vutla [ Upstream commit 08865514805d2de8e7002fa8149c5de3e391f412 ] Commit 4a9d4b024a31 ("switch fput to task_work_add") implements a schedule_work() for completing fput(), but did not guarantee calling __fput() after unpacking initramfs. Because of this, there is a possibility that

[GIT PULL for-4.9 06/48] mac80211_hwsim: check HWSIM_ATTR_RADIO_NAME length

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Johannes Berg [ Upstream commit ff4dd73dd2b4806419f8ff65cbce11d5019548d0 ] Unfortunately, the nla policy was defined to have HWSIM_ATTR_RADIO_NAME as an NLA_STRING, rather than NLA_NUL_STRING, so we can't use it as a NUL-terminated string in the kernel. Rather than break the API, kasprint

[GIT PULL for-4.9 15/48] sched/fair: Update rq clock before changing a task's CPU affinity

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Wanpeng Li [ Upstream commit a499c3ead88ccf147fc50689e85a530ad923ce36 ] This is triggered during boot when CONFIG_SCHED_DEBUG is enabled: [ cut here ] WARNING: CPU: 6 PID: 81 at kernel/sched/sched.h:812 set_next_entity+0x11d/0x380 rq->clock_update_flags < RQCF_A

[GIT PULL for-4.9 09/48] mac80211: fix power saving clients handling in iwlwifi

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Emmanuel Grumbach [ Upstream commit d98937f4ea713d21e0fcc345919f86c877dd8d6f ] iwlwifi now supports RSS and can't let mac80211 track the PS state based on the Rx frames since they can come out of order. iwlwifi is now advertising AP_LINK_PS, and uses explicit notifications to teach mac8021

[GIT PULL for-4.9 16/48] Btrfs: send, fix failure to rename top level inode due to name collision

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Robbie Ko [ Upstream commit 4dd9920d991745c4a16f53a8f615f706fbe4b3f7 ] Under certain situations, an incremental send operation can fail due to a premature attempt to create a new top level inode (a direct child of the subvolume/snapshot root) whose name collides with another inode that was

[GIT PULL for-4.9 04/48] irqchip/crossbar: Fix incorrect type of local variables

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Franck Demathieu [ Upstream commit b28ace12661fbcfd90959c1e84ff5a85113a82a1 ] The max and entry variables are unsigned according to the dt-bindings. Fix following 3 sparse issues (-Wtypesign): drivers/irqchip/irq-crossbar.c:222:52: warning: incorrect type in argument 3 (different signe

Re: [PATCH -mm] mm, swap: Use page-cluster as max window of VMA based swap readahead

2017-10-10 Thread Huang, Ying
Minchan Kim writes: > On Tue, Oct 10, 2017 at 04:50:10PM +0800, Huang, Ying wrote: >> Minchan Kim writes: >> >> > On Tue, Oct 10, 2017 at 02:08:55PM +0800, Huang, Ying wrote: >> >> From: Huang Ying >> >> >> >> When the VMA based swap readahead was introduced, a new knob >> >> >> >> /sys/ke

[GIT PULL for-4.9 18/48] md/linear: shutup lockdep warnning

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Shaohua Li [ Upstream commit d939cdfde34f50b95254b375f498447c82190b3e ] Commit 03a9e24(md linear: fix a race between linear_add() and linear_congested()) introduces the warnning. Acked-by: Coly Li Signed-off-by: Shaohua Li Signed-off-by: Sasha Levin --- drivers/md/linear.c | 3 ++- 1

[PATCH 1/3] drm: Widen vblank UAPI to 64 bits. Change vblank time to ktime_t [v2]

2017-10-10 Thread Keith Packard
This modifies the datatypes used by the vblank code to provide both 64 bits of vblank count and switch to using ktime_t for timestamps to increase resolution from microseconds to nanoseconds. The driver interfaces have been left using 32 bits of vblank count; all of the code necessary to widen tha

[GIT PULL for-4.9 20/48] net/mlx4_core: Fix VF overwrite of module param which disables DMFS on new probed PFs

2017-10-10 Thread Levin, Alexander (Sasha Levin)
From: Majd Dibbiny [ Upstream commit 95f1ba9a24af9769f6e20dfe9a77c863f253f311 ] In the VF driver, module parameter mlx4_log_num_mgm_entry_size was mistakenly overwritten -- and in a manner which overrode the device-managed flow steering option encoded in the parameter. log_num_mgm_entry_size is

[PATCH 2/3] drm: Reorganize drm_pending_event to support future event types [v2]

2017-10-10 Thread Keith Packard
Place drm_event_vblank in a new union that includes that and a bare drm_event structure. This will allow new members of that union to be added in the future without changing code related to the existing vbl event type. Assignments to the crtc_id field are now done when the event is allocated, rath

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-10 Thread Byungchul Park
On Tue, Oct 10, 2017 at 08:14:09PM +0200, Peter Zijlstra wrote: > On Tue, Oct 10, 2017 at 09:56:26AM -0700, Linus Torvalds wrote: > > > So I think the best model would be something like this: > > > > - T1: > > mutex_lock(&lock) > > ... > > mutex_transfer(&lock) > > > >

Re: [PATCH v5 1/2] pid: Replace pid bitmap implementation with IDR API

2017-10-10 Thread Rik van Riel
On Tue, 2017-10-10 at 19:22 -0400, Gargi Sharma wrote: > This patch replaces the current bitmap implemetation for > Process ID allocation. Functions that are no longer required, > for example, free_pidmap(), alloc_pidmap(), etc. are removed. > The rest of the functions are modified to use the IDR A

Re: [PATCH v4 05/12] mmc: mediatek: add pad_tune0 support

2017-10-10 Thread Chaotian Jing
On Tue, 2017-10-10 at 17:57 +0100, Julien Thierry wrote: > Hi, > > On 10/10/17 10:30, Chaotian Jing wrote: > > from mt2701, the register of PAD_TUNE has been phased out, > > while there is a new register of PAD_TUNE0 > > > > Signed-off-by: Chaotian Jing > > --- > > drivers/mmc/host/mtk-sd.c |

BUG: KASAN: global-out-of-bounds in strscpy+0x807/0x970

2017-10-10 Thread Jakub Kicinski
I'm hitting this on sysctl -a with net-next (4.14-rc4). I saw that seccomp_actions_logged_handler was introduced not-so-long-ago by Tyler, is there a fix for this? [ 753.503760] BUG: KASAN: global-out-of-bounds in strscpy+0x807/0x970 [ 753.510892] Read of size 8 at addr a96b97c8 by task

Re: [PATCH 09/12] of: overlay: avoid race condition between applying multiple overlays

2017-10-10 Thread Frank Rowand
On 10/10/17 14:06, Rob Herring wrote: > On Tue, Oct 10, 2017 at 2:39 PM, Frank Rowand wrote: < snip > > > AFAICT, I don't think anything between of_resolve_phandles and > of_overlay_apply calls in tilcdc depends on the phandles being fixed > up. I think you are correct, after another quick sca

Re: BUG: KASAN: global-out-of-bounds in strscpy+0x807/0x970

2017-10-10 Thread Tyler Hicks
On 10/10/2017 09:28 PM, Jakub Kicinski wrote: > I'm hitting this on sysctl -a with net-next (4.14-rc4). Hey Jakub - thanks for the bug report! > > I saw that seccomp_actions_logged_handler was introduced > not-so-long-ago by Tyler, is there a fix for this? No, this is the first I've heard of it

Re: BUG: KASAN: global-out-of-bounds in strscpy+0x807/0x970

2017-10-10 Thread Jakub Kicinski
On Tue, 10 Oct 2017 21:44:01 -0400, Tyler Hicks wrote: > On 10/10/2017 09:28 PM, Jakub Kicinski wrote: > > I'm hitting this on sysctl -a with net-next (4.14-rc4). > > Hey Jakub - thanks for the bug report! > > > > > I saw that seccomp_actions_logged_handler was introduced > > not-so-long-ago b

RE: [PATCH v15 5/7] vfio: ABI for mdev display dma-buf operation

2017-10-10 Thread Zhang, Tina
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Wednesday, October 11, 2017 3:17 AM > To: Zhang, Tina > Cc: kra...@redhat.com; ch...@chris-wilson.co.uk; zhen...@linux.intel.com; > Lv, Zhiyuan ; Wang, Zhi A ; > Tian, Kevin ; dan...@ffwll.ch; kwankh

[PATCH net-next 1/2] net sched act_vlan: Change stats update to use per-core stats

2017-10-10 Thread Manish Kurup
The VLAN action maintains one set of stats across all cores, and uses a spinlock to synchronize updates to it from the same. Changed this to use a per-CPU stats context instead. This change will result in better performance. Signed-off-by: Manish Kurup --- net/sched/act_vlan.c | 10 ++ 1

Re: [PATCH v16 3/5] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-10-10 Thread Wei Wang
On 10/10/2017 09:09 PM, Tetsuo Handa wrote: Wei Wang wrote: And even if we could remove balloon_lock, you still cannot use __GFP_DIRECT_RECLAIM at xb_set_page(). I think you will need to use "whether it is safe to wait" flag from "[PATCH] virtio: avoid possible OOM lockup at virtballoon_oom_noti

[PATCH net-next 2/2] net sched act_vlan: VLAN action rewrite to use RCU lock/unlock and update

2017-10-10 Thread Manish Kurup
Using a spinlock in the VLAN action causes performance issues when the VLAN action is used on multiple cores. Rewrote the VLAN action to use RCU read locking for reads and updates instead. Signed-off-by: Manish Kurup --- include/net/tc_act/tc_vlan.h | 21 - net/sched/act_vlan.c

Re: [PATCH v3 4/5] efi: call get_event_log before ExitBootServices

2017-10-10 Thread James Morris
On Tue, 10 Oct 2017, Jarkko Sakkinen wrote: > The way I've agreed with James Morris to have my tree is to be rooted to > security trees next branch. > > James, what actions should we take? This process has changed recently -- I posted to lsm but forgot to post to linux-integrity. http://kernse

RE: [Intel-gfx] [PATCH v15 6/7] drm/i915: Introduce GEM proxy

2017-10-10 Thread Zhang, Tina
> -Original Message- > From: Joonas Lahtinen [mailto:joonas.lahti...@linux.intel.com] > Sent: Tuesday, October 10, 2017 9:02 PM > To: Zhang, Tina ; alex.william...@redhat.com; > kra...@redhat.com; ch...@chris-wilson.co.uk; zhen...@linux.intel.com; Lv, > Zhiyuan ; Wang, Zhi A ; Tian, > Kev

Re: [PATCH 0/2] Add support for ZSTD-compressed kernel

2017-10-10 Thread Nick Terrell
On 10/10/17, 5:08 PM, "Adam Borowski" wrote: > On Tue, Oct 10, 2017 at 10:40:13PM +, Nick Terrell wrote: > > On 10/10/17, 2:56 PM, "h...@zytor.com" wrote: > > >On October 10, 2017 2:22:42 PM PDT, Nick Terrell wrote: > > >>This patch set adds support for a ZSTD-compressed kernel and ramdisk >

Re: mmotm 2016-08-02-15-53 uploaded

2017-10-10 Thread Vitaly Mayatskikh
On Tue, 10 Oct 2017 20:48:34 -0400, Changwei Ge wrote: > > Hi Andrew and Vitaly, > > I do agree that patch ee8f7fcbe638 ("ocfs2/dlm: continue to purge > recovery lockres when recovery master goes down", 2016-08-02) introduced > an issue. It makes DLM recovery can't pick up a new master for an

RE: [PATCH] tty fix oops when rmmod 8250

2017-10-10 Thread Nixiaoming
Test on 4.14.0-rc4: CPU: 7 PID: 449 Comm: rmmod Tainted: G O4.14.0-rc4+ #1 Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 Call Trace: dump_stack+0x50/0x80 jtty_kref_put+0x5a/0x5c [jprobe_tty_kref_put] uart_remove_one_port+0xe8/0x220 [serial_core] ? __might_sleep+0x4a/0x90 ser

RE: [PATCH 02/10] perf tool: fix: Don't discard prev in backward mode

2017-10-10 Thread Liang, Kan
> >> > >>> If you really want to avoid record duplication, you need to changes > >>> record__mmap_read()'s > >>> logic. Now it complains "failed to keep up with mmap data" and avoid > >>> dumping data when > >>> size of newly generated data is larger than the size of the ring > >>> buffer. It is re

Re: [PATCH v15 5/7] vfio: ABI for mdev display dma-buf operation

2017-10-10 Thread Alex Williamson
On Wed, 11 Oct 2017 01:46:37 + "Zhang, Tina" wrote: > > -Original Message- > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Wednesday, October 11, 2017 3:17 AM > > To: Zhang, Tina > > Cc: kra...@redhat.com; ch...@chris-wilson.co.uk; zhen...@linux.intel.com; > >

[POC] Extend "movable_node" to "movable_node=nn@ss" and add the interface in /sys to show the value

2017-10-10 Thread Chao Fan
Hi all, Here is a problem: Here is a machine with several NUMA nodes and some of them are hot-pluggable, It's not good for kernel to be extracted in the memory region of movable node. But in current code, I print the address choosen by kaslr and found it may be placed in movable node sometimes. To

Re: [lkp-robot] [x86/kconfig] 81d3871900: BUG:unable_to_handle_kernel

2017-10-10 Thread Josh Poimboeuf
On Tue, Oct 10, 2017 at 08:15:13PM +0800, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-4.8): > > commit: 81d387190039c14edac8de2b3ec789beb899afd9 ("x86/kconfig: Consolidate > unwinders into multiple choice selection") > https://git.kernel.org/cgit/linux/kerne

Re: [PATCH] mac80211: aead api to reduce redundancy

2017-10-10 Thread Xiang Gao
2017-10-09 3:09 GMT-04:00 Johannes Berg : > On Sun, 2017-10-08 at 01:43 -0400, Xiang Gao wrote: >> >> By the way, I'm still struggling on how to run unit tests. It might >> take time for me to make it run on my machine. > > I can run it easily, so don't worry about it too much. Running it is of > c

[PATCH net-next 1/2] net sched act_vlan: Change stats update to use per-core stats

2017-10-10 Thread Manish Kurup
The VLAN action maintains one set of stats across all cores, and uses a spinlock to synchronize updates to it from the same. Changed this to use a per-CPU stats context instead. This change will result in better performance. Signed-off-by: Manish Kurup --- net/sched/act_vlan.c | 10 ++ 1

[PATCH 3/3] ARM: mvebu: dts: connect interrupt for WD on armada-38x

2017-10-10 Thread Chris Packham
The watchdog timer interrupt is available internally on the Armada-38x SoCs. Connect it so that we can have the orion_wdt_irq generate debug information when a watchdog timeout occurs. Signed-off-by: Chris Packham --- arch/arm/boot/dts/armada-38x.dtsi | 1 + 1 file changed, 1 insertion(+) diff

[PATCH 1/3] watchdog: orion: fix typo

2017-10-10 Thread Chris Packham
Correct typo in comment "insterted" -> "inserted". Signed-off-by: Chris Packham --- drivers/watchdog/orion_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 83af7d6cc37c..ea676d233e1e 100644 --- a/drivers/w

[PATCH v3] mac80211: aead api to reduce redundancy

2017-10-10 Thread Xiang Gao
Currently, the aes_ccm.c and aes_gcm.c are almost line by line copy of each other. This patch reduce code redundancy by moving the code in these two files to crypto/aead_api.c to make it a higher level aead api. The file aes_ccm.c and aes_gcm.c are removed and all the functions there are now implem

[PATCH 0/3] getting more output from orion_wdt

2017-10-10 Thread Chris Packham
On the Armada-38x platforms (and probably 37x/XP) the current behaviour of on exipry of the watchdog is a silent reboot of the CPU. The Armada-38x does have an interrupt which if we don't enable the Global WD bit in the RSTOUTn register gives us a chance to generate some panic messages that may hel

[PATCH 2/3] watchdog: orion: don't enable rstout if an interrupt is configured

2017-10-10 Thread Chris Packham
The orion_wdt_irq invokes panic() so we are going to reset the CPU regardless. By not setting this bit we get a chance to gather debug from the panic output before the system is reset. Signed-off-by: Chris Packham --- drivers/watchdog/orion_wdt.c | 25 + 1 file changed,

[PATCH net-next 2/2] net sched act_vlan: VLAN action rewrite to use RCU lock/unlock and update

2017-10-10 Thread Manish Kurup
Using a spinlock in the VLAN action causes performance issues when the VLAN action is used on multiple cores. Rewrote the VLAN action to use RCU read locking for reads and updates instead. Signed-off-by: Manish Kurup --- include/net/tc_act/tc_vlan.h | 21 - net/sched/act_vlan.c

Re: [PATCH] radix-tree: get_slot_offset() returns invalid offset when parent is NULL

2017-10-10 Thread Wei Yang
On Tue, Oct 10, 2017 at 01:53:11PM -0700, Andrew Morton wrote: >On Tue, 10 Oct 2017 10:52:01 +0800 Wei Yang wrote: > >> When parent is NULL, get_slot_offset() returns almost the address of slot. >> This is an invalid value for offset. >> >> One possible scenario happens on deleting #0 index, when

Re: [PATCH v2] mm/page_alloc.c: inline __rmqueue()

2017-10-10 Thread Aaron Lu
On Tue, Oct 10, 2017 at 02:45:45PM -0700, Andrew Morton wrote: > On Tue, 10 Oct 2017 13:43:43 +0800 Aaron Lu wrote: > > > On Mon, Oct 09, 2017 at 10:19:52PM -0700, Dave Hansen wrote: > > > On 10/09/2017 07:56 PM, Aaron Lu wrote: > > > > This patch adds inline to __rmqueue() and vmlinux' size does

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-10 Thread Byungchul Park
On Tue, Oct 10, 2017 at 09:56:26AM -0700, Linus Torvalds wrote: > On Tue, Oct 10, 2017 at 9:22 AM, Linus Torvalds > wrote: > > > > I really would like to see the sites that do cross-thread lock/unlock > > pairs themselves be annotated. > > > > So when you lock in one thread, and then unlock in ano

Re: BUG: KASAN: global-out-of-bounds in strscpy+0x807/0x970

2017-10-10 Thread Simon Brewer
On 11 October 2017 at 12:46, Jakub Kicinski wrote: > On Tue, 10 Oct 2017 21:44:01 -0400, Tyler Hicks wrote: >> On 10/10/2017 09:28 PM, Jakub Kicinski wrote: >> > I'm hitting this on sysctl -a with net-next (4.14-rc4). >> >> Hey Jakub - thanks for the bug report! >> >> > >> > I saw that seccomp_act

Re: [PATCH 1/2] mm, memory_hotplug: do not fail offlining too early

2017-10-10 Thread Michael Ellerman
Michal Hocko writes: > On Tue 10-10-17 23:05:08, Michael Ellerman wrote: >> Michal Hocko writes: >> >> > From: Michal Hocko >> > >> > Memory offlining can fail just too eagerly under a heavy memory pressure. >> > >> > [ 5410.336792] page:ea22a646bd00 count:255 mapcount:252 >> > mapping:ff

[PATCH 1/2] vfio: ccw: bypass bad idaw address when fetching IDAL ccws

2017-10-10 Thread Dong Jia Shi
We currently returns the same error code (-EFAULT) to indicate two different error cases: 1. a bug in vfio-ccw implementation has been found. 2. a buggy channel program has been detected. This brings difficulty for userland program (specifically Qemu) to handle. Let's use -EFAULT to only indicate

[PATCH 0/2] vfio-ccw bugfix

2017-10-10 Thread Dong Jia Shi
Some bugfixes according to recent discussion. Dong Jia Shi (2): vfio: ccw: bypass bad idaw address when fetching IDAL ccws vfio: ccw: validate the count field of a ccw before pinning drivers/s390/cio/vfio_ccw_cp.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-)

[PATCH 2/2] vfio: ccw: validate the count field of a ccw before pinning

2017-10-10 Thread Dong Jia Shi
If the count field of a ccw is zero, there is no need to try to pin page(s) for it. Let's check the count value before starting pinning operations. Reviewed-by: Pierre Morel Signed-off-by: Dong Jia Shi --- drivers/s390/cio/vfio_ccw_cp.c | 18 +- 1 file changed, 17 insertions(+),

[PATCH v5 00/13] mmc: mediatek: add support of mt2701/mt2712

2017-10-10 Thread Chaotian Jing
This serial of patches are adding support of mt2701/mt2712. there are many changes and HW improvement between mt8173 and mt2701/mt2712, below is a list of these changes: 1. enlarge CLKDIV bits from 8 to 12 2. remove the PAD_TUNE register and add a new PAD_TUNE0 register 3. add data sync and

[PATCH v5 01/12] mmc: dt-bindings: Add reg/source_cg/latch-ck for Mediatek MMC bindings

2017-10-10 Thread Chaotian Jing
Change the comptiable for support of multi-platform Make compatible explicit Add description for reg Add description for source_cg Add description for mediatek,latch-ck Note that source_cg and mediatek,latch-ck are optional for some projects, eg, MT2701 do not have source_cg, and MT2712 do not need

[PATCH v5 04/12] mmc: mediatek: make hs400_tune_response only for mt8173

2017-10-10 Thread Chaotian Jing
the origin design of hs400_tune_response is for mt8173 because of mt8173 has a special design. for doing that, we add a new member "compatible", by now it's only for mt8173. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(

[PATCH v5 02/12] mmc: mediatek: add support of mt2701/mt2712

2017-10-10 Thread Chaotian Jing
mt2701/mt2712 has 12bit clock div, which is not compatible with mt8135/mt8173. and, some additional features will be added in mt2701/mt2712, so that need distinguish it by comatibale name. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 82 +++

<    9   10   11   12   13   14   15   16   >