Re: [PATCH v2] Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple

2018-01-14 Thread Julia Lawall
On Sun, 14 Jan 2018, Himanshu Jha wrote: > Rename kzalloc-simple to zalloc-simple since now the rule is not > specific to kzalloc function only, but also to many other zero memory > allocating functions specified in the rule. > > Suggested-by: SF Markus Elfring >

[tip:x86/pti] x86/pti: Fix !PCID and sanitize defines

2018-01-14 Thread tip-bot for Thomas Gleixner
Commit-ID: f10ee3dcc9f0aba92a5c4c064628be5200765dc2 Gitweb: https://git.kernel.org/tip/f10ee3dcc9f0aba92a5c4c064628be5200765dc2 Author: Thomas Gleixner AuthorDate: Sun, 14 Jan 2018 00:23:57 +0100 Committer: Thomas Gleixner CommitDate: Sun, 14 Jan

[PATCH] kconfig: Document SYMBOL_OPTIONAL logic

2018-01-14 Thread Ulf Magnusson
Not obvious, especially if you don't already know how choices are implemented. No functional changes. Only comments added. Signed-off-by: Ulf Magnusson --- scripts/kconfig/menu.c | 9 + 1 file changed, 9 insertions(+) diff --git a/scripts/kconfig/menu.c

Re: [PATCH 8/8] irqchip/gic-v3: add power down/up sequence

2018-01-14 Thread Marc Zyngier
On Fri, 12 Jan 2018 21:24:22 +, Derek Basehore wrote: > > This adds the implementation specific power down/up sequence for the > GIC-500 and the GIC-600 (which are implementations of the GIC-v3 > specification). This allows the LPI pending information to be properly > flushed on suspend if

[tip:x86/urgent] x86/mm/pkeys: Fix fill_sig_info_pkey

2018-01-14 Thread tip-bot for Eric W. Biederman
Commit-ID: beacd6f7ed5e2915959442245b3b2480c2e37490 Gitweb: https://git.kernel.org/tip/beacd6f7ed5e2915959442245b3b2480c2e37490 Author: Eric W. Biederman AuthorDate: Fri, 12 Jan 2018 14:31:35 -0600 Committer: Thomas Gleixner CommitDate: Sun,

[tip:x86/urgent] x86/tsc: Print tsc_khz, when it differs from cpu_khz

2018-01-14 Thread tip-bot for Len Brown
Commit-ID: 4b5b2127238e689ee18aa6752959751dd61c4c73 Gitweb: https://git.kernel.org/tip/4b5b2127238e689ee18aa6752959751dd61c4c73 Author: Len Brown AuthorDate: Fri, 22 Dec 2017 00:27:56 -0500 Committer: Thomas Gleixner CommitDate: Sun, 14 Jan 2018

Re: [PATCH v7 1/4] i2c-smbus : Add client discovered ARA support

2018-01-14 Thread Jonathan Cameron
On Sat, 13 Jan 2018 14:37:02 +0100 Marc CAPDEVILLE wrote: > This is from rfc by Alan Cox : https://patchwork.ozlabs.org/patch/381773 > > The idea is as follows (extract from above rfc) : > - If an adapter knows about its ARA and smbus alerts then the adapter > creates

Re: [PATCH v7 3/4] iio : Add cm3218 smbus ARA and ACPI support

2018-01-14 Thread Jonathan Cameron
On Sat, 13 Jan 2018 14:37:04 +0100 Marc CAPDEVILLE wrote: > On asus T100, Capella cm3218 chip is implemented as ambiant light > sensor. This chip expose an smbus ARA protocol device on standard > address 0x0c. The chip is not functional before all alerts are >

[tip:x86/urgent] x86/tsc: Fix erroneous TSC rate on Skylake Xeon

2018-01-14 Thread tip-bot for Len Brown
Commit-ID: b511203093489eb1829cb4de86e8214752205ac6 Gitweb: https://git.kernel.org/tip/b511203093489eb1829cb4de86e8214752205ac6 Author: Len Brown AuthorDate: Fri, 22 Dec 2017 00:27:55 -0500 Committer: Thomas Gleixner CommitDate: Sun, 14 Jan 2018

[tip:x86/urgent] x86/tsc: Future-proof native_calibrate_tsc()

2018-01-14 Thread tip-bot for Len Brown
Commit-ID: da4ae6c4a0b8dee5a5377a385545d2250fa8cddb Gitweb: https://git.kernel.org/tip/da4ae6c4a0b8dee5a5377a385545d2250fa8cddb Author: Len Brown AuthorDate: Fri, 22 Dec 2017 00:27:54 -0500 Committer: Thomas Gleixner CommitDate: Sun, 14 Jan 2018

[PATCH] kconfig: Clarify choice dependency propagation

2018-01-14 Thread Ulf Magnusson
It's easy to miss that choices are special-cased to pass on their mode as the parent dependency. No functional changes. Only comments added. Signed-off-by: Ulf Magnusson --- scripts/kconfig/menu.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v1 5/6] x86/boot: Allow longer parameter list for earlyprintk

2018-01-14 Thread Andy Shevchenko
Allow longer parameter list for earlyprintk to support new coming parameters. No functional change intended. Signed-off-by: Andy Shevchenko --- arch/x86/boot/early_serial_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v1 1/6] x86/boot: Convert early_serial_base to unsigned long

