Re: [PATCH v2 04/18] x86/gdt: Put per-cpu GDT remaps in ascending order

2017-11-22 Thread Andy Lutomirski
On Wed, Nov 22, 2017 at 3:05 AM, Borislav Petkov wrote: > On Tue, Nov 21, 2017 at 08:43:59PM -0800, Andy Lutomirski wrote: >> We currently have CPU 0's GDT at the top of the GDT range and >> higher-numbered CPUs at lower addreses. This happens because the >> fixmap is upside down (index 0 is the

[PATCH] mm: Use vma_pages helper

2017-11-22 Thread Vasyl Gomonovych
Use vma_pages function on vma object instead of explicit computation. mm/interval_tree.c:21:27-33: WARNING: Consider using vma_pages helper Generated by: scripts/coccinelle/api/vma_pages.cocci Signed-off-by: Vasyl Gomonovych --- mm/interval_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

pull-request: wireless-drivers 2017-11-22

2017-11-22 Thread Kalle Valo
Hi Dave, here's the first pull request to net tree for 4.15. Please let me know if there are any problems. Kalle The following changes since commit 32a72bbd5da2411eab591bf9bc2e39349106193a: net: vxge: Fix some indentation issues (2017-11-20 11:36:30 +0900) are available in the git repository

Re: [RFC PATCH for 4.15 v12 00/22] Restartable sequences and CPU op vector

2017-11-22 Thread Andy Lutomirski
On Tue, Nov 21, 2017 at 2:05 PM, Mathieu Desnoyers wrote: > - On Nov 21, 2017, at 12:21 PM, Andi Kleen a...@firstfloor.org wrote: > >> On Tue, Nov 21, 2017 at 09:18:38AM -0500, Mathieu Desnoyers wrote: >>> Hi, >>> >>> Following changes based on a thorough coding style and patch changelog >>> r

hugetlb page migration vs. overcommit

2017-11-22 Thread Michal Hocko
Hi, is there any reason why we enforce the overcommit limit during hugetlb pages migration? It's in alloc_huge_page_node->__alloc_buddy_huge_page path. I am wondering whether this is really an intentional behavior. The page migration allocates a page just temporarily so we should be able to go over

[PATCH] usb: bdc: fix platform_no_drv_owner.cocci warnings

2017-11-22 Thread Vasyl Gomonovych
Remove .owner field if calls are used which set it automatically drivers/usb/gadget/udc/bdc/bdc_core.c:645:3-8: No need to set .owner here. The core will do it. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Vasyl Gomonovych --- drivers/usb/gadget/udc/bdc/bdc_c

Re: [PATCH 4.4 00/16] 4.4.101-stable review

2017-11-22 Thread Nathan Chancellor
On Wed, Nov 22, 2017 at 11:11:53AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.101 release. > There are 16 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

[PATCH] VMCI: Use memdup_user() as a cleanup

2017-11-22 Thread Vasyl Gomonovych
Fix coccicheck warning which recommends to use memdup_user(): drivers/misc/vmw_vmci/vmci_host.c:757:11-18: WARNING opportunity for memdup_user Generated by: scripts/coccinelle/memdup_user/memdup_user.cocci Signed-off-by: Vasyl Gomonovych --- drivers/misc/vmw_vmci/vmci_host.c | 19 ++-

[PATCH] [WAN]: lmc: Use memdup_user() as a cleanup

2017-11-22 Thread Vasyl Gomonovych
Fix coccicheck warning which recommends to use memdup_user(): drivers/net/wan/lmc/lmc_main.c:497:27-34: WARNING opportunity for memdup_user Generated by: scripts/coccinelle/memdup_user/memdup_user.cocci Signed-off-by: Vasyl Gomonovych --- drivers/net/wan/lmc/lmc_main.c | 13 +++-- 1 file

Re: [PATCH] mm: Use vma_pages helper

2017-11-22 Thread Michael S. Tsirkin
On Wed, Nov 22, 2017 at 04:26:50PM +0100, Vasyl Gomonovych wrote: > Use vma_pages function on vma object instead of explicit computation. > mm/interval_tree.c:21:27-33: WARNING: Consider using vma_pages helper > Generated by: scripts/coccinelle/api/vma_pages.cocci > > Signed-off-by: Vasyl Gomonovy

[PATCH 0/2] Make calibration register value fixed for ina2xx drivers

2017-11-22 Thread Maciej Purski
Hi all, this patchset contains work based on discussion with Stefan Brüns and Jonathan Cameron : https://lkml.org/lkml/2017/10/14/198 on my previous patchset: https://www.spinics.net/lists/devicetree/msg196452.html The same changes are applied for both iio and hwmon ina2xx drivers. Best regar

[PATCH 2/2] hwmon: (ina2xx) Make calibration register value fixed

2017-11-22 Thread Maciej Purski
Calibration register is used for calculating current register in hardware according to datasheet: current = shunt_volt * calib_register / 2048 (ina 226) current = shunt_volt * calib_register / 4096 (ina 219) Fix calib_register value to 2048 for ina226 and 4096 for ina 219 in order to avoid truncat

[PATCH 1/2] iio: adc: ina2xx: Make calibration register value fixed

2017-11-22 Thread Maciej Purski
Calibration register is used for calculating current register in hardware according to datasheet: current = shunt_volt * calib_register / 2048 (ina 226) current = shunt_volt * calib_register / 4096 (ina 219) Fix calib_register value to 2048 for ina226 and 4096 for ina 219 in order to avoid truncat

Re: [PATCH v2 05/18] x86/fixmap: Generalize the GDT fixmap mechanism

