[RFC v1 14/14] krsi: Pin arg pages only when needed

2019-09-10 Thread KP Singh
From: KP Singh Adds a callback which is called when a new program is attached to a hook. The callback registered by the process_exection hook checks if a program that has calls to a helper that requires pages to be pinned (eg. krsi_get_env_var). Signed-off-by: KP Singh ---

[RFC v1 05/14] krsi: Initialize KRSI hooks and create files in securityfs

2019-09-10 Thread KP Singh
From: KP Singh The LSM creates files in securityfs for each hook registered with the LSM. /sys/kernel/security/bpf/ The initialization of the hooks is done collectively in an internal header "hooks.h" which results in: * Creation of a file for the hook in the securityfs. * Allocation of a

[RFC v1 07/14] krsi: Check for premissions on eBPF attachment

2019-09-10 Thread KP Singh
From: KP Singh Add validation checks for the attachment of eBPF programs. The following permissions are required: - CAP_SYS_ADMIN to load eBPF programs - CAP_MAC_ADMIN (to update the policy of an LSM) - The securityfs file being a KRSI hook and writable (O_RDWR) Signed-off-by: KP Singh ---

[RFC v1 10/14] krsi: Handle attachment of the same program

2019-09-10 Thread KP Singh
From: KP Singh Allow the userspace to attach a newer version of a program without having duplicates of the same program. If BPF_F_ALLOW_OVERRIDE is passed, the attachment logic compares the name of the new program to the names of existing attached programs. The names are only compared till a

[RFC v1 11/14] krsi: Pin argument pages in bprm_check_security hook

2019-09-10 Thread KP Singh
From: KP Singh Pin the memory allocated to the the argv + envv for the new process and passes it in the context to the eBPF programs attached to the hook. The get_user_pages_remote cannot be called from an eBPF helper because the helpers run in atomic context and the get_user_pages_remote

Re: Linux 5.3-rc8

2019-09-10 Thread Theodore Y. Ts'o
On Tue, Sep 10, 2019 at 06:21:07AM +0200, Ahmed S. Darwish wrote: > > The commit b03755ad6f33 (ext4: make __ext4_get_inode_loc plug), [1] > which was merged in v5.3-rc1, *always* leads to a blocked boot on my > system due to low entropy. > > The hardware is not a VM: it's a Thinkpad E480

[RFC v1 00/14] Kernel Runtime Security Instrumentation

2019-09-10 Thread KP Singh
From: KP Singh # Motivation Signaling and mitigation are two key aspects of security which go hand-in-hand. Signals provide the necessary context to narrow down a malicious actor and are key to creating effective MAC policies to mitigate/prevent the malicious actor. One can obtain signals

[RFC v1 01/14] krsi: Add a skeleton and config options for the KRSI LSM

2019-09-10 Thread KP Singh
From: KP Singh The LSM can be enabled by: - Enabling CONFIG_SECURITY_KRSI. - Adding "krsi" to the CONFIG_LSM string. Signed-off-by: KP Singh --- MAINTAINERS| 5 + security/Kconfig | 1 + security/Makefile | 2 ++ security/krsi/Kconfig | 22

Re: [GIT PULL] ipc: fix regressions from y2038 patches

2019-09-10 Thread pr-tracker-bot
The pull request you sent on Tue, 10 Sep 2019 11:49:00 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git > tags/ipc-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3120b9a6a3f7487f96af7bd634ec49c87ef712ab Thank you! -- Deet-doot-dot,

Re: [PATCH v2 0/2] mm/kasan: dump alloc/free stack for page allocator

2019-09-10 Thread Vlastimil Babka
On 9/10/19 12:50 PM, Andrey Ryabinin wrote: For slab objects we memorize both alloc and free stacks. You'll never know in advance what information will be usefull to fix an issue, so it usually better to provide more information. I don't think we should do anything different for pages.

Re: [PATCH v2 1/4] x86/mce: Add Zhaoxin MCE support

2019-09-10 Thread Borislav Petkov
On Tue, Sep 10, 2019 at 08:19:08AM +, Tony W Wang-oc wrote: > All Zhaoxin newer CPUs support MCE that compatible with Intel's > "Machine-Check Architecture", so add support for Zhaoxin MCE in > mce/core.c. > > Signed-off-by: Tony W Wang-oc > --- > arch/x86/kernel/cpu/mce/core.c | 30

Re: [PATCH] clk: imx: lpcg: write twice when writing lpcg regs

2019-09-10 Thread Daniel Baluta
On Tue, Sep 10, 2019 at 1:40 PM Anson Huang wrote: > > > > > On Sat, Sep 7, 2019 at 9:47 PM Stephen Boyd wrote: > > > > > > Quoting Peng Fan (2019-08-27 01:17:50) > > > > From: Peng Fan > > > > > > > > There is hardware issue that: > > > > The output clock the LPCG cell will not turn back on as

[PATCH 0/3] dmaengine: Support for DMA domain controllers

2019-09-10 Thread Peter Ujfalusi
Hi, Changes since RFC: - Extended the binding document's example - Changed the API to dma_request_chan_by_domain(dev, mask) - Fixed certain crash if the dev parameter would be NULL - Add missing parenthesis in of_dma.c - typo fix. More and more SoC have more than one DMA controller integrated.

[PATCH 3/3] dmaengine: Support for requesting channels preferring DMA domain controller

