Re: [PATCH v6 1/7] Documentation: DT: arm: add support for sockets defining package boundaries

2019-05-30 Thread Morten Rasmussen
On Wed, May 29, 2019 at 07:39:17PM -0400, Andrew F. Davis wrote: > On 5/29/19 5:13 PM, Atish Patra wrote: > >From: Sudeep Holla > > > >The current ARM DT topology description provides the operating system > >with a topological view of the system that is based on leaf nodes > >representing either c

Re: [PATCH] samples: pidfd: Fix compile error seen if __NR_pidfd_send_signal is undefined

2019-05-30 Thread Guenter Roeck
On 5/30/19 4:43 AM, Christian Brauner wrote: On May 30, 2019 1:40:47 PM GMT+02:00, Guenter Roeck wrote: To make pidfd-metadata compile on all arches, irrespective of whether or not syscall numbers are assigned, define the syscall number to -1 if it isn't to cause the kernel to return -ENOSYS.

Re: [PATCH v2] hooks: fix a missing-check bug in selinux_sb_eat_lsm_opts()

2019-05-30 Thread Ondrej Mosnacek
On Thu, May 30, 2019 at 10:51 AM Gen Zhang wrote: > In selinux_sb_eat_lsm_opts(), 'arg' is allocated by kmemdup_nul(). It > returns NULL when fails. So 'arg' should be checked. > > Signed-off-by: Gen Zhang > Fixes: 99dbbb593fe6 ("selinux: rewrite selinux_sb_eat_lsm_opts()") > --- > diff --git a/s

Re: [PATCH 1/2] add typeof_member() macro

2019-05-30 Thread Joe Perches
On Thu, 2019-05-30 at 11:37 +, David Laight wrote: > From: Alexey Dobriyan > > Sent: 29 May 2019 20:07 > > > > Add typeof_member() macro so that types can be exctracted without > > introducing dummy variables. > > > > Signed-off-by: Alexey Dobriyan > > --- > > > > include/linux/kernel.h |

Re: [PATCH] iio: accel: add missing sensor for some 2-in-1 based ultrabooks

2019-05-30 Thread Luís Ferreira
Hi, @poettering just merged the pull request. Is it ready to go now? Sincerely, Luís Ferreira E2AB 2BF8 F3EC ABE2 E149 F2FD BC43 0831 9CE4 0B64 On Wed, 29 May 2019 at 10:57, Hans de Goede wrote: > > Hi, > > On 5/23/19 2:03 PM, Luís Ferreira wrote: > > Hi Hams, > > > > https://github.com/systemd

Re: [PATCH v2 3/3] ima: show rules with IMA_INMASK correctly

2019-05-30 Thread Mimi Zohar
On Wed, 2019-05-29 at 15:30 +0200, Roberto Sassu wrote: > Show the '^' character when a policy rule has flag IMA_INMASK. > > Fixes: 80eae209d63ac ("IMA: allow reading back the current IMA policy") > Signed-off-by: Roberto Sassu > Cc: sta...@vger.kernel.org Thanks, queued. > --- > security/inte

Re: [PATCH 1/2] dt-bindings: EDAC: add Amazon Annapurna Labs EDAC binding

2019-05-30 Thread Greg KH
On Thu, May 30, 2019 at 01:15:28PM +0300, Hanna Hawa wrote: > Signed-off-by: Hanna Hawa > --- > .../devicetree/bindings/edac/amazon-al-edac.txt | 16 > > 1 file changed, 16 insertions(+) > create mode 100644 Documentation/devicetree/bindings/edac/amazon-al-edac.txt I

Re: [PATCH] samples: pidfd: Fix compile error seen if __NR_pidfd_send_signal is undefined