2017-11-22 Thread Borislav Petkov
On Tue, Nov 21, 2017 at 08:44:00PM -0800, Andy Lutomirski wrote: > Currently, the GDT is an ad-hoc array of pages, one per CPU, in the > fixmap. Generalize it to be an array of a new struct cpu_entry_area > so that we can cleanly add new things to it. > > Signed-off-by: Andy Lutomirski > --- >

Re: [BUG] 4.14 regression: Xorg hangs on exit

2017-11-22 Thread Bob Tracy
On Wed, Nov 22, 2017 at 10:23:25PM +0900, Tetsuo Handa wrote: > When you hit that problem next time, please capture SysRq-t and SysRq-m output > after logging in remotely. > > # dmesg -c > dmesg.txt > # echo t > /proc/sysrq-trigger > # echo m > /proc/sysrq-trigger > # dmesg -c >> dmesg.txt > # sle

Re: [PATCH 4/4] cpu_cooling: Drop static-power related stuff

2017-11-22 Thread Eduardo Valentin
On Wed, Nov 22, 2017 at 10:59:21AM +, Sudeep Holla wrote: > (sorry for chiming in quite late) > > On 21/11/17 18:12, Eduardo Valentin wrote: > > On Tue, Nov 21, 2017 at 06:00:07PM +, Javi Merino wrote: > >> Hi, > >> > >> On Tue, Nov 21, 2017 at 08:57:06AM -0800, Eduardo Valentin wrote: > >

Re: mm/percpu.c: use smarter memory allocation for struct pcpu_alloc_info (crisv32 hang)

2017-11-22 Thread Jesper Nilsson
On Mon, Nov 20, 2017 at 10:50:46PM -0500, Nicolas Pitre wrote: > On Mon, 20 Nov 2017, Guenter Roeck wrote: > > On Mon, Nov 20, 2017 at 07:28:21PM -0500, Nicolas Pitre wrote: > > > On Mon, 20 Nov 2017, Guenter Roeck wrote: > > > > > > > bdata->node_min_pfn=6 PFN_PHYS(bdata->node_min_pfn)=c0

Re: [PATCH 4/4] cpu_cooling: Drop static-power related stuff

2017-11-22 Thread Eduardo Valentin
On Wed, Nov 22, 2017 at 04:40:13PM +0530, Viresh Kumar wrote: > On 22-11-17, 10:59, Sudeep Holla wrote: > > IMO, if the $subject code is expected to be used on Juno, then my answer > > is no if one can't test it reliably and also prove that static power > > really matters on Juno. So far, I have he

Re: [PATCH] mm: migrate: fix an incorrect call of prep_transhuge_page()

2017-11-22 Thread Michal Hocko
On Wed 22-11-17 10:09:13, Zi Yan wrote: > > > Michal Hocko wrote: > > On Wed 22-11-17 09:43:46, Zi Yan wrote: > >> > >> Michal Hocko wrote: [...] > >>> but why is unsafe to enable the feature on other arches which support > >>> THP? Is there any plan to do the next step and remove this config > >

[PATCH] Staging: sm750fb: sm750: fixed coding style issues

2017-11-22 Thread Patryk Kocielnik
Cleaned checkpatch warnings by fixing coding style issues. Signed-off-by: Patryk Kocielnik --- drivers/staging/sm750fb/sm750.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 67207b055..41beeb9b9 1006

[PATCH 0/3] ASoC-cs42l73: Adjustments for two function implementations

2017-11-22 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 22 Nov 2017 16:38:32 +0100 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in cs42l73_i2c_probe() Improve two size determinations in cs42l73_i2c_probe

[PATCH 1/3] ASoC: cs42l73: Delete an error message for a failed memory allocation in cs42l73_i2c_probe()

2017-11-22 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 22 Nov 2017 15:50:46 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/soc/codecs/cs42l73.c | 5 ++--- 1 file changed, 2 insertions(+),

[PATCH 2/3] ASoC: cs42l73: Improve two size determinations in cs42l73_i2c_probe()

2017-11-22 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 22 Nov 2017 16:07:42 +0100 Replace the specification of two data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was d

Re: Failed IRQ assignment for INT0002 on Braswell

2017-11-22 Thread Hans de Goede
Hi, On 22-11-17 13:48, Oleksandr Natalenko wrote: Hi, Hans. On středa 22. listopadu 2017 11:48:50 CET Hans de Goede wrote: /* snip */ This should be fixed by: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/ke rnel/irq?id=382bd4de61827dbaaf5fb4fb7b1f4be4a86505e7 Whi

[PATCH 3/3] ASoC: cs42l73: Fix a typo in two comments

2017-11-22 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 22 Nov 2017 16:26:27 +0100 Add a missing character in these descriptions. Signed-off-by: Markus Elfring --- sound/soc/codecs/cs42l73.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l7

Re: VMs freezing when host is running 4.14

2017-11-22 Thread Marc Haber
On Wed, Nov 22, 2017 at 04:04:42PM +0100, 王金浦 wrote: > So all guest kernels are 4.14, or also other older kernel? Guest kernels are also 4.14, but the issue disappears when the host is downgraded to an older kernel. I therefore reckoned that the guest kernel doesn't matter, but that was before I s

Re: [PATCH] VMCI: Use memdup_user() as a cleanup

2017-11-22 Thread Joe Perches
On Wed, 2017-11-22 at 16:29 +0100, Vasyl Gomonovych wrote: > Fix coccicheck warning which recommends to use memdup_user(): > drivers/misc/vmw_vmci/vmci_host.c:757:11-18: WARNING opportunity for > memdup_user > Generated by: scripts/coccinelle/memdup_user/memdup_user.cocci Nice little cleanup. >

