[PATCH AUTOSEL for 4.9 069/156] nvmet: confirm sq percpu has scheduled and switched to atomic

2017-12-07 Thread alexander . levin
From: Sagi Grimberg [ Upstream commit d11ea004a458b982e19b188c386e25a9b66ec446 ] percpu_ref_kill is not enough to prevent subsequent percpu_ref_tryget_live from failing. Hence call perfcpu_ref_kill_confirm to make it safe. Reviewed-by: Christoph Hellwig Signed-off-by: Sagi Grimberg Signed-off

[PATCH AUTOSEL for 4.9 087/156] video: udlfb: Fix read EDID timeout

2017-12-07 Thread alexander . levin
From: Ladislav Michl [ Upstream commit c98769475575c8a585f5b3952f4b5f90266f699b ] While usb_control_msg function expects timeout in miliseconds, a value of HZ is used. Replace it with USB_CTRL_GET_TIMEOUT and also fix error message which looks like: udlfb: Read EDID byte 78 failed err ff92 a

[PATCH AUTOSEL for 4.9 097/156] iommu/mediatek: Fix driver name

2017-12-07 Thread alexander . levin
From: Matthias Brugger [ Upstream commit 395df08d2e1de238a9c8c33fdcd0e2160efd63a9 ] There exist two Mediatek iommu drivers for the two different generations of the device. But both drivers have the same name "mtk-iommu". This breaks the registration of the second driver: Error: Driver 'mtk-iomm

[GIT PULL] Power management fix for v4.15-rc3

2017-12-07 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.15-rc3 with top-most commit 31eb7431805493e10f4731f366cf4d4e3e952035 PM / runtime: Fix handling of suppliers with disabled runtime PM on top of commit ae64f9bd1d3621b5e60d7363bc20afb4

[PATCH AUTOSEL for 4.9 074/156] tty: don't panic on OOM in tty_set_ldisc()

2017-12-07 Thread alexander . levin
From: Dmitry Vyukov [ Upstream commit 5362544bebe85071188dd9e479b5a5040841c895 ] If tty_ldisc_open() fails in tty_set_ldisc(), it tries to go back to the old discipline or N_TTY. But that can fail as well, in such case it panics. This is not a graceful way to handle OOM. Leave ldisc==NULL if al

[PATCH AUTOSEL for 4.9 064/156] afs: Populate and use client modification time

2017-12-07 Thread alexander . levin
From: Marc Dionne [ Upstream commit ab94f5d0dd6fd82e7eeca5e7c8096eaea0a0261f ] The inode timestamps should be set from the client time in the status received from the server, rather than the server time which is meant for internal server use. Set AFS_SET_MTIME and populate the mtime for operati

[PATCH AUTOSEL for 4.9 084/156] HID: cp2112: fix broken gpio_direction_input callback

2017-12-07 Thread alexander . levin
From: Sébastien Szymanski [ Upstream commit 7da85fbf1c87d4f73621e0e7666a3387497075a9 ] When everything goes smoothly, ret is set to 0 which makes the function to return EIO error. Fixes: 8e9faa15469e ("HID: cp2112: fix gpio-callback error handling") Signed-off-by: Sébastien Szymanski Reviewed-

Re: [PATCH] LDT improvements

2017-12-07 Thread Thomas Gleixner
On Thu, 7 Dec 2017, Andy Lutomirski wrote: > On Thu, Dec 7, 2017 at 4:43 AM, Borislav Petkov wrote: > > On Wed, Dec 06, 2017 at 11:22:21PM -0800, Andy Lutomirski wrote: > >> I think I like this approach. I also think it might be nice to move the > >> whole cpu_entry_area into this new pgd range

[PATCH AUTOSEL for 4.9 065/156] afs: Fix page leak in afs_write_begin()

2017-12-07 Thread alexander . levin
From: David Howells [ Upstream commit 6d06b0d25209c80e99c1e89700f1e09694a3766b ] afs_write_begin() leaks a ref and a lock on a page if afs_fill_page() fails. Fix the leak by unlocking and releasing the page in the error path. Signed-off-by: David Howells Signed-off-by: Sasha Levin --- fs/af

Re: [PATCH] tools/usbip: fixes potential (minor) "buffer overflow" (detected on recent gcc with -Werror)