2019-09-10 Thread Peter Ujfalusi
In case the channel is not requested via the slave API, use the of_find_dma_domain() to see if a system default DMA controller is specified. Add new function which can be used by clients to request channels by mask from their DMA domain controller if specified. Client drivers can take advantage

[PATCH 2/3] dmaengine: of_dma: Function to look up the DMA domain of a client

2019-09-10 Thread Peter Ujfalusi
Find the DMA domain controller of the client device by iterating up in device tree looking for the closest 'dma-domain-controller' property. If the client's node is not provided then check the DT root for the controller. Signed-off-by: Peter Ujfalusi --- drivers/dma/of-dma.c | 42

[PATCH 1/3] dt-bindings: dma: Add documentation for DMA domains

2019-09-10 Thread Peter Ujfalusi
On systems where multiple DMA controllers available, non Slave (for example memcpy operation) users can not be described in DT as there is no device involved from the DMA controller's point of view, DMA binding is not usable. However in these systems still a peripheral might need to be serviced by

Re: [RESEND PATCH] MAINTAINERS: keys: Update path to trusted.h

2019-09-10 Thread Denis Efremov
Hi, On 8/16/19 9:58 PM, Jarkko Sakkinen wrote: > On Fri, Aug 16, 2019 at 01:12:00AM +0300, Denis Efremov wrote: >> Update MAINTAINERS record to reflect that trusted.h >> was moved to a different directory in commit 22447981fc05 >> ("KEYS: Move trusted.h to include/keys [ver #2]"). >> >> Cc: Denis

[PATCH 2/2] powerpc/kexec: move kexec files into a dedicated subdir.

2019-09-10 Thread Christophe Leroy
arch/powerpc/kernel/ contains 7 files dedicated to kexec. Move them into a dedicated subdirectory. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/Makefile | 16 +--- arch/powerpc/kernel/kexec/Makefile | 22 ++

[PATCH 1/2] powerpc/32: Split kexec low level code out of misc_32.S

2019-09-10 Thread Christophe Leroy
Almost half of misc_32.S is dedicated to kexec. Drop it into a dedicated kexec_32.S Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/Makefile | 1 + arch/powerpc/kernel/kexec_32.S | 500 + arch/powerpc/kernel/misc_32.S | 491

Re: [RESEND PATCH] MAINTAINERS: Update path to physmap-versatile.c

2019-09-10 Thread Denis Efremov
Hi, On 8/13/19 10:20 AM, Linus Walleij wrote: > On Tue, Aug 13, 2019 at 8:33 AM Denis Efremov wrote: > >> Update MAINTAINERS record to reflect the filename change >> from physmap_of_versatile.c to physmap-versatile.c >> >> Cc: Boris Brezillon >> Cc: Ricardo Ribalda Delgado >> Cc: Linus

[PATCH v2 1/3] dt-bindings: dmaengine: dma-common: Change dma-channel-mask to uint32-array

2019-09-10 Thread Peter Ujfalusi
Make the dma-channel-mask to be usable for controllers with more than 32 channels. Signed-off-by: Peter Ujfalusi --- Documentation/devicetree/bindings/dma/dma-common.yaml | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH v2 3/3] dmaengine: ti: edma: Add support for handling reserved channels

2019-09-10 Thread Peter Ujfalusi
Like paRAM slots, channels could be used by other cores and in this case we need to make sure that the driver do not alter these channels. Handle the generic dma-channel-mask property to mark channels in a bitmap which can not be used by Linux and convert the legacy rsv_chans if it is provided by

[PATCH v2 0/3] dmaengine: bindings/edma: dma-channel-mask to array

2019-09-10 Thread Peter Ujfalusi
Hi, Changes since v1: - Extend the common dma-channel-mask to uint32-array to be usable for controllers with more than 32 channels - Use the dma-channel-mask instead custom property for available channels for EDMA. The original patch was part of the EDMA multicore usage series. Rob: I'm not

[PATCH v2 2/3] dt-bindings: dma: ti-edma: Document dma-channel-mask for EDMA

2019-09-10 Thread Peter Ujfalusi
Similarly to paRAM slots, channels can be used by other cores. The common dma-channel-mask property can be used for specifying the available channels. Signed-off-by: Peter Ujfalusi --- Documentation/devicetree/bindings/dma/ti-edma.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [PATCH] Staging: wlan-ng: parenthesis at end of line fix

2019-09-10 Thread Dan Carpenter
On Sat, Sep 07, 2019 at 10:57:20PM +0200, Sandro Volery wrote: > Fixed open parenthesis at the end of the line on line 327. > > Signed-off-by: Sandro Volery > --- > drivers/staging/wlan-ng/cfg80211.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH v5 4/4] backlight: add led-backlight driver

2019-09-10 Thread Daniel Thompson
On Tue, Sep 10, 2019 at 01:38:18PM +0200, Jean-Jacques Hiblot wrote: > > On 10/09/2019 13:26, Daniel Thompson wrote: > > > > > endmenu > > > diff --git a/drivers/video/backlight/Makefile > > > b/drivers/video/backlight/Makefile > > > index 63c507c07437..2a67642966a5 100644 > > > ---

Re: [PATCH] tas2770: add tas2770 smart PA dt bindings