Re: WARNING: can't dereference registers at ffffc90004dfff60 for ip error_entry+0x7d/0xd0 (Re: [PATCH v2 00/18] Entry stack switching)

2017-11-22 Thread Ingo Molnar
* Andy Lutomirski wrote: > > .Lerror_entry_from_usermode_after_swapgs: > > /* Put us onto the real thread stack. */ > > - leaq8(%rsp), %rdi /* pt_regs pointer */ > > - movq(%rsp), %r12 > > + popq%r12/* function

Re: [PATCH net] net: thunderx: Fix TCP/UDP checksum offload for IPv6 pkts

2017-11-22 Thread Eric Dumazet
On Wed, 2017-11-22 at 15:37 +0300, Aleksey Makarov wrote: > From: Sunil Goutham > > This fixes a previous patch which missed some changes > and due to which L3 checksum offload was getting enabled > for IPv6 pkts. And HW is dropping these pkts as it assumes > the pkt is IPv4 when IP csum offload

Re: Linux 4.14 - BUG: unable to handle kernel paging request at ffffffff3bbbe160 IP: audit_signal_cb+0x75/0xf0

2017-11-22 Thread John Johansen
Can you verify the following patch fixes the problem for you --- >From 6ba06322267ea931be5f1f559965120d1e09b030 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Wed, 22 Nov 2017 07:33:38 -0800 Subject: [PATCH] apparmor: fix oops in audit_signal_cb hook The apparmor_audit_data struct ordering

Re: [PATCH] Staging: sm750fb: sm750: fixed coding style issues

2017-11-22 Thread Joe Perches
On Wed, 2017-11-22 at 16:42 +0100, Patryk Kocielnik wrote: > Cleaned checkpatch warnings by fixing coding style issues. checkpatch is not always correct. > Signed-off-by: Patryk Kocielnik > --- > drivers/staging/sm750fb/sm750.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > di

Re: [PATCH 4/4] cpu_cooling: Drop static-power related stuff

2017-11-22 Thread Sudeep Holla
On 22/11/17 15:34, Eduardo Valentin wrote: > On Wed, Nov 22, 2017 at 10:59:21AM +, Sudeep Holla wrote: >> (sorry for chiming in quite late) >> >> On 21/11/17 18:12, Eduardo Valentin wrote: >>> On Tue, Nov 21, 2017 at 06:00:07PM +, Javi Merino wrote: Hi, On Tue, Nov 21, 2017

Re: [PATCH 4.14 00/31] 4.14.1-stable review

2017-11-22 Thread Ben Hutchings
On Tue, 2017-11-21 at 11:38 -0800, Guenter Roeck wrote: > On Tue, Nov 21, 2017 at 07:07:14PM +, Ben Hutchings wrote: > > On Tue, 2017-11-21 at 18:09 +0100, Greg Kroah-Hartman wrote: > > > On Tue, Nov 21, 2017 at 04:46:18PM +, Ben Hutchings wrote: > > > > On Tue, 2017-11-21 at 17:35 +0100, G

Re: [PATCH v5 11/11] intel_sgx: driver documentation

2017-11-22 Thread Jethro Beekman
On 2017-11-22 03:00, Borislav Petkov wrote: ... and we're back full circle to my initial objection: firmware should not be doing anything here. The user should. Sure, and I agree. However, there is a difference between what it should be doing and what hardware/firmware that you can buy today *

[PATCH] perf tool powerpc: Add Power9 DD2.1 PVR

2017-11-22 Thread Ravi Bangoria
From: Madhavan Srinivasan This will enable parsing JSON files on Power9 DD2.1. Signed-off-by: Madhavan Srinivasan Signed-off-by: Ravi Bangoria --- tools/perf/pmu-events/arch/powerpc/mapfile.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/pmu-events/arch/powerpc/mapfile.csv

Re: [PATCH v4 1/1] perf/bench/numa: Fixup discontiguous/sparse numa nodes

2017-11-22 Thread Naveen N. Rao
sathn...@linux.vnet.ibm.com wrote: From: Satheesh Rajendran Certain systems are designed to have sparse/discontiguous nodes. On such systems, perf bench numa hangs, shows wrong number of nodes and shows values for non-existent nodes. Handle this by only taking nodes that are exposed by kernel t

Re: [PATCH v4] checkpatch: allow long lines containing URL

2017-11-22 Thread Joe Perches
On Wed, 2017-11-22 at 13:57 +0100, Andreas Brauchli wrote: > Allow lines with URL to exceed the 80 char limit for improved > interaction in adaption to ongoing but undocumented practice. Acked-by: Joe Perches > $ git grep -E '://\S{77}.*' -- '*.[ch]' > > As per RFC3986 [1], the URL format allow

Re: [PATCH 29/30] i7300_idle: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
On 11/22/2017 2:53 AM, Greg Kroah-Hartman wrote: >> +++ b/include/linux/i7300_idle.h >> @@ -48,7 +48,7 @@ static inline int i7300_idle_platform_probe(struct pci_dev >> **fbd_dev, >> int i; >> struct pci_dev *memdev, *dmadev; >> >> -memdev = pci_get_bus_and_slot(MEMCTL_BUS, MEMCTL_D

Re: [tegra186]: emmc resume failing after booting from snapshot image

2017-11-22 Thread Jon Hunter
On 22/11/17 12:26, Pintu Kumar wrote: > Hello Jon, > Yes I raised my query there almost 1 week back here. > https://devtalk.nvidia.com/default/topic/1026527/jetson-tx2/-jetson-tx2-mmc-resume-errors-after-booting-from-suspend/ > > But no response. > So, I thought to discuss it here. > May be some

[PATCH] selftest/vm: Add test case for mmap across 128TB boundary.

2017-11-22 Thread Aneesh Kumar K.V
From: "Kirill A. Shutemov" This patch add a self-test that covers a few corner cases of the interface. Signed-off-by: Kirill A. Shutemov Signed-off-by: Aneesh Kumar K.V --- tools/testing/selftests/vm/Makefile | 1 + tools/testing/selftests/vm/va_128TBswitch.c | 291 +

Re: [PATCH 00/23] KAISER: unmap most of the kernel from userspace page tables

2017-11-22 Thread Pavel Machek
Hi! > KAISER makes it harder to defeat KASLR, but makes syscalls and > interrupts slower. These patches are based on work from a team at > Graz University of Technology posted here[1]. The major addition is > support for Intel PCIDs which builds on top of Andy Lutomorski's PCID > work merged for

Re: WTF? Re: [PATCH] License cleanup: add SPDX GPL-2.0 license identifier to files with no license

2017-11-22 Thread Pavel Machek
On Tue 2017-11-07 14:15:26, Theodore Ts'o wrote: > On Tue, Nov 07, 2017 at 06:46:58PM +, Alan Cox wrote: > > > Given that it had no license text on it at all, it "defaults" to GPLv2, > > > so the GPLv2 SPDX identifier was added to it. > > > > > > No copyright was changed, nothing at all happen

Re: [PATCH 00/18] arm64: Unmap the kernel whilst running in userspace (KAISER)

2017-11-22 Thread Pavel Machek
Hi! > This patch series implements something along the lines of KAISER for arm64: > > https://gruss.cc/files/kaiser.pdf > > although I wrote this from scratch because the paper has some funny > assumptions about how the architecture works. There is a patch series > in review for x86, which fol

Re: [PATCH v2 00/18] Entry stack switching

2017-11-22 Thread Andy Lutomirski
On Tue, Nov 21, 2017 at 10:22 PM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> This sets up stack switching, including for SYSCALL. I think it's >> in decent shape. >> >> Known issues: >> - I think we're going to want a way to turn the stack switching on and >>off either at boot tim

Re: [PATCH 12/30] Drivers: ide: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
On 11/22/2017 2:53 AM, Greg KH wrote: > On Wed, Nov 22, 2017 at 12:30:57AM -0500, Sinan Kaya wrote: >> pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as >> where a PCI device is present. This restricts the device drivers to be >> reused for other domain numbers. >> >> Use pci_g

Re: [PATCH v9 4/5] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 30h-3fh) Processors v5

2017-11-22 Thread Boris Ostrovsky
On 11/22/2017 05:09 AM, Christian König wrote: > Am 21.11.2017 um 23:26 schrieb Boris Ostrovsky: >> On 11/21/2017 08:34 AM, Christian König wrote: >>> Hi Boris, >>> >>> attached are two patches. >>> >>> The first one is a trivial fix for the infinite loop issue, it now >>> correctly aborts the fixu

[PATCH] ASoC: wm0010: Delete an error message for a failed memory allocation in wm0010_boot()

2017-11-22 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 22 Nov 2017 17:17:48 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/soc/codecs/wm0010.c | 5 + 1 file changed, 1 insertion(+), 4

[PULL] A few late documentation updates

2017-11-22 Thread Jonathan Corbet
The following changes since commit 47427379ea80f1368ccec6ba20874fc19a9f0cc4: documentation: fb: update list of available compiled-in fonts (2017-11-08 03:39:52 -0700) are available in the Git repository at: git://git.lwn.net/linux.git tags/docs-4.15-2 for you to fetch changes up to 3a025e1

Re: [PATCH update for 4.15 3/3] rseq: selftests: Provide self-tests (v4)

2017-11-22 Thread Mathieu Desnoyers
- On Nov 22, 2017, at 10:23 AM, shuah sh...@kernel.org wrote: > On 11/21/2017 03:19 PM, Mathieu Desnoyers wrote: >> Implements two basic tests of RSEQ functionality, and one more >> exhaustive parameterizable test. >> >> The first, "basic_test" only asserts that RSEQ works moderately >> corre

Re: WARNING: can't dereference registers at ffffc90004dfff60 for ip error_entry+0x7d/0xd0 (Re: [PATCH v2 00/18] Entry stack switching)

2017-11-22 Thread Andy Lutomirski
On Wed, Nov 22, 2017 at 7:56 AM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> > .Lerror_entry_from_usermode_after_swapgs: >> > /* Put us onto the real thread stack. */ >> > - leaq8(%rsp), %rdi /* pt_regs pointer */ >> > - movq(%rsp), %r12 >>