2018-01-14 Thread Andy Shevchenko
As a preparatory of adding flexible serial I/O accessors, convert early_serial_base to unsigned long to cover all possible bus addresses on the system. No functional change intended. Signed-off-by: Andy Shevchenko --- arch/x86/boot/boot.h

[PATCH v1 6/6] x86/boot: Support nocfg parameter for earlyprintk

2018-01-14 Thread Andy Shevchenko
If by BIOS or by other means serial port is configured user might want to skip reconfiguration in the boot code. Add support of 'nocfg' parameter to earlyprintk. Signed-off-by: Andy Shevchenko --- arch/x86/boot/early_serial_console.c | 31

[PATCH v1 4/6] x86/boot: Assume MMIO if serial base address supplied via earlyprintk

2018-01-14 Thread Andy Shevchenko
If user supplied serial base address via kernel command line and value is higher than IO space limit (64k boundary), assume for now that MMIO byte access is required. Later we might expand or modify this if needed. Signed-off-by: Andy Shevchenko ---

Re: [PATCH v7 2/4] i2c-acpi : exclude ARA address for smbus device

2018-01-14 Thread Marc CAPDEVILLE
> On Sat, 13 Jan 2018 14:37:03 +0100 > Marc CAPDEVILLE wrote: >> Somme ACPI enumerated devices are known to support smbus alert protocol. >> Theses devices may be miss-enumerated with the reserved smbus ARA address. >> This is the case on Asus T100 tablet where cm3218

Re: [PATCH v2] x86/retpoline: Add LFENCE to the retpoline/RSB filling RSB macros

2018-01-14 Thread Borislav Petkov
On Sat, Jan 13, 2018 at 05:27:30PM -0600, Tom Lendacky wrote: > The PAUSE instruction is currently used in the retpoline and RSB filling > macros as a speculation trap. The use of PAUSE was originally suggested > because it showed a very, very small difference in the amount of > cycles/time used

[PATCH] kernel:bpf Remove structure passing and assignment to save stack and no coping structures

2018-01-14 Thread Karim Eshapa
>> Use pointers to structure as arguments to function instead of coping >> structures and less stack size. Also transfer TNUM(_v, _m) to >> tnum.h file to be used in differnet files for creating anonymous structures >> statically. >> >> Signed-off-by: Karim Eshapa ... >>

Re: [REGRESSION][v4.14.y][v4.15] x86/intel_rdt/cqm: Improve limbo list processing

2018-01-14 Thread Thomas Gleixner
On Fri, 12 Jan 2018, Joseph Salisbury wrote: > Hi Vikas, > > A kernel bug report was opened against Ubuntu [0].  After a kernel > bisect, it was found that reverting the following commit resolved this bug: > > commit 24247aeeabe99eab13b798c2dec066dd6f07 > Author: Vikas Shivappa

[PATCH 0/2] kconfig: 'if' and automatic submenu creation documentation

2018-01-14 Thread Ulf Magnusson
These together should make the automatic submenu logic a lot clearer. Ulf Magnusson (2): kconfig: Document 'if' flattening logic kconfig: Improve auto. menu documentation accuracy scripts/kconfig/menu.c | 33 + 1 file changed, 29 insertions(+), 4 deletions(-)

Re: [PATCH] IIO: ADC: stm32-dfsdm: avoid unused-variable warning

2018-01-14 Thread Jonathan Cameron
On Thu, 11 Jan 2018 18:38:49 +0100 Arnaud Pouliquen wrote: > On 01/11/2018 03:27 PM, Robin Murphy wrote: > > On 11/01/18 10:34, Arnd Bergmann wrote: > >> Building with CONFIG_OF disabled produces a compiler warning: > >> > >> drivers/iio/adc/stm32-dfsdm-core.c: In

Re: [PATCH v2 00/16] add support for AXP813 ADC and battery power supply

2018-01-14 Thread Jonathan Cameron
On Tue, 9 Jan 2018 10:33:31 +0100 Quentin Schulz wrote: > The AXP813 PMIC is relatively close to the already supported AXP20X and > AXP22X. It provides three different power outputs: battery, AC and USB, and > measures a few different things: temperature,

[PATCH v1 3/6] x86/boot: Add MMIO byte accessors

2018-01-14 Thread Andy Shevchenko
readb() and writeb() would help to access serial device via MMIO address space. Signed-off-by: Andy Shevchenko --- arch/x86/boot/boot.h | 12 1 file changed, 12 insertions(+) diff --git a/arch/x86/boot/boot.h b/arch/x86/boot/boot.h index

Congratulations

2018-01-14 Thread mikhail fridman
-- Dear Congratulation i have selected you Just as I have declared on May 23, 2016 to give my fortune as charity get back to me now. Best Regards mikhail fridman

[PATCH] x86,perf: Disable intel_bts when PTI

2018-01-14 Thread Peter Zijlstra
The intel_bts driver does not use the 'normal' BTS buffer we allocated space for in the cpu_entry_area but instead uses the memory allocated for the perf AUX buffer. This obviously comes apart when using PTI because then the kernel mapping; which includes that AUX buffer memory; disappears. For

Re: [PATCH v2] iio: adc: max9611: fix module auto-loading

