[PATCH 4.14 078/178] iommu/amd: Limit the IOVA page range to the specified addresses

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Gary R Hook [ Upstream commit b92b4fb5c14257c0e7eae291ecc1f7b1962e1699 ] The extent of pages specified when applying a reserved region should include up to the last page of the range, but not

[PATCH v2] delayacct: Account blkio completion on the correct task

2017-12-18 Thread Josh Snyder
Before commit e33a9bba85a8 ("sched/core: move IO scheduling accounting from io_schedule_timeout() into scheduler"), delayacct_blkio_end was called after context-switching into the task which completed I/O. This resulted in double counting: the task would account a delay both waiting for I/O and for

[PATCH v3] x86-64/Xen: eliminate W+X mappings

2017-12-18 Thread Jan Beulich
A few thousand such pages are usually left around due to the re-use of L1 tables having been provided by the hypervisor (Dom0) or tool stack (DomU). Set NX in the direct map variant, which needs to be done in L2 due to the dual use of the re-used L1s. For x86_configure_nx() to actually do what it

[PATCH 4.14 104/178] bcache: fix wrong cache_misses statistics

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: "tang.junhui" [ Upstream commit c157313791a999646901b3e3c6888514ebc36d62 ] Currently, Cache missed IOs are identified by s->cache_miss, but actually, there are many situations that missed IOs

[PATCH 4.14 099/178] scsi: scsi_debug: write_same: fix error report

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Douglas Gilbert [ Upstream commit e33d7c56450b0a5c7290cbf9e1581fab5174f552 ] The scsi_debug driver incorrectly suggests there is an error with the SCSI WRITE SAME command when the number_of_l

[PATCH 4.14 101/178] media: usbtv: fix brightness and contrast controls

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Adam Sampson [ Upstream commit b3168c87c0492661badc3e908f977d79e7738a41 ] Because the brightness and contrast controls share a register, usbtv_s_ctrl needs to read the existing values for bot

[PATCH 4.14 097/178] misc: pci_endpoint_test: Fix failure path return values in probe

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Kishon Vijay Abraham I [ Upstream commit 80068c93688f6143100859c4856f895801c1a1d9 ] Return value of pci_endpoint_test_probe is not set properly in a couple of failure cases. Fix it here. Sig

[PATCH 4.14 077/178] badblocks: fix wrong return value in badblocks_set if badblocks are disabled

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Liu Bo [ Upstream commit 39b4954c0a1556f8f7f1fdcf59a227117fcd8a0b ] MD's rdev_set_badblocks() expects that badblocks_set() returns 1 if badblocks are disabled, otherwise, rdev_set_badblocks()

[PATCH 4.14 092/178] clk: tegra: Use readl_relaxed_poll_timeout_atomic() in tegra210_clock_init()

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Nicolin Chen [ Upstream commit 22ef01a203d27fee8b7694020b7e722db7efd2a7 ] Below is the call trace of tegra210_init_pllu() function: start_kernel() -> time_init() --> of_clk_init() ---

[PATCH 4.14 091/178] blk-mq-sched: dispatch from scheduler IFF progress is made in ->dispatch

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Ming Lei [ Upstream commit 5e3d02bbafad38975099b5848f5ebadedcf7bb7e ] When the hw queue is busy, we shouldn't take requests from the scheduler queue any more, otherwise it is difficult to do

[PATCH 4.14 090/178] clk: hi6220: mark clock cs_atb_syspll as critical

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Leo Yan [ Upstream commit d2a3671ebe6479483a12f94fcca63c058d95ad64 ] Clock cs_atb_syspll is pll used for coresight trace bus; when clock cs_atb_syspll is disabled and operates its child clock

[PATCH 4.14 087/178] clk: imx: imx7d: Fix parent clock for OCRAM_CLK

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Adriana Reus [ Upstream commit edc5a8e754aba9c6eaeddd18cb1e72462f99b16c ] The parent of OCRAM_CLK should be axi_main_root_clk and not axi_post_div. before: axi_src 1

[PATCH 4.14 043/178] ext4: support fast symlinks from ext3 file systems

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Andi Kleen commit fc82228a5e3860502dbf3bfa4a9570cb7093cf7f upstream. 407cd7fb83c0 (ext4: change fast symlink test to not rely on i_blocks) broke ~10 years old ext3 file systems created by 2.6.

