[PATCH 4.14 052/140] drm/i915: Fix rsvd2 mask when out-fence is returned

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Daniele Ceraolo Spurio commit b1b13780ab06ef8c770dd9cbe31dac549a11630e upstream. GENMASK_ULL wants the high bit of the mask first. The current value cancels the in-fence when an out-fence is r

[PATCH 4.14 048/140] RDMA/mlx5: Fix integer overflow while resizing CQ

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Leon Romanovsky commit 28e9091e3119933c38933cb8fc48d5618eb784c8 upstream. The user can provide very large cqe_size which will cause to integer overflow as it can be seen in the following UBSAN

Re: [PATCH v3 02/10] video: add support of MIPI DSI interface

2018-03-13 Thread Simon Glass
Hi, On 13 March 2018 at 07:50, yannick fertre wrote: > > Mipi_display.c contains a set of dsi helpers. > This file is a copy of file drm_mipi_dsi.c (linux kernel). > > Signed-off-by: yannick fertre > --- > drivers/video/Kconfig| 7 + > drivers/video/Makefile | 1 + > drivers/v

[PATCH 4.14 058/140] scsi: core: Avoid that ATA error handling can trigger a kernel hang or oops

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 3be8828fc507cdafe7040a3dcf361a2bcd8e305b upstream. Avoid that the recently introduced call_rcu() call in the SCSI core triggers a double call_rcu() call. Reported-by: N

[PATCH 4.14 039/140] scsi: qla2xxx: Defer processing of GS IOCB calls

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Giridhar Malavali commit 5d3300a9b8b122b4743aed5a178bf12c87e2b8c9 upstream. This patch defers processing of GS IOCB calls from interrupt context to avoid hardware spinlock recursion. Followin

[PATCH 4.14 033/140] scsi: qla2xxx: Fix Relogin being triggered too fast

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 4005a995668b8fd58f4cf1460dd4cf63efa18363 upstream. Current driver design schedules relogin process via DPC thread every 1 second. In a large fabric, this DPC thread tries to

[PATCH 4.14 028/140] scsi: qla2xxx: Fix re-login for Nport Handle in use

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit a084fd68e1d26174c4cc1a13fbb0112f468ff7f4 upstream. When NPort Handle is in use, driver needs to mark the handle as used and pick another. Instead, the code clears the handle

[PATCH 4.14 035/140] scsi: qla2xxx: Fix abort command deadlock due to spinlock

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit b0dcce746b32ac573343ad39cb3dc485030de95e upstream. Original code acquires hardware_lock to add Abort IOCB onto driver request queue for processing. However, abort_command() w

[PATCH 4.14 041/140] scsi: qla2xxx: Fix system crash in qlt_plogi_ack_unref

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 19759033e0d0beed70421ab9258f5ede79e070ae upstream. Fix system crash due to NULL pointer access. qlt_plogi_ack_t and fc_port structures were not properly bound before calling

[PATCH 4.14 030/140] scsi: qla2xxx: Serialize GPNID for multiple RSCN

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 2d73ac6102d943c4be4945735a338005359c6abc upstream. GPNID is triggered by RSCN. For multiple RSCNs of the same affected NPORT ID, serialize the GPNID to prevent confusion. Fi

[PATCH 4.14 015/140] netfilter: ebtables: CONFIG_COMPAT: dont trust userland offsets

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit b71812168571fa55e44cdd0254471331b9c4c4c6 upstream. We need to make sure the offsets are not out of range of the total size. Also check that they are in ascending order.

[PATCH 4.14 006/140] ARM: omap2: hide omap3_save_secure_ram on non-OMAP3 builds

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 863204cfdae98626a92535ac928ad79f4d6b74ff upstream. In configurations without CONFIG_OMAP3 but with secure RAM support, we now run into a link failure: arch/arm/mach-omap2

[PATCH 4.15 134/146] scsi: qla2xxx: Fix Relogin being triggered too fast

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 4005a995668b8fd58f4cf1460dd4cf63efa18363 upstream. Current driver design schedules relogin process via DPC thread every 1 second. In a large fabric, this DPC thread tries to

[PATCH 4.15 145/146] pNFS: Prevent the layout header refcount going to zero in pnfs_roc()

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit 9c6376ebddad585da4238532dd6d90ae23ffee67 upstream. Ensure that we hold a reference to the layout header when processing the pNFS return-on-close so that the refcount val

[PATCH 4.15 137/146] scsi: qla2xxx: Replace fcport alloc with qla2x00_alloc_fcport

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 063b36d6b0ad74c748d536f5cb47bac2f850a0fa upstream. Current code manually allocate an fcport structure that is not properly initialize. Replace kzalloc with qla2x00_alloc_fcpo

