Re: [PATCH 0/7] objtool: retpoline validation

2018-02-06 Thread David Woodhouse
On Thu, 2018-02-01 at 10:16 -0800, Tim Chen wrote: > On 02/01/2018 08:51 AM, David Woodhouse wrote: > > No, we just need to set IBRS before doing it. The same applies to any > > EFI runtime calls, APM and all kinds of other random crap that calls > > into firmware. I'm not sure why those aren't sho

[PATCHv2 1/1] KEYS: encrypted: fix buffer overread in valid_master_desc()

2018-02-06 Thread Jin Qian
From: Eric Biggers commit 794b4bc292f5d31739d89c0202c54e7dc9bc3add upstream With the 'encrypted' key type it was possible for userspace to provide a data blob ending with a master key description shorter than expected, e.g. 'keyctl add encrypted desc "new x" @s'. When validating such a master k

[PATCH 2/2] drm/tilcdc: panel: Use common error handling code in of_get_panel_info()

2018-02-06 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 6 Feb 2018 22:10:11 +0100 Add a jump target so that a bit of exception handling can be better reused at the end of this function. Signed-off-by: Markus Elfring --- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 12 +--- 1 file changed, 5 insertions(+), 7 deleti

Re: [PATCH v2 0/3] Update blocked load

2018-02-06 Thread Peter Zijlstra
On Tue, Feb 06, 2018 at 08:23:04PM +0100, Vincent Guittot wrote: > This patchset applies on top of Peter's sched/esting branch minus the last 2 > commit: > 56eb46798b33 ("sched: Clean up nohz enter/exit") So what will update the blocked load after we wake from a total idle? I don't see anything

RE: [PATCH 1/2 v2] tpm: cmd_ready command can be issued only after granting locality

2018-02-06 Thread Winkler, Tomas
> > On Sun, Jan 28, 2018 at 09:17:53PM +, Winkler, Tomas wrote: > > > > > > > > On Sun, Jan 28, 2018 at 09:51:00AM +0200, Tomas Winkler wrote: > > > > > > > diff --git a/include/linux/tpm.h b/include/linux/tpm.h index > > > > bcdd3790e94d..06639fb6ab85 100644 > > > > +++ b/include/linux/tpm.h

[GIT PULL] perf fixes

2018-02-06 Thread Ingo Molnar
Linus, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus # HEAD: 59410f5ac70a0949a6f06ba43eecb8f99be31291 Merge tag 'perf-urgent-for-mingo-4.16-20180205' of git://git.kernel.org/pub/scm/linux/kerne

[PATCH tip-pti 2/2] x86/entry: interleave XOR register clearing with PUSH/MOV instructions

2018-02-06 Thread Dominik Brodowski
Same as is done for syscalls, interleave XOR with PUSH or MOV instructions for exceptions/interrupts, in order to minimize the cost of the additional instructions required for register clearing. Signed-off-by: Dominik Brodowski diff --git a/arch/x86/entry/calling.h b/arch/x86/entry/calling.h ind

[PATCH tip-pti 1/2] x86/entry: remove SAVE_C_REGS_EXCEPT_* macros

2018-02-06 Thread Dominik Brodowski
The macros which save all but specific registers have been unused for a long time. Remove them and the SAVE_C_REGS_HELPER macro, but instead provide the SAVE_C_REGS macro directly. Signed-off-by: Dominik Brodowski diff --git a/arch/x86/entry/calling.h b/arch/x86/entry/calling.h index f4b129d4af4

[GIT PULL] scheduler updates

2018-02-06 Thread Ingo Molnar
Linus, Please pull the latest sched-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus # HEAD: 82845079160817cc6ac64e5321bbd935e0a47b3a Merge branch 'linus' into sched/urgent, to resolve conflicts This tree includes the follo

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Dan Williams
On Tue, Feb 6, 2018 at 12:58 PM, Linus Torvalds wrote: > On Tue, Feb 6, 2018 at 12:49 PM, Andy Lutomirski wrote: >> >> Can you use @cc to make an asm statement that outputs both the masked >> array index and the "if" condition? I can never remember the syntax, >> but something like: > > Yes. Alt

[PATCH] afs: cell: make afs_cell_gc_delay static

2018-02-06 Thread Colin King
From: Colin Ian King The variable afs_cell_gc_delay is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: fs/afs/cell.c:21:24: warning: symbol 'afs_cell_gc_delay' was not declared. Should it be static? Signed-off-by: Colin Ian King --- fs

Re: [PATCH v2 0/3] Update blocked load

2018-02-06 Thread Vincent Guittot
On 6 February 2018 at 22:25, Peter Zijlstra wrote: > On Tue, Feb 06, 2018 at 08:23:04PM +0100, Vincent Guittot wrote: >> This patchset applies on top of Peter's sched/esting branch minus the last 2 >> commit: >> 56eb46798b33 ("sched: Clean up nohz enter/exit") > > So what will update the blocked

Re: [PATCH AUTOSEL for 4.14 065/110] led: core: Fix brightness setting when setting delay_off=0

2018-02-06 Thread Pavel Machek
On Tue 2018-02-06 02:02:19, Sasha Levin wrote: > On Sun, Feb 04, 2018 at 06:17:36PM +0100, Pavel Machek wrote: > > > >> > > >> *** if brightness=0, led off > >> > > >> *** else apply brightness if next timer <--- timer is stop, and > >> > > >> will never apply new setting > >> > > >> ** otherwise

