Re: protocol attach wait

2022-09-23 Thread Alexander Bluhm
On Sat, Sep 03, 2022 at 03:39:00AM +0300, Vitaliy Makkoveev wrote: > On Fri, Sep 02, 2022 at 11:56:02AM +0200, Alexander Bluhm wrote: > I'm not blocking this, may be something other has the different opinion. I strongly believe that userland should not care about short time memory shortage in kern

Re: protocol attach wait

2022-09-03 Thread Alexander Bluhm
On Sat, Sep 03, 2022 at 03:39:00AM +0300, Vitaliy Makkoveev wrote: > Since we are not the special case where we have no resource allocation > in runtime, because all required resources are pre-allocated by design, During packet processing we do not wait, but drop the packet. Network semantics allo

Re: protocol attach wait

2022-09-02 Thread Vitaliy Makkoveev
On Fri, Sep 02, 2022 at 11:56:02AM +0200, Alexander Bluhm wrote: > On Thu, Sep 01, 2022 at 11:04:19PM +0300, Vitaliy Makkoveev wrote: > > On Thu, Sep 01, 2022 at 10:58:49PM +0300, Vitaliy Makkoveev wrote: > > > On Thu, Sep 01, 2022 at 09:00:50PM +0200, Alexander Bluhm wrote: > > > > On Mon, Aug 15,

Re: protocol attach wait

2022-09-02 Thread Alexander Bluhm
On Thu, Sep 01, 2022 at 11:04:19PM +0300, Vitaliy Makkoveev wrote: > On Thu, Sep 01, 2022 at 10:58:49PM +0300, Vitaliy Makkoveev wrote: > > On Thu, Sep 01, 2022 at 09:00:50PM +0200, Alexander Bluhm wrote: > > > On Mon, Aug 15, 2022 at 05:12:22PM +0200, Alexander Bluhm wrote: > > > > System calls sh

Re: protocol attach wait

2022-09-01 Thread Vitaliy Makkoveev
On Thu, Sep 01, 2022 at 10:58:49PM +0300, Vitaliy Makkoveev wrote: > On Thu, Sep 01, 2022 at 09:00:50PM +0200, Alexander Bluhm wrote: > > On Mon, Aug 15, 2022 at 05:12:22PM +0200, Alexander Bluhm wrote: > > > System calls should not fail due to temporary memory shortage in > > > malloc(9) or pool_g

Re: protocol attach wait

2022-09-01 Thread Vitaliy Makkoveev
On Thu, Sep 01, 2022 at 09:00:50PM +0200, Alexander Bluhm wrote: > On Mon, Aug 15, 2022 at 05:12:22PM +0200, Alexander Bluhm wrote: > > System calls should not fail due to temporary memory shortage in > > malloc(9) or pool_get(9). > > > > Pass down a wait flag to pru_attach(). During syscall sock

Re: protocol attach wait

2022-09-01 Thread Alexander Bluhm
On Mon, Aug 15, 2022 at 05:12:22PM +0200, Alexander Bluhm wrote: > System calls should not fail due to temporary memory shortage in > malloc(9) or pool_get(9). > > Pass down a wait flag to pru_attach(). During syscall socket(2) > it is ok to wait, this logic was missing for internet pcb. Pfkey >