2018-01-14 Thread Jonathan Cameron
On Wed, 10 Jan 2018 12:01:07 +0100 Javier Martinez Canillas wrote: > Hello Jonathan, > > On Mon, Jan 1, 2018 at 10:53 AM, Jonathan Cameron wrote: > > [snip] > > > > > I may well be missing some subtle detail of course having spent only a few > > minute

[tip:x86/pti] x86,perf: Disable intel_bts when PTI

2018-01-14 Thread tip-bot for Peter Zijlstra
Commit-ID: 99a9dc98ba52267ce5e062b52de88ea1f1b2a7d8 Gitweb: https://git.kernel.org/tip/99a9dc98ba52267ce5e062b52de88ea1f1b2a7d8 Author: Peter Zijlstra AuthorDate: Sun, 14 Jan 2018 11:27:13 +0100 Committer: Thomas Gleixner CommitDate: Sun, 14

Re: [PATCH] x86,perf: Disable intel_bts when PTI

2018-01-14 Thread Thomas Gleixner
On Sun, 14 Jan 2018, Greg KH wrote: > On Sun, Jan 14, 2018 at 11:27:13AM +0100, Peter Zijlstra wrote: > > > > The intel_bts driver does not use the 'normal' BTS buffer we allocated > > space for in the cpu_entry_area but instead uses the memory allocated > > for the perf AUX buffer. > > > >

Re: [PATCH v7 1/3] fs: fat: Add fat filesystem partition volume label in local structure

2018-01-14 Thread OGAWA Hirofumi
ChenGuanqiao writes: > Signed-off-by: ChenGuanqiao > --- > fs/fat/fat.h | 6 ++ > fs/fat/inode.c| 15 --- > include/uapi/linux/msdos_fs.h | 2 ++ > 3 files changed, 20 insertions(+), 3

Re: [PATCHSET v5] blk-mq: reimplement timeout handling

2018-01-14 Thread Ming Lei
On Sun, Jan 14, 2018 at 11:12 PM, jianchao.wang wrote: > > > On 01/13/2018 05:19 AM, Bart Van Assche wrote: >> Sorry but I only retrieved the blk-mq debugfs several minutes after the hang >> started so I'm not sure the state information is relevant. Anyway, I have >>

Re: [PATCH v8 03/12] x86/retpoline: Add initial retpoline support

