[PATCH v3 1/2] mm: Add an F_SEAL_FUTURE_WRITE seal to memfd

2018-10-17 Thread Joel Fernandes (Google)
Android uses ashmem for sharing memory regions. We are looking forward to migrating all usecases of ashmem to memfd so that we can possibly remove the ashmem driver in the future from staging while also benefiting from using memfd and contributing to it. Note staging drivers are also not ABI and ge

[PATCH v3 2/2] selftests/memfd: Add tests for F_SEAL_FS_WRITE seal

2018-10-17 Thread Joel Fernandes (Google)
Add tests to verify sealing memfds with the F_SEAL_FS_WRITE works as expected. Cc: dan...@google.com Cc: minc...@kernel.org Reviewed-by: John Stultz Signed-off-by: Joel Fernandes (Google) --- tools/testing/selftests/memfd/memfd_test.c | 74 ++ 1 file changed, 74 insertions(+

Re: [PATCH 2/5] mm/memory_hotplug: Create add/del_device_memory functions

2018-10-17 Thread Oscar Salvador
On Wed, Oct 17, 2018 at 11:45:50AM +0200, David Hildenbrand wrote: > Here you go ;) > > Reviewed-by: David Hildenbrand thanks! > I'm planning to look into the other patches as well, but I'll be busy > with traveling and KVM forum the next 1.5 weeks. No need to hurry, this can wait. -- Oscar

Re: [PATCH v3] mm: memcontrol: Don't flood OOM messages with no eligible task.

2018-10-17 Thread Michal Hocko
On Thu 18-10-18 11:46:50, Tetsuo Handa wrote: > Sergey Senozhatsky wrote: > > On (10/17/18 12:28), Michal Hocko wrote: > > > > Michal proposed ratelimiting dump_header() [2]. But I don't think that > > > > that patch is appropriate because that patch does not ratelimit > > > > > > > > "%s invoke

[PATCH] clk: imx7d: remove UART1 clock setting

2018-10-17 Thread Anson Huang
There is clock assignment in dtb for UART1, so setting UART1 clock in clock driver is NOT necessary. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx7d.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index adb08f6..06c105d 1

Re: [RFC PATCH 0/7] Introduce thermal pressure

2018-10-17 Thread Ingo Molnar
* Thara Gopinath wrote: > On 10/16/2018 03:33 AM, Ingo Molnar wrote: > > > > * Thara Gopinath wrote: > > > Regarding testing, basic build, boot and sanity testing have been > performed on hikey960 mainline kernel with debian file system. > Further aobench (An occlusion rendere

[PATCH v4 2/3] driver core: add deferring probe reason to devices_deferred property

2018-10-17 Thread Andrzej Hajda
/sys/kernel/debug/devices_deferred property contains list of deferred devices. This list does not contain reason why the driver deferred probe, the patch improves it. The natural place to set the reason is probe_err function introduced recently, ie. if probe_err will be called with -EPROBE_DEFER in

Re: [PATCH v2] x86: ptrace.h: Make regs_get_kernel_stack_nth() not fault on bad stack

2018-10-17 Thread Masami Hiramatsu
On Wed, 17 Oct 2018 16:59:51 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > Andy had some concerns about using regs_get_kernel_stack_nth() in a new > function regs_get_kernel_argument() as if there's any error in the stack > code, it could cause a bad memory access. To be on

Re: [RFC v4 PATCH 2/5] mm/__free_one_page: skip merge for order-0 page unless compaction failed

2018-10-17 Thread Aaron Lu
On Wed, Oct 17, 2018 at 07:03:30PM +0200, Vlastimil Babka wrote: > On 10/17/18 3:58 PM, Mel Gorman wrote: > > Again, as compaction is not guaranteed to find the pageblocks, it would > > be important to consider whether a) that matters or b) find an > > alternative way of keeping unmerged buddies on

[PATCH] clocksource: imx-gpt: add support for ARM64

2018-10-17 Thread Anson Huang
This patch allows building and compile-testing the i.MX GPT driver also for ARM64. The delay_timer is only supported on ARMv7. Signed-off-by: Anson Huang --- drivers/clocksource/Kconfig | 2 +- drivers/clocksource/timer-imx-gpt.c | 4 2 files changed, 5 insertions(+), 1 deletion(-)

Re: [PATCH 4.14 000/109] 4.14.77-stable review

2018-10-17 Thread Jon Hunter
On 16/10/2018 18:04, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.77 release. > There are 109 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. > > Responses s

Re: [PATCH V2 5/5] Tools: hv: kvp: Fix a warning of buffer overflow with gcc 8.0.1

2018-10-17 Thread Dan Carpenter
On Thu, Oct 18, 2018 at 05:09:32AM +, k...@linuxonhyperv.com wrote: > From: Dexuan Cui > > The patch fixes: > > hv_kvp_daemon.c: In function 'kvp_set_ip_info': > hv_kvp_daemon.c:1305:2: note: 'snprintf' output between 41 and 4136 bytes > into a destination of size 4096 > > The "(unsigned in

[PATCH] arm: kernel: add support for detecting armv8 cpu cache information

2018-10-17 Thread Teng Fei Fan
This patch adds support for cacheinfo on 32bit ARMv8 platform. Add support for detecting cpu cache information cpu cache information via sysfs for 32bit armv8 platform. And export to sysfs then userspace can get from /sys/devices/system/cpu/cpuX/cache. Signed-off-by: Teng Fei Fan Cc: Russell King

Re: possible deadlock in ovl_copy_up_start