Re: [PATCH 07/13] x86/paravirt: Simplify ____PVOP_CALL()

2017-11-22 Thread Borislav Petkov
On Wed, Oct 04, 2017 at 10:58:28AM -0500, Josh Poimboeuf wrote: > Remove the inline asm duplication in PVOP_CALL(). > > Also add 'IS_ENABLED(CONFIG_X86_32)' to the return variable logic, > making the code clearer and rendering the comment unnecessary. > > Signed-off-by: Josh Poimboeuf > ---

Re: [tegra186]: emmc resume failing after booting from snapshot image

2017-11-22 Thread Pintu Kumar
On Wed, Nov 22, 2017 at 9:45 PM, Jon Hunter wrote: > > On 22/11/17 12:26, Pintu Kumar wrote: >> Hello Jon, >> Yes I raised my query there almost 1 week back here. >> https://devtalk.nvidia.com/default/topic/1026527/jetson-tx2/-jetson-tx2-mmc-resume-errors-after-booting-from-suspend/ >> >> But no r

Re: [RFC PATCH for 4.15 v12 00/22] Restartable sequences and CPU op vector

2017-11-22 Thread Mathieu Desnoyers
- On Nov 22, 2017, at 10:28 AM, Andy Lutomirski l...@amacapital.net wrote: > On Tue, Nov 21, 2017 at 2:05 PM, Mathieu Desnoyers > wrote: >> - On Nov 21, 2017, at 12:21 PM, Andi Kleen a...@firstfloor.org wrote: >> >>> On Tue, Nov 21, 2017 at 09:18:38AM -0500, Mathieu Desnoyers wrote:

Re: VMs freezing when host is running 4.14

2017-11-22 Thread Radim Krčmář
2017-11-22 16:52+0100, Marc Haber: > On Wed, Nov 22, 2017 at 04:04:42PM +0100, 王金浦 wrote: > > So all guest kernels are 4.14, or also other older kernel? > > Guest kernels are also 4.14, but the issue disappears when the host is > downgraded to an older kernel. I therefore reckoned that the guest >

[PATCH v5 0/1] Fixup for discontiguous/sparse numa nodes

2017-11-22 Thread sathnaga
From: Satheesh Rajendran Certain systems would have sparse/discontinguous numa nodes. perf bench numa doesnt work well on such nodes. 1. It shows wrong values. 2. It can hang. 3. It can show redundant information for non-existant nodes. #numactl -H available: 2 nodes (0,8) node 0 cpus: 0 1 2 3

[PATCH v5 1/1] perf/bench/numa: Fixup discontiguous/sparse numa nodes

2017-11-22 Thread sathnaga
From: Satheesh Rajendran Certain systems are designed to have sparse/discontiguous nodes. On such systems, perf bench numa hangs, shows wrong number of nodes and shows values for non-existent nodes. Handle this by only taking nodes that are exposed by kernel to userspace. Cc: Arnaldo Carvalho de

Re: [PATCH 29/30] i7300_idle: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Greg Kroah-Hartman
On Wed, Nov 22, 2017 at 11:15:47AM -0500, Sinan Kaya wrote: > On 11/22/2017 2:53 AM, Greg Kroah-Hartman wrote: > >> +++ b/include/linux/i7300_idle.h > >> @@ -48,7 +48,7 @@ static inline int i7300_idle_platform_probe(struct > >> pci_dev **fbd_dev, > >>int i; > >>struct pci_dev *memdev, *dma

Re: [PATCH] mm: Use vma_pages helper

2017-11-22 Thread Davidlohr Bueso
On Wed, 22 Nov 2017, Vasyl Gomonovych wrote: Use vma_pages function on vma object instead of explicit computation. mm/interval_tree.c:21:27-33: WARNING: Consider using vma_pages helper Generated by: scripts/coccinelle/api/vma_pages.cocci Signed-off-by: Vasyl Gomonovych Acked-by: Davidlohr Bu

[PATCH] drm/amd/display: fix memory leaks on error exit return

2017-11-22 Thread Colin King
From: Colin Ian King Currently in the case where some of the allocations fail for dce110_tgv, dce110_xfmv, dce110_miv or dce110_oppv then the exit return path ends up leaking allocated objects. Fix this by kfree'ing them before returning. Also re-work the comparison of the null pointers to use th

[PATCH] ALSA: gus: Delete an error message for a failed memory allocation in snd_gf1_dma_transfer_block()

2017-11-22 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 22 Nov 2017 17:43:25 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/isa/gus/gus_dma.c | 5 ++--- 1 file changed, 2 insertions(+), 3

Re: [PATCH 4.13 00/35] 4.13.16-stable review

2017-11-22 Thread Greg Kroah-Hartman
On Wed, Nov 22, 2017 at 11:11:54AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.13.16 release. > There are 35 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH] move libgcc.h to include/linux

2017-11-22 Thread Palmer Dabbelt
On Wed, 22 Nov 2017 02:47:28 PST (-0800), h...@lst.de wrote: Introducing a new include/lib directory just for this file totally messes up tab completion for include/linux, which is highly annoying. Sorry about that. Move it to include/linux where we have headers for all kinds of other lib/ co

Re: [PATCH 29/30] i7300_idle: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
On 11/22/2017 11:45 AM, Greg Kroah-Hartman wrote: >> Funny thing is nobody is calling this function. Maybe, I should just kill it >> instead. > Yes, delete it. Why doesn't the build warn about it not being used? > OK. Because it is in a header file that nobody includes. -- Sinan Kaya Qualcomm

Re: [PATCH v3 2/2] Protected O_CREAT open in sticky directories

2017-11-22 Thread Alan Cox
On Wed, 22 Nov 2017 09:01:46 +0100 Salvatore Mesoraca wrote: > Disallows O_CREAT open missing the O_EXCL flag, in world or > group writable directories, even if the file doesn't exist yet. > With few exceptions (e.g. shared lock files based on flock()) Enough exceptions to make it a bad idea. F

Re: [PATCH 18/18] arm64: Kconfig: Add CONFIG_UNMAP_KERNEL_AT_EL0