2019-09-10 Thread Mark Brown
On Fri, Sep 06, 2019 at 03:06:03PM +0800, shifu0...@thundersoft.com wrote: > + - ti,left-slot: - Sets TDM RX left time slots. > + - ti,right-slot: - Sets TDM RX right time slots. This looks like it's duplicating things that are normally done with the set_tdm_slot() callback. Otherwise the

Re: [PATCH v5 4/4] backlight: add led-backlight driver

2019-09-10 Thread Jean-Jacques Hiblot
On 10/09/2019 13:26, Daniel Thompson wrote: endmenu diff --git a/drivers/video/backlight/Makefile b/drivers/video/backlight/Makefile index 63c507c07437..2a67642966a5 100644 --- a/drivers/video/backlight/Makefile +++ b/drivers/video/backlight/Makefile @@ -57,3 +57,4 @@

Re: [PATCH 03/12] media: hantro: Fix H264 motion vector buffer offset

2019-09-10 Thread Ezequiel Garcia
A few more comments... On Sun, 2019-09-01 at 12:45 +, Jonas Karlman wrote: > A decoded 8-bit 4:2:0 frame need memory for up to 448 macroblocks > and is laid out in memory as follow: > > +---+ > > Y-plane 256 MBs | > +---+ > > UV-plane 128 MBs | >

Re: Linux 5.3-rc8

2019-09-10 Thread Linus Torvalds
On Tue, Sep 10, 2019 at 5:21 AM Ahmed S. Darwish wrote: > > The commit b03755ad6f33 (ext4: make __ext4_get_inode_loc plug), [1] > which was merged in v5.3-rc1, *always* leads to a blocked boot on my > system due to low entropy. Exactly what is it that blocks on entropy? Nobody should do that

Re: [PATCH] mips: sgi-ip27: switch from DISCONTIGMEM to SPARSEMEM

2019-09-10 Thread Mike Rapoport
On Mon, Sep 09, 2019 at 06:22:42PM +0200, Thomas Bogendoerfer wrote: > On Fri, 6 Sep 2019 16:02:24 +0300 > Mike Rapoport wrote: > > > I suspect that unaligned access comes from __page_to_pfn, can you please > > check what scripts/fadd2line reports for kernel_init_free_pages+0xcc/0x138? > >

[PATCH] ipv6: Fix the link time qualifier of 'ping_v6_proc_exit_net()'

2019-09-10 Thread Christophe JAILLET
The '.exit' functions from 'pernet_operations' structure should be marked as __net_exit, not __net_init. Fixes: d862e5461423 ("net: ipv6: Implement /proc/net/icmp6.") Signed-off-by: Christophe JAILLET --- Untested, but using __net_exit looks consistent with other pernet_operations.exit use case.

Re: [PATCH v5 3/4] dt-bindings: backlight: Add led-backlight binding

2019-09-10 Thread Daniel Thompson
On Tue, Sep 10, 2019 at 12:59:45PM +0200, Jean-Jacques Hiblot wrote: > Add DT binding for led-backlight. > > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Daniel Thompson > --- > .../bindings/leds/backlight/led-backlight.txt | 28 +++ > 1 file changed, 28 insertions(+) >

Re: [PATCH v2] Staging: gasket: Use temporaries to reduce line length.

2019-09-10 Thread Dan Carpenter
On Tue, Sep 10, 2019 at 07:11:26AM +0200, Sandro Volery LKML wrote: > Wow... I checked, compiled and still sent the wrong thing again. I'm > gonna have to give this up soon if i can't get it right. > The mistake was using gasket_page_table_num_simple_entries() instead of

I NEED YOUR URGENT ASSISTANCE IN THIS TRANSACTION,

2019-09-10 Thread Mr.Phillip Richead
Dear Friend, My Name Is Mr.Phillip Richead, Executive Director & Exchange Manager of Africa Development Bank In Ouagadougou Burkina Faso, I need your assistance to validate your name in our Bank System to enable the Bank transfer the sum of $10.5Million unclaimed fund into your nominated bank

Re: [PATCH v5 4/4] backlight: add led-backlight driver

2019-09-10 Thread Daniel Thompson
On Tue, Sep 10, 2019 at 12:59:46PM +0200, Jean-Jacques Hiblot wrote: > From: Tomi Valkeinen > > This patch adds a led-backlight driver (led_bl), which is similar to > pwm_bl except the driver uses a LED class driver to adjust the > brightness in the HW. Multiple LEDs can be used for a single

Re: pivot_root(".", ".") and the fchdir() dance

2019-09-10 Thread Michael Kerrisk (man-pages)
Hello Christian, >> All: I plan to add the following text to the manual page: >> >>new_root and put_old may be the same directory. In particular, >>the following sequence allows a pivot-root operation without need‐ >>ing to create and remove a temporary directory: >>

Re: [PATCH] Revert "mm/z3fold.c: fix race between migration and destruction"

2019-09-10 Thread Vlastimil Babka
On 9/10/19 12:31 PM, Vitaly Wool wrote: With the original commit applied, z3fold_zpool_destroy() may get blocked on wait_event() for indefinite time. Revert this commit for the time being to get rid of this problem since the issue the original commit addresses is less severe. This reverts

Re: [PATCH v6 01/12] tools lib traceevent: Convert remaining %p[fF] users to %p[sS]