2017-12-07 Thread Shuah Khan
On 12/05/2017 08:09 AM, julien.boibes...@free.fr wrote: > From: Julien BOIBESSOT > > Fixes following build error: > vhci_driver.c: In function 'refresh_imported_device_list': > vhci_driver.c:118:37: error: 'snprintf' output may be truncated before > the last format character [-Werror=format

Re: [PATCH v2 16/19] ASoC: tlv320aic31xx: Add short circuit detection support

2017-12-07 Thread Mark Brown
On Thu, Dec 07, 2017 at 09:37:36AM -0600, Andrew F. Davis wrote: > On 12/07/2017 06:03 AM, Mark Brown wrote: > >> As for your other suggestion of "log other interrupt sources > >> numerically", could you explain this or point to an example of what you > >> mean? > > Just print out the bits that w

Re: [PATCH v6 1/3] drm/bridge/synopsys: dsi: stop clobbering drvdata

2017-12-07 Thread Brian Norris
On Thu, Dec 07, 2017 at 11:41:17AM +, Philippe CORNU wrote: > platform_set_drvdata() is still missing in your version. Ugh...indeed. > On 12/06/2017 10:39 PM, Brian Norris wrote: > > On Wed, Dec 06, 2017 at 05:08:19PM +0800, Nickey Yang wrote: > >> From: Brian Norris > >> > >> Bridge drivers

[GIT PULL] ACPI fix for v4.15-rc3

2017-12-07 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.15-rc3 with top-most commit 1ecbd7170d6579a1ee389a37bf1f0437ea01a388 ACPI / CPPC: Fix KASAN global out of bounds warning on top of commit ae64f9bd1d3621b5e60d7363bc20afb46aede215

Re: [PATCH] staging: lustre: Fix sparse, using plain integer as NULL pointer in lov_object_fiemap()

2017-12-07 Thread Joe Perches
On Wed, 2017-12-06 at 09:53 +0100, gre...@linuxfoundation.org wrote: > On Mon, Dec 04, 2017 at 12:44:32PM +0200, Andrii Vladyka wrote: > > Change 0 to NULL in lov_object_fiemap() in order to fix warning produced by > > sparse > > > > Signed-off-by: Andrii Vladyka > > Signed-off-by: Andreas Dilger

Re: [PATCH AUTOSEL for 4.14 012/135] ASoC: cs42l56: Fix reset GPIO name in example DT binding

2017-12-07 Thread Mark Brown
On Thu, Dec 07, 2017 at 03:45:32PM +, alexander.le...@verizon.com wrote: > The binding states the reset GPIO property shall be named > "cirrus,gpio-nreset" and this is what the driver looks for, > but the example uses "gpio-reset". Fix this here. We shouldn't be getting into adding completely

Re: ipmi null pointer oops in 4.15-rc2+ on HP DL360G6

2017-12-07 Thread Corey Minyard
On 12/07/2017 09:43 AM, Meelis Roos wrote: Tried current 4.15 git on HP DL360G6 (working fine in 4.14), got null pointer dereference oops from ipmi_pci_probe (or so it seems from the backtrace). I have a fix for this at https://bugzilla.kernel.org/show_bug.cgi?id=197999, but the reported hasn't

[PATCH AUTOSEL for 4.9 085/156] sfc: don't warn on successful change of MAC

2017-12-07 Thread alexander . levin
From: Robert Stonehouse [ Upstream commit cbad52e92ad7f01f0be4ca58bde59462dc1afe3a ] Fixes: 535a61777f44e ("sfc: suppress handled MCDI failures when changing the MAC address") Signed-off-by: Bert Kenward Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/sfc/

Re: [PATCH v2 2/5] perf-probe: Cut off the version suffix from event name

2017-12-07 Thread Paul Clarke
On 12/07/2017 10:56 AM, Arnaldo Carvalho de Melo wrote: > Em Thu, Dec 07, 2017 at 04:20:28PM +0900, Masami Hiramatsu escreveu: >> Cut off the version suffix (e.g. @GLIBC_2.2.5 etc.) from >> automatic generated event name. This fixes wildcard event >> adding like below case; >> >> = >> # p

[PATCH AUTOSEL for 4.9 090/156] rtc: pcf8563: fix output clock rate

2017-12-07 Thread alexander . levin
From: Philipp Zabel [ Upstream commit a3350f9c57ffad569c40f7320b89da1f3061c5bb ] The pcf8563_clkout_recalc_rate function erroneously ignores the frequency index read from the CLKO register and always returns 32768 Hz. Fixes: a39a6405d5f9 ("rtc: pcf8563: add CLKOUT to common clock framework") Si

[PATCH AUTOSEL for 4.9 068/156] nvme-loop: fix a possible use-after-free when destroying the admin queue

2017-12-07 Thread alexander . levin
From: Sagi Grimberg [ Upstream commit e4c5d3762e2d6d274bd1cc948c47063becfa2103 ] we need to destroy the nvmet sq and let it finish gracefully before continue to cleanup the queue. Reviewed-by: Christoph Hellwig Signed-off-by: Sagi Grimberg Signed-off-by: Sasha Levin --- drivers/nvme/target/

[PATCH AUTOSEL for 4.9 077/156] efi/esrt: Cleanup bad memory map log messages

2017-12-07 Thread alexander . levin
From: Daniel Drake [ Upstream commit 822f5845f710e57d7e2df1fd1ee00d6e19d334fe ] The Intel Compute Stick STCK1A8LFC and Weibu F3C platforms both log 2 error messages during boot: efi: requested map not found. esrt: ESRT header is not in the memory map. Searching the web, this seems to aff

[PATCH AUTOSEL for 4.9 071/156] net/mlx4_core: Avoid delays during VF driver device shutdown

2017-12-07 Thread alexander . levin
From: Jack Morgenstein [ Upstream commit 4cbe4dac82e423ecc9a0ba46af24a860853259f4 ] Some Hypervisors detach VFs from VMs by instantly causing an FLR event to be generated for a VF. In the mlx4 case, this will cause that VF's comm channel to be disabled before the VM has an opportunity to invoke

[PATCH AUTOSEL for 4.9 076/156] perf symbols: Fix symbols__fixup_end heuristic for corner cases

2017-12-07 Thread alexander . levin
From: Daniel Borkmann [ Upstream commit e7ede72a6d40cb3a30c087142d79381ca8a31dab ] The current symbols__fixup_end() heuristic for the last entry in the rb tree is suboptimal as it leads to not being able to recognize the symbol in the call graph in a couple of corner cases, for example: i) If

[PATCH AUTOSEL for 4.9 081/156] target: fix ALUA transition timeout handling

2017-12-07 Thread alexander . levin
From: Mike Christie [ Upstream commit d7175373f2745ed4abe5b388d5aabd06304f801e ] The implicit transition time tells initiators the min time to wait before timing out a transition. We currently schedule the transition to occur in tg_pt_gp_implicit_trans_secs seconds so there is no room for delays

[PATCH AUTOSEL for 4.9 083/156] Revert "x86/acpi: Set persistent cpuid <-> nodeid mapping when booting"

2017-12-07 Thread alexander . levin
From: Dou Liyang [ Upstream commit c962cff17dfa11f4a8227ac16de2b28aea3312e4 ] Revert: dc6db24d2476 ("x86/acpi: Set persistent cpuid <-> nodeid mapping when booting") The mapping of "cpuid <-> nodeid" is established at boot time via ACPI tables to keep associations of workqueues and other node

