[PATCH] powercap: Remove reassignment

2017-11-11 Thread Arvind Yadav
It is not necessary to reassignment of 'result'. Here, result is being initialized zero and then updated with seed_constraint_attributes(). class_register is enough to return successful and error value. Signed-off-by: Arvind Yadav --- drivers/powercap/powercap_sys.c | 6 ++ 1 file changed, 2

Re: [PATCH 1/3] Input: twl4030-vibra: fix sibling-node lookup

2017-11-11 Thread Dmitry Torokhov
On Sat, Nov 11, 2017 at 04:43:37PM +0100, Johan Hovold wrote: > A helper purported to look up a child node based on its name was using > the wrong of-helper and ended up prematurely freeing the parent of-node > while searching the whole device tree depth-first starting at the parent > node. Ugh, t

Re: N900 kernel support

2017-11-11 Thread Ivaylo Dimitrov
Hi, On 10.11.2017 22:54, Pavel Machek wrote: Hi! Hi! Yesterday I updated https://elinux.org/N900 page based on data which I found in linux git repository. So driver status should be up-to-date. BTW... do you have any reasonable userland to run on n900? There is devuan jessie N900 image, I

[PATCH net-next 0/3] rxrpc: Fixes

2017-11-11 Thread David Howells
with call expiration. The patches can be found here also: http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-next Tagged thusly: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-next-2017 David --- David Howells (3

[PATCH net-next 1/3] rxrpc: Lock around calling a kernel service Rx notification

2017-11-11 Thread David Howells
Place a spinlock around the invocation of call->notify_rx() for a kernel service call and lock again when ending the call and replace the notification pointer with a pointer to a dummy function. This is required because it's possible for rxrpc_notify_socket() to be called after the call has been e

[PATCH net-next 3/3] rxrpc: Fix call expiry handling

2017-11-11 Thread David Howells
Fix call expiry handling in the following ways (1) If all the request data from a client call is acked, don't send a follow up IDLE ACK with firstPacket == 1 and previousPacket == 0 as this appears to fool some servers into thinking everything has been accepted. (2) Never send an

[PATCH net-next 2/3] rxrpc: Fix a null ptr deref in rxrpc_fill_out_ack()

2017-11-11 Thread David Howells
rxrpc_fill_out_ack() needs to be passed the connection pointer from its caller rather than using call->conn as the call may be disconnected in parallel with it, clearing call->conn, leading to: BUG: unable to handle kernel NULL pointer dereference at 0010 IP: rxrpc_sen

[PATCH] mailbox/omap: unregister mbox class

2017-11-11 Thread Arvind Yadav
platform_driver_register() can fail here and we must unregister mbox class. Signed-off-by: Arvind Yadav --- drivers/mailbox/omap-mailbox.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mailbox/omap-mailbox.c b/drivers/mailbox/omap-mailbox.c index c5e8b9c..25170

[PATCH 0/3] ALSA: hal2: Fine-tuning for four function implementations

2017-11-11 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 11 Nov 2017 19:06:54 +0100 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use common error handling code in hal2_probe() Improve a size determination in hal2_create() Fix a typo in two comment lines s

[PATCH 1/3] ALSA: hal2: Use common error handling code in hal2_probe()

2017-11-11 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 11 Nov 2017 18:26:06 +0100 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/mips/hal2.c | 30 ++-

[PATCH 2/3] ALSA: hal2: Improve a size determination in hal2_create()

2017-11-11 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 11 Nov 2017 18:34:04 +0100 Replace the specification of a data structure by a pointer dereference 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 det

[PATCH 3/3] ALSA: hal2: Fix a typo in two comment lines

2017-11-11 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 11 Nov 2017 18:48:41 +0100 Add a missing character in these descriptions. Signed-off-by: Markus Elfring --- sound/mips/hal2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/mips/hal2.c b/sound/mips/hal2.c index 675c3aba794e..4fa5f1

Re: [PATCH] bluetooth: btusb: Add device ID for RTL8822BE

2017-11-11 Thread Marcel Holtmann
Hi Larry, > The Asus Z370-I contains a Realtek RTL8822BE device with an associated > BT chip using a USB ID of 0b05:185c. This device is added to the driver. > > Signed-off-by: Hon Weng Chong > Signed-off-by: Larry Finger > --- > drivers/bluetooth/btusb.c | 3 +++ > 1 file changed, 3 insertions(

iio/accel/kxsd9_i2c: no license, taints kernel

2017-11-11 Thread Randy Dunlap
[44583.951806] kxsd9_i2c: module license 'unspecified' taints kernel. [44583.951931] kxsd9_i2c: Unknown symbol __devm_regmap_init_i2c (err 0) __devm_regmap_i2c() is EXPORT_SYMBOL_GPL(), so a non-compatible license cannot use it. -- ~Randy

Re: [PATCH] bluetooth: btusb: Add device ID for RTL8822BE

2017-11-11 Thread Larry Finger
On 11/11/2017 12:51 PM, Marcel Holtmann wrote: Hi Larry, The Asus Z370-I contains a Realtek RTL8822BE device with an associated BT chip using a USB ID of 0b05:185c. This device is added to the driver. Signed-off-by: Hon Weng Chong Signed-off-by: Larry Finger --- drivers/bluetooth/btusb.c | 3

Re: iio/accel/kxsd9_i2c: no license, taints kernel

2017-11-11 Thread Randy Dunlap
On 11/11/17 10:53, Randy Dunlap wrote: > [44583.951806] kxsd9_i2c: module license 'unspecified' taints kernel. > [44583.951931] kxsd9_i2c: Unknown symbol __devm_regmap_init_i2c (err 0) > > __devm_regmap_i2c() is EXPORT_SYMBOL_GPL(), so a non-compatible license > cannot use it. > and iio/adc/qco

[PATCH 0/3] ALSA: sgio2audio: Fine-tuning for two function implementations

2017-11-11 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 11 Nov 2017 20:16:32 +0100 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use common error handling code in two functions Improve a size determination in snd_sgio2audio_create() Adjust two null pointer

[PATCH 1/3] ALSA: sgio2audio: Use common error handling code in two functions

2017-11-11 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 11 Nov 2017 19:56:07 +0100 Add jump targets so that a bit of exception handling can be better reused at the end of these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/mips/sgio2audio.c | 47

[PATCH 2/3] ALSA: sgio2audio: Improve a size determination in snd_sgio2audio_create()

2017-11-11 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 11 Nov 2017 20:02:07 +0100 Replace the specification of a data structure by a pointer dereference 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 det

[PATCH 3/3] ALSA: sgio2audio: Adjust two null pointer checks in snd_sgio2audio_create()

2017-11-11 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 11 Nov 2017 20:10:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix the affected source code pl

RCU stall/SOFT-Lockup on 4.11.3/4.13.11 after multiple days uptime

2017-11-11 Thread Bruno Prémont
Hi, On a single-CPU KVM-based virtual machine I'm suffering from RCU stall and soft-lockup. 4.10.x kernels run fine (4.10.12) but starting with 4.11.x (4.11.3, 4.13.11) I'm getting system freezes for no apparent reason. All info I have is following console dump (from 4.13.11): [526415.290012] INF

Re: [PATCH] random: add regrand

2017-11-11 Thread Jörn Engel
On Sat, Nov 11, 2017 at 01:22:38PM -0500, Theodore Ts'o wrote: > On Fri, Nov 10, 2017 at 04:23:21PM -0800, Jörn Engel wrote: > > On Fri, Nov 10, 2017 at 06:52:12PM -0500, Theodore Ts'o wrote: > > > Couple of quick comments. The code as it exists is horrifically x86 > > > specific. For example: it

( United Nations Compensation Unit )

2017-11-11 Thread United Nations
United Nations Compensation Unit, In Affiliation with World Bank Our Ref: U.N.O/W.B.O/11/11/2017/1982/09/05. Congratulations Beneficiary, We have been working closely with the INTERPOL, CIA, FBI and other foreign international organizations as well as Western Union and Money Gram regarding

[PATCH v2 0/4] fix device-dax pud crash and fixup {pte, pmd, pud}_write

2017-11-11 Thread Dan Williams
Changes since v1 [1]: * fix arm64 compilation, add __HAVE_ARCH_PUD_WRITE * fix sparc64 compilation, add __HAVE_ARCH_PUD_WRITE * fix s390 compilation, add a pud_write() helper --- Andrew, Here is a third version to the pud_write() fix [2], and some follow-on patches to use the '_access_permitted'

[PATCH v2 1/4] mm: fix device-dax pud write-faults triggered by get_user_pages()

2017-11-11 Thread Dan Williams
Currently only get_user_pages_fast() can safely handle the writable gup case due to its use of pud_access_permitted() to check whether the pud entry is writable. In the gup slow path pud_write() is used instead of pud_access_permitted() and to date it has been unimplemented, just calls BUG_ON().

[PATCH v2 2/4] mm: replace pud_write with pud_access_permitted in fault + gup paths

2017-11-11 Thread Dan Williams
The 'access_permitted' helper is used in the gup-fast path and goes beyond the simple _PAGE_RW check to also: * validate that the mapping is writable from a protection keys standpoint * validate that the pte has _PAGE_USER set since all fault paths where pud_write is must be referencing user-

[PATCH v2 3/4] mm: replace pmd_write with pmd_access_permitted in fault + gup paths

2017-11-11 Thread Dan Williams
The 'access_permitted' helper is used in the gup-fast path and goes beyond the simple _PAGE_RW check to also: * validate that the mapping is writable from a protection keys standpoint * validate that the pte has _PAGE_USER set since all fault paths where pmd_write is must be referencing user-

[PATCH v2 4/4] mm: replace pte_write with pte_access_permitted in fault + gup paths

2017-11-11 Thread Dan Williams
The 'access_permitted' helper is used in the gup-fast path and goes beyond the simple _PAGE_RW check to also: * validate that the mapping is writable from a protection keys standpoint * validate that the pte has _PAGE_USER set since all fault paths where pte_write is must be referencing user-

Re: [PATCH] MAINTAINERS: Add Lorenzo Pieralisi for PCI host bridge drivers

2017-11-11 Thread Bjorn Helgaas
On Fri, Nov 10, 2017 at 10:40:35AM +, Lorenzo Pieralisi wrote: > On Fri, Nov 10, 2017 at 08:46:29AM +0800, Shawn Lin wrote: > > On 2017/11/9 23:05, Bjorn Helgaas wrote: > > >diff --git a/MAINTAINERS b/MAINTAINERS > > >index db412a627d96..6ce341e86fec 100644 > > >--- a/MAINTAINERS > > >+++ b/MA

[PATCH V1] drivers:mtd:spi-nor:checkup FSR error bits

2017-11-11 Thread Bean Huo (beanhuo)
For the Micron SPI NOR, when the erase/program operation fails, especially, for the failure results from intending to modify protected space, spi-nor upper layers still get the return which shows the operation succeeds. this because spi_nor_fsr_ready() only uses bit.7 to device whether ready. For t

Adding LICENSES folder for REUSE

2017-11-11 Thread Charlemagne Lasse
Hi, the linux kernel is a GPL-2.0 project but is build based on files using all kinds of different licenses. It would be really nice when these licenses could be correctly referenced as described in the https://reuse.software/practices/ from the FSF. Since some people started to add the SPDX head

[PATCH V1 1/3] x86/cpu/intel: Add Cannonlake to Intel family

2017-11-11 Thread Megha Dey
Add CPUID of Cannonlake (CNL) processors to Intel family list. Signed-off-by: Megha Dey --- arch/x86/include/asm/intel-family.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/intel-family.h b/arch/x86/include/asm/intel-family.h index 35a6bc4..056bd41 100644 --- a/arc

[PATCH V1 0/3] perf/x86/intel: Add Branch Monitoring support

2017-11-11 Thread Megha Dey
This patchset adds support for Intel's branch monitoring feature. This feature uses heuristics to detect the occurrence of an ROP(Return Oriented Programming) or ROP like(JOP: Jump oriented programming) attack. These heuristics are based off certain performance monitoring statistics, measured dynam

[PATCH V1 3/3] x86, bm: Add documentation on Intel Branch Monitoring

2017-11-11 Thread Megha Dey
This patch adds the Documentation/x86/intel_bm.txt file with some information about Intel Branch monitoring. Signed-off-by: Megha Dey --- Documentation/x86/intel_bm.txt | 216 + 1 file changed, 216 insertions(+) create mode 100644 Documentation/x86/intel_

[PATCH V1 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-11-11 Thread Megha Dey
Currently, the cannonlake family of Intel processors support the branch monitoring feature. Intel's Branch monitoring feature is trying to utilize heuristics to detect the occurrence of an ROP (Return Oriented Programming) attack. A perf-based kernel driver has been used to monitor the occurrence

[PATCH] xtensa: fix build failure

2017-11-11 Thread Sudip Mukherjee
The build of xtensa allmodconfig was failing with the error: arch/xtensa/platforms/iss/simdisk.c: In function 'simdisk_make_request': arch/xtensa/platforms/iss/simdisk.c:120:2: error: expected ';' before '}' token A terminating ';' was missing. Fixes: 77f55f3809d4 ("block: remove

Re: Adding LICENSES folder for REUSE

2017-11-11 Thread Jonas Oberg
Hi Charlemagne, > Since some people started to add the SPDX headers to some files, it > might now be the right time to ask to get a LICENSES folder which will > contain the separate licenses. I wouldn't do that now. Adding SPDX license identifiers is in most cases quite sufficient and something w

[PATCH] ALSA: ac97_codec: Use common error handling code in snd_ac97_mixer()

2017-11-11 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 11 Nov 2017 22:30:51 +0100 * Add jump targets so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. * The script "checkpatch.pl" pointed information out like the followi

Re: [PATCH v3] dell-laptop: Fix keyboard led max_brightness property for Dell Latitude E6410

2017-11-11 Thread Pali Rohár
On Thursday 02 November 2017 18:18:43 Darren Hart wrote: > On Thu, Nov 02, 2017 at 09:25:24PM +0100, Pali Rohár wrote: > > This machine reports number of keyboard backlight led levels, instead of > > value of the last led level index. Therefore max_brightness properly needs > > to be subtracted by

[PATCH] dell-laptop: Use bool type in struct quirk_entry for true/false fields

2017-11-11 Thread Pali Rohár
In struct quirk_entry some boolean fields used int, some u8 type. Change them all to bool type. Signed-off-by: Pali Rohár --- drivers/platform/x86/dell-laptop.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platfo

Re: Adding LICENSES folder for REUSE

2017-11-11 Thread Charlemagne Lasse
Hi, 2017-11-11 22:21 GMT+01:00 Jonas Oberg : > I wouldn't do that now. Adding SPDX license identifiers is in most cases > quite sufficient and something which I would encourage first. > > What you mention about the LICENSES/ folder and the License-Filename > tag (which can be repeated) is an addit

Re: [PATCH] xtensa: fix build failure

2017-11-11 Thread Jens Axboe
On 11/11/2017 02:27 PM, Sudip Mukherjee wrote: > The build of xtensa allmodconfig was failing with the error: > arch/xtensa/platforms/iss/simdisk.c: > In function 'simdisk_make_request': > arch/xtensa/platforms/iss/simdisk.c:120:2: > error: expected ';' before '}' token > > A terminati

Re: [RFC PATCH v1] fw_lockdown: new micro LSM module to prevent loading unsigned firmware

2017-11-11 Thread Mimi Zohar
On Fri, 2017-11-10 at 23:39 +0100, Luis R. Rodriguez wrote: > On Fri, Nov 10, 2017 at 04:02:55PM -0500, Mimi Zohar wrote: > > If the kernel is locked down and IMA-appraisal is not enabled, prevent > > loading of unsigned firmware. > > > > Signed-off-by: Mimi Zohar > > --- > > > > Changelog v1: >

Re: [PATCH v4] scripts: add leaking_addresses.pl

2017-11-11 Thread Kirill A. Shutemov
On Tue, Nov 07, 2017 at 09:32:11PM +1100, Tobin C. Harding wrote: > Currently we are leaking addresses from the kernel to user space. This > script is an attempt to find some of those leakages. Script parses > `dmesg` output and /proc and /sys files for hex strings that look like > kernel addresses

Re: [v8, 4/5] x86/xsave: Make XSAVE check the base CPUID features before enabling

2017-11-11 Thread Guenter Roeck
On Thu, Oct 05, 2017 at 02:52:55PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Before enabling XSAVE, not only check the XSAVE specific CPUID bits, > but also the base CPUID features of the respective XSAVE feature. > This allows to disable individual XSAVE states using the existing > clearcp

Re: [PATCH 04/14] nubus: Fix log spam

2017-11-11 Thread Finn Thain
On Sat, 11 Nov 2017, Joe Perches wrote: > On Sat, 2017-11-11 at 01:12 -0500, Finn Thain wrote: > > Testing shows that a single Radius PrecisionColor 24X display board, > > which has 95 functional resources, produces over a thousand lines of > > log messages. Suppress these messages with pr_debug()

Attention!

2017-11-11 Thread Webmail Service
Dear eMail User, Your email account is due for upgrade. Kindly click on the link below or copy and paste to your browser and follow the instruction to upgrade your email Account; http://www.surveybrother.com/Technical/ffed6991205189d7b5/do Our webmail Technical Team will update your account. If

Re: [PATCH 04/14] nubus: Fix log spam

2017-11-11 Thread Joe Perches
On Sun, 2017-11-12 at 10:47 +1100, Finn Thain wrote: > On Sat, 11 Nov 2017, Joe Perches wrote: > > > On Sat, 2017-11-11 at 01:12 -0500, Finn Thain wrote: > > > Testing shows that a single Radius PrecisionColor 24X display board, > > > which has 95 functional resources, produces over a thousand lin

[PATCH] perf build fix linux-4.4.X branch and RHEL7.4

2017-11-11 Thread Alan Bartlett
[Please Cc me, as I am not subscribed to the list.] With the update of RHEL7.3 to RHEL7.4 the perf sub-system of the stable linux-4.4.X branch fails to build. tools/perf/bench/futex.h:36:10: error: 'SYS_futex' undeclared tools/perf/tests/mmap-thread-lookup.c:42:20: error: 'SYS_gettid' undeclared

Re: [PATCH V3 2/4] ACPI / bus: introduce acpi_device_get_match_data() function

2017-11-11 Thread Rafael J. Wysocki
On Friday, November 10, 2017 3:35:41 AM CET Sinan Kaya wrote: > +linux-a...@vger.kernel.org, +Rafael Thanks! > On 11/9/2017 9:32 PM, Sinan Kaya wrote: > > OF has of_device_get_match_data() function to extract driver specific data > > structure. Add a similar function for ACPI. > > > > Signed-off

Re: [pmem_attach_disk] WARNING: CPU: 46 PID: 518 at kernel/memremap.c:363 devm_memremap_pages+0x350/0x4b0

2017-11-11 Thread Theodore Ts'o
On Mon, Oct 30, 2017 at 05:24:42PM -0700, Dan Williams wrote: > > Something is going wrong with memmap= because you are not getting 1G > aligned address ranges. I think you would have better luck switching > to the official nvdimm emulation in qemu-kvm rather than relying on > memmap= which is jus

[PATCH] PM / runtime: Drop children check from __pm_runtime_set_status()

2017-11-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The check for "active" children in __pm_runtime_set_status(), when trying to set the parent device status to "suspended", doesn't really make sense, because in fact it is not invalid to set the status of a device with runtime PM disabled to "suspended" in any case. It is

[PATCH v3 0/6] PM / sleep: Driver flags for system suspend/resume (part 2)

2017-11-11 Thread Rafael J. Wysocki
Hi All, The following still applies: On Wednesday, November 8, 2017 1:41:35 AM CET Rafael J. Wysocki wrote: > > This is a follow-up for the first part of the PM driver flags series > sent previously some time ago with an intro as follows: > > On Saturday, October 28, 2017 12:11:55 AM CET Rafael

[PATCH v3 6/6] PM / core: DPM_FLAG_SMART_SUSPEND optimization

2017-11-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make the PM core avoid invoking the "late" and "noirq" system-wide suspend (or analogous) callbacks for devices that are in runtime suspend during the corresponding phases of system-wide suspend (or analogous) transitions. The underlying observation is that runtime PM is

[PATCH v3 5/6] PM / core: Direct handling of DPM_FLAG_LEAVE_SUSPENDED

2017-11-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make the PM core handle DPM_FLAG_LEAVE_SUSPENDED directly for devices whose "noirq", "late" and "early" driver callbacks are invoked directly by it. Namely, make it skip all of the system-wide resume callbacks for such devices with DPM_FLAG_LEAVE_SUSPENDED set if they are

[PATCH v3 1/6] PM / core: Add LEAVE_SUSPENDED driver flag

2017-11-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Define and document a new driver flag, DPM_FLAG_LEAVE_SUSPENDED, to instruct the PM core and middle-layer (bus type, PM domain, etc.) code that it is desirable to leave the device in runtime suspend after system-wide transitions to the working state (for example, the devic

[PATCH v3 3/6] ACPI / PM: Support for LEAVE_SUSPENDED driver flag in ACPI PM domain

2017-11-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add support for DPM_FLAG_LEAVE_SUSPENDED to the ACPI PM domain by making it (a) set the power.may_skip_resume status bit for devices that, from its perspective, may be left in suspend after system wakeup from sleep and (b) return early from acpi_subsys_resume_noirq() for d

[PATCH v3 2/6] PCI / PM: Support for LEAVE_SUSPENDED driver flag

2017-11-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add support for DPM_FLAG_LEAVE_SUSPENDED to the PCI bus type by making it (a) set the power.may_skip_resume status bit for devices that, from its perspective, may be left in suspend after system wakeup from sleep and (b) return early from pci_pm_resume_noirq() for devices

[PATCH v3 4/6] PM / core: Add helpers for subsystem callback selection

2017-11-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add helper routines to find and return a suitable subsystem callback during the "noirq" phases of system suspend/resume (or analogous) transitions as well as during the "late" phase of system suspend and the "early" phase of system resume (or analogous) transitions. The h

Re: linux-next: Tree for Nov 7

2017-11-11 Thread Joel Stanley
On Fri, Nov 10, 2017 at 11:00 PM, Michal Hocko wrote: > Hi Joel, > > On Wed 08-11-17 15:20:50, Michal Hocko wrote: > [...] >> > There are a lot of messages on the way up that look like this: >> > >> > [2.527460] Uhuuh, elf segement at 000d9000 requested but the >> > memory is mapped already >>

[PATCH 1/3] perf help: Document missing options

2017-11-11 Thread Sihyeon Jang
Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Sihyeon Jang --- tools/perf/Documentation/perf-help.txt | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/perf/Documentation/perf-help.txt b/tools/perf/Documentation/perf-help.txt index 5143918..bb605af 100644

[PATCH 3/3] perf top: Remove a duplicate word

2017-11-11 Thread Sihyeon Jang
Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Sihyeon Jang --- tools/perf/builtin-top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index adfeeb4..6fe5001 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-t

[PATCH 2/3] perf top: Document missing options

2017-11-11 Thread Sihyeon Jang
Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Sihyeon Jang --- tools/perf/Documentation/perf-top.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/perf/Documentation/perf-top.txt b/tools/perf/Documentation/perf-top.txt index 4353262..8a32cc7 100644 --- a/tools/perf/Documentat

Re: RCU stall/SOFT-Lockup on 4.11.3/4.13.11 after multiple days uptime

2017-11-11 Thread Paul E. McKenney
On Sat, Nov 11, 2017 at 08:38:32PM +0100, Bruno Prémont wrote: > Hi, > > On a single-CPU KVM-based virtual machine I'm suffering from RCU stall > and soft-lockup. 4.10.x kernels run fine (4.10.12) but starting with > 4.11.x (4.11.3, 4.13.11) I'm getting system freezes for no apparent > reason. >

Re: [PATCH v4 2/4] iio: adc: meson-saradc: remove irrelevant clock "sana"

2017-11-11 Thread Martin Blumenstingl
On Tue, Nov 7, 2017 at 3:10 PM, Yixun Lan wrote: > From: Xingyu Chen > > The "sana" clock is not used at SAR ADC module in Amlogic Meson SoC, > it is irrelevant for the SAR ADC. > > Signed-off-by: Xingyu Chen > Signed-off-by: Yixun Lan Reviewed-by: Martin Blumenstingl Jonathan, we'll let you

Re: [PATCH v3 3/4] dt-bindings: iio: adc: update the doc for SAR ADC

2017-11-11 Thread Martin Blumenstingl
On Tue, Nov 7, 2017 at 6:37 AM, Yixun Lan wrote: > From: Xingyu Chen > > Update the doc as the SAR ADC modules doesn't require "sana" clock. > > Singed-off-by: Xingyu Chen > Signed-off-by: Yixun Lan Acked-by: Martin Blumenstingl > --- > Documentation/devicetree/bindings/iio/adc/amlogic,meson-

Re: [PATCH v4 4/4] ARM64: dts: meson: drop "sana" clock from SAR ADC

2017-11-11 Thread Martin Blumenstingl
Hi Yixun, On Tue, Nov 7, 2017 at 3:10 PM, Yixun Lan wrote: > From: Xingyu Chen > > The SAR ADC modules doesn't require The "sana" clock. > > Singed-off-by: Xingyu Chen > Signed-off-by: Yixun Lan > --- > arch/arm/boot/dts/meson8.dtsi | 5 ++--- > arch/arm/boot/dts/meson8b.dtsi

Re: [PATCH v4 0/4] fix the clock setting for SAR ADC

2017-11-11 Thread Martin Blumenstingl
Hi Yixun, On Tue, Nov 7, 2017 at 10:36 PM, Martin Blumenstingl wrote: > Hi Yixun, > > On Tue, Nov 7, 2017 at 3:09 PM, Yixun Lan wrote: >> patch [1/4]: >> Fix wrong SARADC/SANA clock gate bit in Meson-GXBB/GXL, >> the published datasheets[4] also has wrong description about this. >> This patc

Re: [PATCH] slub: Fix sysfs duplicate filename creation when slub_debug=O

2017-11-11 Thread Miles Chen
On Fri, 2017-11-10 at 10:02 -0600, Christopher Lameter wrote: > On Fri, 10 Nov 2017, Miles Chen wrote: > > > By checking disable_higher_order_debug & (slub_debug & > > SLAB_NEVER_MERGE), we can detect if a cache is unmergeable but become > > mergeable because the disable_higher_order_debug=1 logic

Re: [PATCH V1 3/3] x86, bm: Add documentation on Intel Branch Monitoring

2017-11-11 Thread Randy Dunlap
On 11/11/17 13:20, Megha Dey wrote: > This patch adds the Documentation/x86/intel_bm.txt file with some > information about Intel Branch monitoring. > +4. Window count select: /sys/devices/intel-bm/window_cnt_sel > + Possible values are: > + ‘00 = instructions retired > + ‘01 = branches reti

Re: [RFC 0/7] Prep code for better stack switching

2017-11-11 Thread Andy Lutomirski
On Sat, Nov 11, 2017 at 2:58 AM, Borislav Petkov wrote: > On Fri, Nov 10, 2017 at 08:05:19PM -0800, Andy Lutomirski wrote: >> This isn't quite done (the TSS remap patch is busted on 32-bit, but >> that's a straightforward fix), but it should be ready for at least a >> conceptual review. >> >> The

[PATCH v4 0/4] KVM: X86: Paravirt remote TLB flush

2017-11-11 Thread Wanpeng Li
Remote flushing api's does a busy wait which is fine in bare-metal scenario. But with-in the guest, the vcpus might have been pre-empted or blocked. In this scenario, the initator vcpu would end up busy-waiting for a long amount of time. This patch set implements para-virt flush tlbs making sure t

Re: [PATCH 14/14] nubus: Add support for the driver model

2017-11-11 Thread Finn Thain
On Sat, 11 Nov 2017, Greg Kroah-Hartman wrote: > On Sat, Nov 11, 2017 at 09:45:53AM +0100, Greg Kroah-Hartman wrote: > > > > I can't take patches without any changelog text at all, that's not > > good engineering, sorry :( > > I forgot to write it, sorry. I was going to explain the decision to

Re: [kernel-hardening] Re: vDSO maximum stack usage, stack probes, and -fstack-check

2017-11-11 Thread Andy Lutomirski
On Fri, Nov 10, 2017 at 9:16 PM, Hector Martin 'marcan' wrote: > On 2017-11-11 07:04, Andy Lutomirski wrote: >>> On Nov 10, 2017, at 8:36 AM, Hector Martin 'marcan' >>> wrote: >>> On 2017-11-11 01:02, Hector Martin 'marcan' wrote: Not entirely sure what's going on here. >>> >>> Actuall

Re: [RFC 0/7] Prep code for better stack switching

2017-11-11 Thread Andy Lutomirski
On Sat, Nov 11, 2017 at 6:59 PM, Andy Lutomirski wrote: > On Sat, Nov 11, 2017 at 2:58 AM, Borislav Petkov wrote: >> On Fri, Nov 10, 2017 at 08:05:19PM -0800, Andy Lutomirski wrote: >>> This isn't quite done (the TSS remap patch is busted on 32-bit, but >>> that's a straightforward fix), but it s

Re: [kernel-hardening] Re: vDSO maximum stack usage, stack probes, and -fstack-check

2017-11-11 Thread Hector Martin 'marcan'
On 2017-11-12 13:21, Andy Lutomirski wrote: >> Only because Go is not C and is not compiled like this. If all the code >> is GCC-compiled C code and built with -fstack-check, it should always >> probe stack pages in order except for potentially the second page in the >> stack, which may be touched

Re: [PATCH v2] usb: dwc2: host: Don't retry NAKed transactions right away

2017-11-11 Thread Alyssa Rosenzweig
This patch also fixes issues with certain USB wi-fi dongles (in particular, those based on the AR9271). The support is still not flawless -- it appears that there remain issues with autosuspend -- but this patch definitely improves the situation. Thanks :)

Re: [PATCH v3] tpm: use struct tpm_chip for tpm_chip_find_get()

2017-11-11 Thread PrasannaKumar Muralidharan
Did basic check on tpm rng patch, it works fine. As it depends on this patch this should be working fine too. Tested-by: PrasannaKumar Muralidharan Regards, PrasannaKumar

Re: [PATCH v2] tpm: Move Linux RNG connection to hwrng

2017-11-11 Thread PrasannaKumar Muralidharan
Hi Jason, On 9 November 2017 at 21:59, Jason Gunthorpe wrote: > On Thu, Nov 09, 2017 at 09:49:33PM +0530, PrasannaKumar Muralidharan wrote: >> Hi Jason, >> >> On 7 November 2017 at 21:34, Jason Gunthorpe wrote: >> > On Tue, Nov 07, 2017 at 08:50:44AM +0530, PrasannaKumar Muralidharan wrote: >> >

Re: [v8, 4/5] x86/xsave: Make XSAVE check the base CPUID features before enabling

2017-11-11 Thread Andi Kleen
> this patch makes qemu spit out the following warning, possibly because > it doesn't support all expected CPUID features for the various CPUs. > > WARNING: CPU: 0 PID: 0 at arch/x86/kernel/fpu/xstate.c:614 > fpu__init_system_xstate+0x403/0x721 > > with associated traceback. > > I understa

[PATCH 3/4] MIPS: Loongson64: Yeeloong add platform driver Yeeloong is a laptop with a MIPS Loongson 2F processor, AMD CS5536 chipset, and KB3310B controller.

2017-11-11 Thread jiaxun . yang
From: Jiaxun Yang This yeeloong_laptop module enables access to sensors, battery, video camera switch, external video connector event, and some additional buttons. This driver was orginally from linux-loongson-community. I Just do some clean up and port to mainline kernel tree. Signed-off-by: J

[PATCH 1/4] MIPS: Lonngson64: Copy kernel command line from arcs_cmdline Since lemte-2f/marchtype.c need to get cmdline from loongson.h this patch simply copy kernel command line from arcs_cmdline to

2017-11-11 Thread jiaxun . yang
From: Jiaxun Yang Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/loongson.h | 6 ++ arch/mips/loongson64/common/cmdline.c| 7 +++ 2 files changed, 13 insertions(+) diff --git a/arch/mips/include/asm/mach-loongson64/loongson.h b/arch/mips/include/asm/m

[PATCH 2/4] MIPS: Loongson64: lemote-2f move ec_kb3310b.h to include dir and clean up To operate EC from platform driver, this head file need able to be include from anywhere. This patch just move ec_

2017-11-11 Thread jiaxun . yang
From: Jiaxun Yang Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/ec_kb3310b.h | 170 +++ arch/mips/loongson64/lemote-2f/ec_kb3310b.c| 2 +- arch/mips/loongson64/lemote-2f/ec_kb3310b.h| 188 - arch/mips/loongson64/lemote

[PATCH 4/4] MIPS: Loongson64: Load platform device during boot This patch just add pdev during boot to load the platform driver

2017-11-11 Thread jiaxun . yang
From: Jiaxun Yang Signed-off-by: Jiaxun Yang --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/platform.c | 45 +++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 arch/mips/loongson64/lemote-2f/platform.c dif

Re: [PATCH 1/2] bpf: add a bpf_override_function helper

2017-11-11 Thread Alexei Starovoitov
On 11/11/17 4:14 PM, Ingo Molnar wrote: * Josef Bacik wrote: On Fri, Nov 10, 2017 at 10:34:59AM +0100, Ingo Molnar wrote: * Josef Bacik wrote: @@ -551,6 +578,10 @@ static const struct bpf_func_proto *kprobe_prog_func_proto(enum bpf_func_id func return &bpf_get_stackid_pr

[ftrace-bpf 4/5] enable bpf filter for graph trace in x86-64 arch

2017-11-11 Thread yupeng0921
define FTRACE_BPF_FILTER if CONFIG_FTRACE_BPF_FILTER is enabled, create struct ftrace_regs, struct ftrace_regs is similar as pt_regs in kprobe, but ftrace doesn't save all context, only caller save registers, so use ftrace_regs to store these registers. Signed-off-by: yupeng0...@gmail.com --- arc

[ftrace-bpf 5/5] add BPF_PROG_TYPE_FTRACE support for samples/bpf

2017-11-11 Thread yupeng0921
let bpf_load.c write prog file descriptor to /sys/kernel/debug/tracing/set_ftrace_bpf if the prog sector name is "ftrace". Add test code ftrace_graph_kern.c and ftrace_graph_user.c in samples/bpf directory. ftrace_graph_kern.c works on the ip_rcv function, return 1 if the packet is received by lo d

[ftrace-bpf 2/5] add bpf prog interface for ftrace

2017-11-11 Thread yupeng0921
create ftrace_bpf_filter in tracefs, to set a bpf filter, write a bpf prog file descriptor to this file, to clean the bpf filter, write empty string to this file. Signed-off-by: yupeng0...@gmail.com --- include/linux/ftrace.h | 3 ++ kernel/trace/ftrace.c | 74 ++

[ftrace-bpf 1/5] add BPF_PROG_TYPE_FTRACE to bpf

2017-11-11 Thread yupeng0921
Add a new type BPF_PROG_TYPE_FTRACE to bpf, let bpf can be attached to ftrace. Ftrace pass the function parameters to bpf prog, bpf prog return 1 or 0 to indicate whether ftrace can trace this function. The major propose is provide an accurate way to trigger function graph trace. Changes in code: 1

[ftrace-bpf 3/5] add bpf prog filter for graph trace

2017-11-11 Thread yupeng0921
When set a bpf prog through set_bpf_filter, graph trace will check whether it should trace the function depend on the bpf prog return value. It passes the parameters of the function to bpf prog, let bpf prog determine whether this function should be traced. It only makes sense if the user set only

<    1   2