2019-09-10 Thread Steven Rostedt
On Tue, 10 Sep 2019 11:46:56 +0300 Sakari Ailus wrote: > There are no in-kernel %p[fF] users left. Convert the traceevent tool, > too, to align with the kernel. > > Signed-off-by: Sakari Ailus > Cc: Steven Rostedt > Cc: Arnaldo Carvalho de Melo > Cc: Tzvetomir Stoyanov > Cc:

[tip: timers/core] posix-cpu-timers: Fix permission check regression

2019-09-10 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the timers/core branch of tip: Commit-ID: 77b4b5420422fc037d00b8f3f0e89b2262e4ae29 Gitweb: https://git.kernel.org/tip/77b4b5420422fc037d00b8f3f0e89b2262e4ae29 Author:Thomas Gleixner AuthorDate:Thu, 05 Sep 2019 23:15:08 +02:00

Re: linux-next: Signed-off-by missing for commit in the pci tree

2019-09-10 Thread Lorenzo Pieralisi
On Mon, Sep 09, 2019 at 11:10:06PM +, Haiyang Zhang wrote: > > > > -Original Message- > > From: Lorenzo Pieralisi > > Sent: Wednesday, August 21, 2019 5:03 AM > > To: Stephen Rothwell > > Cc: Bjorn Helgaas ; Linux Next Mailing List > n...@vger.kernel.org>; Linux Kernel Mailing

Re: [PATCH] scsi: dpt_i2o: drop unnecessary comparison statement

2019-09-10 Thread Austin Kim
Hello, Maintainers... Would you please review this patch and share the feedback? Thanks, Austin Kim 2019년 9월 9일 (월) 오후 2:42, Austin Kim 님이 작성: > > The type of 'chan' is u32 which contain non-negative value. > So 'chan < 0' is statment is always false. > > Remove unnecessary comparison statement

Re: pivot_root(".", ".") and the fchdir() dance

2019-09-10 Thread Christian Brauner
On Tue, Sep 10, 2019 at 12:27:27PM +0200, Michael Kerrisk (man-pages) wrote: > Hello Eric, > > On 9/10/19 1:40 AM, Eric W. Biederman wrote: > > [...] > > >>> I have just spotted this conversation and I expect if you are going > >>> to use this example it is probably good to document what is

Re: [PATCH] driver core: ensure a device has valid node id in device_add()

2019-09-10 Thread Greg KH
On Tue, Sep 10, 2019 at 01:04:51PM +0200, Michal Hocko wrote: > On Tue 10-09-19 18:58:05, Yunsheng Lin wrote: > > On 2019/9/10 17:31, Greg KH wrote: > > > On Tue, Sep 10, 2019 at 02:43:32PM +0800, Yunsheng Lin wrote: > > >> On 2019/9/9 17:53, Greg KH wrote: > > >>> On Mon, Sep 09, 2019 at

Re: [PATCH 1/1] edac: Add an API for edac device to report for multiple errors

2019-09-10 Thread Hawa, Hanna
Hi On 9/8/2019 11:35 AM, Borislav Petkov wrote: On Sun, Sep 08, 2019 at 10:16:02AM +0200, Borislav Petkov wrote: On Sun, Sep 08, 2019 at 10:58:31AM +0300, Hawa, Hanna wrote: Better use WARN_ON_ONCE() to avoid flooding. In case of two drivers using this function with wrong error count, only

Re: [PATCH] driver core: ensure a device has valid node id in device_add()

2019-09-10 Thread Michal Hocko
On Tue 10-09-19 18:58:05, Yunsheng Lin wrote: > On 2019/9/10 17:31, Greg KH wrote: > > On Tue, Sep 10, 2019 at 02:43:32PM +0800, Yunsheng Lin wrote: > >> On 2019/9/9 17:53, Greg KH wrote: > >>> On Mon, Sep 09, 2019 at 02:04:23PM +0800, Yunsheng Lin wrote: > Currently a device does not belong

Re: [PATCH] driver core: ensure a device has valid node id in device_add()

2019-09-10 Thread Michal Hocko
On Tue 10-09-19 18:40:12, Yunsheng Lin wrote: > On 2019/9/10 15:24, Michal Hocko wrote: > > Our emails crossed, sorry about that. > > > > On Tue 10-09-19 15:08:20, Yunsheng Lin wrote: > >> On 2019/9/10 2:50, Michal Hocko wrote: > >>> On Mon 09-09-19 14:04:23, Yunsheng Lin wrote: > > [...] >

Re: [PATCH (resend)] mm,oom: Defer dump_tasks() output.

2019-09-10 Thread Tetsuo Handa
On 2019/09/09 22:04, Michal Hocko wrote: > On Mon 09-09-19 21:40:24, Tetsuo Handa wrote: >> On 2019/09/09 20:36, Michal Hocko wrote: >>> This is not an improvement. It detaches the oom report and tasks_dump >>> for an arbitrary amount of time because the worder context might be >>> stalled for an

[PATCH v5 2/4] leds: Add managed API to get a LED from a device driver

2019-09-10 Thread Jean-Jacques Hiblot
If the LED is acquired by a consumer device with devm_led_get(), it is automatically released when the device is detached. Signed-off-by: Jean-Jacques Hiblot Acked-by: Pavel Machek --- drivers/leds/led-class.c | 42 include/linux/leds.h | 2 ++ 2

[PATCH v5 3/4] dt-bindings: backlight: Add led-backlight binding