2017-11-22 Thread Marc Zyngier
Hi Will, On 17/11/17 18:22, Will Deacon wrote: > Add a Kconfig entry to control use of the entry trampoline, which allows > us to unmap the kernel whilst running in userspace and improve the > robustness of KASLR. > > Signed-off-by: Will Deacon > --- > arch/arm64/Kconfig | 13 + > 1

Re: [PATCH v9 4/5] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 30h-3fh) Processors v5

2017-11-22 Thread Christian König
Am 22.11.2017 um 17:24 schrieb Boris Ostrovsky: On 11/22/2017 05:09 AM, Christian König wrote: Am 21.11.2017 um 23:26 schrieb Boris Ostrovsky: On 11/21/2017 08:34 AM, Christian König wrote: Hi Boris, attached are two patches. The first one is a trivial fix for the infinite loop issue, it now

Re: [PATCH] KVM: VMX: Fix vmx->nested freeing when no SMI handler

2017-11-22 Thread Paolo Bonzini
On 22/11/2017 10:43, Liran Alon wrote: >>> >>> I think we should also set "vmx->nested.smm.vmxon = false;" >>> after "vmx->nested.vmxon = false;" to correctlyhandle the case >>> VMXOFF is executed from SMI handler. Otherwise, when SMI handler >>> executes RSM, we will reach vmx_pre_leave_smm() whic

Re: [PATCH 29/30] i7300_idle: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Greg Kroah-Hartman
On Wed, Nov 22, 2017 at 11:50:53AM -0500, Sinan Kaya wrote: > On 11/22/2017 11:45 AM, Greg Kroah-Hartman wrote: > >> Funny thing is nobody is calling this function. Maybe, I should just kill > >> it > >> instead. > > Yes, delete it. Why doesn't the build warn about it not being used? > > > > OK

Re: [PATCH 4.14 00/31] 4.14.1-stable review

2017-11-22 Thread Greg Kroah-Hartman
On Wed, Nov 22, 2017 at 04:06:42PM +, Ben Hutchings wrote: > On Tue, 2017-11-21 at 11:38 -0800, Guenter Roeck wrote: > > On Tue, Nov 21, 2017 at 07:07:14PM +, Ben Hutchings wrote: > > > On Tue, 2017-11-21 at 18:09 +0100, Greg Kroah-Hartman wrote: > > > > On Tue, Nov 21, 2017 at 04:46:18PM +

Re: [PATCH 4.4 00/59] 4.4.100-stable review

2017-11-22 Thread Greg Kroah-Hartman
On Mon, Nov 20, 2017 at 12:43:52PM -0700, Nathan Chancellor wrote: > On Mon, Nov 20, 2017 at 08:27:07PM +0100, Greg Kroah-Hartman wrote: > > On Sun, Nov 19, 2017 at 12:48:51PM -0700, Nathan Chancellor wrote: > > > On Sun, Nov 19, 2017 at 03:32:08PM +0100, Greg Kroah-Hartman wrote: > > > > > > Merg

Re: [PATCH] net: usb: hso.c: remove unneeded DRIVER_LICENSE #define

2017-11-22 Thread Joe Perches
On Fri, 2017-11-17 at 15:19 +0100, Greg Kroah-Hartman wrote: > There is no need to #define the license of the driver, just put it in > the MODULE_LICENSE() line directly as a text string. > > This allows tools that check that the module license matches the source > code license to work properly, a

Re: [PATCH 4.4 00/16] 4.4.101-stable review

2017-11-22 Thread Greg Kroah-Hartman
On Wed, Nov 22, 2017 at 08:29:10AM -0700, Nathan Chancellor wrote: > Merged, compiled, and flashed onto my Pixel 2 XL and OnePlus 5. No > initial issues noticed in general usage or dmesg. Ah, also works for the OnePlus 5? Nice, so that kind of means that the 5T is also this same kernel version?

[PATCH] i2c: fix ACPI_I2C_OPREGION dependency

2017-11-22 Thread Eric Auger
If CONFIG_I2C=m we fail getting ACPI_I2C_OPREGION set. Let's make ACPI_I2C_OPREGION depend on I2C. Signed-off-by: Eric Auger --- drivers/i2c/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index efc3354..5951e9d 100644 --- a/d

Re: WTF? Re: [PATCH] License cleanup: add SPDX GPL-2.0 license identifier to files with no license

2017-11-22 Thread Pavel Machek
Hi! > Christoph: > > I am not speaking for Greg but let me highlight some issues and > benefits as I chipped in a bit to help: > > Some data points in the 4.14.rc7 kernel: > - there are 64,742 distinct license statements > ... in 114,597 blocks of text > ... in 42,602 files > - license stateme

[RFC PATCH] kvm: arm64: handle single-step of hyp emulated mmio instructions

2017-11-22 Thread Alex Bennée
There is a fast-path of MMIO emulation inside hyp mode. The handling of single-step is broadly the same as kvm_arm_handle_step_debug() except we just setup ESR/HSR so handle_exit() does the correct thing as we exit. For the case of an emulated illegal access causing an SError we signal to handle_e

Re: [patches] Re: [PATCH] dt-bindings: Add an enable method to RISC-V

2017-11-22 Thread Palmer Dabbelt
On Tue, 21 Nov 2017 03:04:52 PST (-0800), mark.rutl...@arm.com wrote: Hi Palmer, On Mon, Nov 20, 2017 at 11:50:22AM -0800, Palmer Dabbelt wrote: RISC-V doesn't currently specify a mechanism for enabling or disabling CPUs. Instead, we assume that all CPUs are enabled on boot, and if someone wan

