[patch V2 04/10] x86/mm/cpa: Add debug mechanism

2018-09-14 Thread Thomas Gleixner
The whole static protection magic is silently fixing up anything which is handed in. That's just wrong. The offending call sites need to be fixed. Add a debug mechanism which emits a warning if a requested mapping needs to be fixed up. The DETECT debug mechanism is really not meant to be enabled e

[patch V2 07/10] x86/mm/cpa: Add sanity check for existing mappings

2018-09-14 Thread Thomas Gleixner
With the range check it is possible to do a quick verification that the current mapping is correct vs. the static protection areas. In case a incorrect mapping is detected a warning is emitted and the large page is split up. If the large page is a 2M page, then the split code is forced to check th

[patch V2 01/10] x86/mm/cpa: Split, rename and clean up try_preserve_large_page()

2018-09-14 Thread Thomas Gleixner
Avoid the extra variable and gotos by splitting the function into the actual algorithm and a callable function which contains the lock protection. Rename it to should_split_large_page() while at it so the return values make actually sense. Clean up the code flow, comments and general whitespace d

[patch V2 08/10] x86/mm/cpa: Optimize same protection check

2018-09-14 Thread Thomas Gleixner
When the existing mapping is correct and the new requested page protections are the same as the existing ones, then further checks can be omitted and the large page can be preserved. The slow path 4k wise check will not come up with a different result. Before: 1G pages checked:

[patch V2 03/10] x86/mm/cpa: Allow range check for static protections

2018-09-14 Thread Thomas Gleixner
Checking static protections only page by page is slow especially for huge pages. To allow quick checks over a complete range, add the ability to do that. Make the checks inclusive so the ranges can be directly used for debug output later. No functional change. Signed-off-by: Thomas Gleixner ---

[patch V2 10/10] x86/mm/cpa: Avoid the 4k pages check completely

2018-09-14 Thread Thomas Gleixner
The extra loop which tries hard to preserve large pages in case of conflicts with static protection regions turns out to be not preserving anything, at least not in the experiments which have been conducted. There might be corner cases in which the code would be able to preserve a large page oaccs

Re: [PATCH v4 06/16] sched/cpufreq: uclamp: add utilization clamping for FAIR tasks

2018-09-14 Thread Patrick Bellasi
On 14-Sep 11:32, Peter Zijlstra wrote: > On Tue, Aug 28, 2018 at 02:53:14PM +0100, Patrick Bellasi wrote: > > diff --git a/kernel/sched/cpufreq_schedutil.c > > b/kernel/sched/cpufreq_schedutil.c > > index 3fffad3bc8a8..949082555ee8 100644 > > --- a/kernel/sched/cpufreq_schedutil.c > > +++ b/kernel

Re: [PATCH v5 5/7] mm, hmm: Use devm semantics for hmm_devmem_{add, remove}

2018-09-14 Thread Christoph Hellwig
On Wed, Sep 12, 2018 at 07:22:27PM -0700, Dan Williams wrote: > devm semantics arrange for resources to be torn down when > device-driver-probe fails or when device-driver-release completes. > Similar to devm_memremap_pages() there is no need to support an explicit > remove operation when the users

Re: [PATCH 00/17] thermal: enable/check sensor after its setup is finished

2018-09-14 Thread Bartlomiej Zolnierkiewicz
On 09/10/2018 07:37 PM, Eduardo Valentin wrote: > On Tue, Apr 10, 2018 at 02:41:54PM +0200, Bartlomiej Zolnierkiewicz wrote: >> Hi, >> >> [devm]_thermal_zone_of_sensor_register() is used to register >> thermal sensor by thermal drivers using DeviceTree. Besides >> registering sensor this function

Re: [PATCH v5 4/7] mm, devm_memremap_pages: Add MEMORY_DEVICE_PRIVATE support

2018-09-14 Thread Christoph Hellwig
On Wed, Sep 12, 2018 at 07:22:22PM -0700, Dan Williams wrote: > In preparation for consolidating all ZONE_DEVICE enabling via > devm_memremap_pages(), teach it how to handle the constraints of > MEMORY_DEVICE_PRIVATE ranges. MEMORY_DEVICE_PRIVATE still somehow boggles my mind, but otherwise this l

Re: [PATCH v5 3/7] mm, devm_memremap_pages: Fix shutdown handling

2018-09-14 Thread Christoph Hellwig
> An argument could be made to require that the ->kill() operation be set > in the @pgmap arg rather than passed in separately. However, it helps > code readability, tracking the lifetime of a given instance, to be able > to grep the kill routine directly at the devm_memremap_pages() call > site.

Re: [PATCH v5 2/7] mm, devm_memremap_pages: Kill mapping "System RAM" support

2018-09-14 Thread Christoph Hellwig
On Wed, Sep 12, 2018 at 07:22:11PM -0700, Dan Williams wrote: > Given the fact that devm_memremap_pages() requires a percpu_ref that is > torn down by devm_memremap_pages_release() the current support for > mapping RAM is broken. I agree. Do you remember why we even added it in the first place?

