Re: [PATCH v5 0/5] sparse_init rewrite

2018-07-15 Thread Michael Ellerman
Pavel Tatashin writes: >> About PPC64, your patchset fixes the issue as the population gets followed >> by a >> sparse_init_one_section(). >> >> It can be seen here: >> >> Before: >> >> kernel: vmemmap_populate f000..f0004000, node 0 >> kernel: * f000..f

[PATCH V7 3/5] mmc: sdhci: Export sdhci tuning function symbol

2018-07-15 Thread ernest.zhang
Export sdhci tuning function symbols which are used by other SD Host controller driver modules. Signed-off-by: ernest.zhang --- Changes in V7: Export sdhci tuning function symbols Changes in V1~V6 N/A --- drivers/mmc/host/sdhci.c | 12 drivers/mmc/host/sdhci.h | 5

[PATCH V7 5/5] mmc: sdhci: Add MSI interrupt support for O2 SD host

2018-07-15 Thread ernest.zhang
Add MSI interrupt support if the SD host device can support MSI interrupt. Signed-off-by: ernest.zhang --- Changes in V7: N/A Changes in V6: 1. Move change log to correct place. 2. Reduce unneeded pr_info prints. 3. In function sdhci_pci_o2_probe_slot, remove usin

[PATCH V7 2/5] mmc: sdhci: Change O2 Host HS200 mode clock frequency to 200MHz

2018-07-15 Thread ernest.zhang
O2 SD Host HS200 mode clock frequency current is 208MHz, should be changed to 200MHz to meet specification. Signed-off-by: ernest.zhang --- Change in V7: Change HS200 mode clock frequency from 208MHz to 200MHz to meet Specification. Change in V1~V6: N/A --- drivers/mmc/h

[PATCH V7 4/5] mmc: sdhci: Add support for O2 hardware tuning

2018-07-15 Thread ernest.zhang
Add hardware tuning function instead of software tuning because O2/Bayhub SD host controller support hardware tuning. Signed-off-by: ernest.zhang --- Changes in V7: Move V6 change item 1 to a seperate patch. Changes in V6: 1. From module 'sdhci' export the symbols 'sdhci_start_tu

[PATCH V7 1/5] mmc: sdhci: Add support for O2 eMMC HS200 mode

2018-07-15 Thread ernest.zhang
When use eMMC as boot device, the eMMC signaling voltage is tied to 1.8v fixed output voltage, bios can set o2 sd host controller PCI configuration register 0x308 bit4 to 1 to let driver skip 3.3v signaling voltage and direct use 1.8v singling voltage in eMMC initialize process. Signed-off-by: ern

[PATCH] timer: Fix coding style

2018-07-15 Thread Yi Wang
From: Yi Wang There are two tab at the end of function trigger_dyntick_cpu(), so remove one and correct indentation. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- kernel/time/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/timer.c b/kernel/time/tim

[PATCH] spi: spi-fsl-dspi: Fill actual_length when doing DMA transfer

2018-07-15 Thread Andrey Smirnov
Users of SPI device drivers may rely on 'actual_length', so it is important that information is correctly reported. One example would be spi_mem_exec_op() which will fail if 'actual_length' doesn't match requested transfer length. To fix the problem, add necessary code to populate 'actual_length'.

Re: linux-next: build failure after merge of the arm-soc tree

2018-07-15 Thread Robert Jarzmik
Olof Johansson writes: > It's a known issue due to dependencies with a driver tree. :( > > Robert, this is unfortunate. What's the dependent patches? We can pick > them up in our tree as duplicates if needed. I'd rather postpone one of the patches, as I explained in the pull request. As Stephen n

RE: [PATCH] gpio: mxc: add power management support

2018-07-15 Thread Anson Huang
Hi, Fabio Anson Huang Best Regards! > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Sunday, July 15, 2018 12:13 AM > To: Anson Huang > Cc: Linus Walleij ; open list:GPIO SUBSYSTEM > ; linux-kernel ; > dl-linux-imx > Subject: Re: [PATCH] gpio: mxc: add pow

Re: [patch -mm] mm, oom: remove oom_lock from exit_mmap

2018-07-15 Thread Michal Hocko
On Sat 14-07-18 06:18:58, Tetsuo Handa wrote: > On 2018/07/13 23:26, Michal Hocko wrote: > > On Thu 12-07-18 14:34:00, David Rientjes wrote: > > [...] > >> diff --git a/mm/oom_kill.c b/mm/oom_kill.c > >> index 0fe4087d5151..e6328cef090f 100644 > >> --- a/mm/oom_kill.c > >> +++ b/mm/oom_kill.c > >>

[PATCH V2] gpio: mxc: add power management support

2018-07-15 Thread Anson Huang
GPIO registers could lose context on i.MX7D, when enter LPSR mode, the whole SoC will be powered off except LPSR domain, GPIO banks will lose context in this case, need to restore the context after resume from LPSR mode. This patch adds GPIO save/restore for those necessary registers, and put the

[RFC PATCH v6 2/4] powerpc/fadump: Reservationless firmware assisted dump

2018-07-15 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar One of the primary issues with Firmware Assisted Dump (fadump) on Power is that it needs a large amount of memory to be reserved. On large systems with TeraBytes of memory, this reservation can be quite significant. In some cases, fadump fails if the memory reserved is in

[RFC PATCH v6 4/4] powerpc/fadump: Do not allow hot-remove memory from fadump reserved area.

2018-07-15 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar For fadump to work successfully there should not be any holes in reserved memory ranges where kernel has asked firmware to move the content of old kernel memory in event of crash. Now that fadump reserved memory is marked as movable zone, this memory area is now not protec