Re: [PATCH v2 2/3] arm64: dts: sdm845: Add minimal dts/dtsi files for sdm845 SoC and MTP

2018-02-06 Thread Doug Anderson
Hi, On Wed, Jan 31, 2018 at 8:19 AM, Rajendra Nayak wrote: > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi > b/arch/arm64/boot/dts/qcom/sdm845.dtsi > new file mode 100644 > index ..02520f19e4ca > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -0,0 +1,277 @@ > +//

Re: [PATCH] scsi: qedf: remove redundant initialization of 'fcport'

2018-02-06 Thread Chad Dupuis
On Tue, 6 Feb 2018, 9:03am, Colin King wrote: > From: Colin Ian King > > Pointer fcport is initialized with a value that is never read, it is > re-assigned a new value later on, hence the initialization is redundant > and can be removed. > > Cleans up clang warning: > drivers/scsi/qedf/qedf_io

Re: [PATCH 4.4 05/53] x86/asm: Use register variable to get stack pointer value

2018-02-06 Thread Matthias Kaehlcke
Hi Greg, El Mon, Jan 22, 2018 at 09:39:57AM +0100 Greg Kroah-Hartman ha dit: > 4.4-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Andrey Ryabinin > > commit 196bd485ee4f03ce4c690bfcf38138abfcd0a4bc upstream. > > Currently we use curre

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-06 Thread Alan Cox
> If that is correct (and I might be wrong), then I am up to date and I > am still getting the following in /proc/cpuinfo on my Pentium 4M i686: > > bugs : cpu_meltdown spectre_v1 spectre_v2 > > - Matthew That's an interesting museum piece. It's a Northwood core so I believe the reporting is co

Re: [PATCH RFC] ashmem: Fix lockdep RECLAIM_FS false positive

2018-02-06 Thread Minchan Kim
Hi Joel, On Mon, Feb 05, 2018 at 04:49:03PM -0800, Joel Fernandes wrote: > During invocation of ashmem shrinker under memory pressure, ashmem > calls into VFS code via vfs_fallocate. We however make sure we > don't enter it if the allocation was GFP_FS to prevent looping > into filesystem code. Ho

[PATCH] char: nvram: disable on ARM

2018-02-06 Thread Alexandre Belloni
/dev/nvram was never meant to be used alongside the RTC CMOS driver from drivers/rtc as it already expose the NVRAM through another interface.. Anyway, the last defconfig to enable it properly was removed in 2010 so prevent ARM users from selecting it. Signed-off-by: Alexandre Belloni --- driver

[PATCH] mm/ksm: make function stable_node_dup static

2018-02-06 Thread Colin King
From: Colin Ian King The function stable_node_dup is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: mm/ksm.c:1321:13: warning: symbol 'stable_node_dup' was not declared. Should it be static? Signed-off-by: Colin Ian King --- mm/ksm.c

Re: [PATCH v4 4/5] irqchip/gic-v3-its: add ability to resend MAPC on resume

2018-02-06 Thread dbasehore .
On Tue, Feb 6, 2018 at 8:40 AM, Marc Zyngier wrote: > On 03/02/18 01:24, Derek Basehore wrote: >> This adds functionality to resend the MAPC command to an ITS node on >> resume. If the ITS is powered down during suspend and the collections >> are not backed by memory, the ITS will lose that state.

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-06 Thread tedheadster
On Tue, Feb 6, 2018 at 3:54 PM, David Woodhouse wrote: > On Tue, 2018-02-06 at 15:45 -0500, tedheadster wrote: >> >> If that is correct (and I might be wrong), then I am up to date and I >> am still getting the following in /proc/cpuinfo on my Pentium 4M i686: >> >> bugs : cpu_meltdown spectre_v1

[PATCH v2 20/20] x86/PCI: VMD: Fix malformed Kconfig default

2018-02-06 Thread Ulf Magnusson
'default N' should be 'default n', though they happen to have the same effect here, due to undefined symbols (N in this case) evaluating to n in a tristate sense. Remove the default instead of changing it. bool and tristate symbols implicitly default to n. Discovered with the https://github.com/u

[PATCH] char: rtc: remove unused rtc_control() API

2018-02-06 Thread Alexandre Belloni
Since commit 34ce71a96dcb ("ALSA: timer: remove legacy rtctimer"), the rtc_register/rtc_control/rtc_unregister API is unused. As it is highly unlikely to be needed again, remove it. Signed-off-by: Alexandre Belloni --- Hi, I'd like that one to go through the RTC tree as I have other changes in

Re: [GIT PULL for v4.16-rc1] media updates

2018-02-06 Thread Stephen Rothwell
Hi Linus, On Tue, 6 Feb 2018 09:11:30 -0200 Mauro Carvalho Chehab wrote: > > 1) You may expect a merge conflict due to this patch: > c23e0cb81e40 ("media: annotate ->poll() instances") > > See: https://lkml.org/lkml/2018/1/1/547 Looks like you missed this when doing the merge :-( -

Re: [PATCH 20/20] x86/PCI: VMD: Fix malformed default

2018-02-06 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 8:11 PM, Bjorn Helgaas wrote: >> x86/PCI: VMD: Fix malformed default > > In the title, please include a clue about what default you're talking > about, e.g., mention Kconfig somehow. > > On Mon, Feb 05, 2018 at 02:21:32AM +0100, Ulf Magnusson wrote: >> 'default N' should be