[PATCH 4.14 076/178] target/file: Do not return error for UNMAP if length is zero

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jiang Yi [ Upstream commit 594e25e73440863981032d76c9b1e33409ceff6e ] The function fd_execute_unmap() in target_core_file.c calles ret = file->f_op->fallocate(file, mode, pos, len); Some fi

[PATCH 4.14 035/178] SUNRPC: Fix a race in the receive code path

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit 90d91b0cd371193d9dbfa9beacab8ab9a4cb75e0 upstream. We must ensure that the call to rpc_sleep_on() in xprt_transmit() cannot race with the call to xprt_complete_rqst().

[PATCH 4.14 041/178] dmaengine: dmatest: move callback wait queue to thread context

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Adam Wallis commit 6f6a23a213be51728502b88741ba6a10cda2441d upstream. Commit adfa543e7314 ("dmatest: don't use set_freezable_with_signal()") introduced a bug (that is in fact documented by the

[PATCH 4.14 040/178] posix-timer: Properly check sigevent->sigev_notify

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit cef31d9af908243421258f1df35a4a644604efbe upstream. timer_create() specifies via sigevent->sigev_notify the signal delivery for the new timer. The valid modes are SIGEV_N

[PATCH 4.14 039/178] eeprom: at24: change nvmem stride to 1

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: David Lechner commit 7f6d2ecd3d7acaf205ea7b3e96f9ffc55b92298b upstream. Trying to read the MAC address from an eeprom that has an offset that is not a multiple of 4 causes an error currently.

[PATCH 4.14 071/178] platform/x86: sony-laptop: Fix error handling in sony_nc_setup_rfkill()

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Markus Elfring [ Upstream commit f6c8a317ab208aee223776327c06f23342492d54 ] Source code review for a specific software refactoring showed the need for another correction because the error cod

[PATCH 4.14 073/178] target/iscsi: Fix a race condition in iscsit_add_reject_from_cmd()

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche [ Upstream commit cfe2b621bb18d86e93271febf8c6e37622da2d14 ] Avoid that cmd->se_cmd.se_tfo is read after a command has already been freed. Signed-off-by: Bart Van Assche Cc:

Re: [PATCH] KVM: vmx: speed up MSR bitmap merge

2017-12-18 Thread David Hildenbrand
> >>> + nested_vmx_disable_intercept_for_msr( >>> + msr_bitmap_l1, msr_bitmap_l0, >>> + APIC_BASE_MSR + (APIC_TASKPRI >> 4), >>> + MSR_TYPE_W); >> >> I'd vote for indenting the parameters properly (even though we exceed 80 >> chars by 1 then :) ) > > Ok, will do.

[PATCH 4.14 072/178] target/iscsi: Detect conn_cmd_list corruption early

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche [ Upstream commit 6eaf69e4ec075f5af236c0c89f75639a195db904 ] Certain behavior of the initiator can cause the target driver to send both a reject and a SCSI response. If that h

[PATCH 4.14 069/178] powerpc/pseries/vio: Dispose of virq mapping on vdevice unregister

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Tyrel Datwyler [ Upstream commit b8f89fea599d91e674497aad572613eb63181f31 ] When a vdevice is DLPAR removed from the system the vio subsystem doesn't bother unmapping the virq from the irq_do

[PATCH 4.14 066/178] netfilter: ipvs: Fix inappropriate output of procfs

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: KUWAZAWA Takuya [ Upstream commit c5504f724c86ee925e7ffb80aa342cfd57959b13 ] Information about ipvs in different network namespace can be seen via procfs. How to reproduce: # ip netns add

[PATCH 4.14 068/178] powerpc/ipic: Fix status get and status clear

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Christophe Leroy [ Upstream commit 6b148a7ce72a7f87c81cbcde48af014abc0516a9 ] IPIC Status is provided by register IPIC_SERSR and not by IPIC_SERMR which is the mask register. Signed-off-by:

[PATCH 4.14 038/178] x86/boot/compressed/64: Print error if 5-level paging is not supported

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Kirill A. Shutemov commit 6d7e0ba2d2be9e50cccba213baf07e0e183c1b24 upstream. If the machine does not support the paging mode for which the kernel was compiled, the boot process cannot continue

[PATCH 4.14 064/178] iommu/mediatek: Fix driver name

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- 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

Re: perf record: regression with latest PT fix

2017-12-18 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 18, 2017 at 08:23:46AM -0700, Mathieu Poirier escreveu: > On 18 December 2017 at 07:25, Adrian Hunter wrote: > > On 18/12/17 15:28, Alexander Shishkin wrote: > >> On Mon, Dec 18, 2017 at 05:03:53AM -0800, Stephane Eranian wrote: > >>> Hi, > >>> > >>> > >>> The following patch: > >>> >

Re: [PATCH v6 1/3] lib: Add strongly typed 64bit int_sqrt

2017-12-18 Thread Peter Zijlstra
On Mon, Dec 18, 2017 at 04:05:44PM +0100, Crt Mori wrote: > There is no option to perform 64bit integer sqrt on 32bit platform. > Added stronger typed int_sqrt64 enables the 64bit calculations to > be performed on 32bit platforms. Although int_sqrt() is a rough > approximation, the same algorithm i

[PATCH 4.14 063/178] PCI: Do not allocate more buses than available in parent

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Mika Westerberg [ Upstream commit a20c7f36bd3d20d245616ae223bb9d05dfb6f050 ] One can ask more buses to be reserved for hotplug bridges by passing pci=hpbussize=N in the kernel command line.

[PATCH 4.14 059/178] dmaengine: ti-dma-crossbar: Correct am335x/am43xx mux value type

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Peter Ujfalusi [ Upstream commit 288e7560e4d3e259aa28f8f58a8dfe63627a1bf6 ] The used 0x1f mask is only valid for am335x family of SoC, different family using this type of crossbar might have

Re: [PATCH v2] arm: kirkwood: dts: Use lower case for bindings notation

2017-12-18 Thread Gregory CLEMENT
Hi Mathieu, On ven., déc. 15 2017, Andrew Lunn wrote: > On Fri, Dec 15, 2017 at 06:07:11PM +0100, Mathieu Malaterre wrote: >> Improve the DTS files using lower case to fix the following dtc warnings: >> >> Warning (simple_bus_reg): Node /XXX@ simple-bus unit address format >> error, expected

[PATCH 4.14 060/178] mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create()

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Wei Yongjun [ Upstream commit d86fd113ebbb37726ef7c7cc6fd6d5ce377455d6 ] Fix to return a negative error code from the VID create error handling case instead of 0, as done elsewhere in this f

Re: [RFC v2 2/2] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2017-12-18 Thread Doug Anderson
Hi, On Mon, Dec 18, 2017 at 5:31 AM, Daniel Thompson wrote: > I think two different values on the userspace side should always map to > different values on the kernel side. This is what I thought originally, but I believe I've convinced myself that this contradicts other goals and therefore need

Re: BUG: spinlock bad magic (2)

2017-12-18 Thread Santosh Shilimkar
On 12/18/2017 4:36 AM, syzbot wrote: Hello, syzkaller hit the following crash on 6084b576dca2e898f5c101baef151f7bfdbb606d git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master compiler: gcc (GCC) 7.1.1 20170620 .config is attached Raw console output is attached. Unfortunate

[PATCH 4.14 055/178] scsi: aacraid: use timespec64 instead of timeval

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann [ Upstream commit 820f188659122602ab217dd80cfa32b3ac0c55c0 ] aacraid passes the current time to the firmware in one of two ways, either as year/month/day/... or as 32-bit unsign

[PATCH 4.14 057/178] PM / s2idle: Clear the events_check_enabled flag

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Rajat Jain [ Upstream commit 95b982b45122c57da2ee0b46cce70775e1d987af ] Problem: This flag does not get cleared currently in the suspend or resume path in the following cases: * In case som

[PATCH 4.14 037/178] x86/boot/compressed/64: Detect and handle 5-level paging at boot-time

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Kirill A. Shutemov commit 08529078d8d9adf689bf39cc38d53979a0869970 upstream. Prerequisite for fixing the current problem of instantaneous reboots when a 5-level paging kernel is booted on 4-le

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-18 Thread Knut Omang
On Mon, 2017-12-18 at 07:30 -0800, Joe Perches wrote: > On Mon, 2017-12-18 at 14:05 +0100, Knut Omang wrote: > > > Here is a list of the checkpatch messages for drivers/infiniband > > > sorted by type. > > > > > > Many of these might be corrected by using > > > > > > $ ./scripts/checkpatch.pl -f

Re: NFS: 82ms wakeup latency 4.14-rc4

2017-12-18 Thread Mike Galbraith
On Mon, 2017-12-18 at 11:35 -0500, J. Bruce Fields wrote: > > This probably just shows I don't understand the issues, but: isn't this > the job of preemption? If this were a PREEMPT kernel, yes, we'd check need_resched() on lock release etc, but it's a PREEMPT_VOLUNTARY kernel. -Mike

[PATCH 4.14 052/178] video: fbdev: au1200fb: Release some resources if a memory allocation fails

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Christophe JAILLET [ Upstream commit 451f130602619a17c8883dd0b71b11624faffd51 ] We should go through the error handling code instead of returning -ENOMEM directly. Signed-off-by: Christophe

[PATCH 4.14 051/178] video: udlfb: Fix read EDID timeout

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- 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_

[PATCH 4.14 053/178] video: fbdev: au1200fb: Return an error code if a memory allocation fails

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Christophe JAILLET [ Upstream commit 8cae353e6b01ac3f18097f631cdbceb5ff28c7f3 ] 'ret' is known to be 0 at this point. In case of memory allocation error in 'framebuffer_alloc()', return -ENOM

[PATCH 4.14 050/178] fbdev: controlfb: Add missing modes to fix out of bounds access

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven [ Upstream commit ac831a379d34109451b3c41a44a20ee10ecb615f ] Dan's static analysis says: drivers/video/fbdev/controlfb.c:560 control_setup() error: buffer overflow

Re: [PATCH 09/13] ocxl: Add trace points

2017-12-18 Thread Philippe Ombredanne
Frederic, On Mon, Dec 18, 2017 at 4:21 PM, Frederic Barrat wrote: > Define a few trace points so that we can use the standard tracing > mechanism for debug and/or monitoring. > > Signed-off-by: Frederic Barrat > --- /dev/null > +++ b/drivers/misc/ocxl/trace.h > @@ -0,0 +1,189 @@ > +/* > + * C

[PATCH 4.14 047/178] IB/mlx4: Fix RSSs QPC attributes assignments

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Guy Levi [ Upstream commit 108809a0571cd1e1b317c5c083a371e163e1f8f9 ] In the modify QP handler the base_qpn_udp field in the RSS QPC is overwrite later by irrelevant value assignment. Hence,

Re: [PATCH 3/3] trace: print address if symbol not found

2017-12-18 Thread Steven Rostedt
On Mon, 18 Dec 2017 10:53:32 +1100 "Tobin C. Harding" wrote: > Fixes behaviour modified by: commit bd6b239cdbb2 ("kallsyms: don't leak > address when symbol not found") > > Previous patch changed behaviour of kallsyms function sprint_symbol() to > return an error code instead of printing the add

[PATCH 4.14 045/178] ext4: add missing error check in __ext4_new_inode()

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit 996fc4477a0ea28226b30d175f053fb6f9a4fa36 upstream. It's possible for ext4_get_acl() to return an ERR_PTR. So we need to add a check for this case in __ext4_new_inode().

[PATCH 4.14 008/178] string.h: workaround for increased stack usage

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 146734b091430c80d80bb96b1139a96fb4bc830e upstream. The hardened strlen() function causes rather large stack usage in at least one file in the kernel, in particular when CO

[PATCH 4.14 036/178] iw_cxgb4: only insert drain cqes if wq is flushed

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Steve Wise commit c058ecf6e455fac7346d46197a02398ead90851f upstream. Only insert our special drain CQEs to support ib_drain_sq/rq() after the wq is flushed. Otherwise, existing but not yet pol

[PATCH] e1000e: Fix e1000_check_for_copper_link_ich8lan return value.

2017-12-18 Thread rwar...@gmx.de
hallo any chance to get this patch into stable ? https://marc.info/?l=linux-kernel&m=151297726823919&w=2 -- Greeting Ronald

[PATCH 4.14 000/178] 4.14.8-stable review

2017-12-18 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.8 release. There are 178 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed Dec 20 15:28:30 UTC 2017. Anything receiv

[PATCH 4.14 007/178] cifs: fix NULL deref in SMB2_read

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Ronnie Sahlberg commit a821df3f1af72aa6a0d573eea94a7dd2613e9f4e upstream. Signed-off-by: Ronnie Sahlberg Reviewed-by: Pavel Shilovsky Signed-off-by: Steve French Signed-off-by: Greg Kroah-H

[PATCH] x86/pti: hide unused pti_user_pagetable_walk_pte() function

2017-12-18 Thread Arnd Bergmann
The new pti_user_pagetable_walk_pte() function is not referenced when CONFIG_X86_VSYSCALL_EMULATION is disabled, so we need to either hide it or make the caller visible to gcc: arch/x86/mm/pti.c:204:15: error: 'pti_user_pagetable_walk_pte' defined but not used [-Werror=unused-function] Fixes: 9d

[PATCH 4.14 006/178] crypto: af_alg - fix NULL pointer dereference in

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit 887207ed9e5812ed9239b6d07185a2d35dda91db upstream. af_alg_free_areq_sgls() If allocating the ->tsgl member of 'struct af_alg_async_req' failed, during cleanup we derefere

[PATCH 4.14 004/178] crypto: hmac - require that the underlying hash algorithm is unkeyed

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit af3ff8045bbf3e32f1a448542e73abb4c8ceb6f1 upstream. Because the HMAC template didn't check that its underlying hash algorithm is unkeyed, trying to use "hmac(hmac(sha3-512-g

[PATCH 4.14 033/178] sched/rt: Do not pull from current CPU if only one CPU to pull

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt commit f73c52a5bcd1710994e53fbccc378c42b97a06b6 upstream. Daniel Wagner reported a crash on the BeagleBone Black SoC. This is a single CPU architecture, and does not have a fun

[PATCH 4.14 032/178] scsi: libsas: fix length error in sas_smp_handler()

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jason Yan commit 621f6401fdeefe96dfe9eab4b167c7c39f552bb0 upstream. The return value of smp_execute_task_sg() is the untransferred residual, but bsg_job_done() requires the length of payload r

[PATCH 4.14 031/178] scsi: core: Fix a scsi_show_rq() NULL pointer dereference

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 14e3062fb18532175af4d1c4073597999f7a2248 upstream. Avoid that scsi_show_rq() triggers a NULL pointer dereference if called after sd_uninit_command(). Swap the NULL point

Re: [PATCH] USB: serial: option: adding support for YUGA CLM920-NC5

2017-12-18 Thread Johan Hovold
[ +CC: Bjørn ] On Fri, Dec 15, 2017 at 06:32:03PM +0800, SZ Lin wrote: > This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option > driver. Could you specify what each interface is used for here? > Signed-off-by: Taiyi Wu > Signed-off-by: SZ Lin Is SZ your legal name? > ---

[PATCH] [v2] ARM: B15: fix unused label warnings

2017-12-18 Thread Arnd Bergmann
The new conditionally compiled code leaves some labels and one variable unreferenced when CONFIG_HOTPLUG_CPU and CONFIG_PM_SLEEP are disabled: arch/arm/mm/cache-b15-rac.c: In function 'b15_rac_init': arch/arm/mm/cache-b15-rac.c:353:1: error: label 'out_unmap' defined but not used [-Werror=unused-

[PATCH 4.14 029/178] arm64: Initialise high_memory global variable earlier

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Steve Capper commit f24e5834a2c3f6c5f814a417f858226f0a010ade upstream. The high_memory global variable is used by cma_declare_contiguous(.) before it is defined. We don't notice this as we co

[PATCH 4.14 030/178] arm64: fix CONFIG_DEBUG_WX address reporting

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Mark Rutland commit 1d08a044cf12aee37dfd54837558e3295287b343 upstream. In ptdump_check_wx(), we pass walk_pgd() a start address of 0 (rather than VA_START) for the init_mm. This means that any

Re: [PATCH v5 01/18] PCI: dwc: Use the DMA-API to get the MSI address

2017-12-18 Thread Gustavo Pimentel
Hi Lorenzo, Yes, I have retrieve patches and performed some basic tests without having any problems till now. However, I'm still trying to test the changes with our automated system. It's being very difficult to find a time slot available for running this tests. I hope in this week I could give

[PATCH 4.14 027/178] nfs: dont wait on commit in nfs_commit_inode() if there were no commit requests

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Scott Mayhew commit dc4fd9ab01ab379ae5af522b3efd4187a7c30a31 upstream. If there were no commit requests, then nfs_commit_inode() should not wait on the commit or mark the inode dirty, otherwis

[PATCH 4.14 024/178] xhci: Dont add a virt_dev to the devs array before its fully allocated

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit 5d9b70f7d52eb14bb37861c663bae44de9521c35 upstream. Avoid null pointer dereference if some function is walking through the devs array accessing members of a new virt_dev th

[PATCH 4.14 026/178] IB/core: Dont enforce PKey security on SMI MADs

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Jurgens commit 0fbe8f575b15585eec3326e43708fbbc024e8486 upstream. Per the infiniband spec an SMI MAD can have any PKey. Checking the pkey on SMI MADs is not necessary, and it seems that

[PATCH 4.14 021/178] mmc: core: apply NO_CMD23 quirk to some specific cards

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Fritz commit 91516a2a4734614d62ee3ed921f8f88acc67c000 upstream. To get an usdhc Apacer and some ATP SD cards work reliable, CMD23 needs to be disabled. This has been tested on i.MX6

[PATCH 4.14 022/178] ceph: drop negative child dentries before try pruning inodes alias

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Yan, Zheng commit 040d786032bf59002d374b86d75b04d97624005c upstream. Negative child dentry holds reference on inode's alias, it makes d_prune_aliases() do nothing. Signed-off-by: "Yan, Zheng"

[PATCH 4.14 023/178] usb: xhci: fix TDS for MTK xHCI1.1

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Chunfeng Yun commit 72b663a99c074a8d073e7ecdae446cfb024ef551 upstream. For MTK's xHCI 1.0 or latter, TD size is the number of max packet sized packets remaining in the TD, not including this T

[PATCH 4.14 018/178] usbip: fix stub_rx: harden CMD_SUBMIT path to handle malicious input

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Shuah Khan commit c6688ef9f29762e65bce325ef4acd6c675806366 upstream. Harden CMD_SUBMIT path to handle malicious input that could trigger large memory allocations. Add checks to validate transf

[PATCH 4.14 002/178] crypto: algif_aead - fix reference counting of null skcipher

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit b32a7dc8aef1882fbf983eb354837488cc9d54dc upstream. In the AEAD interface for AF_ALG, the reference to the "null skcipher" held by each tfm was being dropped in the wrong pl

[PATCH 4.14 019/178] usbip: prevent vhci_hcd driver from leaking a socket pointer address

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Shuah Khan commit 2f2d0088eb93db5c649d2a5e34a3800a8a935fc5 upstream. When a client has a USB device attached over IP, the vhci_hcd driver is locally leaking a socket pointer address via the /

[PATCH 4.14 013/178] USB: uas and storage: Add US_FL_BROKEN_FUA for another JMicron JMS567 ID

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: David Kozub commit 62354454625741f0569c2cbe45b2d192f8fd258e upstream. There is another JMS567-based USB3 UAS enclosure (152d:0578) that fails with the following error: [sda] tag#0 FAILED Resu

[PATCH 4.14 015/178] ovl: Pass ovl_get_nlink() parameters in right order

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Vivek Goyal commit 08d8f8a5b094b66b29936e8751b4a818b8db1207 upstream. Right now we seem to be passing index as "lowerdentry" and origin.dentry as "upperdentry". IIUC, we should pass these para

[PATCH 4.14 014/178] USB: core: prevent malicious bNumInterfaces overflow

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 48a4ff1c7bb5a32d2e396b03132d20d552c0eca7 upstream. A malicious USB device with crafted descriptors can cause the kernel to access unallocated memory by setting the bNumInterf

[PATCH 4.14 012/178] tracing: Allocate mask_str buffer dynamically

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Changbin Du commit 90e406f96f630c07d631a021fd4af10aac913e77 upstream. The default NR_CPUS can be very large, but actual possible nr_cpu_ids usually is very small. For my x86 distribution, the

[PATCH 4.9 160/177] tty fix oops when rmmod 8250

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: nixiaoming [ Upstream commit c79dde629d2027ca80329c62854a7635e623d527 ] After rmmod 8250.ko tty_kref_put starts kwork (release_one_tty) to release proc interface oops when accessing driver->dr

[PATCH v2 2/4] siox: add support for tracing

2017-12-18 Thread Uwe Kleine-König
Implement tracing for SIOX. There are events for the data that is written to the bus and for data being read from it. Acked-by: Gavin Schenk Signed-off-by: Uwe Kleine-König --- Notes: Changes since v1, sent with Message-Id: 20171207093008.20688-3-u.kleine-koe...@pengutronix.de -

[PATCH v2 0/4] siox: add support for new bus type

2017-12-18 Thread Uwe Kleine-König
Hello, this is v2 of the series that only differs to v1 by dropping a patch that has to go via the gpio tree. I'll send this separately once this series is "in". Other than that an ABI document was added in patch 1 and I dropped two WARN_ON that were only little helpful. Greg wondered about why w

[PATCH v2 4/4] MAINTAINERS: Add entry for SIOX

2017-12-18 Thread Uwe Kleine-König
Maintenance is split between Gavin who works for Eckelmann and so has the functional authority, knows the background and history of this bus system and me who designed most of the actual code with the old microcontroller code as reference. Acked-by: Gavin Schenk Signed-off-by: Uwe Kleine-König -

[PATCH v2 1/4] siox: new driver framework for eckelmann SIOX

2017-12-18 Thread Uwe Kleine-König
SIOX is a bus system invented at Eckelmann AG to control their building management and refrigeration systems. Traditionally the bus was implemented on custom microcontrollers, today Linux based machines are in use, too. The topology on a SIOX bus looks as follows: ,--->--DCLK-->

[PATCH v2 3/4] siox: add gpio bus driver

2017-12-18 Thread Uwe Kleine-König
This bus driver uses GPIOs to control the four SIOX bus lines. Acked-by: Gavin Schenk Signed-off-by: Uwe Kleine-König --- Notes: no Changes since v1, sent with Message-Id: 20171207093008.20688-4-u.kleine-koe...@pengutronix.de: .../bindings/siox/eckelmann,siox-gpio.txt | 19 +++

Re: NFS: 82ms wakeup latency 4.14-rc4

2017-12-18 Thread Mike Galbraith
On Mon, 2017-12-18 at 11:35 -0500, J. Bruce Fields wrote: > > Like I say, I don't really understand the issues here, so it's more a > question than an objection (I don't know any reason a > cond_resched() would be bad there.) Think of it this way: what all can be queued up behind that kworke

[PATCH] clk: check ops pointer on clock register

2017-12-18 Thread Jerome Brunet
Nothing really prevents a provider from (trying to) register a clock without providing the clock ops structure. We do check the individual fields before using them, but not the structure pointer itself. This may have the usual nasty consequences when the pointer is dereferenced, mostly likely when

[PATCH 4.14 001/178] mfd: fsl-imx25: Clean up irq settings during removal

2017-12-18 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Martin Kaiser commit 18f77393796848e68909e65d692c1d1436f06e06 upstream. When fsl-imx25-tsadc is compiled as a module, loading, unloading and reloading the module will lead to a crash. Unable

[PATCH 4.9 158/177] powerpc/perf/hv-24x7: Fix incorrect comparison in memord

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michael Ellerman [ Upstream commit 05c14c03138532a3cb2aa29c2960445c8753343b ] In the hv-24x7 code there is a function memord() which tries to implement a sort function return -1, 0, 1. However

[PATCH 4.9 161/177] usb: musb: da8xx: fix babble condition handling

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bin Liu commit bd3486ded7a0c313a6575343e6c2b21d14476645 upstream. When babble condition happens, the musb controller might automatically turns off VBUS. On DA8xx platform, the controller genera

[PATCH 4.9 157/177] scsi: hpsa: destroy sas transport properties before scsi_host

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Martin Wilck [ Upstream commit dfb2e6f46b3074eb85203d8f0888b71ec1c2e37a ] This patch cleans up a lot of warnings when unloading the driver. A current example of the stack trace starts with:

Re: BUG: spinlock bad magic (2)

2017-12-18 Thread Dmitry Vyukov
On Mon, Dec 18, 2017 at 5:46 PM, Santosh Shilimkar wrote: > On 12/18/2017 4:36 AM, syzbot wrote: >> >> Hello, >> >> syzkaller hit the following crash on >> 6084b576dca2e898f5c101baef151f7bfdbb606d >> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master >> compiler: gcc (GCC) 7.

[PATCH 4.9 159/177] soc: mediatek: pwrap: fix compiler errors

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Matthias Brugger [ Upstream commit fb2c1934f30577756e55e24e8870b45c78da3bc2 ] When compiling using sparse, we got the following error: drivers/soc/mediatek/mtk-pmic-wrap.c:686:25: error: dubio

[PATCH 4.9 156/177] scsi: hpsa: cleanup sas_phy structures in sysfs when unloading

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Martin Wilck [ Upstream commit 55ca38b4255bb336c2d35990bdb2b368e19b435a ] I am resubmitting this patch on behalf of Martin Wilck with his permission. The original patch can be found here: htt

Re: [RFC GIT PULL] Page Table Isolation (PTI), x86 syscall entry code changes

2017-12-18 Thread Linus Torvalds
On Sun, Dec 17, 2017 at 7:24 AM, Ingo Molnar wrote: > > Please pull the latest WIP.x86-pti.entry-for-linus git tree from: Ok, with rc4 out of the way, I've pulled this. Will do some boot testing in addition to the usual build testing before pushing out, although I don't expect any issues.

[PATCH 4.9 175/177] IB/ipoib: Grab rtnl lock on heavy flush when calling ndo_open/stop

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alex Vesker [ Upstream commit b4b678b06f6eef18bff44a338c01870234db0bc9 ] When ndo_open and ndo_stop are called RTNL lock should be held. In this specific case ipoib_ib_dev_open calls the offlo

[PATCH 4.9 173/177] macvlan: Only deliver one copy of the frame to the macvlan interface

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Duyck [ Upstream commit dd6b9c2c332b40f142740d1b11fb77c653ff98ea ] This patch intoduces a slight adjustment for macvlan to address the fact that in source mode I was seeing two copie

[PATCH 4.9 154/177] RDMA/cxgb4: Declare stag as __be32

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Leon Romanovsky [ Upstream commit 35fb2a88ed4b77356fa679a8525c869a3594e287 ] The scqe.stag is actually __b32, fix it. drivers/infiniband/hw/cxgb4/cq.c:754:52: warning: cast to restricted __

[PATCH 4.9 171/177] scsi: bfa: integer overflow in debugfs

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter [ Upstream commit 3e351275655d3c84dc28abf170def9786db5176d ] We could allocate less memory than intended because we do: bfad->regdata = kzalloc(len << 2, GFP_KERNEL); T

[PATCH 4.9 169/177] scsi: sd: change manage_start_stop to bool in sysfs interface

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: weiping zhang [ Upstream commit 623401ee33e42cee64d333877892be8db02951eb ] /sys/class/scsi_disk/0:2:0:0/manage_start_stop can be changed to 0 unexpectly by writing an invalid string. Signed-o

[PATCH 4.9 166/177] vt6655: Fix a possible sleep-in-atomic bug in vt6655_suspend

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jia-Ju Bai [ Upstream commit 42c8eb3f6e15367981b274cb79ee4657e2c6949d ] The driver may sleep under a spinlock, and the function call path is: vt6655_suspend (acquire the spinlock) pci_set_po

[PATCH 4.9 168/177] rtl8188eu: Fix a possible sleep-in-atomic bug in rtw_disassoc_cmd

2017-12-18 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- 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_d

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