Re: [PATCH 2/2] kbuild: remove dead code in cmd_files calculation in top Makefile

2018-09-14 Thread Masahiro Yamada
2018-09-12 15:43 GMT+09:00 Masahiro Yamada : > Nobody sets 'targets' in the top-level Makefile or arch/*/Makefile, > hence $(targets) is empty. > > $(wildcard .*.cmd) will do for including the .vmlinux.cmd file. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > Makefile | 3 +

Re: [PATCH] kbuild: remove old check for CFLAGS use

2018-09-14 Thread Masahiro Yamada
2018-09-12 15:18 GMT+09:00 Masahiro Yamada : > This check has been here more than a decade since commit 0c53c8e6eb45 > ("kbuild: check for wrong use of CFLAGS"). > > Enough time for migration has passed. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > scripts/Makefile.build

Re: [PATCH 1/2] kbuild: hide most of targets when running config or mixed targets

2018-09-14 Thread Masahiro Yamada
2018-09-12 15:43 GMT+09:00 Masahiro Yamada : > When mixed/config targets are being processed, the top Makefile > does not need to parse the rest of targets. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > Makefile | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-)

[PATCH 2/3] mm/vmalloc: Improve vfree() kerneldoc

2018-09-14 Thread Andrey Ryabinin
vfree() might sleep if called not in interrupt context. Explain that in the comment. Signed-off-by: Andrey Ryabinin --- mm/vmalloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index a728fc492557..d00d42d6bf79 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@

Re: [PATCH] kbuild: prefix Makefile.dtbinst path with $(srctree) unconditionally

2018-09-14 Thread Masahiro Yamada
2018-09-12 13:52 GMT+09:00 Masahiro Yamada : > $(srctree) always points to the top of the source tree whether > KBUILD_SRC is set or not. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > scripts/Kbuild.include | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

[PATCH 1/3] kvfree(): Fix misleading comment.

2018-09-14 Thread Andrey Ryabinin
vfree() might sleep if called not in interrupt context. So does kvfree() too. Fix misleading kvfree()'s comment about allowed context. Fixes: 04b8e946075d ("mm/util.c: improve kvfree() kerneldoc") Signed-off-by: Andrey Ryabinin --- mm/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 3/3] vfree, kvfree: Add debug might sleeps.

2018-09-14 Thread Andrey Ryabinin
Add might_sleep() calls to vfree(), kvfree() to catch potential sleep-in-atomic bugs earlier. Signed-off-by: Andrey Ryabinin --- mm/util.c| 2 ++ mm/vmalloc.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mm/util.c b/mm/util.c index 7f1f165f46af..929ed1795bc1 100644 --- a/mm/util.c

Re: [PATCH 4.18 000/197] 4.18.8-stable review

2018-09-14 Thread Greg Kroah-Hartman
On Fri, Sep 14, 2018 at 05:57:07PM +0530, Naresh Kamboju wrote: > On 13 September 2018 at 18:59, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.18.8 release. > > There are 197 patches in this series, all will be posted as a response > > to this one. If anyo

Re: [RFC][PATCH 01/11] asm-generic/tlb: Provide a comment

2018-09-14 Thread Peter Zijlstra
On Fri, Sep 14, 2018 at 12:28:24PM +0200, Martin Schwidefsky wrote: > I spent some time to get s390 converted to the common mmu_gather code. > There is one thing I would like to request, namely the ability to > disable the page gather part of mmu_gather. For my prototype patch > see below, it defi

Re: [PATCH 04/10] iov_iter: Add mapping and discard iterator types

2018-09-14 Thread Trond Myklebust
On Fri, 2018-09-14 at 05:18 +0100, Al Viro wrote: > On Thu, Sep 13, 2018 at 04:52:09PM +0100, David Howells wrote: > > Add two new iterator types to iov_iter: > > > > (1) ITER_MAPPING > > > > This walks through a set of pages attached to an address_space > > that > > are pinned or lock

Re: [PATCH v3 2/2] PM / devfreq: Add devfreq driver for interconnect bandwidth voting

2018-09-14 Thread Sibi Sankar
Hi Saravana, On 2018-08-02 06:27, Saravana Kannan wrote: This driver registers itself as a devfreq device that allows devfreq governors to make bandwidth votes for an interconnect path. This allows applying various policies for different interconnect paths using devfreq governors. Example use

Re: [RFC PATCH] Add /proc//numa_vamaps for numa node information

2018-09-14 Thread Jann Horn
On Fri, Sep 14, 2018 at 8:21 AM Michal Hocko wrote: > On Fri 14-09-18 03:33:28, Jann Horn wrote: > > On Wed, Sep 12, 2018 at 10:43 PM prakash.sangappa > > wrote: > > > On 05/09/2018 04:31 PM, Dave Hansen wrote: > > > > On 05/07/2018 06:16 PM, prakash.sangappa wrote: > > > >> It will be /proc//num

Re: [PATCH 4.4 00/60] 4.4.156-stable review

2018-09-14 Thread Naresh Kamboju
On 13 September 2018 at 19:00, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.156 release. > There are 60 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. > > Resp

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Ingo Molnar
* Jiri Olsa wrote: > On Fri, Sep 14, 2018 at 02:13:07PM +0200, Ingo Molnar wrote: > > > > * Peter Zijlstra wrote: > > > > > On Fri, Sep 14, 2018 at 01:47:25PM +0200, Jiri Olsa wrote: > > > > On Fri, Sep 14, 2018 at 01:15:28PM +0200, Peter Zijlstra wrote: > > > > > On Fri, Sep 14, 2018 at 11:

Re: [PATCH] misc: sgi-gru: fix fall-through annotations

2018-09-14 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Thu, Sep 13, 2018 at 01:53:18PM -0500, Gustavo A. R. Silva wrote: > Replace "fallthru" with a proper "fall through" annotation. > > This fix is part of the ongoing efforts to enabling > -Wimplicit-fallthrough > > Signed-off-by: Gustavo A. R. Silva > --- > drivers

Re: [PATCH 4.9 00/78] 4.9.127-stable review

2018-09-14 Thread Naresh Kamboju
On 13 September 2018 at 19:00, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.127 release. > There are 78 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. > > Resp

Re: [PATCH] PM / suspend: Count suspend-to-idle loop as sleep time

2018-09-14 Thread Thomas Gleixner
On Fri, 14 Sep 2018, Rafael J. Wysocki wrote: > On Fri, Sep 14, 2018 at 11:53 AM Mika Penttilä > > >> But doesn't injecting sleep time here make monotonic clock too large > > >> by the amount of sleeptime? tick_freeze() / tick_unfreeze() already > > >> injects the sleeptime (otherwise delta would

Re: [PATCH 4.14 000/115] 4.14.70-stable review

2018-09-14 Thread Naresh Kamboju
On 13 September 2018 at 19:00, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.70 release. > There are 115 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. > > Res

Re: [PATCH] perf/x86/intel/lbr: Optimize context switches for LBR

2018-09-14 Thread Liang, Kan
On 9/14/2018 5:22 AM, Alexey Budankov wrote: Hi Andi, On 14.09.2018 11:54, Andi Kleen wrote: In principle the LBRs need to be flushed between threads. So does current code. IMHO, ideally, LBRs stack would be preserved and restored when switching between execution stacks. That would allow

[PATCH][regulator-next] regulator: pfuze100-regulator: fix spelling mistake "standy" -> "standby"

2018-09-14 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_info message Signed-off-by: Colin Ian King --- drivers/regulator/pfuze100-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c

Re: [PATCH v8 07/26] PM / Domains: Add genpd governor for CPUs

2018-09-14 Thread Lorenzo Pieralisi
On Fri, Sep 14, 2018 at 01:34:14PM +0200, Rafael J. Wysocki wrote: [...] > > > So for example, if your logical CPU has an idle state A that may trigger > > > an > > > idle state X at the cluster level (if the other logical CPUs happen to be > > > in > > > the right states and so on), then the w

[PATCH] scsi: iscsi: target: fix spelling mistake "entires" -> "entries"

2018-09-14 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in function name and comment Signed-off-by: Colin Ian King --- drivers/target/iscsi/iscsi_target.c | 2 +- drivers/target/iscsi/iscsi_target_erl2.c | 2 +- drivers/target/iscsi/iscsi_target_erl2.h | 2 +- drivers/target/iscsi/iscsi_t

Re: [PATCH 4.18 000/197] 4.18.8-stable review

2018-09-14 Thread Naresh Kamboju
On 13 September 2018 at 18:59, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.18.8 release. > There are 197 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. > > Resp

Re: [PATCH 1/2] vfio: add edid api for display (vgpu) devices.

2018-09-14 Thread Gerd Hoffmann
Hi, > Another possible implementation would be via a vfio region, we already > support device specific regions via capabilities with vfio_region_info, > so we could have an edid region which could handle both input and > output using a defined structure and protocol within the region. With > an

Re: [PATCH] printk: inject caller information into the body of message

2018-09-14 Thread Sergey Senozhatsky
On (09/14/18 21:03), Tetsuo Handa wrote: > > 80 bytes is quite short for OOM, agreed. > > > >> static char oom_print_buf[1024]; > >> DEFINE_PR_LINE_BUF(level, oom_print_buf); > > > > Do I get it right that you suggest to drop the "size" param? > > No. I just forgot to add params. ;-) > > >

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Jiri Olsa
On Fri, Sep 14, 2018 at 02:13:07PM +0200, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > On Fri, Sep 14, 2018 at 01:47:25PM +0200, Jiri Olsa wrote: > > > On Fri, Sep 14, 2018 at 01:15:28PM +0200, Peter Zijlstra wrote: > > > > On Fri, Sep 14, 2018 at 11:40:22AM +0200, Ingo Molnar wrote: > >

Re: [PATCH v8 1/2] x86/mm: add .bss..decrypted section to hold shared variables

2018-09-14 Thread Thomas Gleixner
On Fri, 14 Sep 2018, Brijesh Singh wrote: > On 9/14/18 2:10 AM, Borislav Petkov wrote: > >>/* > >> + * Clear the memory encryption mask from the .bss..decrypted section. > >> + * The bss section will be memset to zero later in the initialization so > >> + * there is no need to zero it aft

[PATCH] arm64: dts: rockchip: add initial dts support for Rockpro64 board

2018-09-14 Thread Akash Gajjar
Rockpro64 board is a rockchip RK3399 based board from pine64.org. This commit adds initial device tree support for Rockpro64 board. Signed-off-by: Akash Gajjar --- Documentation/devicetree/bindings/arm/rockchip.txt | 4 + arch/arm64/boot/dts/rockchip/Makefile | 1 + arch/arm64/b

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Fri, Sep 14, 2018 at 01:47:25PM +0200, Jiri Olsa wrote: > > On Fri, Sep 14, 2018 at 01:15:28PM +0200, Peter Zijlstra wrote: > > > On Fri, Sep 14, 2018 at 11:40:22AM +0200, Ingo Molnar wrote: > > > > In fact keeping the files separate has scalability advantages for '

Re: [PATCH] iio: proximity: lidar-v2: replace i2c block access method with the one already implemented.

2018-09-14 Thread Himanshu Jha
On Thu, Sep 13, 2018 at 11:51:45AM +0800, Song Qiang wrote: > This driver tries to access a block of data on a i2c bus and it tries > to manually make a device command frame and a consecutively read frame, > then uses i2c_transfer() to read data. But this has already been > implemented in i2c_smbus

Re: [greybus-dev] [PATCH] staging: greybus: fix spelling mistake "entires" -> "entries"

2018-09-14 Thread Colin Ian King
On 14/09/18 12:43, Alex Elder wrote: > On 09/14/2018 06:24 AM, Colin King wrote: >> From: Colin Ian King >> >> Trivial fix to spelling mistake > > I hate to have two-character fixes to documentation like this. I.e., > as long as you're touching the README file it might have been nice to > review

Re: [PATCH] printk: inject caller information into the body of message

2018-09-14 Thread Tetsuo Handa
On 2018/09/14 20:50, Sergey Senozhatsky wrote: >>> +#define DEFINE_PR_LINE_BUF(lev, name, buf, sz) \ >>> + struct pr_line name = {\ >>> + .sb = __SEQ_BUF_INITIALIZER(buf, (sz)), \ >>> + .level = lev,

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Peter Zijlstra
On Fri, Sep 14, 2018 at 01:47:25PM +0200, Jiri Olsa wrote: > On Fri, Sep 14, 2018 at 01:15:28PM +0200, Peter Zijlstra wrote: > > On Fri, Sep 14, 2018 at 11:40:22AM +0200, Ingo Molnar wrote: > > > In fact keeping the files separate has scalability advantages for 'perf > > > report' and similar > >

Re: [PATCH 11/50] ipwireless: switch to ->[sg]et_serial()

2018-09-14 Thread David Sterba
On Thu, Sep 13, 2018 at 03:40:10AM +0100, Al Viro wrote: > From: Al Viro > > Signed-off-by: Al Viro Acked-by: David Sterba

[GIT PULL]: dmaengine fixes for v4.19-rc4

2018-09-14 Thread Vinod
Hi Linus, Please consider the pull to receive a small fix for mic_x100_dma driver which fixes driver to use devm_kzalloc for driver memory so that it is freed properly when it unregisters from dmaengine using managed API The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3

Re: [PATCH v2 3/4] iio: adc: Add Xilinx AMS driver

2018-09-14 Thread Himanshu Jha
Hi Manish, On Fri, Sep 14, 2018 at 12:48:29PM +0530, Manish Narani wrote: > The AMS includes an ADC as well as on-chip sensors that can be used to > sample external voltages and monitor on-die operating conditions, such > as temperature and supply voltage levels. The AMS has two SYSMON blocks. > P

Re: [PATCH v8 1/2] x86/mm: add .bss..decrypted section to hold shared variables

2018-09-14 Thread Brijesh Singh
On 9/14/18 2:10 AM, Borislav Petkov wrote: > On Thu, Sep 13, 2018 at 04:51:10PM -0500, Brijesh Singh wrote: >> kvmclock defines few static variables which are shared with the >> hypervisor during the kvmclock initialization. > ... > >> diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head

Re: [PATCH v4 03/16] sched/core: uclamp: add CPU's clamp groups accounting

2018-09-14 Thread Peter Zijlstra
On Fri, Sep 14, 2018 at 10:07:51AM +0100, Patrick Bellasi wrote: > On 13-Sep 21:12, Peter Zijlstra wrote: > > On Tue, Aug 28, 2018 at 02:53:11PM +0100, Patrick Bellasi wrote: > > > +static inline void uclamp_cpu_get_id(struct task_struct *p, > > > + struct rq *rq, int c

Re: [PATCH] printk: inject caller information into the body of message

2018-09-14 Thread Sergey Senozhatsky
On (09/14/18 19:37), Tetsuo Handa wrote: > > @@ -20,6 +20,9 @@ > > * Annotation for a "continued" line of log printout (only done after a > > * line that had no enclosing \n). Only to be used by core/arch code > > * during early bootup (a continued line is not SMP-safe otherwise). > > + * > >

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Jiri Olsa
On Fri, Sep 14, 2018 at 01:15:28PM +0200, Peter Zijlstra wrote: > On Fri, Sep 14, 2018 at 11:40:22AM +0200, Ingo Molnar wrote: > > In fact keeping the files separate has scalability advantages for 'perf > > report' and similar > > parsing tools: they could read all the streams in a per-CPU fashio

Re: [greybus-dev] [PATCH] staging: greybus: fix spelling mistake "entires" -> "entries"

2018-09-14 Thread Alex Elder
On 09/14/2018 06:24 AM, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake I hate to have two-character fixes to documentation like this. I.e., as long as you're touching the README file it might have been nice to review it and look for other things. I suspect you fou

Re: [PATCH 01/17] thermal: add thermal_zone_device_toggle() helper

2018-09-14 Thread Bartlomiej Zolnierkiewicz
On 09/10/2018 07:16 PM, Eduardo Valentin wrote: > On Tue, Apr 10, 2018 at 02:41:55PM +0200, Bartlomiej Zolnierkiewicz wrote: >> Add thermal_zone_device_toggle() helper. Then update core code and >> drivers to use it. > > Cool, but I think it would be good to have some sort of rational here > at

[PATCH] [RFC] making uapi/linux/elfcore.h useful again

2018-09-14 Thread Arnd Bergmann
After finding a bug in glibc the question came up how linux/elfcore.h is supposed to be used from user space. As far as I can tell, it's not possible, as it references data types that are simply unavailable there. The #ifndef __KERNEL__ section in that header dates back to when the file was introd

Re: [PATCH v8 07/26] PM / Domains: Add genpd governor for CPUs

2018-09-14 Thread Rafael J. Wysocki
On Fri, Sep 14, 2018 at 12:44 PM Lorenzo Pieralisi wrote: > > On Fri, Sep 14, 2018 at 11:50:15AM +0200, Rafael J. Wysocki wrote: > > On Thursday, August 9, 2018 5:39:25 PM CEST Lorenzo Pieralisi wrote: > > > On Mon, Aug 06, 2018 at 11:20:59AM +0200, Rafael J. Wysocki wrote: > > > > > > [...] > > >

Re: [PATCH] kernel/hung_task.c: disable on suspend

2018-09-14 Thread Rafael J. Wysocki
On Thursday, September 13, 2018 6:08:51 PM CEST Vitaly Kuznetsov wrote: > It is possible to observe hung_task complaints when system goes to > suspend-to-idle state: > > PM: Syncing filesystems ... done. > Freezing user space processes ... (elapsed 0.001 seconds) done. > OOM killer disabled. >

Re: 答复: Re: [PATCH] tty: max3100: Fix oops while 'cat/proc/tty/driver/ttyMAX'

2018-09-14 Thread Jiri Slaby
On 09/13/2018, 08:32 AM, chen.l...@zte.com.cn wrote: >         > > but 'get_mctrl' is already protected by  the upper layer by spin lock, > so, will the races happen? > > > for example: in /drivers/tty/serial/serial_core.c  > >               spin_lock_irq(&uport->lock); > >               resul

[GIT PULL] TTY/Serial fixes for 4.19-rc4

2018-09-14 Thread Greg KH
The following changes since commit 11da3a7f84f19c26da6f86af878298694ede0804: Linux 4.19-rc3 (2018-09-09 17:26:43 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tags/tty-4.19-rc4 for you to fetch changes up to 7f2bf7840b74a160f908d

[GIT PULL] Staging/IIO driver fixes for 4.19-rc4

2018-09-14 Thread Greg KH
The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git tags/staging-4.19-rc4 for you to fetch changes up to 65aac1742328

[GIT PULL] Char/Misc driver fixes for 4.19-rc4

2018-09-14 Thread Greg KH
The following changes since commit 11da3a7f84f19c26da6f86af878298694ede0804: Linux 4.19-rc3 (2018-09-09 17:26:43 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git tags/char-misc-4.19-rc4 for you to fetch changes up to 422b3db2

[PATCH] staging: greybus: fix spelling mistake "entires" -> "entries"

2018-09-14 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake Signed-off-by: Colin Ian King --- drivers/staging/greybus/tools/README.loopback | 2 +- drivers/staging/greybus/tools/loopback_test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/tools/README

Re: [PATCH] kernel: prevent submission of creds with higher privileges inside container

2018-09-14 Thread Jann Horn
On Fri, Sep 14, 2018 at 1:14 PM My Name <18650033...@163.com> wrote: > Adversaries often attack the Linux kernel via using > commit_creds(prepare_kernel_cred(0)) to submit ROOT > credential for the purpose of privilege escalation. > For processes inside the Linux container, the above > approach als

Re: [PATCH] printk: CON_PRINTBUFFER console registration is a bit racy

2018-09-14 Thread Sergey Senozhatsky
On (09/14/18 10:59), Petr Mladek wrote: > > Well, I am not sure if it is worth the code complexity. > Well, I don't think we need to bother that much here. Besides, exclusive_console is cleared under logbuf_lock with preemption disabled now. So we set it under logbuf_lock and !irq and we clear it

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Peter Zijlstra
On Fri, Sep 14, 2018 at 11:40:22AM +0200, Ingo Molnar wrote: > In fact keeping the files separate has scalability advantages for 'perf > report' and similar > parsing tools: they could read all the streams in a per-CPU fashion already, > from the very > beginning. Also writing to different fil

Re: [RFC 00/60] Coscheduling for Linux

2018-09-14 Thread Peter Zijlstra
On Fri, Sep 07, 2018 at 11:39:47PM +0200, Jan H. Schönherr wrote: > This patch series extends CFS with support for coscheduling. The > implementation is versatile enough to cover many different coscheduling > use-cases, while at the same time being non-intrusive, so that behavior of > legacy worklo

Re: [PATCH v4 14/16] sched/core: uclamp: request CAP_SYS_ADMIN by default

2018-09-14 Thread Peter Zijlstra
On Thu, Sep 06, 2018 at 03:40:53PM +0100, Patrick Bellasi wrote: > 1) _I think_ we don't want to depend on capable(CAP_SYS_NICE) but >instead on capable(CAP_SYS_ADMIN) > >Does that make sense ? Neither of them really makes sense to me. The max clamp makes a task 'consume' less and you sh

RE: [PATCH v6 1/3] x86/speculation: apply IBPB more strictly to avoid cross-process data leak

2018-09-14 Thread Thomas Gleixner
On Fri, 14 Sep 2018, Jiri Kosina wrote: > On Thu, 13 Sep 2018, Schaufler, Casey wrote: > > > > - return security_ptrace_access_check(task, mode); > > > + if (!(mode & PTRACE_MODE_NOACCESS_CHK)) > > > + return security_ptrace_access_check(task, mode); > > > + return 0; > > > > Because PTRA

Re: [PATCH 1/3] drm: rcar-du: Update Gen3 output limitations

2018-09-14 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Friday, 31 August 2018 21:12:57 EEST Kieran Bingham wrote: > The R-Car Gen3 DU utilises the VSP1 hardware for memory access. The > limits on the RPF and WPF in this pipeline are 8190x8190. > > Update the supported maximum sizes accordingly. > > Signed-off-

RE: [PATCH v6 1/3] x86/speculation: apply IBPB more strictly to avoid cross-process data leak

2018-09-14 Thread Jiri Kosina
On Thu, 13 Sep 2018, Schaufler, Casey wrote: > > - return security_ptrace_access_check(task, mode); > > + if (!(mode & PTRACE_MODE_NOACCESS_CHK)) > > + return security_ptrace_access_check(task, mode); > > + return 0; > > Because PTRACE_MODE_IBPB includes PTRACE_MODE_NOAUDIT you >

[PATCH] kernel: prevent submission of creds with higher privileges inside container

2018-09-14 Thread My Name
From: Xin Lin <18650033...@163.com> Adversaries often attack the Linux kernel via using commit_creds(prepare_kernel_cred(0)) to submit ROOT credential for the purpose of privilege escalation. For processes inside the Linux container, the above approach also works, because the container and the hos

[PATCH v3 3/3] exec: do unshare_files after de_thread

2018-09-14 Thread Jeff Layton
POSIX mandates that open fds and their associated file locks should be preserved across an execve. This works, unless the process is multithreaded at the time that execve is called. In that case, we'll end up unsharing the files_struct but the locks will still have their fl_owner set to the addres

[PATCH v3 1/3] exec: separate thread_count for files_struct

2018-09-14 Thread Jeff Layton
Currently, we have a single refcount variable inside the files_struct. When we go to unshare the files_struct, we check this counter and if it's elevated, then we allocate a new files_struct instead of just repurposing the old one, under the assumption that that indicates that it's shared between t

[PATCH v3 2/3] exec: delay clone(CLONE_FILES) if task associated with current files_struct is exec'ing

2018-09-14 Thread Jeff Layton
In a later patch, we're going to move the unshare_files call in __do_execve_file to later in the process, but this opens up a potential race with clone(CLONE_FILES). We could end up bumping the refcount on the files_struct after we've checked to see if it was shared. What we really want to do in th

[PATCH v3 0/3] exec: fix passing of file locks across execve in multithreaded processes

2018-09-14 Thread Jeff Layton
v2: fix displaced_files cleanup in __do_execve_file v3: fix thread_count handling in unshare syscall add new release_files_struct helper The main difference from the earlier set is some cleanup and fixes for the thread_count handling in the files_struct. The original looked a bit more ugly wit

Re: [PATCH v8 07/26] PM / Domains: Add genpd governor for CPUs

2018-09-14 Thread Lorenzo Pieralisi
On Fri, Sep 14, 2018 at 11:50:15AM +0200, Rafael J. Wysocki wrote: > On Thursday, August 9, 2018 5:39:25 PM CEST Lorenzo Pieralisi wrote: > > On Mon, Aug 06, 2018 at 11:20:59AM +0200, Rafael J. Wysocki wrote: > > > > [...] > > > > > >>> > @@ -245,6 +248,56 @@ static bool always_on_power_down_ok(s

Re: Multi-parent IRQ domains

2018-09-14 Thread Sudeep Holla
On Thu, Sep 13, 2018 at 05:59:45PM +0200, Thierry Reding wrote: > Hi everyone, > > I've been trying to implement a feature on recent Tegra chips that's > called "wake events". By recent, is it same to assume PSCI based system ? And the GIC is power managed by PSCI ? -- Regards, Sudeep

[PATCH] scripts: unifdef: fix stringop-truncation warning

2018-09-14 Thread Harshit Jain
From: Harshit Jain * This commit resolves the following warning when the mainline kernel is build with the android environment. -> warning :-> https://gist.github.com/dev-harsh1998/757427b16a58f5498db3d87212a9651b * This warning is persistant in all the currently maintained android kernel i.e

Re: [PATCH v1 2/3] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-09-14 Thread Thomas Gleixner
On Fri, 14 Sep 2018, Yi Sun wrote: > > > +static void hv_notify_long_spin_wait(void) > > > +{ > > > + u64 input = spin_wait_info | 0x; > > > > What? The result is always 0x . > > > Oh, sorry for such error. > > > > + spin_wait_info++; > > > + hv_do_fast_hyperc

Re: [PATCH] printk: inject caller information into the body of message

2018-09-14 Thread Tetsuo Handa
On 2018/09/14 15:57, Sergey Senozhatsky wrote: > On (09/13/18 23:28), Sergey Senozhatsky wrote: >> Not that I see any problems with pr_line_flush(). But can drop it, sure. >> pr_line() is a replacement for pr_cont() and as such it's not for multi-line >> buffering. > > OK, attached. > Let me know

Re: Multi-parent IRQ domains

2018-09-14 Thread Thomas Gleixner
On Thu, 13 Sep 2018, Thierry Reding wrote: > I've been trying to implement a feature on recent Tegra chips that's > called "wake events". These wake events are implemented as part of the > power management controller (PMC) and they control which events can be > used to wake the system from suspend.

Re: [PATCH v1 0/5] CPUFREQ OPP's and Tegra30 support by tegra20-cpufreq driver

2018-09-14 Thread Dmitry Osipenko
On 9/11/18 11:27 AM, Marcel Ziswiler wrote: On Fri, 2018-09-07 at 19:59 +0300, Dmitry Osipenko wrote: - snip - - With "cpufreq-info -f" I could only observe like the top 3-4 OPPs while it does not to go further down even when idling. Why could that be resp. what could cause this? What cpufre

Re: [RFC][PATCH 01/11] asm-generic/tlb: Provide a comment

2018-09-14 Thread Martin Schwidefsky
On Thu, 13 Sep 2018 14:39:37 +0200 Peter Zijlstra wrote: > On Thu, Sep 13, 2018 at 02:18:27PM +0200, Martin Schwidefsky wrote: > > We may get something working with a common code mmu_gather, but I fear the > > day someone makes a "minor" change to that subtly break s390. The debugging > > of > >

Re: [PATCH 2/2] watchdog: sama5d4: write the mode register in two steps

2018-09-14 Thread Alexandre Belloni
On 14/09/2018 12:13:39+0200, Romain Izard wrote: > The specification for SAMA5D2 and SAMA5D4 chips, that use this IP for > their watchdog timer, has the following advice regarding the Mode Register: > > "When setting the WDDIS bit, and while it is set, the fields WDV and WDD > must not be modified

Re: [PATCH] kernel: prevent submission of creds with higher privileges inside container

2018-09-14 Thread kbuild test robot
/commits/My-Name/kernel-prevent-submission-of-creds-with-higher-privileges-inside-container/20180914-164803 config: ia64-allnoconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 8.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin

[PATCH 2/2] watchdog: sama5d4: write the mode register in two steps

2018-09-14 Thread Romain Izard
The specification for SAMA5D2 and SAMA5D4 chips, that use this IP for their watchdog timer, has the following advice regarding the Mode Register: "When setting the WDDIS bit, and while it is set, the fields WDV and WDD must not be modified." I have observed on a board based on a SAMA5D2 chip that

[PATCH 0/2] Fixes for the SAMA5D2/SAMA5D4 watchdog

2018-09-14 Thread Romain Izard
A previous change of the sama5d4_wdt driver broke the device probing with the device tree configuration described in existing DTS files, when no value is set for the "timeout-sec" property. Moreover, specifying any other value than 16 seconds for "timeout-sec" leads to a watchdog reset immediately

[PATCH 1/2] watchdog: sama5d4: fix timeout-sec usage

2018-09-14 Thread Romain Izard
When using watchdog_init_timeout to update the default timeout value, an error means that there is no "timeout-sec" in the relevant device tree node. This should not prevent binding of the driver to the device. Fixes: 976932e40036 ("watchdog: sama5d4: make use of timeout-secs provided in devicet

Re: [PATCH 2/4] MAINTAINERS: VSP1: Add co-maintainer

2018-09-14 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Monday, 6 August 2018 17:39:02 EEST Kieran Bingham wrote: > From: Kieran Bingham > > Add myself as a co-maintainer for the Renesas VSP driver. > > Signed-off-by: Kieran Bingham Acked-by: Laurent Pinchart and applied to my tree. Thank you for your hel

[PATCH 2/2] add some safety checks for label store interface of flash dev in sysfs

2018-09-14 Thread Dongbo Cao
do some checks on the label's length and ending. Signed-off-by: Dongbo Cao --- drivers/md/bcache/sysfs.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index e64c718f..cce793ef 100644 --- a/drivers/md/bcache/sysfs

Re: [PATCH] PM / suspend: Count suspend-to-idle loop as sleep time

2018-09-14 Thread Rafael J. Wysocki
On Fri, Sep 14, 2018 at 11:53 AM Mika Penttilä wrote: > > On 09/14/2018 11:46 AM, Rafael J. Wysocki wrote: > > On Friday, September 14, 2018 10:28:44 AM CEST Mika Penttilä wrote: > >> Hi! > >> > >> > >> On 09/14/2018 09:59 AM, Rafael J. Wysocki wrote: > >>> From: Rafael J. Wysocki > >>> > >>> The

Re: [PATCH] add label interface for cache device in sysfs

2018-09-14 Thread Coly Li
On 9/14/18 5:51 PM, Dongbo Cao wrote: label interface will be called by bcache tools in user space. Signed-off-by: Dongbo Cao Hi Dongbo, In your change I see you set superblock label to cache set. What is the use case for doing this ? Thanks. Coly Li --- drivers/md/bcache/sysfs.

Dear intended recipient

2018-09-14 Thread Hama Diallo
-- Greetings, I wish to seek your assistance for the transfer of US$35M depository made by a politician for an investment programme that has remained dormant for years now.I shall provide you with more details and relevant documents that will help you understand the transaction. Mr. Hama Dial

Dear intended recipient

2018-09-14 Thread Hama Diallo
-- Greetings, I wish to seek your assistance for the transfer of US$35M depository made by a politician for an investment programme that has remained dormant for years now.I shall provide you with more details and relevant documents that will help you understand the transaction. Mr. Hama Dial

Re: [PATCH] PM / suspend: Count suspend-to-idle loop as sleep time

2018-09-14 Thread Mika Penttilä
On 09/14/2018 11:46 AM, Rafael J. Wysocki wrote: > On Friday, September 14, 2018 10:28:44 AM CEST Mika Penttilä wrote: >> Hi! >> >> >> On 09/14/2018 09:59 AM, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> There is a difference in behavior between suspend-to-idle and >>> suspend-to-R

Re: [PATCH v8 07/26] PM / Domains: Add genpd governor for CPUs

2018-09-14 Thread Rafael J. Wysocki
On Thursday, August 9, 2018 5:39:25 PM CEST Lorenzo Pieralisi wrote: > On Mon, Aug 06, 2018 at 11:20:59AM +0200, Rafael J. Wysocki wrote: > > [...] > > > >>> > @@ -245,6 +248,56 @@ static bool always_on_power_down_ok(struct > > >>> > dev_pm_domain *domain) > > >>> > return false; > > >>> >

[PATCH] add label interface for cache device in sysfs

2018-09-14 Thread Dongbo Cao
label interface will be called by bcache tools in user space. Signed-off-by: Dongbo Cao --- drivers/md/bcache/sysfs.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index 225b15aa..e64c718f 100644 --- a/drivers/md/bc

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Ingo Molnar
* Jiri Olsa wrote: > On Fri, Sep 14, 2018 at 11:29:10AM +0900, Namhyung Kim wrote: > > On Thu, Sep 13, 2018 at 07:10:35PM +0300, Alexey Budankov wrote: > > > Hi, > > > > Hello, > > > > > > > > On 13.09.2018 15:54, Jiri Olsa wrote: > > > > hi, > > > > sending *RFC* for threads support in perf

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Alexey Budankov
On 14.09.2018 11:28, Jiri Olsa wrote: > On Fri, Sep 14, 2018 at 10:26:53AM +0200, Jiri Olsa wrote: > > SNIP > The threaded monitoring currently can't monitor backward maps and there are probably more limitations which I haven't spotted yet. So far I tested on laptop:

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Ingo Molnar
* Namhyung Kim wrote: > > > The perf.data stays as a single file. > > I'm not sure we really need to keep it as a single file. As it's a > kind of big changes, we might consider breaking compatibility and use > a directory structure. Agreed - and to make use of the highly scalable Linux VFS

<    1   2   3   4   5   6   7   >