Re: [PATCH] net: usb: hso.c: remove unneeded DRIVER_LICENSE #define

2017-11-22 Thread Greg Kroah-Hartman
On Wed, Nov 22, 2017 at 09:05:36AM -0800, Joe Perches wrote: > On Fri, 2017-11-17 at 15:19 +0100, Greg Kroah-Hartman wrote: > > There is no need to #define the license of the driver, just put it in > > the MODULE_LICENSE() line directly as a text string. > > > > This allows tools that check that t

Re: [PATCH] drm/amd/display: fix memory leaks on error exit return

2017-11-22 Thread Harry Wentland
On 2017-11-22 11:47 AM, Colin King wrote: > From: Colin Ian King > > Currently in the case where some of the allocations fail for dce110_tgv, > dce110_xfmv, dce110_miv or dce110_oppv then the exit return path ends > up leaking allocated objects. Fix this by kfree'ing them before returning. > Also

[PATCH] proc: delete children_seq_release()

2017-11-22 Thread Alexey Dobriyan
It is 1:1 wrapper around seq_release(). Signed-off-by: Alexey Dobriyan --- fs/proc/array.c |8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -733,16 +733,10 @@ static int children_seq_open(struct inode *inode, struct file *file)

Re: [PATCH v2 05/18] x86/fixmap: Generalize the GDT fixmap mechanism

2017-11-22 Thread Andy Lutomirski
On Wed, Nov 22, 2017 at 7:33 AM, Borislav Petkov wrote: > On Tue, Nov 21, 2017 at 08:44:00PM -0800, Andy Lutomirski wrote: >> Currently, the GDT is an ad-hoc array of pages, one per CPU, in the >> fixmap. Generalize it to be an array of a new struct cpu_entry_area >> so that we can cleanly add ne

[PATCH] rtc: sun6i: ensure rtc is kfree'd on error

2017-11-22 Thread Colin King
From: Colin Ian King The error return path on clk_data allocation failure does not kfree the allocated rtc object. Fix this with a kfree of rtc on the error exit path. Detected by CoverityScan, CID#1452264 ("Resource Leak") Signed-off-by: Colin Ian King --- drivers/rtc/rtc-sun6i.c | 4 +++- 1

Re: [PATCH v4 1/1] perf/bench/numa: Fixup discontiguous/sparse numa nodes

2017-11-22 Thread Satheesh Rajendran
On Wed, 2017-11-22 at 21:39 +0530, Naveen N. Rao wrote: > >   sum += nr; > >   } > >   BUG_ON(nr_min > nr_max); > > - > >   BUG_ON(sum > g->p.nr_tasks); > > Looks like that change to remove a blank line did slip in, but that's > a  > small nit. Apart from that, the patch lo

Re: [Outreachy kernel] Re: [PATCH] net: usb: hso.c: remove unneeded DRIVER_LICENSE #define

2017-11-22 Thread Julia Lawall
On Wed, 22 Nov 2017, Joe Perches wrote: > On Fri, 2017-11-17 at 15:19 +0100, Greg Kroah-Hartman wrote: > > There is no need to #define the license of the driver, just put it in > > the MODULE_LICENSE() line directly as a text string. > > > > This allows tools that check that the module license m

Re: [PATCH v3 10/16] phy: qcom-qmp: Move register offsets to header file

2017-11-22 Thread Stephen Boyd
On 11/21/2017 01:23 AM, Manu Gautam wrote: > New revision (v3) of QMP PHY uses different offsets > for almost all of the registers. Hence, move these > definitions to header file so that updated offsets > can be added for QMP v3. > > Signed-off-by: Manu Gautam > --- Why? It would only be included

Re: [PATCH v9 4/5] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 30h-3fh) Processors v5

2017-11-22 Thread Boris Ostrovsky
On 11/22/2017 11:54 AM, Christian König wrote: > Am 22.11.2017 um 17:24 schrieb Boris Ostrovsky: >> On 11/22/2017 05:09 AM, Christian König wrote: >>> Am 21.11.2017 um 23:26 schrieb Boris Ostrovsky: On 11/21/2017 08:34 AM, Christian König wrote: > Hi Boris, > > attached are two pat

Re: [PATCH] proc: delete children_seq_release()

2017-11-22 Thread Cyrill Gorcunov
On Wed, Nov 22, 2017 at 08:15:10PM +0300, Alexey Dobriyan wrote: > It is 1:1 wrapper around seq_release(). > > Signed-off-by: Alexey Dobriyan Acked-by: Cyrill Gorcunov Thank you!

Re: [PATCH v2 05/18] x86/fixmap: Generalize the GDT fixmap mechanism

2017-11-22 Thread Borislav Petkov
On Wed, Nov 22, 2017 at 09:16:00AM -0800, Andy Lutomirski wrote: > Agreed, except that the fixmap enum needs to know > sizeof(cpu_entry_area), and I'm really hesitant to add yet another > header dependency. Perhaps a separate asm/cpuarea.h. asm/cpu.h looks small enough but it has hotplug and other

Re: [PATCH] Staging: sm750fb: sm750: fixed coding style issues

2017-11-22 Thread Patryk Kocielnik
Joe, Thank you for your comments! > checkpatch is not always correct. I did compile it beforehand and it was clean. Did I miss anything? Regards, Patryk On 22 November 2017 at 18:33, Patryk Kocielnik wrote: > Joe, > > Thank you for your comments! > > I did compile it beforehand and it was cle

Re: [patches] RE: [PATCH 3/4] RISC-V: Flush I$ when making a dirty page executable