Re: [RFC PATCH 6/8] v4l2: document the request API interface

2018-02-06 Thread Sakari Ailus
Hi Hans and Alexandre, On Wed, Jan 31, 2018 at 09:26:10AM +0100, Hans Verkuil wrote: > On 01/30/2018 07:31 AM, Alexandre Courbot wrote: > > On Tue, Jan 30, 2018 at 1:03 AM, Hans Verkuil wrote: > >> On 01/26/2018 07:02 AM, Alexandre Courbot wrote: ... > >>> +Recycling and Destruction > >>> +

[PATCH] selftests: memfd: add config fragment for fuse

2018-02-06 Thread Daniel Díaz
From: Anders Roxell The memfd test requires to insert the fuse module (CONFIG_FUSE_FS). Signed-off-by: Anders Roxell Signed-off-by: Daniel Díaz --- tools/testing/selftests/memfd/config | 1 + 1 file changed, 1 insertion(+) create mode 100644 tools/testing/selftests/memfd/config diff --git a

[PATCH] selftests/memfd: add run_fuse_test.sh to TEST_FILES

2018-02-06 Thread Daniel Díaz
From: Anders Roxell While testing memfd tests, there is a missing script, as reported by kselftest: ./run_tests.sh: line 7: ./run_fuse_test.sh: No such file or directory Signed-off-by: Anders Roxell Signed-off-by: Daniel Díaz --- tools/testing/selftests/memfd/Makefile | 1 + 1 file changed,

[PATCH v2] selftests: sync: missing CFLAGS while compiling

2018-02-06 Thread Daniel Díaz
From: Anders Roxell Based on patch: https://patchwork.kernel.org/patch/10042045/ arch64-linux-gnu-gcc -c sync.c -o sync/sync.o sync.c:42:29: fatal error: linux/sync_file.h: No such file or directory #include ^ CFLAGS is not used during the compile step, so the syst

Re: [GIT PULL for v4.16-rc1] media updates

2018-02-06 Thread Linus Torvalds
On Tue, Feb 6, 2018 at 2:16 PM, Stephen Rothwell wrote: >> See: https://lkml.org/lkml/2018/1/1/547 > > Looks like you missed this when doing the merge :-( Gaah. I noticed the actual conflicts, and then didn't actually notice that there had been some other __poll_t noise too. Will apply your

Re: [PATCH v4 2/5] irqchip/gic-v3-its: add ability to save/restore ITS state

2018-02-06 Thread dbasehore .
On Tue, Feb 6, 2018 at 8:23 AM, Marc Zyngier wrote: > On 05/02/18 21:33, dbasehore . wrote: >> On Mon, Feb 5, 2018 at 7:56 AM, Marc Zyngier wrote: >>> On 03/02/18 01:24, Derek Basehore wrote: Some platforms power off GIC logic in suspend, so we need to save/restore state. The distributo

[no subject]

2018-02-06 Thread Mario Ernesto Gerala
You have been awarded a donation of $350,000 USD please reply this email for more info : sungla...@gmail.com

Re: [PATCH tip-pti 2/2] x86/entry: interleave XOR register clearing with PUSH/MOV instructions

2018-02-06 Thread Dan Williams
On Tue, Feb 6, 2018 at 1:32 PM, Dominik Brodowski wrote: > Same as is done for syscalls, interleave XOR with PUSH or MOV > instructions for exceptions/interrupts, in order to minimize > the cost of the additional instructions required for register > clearing. > > Signed-off-by: Dominik Brodowski

Re: [PATCH net 1/1 v2] rtnetlink: require unique netns identifier

2018-02-06 Thread Eric W. Biederman
Christian Brauner writes: > On Tue, Feb 06, 2018 at 12:47:46AM +0300, Kirill Tkhai wrote: >> On 05.02.2018 18:55, Christian Brauner wrote: >> > Since we've added support for IFLA_IF_NETNSID for RTM_{DEL,GET,SET,NEW}LINK >> > it is possible for userspace to send us requests with three different >>

Re: [PATCH RFC] ashmem: Fix lockdep RECLAIM_FS false positive

2018-02-06 Thread Joel Fernandes
Hi Minchan, On Tue, Feb 6, 2018 at 2:01 PM, Minchan Kim wrote: [...] > On Mon, Feb 05, 2018 at 04:49:03PM -0800, Joel Fernandes wrote: >> During invocation of ashmem shrinker under memory pressure, ashmem >> calls into VFS code via vfs_fallocate. We however make sure we >> don't enter it if the a

Re: [PATCH 4.4 05/53] x86/asm: Use register variable to get stack pointer value

2018-02-06 Thread Greg Kroah-Hartman
On Tue, Feb 06, 2018 at 01:59:41PM -0800, Matthias Kaehlcke wrote: > Hi Greg, > > El Mon, Jan 22, 2018 at 09:39:57AM +0100 Greg Kroah-Hartman ha dit: > > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Andrey Ryabinin > >

Re: [PATCH] char: rtc: remove unused rtc_control() API

2018-02-06 Thread Greg Kroah-Hartman
On Tue, Feb 06, 2018 at 11:12:26PM +0100, Alexandre Belloni wrote: > Since commit 34ce71a96dcb ("ALSA: timer: remove legacy rtctimer"), the > rtc_register/rtc_control/rtc_unregister API is unused. As it is highly > unlikely to be needed again, remove it. > > Signed-off-by: Alexandre Belloni > ---