2018-01-14 Thread Josh Poimboeuf
On Sun, Jan 14, 2018 at 04:02:19PM +0100, Borislav Petkov wrote: > On Thu, Jan 11, 2018 at 09:46:25PM +, David Woodhouse wrote: > > +/* > > + * This should be used immediately before a retpoline alternative. It > > tells > > + * objtool where the retpolines are so that it can make sense of

Re: [PATCH] vfs: remove unused argument in iterate_bdevs

2018-01-14 Thread kbuild test robot
-ci/linux/commits/Rakesh-Pandit/vfs-remove-unused-argument-in-iterate_bdevs/20180114-215207 config: i386-randconfig-a1-01142254 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new

Re: [PATCH] net/mlx4_en: ensure rx_desc updating reaches HW before prod db updating

2018-01-14 Thread Tariq Toukan
Thanks Jianchao for your patch. And Thank you guys for your reviews, much appreciated. I was off-work on Friday and Saturday. On 14/01/2018 4:40 AM, jianchao.wang wrote: Dear all Thanks for the kindly response and reviewing. That's really appreciated. On 01/13/2018 12:46 AM, Eric Dumazet

Re: [PATCH 5/8] DT/arm,gic-v3: add save-suspend-state property

2018-01-14 Thread Marc Zyngier
On Fri, 12 Jan 2018 21:24:19 +, Derek Basehore wrote: > > This adds documentation for the new save-suspend-state property. This > property enables saving and restoring the GIC for when it loses state > in system suspend. > > Signed-off-by: Derek Basehore Please CC

Re: [PATCH] x86,perf: Disable intel_bts when PTI

2018-01-14 Thread Greg KH
On Sun, Jan 14, 2018 at 11:27:13AM +0100, Peter Zijlstra wrote: > > The intel_bts driver does not use the 'normal' BTS buffer we allocated > space for in the cpu_entry_area but instead uses the memory allocated > for the perf AUX buffer. > > This obviously comes apart when using PTI because then

Re: [mm 4.15-rc7] Random oopses under memory pressure.

2018-01-14 Thread Tetsuo Handa
This memory corruption bug occurs even on CONFIG_SMP=n CONFIG_PREEMPT_NONE=y kernel. This bug highly depends on timing and thus too difficult to bisect. This bug seems to exist at least since Linux 4.8 (judging from the traces, though the cause might be different). None of debugging configuration

Re: [PATCH] x86/alternatives: fixup alternative_call_2

2018-01-14 Thread Thomas Gleixner
On Mon, 25 Dec 2017, Alexey Dobriyan wrote: > The following pattern fails to compile while the same pattern > with alternative_call() does. > > if (...) > alternative_call_2(...); > else > alternative_call_2(...); Sigh. Can we get an explanation WHY it

Re: [tip:x86/mm] x86/kasan: Panic if there is not enough memory to boot

2018-01-14 Thread Ingo Molnar
* tip-bot for Andrey Ryabinin wrote: > Commit-ID: 74b61d1fb59bed3a6608161b05f2c0f5cb71acf6 > Gitweb: > https://git.kernel.org/tip/74b61d1fb59bed3a6608161b05f2c0f5cb71acf6 > Author: Andrey Ryabinin > AuthorDate: Wed, 10 Jan 2018 18:36:02

Re: [PATCH] mtd: onenand: samsung: remove incorrect __iomem annotation

2018-01-14 Thread Boris Brezillon
On Sat, 13 Jan 2018 17:56:16 +0100 Christophe JAILLET wrote: > 'page_buf' and 'oob_buf' are allocated with 'devm_kzalloc()' and should not > have __iommem decoration. ^ __iomem No need to send a new version, I'll fix it when applying. > > Remove these

[PATCH 2/2] extcon: axp288: Only reschedule charger-detection at boot when a SDP is detected

2018-01-14 Thread Hans de Goede
The only misdetection which can happen at boot due to data-lines mux issues is detecting a non SDP as SDP, so we only need to retry if we detect a SDP on our first detection. Note Vbus misdetection is not a problem, as soon as the drivers controlling the Vbus path set it correctly we will get an

[PATCH 1/2] extcon: axp288: Constify the axp288_pwr_up_down_info array

2018-01-14 Thread Hans de Goede
Make the axp288_pwr_up_down_info array const char * const, this leads to the following section size changes: .text 0x674 -> 0x664 .data 0x148 -> 0x0f0 .rodata 0x0b4 -> 0x114 Signed-off-by: Hans de Goede --- drivers/extcon/extcon-axp288.c | 4 ++-- 1 file changed,

Re: [tip:x86/pti] x86/retpoline: Fill return stack buffer on vmexit

2018-01-14 Thread Borislav Petkov
On Fri, Jan 12, 2018 at 03:37:49AM -0800, tip-bot for David Woodhouse wrote: > Commit-ID: 117cc7a908c83697b0b737d15ae1eb5943afe35b > Gitweb: > https://git.kernel.org/tip/117cc7a908c83697b0b737d15ae1eb5943afe35b > Author: David Woodhouse > AuthorDate: Fri, 12 Jan 2018

[PATCH net-next v3] xfrm: Add ESN support for IPSec HW offload

2018-01-14 Thread yossefe
From: Yossef Efraim This patch adds ESN support to IPsec device offload. Adding new xfrm device operation to synchronize device ESN. Signed-off-by: Yossef Efraim --- Changes from v1: - Added documentation Changes from v2: - Due to Shannon Nelson's

Re: [PATCH v7 2/3] fs: fat: Add volume label entry method function

2018-01-14 Thread OGAWA Hirofumi
ChenGuanqiao writes: > Signed-off-by: ChenGuanqiao > --- > fs/fat/dir.c | 53 + > 1 file changed, 53 insertions(+) > > diff --git a/fs/fat/dir.c b/fs/fat/dir.c > index

[RESEND PATCH 0/2] selftests: ftrace: Fix multiple-kprobe testcase

2018-01-14 Thread Masami Hiramatsu
Hi, These patches are fixing a bug and improve testcase to ensure adding 256 kprobe events for test. I've just updated to the latest kselftest/master branch. Thank you, --- Masami Hiramatsu (2): [BUGFIX] selftest: ftrace: Fix to pick text symbols for kprobes selftest: ftrace: Fix

[PATCH v1 2/6] x86/boot: Introduce helpers for serial I/O

2018-01-14 Thread Andy Shevchenko
As preparatory to enable earlyprintk on non-standard ports on x86, introduce serial_in() and serial_out() helpers to perform serial I/O. No functional change intended. Signed-off-by: Andy Shevchenko --- arch/x86/boot/boot.h| 2 +

Re: [PATCHSET v5] blk-mq: reimplement timeout handling

2018-01-14 Thread jianchao.wang
On 01/13/2018 05:19 AM, Bart Van Assche wrote: > Sorry but I only retrieved the blk-mq debugfs several minutes after the hang > started so I'm not sure the state information is relevant. Anyway, I have > attached > it to this e-mail. The most remarkable part is the following: > >

[GIT pull] x86/pti updates for 4.15

2018-01-14 Thread Thomas Gleixner
Linus, please pull the latest x86-pti-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-pti-for-linus This update contains: - A PTI bugfix to avoid setting reserved CR3 bits when PCID is disabled. This seems to cause issues on a virtual machine at

Re: [PATCH] drviers/nvme/target: fix max dup length for kstrndup

2018-01-14 Thread Sagi Grimberg
Looks good, Reviewed-by: Sagi Grimberg

Re: [PATCH] x86/retpoline: Fill RSB on context switch for affected CPUs

2018-01-14 Thread Thomas Gleixner
On Fri, 12 Jan 2018, David Woodhouse wrote: > +/* Check for Skylake-like CPUs (for RSB handling) */ > +static bool __init is_skylake_era(void) > +{ > + if (boot_cpu_data.x86 == 6) { This wants a checkfor vendor = intel > + switch (boot_cpu_data.x86_model) { > + case

Re: [tip:x86/mm] x86/kasan: Panic if there is not enough memory to boot

2018-01-14 Thread Thomas Gleixner
On Sun, 14 Jan 2018, Ingo Molnar wrote: > > * tip-bot for Andrey Ryabinin wrote: > > > Commit-ID: 74b61d1fb59bed3a6608161b05f2c0f5cb71acf6 > > Gitweb: > > https://git.kernel.org/tip/74b61d1fb59bed3a6608161b05f2c0f5cb71acf6 > > Author: Andrey Ryabinin

Re: [tip:x86/pti] x86/retpoline: Fill return stack buffer on vmexit

2018-01-14 Thread Borislav Petkov
On Fri, Jan 12, 2018 at 03:37:49AM -0800, tip-bot for David Woodhouse wrote: > Commit-ID: 117cc7a908c83697b0b737d15ae1eb5943afe35b > Gitweb: > https://git.kernel.org/tip/117cc7a908c83697b0b737d15ae1eb5943afe35b > Author: David Woodhouse > AuthorDate: Fri, 12 Jan 2018

[tip:x86/pti] x86/kasan: Panic if there is not enough memory to boot

2018-01-14 Thread tip-bot for Andrey Ryabinin
Commit-ID: def0e7b54d63bae120302a4957c272107563ad04 Gitweb: https://git.kernel.org/tip/def0e7b54d63bae120302a4957c272107563ad04 Author: Andrey Ryabinin AuthorDate: Wed, 10 Jan 2018 18:36:02 +0300 Committer: Thomas Gleixner CommitDate: Sun,

[PATCH v2 1/2] kconfig: Document 'if' flattening logic

2018-01-14 Thread Ulf Magnusson
It is not obvious that this might refer to an 'if', making the code pretty cryptic: if (menu->list && (!menu->prompt || !menu->prompt->text)) { Kconfig keeps the 'if' menu nodes even after flattening. Reflect that in the example to be accurate. No functional changes. Only comments

Re: [PATCH v8 03/12] x86/retpoline: Add initial retpoline support

2018-01-14 Thread Borislav Petkov
On Sun, Jan 14, 2018 at 09:53:45AM -0600, Josh Poimboeuf wrote: > Yeah, that idea came after this patch was already written. I haven't > implemented it yet. Oh ok. I guess that's fine for the current situation. When you do, you can simply kill the macro so all good. Thx. -- Regards/Gruss,

Re: [PATCH] [net-next] net: netsec: use dma_addr_t for storing dma address

2018-01-14 Thread David Miller
From: Arnd Bergmann Date: Sat, 13 Jan 2018 22:13:44 +0100 > On targets that have different sizes for phys_addr_t and dma_addr_t, > we get a type mismatch error: > > drivers/net/ethernet/socionext/netsec.c: In function 'netsec_alloc_dring': >

Re: [PATCH] e1000e: Fix e1000_check_for_copper_link_ich8lan return value.

2018-01-14 Thread Greg KH
On Wed, Jan 10, 2018 at 10:34:43AM +0900, Benjamin Poirier wrote: > On 2018/01/10 01:29, rwar...@gmx.de wrote: > > hallo > > > > any chance to get this patch into stable and 4.15 ? > > > > https://marc.info/?l=linux-kernel=151297726823919=2 > > > > It was part of the last network pull request

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-14 Thread Jonathan Cameron
On Tue, 9 Jan 2018 21:24:01 + Jeremy Cline wrote: > On 12/10/2017 12:21 PM, Jonathan Cameron wrote: > > On Wed, 6 Dec 2017 17:52:34 + > > Jeremy Cline wrote: > > > >> Some BOSC0200 acpi_device-s describe two accelerometers in a single ACPI > >>

Re: [PATCH] iio: adc: aspeed: Fix error handling path

2018-01-14 Thread Jonathan Cameron
On Mon, 8 Jan 2018 07:47:36 +0100 Christophe JAILLET wrote: > The labels and branching order of the error path of 'aspeed_adc_probe()' > are broken. > Re-order the labels and goto statements. > > Signed-off-by: Christophe JAILLET

Re: [PATCH] x86: mce: fix type mismatch warning

2018-01-14 Thread Thomas Gleixner
On Wed, 10 Jan 2018, Arnd Bergmann wrote: > The printed symbol is a 64-bit address, so we get a warning when > building this code for 32-bit kernels: > > arch/x86/kernel/cpu/mcheck/mce.c: In function '__print_mce': > arch/x86/kernel/cpu/mcheck/mce.c:237:21: error: cast to pointer from integer

[PATCH v2] x86/alternatives: fixup alternative_call_2

2018-01-14 Thread Alexey Dobriyan
The following pattern fails to compile while the same pattern with alternative_call() does: if (...) alternative_call_2(...); else alternative_call_2(...); as it expands into if (...) { }; <=== else {

[tip:x86/mm] x86/kasan: Panic if there is not enough memory to boot

2018-01-14 Thread tip-bot for Andrey Ryabinin
Commit-ID: 74b61d1fb59bed3a6608161b05f2c0f5cb71acf6 Gitweb: https://git.kernel.org/tip/74b61d1fb59bed3a6608161b05f2c0f5cb71acf6 Author: Andrey Ryabinin AuthorDate: Wed, 10 Jan 2018 18:36:02 +0300 Committer: Thomas Gleixner CommitDate: Sun,

Re: [PATCH] x86/centaur: Mark TSC invariant

2018-01-14 Thread Thomas Gleixner
On Wed, 10 Jan 2018, TimGuo wrote: Please be more careful when sending patches. The subject line of you mail was empty Also this patch was copy pasted or whatever into the mail and got white space damaged by your mail client, so it does not apply. See Documentation/process/email-clients.txt

Re: [PATCH] x86,perf: Disable intel_bts when PTI

2018-01-14 Thread Ingo Molnar
* Greg KH wrote: > On Sun, Jan 14, 2018 at 11:27:13AM +0100, Peter Zijlstra wrote: > > > > The intel_bts driver does not use the 'normal' BTS buffer we allocated > > space for in the cpu_entry_area but instead uses the memory allocated > > for the perf AUX buffer. > > > > This

Re: [PATCH] x86,perf: Disable intel_bts when PTI

2018-01-14 Thread Greg KH
On Sun, Jan 14, 2018 at 01:54:44PM +0100, Ingo Molnar wrote: > > * Greg KH wrote: > > > On Sun, Jan 14, 2018 at 11:27:13AM +0100, Peter Zijlstra wrote: > > > > > > The intel_bts driver does not use the 'normal' BTS buffer we allocated > > > space for in the cpu_entry_area but

Re: [PATCH v7 3/4] iio : Add cm3218 smbus ARA and ACPI support

2018-01-14 Thread Marc CAPDEVILLE
> On Sat, 13 Jan 2018 14:37:04 +0100 > Marc CAPDEVILLE wrote: > >> On asus T100, Capella cm3218 chip is implemented as ambiant light >> sensor. This chip expose an smbus ARA protocol device on standard >> address 0x0c. The chip is not functional before all alerts are >>

Re: [PATCH v8 03/12] x86/retpoline: Add initial retpoline support

2018-01-14 Thread Borislav Petkov
On Thu, Jan 11, 2018 at 09:46:25PM +, David Woodhouse wrote: > +/* > + * This should be used immediately before a retpoline alternative. It tells > + * objtool where the retpolines are so that it can make sense of the control > + * flow by just reading the original instruction(s) and ignoring

Re: [PATCH] vfs: remove unused argument in iterate_bdevs

2018-01-14 Thread kbuild test robot
/commits/Rakesh-Pandit/vfs-remove-unused-argument-in-iterate_bdevs/20180114-215207 config: i386-randconfig-x071-201802 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new

Re: [tip:x86/pti] x86/retpoline: Fill return stack buffer on vmexit

2018-01-14 Thread Thomas Gleixner
On Sun, 14 Jan 2018, Borislav Petkov wrote: > On Fri, Jan 12, 2018 at 03:37:49AM -0800, tip-bot for David Woodhouse wrote: > > Commit-ID: 117cc7a908c83697b0b737d15ae1eb5943afe35b > > Gitweb: > > https://git.kernel.org/tip/117cc7a908c83697b0b737d15ae1eb5943afe35b > > Author: David

Re: divide error in ___bpf_prog_run

2018-01-14 Thread David Miller
From: Daniel Borkmann Date: Sun, 14 Jan 2018 01:16:17 +0100 > Will get them in as soon as DaveM pulled the current batch into net. This is now done.

Re: [PATCH 04/36] usercopy: Prepare for usercopy whitelisting

2018-01-14 Thread Matthew Wilcox
On Wed, Jan 10, 2018 at 12:28:23PM -0600, Christopher Lameter wrote: > On Tue, 9 Jan 2018, Kees Cook wrote: > > +struct kmem_cache *kmem_cache_create_usercopy(const char *name, > > + size_t size, size_t align, slab_flags_t flags, > > + size_t useroffset, size_t

[PATCH] blk_rq_map_user_iov: fix error override

2018-01-14 Thread Douglas Gilbert
During stress tests by syzkaller on the sg driver the block layer infrequently returns EINVAL. Closer inspection shows the block layer was trying to return ENOMEM (which is much more understandable) but for some reason overroad that useful error. Patch below does not show this (unchanged) line:

[PATCH v2] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Dominik Brodowski
As ieee80211_bss_get_ie() derefences an RCU, it needs to be called with rcu_read_lock held. Fixes: 44905265bc15 ("nl80211: don't expose wdev->ssid for most interfaces") Signed-off-by: Dominik Brodowski --- > This uses the ssid_ie, so that doesn't really seem right?

[GIT PULL] Please pull powerpc/linux.git powerpc-4.15-7 tag

2018-01-14 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc fixes for 4.15, sorry these are so late. The following changes since commit ecb101aed86156ec7cd71e5dca668e09146e6994: powerpc/mm: Fix SEGV on mapped region to return SEGV_ACCERR (2018-01-02 21:12:33 +1100) are available in the Git repository at:

Re: [PATCH v2 06/16] ASoC: fsl_ssi: Clean up helper functions of trigger()

2018-01-14 Thread Maciej S. Szmigiero
On 11.01.2018 07:43, Nicolin Chen wrote: > The trigger() calls fsl_ssi_tx_config() and fsl_ssi_rx_config(), > and both of them jump to fsl_ssi_config(). And fsl_ssi_config() > later calls another fsl_ssi_rxtx_config(). > > However, the whole routine, especially fsl_ssi_config() function, > is too

Re: [PATCH] EDAC, mv64x60: Remove some code duplication

2018-01-14 Thread Chris Packham
Hi Christophe, On 14/01/18 06:17, Christophe JAILLET wrote: > Le 13/01/2018 à 15:22, Borislav Petkov a écrit : >> + Chris Packham who's been fixing some stuff in here too. >> >> On Sat, Jan 13, 2018 at 08:28:21AM +0100, Christophe JAILLET wrote: >>> Reorder the error handling code in order to

[PATCH] x86/retpoline: Switch thunk names to match final GCC patches

2018-01-14 Thread David Woodhouse
At the last minute, they were switched from __x86_indirect_thunk_rax to __x86_indirect_thunk_ax without the 'r' or 'e' on the register name. Except for the _r[89..] versions, obviously. This is not entirely an improvement, IMO. Reluctantly-signed-off-by: David Woodhouse --- I

Re: [tip:x86/pti] x86/retpoline: Fill RSB on context switch for affected CPUs

2018-01-14 Thread Andi Kleen
> + if ((!boot_cpu_has(X86_FEATURE_PTI) && > + !boot_cpu_has(X86_FEATURE_SMEP)) || is_skylake_era()) { > + setup_force_cpu_cap(X86_FEATURE_RSB_CTXSW); > + pr_info("Filling RSB on context switch\n"); > + } Missing an option to turn this off. -Andi

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

2018-01-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the bpf-next tree got a conflict in: arch/x86/lib/Makefile between commit: 76b043848fd2 ("x86/retpoline: Add initial retpoline support") from Linus' tree and commit: 540adea3809f ("error-injection: Separate error-injection from kprobe") from the

[PATCH] PM / runtime: Check ignore_children in pm_runtime_need_not_resume()

2018-01-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Modify pm_runtime_need_not_resume() to make it avoid taking power.child_count for devices with power.ignore_children which is consistent with the runtime PM usage of these fields. Suggested-by: Ulf Hansson

Re: [PATCH 0/2] PM / core: genpd fix and pm_runtime_force_suspend|resume() rework

2018-01-14 Thread Geert Uytterhoeven
Hi Rafael, On Sat, Jan 13, 2018 at 1:38 AM, Rafael J. Wysocki wrote: > On Friday, January 12, 2018 3:31:09 PM CET Geert Uytterhoeven wrote: >> On Fri, Jan 12, 2018 at 2:00 PM, Rafael J. Wysocki >> wrote: >> > This comes from the recent discussion/testing

Re: [PATCH V3 2/2] nvme-pci: fix the timeout case when reset is ongoing

2018-01-14 Thread Sagi Grimberg
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index e477c35..0530432 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -1212,19 +1212,26 @@ static enum blk_eh_timer_return nvme_timeout(struct request *req, bool reserved) } /* -*

Re: [PATCH V3 1/2] nvme: split resetting state into reset_prepate and resetting

2018-01-14 Thread Sagi Grimberg
Currently, the ctrl->state will be changed to NVME_CTRL_RESETTING before queue the reset work. This is not so strict. There could be a big gap before the reset_work callback is invoked. In addition, there is some disable work in the reset_work callback, strictly speaking, not part of reset

Re: [PATCH 6/8] irqchip/gic-v3-its: add ability to resend MAPC on resume

2018-01-14 Thread Marc Zyngier
On Fri, 12 Jan 2018 21:24:20 +, Derek Basehore wrote: > > This adds a DT-binding to resend the MAPC command to an ITS node on This isn't a DT binding. That's the driver implementation. The binding is what you put in Documentation/device-tree... > resume. If the ITS is powered down during

Re: [PATCH] iio: accel: use strlcpy() instead of strncpy()

2018-01-14 Thread Jonathan Cameron
On Fri, 12 Jan 2018 15:45:38 +0800 Xiongfeng Wang wrote: > From: Xiongfeng Wang > > gcc-8 reports > > drivers/iio/accel/st_accel_i2c.c: In function 'st_accel_i2c_probe': > ./include/linux/string.h:245:9: warning: '__builtin_strncpy'

Re: [PATCH] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Johannes Berg
Hi, > Fixes: 44905265bc15 ("nl80211: don't expose wdev->ssid for most interfaces") > Signed-off-by: Dominik Brodowski > --- > > This patch fixes the regression I reported in the last couple of weeks for > various v4.15-rcX revisions to netdev, where a "suspicious RCU

Re: [PATCH v5 01/36] timers: Use static keys for migrate_enable/nohz_active

2018-01-14 Thread Thomas Gleixner
On Fri, 22 Dec 2017, Sebastian Andrzej Siewior wrote: > - if (!IS_ENABLED(CONFIG_NO_HZ_COMMON) || !base->nohz_active) > + if (!is_timers_nohz_active()) That's wrong. You are undoing the mainline changes. I'll send an updated one. Thanks, tglx

Re: [PATCH v2 13/16] ASoC: fsl_ssi: Clean up _fsl_ssi_set_dai_fmt()

2018-01-14 Thread Maciej S. Szmigiero
On 11.01.2018 07:43, Nicolin Chen wrote: > The _fsl_ssi_set_dai_fmt() is a helper function being called from > fsl_ssi_set_dai_fmt() as an ASoC operation and fsl_ssi_hw_init() > mainly for AC97 format initialization. > > This patch cleans the _fsl_ssi_set_dai_fmt() in following ways: > * Removing

Re: [PATCH v2] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Johannes Berg
On Sun, 2018-01-14 at 23:22 +0100, Dominik Brodowski wrote: > > + rcu_read_lock(); > ssid_ie = ieee80211_bss_get_ie(>current_bss->pub, > WLAN_EID_SSID); > if (!ssid_ie) > - break; nit-picking

Re: [PATCH v2 14/16] ASoC: fsl_ssi: Remove cpu_dai_drv from fsl_ssi structure

2018-01-14 Thread Maciej S. Szmigiero
On 11.01.2018 07:43, Nicolin Chen wrote: > The cpu_dai_drv is only used for symmetric_rates. So this patch replaces > it with a synchronous boolean flag. You make cpu_dai_drv common to all SSI instances instead of per-instance. What if you have multiple SSIs in the system with different

Re: [tip:timers/urgent] timers: Unconditionally check deferrable base

2018-01-14 Thread Paul E. McKenney
On Sun, Jan 14, 2018 at 02:31:07PM -0800, tip-bot for Thomas Gleixner wrote: > Commit-ID: ed4bbf7910b28ce3c691aef28d245585eaabda06 > Gitweb: > https://git.kernel.org/tip/ed4bbf7910b28ce3c691aef28d245585eaabda06 > Author: Thomas Gleixner > AuthorDate: Sun, 14 Jan 2018

Re: [GIT pull] x86/pti updates for 4.15

2018-01-14 Thread Thomas Gleixner
On Sun, 14 Jan 2018, Linus Torvalds wrote: > On Sun, Jan 14, 2018 at 1:01 PM, Thomas Gleixner wrote: > > > > Good point. I'll queue a patch to that effect or do you just want to do > > that yourself? > > I don't think it's critical, and I don't care for rc8, so it's not >

Re: [PATCH] x86/retpoline: Switch thunk names to match final GCC patches

2018-01-14 Thread Linus Torvalds
On Sun, Jan 14, 2018 at 3:23 PM, David Woodhouse wrote: > I think we *shouldn't* do this. Uros said we could look at it and make > a decision, and GCC would implement what we decide. Up to Linus. Regardless of whether we end up having to do this, I'm not doing rc8 with it, and

Re: [PATCH] ACPI / LPSS: Do not instiate a platform_dev for devs without a mmio resource

2018-01-14 Thread Rafael J. Wysocki
On Sun, Jan 14, 2018 at 9:01 PM, Hans de Goede wrote: > acpi_lpss_create_device() skips handling LPSS devices which do not have > a mmio resources in their resource list (typically these devices are > disabled by the firmware). But since the LPSS code does not bind to the >

[tip:x86/pti] x86/kasan: Panic if there is not enough memory to boot

2018-01-14 Thread tip-bot for Andrey Ryabinin
Commit-ID: 0d39e2669d7b0fefd2d8f9e7868ae669b364d9ba Gitweb: https://git.kernel.org/tip/0d39e2669d7b0fefd2d8f9e7868ae669b364d9ba Author: Andrey Ryabinin AuthorDate: Wed, 10 Jan 2018 18:36:02 +0300 Committer: Thomas Gleixner CommitDate: Mon,

Re: [PATCH v2 03/16] ASoC: fsl_ssi: Maintain a mask of active streams

2018-01-14 Thread Nicolin Chen
On Sun, Jan 14, 2018 at 11:34:01PM +0100, Maciej S. Szmigiero wrote: > > + bool dir = (>regvals[TX] == vals) ? TX : RX; > Using a bool variable for a bit index (and array index in other parts > of code) looks just wrong. > > Even a simple int would look better IMHO here (and in patch 5 that >

Re: [PATCH v2 04/16] ASoC: fsl_ssi: Rename fsl_ssi_disable_val macro

2018-01-14 Thread Nicolin Chen
On Sun, Jan 14, 2018 at 11:34:37PM +0100, Maciej S. Szmigiero wrote: > > + /* Check if the opposite stream is active */ > > + aactive = ssi->streams & BIT(!dir); >^ > Here an implicit assumption that either RX == 0, TX == 1 or > RX == 1, TX == 0 still

Re: [PATCH 0/2] PM / core: genpd fix and pm_runtime_force_suspend|resume() rework

2018-01-14 Thread Rafael J. Wysocki
On Sun, Jan 14, 2018 at 10:48 AM, Geert Uytterhoeven wrote: > Hi Rafael, > > On Sat, Jan 13, 2018 at 1:38 AM, Rafael J. Wysocki wrote: >> On Friday, January 12, 2018 3:31:09 PM CET Geert Uytterhoeven wrote: >>> On Fri, Jan 12, 2018 at 2:00 PM, Rafael J.

Re: [PATCH v2 14/16] ASoC: fsl_ssi: Remove cpu_dai_drv from fsl_ssi structure

2018-01-14 Thread Nicolin Chen
On Sun, Jan 14, 2018 at 11:42:59PM +0100, Maciej S. Szmigiero wrote: > On 11.01.2018 07:43, Nicolin Chen wrote: > > The cpu_dai_drv is only used for symmetric_rates. So this patch replaces > > it with a synchronous boolean flag. > > You make cpu_dai_drv common to all SSI instances instead of

Linux 4.15-rc8

2018-01-14 Thread Linus Torvalds
Ok, another week has gone by, and here's the promised rc8. I'm still hoping that this will be the last rc, despite all the Meltdown and Spectre hoopla. But we will just have to see, it obviously requires this upcoming week to not come with any huge surprises. The patches aren't huge, but

  1   2   3   4   5   6   7   >