2019-05-30 Thread Christian Brauner
On May 30, 2019 1:50:31 PM GMT+02:00, Guenter Roeck wrote: >On 5/30/19 4:43 AM, Christian Brauner wrote: >> On May 30, 2019 1:40:47 PM GMT+02:00, Guenter Roeck > wrote: >>> To make pidfd-metadata compile on all arches, irrespective of >whether >>> or not syscall numbers are assigned, define the sy

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-05-30 Thread Greg KH
On Thu, May 30, 2019 at 01:15:29PM +0300, Hanna Hawa wrote: > +static void al_a57_edac_cpumerrsr(void *arg) > +{ > + struct edac_device_ctl_info *edac_dev = > + (struct edac_device_ctl_info *)arg; No need for casting anything here, just assign it. Doesn't checkpatch catch this typ

Re: [PATCH] livepatch: Fix ftrace module text permissions race

2019-05-30 Thread Jessica Yu
+++ Josh Poimboeuf [29/05/19 14:02 -0500]: It's possible for livepatch and ftrace to be toggling a module's text permissions at the same time, resulting in the following panic: BUG: unable to handle page fault for address: c005b1d9 #PF: supervisor write access in kernel mode #PF: erro

Re: [PATCH 3/4] vsock/virtio: fix flush of works during the .remove()

2019-05-30 Thread Jason Wang
On 2019/5/30 下午6:10, Stefano Garzarella wrote: On Thu, May 30, 2019 at 05:46:18PM +0800, Jason Wang wrote: On 2019/5/29 下午6:58, Stefano Garzarella wrote: On Wed, May 29, 2019 at 11:22:40AM +0800, Jason Wang wrote: On 2019/5/28 下午6:56, Stefano Garzarella wrote: We flush all pending works bef

Re: [RFC] mm: Generalize notify_page_fault()

2019-05-30 Thread Anshuman Khandual
On 05/30/2019 04:36 PM, Matthew Wilcox wrote: > On Thu, May 30, 2019 at 11:25:13AM +0530, Anshuman Khandual wrote: >> Similar notify_page_fault() definitions are being used by architectures >> duplicating much of the same code. This attempts to unify them into a >> single implementation, general

Re: [PATCH v1] dmaengine: tegra-apb: Error out if DMA_PREP_INTERRUPT flag is unset

2019-05-30 Thread Jon Hunter
On 29/05/2019 22:43, Dmitry Osipenko wrote: > Apparently driver was never tested with DMA_PREP_INTERRUPT flag being > unset since it completely disables interrupt handling instead of skipping > the callbacks invocations, hence putting channel into unusable state. > > The flag is always set by al

Re: [PATCH] arm64/cpufeature: Convert hook_lock to raw_spin_lock_t in cpu_enable_ssbs()

2019-05-30 Thread Will Deacon
On Thu, May 30, 2019 at 12:30:58PM +0100, Julien Grall wrote: > cpu_enable_ssbs() is called via stop_machine() as part of the cpu_enable > callback. A spin lock is used to ensure the hook is registered before > the rest of the callback is executed. > > On -RT spin_lock() may sleep. However, all th

HELLO

2019-05-30 Thread Mr Hamza Kabore
-- Good day, Hello, my name is Hamza Kabore, I am a staff in the EcoBank International Burkina Faso, working as Bill & Exchange Manager. I discovered an abandoned sum of 12.8 million usd in my department and i want the the fund to be transferred to your account. We shall share it 50% - 50%. No r

Re: [PATCH] ptrace: restore smp_rmb() in __ptrace_may_access()

2019-05-30 Thread Oleg Nesterov
On 05/29, Jann Horn wrote: > > > (I am wondering if smp_acquire__after_ctrl_dep() could be used instead, > > just to > > make this code look more confusing) > > Uuh, I had no idea that that barrier type exists. The helper isn't > even explicitly mentioned in Documentation/memory-barriers.rst. I >

Re: [PATCHv3 00/12] perf tools: Display eBPF code in intel_pt trace

2019-05-30 Thread Jiri Olsa
On Thu, May 30, 2019 at 06:54:39PM +0800, Leo Yan wrote: > Hi Jiri, > > On Wed, May 08, 2019 at 03:19:58PM +0200, Jiri Olsa wrote: > > hi, > > this patchset adds dso support to read and display > > bpf code in intel_pt trace output. I had to change > > some of the kernel maps processing code, so h

Re: [PATCH 1/3] mm: thp: make deferred split shrinker memcg aware

2019-05-30 Thread Kirill A. Shutemov
On Tue, May 28, 2019 at 08:44:22PM +0800, Yang Shi wrote: > diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h > index bc74d6a..9ff5fab 100644 > --- a/include/linux/memcontrol.h > +++ b/include/linux/memcontrol.h > @@ -316,6 +316,12 @@ struct mem_cgroup { > struct list_head

Re: [PATCH 3/3] mm: shrinker: make shrinker not depend on memcg kmem

2019-05-30 Thread Kirill A. Shutemov
On Tue, May 28, 2019 at 08:44:24PM +0800, Yang Shi wrote: > @@ -81,6 +79,7 @@ struct shrinker { > /* Flags */ > #define SHRINKER_NUMA_AWARE (1 << 0) > #define SHRINKER_MEMCG_AWARE (1 << 1) > +#define SHRINKER_NONSLAB (1 << 3) Why 3? -- Kirill A. Shutemov

Re: [PATCH uprobe, thp 3/4] uprobe: support huge page by only splitting the pmd

2019-05-30 Thread Kirill A. Shutemov
On Wed, May 29, 2019 at 02:20:48PM -0700, Song Liu wrote: > Instead of splitting the compound page with FOLL_SPLIT, this patch allows > uprobe to only split pmd for huge pages. > > A helper function mm_address_trans_huge(mm, address) was introduced to > test whether the address in mm is pointing t

Re: [PATCH uprobe, thp 4/4] uprobe: collapse THP pmd after removing all uprobes

2019-05-30 Thread Kirill A. Shutemov
On Wed, May 29, 2019 at 02:20:49PM -0700, Song Liu wrote: > After all uprobes are removed from the huge page (with PTE pgtable), it > is possible to collapse the pmd and benefit from THP again. This patch > does the collapse. I don't think it's right way to go. We should deferred it to khugepaged.

Re: [LKP] [tcp] 8b27dae5a2: netperf.Throughput_Mbps -25.7% regression

2019-05-30 Thread Eric Dumazet
On Thu, May 30, 2019 at 3:31 AM Feng Tang wrote: > > On Wed, Apr 03, 2019 at 02:34:36PM +0800, kernel test robot wrote: > > Greeting, > > > > FYI, we noticed a -25.7% regression of netperf.Throughput_Mbps due to > > commit: > > > > > > commit: 8b27dae5a2e89a61c46c6dbc76c040c0e6d0ed4c ("tcp: add o

Re: [PATCH] IB/mlx5: Limit to 64-bit builds

2019-05-30 Thread Leon Romanovsky
On Thu, May 30, 2019 at 04:35:44AM -0700, Guenter Roeck wrote: > 32-bit builds fail with errors such as > > ERROR: "__udivdi3" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined! It is fixed in rdma-rc. https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?h=wip/jgg-for-rc&id=37eb86

Re: [PATCH] samples: pidfd: Fix compile error seen if __NR_pidfd_send_signal is undefined

2019-05-30 Thread Guenter Roeck
On 5/30/19 4:55 AM, Christian Brauner wrote: On May 30, 2019 1:50:31 PM GMT+02:00, Guenter Roeck wrote: On 5/30/19 4:43 AM, Christian Brauner wrote: On May 30, 2019 1:40:47 PM GMT+02:00, Guenter Roeck wrote: To make pidfd-metadata compile on all arches, irrespective of whether or not sysc

Re: [Xen-devel] [PATCH] xen/netfront: Remove unneeded .resume callback

2019-05-30 Thread Agarwal, Anchal
Hi Oleksandr, Hello, Anchal! On 3/29/19 1:19 AM, Anchal Agarwal wrote: [snip] Great, could you please let us know what is the progress and further plans on that, so we do not work on the same code and can coordinate our efforts somehow? Anchal, could y

Re: [PATCH] ptrace: restore smp_rmb() in __ptrace_may_access()

2019-05-30 Thread Oleg Nesterov
On 05/29, Jann Horn wrote: > > --- a/kernel/cred.c > +++ b/kernel/cred.c > @@ -450,6 +450,15 @@ int commit_creds(struct cred *new) > if (task->mm) > set_dumpable(task->mm, suid_dumpable); > task->pdeath_signal = 0; > + /* > +

Re: [PATCH] samples: pidfd: Fix compile error seen if __NR_pidfd_send_signal is undefined

2019-05-30 Thread Christian Brauner
On May 30, 2019 2:29:43 PM GMT+02:00, Guenter Roeck wrote: >On 5/30/19 4:55 AM, Christian Brauner wrote: >> On May 30, 2019 1:50:31 PM GMT+02:00, Guenter Roeck > wrote: >>> On 5/30/19 4:43 AM, Christian Brauner wrote: On May 30, 2019 1:40:47 PM GMT+02:00, Guenter Roeck >>> wrote: > To ma

Re: [PATCH] iio: accel: add missing sensor for some 2-in-1 based ultrabooks

2019-05-30 Thread Hans de Goede
Hi, On 30-05-19 13:53, Luís Ferreira wrote: Hi, @poettering just merged the pull request. Is it ready to go now? You mean the kernel patch, yes merging that now is fine with me. Regards, Hans Sincerely, Luís Ferreira E2AB 2BF8 F3EC ABE2 E149 F2FD BC43 0831 9CE4 0B64 On Wed, 29 May 201

Re: [PATCH] IB/mlx5: Limit to 64-bit builds

2019-05-30 Thread Guenter Roeck
On 5/30/19 5:22 AM, Leon Romanovsky wrote: On Thu, May 30, 2019 at 04:35:44AM -0700, Guenter Roeck wrote: 32-bit builds fail with errors such as ERROR: "__udivdi3" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined! It is fixed in rdma-rc. https://git.kernel.org/pub/scm/linux/kernel/git/rdma/r

[PATCH] x86/cpu: Add Icelake-NNPI to Intel family

2019-05-30 Thread Rajneesh Bhardwaj
Add the CPUID model number of Icelake Neural Network Processor for Deep Learning Inference (ICL-NNPI) to the Intel family list. Icelake NNPI uses model number 0x9D and this will be documented in a future version of Intel Software Development Manual. Cc: Borislav Petkov Cc: Dave Hansen Cc: Andy S

RE: [PATCH v3 2/2] Drivers: hv: Move Hyper-V clocksource code to new clocksource driver

2019-05-30 Thread Michael Kelley
From: Vitaly Kuznetsov Sent: Thursday, May 30, 2019 2:48 AM > > + /* > > +* sched_clock_register is needed on ARM64 but > > +* is a no-op on x86 > > +*/ > > + sched_clock_register(read_hv_sched_clock_msr, > > +

[PATCH] xtensa: Fix section mismatch between memblock_reserve and mem_reserve

2019-05-30 Thread Guenter Roeck
Since commit 9012d011660ea5cf2 ("compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING"), xtensa:tinyconfig fails to build with section mismatch errors. WARNING: vmlinux.o(.text.unlikely+0x68): Section mismatch in reference from the function ___pa() to the function .meminit

Re: [PATCH] perf symbols: Remove unused variable 'err'

2019-05-30 Thread Arnaldo Carvalho de Melo
Em Thu, May 30, 2019 at 05:38:01PM +0800, Leo Yan escreveu: > Variable 'err' is defined but never used in function symsrc__init(), > remove it and directly return -1 at the end of the function. Thanks, applied. - Arnaldo > Signed-off-by: Leo Yan > --- > tools/perf/util/symbol-elf.c | 3 +-- >

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-05-30 Thread hhhawa
On 5/30/19 2:57 PM, Greg KH wrote: On Thu, May 30, 2019 at 01:15:29PM +0300, Hanna Hawa wrote: +static void al_a57_edac_cpumerrsr(void *arg) +{ + struct edac_device_ctl_info *edac_dev = + (struct edac_device_ctl_info *)arg; No need for casting anything here, just assign it.

Re: [PATCH v3 00/12] Allwinner A64/H6 IR support

2019-05-30 Thread Sean Young
On Tue, May 28, 2019 at 06:14:28PM +0200, Clément Péron wrote: > Hi, > > A64 IR support series[1] pointed out that an A31 bindings should be > introduced. > > This series introduce the A31 compatible bindings, then switch it on > the already existing board. > > Finally introduce A64 and H6 suppo

Re: [PATCH -next v2] mm/hotplug: fix a null-ptr-deref during NUMA boot

2019-05-30 Thread Pingfan Liu
On Wed, May 29, 2019 at 2:20 AM Michal Hocko wrote: > > [Sorry for a late reply] > > On Thu 23-05-19 11:58:45, Pingfan Liu wrote: > > On Wed, May 22, 2019 at 7:16 PM Michal Hocko wrote: > > > > > > On Wed 22-05-19 15:12:16, Pingfan Liu wrote: > [...] > > > > But in fact, we already have for_each_

[PATCH] mm/z3fold: fix variable set but not used warnings

2019-05-30 Thread Qian Cai
The linux-next commit f41a586ddc2d ("z3fold: add inter-page compaction") introduced a few new compilation warnings. mm/z3fold.c: In function 'compact_single_buddy': mm/z3fold.c:781:16: warning: variable 'newpage' set but not used [-Wunused-but-set-variable] mm/z3fold.c:752:13: warning: variable 'b

Re: [PATCH v6 1/7] Documentation: DT: arm: add support for sockets defining package boundaries

2019-05-30 Thread Andrew F. Davis
On 5/30/19 7:51 AM, Morten Rasmussen wrote: On Wed, May 29, 2019 at 07:39:17PM -0400, Andrew F. Davis wrote: On 5/29/19 5:13 PM, Atish Patra wrote: From: Sudeep Holla The current ARM DT topology description provides the operating system with a topological view of the system that is based on l

Re: [PATCHv3 00/12] perf tools: Display eBPF code in intel_pt trace

2019-05-30 Thread Leo Yan
Hi Jiri, On Thu, May 30, 2019 at 02:07:10PM +0200, Jiri Olsa wrote: > On Thu, May 30, 2019 at 06:54:39PM +0800, Leo Yan wrote: > > Hi Jiri, > > > > On Wed, May 08, 2019 at 03:19:58PM +0200, Jiri Olsa wrote: > > > hi, > > > this patchset adds dso support to read and display > > > bpf code in intel

Re: [PATCH] time/tick-broadcast: Fix tick_broadcast_offline() lockdep complaint

2019-05-30 Thread Paul E. McKenney
On Wed, May 29, 2019 at 11:19:41AM -0700, Paul E. McKenney wrote: > On Tue, May 28, 2019 at 01:07:29PM -0700, Thomas Gleixner wrote: [ . . . ] > > What? > > > > take_cpu_down() is called from multi_cpu_stop() with interrupts disabled. > > > > So this is just papering over the fact that somethin

[PATCH] arm64: dts: rockchip: Add missing PCIe pwr amd rst configuration

2019-05-30 Thread Anand Moon
This patch add missing PCIe gpio and pinctrl for power (#PCIE_PWR) also add PCIe gpio and pinctrl for reset (#PCIE_PERST_L). Signed-off-by: Anand Moon --- Tested on Rock960 Model A --- arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi | 16 ++-- 1 file changed, 14 insertions(+), 2 del

Re: [PATCH] perf symbols: Remove unused variable 'err'

2019-05-30 Thread Leo Yan
On Thu, May 30, 2019 at 09:43:02AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, May 30, 2019 at 05:38:01PM +0800, Leo Yan escreveu: > > Variable 'err' is defined but never used in function symsrc__init(), > > remove it and directly return -1 at the end of the function. > > Thanks, applied. Th

Re: [PATCH 3/4] net: stmmac: modify default value of tx-frames

2019-05-30 Thread Andrew Lunn
On Thu, May 30, 2019 at 04:54:43PM +0800, Biao Huang wrote: > the default value of tx-frames is 25, it's too late when > passing tstamp to stack, then the ptp4l will fail: > > ptp4l -i eth0 -f gPTP.cfg -m > ptp4l: selected /dev/ptp0 as PTP clock > ptp4l: port 1: INITIALIZING to LISTENING on INITIA

Re: pselect/etc semantics

2019-05-30 Thread Eric W. Biederman
Oleg Nesterov writes: > Al, Linus, Eric, please help. > > The previous discussion was very confusing, we simply can not understand each > other. > > To me everything looks very simple and clear, but perhaps I missed something > obvious? Please correct me. If I have read this thread correctly the

Re: [PATCH -next v2] mm/hotplug: fix a null-ptr-deref during NUMA boot

2019-05-30 Thread Pingfan Liu
On Wed, May 29, 2019 at 2:21 AM Michal Hocko wrote: > > On Thu 23-05-19 12:00:46, Pingfan Liu wrote: > [...] > > > Yes, but maybe it will pay great effort on it. > > > > > And as a first step, we can find a way to fix the bug reported by me > > and the one reported by Barret > > Can we try http://

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-05-30 Thread Joe Perches
On Thu, 2019-05-30 at 15:52 +0300, hhh...@amazon.com wrote: > On 5/30/19 2:57 PM, Greg KH wrote: > > On Thu, May 30, 2019 at 01:15:29PM +0300, Hanna Hawa wrote: > > > +static void al_a57_edac_cpumerrsr(void *arg) > > > +{ > > > + struct edac_device_ctl_info *edac_dev = > > > + (struct edac_

Re: [PATCH v6 00/12] Include linux PCI docs into Sphinx TOC tree

2019-05-30 Thread Bjorn Helgaas
On Wed, May 29, 2019 at 10:01:39PM -0500, Bjorn Helgaas wrote: > On Wed, May 29, 2019 at 04:35:10PM -0600, Jonathan Corbet wrote: > > On Mon, 20 May 2019 06:10:15 + > > Changbin Du wrote: > > > > > Bjorn and Jonathan, > > > Could we consider to merge this serias now? Thanks. > > > > Somewhat

Re: pselect/etc semantics

2019-05-30 Thread Eric W. Biederman
Eric Wong writes: > Agreed... I believe cmogstored has always had a bug in the way > it uses epoll_pwait because it failed to check interrupts if: > > a) an FD is ready + interrupt > b) epoll_pwait returns 0 on interrupt > > The bug remains in userspace for a), which I will fix by adding > an in

Re: [PATCH v6 1/7] Documentation: DT: arm: add support for sockets defining package boundaries

2019-05-30 Thread Morten Rasmussen
On Thu, May 30, 2019 at 08:56:03AM -0400, Andrew F. Davis wrote: > On 5/30/19 7:51 AM, Morten Rasmussen wrote: > >On Wed, May 29, 2019 at 07:39:17PM -0400, Andrew F. Davis wrote: > >>On 5/29/19 5:13 PM, Atish Patra wrote: > >>>From: Sudeep Holla > >>> > >>>The current ARM DT topology description p

Re: [PATCH v4] perf record: collect user registers set jointly with dwarf stacks

2019-05-30 Thread Arnaldo Carvalho de Melo
Em Thu, May 30, 2019 at 11:24:49AM +0300, Alexey Budankov escreveu: > On 29.05.2019 22:25, Arnaldo Carvalho de Melo wrote: > > Em Wed, May 29, 2019 at 05:30:49PM +0300, Alexey Budankov escreveu: > > >> +++ b/tools/perf/util/evsel.c > >> +#define DWARF_REGS_MASK ((1ULL << PERF_REG_IP) | \ > >> +

Re: [PATCH v2 1/5] PCI/ATS: Add PRI support for PCIe VF devices

2019-05-30 Thread Bjorn Helgaas
On Wed, May 29, 2019 at 04:04:27PM -0700, Raj, Ashok wrote: > On Wed, May 29, 2019 at 05:57:14PM -0500, Bjorn Helgaas wrote: > > On Mon, May 06, 2019 at 10:20:03AM -0700, > > sathyanarayanan.kuppusw...@linux.intel.com wrote: > > > From: Kuppuswamy Sathyanarayanan > > > > > > > > > When IOMMU tr

Re: [PATCH v2 1/5] PCI/ATS: Add PRI support for PCIe VF devices

2019-05-30 Thread Bjorn Helgaas
On Wed, May 29, 2019 at 04:24:05PM -0700, sathyanarayanan kuppuswamy wrote: > But, regarding VF spec compliance checks, Is there any issue in having them > in enable code ? Perhaps I can change dev_err to dev_warn and not return > error if it found implementation errors. I found it useful to have t

Re: [PATCH v1 1/2] fork: add clone3

2019-05-30 Thread Szabolcs Nagy
* Christian Brauner [2019-05-29 17:22:36 +0200]: > This adds the clone3 system call. > > As mentioned several times already (cf. [7], [8]) here's the promised > patchset for clone3(). > > We recently merged the CLONE_PIDFD patchset (cf. [1]). It took the last > free flag from clone(). > > Indep

Re: [PATCH 3/3] mm: shrinker: make shrinker not depend on memcg kmem

2019-05-30 Thread Yang Shi
On 5/30/19 8:08 PM, Kirill A. Shutemov wrote: On Tue, May 28, 2019 at 08:44:24PM +0800, Yang Shi wrote: @@ -81,6 +79,7 @@ struct shrinker { /* Flags */ #define SHRINKER_NUMA_AWARE (1 << 0) #define SHRINKER_MEMCG_AWARE (1 << 1) +#define SHRINKER_NONSLAB (1 << 3) Why 3? My fau

Re: [PATCH 4.9 000/128] 4.9.180-stable review

2019-05-30 Thread Jon Hunter
On 30/05/2019 04:05, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.180 release. > There are 128 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 4.14 000/193] 4.14.123-stable review

2019-05-30 Thread Jon Hunter
On 30/05/2019 04:04, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.123 release. > There are 193 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

Re: [PATCH 4.19 000/276] 4.19.47-stable review

2019-05-30 Thread Jon Hunter
On 30/05/2019 04:02, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.47 release. > There are 276 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 5.0 000/346] 5.0.20-stable review

2019-05-30 Thread Jon Hunter
On 30/05/2019 04:01, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.0.20 release. > There are 346 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 sh

Re: [PATCH 5.1 000/405] 5.1.6-stable review

2019-05-30 Thread Jon Hunter
On 30/05/2019 03:59, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.1.6 release. > There are 405 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 sho

Re: [PATCHv3 00/12] perf tools: Display eBPF code in intel_pt trace

2019-05-30 Thread Jiri Olsa
On Thu, May 30, 2019 at 08:57:09PM +0800, Leo Yan wrote: > Hi Jiri, > > On Thu, May 30, 2019 at 02:07:10PM +0200, Jiri Olsa wrote: > > On Thu, May 30, 2019 at 06:54:39PM +0800, Leo Yan wrote: > > > Hi Jiri, > > > > > > On Wed, May 08, 2019 at 03:19:58PM +0200, Jiri Olsa wrote: > > > > hi, > > > >

[PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-05-30 Thread ufo19890607
From: yuzhoujian One can just record callchains in the kernel or user space with this new options. We can use it together with "--all-kernel" options. This two options is used just like print_stack(sys) or print_ustack(usr) for systemtap. Show below is the usage of this new option combined with

Re: [PATCH] crypto: gcm - fix cacheline sharing

2019-05-30 Thread Iuliana Prodan
On 5/30/2019 1:16 AM, Ard Biesheuvel wrote: > On Wed, 29 May 2019 at 22:27, Eric Biggers wrote: >> >> On Wed, May 29, 2019 at 08:10:56PM +0300, Iuliana Prodan wrote: >>> The generic GCM driver should ensure that whatever it passes into >>> scatterlists is safe for non-cache coherent DMA. >>> The i

Re: [PATCH 1/3] mm: thp: make deferred split shrinker memcg aware

2019-05-30 Thread Yang Shi
On 5/30/19 8:07 PM, Kirill A. Shutemov wrote: On Tue, May 28, 2019 at 08:44:22PM +0800, Yang Shi wrote: diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index bc74d6a..9ff5fab 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -316,6 +316,12 @@ str

Re: [btrfs] 2996e1f8bc: aim7.jobs-per-min -13.2% regression

2019-05-30 Thread kernel test robot
On Mon, May 27, 2019 at 01:49:14PM +0200, David Sterba wrote: > On Mon, May 27, 2019 at 05:17:19PM +0800, kernel test robot wrote: > > Greeting, > > > > FYI, we noticed a -13.2% regression of aim7.jobs-per-min due to commit: > > That's interesting and worth an investigation. This should not happe

Re: [PATCH 6/7] keys: Add a keyctl to move a key between keyrings

2019-05-30 Thread David Howells
Eric Biggers wrote: > This shows up after a few seconds of syzkaller fuzzing with a description of > KEYCTL_MOVE added: Yeah... I'm fixing that now. I've also created a bunch of tests, manpages, etc. for keyutils which I'll push when I've fixed my patches. David

Re: [PATCH 5.1 000/405] 5.1.6-stable review

2019-05-30 Thread Greg Kroah-Hartman
On Thu, May 30, 2019 at 02:23:11PM +0100, Jon Hunter wrote: > > On 30/05/2019 03:59, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.6 release. > > There are 405 patches in this series, all will be posted as a response > > to this one. If anyone has any issu

Re: [PATCH] kernel/module: Fix mem leak in module_add_modinfo_attrs

2019-05-30 Thread Yuehaibing
On 2019/5/30 19:45, Jessica Yu wrote: > +++ YueHaibing [16/05/19 00:12 +0800]: >> In module_add_modinfo_attrs if sysfs_create_file >> fails, we forget to free allocated modinfo_attrs >> and roll back the sysfs files. >> >> Fixes: 03e88ae1b13d ("[PATCH] fix module sysfs files reference counting") >>

Re: [PATCHv3 00/12] perf tools: Display eBPF code in intel_pt trace

2019-05-30 Thread Arnaldo Carvalho de Melo
Em Thu, May 30, 2019 at 08:57:09PM +0800, Leo Yan escreveu: > Hi Jiri, > > On Thu, May 30, 2019 at 02:07:10PM +0200, Jiri Olsa wrote: > > On Thu, May 30, 2019 at 06:54:39PM +0800, Leo Yan wrote: > > > Hi Jiri, > > > > > > On Wed, May 08, 2019 at 03:19:58PM +0200, Jiri Olsa wrote: > > > > hi, > >

Re: [RFC] mm: Generalize notify_page_fault()

2019-05-30 Thread Matthew Wilcox
On Thu, May 30, 2019 at 05:31:15PM +0530, Anshuman Khandual wrote: > On 05/30/2019 04:36 PM, Matthew Wilcox wrote: > > The two handle preemption differently. Why is x86 wrong and this one > > correct? > > Here it expects context to be already non-preemptible where as the proposed > generic functi

Re: [PATCH] char: hw_random: meson-rng: update with SPDX Licence identifier

2019-05-30 Thread Herbert Xu
On Mon, May 20, 2019 at 03:59:19PM +0200, Neil Armstrong wrote: > Signed-off-by: Neil Armstrong > --- > drivers/char/hw_random/meson-rng.c | 52 +- > 1 file changed, 1 insertion(+), 51 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondo

Re: [PATCH] PCI: Return error if cannot probe VF

2019-05-30 Thread Bjorn Helgaas
On Wed, May 01, 2019 at 11:00:16AM -0600, Alex Williamson wrote: > Commit 0e7df22401a3 ("PCI: Add sysfs sriov_drivers_autoprobe to control > VF driver binding") allows the user to specify that drivers for VFs of > a PF should not be probed, but it actually causes pci_device_probe() to > return succ

Re:

2019-05-30 Thread FRANCIS PILE
-- I need your partnership in $7 million US dollars transaction business to be transferred into your bank account, you will be entitled to 40% of this fund after the transaction, please indicate your interest for more details.

RE: [PATCH v3 2/2] Drivers: hv: Move Hyper-V clocksource code to new clocksource driver

2019-05-30 Thread Vitaly Kuznetsov
Michael Kelley writes: > From: Vitaly Kuznetsov Sent: Thursday, May 30, 2019 > 2:48 AM >> > + /* >> > + * sched_clock_register is needed on ARM64 but >> > + * is a no-op on x86 >> > + */ >> > + sched_clock_register(read_hv_sched_clock_msr, >> > +

Re: [PATCH] livepatch: Fix ftrace module text permissions race

2019-05-30 Thread Petr Mladek
On Wed 2019-05-29 14:02:24, Josh Poimboeuf wrote: > The above panic occurs when loading two modules at the same time with > ftrace enabled, where at least one of the modules is a livepatch module: > > CPU0 CPU1 > klp_enable_patch() > klp_init_object_loaded() >

Re: [PATCH] arm64/cpufeature: Convert hook_lock to raw_spin_lock_t in cpu_enable_ssbs()

2019-05-30 Thread Julien Grall
Hi Will, On 5/30/19 1:01 PM, Will Deacon wrote: On Thu, May 30, 2019 at 12:30:58PM +0100, Julien Grall wrote: cpu_enable_ssbs() is called via stop_machine() as part of the cpu_enable callback. A spin lock is used to ensure the hook is registered before the rest of the callback is executed. On

[PATCH 0/5] media: venus: Update clock scaling and core selection

2019-05-30 Thread Aniket Masule
In this patch series, clock scaling and core selection methods are updated. Current clock scaling and core selection methods are same for vpu4 and previous versions. Introducing load calculations using vpp cycles, which indicates the cycles required by video hardware to process each macroblock. Clo

[PATCH 1/5] media: venus: Add codec data table

2019-05-30 Thread Aniket Masule
Add vpp cycles for for different types of codec It indicates the cycles required by video hardware to process each macroblock. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/core.c | 13 + drivers/media/platform/qcom/venus/core.h | 15 +++ 2 files chan

Re: [PATCH] crypto: gcm - fix cacheline sharing

2019-05-30 Thread Herbert Xu
On Thu, May 30, 2019 at 01:45:47PM +, Iuliana Prodan wrote: > > On the current structure of caamalg, to work, iv needs to be copied > before memcpy(iv, req->iv, ivsize), from skcipher_edesc_alloc function. > For this we need edesc, but this cannot be allocated before knowing how > much memor

[PATCH 2/5] media: venus: Initialize codec data

2019-05-30 Thread Aniket Masule
Initialize the codec data with core resources. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 30 + drivers/media/platform/qcom/venus/helpers.h | 1 + drivers/media/platform/qcom/venus/vdec.c| 4 drivers/media/platform/qcom/v

[PATCH 3/5] media: venus: Update clock scaling

2019-05-30 Thread Aniket Masule
Current clock scaling calculations are same for vpu4 and previous versions. For vpu4, Clock scaling calculations are updated with cycles/mb. This helps in getting precise clock required. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 91 +++

[PATCH 4/5] media: venus: Add interface for load per core

2019-05-30 Thread Aniket Masule
Add and interface to calculate load per core. Also, add an interface to get maximum cores available with video. This interface is preparation for updating core selection. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c| 18 ++ drivers/media/platfo

[PATCH v2] kernel/module: Fix mem leak in module_add_modinfo_attrs

2019-05-30 Thread YueHaibing
In module_add_modinfo_attrs if sysfs_create_file fails, we forget to free allocated modinfo_attrs and roll back the sysfs files. Fixes: 03e88ae1b13d ("[PATCH] fix module sysfs files reference counting") Signed-off-by: YueHaibing --- v2: free from '--i' instead of 'i--' --- kernel/module.c | 16

[PATCH 5/5] media: venus: Update core selection

2019-05-30 Thread Aniket Masule
Present core assignment is static. Introduced load balancing across the cores. Load on earch core is calculated and core with minimum load is assigned to given instance. Signed-off-by: Aniket Masule --- drivers/media/platform/qcom/venus/helpers.c | 50 + drivers/media

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-05-30 Thread Aubrey Li
On Thu, May 30, 2019 at 4:36 AM Vineeth Remanan Pillai wrote: > > Third iteration of the Core-Scheduling feature. > > This version fixes mostly correctness related issues in v2 and > addresses performance issues. Also, addressed some crashes related > to cgroups and cpu hotplugging. > > We have te

Re: [PATCHv3 00/12] perf tools: Display eBPF code in intel_pt trace

2019-05-30 Thread Leo Yan
Hi Arnaldo, On Thu, May 30, 2019 at 10:36:45AM -0300, Arnaldo Carvalho de Melo wrote: [...] > One other way of testing this: > > I used perf trace's use of BPF, using: > > [root@quaco ~]# cat ~/.perfconfig > [llvm] > dump-obj = true > clang-opt = -g > [trace] > add_events =

New CephFS kernel client maintainer

2019-05-30 Thread Yan, Zheng
Hello everyone. I'd like to introduce new CephFS kernel client maintainer Jeff Layton . Jeff is a long time Linux kernel developer specializing in network file systems. He has worked on CephFS for three years. He also has made significant contributions to the kernel's NFS client and server, t

Re: [PATCH ghak90 V6 00/10] audit: implement container identifier

2019-05-30 Thread Richard Guy Briggs
On 2019-05-30 09:35, Paul Moore wrote: > On Thu, May 30, 2019 at 9:08 AM Steve Grubb wrote: > > On Wednesday, May 29, 2019 6:26:12 PM EDT Paul Moore wrote: > > > On Mon, Apr 22, 2019 at 9:49 AM Paul Moore wrote: > > > > On Mon, Apr 22, 2019 at 7:38 AM Neil Horman > > wrote: > > > > > On Mon, Apr

[PATCH net] ethtool: Check for vlan etype or vlan tci when parsing flow_rule

2019-05-30 Thread Maxime Chevallier
When parsing an ethtool flow spec to build a flow_rule, the code checks if both the vlan etype and the vlan tci are specified by the user to add a FLOW_DISSECTOR_KEY_VLAN match. However, when the user only specified a vlan etype or a vlan tci, this check silently ignores these parameters. For exa

Re: [PATCH net] ethtool: Check for vlan etype or vlan tci when parsing flow_rule

2019-05-30 Thread Pablo Neira Ayuso
On Thu, May 30, 2019 at 04:08:40PM +0200, Maxime Chevallier wrote: > When parsing an ethtool flow spec to build a flow_rule, the code checks > if both the vlan etype and the vlan tci are specified by the user to add > a FLOW_DISSECTOR_KEY_VLAN match. > > However, when the user only specified a vla

Re: [PATCH] xtensa: Fix section mismatch between memblock_reserve and mem_reserve

2019-05-30 Thread Max Filippov
Hi Guenter, On Thu, May 30, 2019 at 5:41 AM Guenter Roeck wrote: > > Since commit 9012d011660ea5cf2 ("compiler: allow all arches to enable > CONFIG_OPTIMIZE_INLINING"), xtensa:tinyconfig fails to build with section > mismatch errors. > > WARNING: vmlinux.o(.text.unlikely+0x68): Section mismatch i

Re: [PATCH] x86/mm/tlb: Do partial TLB flush when possible

2019-05-30 Thread Andy Lutomirski
On Thu, May 30, 2019 at 12:56 AM Zhenzhong Duan wrote: > > This is a small optimization to stale TLB flush, if there is one new TLB > flush, let it choose to do partial or full flush. or else, the stale > flush take over and do full flush. I think this is invalid because: > > + if (unlikel

[PATCH v6 00/19] Unify vDSOs across more architectures

2019-05-30 Thread Vincenzo Frascino
vDSO (virtual dynamic shared object) is a mechanism that the Linux kernel provides as an alternative to system calls to reduce where possible the costs in terms of cycles. This is possible because certain syscalls like gettimeofday() do not write any data and return one or more values that are stor

[PATCH v6 02/19] kernel: Define gettimeofday vdso common code

2019-05-30 Thread Vincenzo Frascino
In the last few years we assisted to an explosion of vdso implementations that mostly share similar code. Try to unify the gettimeofday vdso implementation introducing lib/vdso. The code contained in this library can ideally be reused by all the architectures avoiding, where possible, code duplica

[PATCH v6 01/19] kernel: Standardize vdso_datapage

2019-05-30 Thread Vincenzo Frascino
In an effort to unify the common code for managing the vdso library in between all the architectures that support it, this patch tries to provide a common format for the vdso datapage. As a result of this, this patch generalized the data structures in vgtod.h from x86 private includes to general i

[PATCH v6 04/19] arm64: Substitute gettimeofday with C implementation

2019-05-30 Thread Vincenzo Frascino
To take advantage of the commonly defined vdso interface for gettimeofday the architectural code requires an adaptation. Re-implement the gettimeofday vdso in C in order to use lib/vdso. With the new implementation arm64 gains support for CLOCK_BOOTTIME and CLOCK_TAI. Cc: Catalin Marinas Cc: Wi

[PATCH v6 03/19] kernel: Unify update_vsyscall implementation

2019-05-30 Thread Vincenzo Frascino
With the definition of the unified vDSO library the implementations of update_vsyscall and update_vsyscall_tz became quite similar across architectures. Define a unified implementation of this two functions in kernel/vdso and provide the bindings that can be implemented by every architecture that

[PATCH v6 05/19] arm64: Build vDSO with -ffixed-x18

2019-05-30 Thread Vincenzo Frascino
From: Peter Collingbourne The vDSO needs to be build with x18 reserved in order to accommodate userspace platform ABIs built on top of Linux that use the register to carry inter-procedural state, as provided for by the AAPCS. An example of such a platform ABI is the one that will be used by an up

[PATCH v6 09/19] lib: vdso: Add compat support

2019-05-30 Thread Vincenzo Frascino
Some 64 bit architectures have support for 32 bit applications that require a separate version of the vDSOs. Add support to the generic code for compat fallback functions. Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Vincenzo Frascino --- lib/vdso/gettimeofday.c | 4 1 file changed

[PATCH v6 07/19] arm64: compat: Expose signal related structures

2019-05-30 Thread Vincenzo Frascino
The compat signal data structures are required as part of the compat vDSO implementation in order to provide the unwinding information for the sigreturn trampolines. Expose the mentioned data structures as part of signal32.h. Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Vincenzo Frascino

[PATCH v6 12/19] arm64: compat: vDSO setup for compat layer

2019-05-30 Thread Vincenzo Frascino
If CONFIG_GENERIC_COMPAT_VDSO is enabled, compat vDSO are installed in a compat (32 bit) process instead of sigpage. Add the necessary code to setup the vDSO required pages. Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Vincenzo Frascino --- arch/arm64/kernel/vdso.c | 90

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