Re: [PATCH v2] arc: dts: use 'atmel' as manufacturer for at24 in axs10x_mb

2018-02-06 Thread Vineet Gupta
On 02/06/2018 01:04 PM, Alexey Brodkin wrote: Feel free to drop this patch if you plan to submit the fix soon - otherwise, apply it if it may take some time. No I think it worth applying especially in the light of your comment about NXP EEPROM. Vineet, could you please take this one? I've ad

Re: [PATCH v4 00/17] arm64: Add SMCCC v1.1 support and CVE-2017-5715 (Spectre variant 2) mitigation

2018-02-06 Thread Catalin Marinas
On Tue, Feb 06, 2018 at 05:56:04PM +, Marc Zyngier wrote: > ARM has recently published a SMC Calling Convention (SMCCC) > specification update[1] that provides an optimised calling convention > and optional, discoverable support for mitigating CVE-2017-5715. ARM > Trusted Firmware (ATF) has alr

Re: [PATCH v3 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-06 Thread Lina Iyer
On Tue, Feb 06 2018 at 20:34 +, Marc Zyngier wrote: On Tue, 06 Feb 2018 18:09:04 +, Lina Iyer wrote: +#define PDC_MAX_IRQS 126 From v2: "Is that an absolute, architectural maximum? Or should it come from the DT (being the sum of all ranges that are provided by this PDC)?" A

[RFC][PATCH 2/6] tracing: Fix parsing of globs with a wildcard at the beginning

2018-02-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Al Viro reported: For substring - sure, but what about something like "*a*b" and "a*b"? AFAICS, filter_parse_regex() ends up with identical results in both cases - MATCH_GLOB and *search = "a*b". And no way for the caller to tell one from another.

[RFC][PATCH 1/6] ftrace: Remove incorrect setting of glob search field

2018-02-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" __unregister_ftrace_function_probe() will incorrectly parse the glob filter because it resets the search variable that was setup by filter_parse_regex(). Al Viro reported this: After that call of filter_parse_regex() we could have func_g.search not equal

[RFC][PATCH 5/6] selftests/ftrace: Add some missing glob checks

2018-02-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Al Viro discovered a bug in the glob ftrace filtering code where "*a*b" is treated the same as "a*b", and functions that would be selected by "*a*b" but not "a*b" are not selected with "*a*b". Add tests for patterns "*a*b" and "a*b*" to the glob selftest. Link: h

[RFC][PATCH 6/6] selftests/ftrace: Add more tests for removing of function probes

2018-02-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Al Viro discovered a bug in the removing of function probes where if it had a '*' at the beginning, it would fail to find any matches. That is, because it reset the glob search string to the the initial string with a "MATCH_END" type, instead of skipping the wildca

[RFC][PATCH 4/6] selftests/ftrace: Have reset_ftrace_filter handle multiple instances

2018-02-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" If a probe is attached to a static function that is in multiple files with the same name, removing it by name will remove all instances: # grep jump_label_unlock set_ftrace_filter jump_label_unlock:traceoff:unlimited jump_label_unlock:traceoff:unlimited # echo

[RFC][PATCH 3/6] selftests/ftrace: Have reset_ftrace_filter handle modules

2018-02-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" If a function probe in set_ftrace_filter belongs to a module, it will contain the module name. Like: wmi_query_block [wmi]:traceoff:unlimited But writing: '!wmi_query_block [wmi]:traceoff' > set_ftrace_filter will cause an error. We still need to write: '!w

[RFC][PATCH 0/6] tracing: Fix bogus parsing of probes and set_ftrace_filter

2018-02-06 Thread Steven Rostedt
Al Viro pointed out a couple of bugs with the parsing of the removing of function probes and the parsing of set_ftrace_filter strings. This patch series implements his suggested fixes and adds selftests that would have caught the bugs in the first place. Steven Rostedt (VMware) (6): ftrac

Re: [PATCH tip-pti 2/2] x86/entry: interleave XOR register clearing with PUSH/MOV instructions

2018-02-06 Thread Linus Torvalds
On Tue, Feb 6, 2018 at 1:32 PM, Dominik Brodowski wrote: > Same as is done for syscalls, interleave XOR with PUSH or MOV > instructions for exceptions/interrupts, in order to minimize > the cost of the additional instructions required for register > clearing. Side note: I would _really_ like to s

Re: [PATCH v3] staging: android: ion: Zero CMA allocated memory

2018-02-06 Thread Laura Abbott
On 01/26/2018 09:48 AM, Liam Mark wrote: Since commit 204f672255c2 ("staging: android: ion: Use CMA APIs directly") the CMA API is now used directly and therefore the allocated memory is no longer automatically zeroed. Explicitly zero CMA allocated memory to ensure that no data is exposed to use

Re: [PATCH 4.4 05/53] x86/asm: Use register variable to get stack pointer value

2018-02-06 Thread Matthias Kaehlcke
El Tue, Feb 06, 2018 at 02:37:06PM -0800 Greg Kroah-Hartman ha dit: > On Tue, Feb 06, 2018 at 01:59:41PM -0800, Matthias Kaehlcke wrote: > > Hi Greg, > > > > El Mon, Jan 22, 2018 at 09:39:57AM +0100 Greg Kroah-Hartman ha dit: > > > > > 4.4-stable review patch. If anyone has any objections, plea

Re: [PATCH] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings

2018-02-06 Thread Laura Abbott
On 01/30/2018 08:01 PM, Yisheng Xie wrote: ion_buffer_fault_user_mappings's definition has been removed and not be used anymore, just remove its useless declaration. Acked-by: Laura Abbott Signed-off-by: Yisheng Xie --- drivers/staging/android/ion/ion.h | 9 - 1 file changed, 9

Re: [PATCH] staging: android: ion: minor cleanup for ion_page_pool

2018-02-06 Thread Laura Abbott
On 01/31/2018 01:50 AM, Yisheng Xie wrote: ion_page_pool.c now is used to apply pool APIs for system heap, which do not need do any initial at device_initcall. Meanwhile, this patch also remove some useless include files. Acked-by: Laura Abbott Signed-off-by: Yisheng Xie --- drivers/sta

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Luis Henriques
On Tue, Feb 06, 2018 at 11:48:45AM -0800, Dan Williams wrote: > On Tue, Feb 6, 2018 at 11:29 AM, Luis Henriques wrote: > > On Thu, Jan 18, 2018 at 04:02:21PM -0800, Dan Williams wrote: > >> The syscall table base is a user controlled function pointer in kernel > >> space. Like, 'get_user, use 'MAS

Re: [PATCH 4.4 05/53] x86/asm: Use register variable to get stack pointer value

2018-02-06 Thread Greg Kroah-Hartman
On Tue, Feb 06, 2018 at 02:48:45PM -0800, Matthias Kaehlcke wrote: > El Tue, Feb 06, 2018 at 02:37:06PM -0800 Greg Kroah-Hartman ha dit: > > > On Tue, Feb 06, 2018 at 01:59:41PM -0800, Matthias Kaehlcke wrote: > > > Hi Greg, > > > > > > El Mon, Jan 22, 2018 at 09:39:57AM +0100 Greg Kroah-Hartman

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Linus Torvalds
On Tue, Feb 6, 2018 at 1:37 PM, Dan Williams wrote: > > At that point we're basically just back to the array_ptr() version > that returned a sanitized pointer to an array element. .. that one does an extra unnecessary 'andq' instead of the duplicated cmp. But at least it avoids comparing that 32

[PATCH] video: console: kconfig: Remove AVR32 dep. from VGA_CONSOLE

2018-02-06 Thread Ulf Magnusson
The AVR32 symbol was removed in commit 26202873bb51 ("avr32: remove support for AVR32 architecture"). Signed-off-by: Ulf Magnusson --- drivers/video/console/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig i

Re: [PATCH] char: nvram: disable on ARM

2018-02-06 Thread Arnd Bergmann
On Tue, Feb 6, 2018 at 11:05 PM, Alexandre Belloni wrote: > /dev/nvram was never meant to be used alongside the RTC CMOS driver from > drivers/rtc as it already expose the NVRAM through another interface.. > Anyway, the last defconfig to enable it properly was removed in 2010 so > prevent ARM user

[PATCH v4 3/4] drivers: firmware: xilinx: Add sysfs interface

2018-02-06 Thread Jolly Shah
Add Firmware-ggs sysfs interface which provides read/write interface to global storage registers. Signed-off-by: Jolly Shah Signed-off-by: Rajan Vaja --- Documentation/ABI/stable/sysfs-firmware-zynqmp | 50 drivers/firmware/xilinx/zynqmp/Makefile | 2 +- drivers/firmware/xilinx

[PATCH] spi: kconfig: Remove AVR32 dep. from SPI_ATMEL

2018-02-06 Thread Ulf Magnusson
The AVR32 symbol was removed in commit 26202873bb51 ("avr32: remove support for AVR32 architecture"). Signed-off-by: Ulf Magnusson --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 603783976b81..c1e455d46c7

[PATCH v4 2/4] drivers: firmware: xilinx: Add ZynqMP firmware driver

2018-02-06 Thread Jolly Shah
This patch is adding communication layer with firmware. Firmware driver provides an interface to firmware APIs. Interface APIs can be used by any driver to communicate to PMUFW(Platform Management Unit). All requests go through ATF. Signed-off-by: Jolly Shah Signed-off-by: Rajan Vaja --- arch/a

Re: [PATCH RFC] ashmem: Fix lockdep RECLAIM_FS false positive

2018-02-06 Thread Minchan Kim
On Tue, Feb 06, 2018 at 02:32:13PM -0800, Joel Fernandes wrote: > Hi Minchan, > > On Tue, Feb 6, 2018 at 2:01 PM, Minchan Kim wrote: > [...] > > On Mon, Feb 05, 2018 at 04:49:03PM -0800, Joel Fernandes wrote: > >> During invocation of ashmem shrinker under memory pressure, ashmem > >> calls into

[PATCH v4 4/4] drivers: firmware: xilinx: Add debugfs interface

2018-02-06 Thread Jolly Shah
Firmware-debug provides debugfs interface to all APIs. Debugfs can be used to call firmware APIs with required parameters. Usage: * Calling firmware API through debugfs: # echo " .. " > /sys/kernel/debug/zynqmp-firmware/pm * Read output of last called firmware API: # cat /sys/kernel/debug/zy

Re: [PATCH tip-pti 1/2] x86/entry: remove SAVE_C_REGS_EXCEPT_* macros

2018-02-06 Thread Linus Torvalds
On Tue, Feb 6, 2018 at 1:25 PM, Dominik Brodowski wrote: > The macros which save all but specific registers have been unused for > a long time. Remove them and the SAVE_C_REGS_HELPER macro, but > instead provide the SAVE_C_REGS macro directly. Ack. But see my other email about even more cleanups.

[PATCH v4 1/4] dt-bindings: firmware: Add bindings for ZynqMP firmware

2018-02-06 Thread Jolly Shah
Add documentation to describe Xilinx ZynqMP firmware driver bindings. Firmware driver provides an interface to firmware APIs. Interface APIs can be used by any driver to communicate to PMUFW (Platform Management Unit). Signed-off-by: Jolly Shah Signed-off-by: Rajan Vaja --- .../firmware/xilinx/

[PATCH v4 0/4] drivers: firmware: xilinx: Add firmware driver support

2018-02-06 Thread Jolly Shah
Introduce firmware driver for ZynqMP core. This patchset is adding communication layer with firmware. Firmware driver provides an interface to firmware APIs. Interface APIs can be used by any driver to communicate to PMUFW(Platform Management Unit). All requests go through ATF. v4: - Changed cloc

Re: [PATCH v3 03/20] kconfig: Remove leftover references to AVR32 symbol

2018-02-06 Thread Ulf Magnusson
On Mon, Feb 5, 2018 at 8:05 PM, Ulf Magnusson wrote: > The AVR32 symbol was removed in commit 26202873bb51 ("avr32: remove > support for AVR32 architecture"). Remove the remaining references to it > from the Kconfig files. > > Signed-off-by: Ulf Magnusson > --- > Changes in v3: > Removal of the A

Re: [PATCH v3 03/20] kconfig: Remove leftover references to AVR32 symbol

2018-02-06 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 1:08 PM, Mark Brown wrote: > On Mon, Feb 05, 2018 at 08:05:39PM +0100, Ulf Magnusson wrote: >> The AVR32 symbol was removed in commit 26202873bb51 ("avr32: remove >> support for AVR32 architecture"). Remove the remaining references to it >> from the Kconfig files. > >> driv

Re: [PATCH 1/2] staging: android: ion: Avoid NULL point in error path

2018-02-06 Thread Laura Abbott
On 02/01/2018 04:34 AM, Yisheng Xie wrote: If we failed to create debugfs for ion at ion_device_create, the debug_root of ion_device will be NULL, and then when try to create debug file for shrinker of heap it will be create on the top of debugfs. If we also failed to create this the debug file,

Re: [PATCH 2/2] staging: android: ion: Remove lable debugfs_done

2018-02-06 Thread Laura Abbott
On 02/01/2018 04:34 AM, Yisheng Xie wrote: When failed to create debug_root, we will go on initail other part of ion, so we can just info this message to user and do not need a lable to jump. Acked-by: Laura Abbott Signed-off-by: Yisheng Xie --- drivers/staging/android/ion/ion.c | 5 +---

[PATCH 08/10] watchdog/hpwdt: Programable Pretimeout NMI

2018-02-06 Thread Jerry Hoemann
Make whether or not the hpwdt watchdog delivers a pretimeout NMI programable by the user. The underlying iLO hardware is programmable as to whether or not a pre-timeout NMI is delivered to the system before the iLO resets the system. However, the iLO does not allow for programming the length of t

[PATCH 10/10] watchdog/hpwdt: remove allow_kdump module parameter.

2018-02-06 Thread Jerry Hoemann
The intent of this parameter is unclear and it sets up a race between the reset of the system by ASR and crashdump. The length of time between receipt of the pretimeout NMI and the ASR reset of the system is fixed by hardware. Turning the parameter off doesn't necessairly prevent a crash dump. Al

[PATCH 02/10] watchdog/hpwdt: remove include files no longer needed.

2018-02-06 Thread Jerry Hoemann
remove header files used by NMI sourcing and DMI decoding. Signed-off-by: Jerry Hoemann --- drivers/watchdog/hpwdt.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index 01ef52c13209..260740051084 100644 --- a/drivers/watchdog/hpwd

[PATCH 07/10] watchdog/hpwdt: Select WATCHDOG_CORE

2018-02-06 Thread Jerry Hoemann
Update Kconfig file to show that hpwdt now selects WATCHDOG_CORE. Signed-off-by: Jerry Hoemann --- drivers/watchdog/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 6a602f70aaa4..4d219c3fa8b4 100644 --- a/drivers/watchdog/Kconf

[PATCH 09/10] watchdog/hpwdt: condition early return of NMI handler on iLO5

2018-02-06 Thread Jerry Hoemann
Modify prior change to not claim an NMI unless originated from iLO to apply only to iLO5 and later going forward. This restores hpwdt traditional behavior of calling panic if the NMI is NMI_IO_CHECK, NMI_SERR, or NMI_UNKNOWN for legacy hardware. Signed-off-by: Jerry Hoemann --- drivers/watchdog/

[PATCH 05/10] watchdog/hpwdt: Update Module info.

2018-02-06 Thread Jerry Hoemann
Update Module Author and permission on parameters so that the parameters show up in sysfs. Signed-off-by: Jerry Hoemann --- drivers/watchdog/hpwdt.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index a275f14bbc

[PATCH 06/10] watchdog/hpwdt: Modify to use watchdog core.

2018-02-06 Thread Jerry Hoemann
Follow Documentation/watchdog/convert_drivers_to_kernel_api.txt to convert hpwdt from legacy watchdog driver to use the watchdog core. Removed functions: hpwdt_open, hpwdt_release, hpwdt_write, hpwdt_ioctl Removed data structures: hpwdt_fops, hpwdt_miscdev, watchdog_device Modified functions: hpwd

[PATCH 01/10] watchdog/hpwdt: Remove legacy NMI sourcing.

2018-02-06 Thread Jerry Hoemann
Gen8 and prior Proliant systems supported the "CRU" interface to firmware. This interfaces allows linux to "call back" into firmware to source the cause of an NMI. This feature isn't fully utilized as the actual source of the NMI isn't printed, the driver only indicates that the source couldn't b

[PATCH 00/10] watchdog/hpwdt: Update driver to use watchdog core.

2018-02-06 Thread Jerry Hoemann
The primary purposes of this patch set are to 1) Update the hpwdt driver to use the watchdog core. 2) Reduce complexity by removing unnecessary features. 3) Add customer requested features like optional pretimeout. 4) Enhance readability/maintainability of the driver. The size of the resultant dr