2018-10-17 Thread Amir Goldstein
On Thu, Oct 18, 2018 at 7:48 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:c343db455eb3 Merge branch 'parisc-4.19-3' of git://git.ker.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=167d08ee40 > kernel config:

[tip:perf/urgent] perf tools: Stop fallbacking to kallsyms for vdso symbols lookup

2018-10-17 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: edeb0c90df3581b821a764052d185df985f8b8dc Gitweb: https://git.kernel.org/tip/edeb0c90df3581b821a764052d185df985f8b8dc Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 16 Oct 2018 17:08:29 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 17 Oct 2018 15:56:15 -0300 p

[tip:x86/urgent] x86/fpu: Fix i486 + no387 boot crash by only saving FPU registers on context switch if there is an FPU

2018-10-17 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 2224d616528194b02424c91c2ee254b3d29942c3 Gitweb: https://git.kernel.org/tip/2224d616528194b02424c91c2ee254b3d29942c3 Author: Sebastian Andrzej Siewior AuthorDate: Tue, 16 Oct 2018 22:25:25 +0200 Committer: Ingo Molnar CommitDate: Wed, 17 Oct 2018 12:30:38 +0200 x86/fpu: Fix

[tip:x86/urgent] x86/fpu: Remove second definition of fpu in __fpu__restore_sig()

2018-10-17 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 6aa676761d4c1acfa31320e55fa1f83f3fcbbc7a Gitweb: https://git.kernel.org/tip/6aa676761d4c1acfa31320e55fa1f83f3fcbbc7a Author: Sebastian Andrzej Siewior AuthorDate: Tue, 16 Oct 2018 22:25:24 +0200 Committer: Ingo Molnar CommitDate: Wed, 17 Oct 2018 12:30:31 +0200 x86/fpu: Remo

[tip:x86/urgent] x86/entry/64: Further improve paranoid_entry comments

2018-10-17 Thread tip-bot for Andy Lutomirski
Commit-ID: ae852495be365f6be433dde6629d3f0316f8efde Gitweb: https://git.kernel.org/tip/ae852495be365f6be433dde6629d3f0316f8efde Author: Andy Lutomirski AuthorDate: Sun, 14 Oct 2018 11:38:18 -0700 Committer: Ingo Molnar CommitDate: Wed, 17 Oct 2018 12:30:27 +0200 x86/entry/64: Further i

Re: [PATCH 11/11] perf tools: Stop fallbacking to kallsyms for vdso symbols lookup

2018-10-17 Thread Adrian Hunter
On 18/10/18 1:55 AM, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > David reports that: > > > Perf has this hack where it uses the kernel symbol map as a backup when > a symbol can't be found in the user's symbol table(s). I don't think this is a complete fix because it e

[tip:x86/urgent] x86/entry/32: Clear the CS high bits

2018-10-17 Thread tip-bot for Jan Kiszka
Commit-ID: 04f4f954b69526d7af8ffb8e5780f08b8a6cda2d Gitweb: https://git.kernel.org/tip/04f4f954b69526d7af8ffb8e5780f08b8a6cda2d Author: Jan Kiszka AuthorDate: Mon, 15 Oct 2018 16:09:29 +0200 Committer: Ingo Molnar CommitDate: Wed, 17 Oct 2018 12:30:20 +0200 x86/entry/32: Clear the CS h

[tip:perf/urgent] perf evsel: Store ids for events with their own cpus perf_event__synthesize_event_update_cpus

2018-10-17 Thread tip-bot for Jiri Olsa
Commit-ID: 4ab8455f8bd83298bf7f67ab9357e3b1cc765c7d Gitweb: https://git.kernel.org/tip/4ab8455f8bd83298bf7f67ab9357e3b1cc765c7d Author: Jiri Olsa AuthorDate: Wed, 3 Oct 2018 23:20:52 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 16 Oct 2018 08:18:52 -0300 perf evsel: Store

[tip:perf/urgent] perf report: Don't crash on invalid inline debug information

2018-10-17 Thread tip-bot for Milian Wolff
Commit-ID: d4046e8e17b9f378cb861982ef71c63911b5dff3 Gitweb: https://git.kernel.org/tip/d4046e8e17b9f378cb861982ef71c63911b5dff3 Author: Milian Wolff AuthorDate: Wed, 26 Sep 2018 15:52:07 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 16 Oct 2018 14:52:21 -0300 perf report:

[tip:perf/urgent] perf tools: Pass build flags to traceevent build

2018-10-17 Thread tip-bot for Jiri Olsa
Commit-ID: 298faf53200fc02af38d32715697df6e661c1257 Gitweb: https://git.kernel.org/tip/298faf53200fc02af38d32715697df6e661c1257 Author: Jiri Olsa AuthorDate: Tue, 16 Oct 2018 17:06:07 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 16 Oct 2018 14:57:59 -0300 perf tools: Pass

[tip:perf/urgent] perf cpu_map: Align cpu map synthesized events properly.

2018-10-17 Thread tip-bot for David Miller
Commit-ID: 0ed149cf5239cc6e7e65bf00f769e8f1e91076c0 Gitweb: https://git.kernel.org/tip/0ed149cf5239cc6e7e65bf00f769e8f1e91076c0 Author: David Miller AuthorDate: Thu, 11 Oct 2018 22:46:55 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 16 Oct 2018 12:30:03 -0300 perf cpu_map:

[tip:perf/urgent] perf tools: Fix tracing_path_mount proper path