[PATCH 4.15 097/146] objtool: Use existing global variables for options

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit 43a4525f80534530077683f6472d8971646b0ace upstream. Use the existing global variables instead of passing them around and creating duplicate global variables. Signed-off-b

[PATCH 4.15 139/146] scsi: qla2xxx: Clear loop id after delete

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit ba743f9148e951abe1c94f89c174ec8e44fb145b upstream. Clear loop id after delete to prevent session invalidation of stale session. Fixes: 726b85487067d ("qla2xxx: Add framework

[PATCH 4.15 144/146] NFS: Fix an incorrect type in struct nfs_direct_req

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit d9ee65539d3eabd9ade46cca1780e3309ad0f907 upstream. The start offset needs to be of type loff_t. Fixed: 5fadeb47dcc5c ("nfs: count DIO good bytes correctly with mirrorin

[PATCH 4.15 135/146] scsi: qla2xxx: Fix PRLI state check

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 23c645595dab7b414f23639d0a428a07515807df upstream. Get Port Database MBX cmd is to validate current Login state upon PRLI completion. Current code looks at the last login sta

[PATCH 4.15 103/146] x86/kprobes: Fix kernel crash when probing .entry_trampoline code

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Francis Deslauriers commit c07a8f8b08ba683ea24f3ac9159f37ae94daf47f upstream. Disable the kprobe probing of the entry trampoline: .entry_trampoline is a code area that is used to ensure page

[PATCH 4.15 100/146] objtool, retpolines: Integrate objtool with retpoline support more closely

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit d5028ba8ee5a18c9d0bb926d883c28b370f89009 upstream. Disable retpoline validation in objtool if your compiler sucks, and otherwise select the validation stuff for CONFIG_RE

[PATCH 4.15 122/146] tpm: only attempt to disable the LPC CLKRUN if is already enabled

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Javier Martinez Canillas commit 6c9f0ce0dffe64da2204f38b0fd90f3ae2a8903c upstream. Commit 5e572cab92f0 ("tpm: Enable CLKRUN protocol for Braswell systems") added logic in the TPM TIS driver to

[PATCH 4.15 118/146] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Azhar Shaikh commit c382babccba2c82fe57f9e647f290fb7bf4d130d upstream. Move static variable ilb_base_addr to tpm_tis_data. Cc: sta...@vger.kernel.org Signed-off-by: Azhar Shaikh Reviewed-by:

[PATCH 4.15 116/146] netfilter: ipv6: fix use-after-free Write in nf_nat_ipv6_manip_pkt

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit b078556aecd791b0e5cb3a59f4c3a14273b52121 upstream. l4proto->manip_pkt() can cause reallocation of skb head so pointer to the ipv6 header must be reloaded. Reported-and

[PATCH 4.15 108/146] netfilter: add back stackpointer size checks

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit 57ebd808a97d7c5b1e1afb937c2db22beba3c1f8 upstream. The rationale for removing the check is only correct for rulesets generated by ip(6)tables. In iptables, a jump can

[PATCH 4.15 068/146] ALSA: hda/realtek: Limit mic boost on T480

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Berg commit 85981dfd6b0a0fd9ed87ca4a525981b67c21f098 upstream. The internal mic boost on the T480 is too high. Fix this by applying the ALC269_FIXUP_LIMIT_INT_MIC_BOOST fixup to the m

[PATCH 4.15 110/146] netfilter: xt_hashlimit: fix lock imbalance

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit de526f401284e1638d4c97cb5a4c292ac3f37655 upstream. syszkaller found that rcu was not held in hashlimit_mt_common() We only need to enable BH at this point. Fixes: bea7464

[PATCH 4.15 107/146] watchdog: hpwdt: Remove legacy NMI sourcing.

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Jerry Hoemann commit 2b3d89b402b085b08498e896c65267a145bed486 upstream. Gen8 and prior Proliant systems supported the "CRU" interface to firmware. This interfaces allows linux to "call back"

[PATCH 4.15 073/146] ALSA: hda - Fix a wrong FIXUP for alc289 on Dell machines

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Hui Wang commit d5078193e56bb24f4593f00102a3b5e07bb84ee0 upstream. With the alc289, the Pin 0x1b is Headphone-Mic, so we should assign ALC269_FIXUP_DELL4_MIC_NO_PRESENCE rather than ALC225_FIX

[PATCH 4.15 076/146] scsi: qla2xxx: Fix NULL pointer crash due to probe failure

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: himanshu.madh...@cavium.com commit d64d6c5671db5e693a0caaee79f2571b098749c9 upstream. This patch fixes regression added by commit d74595278f4ab ("scsi: qla2xxx: Add multiple queue pair functio

[PATCH 4.15 096/146] x86/mm/sme, objtool: Annotate indirect call in sme_encrypt_execute()

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit 531bb52a869a9c6e08c8d17ba955fcbfc18037ad upstream. This is boot code and thus Spectre-safe: we run this _way_ before userspace comes along to have a chance to poison our

[PATCH 4.15 094/146] x86/paravirt, objtool: Annotate indirect calls

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit 3010a0663fd949d122eca0561b06b0a9453f7866 upstream. Paravirt emits indirect calls which get flagged by objtool retpoline checks, annotate it away because all these indirec

[PATCH 4.15 088/146] x86-64/realmode: Add instruction suffix

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Jan Beulich commit 8554004a0231dedf44d4d62147fb3d6a6db489aa upstream. Omitting suffixes from instructions in AT&T mode is bad practice when operand size cannot be determined by the assembler f

[PATCH 4.15 084/146] x86/mm: Remove stale comment about KMEMCHECK

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Jann Horn commit 3b3a9268bba62b35a29bafe0931715b1725fdf26 upstream. This comment referred to a conditional call to kmemcheck_hide() that was here until commit 4950276672fc ("kmemcheck: remove

[PATCH 4.15 085/146] x86/asm: Improve how GEN_*_SUFFIXED_RMWcc() specify clobbers

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Jan Beulich commit 700b7c5409c3e9da279fbea78cf28a78fbc176cd upstream. Commit: df3405245a ("x86/asm: Add suffix macro for GEN_*_RMWcc()") ... introduced "suffix" RMWcc operations, adding bo

[PATCH 4.15 089/146] Revert "x86/retpoline: Simplify vmexit_fill_RSB()"

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: David Woodhouse commit d1c99108af3c5992640aa2afa7d2e88c3775c06e upstream. This reverts commit 1dde7415e99933bb7293d6b2843752cbdb43ec11. By putting the RSB filling out of line and calling it, w

[PATCH 4.15 078/146] dt-bindings: Document mti,mips-cpc binding

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Paul Burton commit aece34cd576c7625181b0488a8129c1e165355f7 upstream. Document a binding for the MIPS Cluster Power Controller (CPC) that allows the device tree to specify where the CPC regist

[PATCH 4.15 082/146] x86/entry: Reduce the code footprint of the idtentry macro

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Dominik Brodowski commit 9e809d15d6b692fa061d74be7aaab1c79f6784b8 upstream. Play a little trick in the generic PUSH_AND_CLEAR_REGS macro to insert the GP registers "above" the original return

[PATCH 4.15 046/146] bug: use %pB in BUG and stack protector failure

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 0862ca422b79cb5aa70823ee0f07f6b468f86070 upstream. The BUG and stack protector reports were still using a raw %p. This changes it to %pB for more meaningful output. Link: ht

[PATCH 4.15 064/146] perf tools: Fix trigger class trigger_on()

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Adrian Hunter commit de19e5c3c51fdb1ff20d0f61d099db902ff7494b upstream. trigger_on() means that the trigger is available but not ready, however trigger_on() was making it ready. That can segfa

[PATCH 4.15 067/146] ALSA: hda/realtek - Add headset mode support for Dell laptop

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Kailang Yang commit ae104a21e52b1f9aab342cf6924405177b720069 upstream. This platform was only one phone Jack. Add dummy lineout verb to fix automute mode disable. This just the workaround. [

[PATCH 4.15 061/146] bcache: dont attach backing with duplicate UUID

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Michael Lyle commit 86755b7a96faed57f910f9e6b8061e019ac1ec08 upstream. This can happen e.g. during disk cloning. This is an incomplete fix: it does not catch duplicate UUIDs earlier when thin

[PATCH 4.15 058/146] dm bufio: avoid false-positive Wmaybe-uninitialized warning

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 590347e4000356f55eb10b03ced2686bd74dab40 upstream. gcc-6.3 and earlier show a new warning after a seemingly unrelated change to the arm64 PAGE_KERNEL definition: In file

[PATCH 4.15 054/146] arm64: mm: fix thinko in non-global page table attribute check

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Ard Biesheuvel commit 753e8abc36b2c966caea075db0c845563c8a19bf upstream. The routine pgattr_change_is_safe() was extended in commit 4e6020565596 ("arm64: mm: Permit transitioning from Global t

[PATCH 4.15 021/146] drm: Allow determining if current task is output poll worker

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Lukas Wunner commit 25c058ccaf2ebbc3e250ec1e199e161f91fe27d4 upstream. Introduce a helper to determine if the current task is an output poll worker. This allows us to fix a long-standing dead

[PATCH 4.15 016/146] drm/i915/perf: fix perf stream opening lock

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Lionel Landwerlin commit f616f2830c1ed79245cfeca900f7e8a3b3c08c06 upstream. We're seeing on CI that some contexts don't have the programmed OA period timer that directs the OA unit on how ofte

[PATCH 4.15 041/146] MIPS: ath25: Check for kzalloc allocation failure

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Colin Ian King commit 1b22b4b28fd5fbc51855219e3238b3ab81da8466 upstream. Currently there is no null check on a failed allocation of board_data, and hence a null pointer dereference will occurr

[PATCH 4.15 020/146] workqueue: Allow retrieval of current tasks work struct

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Lukas Wunner commit 27d4ee03078aba88c5e07dcc4917e8d01d046f38 upstream. Introduce a helper to retrieve the current task's work struct if it is a workqueue worker. This allows us to fix a long-

[PATCH 4.15 032/146] drm/amd/display: Default HDMI6G support to true. Log VBIOS table error.

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Harry Wentland commit caf0a9030d75509f3cacefe466d6d69d26e3dee6 upstream. There have been many reports of Ellesmere and Baffin systems not being able to drive HDMI 4k60 due to the fact that we

[PATCH 4.15 034/146] drm/amdgpu: Notify sbios device ready before send request

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Rex Zhu commit 1bced75f4ab04bec55aecb57d99435dc6d0ae5a0 upstream. it is required if a platform supports PCIe root complex core voltage reduction. After receiving this notification, SBIOS can a

[PATCH 4.15 023/146] drm/radeon: Fix deadlock on runtime suspend

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Lukas Wunner commit 15734feff2bdac24aa3266c437cffa42851990e3 upstream. radeon's ->runtime_suspend hook calls drm_kms_helper_poll_disable(), which waits for the output poll worker to finish if

[PATCH 4.15 030/146] drm/radeon: insist on 32-bit DMA for Cedar on PPC64/PPC64LE

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Ben Crocker commit 2c83029cda55a5e7665c7c6326909427d6a01350 upstream. In radeon_device_init, set the need_dma32 flag for Cedar chips (e.g. FirePro 2270). This fixes, or at least works around,

[PATCH 4.15 009/146] drm/i915: Check for fused or unused pipes

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Mika Kahola commit 9965db26ac0548648309f506dc155a92daa2158f upstream. We may have fused or unused pipes in our system. Let's check that the pipe in question is within limits of accessible pipe

[PATCH 4.15 006/146] mac80211_hwsim: dont use WQ_MEM_RECLAIM

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit ce162bfbc0b601841886965baba14877127c7c7c upstream. We're obviously not part of a memory reclaim path, so don't set the flag. This also causes a warning in check_flush_dep

[PATCH 4.15 007/146] net/smc: fix NULL pointer dereference on sock_create_kern() error path

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Davide Caratti commit a5dcb73b96a9d21431048bdaac02d9e96f386da3 upstream. when sock_create_kern(..., a) returns an error, 'a' might not be a valid pointer, so it shouldn't be dereferenced to re

Re: [PATCH 18/31] perf vendor events arm64: Add armv8-recommended.json

2018-03-13 Thread John Garry
On 13/03/2018 15:08, Ingo Molnar wrote: * John Garry wrote: On 13/03/2018 14:26, Ingo Molnar wrote: * Arnaldo Carvalho de Melo wrote: From: John Garry Add JSON for ARMv8 IMPLEMENTATION DEFINED recommended events. The JSON is copied from ARMv8 architecture reference manual, available h

[PATCH v2] clk: mvebu: armada-38x: add support for missing clocks

2018-03-13 Thread Richard Genoud
Clearfog boards can come with a CPU clocked at 1600MHz (commercial) or 1333MHz (industrial). They have also some dip-switches to select a different clock (666, 800, 1066, 1200). The funny thing is that the recovery button is on the MPP34 fq selector. So, when booting an industrial board with this

Re: [PATCH v5 2/6] staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver

2018-03-13 Thread Andrew Lunn
> Hello Andrew, > > The current driver implementation uses only a single FDB for the switch, > so it is not possible configure multiple flooding domains to accommodate > ports partitioning. Ah, O.K. Rather than break somebodies network by wrongly flooding, it would be better to return -EOPNOTSUP

Re: [PATCH 3/8] block: sed-opal: unify cmd start and finalize

2018-03-13 Thread Scott Bauer
On Tue, Mar 13, 2018 at 02:08:56PM +0100, Jonas Rabenstein wrote: > Every step starts with resetting the cmd buffer as well as the comid and > constructs the appropriate OPAL_CALL command. Consequently, those > actions may be combined into one generic function. > > Signed-off-by: Jonas Rabenstein

[PATCH] iio: potentiometer: ds1803: remove VLA usage

2018-03-13 Thread Gustavo A. R. Silva
In preparation to enabling -Wvla, remove VLA. In this particular case use macro ARRAY_SIZE so the length of array _result_ can be computed at preprocessing time. The use of stack Variable Length Arrays needs to be avoided, as they can be a vector for stack exhaustion, which can be both a runtime b

Re: [PATCH] perf annotate: Don't prepend symfs path to build_id_filename

2018-03-13 Thread Martin Vuille
On 03/09/18 14:07, Arnaldo Carvalho de Melo wrote: Em Sun, Feb 11, 2018 at 02:19:37PM -0500, Martin Vuille escreveu: build_id_filename already contains symfs path if applicable, so don't prepend it a second time. Where is the analysis that shows that that is the case? I looked here at the imple

Re: [PATCH] perf tools arm64: Add libdw DWARF post unwind support for ARM64

2018-03-13 Thread Martin Vuille
On 03/09/18 13:24, Arnaldo Carvalho de Melo wrote: - "perf unwind: Report error from dwfl_attach_state" https://patchwork.kernel.org/patch/10211483/ [Martin, I guess it would help if you replied-all that patch and added your signed-off-by.] Right, the S-o-B is needed S-o-B has be

Re: [PATCH 18/31] perf vendor events arm64: Add armv8-recommended.json

2018-03-13 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 13, 2018 at 04:08:38PM +0100, Ingo Molnar escreveu: > > * John Garry wrote: > > > On 13/03/2018 14:26, Ingo Molnar wrote: > > > > > > * Arnaldo Carvalho de Melo wrote: > > > > > > > From: John Garry > > > > > > > > Add JSON for ARMv8 IMPLEMENTATION DEFINED recommended events. >

Re: [PATCH v3 00/10] splash screen on the stm32f769 disco board

2018-03-13 Thread Daniel Vetter
On Tue, Mar 13, 2018 at 02:49:59PM +0100, yannick fertre wrote: > Version 3: > - Replace some pr_error, pr_warn or pr_info by dev_error, dev_warn & dev_info. > - Refresh stm32f769-disco_defconfig with last modification done on > v2018.3-rc4. > - rework include files ordering. > > Version 2: > - R

Re: [PATCH v4 02/10] include: Move compat_timespec/ timeval to compat_time.h

2018-03-13 Thread kbuild test robot
Hi Deepa, Thank you for the patch! Yet something to improve: [auto build test ERROR on ] url: https://github.com/0day-ci/linux/commits/Deepa-Dinamani/posix_clocks-Prepare-syscalls-for-64-bit-time_t-conversion/20180313-203305 base: config: arm64-allnoconfig (attached as .config) compiler

Re: [PATCH 4.13 28/43] SMB3: Validate negotiate request must always be signed

2018-03-13 Thread Steve French
There will be a fix needed to correct an oops in calc_signature, besides the easy patch (smb3 validate negotiate patch). On Tue, Mar 13, 2018 at 4:21 AM, Greg Kroah-Hartman wrote: > On Sun, Mar 11, 2018 at 07:37:55PM -0700, Steve French wrote: >> Just got a wireshark trace - this is a fairly triv

Re: [PATCH 18/31] perf vendor events arm64: Add armv8-recommended.json

2018-03-13 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 13, 2018 at 03:26:18PM +0100, Ingo Molnar escreveu: > > * Arnaldo Carvalho de Melo wrote: > > > From: John Garry > > > > Add JSON for ARMv8 IMPLEMENTATION DEFINED recommended events. > > > > The JSON is copied from ARMv8 architecture reference manual, available > > here: > > > >

Re: [PATCH v1 0/4] perf annotate: Create a new '--tui-dump' option

2018-03-13 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 13, 2018 at 10:16:50PM +0800, Jin Yao escreveu: > There is a requirement to let perf annotate support displaying the IPC/Cycle. > In previous patch, this is supported in TUI mode. While it's not convenient > for users since they have to take screen shots and copy/paste data. > > This p

RE: [PATCH v5 2/6] staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver

2018-03-13 Thread Razvan Stefanescu
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Tuesday, March 13, 2018 4:23 PM > To: Razvan Stefanescu > Cc: gre...@linuxfoundation.org; de...@driverdev.osuosl.org; linux- > ker...@vger.kernel.org; net...@vger.kernel.org; Alexander Graf > ; a...@arndb.de; Alexan

[PATCH] ARM: dts: at91: at91sam9g25: fix mux-mask pinctrl property

2018-03-13 Thread Nicolas Ferre
There are only 19 PIOB pins having primary names PB0-PB18. Not all of them have a 'C' function. So the pinctrl property mask ends up being the same as the other SoC of the at91sam9x5 series. Reported-by: Marek Sieranski Signed-off-by: Nicolas Ferre Cc: # v3.8+ --- arch/arm/boot/dts/at91sam9g25

[tip:perf/core] perf/core: Implement fast breakpoint modification via _IOC_MODIFY_ATTRIBUTES

2018-03-13 Thread tip-bot for Milind Chabbi
Commit-ID: 32ff77e8cc9e66cc4fb38098f64fd54cc8f54573 Gitweb: https://git.kernel.org/tip/32ff77e8cc9e66cc4fb38098f64fd54cc8f54573 Author: Milind Chabbi AuthorDate: Mon, 12 Mar 2018 14:45:47 +0100 Committer: Ingo Molnar CommitDate: Tue, 13 Mar 2018 15:24:02 +0100 perf/core: Implement fast

[tip:efi/urgent] efi/libstub/tpm: Initialize pointer variables to zero for mixed mode

2018-03-13 Thread tip-bot for Ard Biesheuvel
Commit-ID: 79832f0b5f718e0023d9dd73e6845310609a564d Gitweb: https://git.kernel.org/tip/79832f0b5f718e0023d9dd73e6845310609a564d Author: Ard Biesheuvel AuthorDate: Tue, 13 Mar 2018 14:09:21 + Committer: Ingo Molnar CommitDate: Tue, 13 Mar 2018 15:28:29 +0100 efi/libstub/tpm: Initial

[tip:perf/core] perf tests: Add breakpoint accounting/modify test

2018-03-13 Thread tip-bot for Jiri Olsa
Commit-ID: 032db28e5fa3594dfa3df585c54d8b612657f537 Gitweb: https://git.kernel.org/tip/032db28e5fa3594dfa3df585c54d8b612657f537 Author: Jiri Olsa AuthorDate: Mon, 12 Mar 2018 14:45:48 +0100 Committer: Ingo Molnar CommitDate: Tue, 13 Mar 2018 15:23:37 +0100 perf tests: Add breakpoint ac

Re: [PATCH 1/1] efi/libstub: tpm: zero initialize pointer variables for mixed mode

2018-03-13 Thread Javier Martinez Canillas
[adding linux-integrity and tpmdd-devel since this was discussed in these ML too] On 03/13/2018 03:09 PM, Ard Biesheuvel wrote: > As reported by Jeremy, running the new TPM libstub code in mixed mode > (i.e., 64-bit kernel on 32-bit UEFI) results in hangs when invoking > the TCG2 protocol, or whe

[PATCH] drm/nouveau/secboot: remove VLA usage

2018-03-13 Thread Gustavo A. R. Silva
In preparation to enabling -Wvla, remove VLA. In this particular case directly use macro NVKM_MSGQUEUE_CMDLINE_SIZE instead of local variable cmdline_size. Also, remove cmdline_size as it is not actually useful anymore. The use of stack Variable Length Arrays needs to be avoided, as they can be a

Re: [tip:x86/mm] x86/tme: Detect if TME and MKTME is activated by BIOS

2018-03-13 Thread Dave Hansen
On 03/13/2018 05:49 AM, Kirill A. Shutemov wrote: > On Tue, Mar 13, 2018 at 03:12:02PM +1300, Kai Huang wrote: >> It seems setup_pku() will call get_cpu_cap to restore c->x86_phys_bits >> later? In which case I think you need to change setup_pku as well. > Thanks for catching this. > > I think set

Re: [PATCH 18/31] perf vendor events arm64: Add armv8-recommended.json

2018-03-13 Thread Ingo Molnar
* John Garry wrote: > On 13/03/2018 14:26, Ingo Molnar wrote: > > > > * Arnaldo Carvalho de Melo wrote: > > > > > From: John Garry > > > > > > Add JSON for ARMv8 IMPLEMENTATION DEFINED recommended events. > > > > > > The JSON is copied from ARMv8 architecture reference manual, available >

[PATCH] net: dev_forward_skb(): Scrub packet's per-netns info only when crossing netns

2018-03-13 Thread Liran Alon
Before this commit, dev_forward_skb() always cleared packet's per-network-namespace info. Even if the packet doesn't cross network namespaces. The comment above dev_forward_skb() describes that this is done because the receiving device may be in another network namespace. However, this case can ea

[PATCH] security: Fix IMA Kconfig for dependencies on ARM64

2018-03-13 Thread Safford, David (GE Global Research, US)
> -Original Message- > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > Sent: Monday, March 12, 2018 8:07 PM > To: Mimi Zohar ; Jiandi An > ; Jason Gunthorpe > Cc: dmitry.kasat...@gmail.com; jmor...@namei.org; se...@hallyn.com; > linux-integr...@vger.kernel.org; linu

PMTU discovery mechanism on closed UDP socket, no entry added

2018-03-13 Thread Oskar JagodziƄski
Hi, When I send UDP packet (too big for whole path) and close socket right after, ICMP Fragmentation Needed packet is ignored (?) and no entry regarding path MTU is created. When process waits before closing socket (about 1s in my case) entry about path MTU is added to routing table. The result is

Re: [pci PATCH v5 3/4] ena: Migrate over to unmanaged SR-IOV support

2018-03-13 Thread David Woodhouse
On Tue, 2018-03-13 at 07:51 -0700, Alexander Duyck wrote: > Actually the suggestion I had from Don Dutile was that we should be > looking at creating a pci-stub like driver specifically for those type > of devices, but without the ability to arbitrarily assign devices. > Basically we have to white

Re: Regression from efi: call get_event_log before ExitBootServices

2018-03-13 Thread Thiebaud Weksteen
On Tue, Mar 13, 2018 at 2:43 PM Ard Biesheuvel wrote: > On 13 March 2018 at 13:41, Jeremy Cline wrote: > > On 03/13/2018 03:59 AM, Ard Biesheuvel wrote: > >> On 13 March 2018 at 07:47, Hans de Goede wrote: > >>> Hi, > >>> > >>> > >>> On 12-03-18 20:55, Thiebaud Weksteen wrote: > > >> ... >

Re: [PATCH] platform/x86: dell-smbios: fix DCDBAS dependency, better

2018-03-13 Thread Darren Hart
On Tue, Mar 13, 2018 at 12:42:57PM +0100, Arnd Bergmann wrote: > The rework of the dell laptop modules caused a link error: > > drivers/platform/x86/dell-smbios-smm.o: In function `dell_smbios_smm_call': > dell-smbios-smm.c:(.text+0x77): undefined reference to `dcdbas_smi_request' > > We already

Re: [PATCH] netfilter: cttimeout: remove VLA usage

2018-03-13 Thread Pablo Neira Ayuso
On Mon, Mar 12, 2018 at 04:58:38PM -0700, Joe Perches wrote: > On Mon, 2018-03-12 at 18:14 -0500, Gustavo A. R. Silva wrote: > > In preparation to enabling -Wvla, remove VLA and replace it > > with dynamic memory allocation. > > > > From a security viewpoint, the use of Variable Length Arrays can

Re: [PATCH 3/3] staging:iio:ad2s1210: Add write_raw to handle frequency

2018-03-13 Thread Rodrigo Siqueira
On 03/13, Dan Carpenter wrote: > On Tue, Mar 13, 2018 at 10:06:29AM -0300, Rodrigo Siqueira wrote: > > On 03/13, Dan Carpenter wrote: > > > > > Ah... I see why you did the ERROR_MESSAGE define, to get around the 80 > > > character limit. Don't do that. Just go over 80 characters if you need > >

Re: [Possible REGRESSION, 4.16-rc4] Error updating SMART data during runtime and could not connect to lvmetad at some boot attempts

2018-03-13 Thread Bart Van Assche
On Tue, 2018-03-13 at 22:32 +0800, Ming Lei wrote: > On Tue, Mar 13, 2018 at 02:08:23PM +0100, Martin Steigerwald wrote: > > Ming and Bart, I added you to cc, cause I had to do with you about another > > blk-mq report, please feel free to adapt. > > Looks RIP points to scsi_times_out+0x17/0x1d0,

Re: [PATCH v10 07/10] livepatch: Correctly handle atomic replace for not yet loaded modules

2018-03-13 Thread Petr Mladek
On Wed 2018-03-07 09:20:36, Petr Mladek wrote: > The atomic replace feature uses dynamically allocated struct klp_func to > handle functions that will no longer be patched. These structures are > of the type KLP_FUNC_NOP. They cause the ftrace handler to jump to > the original code. But the address

Re: [PATCH v2 1/1] net: check before dereferencing netdev_ops during busy poll

2018-03-13 Thread David Miller
From: Josh Elsasser Date: Mon, 12 Mar 2018 22:32:00 -0700 > init_dummy_netdev() leaves its netdev_ops pointer zeroed. This leads > to a NULL pointer dereference when sk_busy_loop fires against an iwlwifi > wireless adapter and checks napi->dev->netdev_ops->ndo_busy_poll. > > Avoid this by ensuri

Re: [pci PATCH v5 3/4] ena: Migrate over to unmanaged SR-IOV support

2018-03-13 Thread Alexander Duyck
On Tue, Mar 13, 2018 at 1:12 AM, David Woodhouse wrote: > On Mon, 2018-03-12 at 10:23 -0700, Alexander Duyck wrote: >> >> - .sriov_configure = ena_sriov_configure, >> +#ifdef CONFIG_PCI_IOV >> + .sriov_configure = pci_sriov_configure_simple, >> +#endif >> }; > > I'd like to see that i

Re: [PATCH] memory-failure: fix section mismatch

2018-03-13 Thread Michal Hocko
On Sat 03-03-18 23:16:11, Nick Desaulniers wrote: > Clang complains when a variable is declared extern twice, but with two > different sections. num_poisoned_pages is marked extern and __read_mostly > in include/linux/swapops.h, but only extern in include/linux/mm.h. Some > c source files must incl

Re: [PATCH] test_rhashtable: avoid gcc-8 -Wformat-overflow warning

2018-03-13 Thread Rasmus Villemoes
On 2018-03-13 14:21, Arnd Bergmann wrote: > gcc-8 warns about a code pattern that is used in the newly added > test_rhashtable code: > > lib/test_rhashtable.c: In function 'print_ht': > lib/test_rhashtable.c:511:21: error: ' > bucket[' directive writing 8 bytes into a region of size between 1 and

Re: [PATCH v9 1/5] driver core: Find an existing link between two devices

2018-03-13 Thread Vivek Gautam
Hi Robin, On Tue, Mar 13, 2018 at 6:19 PM, Robin Murphy wrote: > On 13/03/18 09:55, Vivek Gautam wrote: >> >> On Tue, Mar 13, 2018 at 3:10 PM, Rafael J. Wysocki >> wrote: >>> >>> On Tuesday, March 13, 2018 9:55:30 AM CET Vivek Gautam wrote: The lists managing the device-links can be t

Re: [PATCH 4/8] gpio: pcie-idio-24: Implement get_multiple callback

2018-03-13 Thread kbuild test robot
Hi William, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.16-rc5 next-20180313] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH v3 04/10] otm

2018-03-13 Thread Yannick FERTRE
Hi, Sorry, I send more than 10 patches. I will remove this dummy patches tomorrow with next version. On 03/13/2018 03:12 PM, Patrice CHOTARD wrote: > Hi Yannick > > There is a problem with patch 4. I received two patches 04/10, this one > and [PATCH v3 04/10] video: add support of panel OTM800

Re: [PATCHv2 2/2] zram: drop max_zpage_size and use zs_huge_class_size()

2018-03-13 Thread Sergey Senozhatsky
On (03/13/18 23:29), Minchan Kim wrote: [..] > > Can do, but the param will be unused. May be we can do something > > Yub, param wouldn't be unused but it's the way of creating dependency > intentionally. It could make code more robust/readable. > > Please, let's pass zs_pool and returns always r

Re: [PATCH 18/31] perf vendor events arm64: Add armv8-recommended.json

2018-03-13 Thread John Garry
On 13/03/2018 14:26, Ingo Molnar wrote: * Arnaldo Carvalho de Melo wrote: From: John Garry Add JSON for ARMv8 IMPLEMENTATION DEFINED recommended events. The JSON is copied from ARMv8 architecture reference manual, available here: https://static.docs.arm.com/ddi0487/ca/DDI0487C_a_a

Re: [Possible REGRESSION, 4.16-rc4] Error updating SMART data during runtime and could not connect to lvmetad at some boot attempts

2018-03-13 Thread Ming Lei
On Tue, Mar 13, 2018 at 02:08:23PM +0100, Martin Steigerwald wrote: > Hans de Goede - 11.03.18, 15:37: > > Hi Martin, > > > > On 11-03-18 09:20, Martin Steigerwald wrote: > > > Hello. > > > > > > Since 4.16-rc4 (upgraded from 4.15.2 which worked) I have an issue > > > with SMART checks occassiona

Re: [PATCH 3/8] gpio: pci-idio-16: Implement get_multiple callback

2018-03-13 Thread kbuild test robot
Hi William, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.16-rc5 next-20180313] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

[PATCH] drm/vc4_validate: Remove VLA usage

2018-03-13 Thread Gustavo A. R. Silva
In preparation to enabling -Wvla, remove VLA. In this particular case use macro ARRAY_SIZE so the length of array _bo_ can be computed at preprocessing time. The use of stack Variable Length Arrays needs to be avoided, as they can be a vector for stack exhaustion, which can be both a runtime bug o

[PATCH v3 1/3] dt-bindings: display: bridge: Document THC63LVD1024 LVDS decoder

2018-03-13 Thread Jacopo Mondi
Document Thine THC63LVD1024 LVDS decoder device tree bindings. Signed-off-by: Jacopo Mondi --- .../bindings/display/bridge/thine,thc63lvd1024.txt | 63 ++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024

<    5   6   7   8   9   10   11   12   13   14   >