[PATCH 04/10] watchdog/hpwdt: white space changes

2018-02-06 Thread Jerry Hoemann
Minor white space changes and some name clean up. Signed-off-by: Jerry Hoemann --- drivers/watchdog/hpwdt.c | 49 +++- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index 7f55b9bf371

[PATCH 03/10] watchdog/hpwdt: Update nmi_panic message.

2018-02-06 Thread Jerry Hoemann
Include the nmistat in the nmi_panic message to give support an indication why the NMI was called (e.g. a timeout or generate nmi button.) Signed-off-by: Jerry Hoemann --- drivers/watchdog/hpwdt.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/dr

Re: [PATCH tip-pti 2/2] x86/entry: interleave XOR register clearing with PUSH/MOV instructions

2018-02-06 Thread Andy Lutomirski
On Tue, Feb 6, 2018 at 10:48 PM, Linus Torvalds wrote: > On Tue, Feb 6, 2018 at 1:32 PM, Dominik Brodowski > wrote: >> Same as is done for syscalls, interleave XOR with PUSH or MOV >> instructions for exceptions/interrupts, in order to minimize >> the cost of the additional instructions required

Re: [PATCH 1/2] of_pci_irq: add a check to fallback to standard device tree parsing

2018-02-06 Thread Benjamin Herrenschmidt
On Tue, 2018-02-06 at 13:42 +0800, Ryder Lee wrote: > Thanks for explanation. > > So I guess the better way to achieve my aim - one IRQ per slot that is > connected to all INTx and get propagated through the bridges (and for > those root ports own interrupts (PME ..)} is to add interrupt-map > pro