2017-11-22 Thread Palmer Dabbelt
On Tue, 21 Nov 2017 08:57:07 PST (-0800), david.lai...@aculab.com wrote: From: Palmer Dabbelt Sent: 20 November 2017 18:58 The RISC-V ISA allows for instruction caches that are not coherent WRT stores, even on a single hart. As a result, we need to explicitly flush the instruction cache whenev

Re: [PATCH 4.4 00/16] 4.4.101-stable review

2017-11-22 Thread Nathan Chancellor
On Wed, Nov 22, 2017 at 06:05:27PM +0100, Greg Kroah-Hartman wrote: > On Wed, Nov 22, 2017 at 08:29:10AM -0700, Nathan Chancellor wrote: > > Merged, compiled, and flashed onto my Pixel 2 XL and OnePlus 5. No > > initial issues noticed in general usage or dmesg. > > Ah, also works for the OnePlus 5

Re: Does CONFIG_HARDENED_USERCOPY break /dev/mem?

2017-11-22 Thread Kees Cook
On Wed, Nov 22, 2017 at 1:28 AM, Michael Holzheu wrote: > Am Mon, 13 Nov 2017 11:19:38 +0100 > schrieb Michael Holzheu : > >> Am Fri, 10 Nov 2017 10:46:49 -0800 >> schrieb Kees Cook : >> >> > On Fri, Nov 10, 2017 at 7:45 AM, Michael Holzheu >> > wrote: >> > > Hello Kees, >> > > >> > > When I try

kernel BUG at crypto/asymmetric_keys/public_key.c:80

2017-11-22 Thread Florian Fainelli
Hi, (sorry for the cross post) I am at v4.14-12995-g0c86a6bd85ff and just met the following, attached is my .config file. Is this a known problem? Thanks! [1.798714] cfg80211: Loading compiled-in X.509 certificates for regulatory database [1.809390] [ cut here ] [

Re: [PATCH 4.4 00/59] 4.4.100-stable review

2017-11-22 Thread Nathan Chancellor
On Wed, Nov 22, 2017 at 06:03:31PM +0100, Greg Kroah-Hartman wrote: > On Mon, Nov 20, 2017 at 12:43:52PM -0700, Nathan Chancellor wrote: > > On Mon, Nov 20, 2017 at 08:27:07PM +0100, Greg Kroah-Hartman wrote: > > > On Sun, Nov 19, 2017 at 12:48:51PM -0700, Nathan Chancellor wrote: > > > > On Sun, N

Re: [PATCH] Staging: sm750fb: sm750: fixed coding style issues

2017-11-22 Thread Joe Perches
On Wed, 2017-11-22 at 18:33 +0100, Patryk Kocielnik wrote: > Joe, > > Thank you for your comments! > > I did compile it beforehand and it was clean. Did I miss anything? You also have to compile it afterhand... i.e.: with your patch applied $ make allyesconfig [] $ make drivers/staging/sm750fb

[bisected] system hang after boot

2017-11-22 Thread Sebastian Ott
Hi, One of my test systems (s390) hangs after boot. One of the cpus is idle the other is in arch_spin_relax. Bisect pointed to this one: a8a217c22116eff6c120d753c9934089fb229af0 is the first bad commit commit a8a217c22116eff6c120d753c9934089fb229af0 Author: Will Deacon Date: Tue Oct 3 19:25:27

Re: [PATCH 1/1] mm/cma: fix alloc_contig_range ret code/potential leak

2017-11-22 Thread Mike Kravetz
On 11/22/2017 04:00 AM, Johannes Weiner wrote: > On Mon, Nov 20, 2017 at 11:39:30AM -0800, Mike Kravetz wrote: >> If the call __alloc_contig_migrate_range() in alloc_contig_range >> returns -EBUSY, processing continues so that test_pages_isolated() >> is called where there is a tracepoint to identi

[PATCH 1/6] Input: rmi4: remove unneeded MODULE_VERSION() usage

2017-11-22 Thread Greg Kroah-Hartman
MODULE_VERSION is useless for in-kernel drivers, so just remove all usage of it in the rmi4 drivers. Now that this is gone, the RMI_DRIVER_VERSION macro was also removed as it was pointless. Cc: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/rmi4/rmi_bus.c| 1 - driver

[PATCH 2/6] Input: keyboard: pmic8xxx: remove unneeded MODULE_VERSION() usage

2017-11-22 Thread Greg Kroah-Hartman
MODULE_VERSION is useless for in-kernel drivers, so remove the use of it in the pmic8xxx-keyboard driver. Cc: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/keyboard/pmic8xxx-keypad.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/keyboard/pmic8xxx-keypad.

[PATCH 0/6] Input: remove unneeded MODULE_VERSION usage

2017-11-22 Thread Greg Kroah-Hartman
Here's a short patch series against linux-next at the moment, that removes all of the MODULE_VERSION() usage in drivers/input/ as it's not needed at all. Greg Kroah-Hartman (6): Input: rmi4: remove unneeded MODULE_VERSION() usage Input: keyboard: pmic8xxx: remove unneeded MODULE_VERSION() usag

[PATCH 3/6] Input: mouse: elan_i2c: remove unneeded MODULE_VERSION() usage

2017-11-22 Thread Greg Kroah-Hartman
MODULE_VERSION is useless for in-kernel drivers, so just remove all usage of it in the elan_i2c mouse driver. Now that this is gone, the ELAN_DRIVER_VERSION define was also removed as it was pointless. Cc: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/mouse/elan_i2c_core.

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