[PATCH AUTOSEL for 4.9 054/156] afs: Fix missing put_page()

2017-12-07 Thread alexander . levin
From: David Howells [ Upstream commit 29c8bbbd6e21daa0997d1c3ee886b897ee7ad652 ] In afs_writepages_region(), inside the loop where we find dirty pages to deal with, one of the if-statements is missing a put_page(). Signed-off-by: David Howells Signed-off-by: Sasha Levin --- fs/afs/write.c |

[PATCH AUTOSEL for 4.9 059/156] afs: Migrate vlocation fields to 64-bit

2017-12-07 Thread alexander . levin
From: Tina Ruchandani [ Upstream commit 8a79790bf0b7da216627ffb85f52cfb4adbf1e4e ] get_seconds() returns real wall-clock seconds. On 32-bit systems this value will overflow in year 2038 and beyond. This patch changes afs's vlocation record to use ktime_get_real_seconds() instead, for the fields

[PATCH AUTOSEL for 4.9 041/156] scsi: hpsa: update check for logical volume status

2017-12-07 Thread alexander . levin
From: Don Brace [ Upstream commit 85b29008d8af6d94a0723aaa8d93cfb6e041158b ] - Add in a new case for volume offline. Resolves internal testing bug for multilun array management. - Return correct status for failed TURs. Reviewed-by: Scott Benesh Reviewed-by: Scott Teel Signed-off-by: Don

[PATCH AUTOSEL for 4.9 056/156] afs: Adjust mode bits processing

2017-12-07 Thread alexander . levin
From: Marc Dionne [ Upstream commit 627f46943ff90bcc32ddeb675d881c043c6fa2ae ] Mode bits for an afs file should not be enforced in the usual way. For files, the absence of user bits can restrict file access with respect to what is granted by the server. These bits apply regardless of the owner

[PATCH AUTOSEL for 4.9 040/156] ASoC: rcar: clear DE bit only in PDMACHCR when it stops

2017-12-07 Thread alexander . levin
From: Kuninori Morimoto [ Upstream commit 62a10498afb27370ec6018e9d802b74850fd8d9a ] R-Car datasheet indicates "Clear DE in PDMACHCR" for transfer stop, but current code clears all bits in PDMACHCR. Because of this, DE bit might never been cleared, and it causes CMD overflow. This patch fixes th

[PATCH AUTOSEL for 4.9 047/156] iwlwifi: mvm: cleanup pending frames in DQA mode

2017-12-07 Thread alexander . levin
From: Sara Sharon [ Upstream commit 9a3fcf912ef7f5c6e18f9af6875dd13f7311f7aa ] When a station is asleep, the fw will set it as "asleep". All queues that are used only by one station will be stopped by the fw. In pre-DQA mode this was relevant for aggregation queues. However, in DQA mode a queue

[PATCH 0/2] acpi, x86: Add SPCR table support

2017-12-07 Thread Prarit Bhargava
The SPCR (Serial Port Console Redirection) Table provides information about the configuration of serial port. This information can be used to configure the early console. SPCR support was added for arm64 and is made available across all arches in this patchset. The first patch adds a weak per-ar

[PATCH 2/2] acpi, x86: Use SPCR table for earlycon on x86

2017-12-07 Thread Prarit Bhargava
The ACPI SPCR code has been used to define an earlycon console for arm64 and can be used for x86. Modify the ACPI SPCR parsing code to account for console behaviour differences between arm64 and x86. Initialize the SPCR code from x86 ACPI initialization code. Signed-off-by: Prarit Bhargava Cc:

[PATCH 1/2] acpi, spcr: Make SPCR avialable to other architectures

2017-12-07 Thread Prarit Bhargava
Other architectures can use SPCR to setup an early console or console but the current code is ARM64 specific. Change the name of parse_spcr() to acpi_parse_spcr(). Add a weak function acpi_arch_setup_console() that can be used for arch-specific setup. Move SPCR initialization flag into ACPI code

Re: linux-next: build failure after merge of the scsi-mkp tree

2017-12-07 Thread Bart Van Assche
On Wed, 2017-12-06 at 20:42 -0800, Paul E. McKenney wrote: > On Thu, Dec 07, 2017 at 03:25:21PM +1100, Stephen Rothwell wrote: > > On Thu, 7 Dec 2017 03:59:30 + Bart Van Assche > > wrote: > > > On Thu, 2017-12-07 at 14:57 +1100, Stephen Rothwell wrote: > > > > After merging the scsi-mkp tree,

[PATCH AUTOSEL for 4.9 060/156] afs: Prevent callback expiry timer overflow

2017-12-07 Thread alexander . levin
From: Tina Ruchandani [ Upstream commit 56e714312e7dbd6bb83b2f78d3ec19a404c7649f ] get_seconds() returns real wall-clock seconds. On 32-bit systems this value will overflow in year 2038 and beyond. This patch changes afs_vnode record to use ktime_get_real_seconds() instead, for the fields cb_exp

Re: [PATCH] sched/isolation: Make NO_HZ_FULL select CPU_ISOLATION

2017-12-07 Thread Paul E. McKenney
On Thu, Dec 07, 2017 at 05:14:54PM +0100, Frederic Weisbecker wrote: > 2017-12-04 18:16 UTC+01:00, Paul E. McKenney : > > On Mon, Dec 04, 2017 at 04:53:15PM +0100, Frederic Weisbecker wrote: > >> 2017-12-02 20:24 UTC+01:00, Paul E. McKenney > >> I would prefer to keep it. It's useful for automated

[PATCH AUTOSEL for 4.9 044/156] fjes: Fix wrong netdevice feature flags

2017-12-07 Thread alexander . levin
From: Taku Izumi [ Upstream commit fe8daf5fa715f7214952f06a387e4b7de818c5be ] This patch fixes netdev->features for Extended Socket network device. Currently Extended Socket network device's netdev->feature claims NETIF_F_HW_CSUM, however this is completely wrong. There's no feature of checksum