2018-10-17 Thread tip-bot for Jiri Olsa
Commit-ID: c458a6206d2a8600934617ccf88ba7d3a030faba Gitweb: https://git.kernel.org/tip/c458a6206d2a8600934617ccf88ba7d3a030faba Author: Jiri Olsa AuthorDate: Tue, 16 Oct 2018 13:48:18 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 16 Oct 2018 12:27:46 -0300 perf tools: Fix

[tip:perf/urgent] perf tools: Fix use of alternatives to find JDIR

2018-10-17 Thread tip-bot for Jarod Wilson
Commit-ID: 36b8d4628d3cc8f5a748e508cce8673bc00fc63c Gitweb: https://git.kernel.org/tip/36b8d4628d3cc8f5a748e508cce8673bc00fc63c Author: Jarod Wilson AuthorDate: Thu, 6 Sep 2018 18:18:12 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 16 Oct 2018 12:06:47 -0300 perf tools: Fi

[tip:perf/urgent] Revert "perf tools: Fix PMU term format max value calculation"

2018-10-17 Thread tip-bot for Jiri Olsa
Commit-ID: 1b9caa10b31dda0866f4028e4bfb923fb6e4072f Gitweb: https://git.kernel.org/tip/1b9caa10b31dda0866f4028e4bfb923fb6e4072f Author: Jiri Olsa AuthorDate: Wed, 3 Oct 2018 09:20:46 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Oct 2018 10:48:55 -0300 Revert "perf tools

[tip:perf/urgent] perf vendor events intel: Fix wrong filter_band* values for uncore events

2018-10-17 Thread tip-bot for Jiri Olsa
Commit-ID: 94aafb74cee0002e2f2eb6dc5376f54d5951ab4d Gitweb: https://git.kernel.org/tip/94aafb74cee0002e2f2eb6dc5376f54d5951ab4d Author: Jiri Olsa AuthorDate: Wed, 10 Oct 2018 10:03:39 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 11 Oct 2018 11:13:23 -0300 perf vendor even

[tip:perf/urgent] tools arch uapi: Sync the x86 kvm.h copy

2018-10-17 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 4312f2ab136a5f1a7b247f6e4a75b95afaf9d23b Gitweb: https://git.kernel.org/tip/4312f2ab136a5f1a7b247f6e4a75b95afaf9d23b Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 8 Oct 2018 12:04:51 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 8 Oct 2018 12:04:51 -0300 too

[tip:perf/urgent] tools headers uapi: Sync kvm.h copy

2018-10-17 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 25fe15e54fe5e15b4963fe101f7cd8bad4f11393 Gitweb: https://git.kernel.org/tip/25fe15e54fe5e15b4963fe101f7cd8bad4f11393 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 8 Oct 2018 12:09:14 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 8 Oct 2018 12:09:14 -0300 too

Re: [PATCH v3] mm: memcontrol: Don't flood OOM messages with no eligible task.

2018-10-17 Thread Sergey Senozhatsky
On (10/18/18 14:26), Tetsuo Handa wrote: > Sergey Senozhatsky wrote: > > To my personal taste, "baud rate of registered and enabled consoles" > > approach is drastically more relevant than hard coded 10 * HZ or > > 60 * HZ magic numbers... But not in the form of that "min baud rate" > > brain fart,

Re: [PATCH] Staging iio/adc: fixes parenthesis alignment

2018-10-17 Thread Dan Carpenter
I feel like these are overly nit-picky... I understand that everyone is picky about different things. For example, I have a prefered style for error handling. So two days ago there was a new staging driver and it used label name like "goto kmalloc_failed;" and I looked until I found an error han

RE: [PATCH] tpm: tpm_try_transmit() refactor error flow.

2018-10-17 Thread Winkler, Tomas
> -Original Message- > From: Jarkko Sakkinen [mailto:jarkko.sakki...@linux.intel.com] > Sent: Thursday, October 18, 2018 03:15 > To: Winkler, Tomas > Cc: Jarkko Sakkinen ; Jason Gunthorpe > ; Nayna Jain ; Usyskin, > Alexander ; Struk, Tadeusz > ; linux-integr...@vger.kernel.org; linux-s

Re: [PATCH v4 0/7] AXP8x3 AC and battery power supply support

2018-10-17 Thread Vasily Khoruzhick
On Saturday, October 13, 2018 1:08:41 AM PDT Oskari Lemmela wrote: > AXP813 AC power supply support with input current and > voltage limiting support. > > AXP803 AC and battery power supply support. > > Changes in v4: > * Change order of axp20x-gpio in axp20x.c > * Fix indentation and spaces to t

Attn: Sir

2018-10-17 Thread May T. Lee
Attn: Sir, We have gone through your country’s investment profile and history and we are interested to invest in it, we will be willing to partner with you and invest a substantial amount of money in your company if you have an existing company or we can also partner with you to set up a new on

Re: [PATCH 2/7] tty: Remove trailing whitespace

2018-10-17 Thread Tobin C. Harding
On Thu, Oct 18, 2018 at 07:19:33AM +0200, Greg Kroah-Hartman wrote: > On Wed, Oct 17, 2018 at 10:21:25AM +1100, Tobin C. Harding wrote: > > From: "Tobin C. Harding" > > > > Currently files under drivers/tty/ contain trailing whitespace. This is > > easy to fix and easy to review so lets do it no

Re: [PATCH 2/4] Renames variable to fix shadow warning.