2019-09-10 Thread Jean-Jacques Hiblot
Add DT binding for led-backlight. Signed-off-by: Jean-Jacques Hiblot --- .../bindings/leds/backlight/led-backlight.txt | 28 +++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/led-backlight.txt diff --git

[PATCH v5 0/4] Add a generic driver for LED-based backlight

2019-09-10 Thread Jean-Jacques Hiblot
This series aims to add a led-backlight driver, similar to pwm-backlight, but using a LED class device underneath. A few years ago (2015), Tomi Valkeinen posted a series implementing a backlight driver on top of a LED device: https://patchwork.kernel.org/patch/7293991/

[PATCH v5 1/4] leds: Add of_led_get() and led_put()

2019-09-10 Thread Jean-Jacques Hiblot
From: Tomi Valkeinen This patch adds basic support for a kernel driver to get a LED device. This will be used by the led-backlight driver. Only OF version is implemented for now, and the behavior is similar to PWM's of_pwm_get() and pwm_put(). Signed-off-by: Tomi Valkeinen Signed-off-by:

[PATCH v5 4/4] backlight: add led-backlight driver

2019-09-10 Thread Jean-Jacques Hiblot
From: Tomi Valkeinen This patch adds a led-backlight driver (led_bl), which is similar to pwm_bl except the driver uses a LED class driver to adjust the brightness in the HW. Multiple LEDs can be used for a single backlight. Signed-off-by: Tomi Valkeinen Signed-off-by: Jean-Jacques Hiblot

Re: [PATCH] driver core: ensure a device has valid node id in device_add()