[PATCH AUTOSEL for 4.9 045/156] drm/radeon/si: add dpm quirk for Oland

2017-12-07 Thread alexander . levin
From: Alex Deucher [ Upstream commit 0f424de1fd9bc4ab24bd1fe5430ab5618e803e31 ] OLAND 0x1002:0x6604 0x1028:0x066F 0x00 seems to have problems with higher sclks. Acked-by: Christian König Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by: Sasha Levin --- drivers/gpu/drm/ra

[PATCH AUTOSEL for 4.9 043/156] scsi: hpsa: do not timeout reset operations

2017-12-07 Thread alexander . levin
From: Don Brace [ Upstream commit 2ef2884980873081a4edae92f9d88dd580c85f6e ] Resets can take longer than DEFAULT_TIMEOUT. Reviewed-by: Scott Benesh Reviewed-by: Scott Teel Reviewed-by: Tomas Henzl Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- d

[PATCH AUTOSEL for 4.9 058/156] afs: Flush outstanding writes when an fd is closed

2017-12-07 Thread alexander . levin
From: David Howells [ Upstream commit 58fed94dfb17e89556b5705f20f90e5b2971b6a1 ] Flush outstanding writes in afs when an fd is closed. This is what NFS and CIFS do. Reported-by: Marc Dionne Signed-off-by: David Howells Signed-off-by: Sasha Levin --- fs/afs/file.c | 1 + fs/afs/interna

[PATCH AUTOSEL for 4.9 039/156] openrisc: fix issue handling 8 byte get_user calls

2017-12-07 Thread alexander . levin
From: Stafford Horne [ Upstream commit 154e67cd8e8f964809d0e75e44bb121b169c75b3 ] Was getting the following error with allmodconfig: ERROR: "__get_user_bad" [lib/test_user_copy.ko] undefined! This was simply a missing break statement, causing an unwanted fall through. Signed-off-by: Staffor

[PATCH AUTOSEL for 4.9 057/156] afs: Deal with an empty callback array

2017-12-07 Thread alexander . levin
From: Marc Dionne [ Upstream commit bcd89270d93b7edebb5de5e5e7dca1a77a33496e ] Servers may send a callback array that is the same size as the FID array, or an empty array. If the callback count is 0, the code would attempt to read (fid_count * 12) bytes of data, which would fail and result in a

Re: [PATCH v9 01/13] Documentation: Add SLIMbus summary

2017-12-07 Thread Jonathan Corbet
On Thu, 7 Dec 2017 10:27:08 + srinivas.kandaga...@linaro.org wrote: A couple of overall comments... > Documentation/driver-api/index.rst | 1 + > Documentation/driver-api/slimbus/index.rst | 15 > Documentation/driver-api/slimbus/summary.rst | 106 >

[PATCH AUTOSEL for 4.9 052/156] mmc: mediatek: Fixed bug where clock frequency could be set wrong

2017-12-07 Thread alexander . levin
From: yong mao [ Upstream commit 40ceda09c8c84694c2ca6b00bcc6dc71e8e62d96 ] This patch can fix two issues: Issue 1: In previous code, div may be overflow when setting clock frequency as f_min. We can use DIV_ROUND_UP to fix this boundary related issue. Issue 2: In previous code, we can not set

Re: [PATCH AUTOSEL for 4.14 111/135] ASoC: samsung: i2s: disable secondary DAI until it gets fixed

2017-12-07 Thread Mark Brown
On Thu, Dec 07, 2017 at 03:45:57PM +, alexander.le...@verizon.com wrote: > Secondary DAI in Exynos I2S driver is not used by any of the currently > supported boards and it causes problems due to some limitations in the > ASoC code. Disable it until it gets proper support both by board-specific

[PATCH AUTOSEL for 4.9 053/156] drm/radeon: reinstate oland workaround for sclk

2017-12-07 Thread alexander . levin
From: Alex Deucher [ Upstream commit 66822d815ae61ecb2d9dba9031517e8a8476969d ] Higher sclks seem to be unstable on some boards. bug: https://bugs.freedesktop.org/show_bug.cgi?id=100222 Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by: Sasha Levin --- drivers/gpu/drm/rad

[PATCH AUTOSEL for 4.9 050/156] sched/deadline: Throttle a constrained deadline task activated after the deadline

2017-12-07 Thread alexander . levin
From: Daniel Bristot de Oliveira [ Upstream commit df8eac8cafce7d086be3bd5cf5a838fa37594dfb ] During the activation, CBS checks if it can reuse the current task's runtime and period. If the deadline of the task is in the past, CBS cannot use the runtime, and so it replenishes the task. This rule

[PATCH AUTOSEL for 4.9 048/156] sched/deadline: Add missing update_rq_clock() in dl_task_timer()

2017-12-07 Thread alexander . levin
From: Wanpeng Li [ Upstream commit dcc3b5ffe1b32771c9a22e2c916fb94c4fcf5b79 ] The following warning can be triggered by hot-unplugging the CPU on which an active SCHED_DEADLINE task is running on: [ cut here ] WARNING: CPU: 7 PID: 0 at kernel/sched/sched.h:833 repleni

[PATCH AUTOSEL for 4.9 046/156] Drivers: hv: util: move waiting for release to hv_utils_transport itself

2017-12-07 Thread alexander . levin
From: Vitaly Kuznetsov [ Upstream commit e9c18ae6eb2b312f16c63e34b43ea23926daa398 ] Waiting for release_event in all three drivers introduced issues on release as on_reset() hook is not always called. E.g. if the device was never opened we will never get the completion. Move the waiting code to

[PATCH AUTOSEL for 4.9 024/156] netfilter: bridge: honor frag_max_size when refragmenting