Re: [PATCH 1/2] staging: android: ion: Remove dead code in ion_page_pool_free

2018-02-06 Thread Laura Abbott
On 02/04/2018 07:26 PM, Yisheng Xie wrote: ion_page_pool_add will always return 0, however ion_page_pool_free will call ion_page_pool_free_pages when ion_page_pool_add's return value is not 0, so it is a dead code which can be removed. Can you clean up ion_page_pool_add to be a void return as

Re: [PATCH 1/2] staging: android: ion: Remove dead code in ion_page_pool_free

2018-02-06 Thread Laura Abbott
On 02/06/2018 03:10 PM, Laura Abbott wrote: On 02/04/2018 07:26 PM, Yisheng Xie wrote: ion_page_pool_add will always return 0, however ion_page_pool_free will call ion_page_pool_free_pages when ion_page_pool_add's return value is not 0, so it is a dead code which can be removed. Can you clean

Re: [PATCHv2 1/1] ext4: don't put symlink in pagecache into highmem

2018-02-06 Thread Theodore Ts'o
On Tue, Feb 06, 2018 at 12:39:53PM -0800, Greg KH wrote: > On Tue, Feb 06, 2018 at 11:09:37AM -0800, Jin Qian wrote: > > From: Jin Qian > > > > partial backport from 21fc61c73c3903c4c312d0802da01ec2b323d174 upstream > > to v4.4 to prevent virt_to_page on highmem. > > Ted, any objection to this pa