2019-09-10 Thread Yunsheng Lin
On 2019/9/10 17:31, Greg KH wrote: > On Tue, Sep 10, 2019 at 02:43:32PM +0800, Yunsheng Lin wrote: >> On 2019/9/9 17:53, Greg KH wrote: >>> On Mon, Sep 09, 2019 at 02:04:23PM +0800, Yunsheng Lin wrote: Currently a device does not belong to any of the numa nodes (dev->numa_node is

[v4,1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-09-10 Thread Biwen Li
Add some properties for pcf85263/pcf85363 as follows: - nxp,rtc-interrupt-type: integer type - nxp,rtc-interrupt-output-pin: string type - quartz-load-femtofarads: integer type - nxp,quartz-drive-strength: integer type - nxp,quartz-low-jitter: bool type - wakeup-source: bool type

[v4,2/2] rtc: pcf85263/pcf85363: support PM, wakeup device, improve performance

2019-09-10 Thread Biwen Li
Add some features as follow: - Set quartz oscillator load capacitance by DT (generate more accuracy frequency) - Set quartz oscillator drive control by DT (reduce/increase the current consumption) - Set low jitter mode by DT (improve jitter performance) - Set

[PATCH v1] kernel.h: Split out mathematical helpers

2019-09-10 Thread Andy Shevchenko
kernel.h is being used as a dump for all kinds of stuff for a long time. Here is the attempt to start cleaning it up by splitting out mathematical helpers. Signed-off-by: Andy Shevchenko --- fs/nfs/callback_proc.c| 1 + include/linux/bitops.h| 3 +- include/linux/dcache.h

Re: [PATCH v2 0/2] mm/kasan: dump alloc/free stack for page allocator

2019-09-10 Thread Andrey Ryabinin
On 9/9/19 4:07 PM, Vlastimil Babka wrote: > On 9/9/19 10:24 AM, walter-zh...@mediatek.com wrote: >> From: Walter Wu >> >> This patch is KASAN report adds the alloc/free stacks for page allocator >> in order to help programmer to see memory corruption caused by page. >> >> By default, KASAN

Re: [PATCH bpf-next 01/11] samples: bpf: makefile: fix HDR_PROBE "echo"

2019-09-10 Thread Sergei Shtylyov
Hello! On 10.09.2019 13:38, Ivan Khoronzhuk wrote: echo should be replaced on echo -e to handle \n correctly, but instead, s/on/with/? replace it on printf as some systems can't handle echo -e. Likewise? Signed-off-by: Ivan Khoronzhuk [...] MBR, Sergei

Re: [PATCH AUTOSEL 5.2 06/12] configfs_register_group() shouldn't be (and isn't) called in rmdirable parts

2019-09-10 Thread Sasha Levin
On Tue, Sep 10, 2019 at 10:19:38AM +0100, Greg KH wrote: On Tue, Sep 10, 2019 at 08:01:35AM +0200, Christoph Hellwig wrote: Please stop selectively backporting parts of random series. We'll need to the full series from Al in -stable instead. Yeah, I'll pick this whole series up soon. Sasha,

Re: [PATCH v2] ceph: allow object copies across different filesystems in the same cluster

2019-09-10 Thread Luis Henriques
Gregory Farnum writes: > On Mon, Sep 9, 2019 at 4:15 AM Luis Henriques wrote: >> >> "Jeff Layton" writes: >> >> > On Mon, 2019-09-09 at 11:28 +0100, Luis Henriques wrote: >> >> OSDs are able to perform object copies across different pools. Thus, >> >> there's no need to prevent

Re: [PATCH 2/2] powerpc/watchpoint: Disable watchpoint hit by larx/stcx instructions

2019-09-10 Thread Naveen N. Rao
Ravi Bangoria wrote: If watchpoint exception is generated by larx/stcx instructions, the reservation created by larx gets lost while handling exception, and thus stcx instruction always fails. Generally these instructions are used in a while(1) loop, for example spinlocks. And because stcx never

Re: [Patch 00/13] media: am437x-vpfe: overdue maintenance

2019-09-10 Thread Hans Verkuil
Hi Benoit, On 9/9/19 6:27 PM, Benoit Parrot wrote: > This patch series is a collection of patches we have been carrying for a > while. > > A few patches do fix actual bug and v4l2-compliance errors/warnings. > Other are drivers re-work to simplify/clarify the code for easier > maintenance. Can

Re: [PATCH] driver core: ensure a device has valid node id in device_add()

2019-09-10 Thread Yunsheng Lin
On 2019/9/10 15:24, Michal Hocko wrote: > Our emails crossed, sorry about that. > > On Tue 10-09-19 15:08:20, Yunsheng Lin wrote: >> On 2019/9/10 2:50, Michal Hocko wrote: >>> On Mon 09-09-19 14:04:23, Yunsheng Lin wrote: > [...] Even if a device's numa node is not specified, the device

[PATCH bpf-next 04/11] samples: bpf: use own EXTRA_CFLAGS for clang commands

2019-09-10 Thread Ivan Khoronzhuk
It can overlap with CFLAGS used for libraries built with gcc if not now then in next patches. Correct it here for simplicity. Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/bpf/Makefile

[PATCH bpf-next 02/11] samples: bpf: makefile: fix cookie_uid_helper_example obj build

2019-09-10 Thread Ivan Khoronzhuk
Don't list userspace "cookie_uid_helper_example" object in list for bpf objects. per_socket_stats_example-opjs is used to list additional dependencies for user space binary from hostprogs-y list. Kbuild system creates rules for objects listed this way anyway and no need to worry about this.

[PATCH bpf-next 00/11] samples: bpf: improve/fix cross-compilation

2019-09-10 Thread Ivan Khoronzhuk
This series contains mainly fixes/improvements for cross-compilation but not only, tested for arm, arm64, but intended for any arch. Also verified on native build (not cross compilation) for x86_64 and arm. Initial RFC link: https://lkml.org/lkml/2019/8/29/1665 Prev. version:

[PATCH bpf-next 07/11] samples: bpf: add makefile.prog for separate CC build

2019-09-10 Thread Ivan Khoronzhuk
The makefile.prog is added only, will be used in sample/bpf/Makefile later in order to switch cross-compiling on CC from HOSTCC. The HOSTCC is supposed to build binaries and tools running on the host afterwards, in order to simplify build or so, like "fixdep" or else. In case of cross compiling

[PATCH bpf-next 08/11] samples: bpf: makefile: base progs build on makefile.progs

2019-09-10 Thread Ivan Khoronzhuk
The main reason for that - HOSTCC and CC have different aims. It was tested for arm cross compilation, based on linaro toolchain, but should work for others. In order to split cross compilation (CC) with host build (HOSTCC), lets base bpf samples on Makefile.progs. It allows to cross-compile

[PATCH bpf-next 05/11] samples: bpf: makefile: use D vars from KBUILD_CFLAGS to handle headers

2019-09-10 Thread Ivan Khoronzhuk
The kernel headers are reused from samples bpf, and autoconf.h is not enough to reflect complete arch configuration for clang. But CLANG-bpf cmds are sensitive for assembler part taken from linux headers and -D vars, usually used in CFLAGS, should be carefully added for each arch. For that, for

[PATCH bpf-next 06/11] samples: bpf: makefile: drop unnecessarily inclusion for bpf_load

2019-09-10 Thread Ivan Khoronzhuk
Drop inclusion for bpf_load -I$(objtree)/usr/include as it is included for all objects anyway, with above line: KBUILD_HOSTCFLAGS += -I$(objtree)/usr/include Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH bpf-next 09/11] samples: bpf: makefile: use CC environment for HDR_PROBE

2019-09-10 Thread Ivan Khoronzhuk
No need in hacking HOSTCC to be cross-compiler any more, so drop this trick and use CC for HDR_PROBE Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index

[PATCH bpf-next 11/11] samples: bpf: makefile: add sysroot support

2019-09-10 Thread Ivan Khoronzhuk
Basically it only enables that was added by previous couple fixes. For sure, just make tools/include to be included after sysroot headers. export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabihf- make samples/bpf/ SYSROOT="path/to/sysroot" Sysroot contains correct libs installed and its headers

[PATCH bpf-next 10/11] libbpf: makefile: add C/CXX/LDFLAGS to libbpf.so and test_libpf targets

2019-09-10 Thread Ivan Khoronzhuk
In case of LDFLAGS and EXTRA_CC/CXX flags there is no way to pass them correctly to build command, for instance when --sysroot is used or external libraries are used, like -lelf, wich can be absent in toolchain. This is used for samples/bpf cross-compiling allowing to get elf lib from sysroot.

[PATCH bpf-next 01/11] samples: bpf: makefile: fix HDR_PROBE "echo"

2019-09-10 Thread Ivan Khoronzhuk
echo should be replaced on echo -e to handle \n correctly, but instead, replace it on printf as some systems can't handle echo -e. Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/bpf/Makefile

[PATCH bpf-next 03/11] samples: bpf: makefile: use --target from cross-compile