2018-10-17 Thread Ingo Molnar
* Leonardo Bras wrote: > Thanks Ingo, > On Wed, Oct 17, 2018 at 3:01 AM Ingo Molnar wrote: > > > > > > * Leonardo Brás wrote: > > > > > Renames the char variable to avoid shadowing a variable previously > > > declared on this function. > > > > > > Signed-off-by: Leonardo Brás > > > --- > > >

Re: [GIT PULL 00/11] perf/urgent fixes

2018-10-17 Thread Ingo Molnar
> Merge tag 'perf-urgent-for-mingo-4.19-20181005' of > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent > (2018-10-05 18:14:00 +0200) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/li

Re: [PATCH v3] mm: memcontrol: Don't flood OOM messages with no eligible task.

2018-10-17 Thread Tetsuo Handa
Sergey Senozhatsky wrote: > To my personal taste, "baud rate of registered and enabled consoles" > approach is drastically more relevant than hard coded 10 * HZ or > 60 * HZ magic numbers... But not in the form of that "min baud rate" > brain fart, which I have posted. I'm saying that my 60 * HZ i

Re: [PATCH] Input: pm8941-pwrkey - Add pms405 pwrkey support

2018-10-17 Thread Vinod
On 19-09-18, 18:49, Bjorn Andersson wrote: > From: Vinod Koul > > Update the binding and driver for pms405 pwrkey. Rob, Dmitry Gentle reminder for this patch... > Signed-off-by: Vinod Koul > Signed-off-by: Bjorn Andersson > --- > Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.tx

Re: Crash in msm serial on dragonboard with ftrace bootargs

2018-10-17 Thread Sai Prakash Ranjan
On 10/18/2018 8:03 AM, Steven Rostedt wrote: On Wed, 17 Oct 2018 00:36:05 +0530 Sai Prakash Ranjan wrote: On 10/17/2018 12:33 AM, Steven Rostedt wrote: On Wed, 17 Oct 2018 00:31:03 +0530 Sai Prakash Ranjan wrote: Haa seems like you are right! With "ftrace=function ftrace_filter=msm_read

[PATCH V2 4/5] Drivers: hv: kvp: Use %u to print U32

2018-10-17 Thread kys
From: Dexuan Cui I didn't find a real issue. Let's just make it consistent with the next "case REG_U64:" where %llu is used. Signed-off-by: Dexuan Cui Cc: K. Y. Srinivasan Cc: Haiyang Zhang Cc: Stephen Hemminger Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_kvp.c | 2 +- 1 file changed

[PATCH V2 0/5] Drivers: hv: Miscellaneous fixes

2018-10-17 Thread kys
From: "K. Y. Srinivasan" Miscellaneous fixes. V2: Addressed comments from Greg. Dexuan Cui (3): Drivers: hv: kvp: Fix the recent regression caused by incorrect clean-up Drivers: hv: kvp: Use %u to print U32 Tools: hv: kvp: Fix a warning of buffer overflow with gcc 8.0.1 Haiyang Zhang

Re: [PATCH 2/7] tty: Remove trailing whitespace

2018-10-17 Thread Greg Kroah-Hartman
On Wed, Oct 17, 2018 at 10:21:25AM +1100, Tobin C. Harding wrote: > From: "Tobin C. Harding" > > Currently files under drivers/tty/ contain trailing whitespace. This is > easy to fix and easy to review so lets do it now before we do other > kernel-docs cleanups. > > Signed-off-by: Tobin C. Hard