[PATCH] crypto: chelsio - Make function aead_ccm_validate_input static

2018-02-06 Thread Colin King
From: Colin Ian King Function aead_ccm_validate_input is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: drivers/crypto/chelsio/chcr_algo.c:2627:5: warning: symbol 'aead_ccm_validate_input' was not declared. Should it be static? Signed-o

Re: [PATCH RFC] ashmem: Fix lockdep RECLAIM_FS false positive

2018-02-06 Thread Joel Fernandes
Hi Minchan, On Tue, Feb 6, 2018 at 2:55 PM, Minchan Kim wrote: > On Tue, Feb 06, 2018 at 02:32:13PM -0800, Joel Fernandes wrote: [...] >> On Tue, Feb 6, 2018 at 2:01 PM, Minchan Kim wrote: >> [...] >> > On Mon, Feb 05, 2018 at 04:49:03PM -0800, Joel Fernandes wrote: >> >> During invocation of as

Re: [PATCH 1/2] trace-cmd: Fix the detection for swig

2018-02-06 Thread Steven Rostedt
On Sun, 4 Feb 2018 11:20:13 +0800 szts...@gmail.com wrote: > From: Zamir SUN > > The current detection for swig will cause output to be > /usr/bin/swig > y > So this will never be equal to y. With this patch, the swig path is > removed from output, so the detection can work as expected. > > Fi