2019-09-10 Thread Ivan Khoronzhuk
For cross compiling the target triple can be inherited from cross-compile prefix as it's done in CLANG_FLAGS from kernel makefile. So copy-paste this decision from kernel Makefile. Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] gpiolib: acpi: make acpi_can_fallback_to_crs() static

2019-09-10 Thread Linus Walleij
On Wed, Sep 4, 2019 at 6:26 PM Dmitry Torokhov wrote: > It is not used outside gpiolib-acpi.c module, so there is no need to > export it. > > Signed-off-by: Dmitry Torokhov Patch applied with the ACKs. Yours, Linus Walleij

Re: [PATCH] gpiolib: of: fix fallback quirks handling

2019-09-10 Thread Linus Walleij
On Wed, Sep 4, 2019 at 12:18 AM Dmitry Torokhov wrote: > We should only try to execute fallback quirks handling when previous > call returned -ENOENT, and not when we did not get -EPROBE_DEFER. > The other errors should be treated as hard errors: we did find the GPIO > description, but for some

Re: [PATCH v10 01/15] clk: tegra20/30: Add custom EMC clock implementation

2019-09-10 Thread Stephen Boyd
Quoting Dmitry Osipenko (2019-08-11 14:00:29) > A proper External Memory Controller clock rounding and parent selection > functionality is required by the EMC drivers, it is not available using > the generic clock implementation because only the Memory Controller driver > is aware of what clock

Re: [PATCH 00/10] Hwpoison soft-offline rework

2019-09-10 Thread Oscar Salvador
On Tue, Sep 10, 2019 at 12:30:06PM +0200, Oscar Salvador wrote: > > This patchset was based on Naoya's hwpoison rework [1], so thanks to him > for the initial work. > > This patchset aims to fix some issues laying in soft-offline handling, > but it also takes the chance and takes some further

[PATCH 00/10] Hwpoison soft-offline rework

2019-09-10 Thread Oscar Salvador
This patchset was based on Naoya's hwpoison rework [1], so thanks to him for the initial work. This patchset aims to fix some issues laying in soft-offline handling, but it also takes the chance and takes some further steps to perform cleanups and some refactoring as well. - Motivation:

[PATCH 05/10] mm: remove flag argument from soft offline functions

2019-09-10 Thread Oscar Salvador
From: Naoya Horiguchi The argument @flag no longer affects the behavior of soft_offline_page() and its variants, so let's remove them. Signed-off-by: Naoya Horiguchi Signed-off-by: Oscar Salvador --- drivers/base/memory.c | 2 +- include/linux/mm.h| 2 +- mm/madvise.c | 2 +-

[PATCH 01/10] mm,hwpoison: cleanup unused PageHuge() check

2019-09-10 Thread Oscar Salvador
From: Naoya Horiguchi memory_failure() forks to memory_failure_hugetlb() for hugetlb pages, so a PageHuge() check after the fork should not be necessary. Signed-off-by: Oscar Salvador Signed-off-by: Naoya Horiguchi Reviewed-by: Anshuman Khandual --- mm/memory-failure.c | 5 + 1 file

[PATCH 04/10] mm,hwpoison: remove MF_COUNT_INCREASED

2019-09-10 Thread Oscar Salvador
From: Naoya Horiguchi Now there's no user of MF_COUNT_INCREASED, so we can safely remove it from all calling points. Signed-off-by: Naoya Horiguchi Signed-off-by: Oscar Salvador --- include/linux/mm.h | 7 +++ mm/memory-failure.c | 16 +++- 2 files changed, 6 insertions(+),

[PATCH] Revert "mm/z3fold.c: fix race between migration and destruction"

2019-09-10 Thread Vitaly Wool
With the original commit applied, z3fold_zpool_destroy() may get blocked on wait_event() for indefinite time. Revert this commit for the time being to get rid of this problem since the issue the original commit addresses is less severe. This reverts commit

[PATCH 06/10] mm,hwpoison: Unify THP handling for hard and soft offline

2019-09-10 Thread Oscar Salvador
Place the THP's page handling in a helper and use it from both hard and soft-offline machinery, so we get rid of some duplicated code. Signed-off-by: Oscar Salvador --- mm/memory-failure.c | 48 ++-- 1 file changed, 22 insertions(+), 26 deletions(-)

[PATCH 10/10] mm,hwpoison: Use hugetlb_replace_page to replace free hugetlb pages

2019-09-10 Thread Oscar Salvador
When soft offlining a free hugtlb, try first to allocate a new hugetlb to the pool and pass the old state to the new one by move_hugetlb_state(). Either we succeed or not, we dissolve the poisoned hugetlb page. Worst-scenario case is that we cannot allocate a new fresh hugetlb page as a

[PATCH 08/10] mm,hwpoison: Refactor soft_offline_huge_page and __soft_offline_page

2019-09-10 Thread Oscar Salvador
soft_offline_huge_page and __soft_offline_page share quite some code, and it can be re-joined into one single function without losing neither functionatilty nor readibility. This allows us of getting rid of quite some duplicated code. Signed-off-by: Oscar Salvador --- mm/memory-failure.c | 145

[PATCH 07/10] mm,hwpoison: Rework soft offline for in-use pages