2017-12-07 Thread alexander . levin
From: Florian Westphal [ Upstream commit 4ca60d08cbe65f501baad64af50fceba79c19fbb ] consider a bridge with mtu 9000, but end host sending smaller packets to another host with mtu < 9000. In this case, after reassembly, bridge+defrag would refragment, and then attempt to send the reassembled pac

[PATCH AUTOSEL for 4.9 028/156] net: wimax/i2400m: fix NULL-deref at probe

2017-12-07 Thread alexander . levin
From: Johan Hovold [ Upstream commit 6e526fdff7be4f13b24f929a04c0e9ae6761291e ] Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory beyond the endpoint array should a malicious device lack the expected endpoints. The endpoints are specifically de

[PATCH AUTOSEL for 4.14 128/135] lightnvm: pblk: use right flag for GC allocation

2017-12-07 Thread alexander . levin
From: Javier González [ Upstream commit 7d327a9ed6c4dca341ebf99012e0a6b80a3050e6 ] The data buffer for the GC path allocates virtual memory through vmalloc. When this change was introduced, a flag signaling kmalloc'ed memory was wrongly introduced. Use the right flag when creating a bio from thi

[PATCH AUTOSEL for 4.9 016/156] net/mlx5: Fix create autogroup prev initializer

2017-12-07 Thread alexander . levin
From: Paul Blakey [ Upstream commit af36370569eb37420e1e78a2e60c277b781fcd00 ] The autogroups list is a list of non overlapping group boundaries sorted by their start index. If the autogroups list wasn't empty and an empty group slot was found at the start of the list, the new group was added to

[PATCH AUTOSEL for 4.9 012/156] net: bcmgenet: power down internal phy if open or resume fails

2017-12-07 Thread alexander . levin
From: Doug Berger [ Upstream commit 7627409cc4970e8c8b9de6945ad86a575290a94e ] Since the internal PHY is powered up during the open and resume functions it should be powered back down if the functions fail. Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file") Signed-off-by: Doug Berger

[PATCH AUTOSEL for 4.9 042/156] scsi: hpsa: limit outstanding rescans

2017-12-07 Thread alexander . levin
From: Don Brace [ Upstream commit 87b9e6aa87d9411f1059aa245c0c79976bc557ac ] Avoid rescan storms. No need to queue another if one is pending. Reviewed-by: Scott Benesh Reviewed-by: Scott Teel Reviewed-by: Tomas Henzl Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen Signed-off-by:

[PATCH AUTOSEL for 4.9 038/156] intel_th: pci: Add Gemini Lake support

2017-12-07 Thread alexander . levin
From: Alexander Shishkin [ Upstream commit 340837f985c2cb87ca0868d4aa9ce42b0fab3a21 ] This adds Intel(R) Trace Hub PCI ID for Gemini Lake SOC. Signed-off-by: Alexander Shishkin Signed-off-by: Sasha Levin --- drivers/hwtracing/intel_th/pci.c | 5 + 1 file changed, 5 insertions(+) diff --

[PATCH AUTOSEL for 4.14 130/135] lightnvm: pblk: fix min size for page mempool

2017-12-07 Thread alexander . levin
From: Javier González [ Upstream commit bd432417681a224d9fa4a9d43be7d4edc82135b2 ] pblk uses an internal page mempool for allocating pages on internal bios. The main two users of this memory pool are partial reads (reads with some sectors in cache and some on media) and padded writes, which need

[PATCH AUTOSEL for 4.14 126/135] lightnvm: pblk: prevent gc kicks when gc is not operational

2017-12-07 Thread alexander . levin
From: Hans Holmberg [ Upstream commit 3e3a5b8ebd5d3b1d68facc58b0674a2564653222 ] GC can be kicked after it has been shut down when closing the last line during exit, resulting in accesses to freed structures. Make sure that GC is not triggered while it is not operational. Also make sure that GC

[PATCH AUTOSEL for 4.14 129/135] lightnvm: pblk: initialize debug stat counter

2017-12-07 Thread alexander . levin
From: Javier González [ Upstream commit a1121176ff757e3c073490a69608ea0b18a00ec1 ] Initialize the stat counter for garbage collected reads. Fixes: a4bd217b43268 ("lightnvm: physical block device (pblk) target") Signed-off-by: Javier González Signed-off-by: Matias Bjørling Signed-off-by: Jens

[PATCH AUTOSEL for 4.9 032/156] mlxsw: reg: Fix SPVM max record count