[PATCH] crypto: ccp - Make function ccp_get_dma_chan_attr static

2018-02-06 Thread Colin King
From: Colin Ian King Function ccp_get_dma_chan_attr is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: drivers/crypto/ccp/ccp-dmaengine.c:41:14: warning: symbol 'ccp_get_dma_chan_attr' was not declared. Should it be static? Signed-off-by

[PATCH] Staging: media: atomisp: i2c: atomisp-ov2680: fixed a coding style

2018-02-06 Thread Santha Meena Ramamoorthy
Fixed the following checkpatch warning WARNING: braces {} are not necessary for any arm of this statement Signed-off-by: Santha Meena Ramamoorthy --- drivers/staging/media/atomisp/i2c/atomisp-ov2680.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media

Re: WARNING: kmalloc bug in relay_open_buf

2018-02-06 Thread Andrew Morton
On Tue, 06 Feb 2018 14:58:02 -0800 syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > e237f98a9c134c3d600353f21e07db915516875b (Mon Feb 5 21:35:56 2018 +) > Merge tag 'xfs-4.16-merge-5' of > git://git.kernel.org/pub/scm/fs/xfs/xfs-linux > > C reproducer is att

Re: [PATCH] char: rtc: remove unused rtc_control() API

2018-02-06 Thread Arnd Bergmann
On Tue, Feb 6, 2018 at 11:12 PM, Alexandre Belloni wrote: > Since commit 34ce71a96dcb ("ALSA: timer: remove legacy rtctimer"), the > rtc_register/rtc_control/rtc_unregister API is unused. As it is highly > unlikely to be needed again, remove it. > > Signed-off-by: Alexandre Belloni > --- Nice!

Re: [PATCH v8 0/7] TDA1997x HDMI video reciver

2018-02-06 Thread Tim Harvey
On Tue, Feb 6, 2018 at 1:21 PM, Hans Verkuil wrote: > On 02/06/2018 09:27 PM, Tim Harvey wrote: > > > >> v4l2-compliance test results: >> - with the following kernel patches: >>v4l2-subdev: clear reserved fields >> . v4l2-subdev: without controls return -ENOTTY >> >> v4l2-compliance SHA :

Re: [PATCH 2/2] x86/speculation: Simplify indirect_branch_prediction_barrier()

2018-02-06 Thread David Woodhouse
On Tue, 2018-02-06 at 17:25 -0600, Josh Poimboeuf wrote: > On Tue, Feb 06, 2018 at 07:44:52PM +, David Woodhouse wrote: > > > > On Fri, 2018-01-26 at 21:08 +0100, Borislav Petkov wrote: > > > > > > Make it all a function which does the WRMSR instead of having a hairy > > > inline asm. > > .

Re: [PATCH 2/2] x86/speculation: Simplify indirect_branch_prediction_barrier()

2018-02-06 Thread Josh Poimboeuf
On Tue, Feb 06, 2018 at 07:44:52PM +, David Woodhouse wrote: > On Fri, 2018-01-26 at 21:08 +0100, Borislav Petkov wrote: > > Make it all a function which does the WRMSR instead of having a hairy > > inline asm. > > ... > > > + alternative_input("", > > +  "call __ibp_barri

[PULL] A few more documentation changes for 4.16

2018-02-06 Thread Jonathan Corbet
The following changes since commit 255442c93843f52b6891b21d0b485bf2c97f93c3: Merge tag 'docs-4.16' of git://git.lwn.net/linux (2018-01-31 19:25:25 -0800) are available in the Git repository at: git://git.lwn.net/linux.git tags/docs-4.16-2 for you to fetch changes up to 78ed78451963d1a4282bc

[PATCH] crypto: qat - Make several functions static

2018-02-06 Thread Colin King
From: Colin Ian King Functions qat_rsa_set_n, qat_rsa_set_e and qat_rsa_set_n are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: drivers/crypto/qat/qat_common/qat_asym_algs.c:972:5: warning: symbol 'qat_rsa_set_n' was not declared. Shou

Re: [PATCHv2 1/1] ext4: don't put symlink in pagecache into highmem

2018-02-06 Thread Eric Biggers
On Tue, Feb 06, 2018 at 06:11:49PM -0500, Theodore Ts'o wrote: > On Tue, Feb 06, 2018 at 12:39:53PM -0800, Greg KH wrote: > > On Tue, Feb 06, 2018 at 11:09:37AM -0800, Jin Qian wrote: > > > From: Jin Qian > > > > > > partial backport from 21fc61c73c3903c4c312d0802da01ec2b323d174 upstream > > > to

linux-next: manual merge of the btrfs-kdave tree with Linus' tree

2018-02-06 Thread Stephen Rothwell
Hi David, Today's linux-next merge of the btrfs-kdave tree got a conflict in: fs/btrfs/disk-io.c between commit: 540adea3809f ("error-injection: Separate error-injection from kprobe") from Linus' tree and commit: 8bd2a9b19fd7 ("btrfs: Remove custom crc32c init code") from the btrfs-kda

<    3   4   5   6   7   8   9   10   >