2019-09-10 Thread Oscar Salvador
This patch changes the way we set and handle in-use poisoned pages. Until now, poisoned pages were released to the buddy allocator, trusting that the checks that take place prior to hand the page to userspace would act as a safe net and would skip that page. This has proved to be wrong, as we got

[PATCH 02/10] mm,madvise: call soft_offline_page() without MF_COUNT_INCREASED

2019-09-10 Thread Oscar Salvador
From: Naoya Horiguchi Currently madvise_inject_error() pins the target via get_user_pages_fast. The call to get_user_pages_fast is only to get the respective page of a given address, but it is the job of the memory-poisoning handler to deal with races, so drop the refcount grabbed by

[PATCH 03/10] mm,hwpoison-inject: don't pin for hwpoison_filter

2019-09-10 Thread Oscar Salvador
From: Naoya Horiguchi Another memory error injection interface debugfs:hwpoison/corrupt-pfn also takes bogus refcount for hwpoison_filter(). It's justified because this does a coarse filter, expecting that memory_failure() redoes the check for sure. Signed-off-by: Naoya Horiguchi

Re: [PATCH 0/2] powerpc/watchpoint: Disable watchpoint hit by larx/stcx instruction

2019-09-10 Thread Christophe Leroy
Le 10/09/2019 à 12:24, Ravi Bangoria a écrit : I've prepared my patch on top of Christophe's patch as it's easy to change stepping_handler() rather than hw_breakpoint_handler(). 2nd patch is the actual fix. Anyway, my patch is already commited on powerpc/next

[PATCH 09/10] mm,hwpoison: Rework soft offline for free pages

2019-09-10 Thread Oscar Salvador
take_page_off_buddy will be used to take a page meant to be poisoned off the buddy allocator. take_page_off_buddy calls break_down_buddy_pages, which will split a higher-order page in case our page belongs to one. Once we grab the page, we call page_set_poison to set it as poisoned and grab a

RE: [RFC PATCH 3/3] Enable ptp_kvm for arm64

2019-09-10 Thread Jianyong Wu (Arm Technology China)
Hi Marc, > -Original Message- > From: Marc Zyngier > Sent: Monday, September 9, 2019 7:25 PM > To: Jianyong Wu (Arm Technology China) > Cc: net...@vger.kernel.org; pbonz...@redhat.com; > sean.j.christopher...@intel.com; richardcoch...@gmail.com; Mark Rutland > ; Will Deacon ; Suzuki >

RE: [PATCH 1/2] memory_hotplug: Add a bounds check to check_hotplug_memory_range()

2019-09-10 Thread Alastair D'Silva
> -Original Message- > From: Kirill A. Shutemov > Sent: Tuesday, 10 September 2019 8:15 PM > To: Alastair D'Silva > Cc: alast...@d-silva.org; Andrew Morton ; > David Hildenbrand ; Oscar Salvador > ; Michal Hocko ; Pavel Tatashin > ; Wei Yang ; > Dan Williams ; Qian Cai ; Jason >

Re: pivot_root(".", ".") and the fchdir() dance

2019-09-10 Thread Michael Kerrisk (man-pages)
Hello Eric, On 9/10/19 1:40 AM, Eric W. Biederman wrote: [...] >>> I have just spotted this conversation and I expect if you are going >>> to use this example it is probably good to document what is going >>> on so that people can follow along. >> >> (Sounds reasonable.) >> > chdir(rootfs)

RE: [PATCH 1/2] memory_hotplug: Add a bounds check to check_hotplug_memory_range()

2019-09-10 Thread Alastair D'Silva
> -Original Message- > From: David Hildenbrand > Sent: Tuesday, 10 September 2019 5:46 PM > To: Alastair D'Silva ; alast...@d-silva.org > Cc: Andrew Morton ; Oscar Salvador > ; Michal Hocko ; Pavel Tatashin > ; Wei Yang ; > Dan Williams ; Qian Cai ; Jason > Gunthorpe ; Logan Gunthorpe ;

Re: [PATCH v3 4/4] mm, slab_common: Make the loop for initializing KMALLOC_DMA start from 1

2019-09-10 Thread Vlastimil Babka
On 9/10/19 3:26 AM, Pengfei Li wrote: KMALLOC_DMA will be initialized only if KMALLOC_NORMAL with the same index exists. And kmalloc_caches[KMALLOC_NORMAL][0] is always NULL. Therefore, the loop that initializes KMALLOC_DMA should start at 1 instead of 0, which will reduce 1 meaningless

[PATCH 2/2] powerpc/watchpoint: Disable watchpoint hit by larx/stcx instructions

2019-09-10 Thread Ravi Bangoria
If watchpoint exception is generated by larx/stcx instructions, the reservation created by larx gets lost while handling exception, and thus stcx instruction always fails. Generally these instructions are used in a while(1) loop, for example spinlocks. And because stcx never succeeds, it loops

Re: [PATCH] arm64: fix unreachable code issue with cmpxchg

2019-09-10 Thread Andrew Murray
On Tue, Sep 10, 2019 at 11:38:37AM +0200, Arnd Bergmann wrote: > On Tue, Sep 10, 2019 at 11:23 AM Andrew Murray wrote: > > > > > > arch/arm64/include/asm/cmpxchg.h | 15 --- > > > 1 file changed, 8 insertions(+), 7 deletions(-) > > > > > > diff --git

<    1   2   3   4   5   6   7   8   9   >