2017-12-07 Thread alexander . levin
From: Jiri Pirko [ Upstream commit f004ec065b4879d6bc9ba0211af2169b3ce3097f ] The num_rec field is 8 bit, so the maximal count number is 255. This fixes vlans not being enabled for wider ranges than 255. Fixes: b2e345f9a454 ("mlxsw: reg: Add Switch Port VID and Switch Port VLAN Membership regi

Re: [PATCH net-next v2 6/8] net: phy: meson-gxl: leave CONFIG_A6 untouched

2017-12-07 Thread Andrew Lunn
On Thu, Dec 07, 2017 at 03:27:13PM +0100, Jerome Brunet wrote: > The PHY performs just as well when left in its default configuration and > it makes senses because this poke gets reset just after init. The only thing which might speak against this, is some bootloader which sets something other tha

[PATCH AUTOSEL for 4.9 018/156] iommu/io-pgtable-arm-v7s: Check for leaf entry before dereferencing it

2017-12-07 Thread alexander . levin
From: Oleksandr Tyshchenko [ Upstream commit a03849e7210277fa212779b7cd9c30e1ab6194b2 ] Do a check for already installed leaf entry at the current level before dereferencing it in order to avoid walking the page table down with wrong pointer to the next level. Signed-off-by: Oleksandr Tyshchenk

[PATCH AUTOSEL for 4.9 009/156] net: bcmgenet: correct the RBUF_OVFL_CNT and RBUF_ERR_CNT MIB values

2017-12-07 Thread alexander . levin
From: Doug Berger [ Upstream commit 71328a3c321f7c14cc1edd33577717037744 ] The location of the RBUF overflow and error counters has moved between different version of the GENET MAC. This commit corrects the driver to read from the correct locations depending on the version of the GENET MAC.

[PATCH AUTOSEL for 4.9 006/156] userfaultfd: selftest: vm: allow to build in vm/ directory

2017-12-07 Thread alexander . levin
From: Andrea Arcangeli [ Upstream commit 46aa6a302b53f543f8e8b8e1714dc5e449ad36a6 ] linux/tools/testing/selftests/vm $ make gcc -Wall -I ../../../../usr/include compaction_test.c -lrt -o /compaction_test /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/../../../../x86_64-pc-linux-gnu/bin/ld: c

[PATCH AUTOSEL for 4.9 008/156] bnxt_en: Ignore 0 value in autoneg supported speed from firmware.

2017-12-07 Thread alexander . levin
From: Michael Chan [ Upstream commit 520ad89a54edea84496695d528f73ddcf4a52ea4 ] In some situations, the firmware will return 0 for autoneg supported speed. This may happen if the firmware detects no SFP module, for example. The driver should ignore this so that we don't end up with an invalid

[PATCH AUTOSEL for 4.9 033/156] mlxsw: reg: Fix SPVMLR max record count

2017-12-07 Thread alexander . levin
From: Jiri Pirko [ Upstream commit e9093b1183bbac462d2caef3eac165778c0b1bf1 ] The num_rec field is 8 bit, so the maximal count number is 255. This fixes vlans learning not being enabled for wider ranges than 255. Fixes: a4feea74cd7a ("mlxsw: reg: Add Switch Port VLAN MAC Learning register defi

[PATCH AUTOSEL for 4.9 036/156] qed: Fix interrupt flags on Rx LL2

2017-12-07 Thread alexander . levin
From: Ram Amrani [ Upstream commit 1df2adedcce17ad4a39fba74f0e2b611f797fe10 ] Before iterating over the the LL2 Rx ring, the ring's spinlock is taken via spin_lock_irqsave(). The actual processing of the packet [including handling by the protocol driver] is done without said lock, so qed release

[PATCH AUTOSEL for 4.9 015/156] rxrpc: Wake up the transmitter if Rx window size increases on the peer

2017-12-07 Thread alexander . levin
From: David Howells [ Upstream commit 702f2ac87a9a8da23bf8506466bc70175fc970b2 ] The RxRPC ACK packet may contain an extension that includes the peer's current Rx window size for this call. We adjust the local Tx window size to match. However, the transmitter can stall if the receive window is

[PATCH AUTOSEL for 4.9 034/156] qed: Align CIDs according to DORQ requirement

2017-12-07 Thread alexander . levin
From: Ram Amrani [ Upstream commit f3e48119b97f56fb09310c95d49da122a27003d7 ] The Doorbell HW block can be configured at a granularity of 16 x CIDs, so we need to make sure that the actual number of CIDs configured would be a multiplication of 16. Today, when RoCE is enabled - given that the nu

[PATCH AUTOSEL for 4.9 013/156] net: bcmgenet: synchronize irq0 status between the isr and task

2017-12-07 Thread alexander . levin
From: Doug Berger [ Upstream commit 07c52d6a0b955a8a28834f9354793cfc4b81d0e9 ] Add a spinlock to ensure that irq0_stat is not unintentionally altered as the result of preemption. Also removed unserviced irq0 interrupts and removed irq1_stat since there is no bottom half service for those interr

Re: [PATCH v4.1] phylib: Add device reset GPIO support

2017-12-07 Thread Sergei Shtylyov
On 12/07/2017 08:20 PM, Sergei Shtylyov wrote: The PHY devices sometimes do have their reset signal (maybe even power supply?) tied to some GPIO and sometimes it also does happen that a boot loader does not leave it deasserted. So far this issue has been attacked from (as I believe) a wrong angl

[PATCH AUTOSEL for 4.9 037/156] drm: amd: remove broken include path

2017-12-07 Thread alexander . levin
From: Arnd Bergmann [ Upstream commit 655d9ca9ac075da1ef2a45012ba48a39f6eb1f58 ] The AMD ACP driver adds "-I../acp -I../acp/include" to the gcc command line, which makes no sense, since these are evaluated relative to the build directory. When we build with "make W=1", they instead cause a warni

Re: linux-next: build failure after merge of the scsi-mkp tree

2017-12-07 Thread Paul E. McKenney
On Thu, Dec 07, 2017 at 05:30:03PM +, Bart Van Assche wrote: > On Wed, 2017-12-06 at 20:42 -0800, Paul E. McKenney wrote: > > On Thu, Dec 07, 2017 at 03:25:21PM +1100, Stephen Rothwell wrote: > > > On Thu, 7 Dec 2017 03:59:30 + Bart Van Assche > > > wrote: [ . . . ] > > commit cde4691a3

[PATCH AUTOSEL for 4.9 014/156] net: bcmgenet: Power up the internal PHY before probing the MII

2017-12-07 Thread alexander . levin
From: Doug Berger [ Upstream commit 6be371b053dc86f11465cc1abce2e99bda0a0574 ] When using the internal PHY it must be powered up when the MII is probed or the PHY will not be detected. Since the PHY is powered up at reset this has not been a problem. However, when the kernel is restarted with

[PATCH AUTOSEL for 4.9 007/156] net: initialize msg.msg_flags in recvfrom

2017-12-07 Thread alexander . levin
From: Alexander Potapenko [ Upstream commit 9f138fa609c47403374a862a08a41394be53d461 ] KMSAN reports a use of uninitialized memory in put_cmsg() because msg.msg_flags in recvfrom haven't been initialized properly. The flag values don't affect the result on this path, but it's still a good idea t

[PATCH AUTOSEL for 4.9 005/156] userfaultfd: shmem: __do_fault requires VM_FAULT_NOPAGE

2017-12-07 Thread alexander . levin
From: Andrea Arcangeli [ Upstream commit 6bbc4a4144b1a69743022ac68dfaf6e7d993abb9 ] __do_fault assumes vmf->page has been initialized and is valid if VM_FAULT_NOPAGE is not returned by vma->vm_ops->fault(vma, vmf). handle_userfault() in turn should return VM_FAULT_NOPAGE if it doesn't return VM

[PATCH AUTOSEL for 4.14 127/135] lightnvm: pblk: fix changing GC group list for a line

2017-12-07 Thread alexander . levin
From: Rakesh Pandit [ Upstream commit 27b978725d895e704aab44b99242a0514485d798 ] pblk_line_gc_list seems to had a bug since the introduction of pblk in getting GC list for a line. In b20ba1bc7 while redesigning the GC algorithm, the naming for the GC thresholds was altered, but the values for hi

[PATCH AUTOSEL for 4.9 019/156] drm/amdgpu: fix parser init error path to avoid crash in parser fini

2017-12-07 Thread alexander . levin
From: Dave Airlie [ Upstream commit 607523d19c9d67ba4cf7bdaced644f11ed04992c ] If we don't reset the chunk info in the error path, the subsequent fini path will double free. Reviewed-by: Christian König Signed-off-by: Dave Airlie Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- d

[PATCH AUTOSEL for 4.9 001/156] usb: phy: isp1301: Add OF device ID table

2017-12-07 Thread alexander . levin
From: Javier Martinez Canillas [ Upstream commit fd567653bdb908009b650f079bfd4b63169e2ac4 ] The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy

[PATCH AUTOSEL for 4.9 004/156] md-cluster: free md_cluster_info if node leave cluster

2017-12-07 Thread alexander . levin
From: Guoqing Jiang [ Upstream commit 9c8043f337f14d1743006dfc59c03e80a42e3884 ] To avoid memory leak, we need to free the cinfo which is allocated when node join cluster. Reviewed-by: NeilBrown Signed-off-by: Guoqing Jiang Signed-off-by: Shaohua Li Signed-off-by: Sasha Levin --- drivers/m

[PATCH AUTOSEL for 4.14 133/135] ath10k: fix core PCI suspend when WoWLAN is supported but disabled

2017-12-07 Thread alexander . levin
From: Brian Norris [ Upstream commit 96378bd2c6cda5f04d0f6da2cd35d4670a982c38 ] For devices where the FW supports WoWLAN but user-space has not configured it, we don't do any PCI-specific suspend/resume operations, because mac80211 doesn't call drv_suspend() when !wowlan. This has particularly b

[PATCH AUTOSEL for 4.14 134/135] ath10k: fix build errors with !CONFIG_PM

2017-12-07 Thread alexander . levin
From: Brian Norris [ Upstream commit 20665a9076d48e9abd9a2db13d307f58f7ef6647 ] Build errors have been reported with CONFIG_PM=n: drivers/net/wireless/ath/ath10k/pci.c:3416:8: error: implicit declaration of function 'ath10k_pci_suspend' [-Werror=implicit-function-declaration] drivers/net/wirel

[PATCH AUTOSEL for 4.9 030/156] irqchip/mvebu-odmi: Select GENERIC_MSI_IRQ_DOMAIN

2017-12-07 Thread alexander . levin
From: Arnd Bergmann [ Upstream commit fa23b9d1b89fdc34f296f02e496a20aeff5736be ] This driver uses the MSI domain but has no strict dependency on PCI_MSI, so we may run into a build failure when CONFIG_GENERIC_MSI_IRQ_DOMAIN is disabled: drivers/irqchip/irq-mvebu-odmi.c:152:15: error: variable '

[PATCH AUTOSEL for 4.9 022/156] Input: i8042 - add TUXEDO BU1406 (N24_25BU) to the nomux list

2017-12-07 Thread alexander . levin
From: Dmitry Torokhov [ Upstream commit a4c2a13129f7c5bcf81704c06851601593303fd5 ] TUXEDO BU1406 does not implement active multiplexing mode properly, and takes around 550 ms in i8042_set_mux_mode(). Given that the device does not have external AUX port, there is no downside in disabling the MUX

[PATCH AUTOSEL for 4.9 025/156] ASoC: rsnd: fix sound route path when using SRC6/SRC9

2017-12-07 Thread alexander . levin
From: Hiroyuki Yokoyama [ Upstream commit a1c2ff53726907aff5feb37e4cfd45c1ff626431 ] This patch fixes the problem that the missing value of the route path setting table and incorrect values are set in the CMD_ROUTE_SELECT register. Signed-off-by: Hiroyuki Yokoyama [Kuninori: shared data on MIX

[PATCH AUTOSEL for 4.9 026/156] blk-mq: Fix tagset reinit in the presence of cpu hot-unplug

2017-12-07 Thread alexander . levin
From: Sagi Grimberg [ Upstream commit 0067d4b020ea07a58540acb2c5fcd3364bf326e0 ] In case cpu was unplugged, we need to make sure not to assume that the tags for that cpu are still allocated. so check for null tags when reinitializing a tagset. Reported-by: Yi Zhang Signed-off-by: Sagi Grimberg

[PATCH AUTOSEL for 4.14 110/135] rtl8188eu: Fix a possible sleep-in-atomic bug in rtw_disassoc_cmd

2017-12-07 Thread alexander . levin
From: Jia-Ju Bai [ Upstream commit 08880f8e08cbd814e870e9d3ab9530abc1bce226 ] The driver may sleep under a spinlock, and the function call path is: rtw_set_802_11_bssid(acquire the spinlock) rtw_disassoc_cmd kzalloc(GFP_KERNEL) --> may sleep To fix it, GFP_KERNEL is replaced with GFP_ATOM

Re: [kernel-hardening][PATCH v4 0/3] arm: Makes ptdump resuable and add WX page checking

2017-12-07 Thread Kees Cook
On Wed, Dec 6, 2017 at 2:23 AM, Jinbum Park wrote: > Hi, > > Page table dumping code for arm64-x86 is reusable, > and they have function for WX page checking. > But arm doesn't have that. > > This path series are to makes ptdump reusable, > and add WX page checking for arm. > This is heavily based

[PATCH AUTOSEL for 4.9 029/156] dmaengine: Fix array index out of bounds warning in __get_unmap_pool()

2017-12-07 Thread alexander . levin
From: Matthias Kaehlcke [ Upstream commit 23f963e91fd81f44f6b316b1c24db563354c6be8 ] This fixes the following warning when building with clang and CONFIG_DMA_ENGINE_RAID=n : drivers/dma/dmaengine.c:1102:11: error: array index 2 is past the end of the array (which contains 1 element) [-Werror,-

[PATCH AUTOSEL for 4.9 002/156] KVM: nVMX: do not warn when MSR bitmap address is not backed

2017-12-07 Thread alexander . levin
From: Radim Krčmář [ Upstream commit 05d8d34611139f8435af90ac54b65eb31e82e388 ] Before trying to do nested_get_page() in nested_vmx_merge_msr_bitmap(), we have already checked that the MSR bitmap address is valid (4k aligned and within physical limits). SDM doesn't specify what happens if the t

[PATCH AUTOSEL for 4.14 125/135] icmp: don't fail on fragment reassembly time exceeded

2017-12-07 Thread alexander . levin
From: Matteo Croce [ Upstream commit 258bbb1b0e594ad5f5652cb526b3c63e6a7fad3d ] The ICMP implementation currently replies to an ICMP time exceeded message (type 11) with an ICMP host unreachable message (type 3, code 1). However, time exceeded messages can either represent "time to live exceede

[PATCH AUTOSEL for 4.14 119/135] xprtrdma: Don't defer fencing an async RPC's chunks

2017-12-07 Thread alexander . levin
From: Chuck Lever [ Upstream commit 8f66b1a529047a972cb9602a919c53a95f3d7a2b ] In current kernels, waiting in xprt_release appears to be safe to do. I had erroneously believed that for ASYNC RPCs, waiting of any kind in xprt_release->xprt_rdma_free would result in deadlock. I've done injection t

[PATCH AUTOSEL for 4.14 116/135] scsi: bfa: integer overflow in debugfs

2017-12-07 Thread alexander . levin
From: Dan Carpenter [ Upstream commit 3e351275655d3c84dc28abf170def9786db5176d ] We could allocate less memory than intended because we do: bfad->regdata = kzalloc(len << 2, GFP_KERNEL); The shift can overflow leading to a crash. This is debugfs code so the impact is very small. I fi

[PATCH AUTOSEL for 4.14 120/135] udf: Avoid overflow when session starts at large offset

2017-12-07 Thread alexander . levin
From: Jan Kara [ Upstream commit abdc0eb06964fe1d2fea6dd1391b734d0590365d ] When session starts beyond offset 2^31 the arithmetics in udf_check_vsd() would overflow. Make sure the computation is done in large enough type. Reported-by: Cezary Sliwa Signed-off-by: Jan Kara Signed-off-by: Sasha

Re: [PATCH v6 09/11] fs/pipe.c: export create_pipe_files() and replace_fd()

2017-12-07 Thread Jarkko Sakkinen
On Mon, Dec 04, 2017 at 11:00:59AM +0200, Jarkko Sakkinen wrote: > On Thu, Nov 30, 2017 at 10:38:30AM -0800, James Bottomley wrote: > > On Thu, 2017-11-30 at 18:43 +0200, Jarkko Sakkinen wrote: > > > On Wed, Nov 29, 2017 at 03:13:57PM -0800, Christoph Hellwig wrote: > > > > > > > > On Tue, Nov 28,

Re: [PATCH net-next v2 3/8] net: phy: meson-gxl: add read and write helpers for bank registers

2017-12-07 Thread Neil Armstrong
On 07/12/2017 16:46, Andrew Lunn wrote: > On Thu, Dec 07, 2017 at 03:27:10PM +0100, Jerome Brunet wrote: >> Add read and write helpers to manipulate banked registers on this PHY >> This helps clarify the settings applied to these registers in the init >> function and upcoming changes. >> >> Signed-

[PATCH AUTOSEL for 4.14 117/135] raid5-ppl: check recovery_offset when performing ppl recovery

2017-12-07 Thread alexander . levin
From: Artur Paszkiewicz [ Upstream commit 07719ff767dcd8cc42050f185d332052f3816546 ] If starting an array that is undergoing rebuild, make ppl recovery honor the recovery_offset of a member disk and don't read data that is not yet in-sync. Signed-off-by: Artur Paszkiewicz Signed-off-by: Shaohu

[PATCH AUTOSEL for 4.14 118/135] md-cluster: fix wrong condition check in raid1_write_request

2017-12-07 Thread alexander . levin
From: Guoqing Jiang [ Upstream commit 385f4d7f946b08f36f68b0a28e95a319925b6b62 ] The check used here is to avoid conflict between write and resync, however we used the wrong logic, it should be the inverse of the checking inside "if". Fixes: 589a1c4 ("Suspend writes in RAID1 if within range") S

Applied "ASoC: pcm186x: make pcm186x_dai_ops and pcm186x_adc_input_channel_sel_value static" to the asoc tree

2017-12-07 Thread Mark Brown
The patch ASoC: pcm186x: make pcm186x_dai_ops and pcm186x_adc_input_channel_sel_value static has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually some

<    7   8   9   10   11   12   13   14   15   16   >