[PATCH v5 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-10-17 Thread Jianxin Pan
From: Liang Yang Add initial support for the Amlogic NAND flash controller which found in the Meson-GXBB/GXL/AXG SoCs. Signed-off-by: Liang Yang Signed-off-by: Yixun Lan Signed-off-by: Jianxin Pan --- drivers/mtd/nand/raw/Kconfig | 10 + drivers/mtd/nand/raw/Makefile |1 + dri

[PATCH V2 2/5] hv_utils: update name in struct hv_driver util_drv

2018-10-17 Thread kys
From: Haiyang Zhang The correct module name is hv_utils. This patch corrects the name in struct hv_driver util_drv. Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hv/hv_util.c b/

[PATCH V2 1/5] Drivers: hv: vmbus: Get rid of unnecessary state in hv_context

2018-10-17 Thread kys
From: "K. Y. Srinivasan" Currently we are replicating state in struct hv_context that is unnecessary - this state can be retrieved from the hypervisor. Furthermore, this is a per-cpu state that is being maintained as a global state in struct hv_context. Get rid of this state in struct hv_context.

[PATCH V2 3/5] Drivers: hv: kvp: Fix the recent regression caused by incorrect clean-up

2018-10-17 Thread kys
From: Dexuan Cui In kvp_send_key(), we do need call process_ib_ipinfo() if message->kvp_hdr.operation is KVP_OP_GET_IP_INFO, because it turns out the userland hv_kvp_daemon needs the info of operation, adapter_id and addr_family. With the incorrect fc62c3b1977d, the host can't get the VM's IP via

[PATCH V2 5/5] Tools: hv: kvp: Fix a warning of buffer overflow with gcc 8.0.1

2018-10-17 Thread kys
From: Dexuan Cui The patch fixes: hv_kvp_daemon.c: In function 'kvp_set_ip_info': hv_kvp_daemon.c:1305:2: note: 'snprintf' output between 41 and 4136 bytes into a destination of size 4096 The "(unsigned int)str_len" is to avoid: hv_kvp_daemon.c:1309:30: warning: comparison of integer expressio

[PATCH v5 0/2] mtd: rawnand: meson: add Amlogic NAND driver support

2018-10-17 Thread Jianxin Pan
These two patches try to add initial NAND driver support for Amlogic Meson SoCs, current it has been tested on GXL(p212) and AXG(s400) platform. Changes since v4 at [5]: - remove the initial default divider(CLK_DIV_MASK) in meson_nfc_clk_init() - dt-bindings: remove staus, add "rx" and "tx" c

[PATCH v5 1/2] dt-bindings: nand: meson: add Amlogic NAND controller driver

2018-10-17 Thread Jianxin Pan
From: Liang Yang Add Amlogic NAND controller dt-bindings for Meson SoC, Current this driver support GXBB/GXL/AXG platform. Signed-off-by: Liang Yang Signed-off-by: Yixun Lan Signed-off-by: Jianxin Pan --- .../devicetree/bindings/mtd/amlogic,meson-nand.txt | 60 ++ 1 file

[PATCH v5 1/3] clk: meson: add emmc sub clock phase delay driver

2018-10-17 Thread Jianxin Pan
From: Yixun Lan Export the emmc sub clock phase delay ops which will be used by the emmc sub clock driver itself. Signed-off-by: Yixun Lan Signed-off-by: Jianxin Pan --- drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/clk-phase-delay.c | 79 +

[PATCH v5 0/3] clk: meson: add a sub EMMC clock controller support

2018-10-17 Thread Jianxin Pan
This driver will add a MMC clock controller driver support. The original idea about adding a clock controller is during the discussion in the NAND driver mainline effort[1]. This driver is tested in the S400 board (AXG platform) with NAND driver. Changes since v4 [5]: - use struct parm in phase

[PATCH v5 2/3] clk: meson: add DT documentation for emmc clock controller

2018-10-17 Thread Jianxin Pan
From: Yixun Lan Document the MMC sub clock controller driver, the potential consumer of this driver is MMC or NAND. Also add four clock bindings IDs which provided by this driver. Reviewed-by: Rob Herring Signed-off-by: Yixun Lan Signed-off-by: Jianxin Pan --- .../devicetree/bindings/clock/a

[PATCH v5 3/3] clk: meson: add sub MMC clock controller driver

2018-10-17 Thread Jianxin Pan
From: Yixun Lan The patch will add a MMC clock controller driver which used by MMC or NAND, It provide a mux and divider clock, and three phase clocks - core, tx, tx. Two clocks are provided as the parent of MMC clock controller from upper layer clock controller - eg "amlogic,axg-clkc" in AXG pl

linux-next: manual merge of the kselftest tree with the kvm tree

2018-10-17 Thread Stephen Rothwell
Hi Shuah, Today's linux-next merge of the kselftest tree got a conflict in: tools/testing/selftests/kvm/dirty_log_test.c between commit: fff8dcd7b4a2 ("kvm: selftests: port dirty_log_test to aarch64") from the kvm tree and commit: cda94d9ffa0e ("selftests: kvm: Fix -Wformat warnings")

possible deadlock in ovl_copy_up_start

2018-10-17 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:c343db455eb3 Merge branch 'parisc-4.19-3' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=167d08ee40 kernel config: https://syzkaller.appspot.com/x/.config?x=b3f55cb3dfcc6c33 da

Zahlungsreferenz $4.500.000,00 USD

2018-10-17 Thread NatWest Bank Plc
Sehr geehrter Herr / Frau Ihr Fonds $4.500.000,00 USD ist hier in unserer Verwahrung, wir warten auf Ihre untenstehenden Details zur Bearbeitung Ihrer Fondsansprüche. Leiten Sie Ihre Daten unten an den Leiter der Abteilung für Auslandsüberweisungen der NatWest Bank Plc weiter; für die notariell

Re: [PATCH] pstore: Refactor compression initialization

2018-10-17 Thread Kees Cook
On Wed, Oct 17, 2018 at 9:42 PM, Sai Prakash Ranjan wrote: > On 10/18/2018 7:00 AM, Joel Fernandes wrote: > On Wed, Oct 17, 2018 at 02:41:24PM -0700, Kees Cook wrote: >>> >>> With compression initialization now separated from pstore_register(), >>> there is no longer a good reason to do compressio

Re: [PATCH] pstore: Refactor compression initialization

2018-10-17 Thread Kees Cook
On Wed, Oct 17, 2018 at 6:30 PM, Joel Fernandes wrote: > On Wed, Oct 17, 2018 at 02:41:24PM -0700, Kees Cook wrote: >> With compression initialization now separated from pstore_register(), >> there is no longer a good reason to do compression method selection >> during fs init. Instead, merge ever

Re: [PATCH] pstore: Refactor compression initialization

2018-10-17 Thread Sai Prakash Ranjan
On 10/18/2018 7:00 AM, Joel Fernandes wrote: On Wed, Oct 17, 2018 at 02:41:24PM -0700, Kees Cook wrote: With compression initialization now separated from pstore_register(), there is no longer a good reason to do compression method selection during fs init. Instead, merge everything together into

Re: in_compat_syscall() returns from kernel thread for X86_32.

2018-10-17 Thread NeilBrown
On Wed, Oct 17 2018, Andy Lutomirski wrote: > On Wed, Oct 17, 2018 at 6:48 PM NeilBrown wrote: >> >> >> Was: Re: [tip:x86/asm] x86/entry: Rename is_{ia32,x32}_task() to >> in_{ia32,x32}_syscall() >> On Tue, Apr 19 2016, tip-bot for Dmitry Safonov wrote: >> >> > Commit-ID: abfb9498ee1327f534df92

Re: Question about mmap syscall and POSIX standard on mips arch

2018-10-17 Thread Al Viro
[mips folks Cc'd] On Thu, Oct 18, 2018 at 11:26:02AM +0800, Hongzhi, Song wrote: > Hi all, > > Ltp has a POSIX teatcase about mmap, 24-2.c. > > https://github.com/linux-test-project/ltp/blob/e816127e5d8efbff5ae53e9c2292fae22f36838b/testcases/open_posix_testsuite/conformance/interfaces/mmap/24-2.

Re: [PATCH v3] mm: memcontrol: Don't flood OOM messages with no eligible task.

2018-10-17 Thread Sergey Senozhatsky
On (10/18/18 11:46), Tetsuo Handa wrote: > Sergey Senozhatsky wrote: > > > > int printk_ratelimit_interval(void) > > { > >int ret = DEFAULT_RATELIMIT_INTERVAL; > >struct tty_driver *driver = NULL; > >speed_t min_baud = MAX_INT; > > > >console_lock(); > >for

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

2018-10-17 Thread Stephen Rothwell
Hi Martin, Today's linux-next merge of the scsi-mkp tree got a conflict in: drivers/scsi/lpfc/lpfc_debugfs.c between commit: 9e210178267b ("scsi: lpfc: Synchronize access to remoteport via rport") from Linus' tree and commit: d021613ee3ac ("scsi: lpfc: Remove set but not used variables

Re: [PATCH V9 00/21] C-SKY(csky) Linux Kernel Port

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:58:46PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 4:58 AM Guo Ren wrote: > > > > This is the 9th version patchset to add the Linux kernel port for > > C-SKY(csky) based on linux-4.19-rc3. > > > > There are only a few changes between V8 patchset. Hope it could

[PATCH] hugetlbfs: dirty pages as they are added to pagecache

2018-10-17 Thread Mike Kravetz
Some test systems were experiencing negative huge page reserve counts and incorrect file block counts. This was traced to /proc/sys/vm/drop_caches removing clean pages from hugetlbfs file pagecaches. When non-hugetlbfs explicit code removes the pages, the appropriate accounting is not performed.

Re: [RFC PATCH 1/5] x86: introduce preemption disable prefix

2018-10-17 Thread Andy Lutomirski
On Wed, Oct 17, 2018 at 8:12 PM Nadav Amit wrote: > > at 6:22 PM, Andy Lutomirski wrote: > > > > >> On Oct 17, 2018, at 5:54 PM, Nadav Amit wrote: > >> > >> It is sometimes beneficial to prevent preemption for very few > >> instructions, or prevent preemption for some instructions that precede >

Re: [PATCH v3 4/6] clocksource: exynos_mct: Add arch_timer cooperation mode for ARM64

2018-10-17 Thread Chanwoo Choi
Hi Marek, On 2018년 10월 17일 22:41, Marek Szyprowski wrote: > To get ARM Architected Timers working on Samsung Exynos SoCs, one has to > first configure and enable Exynos Multi-Core Timer, because they both > share some common hardware blocks (global system counter). This patch > adds a mode of coop

Re: [PATCH v3 3/6] clocksource: exynos_mct: Refactor resources allocation

2018-10-17 Thread Chanwoo Choi
Hi Marek, I tested it for both kernel booting and cpu hotplugging on Exynos5433-based TM2 board. Reviewed-by: Chanwoo Choi Tested-by: Chanwoo Choi On 2018년 10월 17일 22:41, Marek Szyprowski wrote: > Move interrupts allocation from exynos4_timer_resources() into separate > function together with

Re: [PATCH V9 18/21] dt-bindings: csky CPU Bindings

2018-10-17 Thread Guo Ren
On Thu, Oct 18, 2018 at 11:21:30AM +0800, Guo Ren wrote: > On Wed, Oct 17, 2018 at 05:50:33PM +0200, Arnd Bergmann wrote: > > On Tue, Oct 16, 2018 at 5:30 AM Guo Ren wrote: > > > > > > This patch adds the documentation to describe that how to add cpu nodes in > > > dts for SMP. > > > > > > Signed-

Re: [PATCH V9 21/21] csky: support dword access for get_user_size()

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:44:17PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:33 AM Guo Ren wrote: > > > > Support dword access for get_user_size and redesign put_user_size with > > the same style of get_user_size. It's Ok to use xxx_user_asm_common for > > all size of variable with l

Re: [PATCH 3/4] irqchip/mbigen: add support for a MBIGEN generating SPIs

2018-10-17 Thread Yang Yingliang
Hi, Marc On 2018/10/18 0:30, Marc Zyngier wrote: On 16/10/18 10:15, Yang Yingliang wrote: Now with 5052875 ("irqchip/gic-v3: Add support for Message Based Interrupts as an MSI controller"), we can support MBIGEN to generate message based SPIs by writing GICD_SETSPIR. The first 64-pins of each

Re: [RESEND PATCH] ARM: prevent tracing IPI_CPU_BACKTRACE

2018-10-17 Thread Chunyan Zhang
On Thu, 27 Sep 2018 at 11:42, Chunyan Zhang wrote: > > From: Arnd Bergmann > > When function tracing for IPIs is enabled, we get a warning for an > overflow of the ipi_types array with the IPI_CPU_BACKTRACE type > as triggered by raise_nmi(): > > arch/arm/kernel/smp.c: In function 'raise_nmi': >

Re: [RFC PATCH 1/5] x86: introduce preemption disable prefix

2018-10-17 Thread Nadav Amit
at 8:11 PM, Nadav Amit wrote: > at 6:22 PM, Andy Lutomirski wrote: > >>> On Oct 17, 2018, at 5:54 PM, Nadav Amit wrote: >>> >>> It is sometimes beneficial to prevent preemption for very few >>> instructions, or prevent preemption for some instructions that precede >>> a branch (this latter ca

Question about mmap syscall and POSIX standard on mips arch

2018-10-17 Thread Hongzhi, Song
Hi all, Ltp has a POSIX teatcase about mmap, 24-2.c. https://github.com/linux-test-project/ltp/blob/e816127e5d8efbff5ae53e9c2292fae22f36838b/testcases/open_posix_testsuite/conformance/interfaces/mmap/24-2.c#L94 -part of code-     pa = mmap(addr, len, PROT_READ | PROT_WRITE, MAP_FIXED |

[PATCH] PCI: mediatek: Use devm_of_pci_get_host_bridge_resources() to parse DT

2018-10-17 Thread honghui.zhang
From: Honghui Zhang Use the devm_of_pci_get_host_bridge_resources() API in place of the PCI OF DT parser. Signed-off-by: Honghui Zhang --- drivers/pci/controller/pcie-mediatek.c | 109 + 1 file changed, 29 insertions(+), 80 deletions(-) diff --git a/drivers/pci

Re: [PATCH V9 18/21] dt-bindings: csky CPU Bindings

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:50:33PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:30 AM Guo Ren wrote: > > > > This patch adds the documentation to describe that how to add cpu nodes in > > dts for SMP. > > > > Signed-off-by: Guo Ren > > Cc: Rob Herring > > I don't see anything wrong,

Re: [PATCH V9 15/21] csky: Debug and Ptrace GDB

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:46:56PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:06 AM Guo Ren wrote: > > > > This patch adds arch ptrace implementation, stack dump and bug.h. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > Reviewed-by: Arnd Bergmann > > > diff --git a/arch

Re: [RFC PATCH 1/5] x86: introduce preemption disable prefix

2018-10-17 Thread Nadav Amit
at 6:22 PM, Andy Lutomirski wrote: > >> On Oct 17, 2018, at 5:54 PM, Nadav Amit wrote: >> >> It is sometimes beneficial to prevent preemption for very few >> instructions, or prevent preemption for some instructions that precede >> a branch (this latter case will be introduced in the next patc

Re: [PATCH v2 2/2] dt-bindings: uniphier: move cache-uniphier.txt to vendor directory

2018-10-17 Thread Masahiro Yamada
Hi Rob, On Thu, Oct 18, 2018 at 5:01 AM Rob Herring wrote: > > On Fri, 12 Oct 2018 13:25:24 +0900, Masahiro Yamada wrote: > > Now, the Socionext vendor directory is available at > > Documentation/devicetree/bindings/arm/socionext/ > > > > Move cache-uniphier.txt over to it. > > > > Signed-off-by

Re: [PATCH V9 13/21] csky: Library functions

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:24:36PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:02 AM Guo Ren wrote: > > > +++ b/arch/csky/lib/delay.c > > @@ -0,0 +1,39 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. > > +#include > > +#incl

Re: in_compat_syscall() returns from kernel thread for X86_32.

2018-10-17 Thread Al Viro
On Wed, Oct 17, 2018 at 07:37:42PM -0700, Andy Lutomirski wrote: > I could get on board with: > > ({WARN_ON_ONCE(current->flags & PF_KTHREAD); true}) > > The point of these accessors is to be used *in a syscall*. > > What on Earth is Lustre doing that makes it have this problem? Plays

Re: [PATCH V9 12/21] csky: ELF and module probe

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:18:49PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:02 AM Guo Ren wrote: > > > > This patch adds ELF definition and module relocate codes. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > > +#ifdef __cskyBE__ > > +#define ELF_DATA ELFDATA2MSB

Re: [PATCH v3] mm: memcontrol: Don't flood OOM messages with no eligible task.

2018-10-17 Thread Tetsuo Handa
Sergey Senozhatsky wrote: > On (10/17/18 12:28), Michal Hocko wrote: > > > Michal proposed ratelimiting dump_header() [2]. But I don't think that > > > that patch is appropriate because that patch does not ratelimit > > > > > > "%s invoked oom-killer: gfp_mask=%#x(%pGg), nodemask=%*pbl, order=%d

linux-next: manual merge of the kvm-arm tree with the kvm tree

2018-10-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: include/uapi/linux/kvm.h between commits: 214ff83d4473 ("KVM: x86: hyperv: implement PV IPI send hypercalls") 0804c849f1df ("kvm/x86 : add coalesced pio support") 57b119da3594 ("KVM: nVMX: add KVM_CAP_HYPERV_ENLIGHT

Re: [PATCH V9 11/21] csky: Atomic operations

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:17:05PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:02 AM Guo Ren wrote: > > > > This patch adds atomic, cmpxchg, spinlock files. > > > > Signed-off-by: Guo Ren > > Cc: Peter Zijlstra > > Cc: Andrea Parri > > Cc: Arnd Bergmann > > I'd wait for Peter to g

Re: [PATCH V9 10/21] csky: IRQ handling

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:14:48PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:02 AM Guo Ren wrote: > > > > This patch adds IRQ handling files. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > Cc: Thomas Gleixner > > --- > > Changelog: > > - Use CONFIG_GENERIC_IRQ_MULTI_HAN

Re: in_compat_syscall() returns from kernel thread for X86_32.

2018-10-17 Thread Andy Lutomirski
On Wed, Oct 17, 2018 at 6:48 PM NeilBrown wrote: > > > Was: Re: [tip:x86/asm] x86/entry: Rename is_{ia32,x32}_task() to > in_{ia32,x32}_syscall() > On Tue, Apr 19 2016, tip-bot for Dmitry Safonov wrote: > > > Commit-ID: abfb9498ee1327f534df92a7ecaea81a85913bae > > Gitweb: > > http://git.ker

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

2018-10-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/x86/kvm/vmx.c between commit: 5f8bb004bca4 ("KVM: vmx: hyper-v: don't pass EPT configuration info to vmx_hv_remote_flush_tlb()") from Linus' tree and commit: a5c214dad198 ("KVM/VMX: Change hv flush logic when ept

Re: [PATCH V9 08/21] csky: Process management and Signal

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:11:00PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:01 AM Guo Ren wrote: > > > > This patch adds files related to task_switch, sigcontext, signal, > > fpu context switch. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > --- > > Changelog: > > - abi

Re: [RFC][PATCH] x86: ptrace: Add function argument access API

2018-10-17 Thread Steven Rostedt
On Mon, 15 Oct 2018 23:56:46 +0900 Masami Hiramatsu wrote: > On Fri, 12 Oct 2018 15:54:39 -0400 > Steven Rostedt wrote: > > > On Fri, 12 Oct 2018 11:21:28 -0700 > > Andy Lutomirski wrote: > > > > > On Fri, Oct 12, 2018 at 9:26 AM Steven Rostedt > > > wrote: > > > > > > > > > > > > Anyon

Re: Crash in msm serial on dragonboard with ftrace bootargs

2018-10-17 Thread Steven Rostedt
On Wed, 17 Oct 2018 00:36:05 +0530 Sai Prakash Ranjan wrote: > On 10/17/2018 12:33 AM, Steven Rostedt wrote: > > On Wed, 17 Oct 2018 00:31:03 +0530 > > Sai Prakash Ranjan wrote: > > > >> Haa seems like you are right! With "ftrace=function > >> ftrace_filter=msm_read" , I can trigger the crash

Re: [PATCH v2] x86: ptrace.h: Make regs_get_kernel_stack_nth() not fault on bad stack

2018-10-17 Thread Joel Fernandes
On Wed, Oct 17, 2018 at 04:59:51PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > Andy had some concerns about using regs_get_kernel_stack_nth() in a new > function regs_get_kernel_argument() as if there's any error in the stack > code, it could cause a bad memory access. To b

Re: [PATCH] ext4: direct return when jinode allocate failed

2018-10-17 Thread Theodore Y. Ts'o
On Wed, Oct 17, 2018 at 05:28:55PM -0600, Andreas Dilger wrote: > > Looking at the patch there are two effects that it has: > - optimize a very rare case where there is an allocation failure before > locking > - return an unnecessary error if "ei->jinode" is allocated before locking > > I don't

Re: [PATCH] mm/thp: Correctly differentiate between mapped THP and PMD migration entry

2018-10-17 Thread Naoya Horiguchi
On Tue, Oct 16, 2018 at 10:31:50AM -0400, Zi Yan wrote: > On 15 Oct 2018, at 0:06, Anshuman Khandual wrote: > > > On 10/15/2018 06:23 AM, Zi Yan wrote: > >> On 12 Oct 2018, at 4:00, Anshuman Khandual wrote: > >> > >>> On 10/10/2018 06:13 PM, Zi Yan wrote: > On 10 Oct 2018, at 0:05, Anshuman K

Re: rcu: Kernel stack is corrupted in: perf_trace_rcu_dyntick

2018-10-17 Thread Steven Rostedt
On Sat, 29 Sep 2018 17:22:13 +0800 王晓东 wrote: > Hi there, > > We would like to report a kernel stack corrupted problem we identified > in the perf_trace_rcu_dyntick function of tracing events subsystem. > And the problem was founded by syzkaller. We has tested the PoC on > the lasted master bra

Re: [PATCH V9 07/21] csky: MMU and page table management

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:06:56PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:01 AM Guo Ren wrote: > > > > This patch adds files related to memory management and here is our > > memory-layout: > > > >Fixmap : 0xffc02000 – 0xf000 (4 MB - 12KB) > >Pkmap:

Re: [RFC v1 00/31] kunit: Introducing KUnit, the Linux kernel unit testing framework

2018-10-17 Thread Brendan Higgins
On Wed, Oct 17, 2018 at 4:12 PM Randy Dunlap wrote: > > On 10/16/18 4:50 PM, Brendan Higgins wrote: > > This patch set proposes KUnit, a lightweight unit testing and mocking > > framework for the Linux kernel. > > Hi, > > Just a general comment: > > Documentation/process/submitting-patches.rst say

Re: [Lkcamp] [PATCH 3/4] kbuild: Removes unnecessary shadowed local variable and optimize testing.

2018-10-17 Thread Leonardo Bras
Hello Helen, On Wed, Oct 17, 2018 at 12:06 AM Helen Koike wrote: > > Hi Leonardo, > > On 10/16/18 9:09 PM, Leonardo Brás wrote: > > Removes an unnecessary shadowed local variable (start). > > Optimize test of isdigit: > > - If isalpha returns true, isdigit will return false, so no nee

  1   2   3   4   5   6   7   8   9   >