[RFC PATCH v6 3/4] powerpc/fadump: throw proper error message on fadump registration failure.

2018-07-15 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar fadump fails to register when there are holes in reserved memory area. This can happen if user has hot-removed a memory that falls in the fadump reserved memory area. Throw a meaningful error message to the user in such case. Signed-off-by: Mahesh Salgaonkar --- arch/po

[RFC PATCH v6 1/4] mm/page_alloc: Introduce an interface to mark reserved memory as ZONE_MOVABLE

2018-07-15 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Add an interface to allow a custom reserved memory to be marked as ZONE_MOVABLE. This will help some subsystem's to convert their reserved memory region into ZONE_MOVABLE so that the memory can still be available to user applications. The approach is based on Joonsoo Kim'

[RFC PATCH v6 0/4] powerpc/fadump: Improvements and fixes for firmware-assisted dump.

2018-07-15 Thread Mahesh J Salgaonkar
One of the primary issues with Firmware Assisted Dump (fadump) on Power is that it needs a large amount of memory to be reserved. This reserved memory is used for saving the contents of old crashed kernel's memory before fadump capture kernel uses old kernel's memory area to boot. However, This res

Re: [PATCH 3/3] clk: meson-g12a: Add EE Clock controller driver

2018-07-15 Thread Jian Hu
Hi Jerome On 2018/7/11 21:45, Jerome Brunet wrote: On Wed, 2018-07-11 at 21:41 +0800, Jian Hu wrote: +static struct clk_regmap g12a_mpll0 = { + .data = &(struct clk_regmap_gate_data){ + .offset = HHI_MPLL_CNTL1, + .bit_idx = 31, + }, + .hw.init = &(

Re: [PATCH v3 3/3] clk: qcom: Add display clock controller driver for SDM845

2018-07-15 Thread Taniya Das
Hello Stephen, On 7/13/2018 1:55 PM, spa...@codeaurora.org wrote: On 2018-07-13 01:11, Stephen Boyd wrote: Quoting Taniya Das (2018-07-12 10:21:33) ++ Display driver team, On 7/9/2018 8:36 PM, Stephen Boyd wrote: > Quoting Taniya Das (2018-07-09 02:34:07) >> >> >> On 7/9/2018 1:07 PM, Stephen

[PATCH] clk: qcom: Update SPDX headers for common files

2018-07-15 Thread Taniya Das
SPDX headers updated for common/branch/pll/regmap files. Signed-off-by: Taniya Das --- drivers/clk/qcom/clk-alpha-pll.c | 10 +- drivers/clk/qcom/clk-alpha-pll.h | 14 ++ drivers/clk/qcom/clk-branch.c| 10 +- drivers/clk/qcom/clk-branch.h| 14 ++ d

linux-next: build warning after merge of the random tree

2018-07-15 Thread Stephen Rothwell
Hi Ted, After merging the random tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: drivers/char/random.c: In function 'write_pool.constprop': drivers/char/random.c:1912:11: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized] buf[i] ^=

[PATCH] doc: livepatch: fix minor typo in shadow-vars.txt

2018-07-15 Thread Kamalesh Babulal
Fix the spelling of 'varibles' -> 'variables' in shadows->vars.txt file. Signed-off-by: Kamalesh Babulal --- Documentation/livepatch/shadow-vars.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/livepatch/shadow-vars.txt b/Documentation/livepatch/shadow-vars.

Re: [PATCH 1/3] binfmt_elf: Respect error return from `regset->active'

2018-07-15 Thread Maciej W. Rozycki
Hi Paul, > > --- linux-jhogan-test.orig/fs/binfmt_elf.c 2018-03-21 17:14:55.0 > > + > > +++ linux-jhogan-test/fs/binfmt_elf.c 2018-05-09 23:25:50.742255000 > > +0100 > > @@ -1739,7 +1739,7 @@ static int fill_thread_core_info(struct > > const struct user_regset *re

[PATCH v3 2/2] clk: qcom: gcc: Register QUPv3 RCGs for DFS on SDM845

2018-07-15 Thread Taniya Das
QUPv3 clocks support DFS and thus register the RCGs which require support for the same. Signed-off-by: Taniya Das --- drivers/clk/qcom/gcc-sdm845.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/clk/qcom/gcc-sdm845.c b/drivers/clk/qcom/gcc-sdm845.c index 0

[PATCH v3 1/2] clk: qcom: Add support for RCG to register for DFS

2018-07-15 Thread Taniya Das
Dynamic Frequency switch is a feature of clock controller by which request from peripherals allows automatic switching frequency of input clock without SW intervention. There are various performance levels associated with a root clock. When the input performance state changes, the source clocks and

[PATCH v3 0/2] clk: qcom: Add support for RCG to register for DFS

2018-07-15 Thread Taniya Das
[v3] * Rename clk_rcg2_calculate_m_and_n with clk_rcg2_calculate_freq, as this function would now calculate the frequency. * Rename dfs_freq_tbl to freq_tbl. * Remove the logic to remove duplicate frequencies. * Remove recalc_rate & set_rate clock ops. * clk_rcg2_dfs_ops clock ops is

Re: [PATCH v2 1/2] clk: qcom: Add support for RCG to register for DFS

2018-07-15 Thread Taniya Das
Hello Stephen, Thanks for your review comments. On 7/9/2018 12:34 PM, Stephen Boyd wrote: Quoting Taniya Das (2018-06-28 04:47:30) Dynamic Frequency switch is a feature of clock controller by which request from peripherals allows automatic switching frequency of input clock. There are various

Re: [PATCH v5 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-07-15 Thread Viresh Kumar
On 12-07-18, 23:35, Taniya Das wrote: > +static int qcom_cpu_resources_init(struct platform_device *pdev, > +struct device_node *np, unsigned int cpu) > +{ > + struct cpufreq_qcom *c; > + struct resource res; > + struct device *dev = &pdev->dev; > + u

Re: [PATCH v5 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-07-15 Thread Viresh Kumar
On 12-07-18, 23:35, Taniya Das wrote: > The CPUfreq HW present in some QCOM chipsets offloads the steps necessary > for changing the frequency of CPUs. The driver implements the cpufreq > driver interface for this hardware engine. > > Signed-off-by: Saravana Kannan > Signed-off-by: Taniya Das >

[PATCH] soc: imx: gpc: restrict register range for regmap access

2018-07-15 Thread Anson Huang
GPC registers are NOT continuous, some registers are reserved and accessing them from userspace will trigger external abort, add regmap register access table to avoid below abort: root@imx6slevk:~# cat /sys/kernel/debug/regmap/20dc000.gpc/registers [ 108.480477] Unhandled fault: imprecise externa

Re: [PATCH] fs: ext4: use new return type vm_fault_t

2018-07-15 Thread Souptick Joarder
On Sat, Jul 7, 2018 at 4:00 PM, Souptick Joarder wrote: > Use new return type vm_fault_t for fault handler > ext4_filemap_fault. > > Signed-off-by: Souptick Joarder Any comment on this patch ? > --- > fs/ext4/ext4.h | 2 +- > fs/ext4/inode.c | 8 > 2 files changed, 5 insertions(+), 5

Re: [PATCH 1/2] dt-bindings: thermal: Allow multiple devices to share cooling map

2018-07-15 Thread Viresh Kumar
On 05-07-18, 10:39, Viresh Kumar wrote: > Allow cooling devices sharing same trip point with same contribution > value to share the cooling map as well. Otherwise the same information > will be duplicated for each device sharing the trip point. > > Signed-off-by: Viresh Kumar > --- > Documentati

Re: [PATCH 00/10] OPP: Support multiple power-domains per device

2018-07-15 Thread Viresh Kumar
On 29-06-18, 11:49, Viresh Kumar wrote: > Hi, > > This series improves the OPP core (and a bit of genpd core as well) to > support multiple phandles in the "required-opps" property, which are > only used for multiple power-domains per device for now. > > We still don't propagate the changes to ma

Re: [PATCH v2 0/5] ASoC: core: add support to card re-bind using component framework

2018-07-15 Thread Vinod
On 13-07-18, 16:36, Srinivas Kandagatla wrote: > During discussion regarding card re-binding when components unregister > and register back at https://lkml.org/lkml/2018/7/9/785 it was suggested > that component framework can be added into core to provide this feature. > > With this new changes th

[PATCH 4/5] x86/pti: warn for unknown pti boot options

2018-07-15 Thread Jiang Biao
When using unknown pti boot options other than on/off/auto, we select auto silently, which is sometimes confusing. Add warning for unknown pti boot options like we do in spectre_v2_select_mitigation(). Signed-off-by: Jiang Biao --- arch/x86/mm/pti.c | 10 +- 1 file changed, 5 insertions(

[PATCH 1/5] x86/pti: check the return value of pti_user_pagetable_walk_p4d

2018-07-15 Thread Jiang Biao
pti_user_pagetable_walk_p4d() may return NULL, we should check the return value to avoid NULL pointer dereference. Signed-off-by: Jiang Biao --- arch/x86/mm/pti.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/x86/mm/pti.c b/arch/x86/mm/pti.c index 4d418e7..be9e5b

[PATCH 3/5] x86/pti: make pti_set_kernel_image_nonglobal static

2018-07-15 Thread Jiang Biao
pti_set_kernel_image_nonglobal() is only used in pti.c, make it static. Signed-off-by: Jiang Biao --- arch/x86/mm/pti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/mm/pti.c b/arch/x86/mm/pti.c index bb6f608..a76b2cc 100644 --- a/arch/x86/mm/pti.c +++ b/arch/x86/m

[PATCH 5/5] x86/pti: constify address parameters

2018-07-15 Thread Jiang Biao
Addresses passed in pti_user_pagetable_walk_*() are not supposed to change at runtime, make them const to aviod future slipups. Signed-off-by: Jiang Biao --- arch/x86/mm/pti.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/pti.c b/arch/x86/mm/pti.c index a3

[PATCH 2/5] x86/pti: check the return value of pti_user_pagetable_walk_pmd

2018-07-15 Thread Jiang Biao
pti_user_pagetable_walk_pmd() may return NULL, we should check the return value in pti_user_pagetable_walk_pte() to avoid NULL pointer dereference like it is checked in pti_clone_pmds(). Signed-off-by: Jiang Biao --- arch/x86/mm/pti.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) dif

[PATCH 0/5] x86/pti: small fixes and cleanups for pti

2018-07-15 Thread Jiang Biao
This is a short series of fixes and cleanups found when reading the code, no functional changes. Jiang Biao (5): x86/pti: check the return value of pti_user_pagetable_walk_p4d x86/pti: check the return value of pti_user_pagetable_walk_pmd x86/pti: make pti_set_kernel_image_nonglobal static

Re: [PATCH v4.9] PM / OPP: Update voltage in case freq == old_freq

2018-07-15 Thread Viresh Kumar
On 10-07-18, 15:59, Greg KH wrote: > On Mon, Jul 02, 2018 at 02:19:47PM +0530, Viresh Kumar wrote: > > From: Waldemar Rymarkiewicz > > > > Original commit c5c2a97b3ac7 ("PM / OPP: Update voltage in case freq == > > old_freq"). Looking for this ^^ information ? > Always give me a hint as to wha

Re: Perf JSON events mismatch with Intel SDM

2018-07-15 Thread Andi Kleen
> now need to dive in deep into the actual implementation. Simple question: is > this a bug? These are derived events from MEM_TRANS_RETIRED.LOAD_LATENCY, which is in the SDM. It's not a bug. In general the event lists used by perf are newer versions than what is in the SDM. -Andi

[PATCH] dm crypt: Convert essiv from ahash to shash

2018-07-15 Thread Kees Cook
In preparing to remove all stack VLA usage from the kernel[1], this removes the discouraged use of AHASH_REQUEST_ON_STACK in favor of the smaller SHASH_DESC_ON_STACK by converting from ahash-wrapped-shash to direct shash. The stack allocation will be made a fixed size in a later patch to the crypto

[PATCH] x86/power/64: Remove VLA usage

2018-07-15 Thread Kees Cook
In the quest to remove all stack VLA usage from the kernel[1], this removes the discouraged use of AHASH_REQUEST_ON_STACK by switching to shash directly and allocating the descriptor in heap memory (which should be fine: the tfm has already been allocated there too). [1] https://lkml.kernel.org/r

Re: [PATCH] mm: avoid bothering interrupted task when charge memcg in softirq

2018-07-15 Thread Yafang Shao
On Mon, Jul 16, 2018 at 11:09 AM, Shakeel Butt wrote: > On Sun, Jul 15, 2018 at 6:50 PM Yafang Shao wrote: >> >> On Sun, Jul 15, 2018 at 11:04 PM, Shakeel Butt wrote: >> > On Sun, Jul 15, 2018 at 1:02 AM Yafang Shao wrote: >> >> >> >> On Sun, Jul 15, 2018 at 2:34 PM, Shakeel Butt wrote: >> >>

RE: [PATCH] i2c: aspeed: Improve driver to support multi-master use cases stably

2018-07-15 Thread Gary Hsu
Hi Jae, In originally, we reserved these register bits for debug purpose. But for some error handling case, we found it is also useful to help to clarify some error conditions. So driver also can use these fields information to check something. As for how driver use these information in their co

Re: [PATCH v3 0/4] PCI: mediatek: fixup find_port, enable_msi and add pm, module support

2018-07-15 Thread Honghui Zhang
Hi, Bjorn, Lorenzo, could you kindly take a look at this serial? thanks. On Mon, 2018-07-02 at 15:57 +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > This patchset includes misc patchs: > > The first patch fixup the mtk_pcie_find_port logical which will cause system > could

WARNING: kmalloc bug in krealloc

2018-07-15 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:483d835c8189 Add linux-next specific files for 20180713 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=13689bb240 kernel config: https://syzkaller.appspot.com/x/.config?x=60e5ac2478928314 dashb

Re: [PATCH] mm: avoid bothering interrupted task when charge memcg in softirq

2018-07-15 Thread Shakeel Butt
On Sun, Jul 15, 2018 at 6:50 PM Yafang Shao wrote: > > On Sun, Jul 15, 2018 at 11:04 PM, Shakeel Butt wrote: > > On Sun, Jul 15, 2018 at 1:02 AM Yafang Shao wrote: > >> > >> On Sun, Jul 15, 2018 at 2:34 PM, Shakeel Butt wrote: > >> > On Sat, Jul 14, 2018 at 10:26 PM Yafang Shao > >> > wrote:

Re: [PATCH v1 1/2] dt-binding: bmc: Add NPCM7xx LPC BPC documentation

2018-07-15 Thread Andrew Jeffery
On Thu, 12 Jul 2018, at 05:51, Rob Herring wrote: > On Wed, Jul 04, 2018 at 12:14:26PM +0300, Tomer Maimon wrote: > > Added device tree binding documentation for Nuvoton BMC > > NPCM7xx BIOS Post Code (BPC). > > The NPCM7xx BPC monitoring two configurable I/O addresses > > written by the host on Lo

Re: [PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-07-15 Thread Paul E. McKenney
On Fri, Jul 13, 2018 at 07:58:25PM -0700, Linus Torvalds wrote: > On Fri, Jul 13, 2018 at 6:51 PM Alan Stern wrote: > > > > The point being that the scenarios under discussion in this thread all > > fall most definitely into the "Non-standard usage; you'd better know > > exactly what you're doing"

[lkp-robot] [debugobjects] 3f96d20faf: WARNING:at_kernel/locking/lockdep.c:#register_lock_class

2018-07-15 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-4.9): commit: 3f96d20fafb19e6dd869362ace53662b06e6f6c1 ("[PATCH] debugobjects: Disable lockdep tracking of debugobjects internal locks") url: https://github.com/0day-ci/linux/commits/Waiman-Long/debugobjects-Disable-lockdep-tracking-of-debugo

Re: [PATCH] x86/mtrr: don't copy out-of-bounds data in mtrr_write

2018-07-15 Thread Al Viro
On Mon, Jul 16, 2018 at 12:03:39AM +0200, Ingo Molnar wrote: > > * Jann Horn wrote: > > > - A malicious user can pass an arbitrary file to a setuid binary as > > stdin/stdout/stderr. When the setuid binary (expecting stdin/stdout to > > be something normal, like a proper file or a pipe) then ca

Re: [PATCH - revised] rhashtable: detect when object movement might have invalidated a lookup

2018-07-15 Thread Herbert Xu
On Mon, Jul 16, 2018 at 11:23:43AM +1000, NeilBrown wrote: > > kmem_cache_free() directly. For this, I need rhashtable to be safe if > an object is deleted and immediately re-inserted into the same hash > chain. This means that rcu_read_lock(); A = rhashtable_lookup(); us

Re: [PATCH v4 1/2] leds: core: Introduce generic pattern interface

2018-07-15 Thread Baolin Wang
On 14 July 2018 at 14:29, Pavel Machek wrote: > >> @@ -446,4 +455,14 @@ static inline void >> led_classdev_notify_brightness_hw_changed( >> struct led_classdev *led_cdev, enum led_brightness brightness) { } >> #endif >> >> +/** >> + * struct led_pattern - brigheness value in a pattern > >

Re: [PATCH v4 0/3] uio: fix potential crash bug

2018-07-15 Thread Xiubo Li
On 2018/7/13 4:34, Hamish Martin wrote: Hi Xiubo, Tested-by: Hamish Martin I see these were already merged into Linus' tree but I wanted to let you know that I tested v4.18-rc4 (which contains these three patches) and the issue which led to my original series is still fixed and this patch seri

Re: [V9fs-developer] [PATCH] net/9p: Fix a deadlock case in the virtio transport

2018-07-15 Thread jiangyiwen
On 2018/7/14 20:47, Dominique Martinet wrote: > jiangyiwen wrote on Sat, Jul 14, 2018: >> On 2018/7/14 17:05, Dominique Martinet wrote: >>> jiangyiwen wrote on Sat, Jul 14, 2018: When client has multiple threads that issue io requests all the time, and the server has a very good performan

Re: [PATCH] mm: avoid bothering interrupted task when charge memcg in softirq

2018-07-15 Thread Yafang Shao
On Sun, Jul 15, 2018 at 11:04 PM, Shakeel Butt wrote: > On Sun, Jul 15, 2018 at 1:02 AM Yafang Shao wrote: >> >> On Sun, Jul 15, 2018 at 2:34 PM, Shakeel Butt wrote: >> > On Sat, Jul 14, 2018 at 10:26 PM Yafang Shao wrote: >> >> >> >> On Sun, Jul 15, 2018 at 12:25 PM, Shakeel Butt >> >> wrote

Re: [PATCH] x86/mtrr: don't copy out-of-bounds data in mtrr_write

2018-07-15 Thread Linus Torvalds
On Sun, Jul 15, 2018 at 6:33 PM Jann Horn wrote: > > +Linus, Andy, Al from the other thread > > On Mon, Jul 16, 2018 at 12:03 AM Ingo Molnar wrote: > > > > BTW., a naive question: would it make sense to simply disallow 'special' > > fds to be passed to setuid binaries, and fix any user-space that

Re: [PATCH] x86/mtrr: don't copy out-of-bounds data in mtrr_write

2018-07-15 Thread Jann Horn
+Linus, Andy, Al from the other thread On Mon, Jul 16, 2018 at 12:03 AM Ingo Molnar wrote: > * Jann Horn wrote: > > > - A malicious user can pass an arbitrary file to a setuid binary as > > stdin/stdout/stderr. When the setuid binary (expecting stdin/stdout to > > be something normal, like a pr

Re: [V9fs-developer] [PATCH] net/9p/client.c: fix misuse of spin_lock_irqsave for p9_client lock

2018-07-15 Thread piaojun
Hi Dominique, On 2018/7/12 15:01, Dominique Martinet wrote: > piaojun wrote on Thu, Jul 12, 2018: >> In p9_read_work(), we use spin_lock for client->lock, but misuse >> spin_lock_irqsave for it in p9_fid_create(). As p9_client lock won't be >> locked in irq context, so spin_lock is enough. And tha

Re: [PATCH - revised] rhashtable: detect when object movement might have invalidated a lookup

2018-07-15 Thread NeilBrown
On Mon, Jul 16 2018, Herbert Xu wrote: > On Mon, Jul 16, 2018 at 09:57:11AM +1000, NeilBrown wrote: >> >> Some users of rhashtable might need to change the key >> of an object and move it to a different location in the table. >> Other users might want to allocate objects using >> SLAB_TYPESAFE_BY

Re: [PATCH 1/7] mm: allocate mm_cpumask dynamically based on nr_cpu_ids

2018-07-15 Thread Ingo Molnar
* Rik van Riel wrote: > On Mon, 2018-07-16 at 00:59 +0200, Ingo Molnar wrote: > > * Rik van Riel wrote: > > > > > The mm_struct always contains a cpumask bitmap, regardless of > > > CONFIG_CPUMASK_OFFSTACK. That means the first step can be to > > > simplify things, and simply have one bitmask

Re: [PATCH 7/7] x86,switch_mm: skip atomic operations for init_mm

2018-07-15 Thread Ingo Molnar
* Rik van Riel wrote: > On Mon, 2018-07-16 at 01:04 +0200, Ingo Molnar wrote: > > * Rik van Riel wrote: > > > > > + /* > > > + * Stop remote flushes for the previous mm. > > > + * Skip the idle task; we never send init_mm TLB > > > flushing IPIs, > > > + * b

Re: [PATCH 2/8] efi/x86: Use non-blocking SetVariable() for efi_delete_dummy_variable()

2018-07-15 Thread Ingo Molnar
* Prakhya, Sai Praneeth wrote: > > > diff --git a/arch/x86/platform/efi/quirks.c > > > b/arch/x86/platform/efi/quirks.c index 36c1f8b9f7e0..6af39dc40325 > > > 100644 > > > --- a/arch/x86/platform/efi/quirks.c > > > +++ b/arch/x86/platform/efi/quirks.c > > > @@ -105,12 +105,11 @@ early_param("ef

Re: Re: [PATCH v3 1/2] leds: core: Introduce generic pattern interface

2018-07-15 Thread David Lechner
On 07/15/2018 07:22 AM, Jacek Anaszewski wrote: On 07/15/2018 12:39 AM, Pavel Machek wrote: On Sun 2018-07-15 00:29:25, Pavel Machek wrote: On Sun 2018-07-15 00:02:57, Jacek Anaszewski wrote: Hi Pavel, On 07/14/2018 11:20 PM, Pavel Machek wrote: Hi! It also drew my attention to the issue o

Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields

2018-07-15 Thread Andrew Jeffery
Hi Alexander, I've rearranged your reply slightly :) On Sat, 14 Jul 2018, at 00:44, Alexander Amelkin wrote: > > So I'm writing this to support your position in this discussion and to > let Rob and other reviewers know that this feature is actually needed. Thanks. So to summarise some other r

Re: [PATCH - revised] rhashtable: detect when object movement might have invalidated a lookup

2018-07-15 Thread Herbert Xu
On Mon, Jul 16, 2018 at 09:57:11AM +1000, NeilBrown wrote: > > Some users of rhashtable might need to change the key > of an object and move it to a different location in the table. > Other users might want to allocate objects using > SLAB_TYPESAFE_BY_RCU which can result in the same memory alloca

Re: [PATCH/RFT 1/6] i2c: designware: use open drain for recovery GPIO

2018-07-15 Thread Phil Reid
On 14/07/2018 05:09, Wolfram Sang wrote: I2C is open drain, so set up the GPIO accordingly. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-designware-master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-designware-master.c b/drivers/i2c

Re: [PATCH 2/5] ceph: stop using current_kernel_time()

2018-07-15 Thread Yan, Zheng
The cephfs part (patch 2~5) looks good for me. Regards Yan, Zheng On Sat, Jul 14, 2018 at 4:21 AM Arnd Bergmann wrote: > > ceph_mdsc_create_request() is one of the last callers of the > deprecated current_kernel_time() as well as timespec_trunc(). > > This changes it to use the timespec64 based

[git pull] drm-fixes for 4.18-rc6 (well it was for -rc5)

2018-07-15 Thread Dave Airlie
Hi Linus, Not actually back online fully, but I've managed to find a few minutes to pull in all the fixes that were meant for rc5 but have leaked over. There are two AGP fixes in here, as well as a bunch of mostly amdgpu fixes, along with a sun4i build fix, two armada fixes and some tegra fixes,

Re: linux-next: build failure after merge of the arm-soc tree

2018-07-15 Thread Olof Johansson
On Sun, Jul 15, 2018 at 4:50 PM, Olof Johansson wrote: > On Sun, Jul 15, 2018 at 4:13 PM, Stephen Rothwell > wrote: >> Hi all, >> >> After merging the arm-soc tree, today's linux-next build (x86_64 >> allmodconfig) failed like this: >> >> sound/arm/pxa2xx-pcm-lib.c: In function '__pxa2xx_pcm_ope

WARNING in __snd_rawmidi_transmit_ack

2018-07-15 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:37b5dca2898d Merge tag 'rtc-4.18-2' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12204d6240 kernel config: https://syzkaller.appspot.com/x/.config?x=25856fac4e580aa7 da

kernel BUG at fs/userfaultfd.c:LINE! (2)

2018-07-15 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:37b5dca2898d Merge tag 'rtc-4.18-2' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12aaf3b240 kernel config: https://syzkaller.appspot.com/x/.config?x=25856fac4e580aa7 da

Re: [PATCH v4 11/14] treewide: Prepare to remove VLA usage for AHASH_REQUEST_ON_STACK

2018-07-15 Thread Herbert Xu
On Sat, Jul 14, 2018 at 07:59:09PM -0700, Kees Cook wrote: > On Sat, Jul 14, 2018 at 7:44 PM, Herbert Xu > wrote: > > On Fri, Jul 13, 2018 at 08:07:10PM -0700, Kees Cook wrote: > >> > >> On a plane today I started converting all these to shash. IIUC, it > >> just looks like this (apologies for wh

Re: [PATCH] lib/rhashtable: consider param->min_size when setting initial table size

2018-07-15 Thread Herbert Xu
On Fri, Jul 13, 2018 at 11:25:16PM -0700, Davidlohr Bueso wrote: > rhashtable_init() currently does not take into account the user-passed > min_size parameter unless param->nelem_hint is set as well. As such, > the default size (number of buckets) will always be HASH_DEFAULT_SIZE > even if the smal

Re: [PATCH 2/3] rhashtable: add rhashtable_walk_last_seen()

2018-07-15 Thread NeilBrown
On Tue, Jul 10 2018, David Miller wrote: > From: NeilBrown > Date: Fri, 06 Jul 2018 17:11:32 +1000 > >> rhashtable_walk_last_seen() returns the object returned by >> the previous rhashtable_walk_next(), providing it is still in the >> table (or was during this grace period). >> This works even if

[PATCH - revised] rhashtable: detect when object movement might have invalidated a lookup

2018-07-15 Thread NeilBrown
Some users of rhashtable might need to change the key of an object and move it to a different location in the table. Other users might want to allocate objects using SLAB_TYPESAFE_BY_RCU which can result in the same memory allocation being used for a different (type-compatible) purpose and similar

Re: [PATCH resend] rhashtable: detect when object movement might have invalidated a lookup

2018-07-15 Thread NeilBrown
On Wed, Jul 11 2018, David Miller wrote: > From: David Miller > Date: Wed, 11 Jul 2018 22:46:58 -0700 (PDT) > >> From: NeilBrown >> Date: Fri, 06 Jul 2018 17:08:35 +1000 >> >>> >>> Some users of rhashtable might need to change the key >>> of an object and move it to a different location in the

Re: linux-next: build failure after merge of the arm-soc tree

2018-07-15 Thread Olof Johansson
On Sun, Jul 15, 2018 at 4:13 PM, Stephen Rothwell wrote: > Hi all, > > After merging the arm-soc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > sound/arm/pxa2xx-pcm-lib.c: In function '__pxa2xx_pcm_open': > sound/arm/pxa2xx-pcm-lib.c:129:6: error: 'pxad_filter_fn' und

Re: [PATCH 1/7] mm: allocate mm_cpumask dynamically based on nr_cpu_ids

2018-07-15 Thread Rik van Riel
On Mon, 2018-07-16 at 00:59 +0200, Ingo Molnar wrote: > * Rik van Riel wrote: > > > The mm_struct always contains a cpumask bitmap, regardless of > > CONFIG_CPUMASK_OFFSTACK. That means the first step can be to > > simplify things, and simply have one bitmask at the end of the > > mm_struct for t

RE: [PATCH 2/8] efi/x86: Use non-blocking SetVariable() for efi_delete_dummy_variable()

2018-07-15 Thread Prakhya, Sai Praneeth
> > diff --git a/arch/x86/platform/efi/quirks.c > > b/arch/x86/platform/efi/quirks.c index 36c1f8b9f7e0..6af39dc40325 > > 100644 > > --- a/arch/x86/platform/efi/quirks.c > > +++ b/arch/x86/platform/efi/quirks.c > > @@ -105,12 +105,11 @@ early_param("efi_no_storage_paranoia", > > setup_storage_paran

Re: [PATCH 7/7] x86,switch_mm: skip atomic operations for init_mm

2018-07-15 Thread Rik van Riel
On Mon, 2018-07-16 at 01:04 +0200, Ingo Molnar wrote: > * Rik van Riel wrote: > > > + /* > > +* Stop remote flushes for the previous mm. > > +* Skip the idle task; we never send init_mm TLB > > flushing IPIs, > > +* but the bitmap manipulation can cau

[tip:efi/core] fbdev/efifb: Honour UEFI memory map attributes when mapping the FB

2018-07-15 Thread tip-bot for Ard Biesheuvel
Commit-ID: 38ac0287b7f4f3922e25fd8f81db67f2c13d16bb Gitweb: https://git.kernel.org/tip/38ac0287b7f4f3922e25fd8f81db67f2c13d16bb Author: Ard Biesheuvel AuthorDate: Wed, 11 Jul 2018 11:40:40 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:43:12 +0200 fbdev/efifb: Honour UEFI

[tip:efi/core] efi: Drop type and attribute checks in efi_mem_desc_lookup()

2018-07-15 Thread tip-bot for Ard Biesheuvel
Commit-ID: 7e1550b8f2081cccdfa9f1cf1e54cbc4d720af7f Gitweb: https://git.kernel.org/tip/7e1550b8f2081cccdfa9f1cf1e54cbc4d720af7f Author: Ard Biesheuvel AuthorDate: Wed, 11 Jul 2018 11:40:39 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:43:12 +0200 efi: Drop type and attri

[tip:efi/core] efi/libstub/arm: Add opt-in Kconfig option for the DTB loader

2018-07-15 Thread tip-bot for Ard Biesheuvel
Commit-ID: 3d7ee348aa4127a7893c11261da9b76371a970e6 Gitweb: https://git.kernel.org/tip/3d7ee348aa4127a7893c11261da9b76371a970e6 Author: Ard Biesheuvel AuthorDate: Wed, 11 Jul 2018 11:40:38 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:43:12 +0200 efi/libstub/arm: Add opt

[tip:efi/core] efi: Remove the declaration of efi_late_init() as the function is unused

2018-07-15 Thread tip-bot for Sai Praneeth
Commit-ID: f5dcc214aae29a68b37b2b4183f7171724e7b02d Gitweb: https://git.kernel.org/tip/f5dcc214aae29a68b37b2b4183f7171724e7b02d Author: Sai Praneeth AuthorDate: Wed, 11 Jul 2018 11:40:37 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:43:12 +0200 efi: Remove the declaratio

[tip:efi/core] efi/cper: Avoid using get_seconds()

2018-07-15 Thread tip-bot for Arnd Bergmann
Commit-ID: 7bb497092a34a2bbb16bad5385a0487dee18a769 Gitweb: https://git.kernel.org/tip/7bb497092a34a2bbb16bad5385a0487dee18a769 Author: Arnd Bergmann AuthorDate: Wed, 11 Jul 2018 11:40:36 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:43:12 +0200 efi/cper: Avoid using get

[tip:efi/core] efi: Use a work queue to invoke EFI Runtime Services

2018-07-15 Thread tip-bot for Sai Praneeth
Commit-ID: 3eb420e70d879ce0e6bf752accf5cdedb0a59de8 Gitweb: https://git.kernel.org/tip/3eb420e70d879ce0e6bf752accf5cdedb0a59de8 Author: Sai Praneeth AuthorDate: Wed, 11 Jul 2018 11:40:35 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:43:12 +0200 efi: Use a work queue to i

[tip:efi/core] efi/x86: Clean up the eboot code

2018-07-15 Thread tip-bot for Ingo Molnar
Commit-ID: 90a2186b7df183c2fd35f724d0d16a0c10fac9b2 Gitweb: https://git.kernel.org/tip/90a2186b7df183c2fd35f724d0d16a0c10fac9b2 Author: Ingo Molnar AuthorDate: Wed, 11 Jul 2018 11:40:33 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:43:05 +0200 efi/x86: Clean up the eboot

[tip:efi/core] efi/x86: Use non-blocking SetVariable() for efi_delete_dummy_variable()

2018-07-15 Thread tip-bot for Sai Praneeth
Commit-ID: 5a58bc1b1edc18a9edff606ec99e6f6b723975f4 Gitweb: https://git.kernel.org/tip/5a58bc1b1edc18a9edff606ec99e6f6b723975f4 Author: Sai Praneeth AuthorDate: Wed, 11 Jul 2018 11:40:34 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:43:12 +0200 efi/x86: Use non-blocking

[tip:sched/core] sched/cputime: Ensure accurate utime and stime ratio in cputime_adjust()

2018-07-15 Thread tip-bot for Xunlei Pang
Commit-ID: 8d4c00dc38a8aa30dae8402955e55e7b34e74bc8 Gitweb: https://git.kernel.org/tip/8d4c00dc38a8aa30dae8402955e55e7b34e74bc8 Author: Xunlei Pang AuthorDate: Mon, 9 Jul 2018 22:58:43 +0800 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:28:31 +0200 sched/cputime: Ensure accura

[tip:x86/build] x86/build: Remove old -funit-at-a-time GCC quirk

2018-07-15 Thread tip-bot for Masahiro Yamada
Commit-ID: bdc9c3e5ed953441a46ef3acd81c783d591c9a96 Gitweb: https://git.kernel.org/tip/bdc9c3e5ed953441a46ef3acd81c783d591c9a96 Author: Masahiro Yamada AuthorDate: Mon, 9 Jul 2018 21:07:21 +0900 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:25:10 +0200 x86/build: Remove old -f

[tip:perf/core] perf, tools: Use correct articles in comments

2018-07-15 Thread tip-bot for Tobias Tefke
Commit-ID: 788faab70d5a882693286b8d5022779559c79904 Gitweb: https://git.kernel.org/tip/788faab70d5a882693286b8d5022779559c79904 Author: Tobias Tefke AuthorDate: Mon, 9 Jul 2018 12:57:15 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:21:03 +0200 perf, tools: Use correct ar

[tip:sched/core] sched/cpufreq: Clarify sugov_get_util()

2018-07-15 Thread tip-bot for Peter Zijlstra
Commit-ID: 45f5519ec55e75af3565dd737586d3b041834f71 Gitweb: https://git.kernel.org/tip/45f5519ec55e75af3565dd737586d3b041834f71 Author: Peter Zijlstra AuthorDate: Thu, 5 Jul 2018 14:36:17 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:16:29 +0200 sched/cpufreq: Clarify su

[tip:sched/core] sched/core: Remove get_cpu() from sched_fork()

2018-07-15 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: af0fffd9300b97d8875aa745bc78e2f6fdb3c1f0 Gitweb: https://git.kernel.org/tip/af0fffd9300b97d8875aa745bc78e2f6fdb3c1f0 Author: Sebastian Andrzej Siewior AuthorDate: Fri, 6 Jul 2018 15:06:15 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:16:29 +0200 sched/core: Re

[tip:sched/core] sched/sysctl: Remove unused sched_time_avg_ms sysctl

2018-07-15 Thread tip-bot for Vincent Guittot
Commit-ID: 5fd778915ad29184a5ff8eb82d1118f6916b79e4 Gitweb: https://git.kernel.org/tip/5fd778915ad29184a5ff8eb82d1118f6916b79e4 Author: Vincent Guittot AuthorDate: Thu, 28 Jun 2018 17:45:14 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:16:29 +0200 sched/sysctl: Remove un

[tip:core/urgent] x86/asm/memcpy_mcsafe: Fix copy_to_user_mcsafe() exception handling

2018-07-15 Thread tip-bot for Dan Williams
Commit-ID: 092b31aa2048cf7561a39697974adcd147fbb27b Gitweb: https://git.kernel.org/tip/092b31aa2048cf7561a39697974adcd147fbb27b Author: Dan Williams AuthorDate: Sun, 8 Jul 2018 13:46:17 -0700 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:05:05 +0200 x86/asm/memcpy_mcsafe: Fix

[tip:sched/core] sched/core: Remove the rt_avg code

2018-07-15 Thread tip-bot for Vincent Guittot
Commit-ID: bbb62c0b024a1c721232667fa1d625cf6b3a555b Gitweb: https://git.kernel.org/tip/bbb62c0b024a1c721232667fa1d625cf6b3a555b Author: Vincent Guittot AuthorDate: Thu, 28 Jun 2018 17:45:13 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:16:29 +0200 sched/core: Remove the

[tip:sched/core] sched/core: Use PELT for scale_rt_capacity()

2018-07-15 Thread tip-bot for Vincent Guittot
Commit-ID: 523e979d31648112bad07f427c183525c0258c75 Gitweb: https://git.kernel.org/tip/523e979d31648112bad07f427c183525c0258c75 Author: Vincent Guittot AuthorDate: Thu, 28 Jun 2018 17:45:12 +0200 Committer: Ingo Molnar CommitDate: Mon, 16 Jul 2018 00:16:25 +0200 sched/core: Use PELT fo

  1   2   3   >