Re: [PATCH 0/5] RFC: connector: Add network namespace awareness

2020-07-13 Thread Matt Bennett
On Tue, 2020-07-14 at 15:03 +1000, Aleksa Sarai wrote: > On 2020-07-13, Eric W. Biederman wrote: > > Matt Bennett writes: > > > > > On Thu, 2020-07-02 at 21:10 +0200, Christian Brauner wrote: > > > > On Thu, Jul 02, 2020 at 08:17:38AM -0500, Eric W. Bie

Re: [PATCH 0/5] RFC: connector: Add network namespace awareness

2020-07-05 Thread Matt Bennett
On Thu, 2020-07-02 at 21:10 +0200, Christian Brauner wrote: > On Thu, Jul 02, 2020 at 08:17:38AM -0500, Eric W. Biederman wrote: > > Matt Bennett writes: > > > > > Previously the connector functionality could only be used by processes > > > running in the >

Re: [PATCH 0/5] RFC: connector: Add network namespace awareness

2020-07-05 Thread Matt Bennett
On Thu, 2020-07-02 at 13:59 -0500, Eric W. Biederman wrote: > Matt Bennett writes: > > > Previously the connector functionality could only be used by processes > > running in the > > default network namespace. This meant that any process that uses the > > connect

[PATCH 1/5] connector: Use task pid helpers

2020-07-01 Thread Matt Bennett
In preparation for supporting the connector outside of the default network namespace we switch to using these helpers now. As the connector is still only supported in the default namespace this change is a no-op. Signed-off-by: Matt Bennett --- drivers/connector/cn_proc.c | 48

[PATCH 5/5] connector: Create connector per namespace

2020-07-01 Thread Matt Bennett
Move to storing the connector instance per network namespace. In doing so the ability to use the connector functionality outside the default namespace is now available. Signed-off-by: Matt Bennett --- drivers/connector/cn_proc.c | 49 ++ drivers/connector/connector.c | 171

[PATCH 3/5] connector: Ensure callback entry is released

2020-07-01 Thread Matt Bennett
Currently the entry itself appears to be being leaked. Signed-off-by: Matt Bennett --- drivers/connector/cn_queue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/connector/cn_queue.c b/drivers/connector/cn_queue.c index 49295052ba8b..a82ceeb37f26 100644 --- a

[PATCH 4/5] connector: Prepare for supporting multiple namespaces

2020-07-01 Thread Matt Bennett
Extend the existing function definitions / call sites to start passing the network namespace. For now we still only pass the default namespace. Signed-off-by: Matt Bennett --- Documentation/driver-api/connector.rst | 6 +++--- drivers/connector/cn_proc.c| 5 +++-- drivers

[PATCH 2/5] connector: Use 'current_user_ns' function

2020-07-01 Thread Matt Bennett
In preparation for supporting the connector outside of the default network namespace we switch to using this function now. As the connector is still only supported in the default namespace this change is a no-op. Signed-off-by: Matt Bennett --- drivers/connector/cn_proc.c | 10 +- 1

[PATCH 0/5] RFC: connector: Add network namespace awareness

2020-07-01 Thread Matt Bennett
-kernel&m=150806196728365&w=2 Matt Bennett (5): connector: Use task pid helpers connector: Use 'current_user_ns' function connector: Ensure callback entry is released connector: Prepare for supporting multiple namespaces connector: Create connector per namespace Docume

Re: [PATCH] mmc: core: Check for timeout before checking mmc device state

2015-05-11 Thread Matt Bennett
missed something fundamental. Thanks, Matt On Mon, 2015-05-11 at 12:00 +0200, Ulf Hansson wrote: > On 8 May 2015 at 04:40, Matt Bennett wrote: > > On a system that has multiple devices on the mmc bus the host can > > block on the mutex that protects access to the bus. Some op

[PATCH] mmc: core: Check for timeout before checking mmc device state

2015-05-07 Thread Matt Bennett
check before retrieving the device status in the loop we better handle the case where the mmc bus has been blocked but the device has left the programming state. Signed-off-by: Matt Bennett Cc: kuninori.morimoto...@renesas.com Cc: jh80.ch...@samsung.com Cc: sb...@codeaurora.org Cc: johan.rudh...@axi

Re: [PATCH] MIPS: OCTEON: Stop .bss memory being allocated to the kernel

2015-05-04 Thread Matt Bennett
+1200, Matt Bennett wrote: > During development work on a 3.16 based kernel it was found that a > number of builds would panic during the kernel init process, more > specifically in 'delayed_fput()'. The panic showed the kernel trying > to access a memory address of '0xb7

[PATCH] MIPS: OCTEON: Stop .bss memory being allocated to the kernel

2015-04-29 Thread Matt Bennett
er '__init_end'. Therefore memory within the .bss section is allocated to the kernel to use (System.map shows 'delayed_fput_list' and other kernel structures to be in .bss). To stop the kernel panic (and the .bss section being corrupted) memory should begin being allocated from the symbol