Re: [PATCH net] net: do not process device backlog during unregistration

2015-06-29 Thread Julian Anastasov
Hello, On Mon, 29 Jun 2015, Julian Anastasov wrote: > RFC patch: > > Subject: [PATCHv2 net] net: do not process device backlog during > unregistration Ignore this v2, packets in backlog do not hold dev reference, I'll prepare new version with such check in enqueue_to_backlog.

Re: [PATCH net] net: do not process device backlog during unregistration

2015-06-29 Thread Julian Anastasov
Hello, On Sun, 28 Jun 2015, Eric W. Biederman wrote: > Julian Anastasov writes: > > > commit 381c759d9916 ("ipv4: Avoid crashing in ip_error") > > fixes a problem where processed packet comes from device > > with destroyed inetdev (dev->ip_ptr). This is not expected > > because inetdev

Re: [PATCH net] net: do not process device backlog during unregistration

2015-06-28 Thread Eric W. Biederman
Julian Anastasov writes: > commit 381c759d9916 ("ipv4: Avoid crashing in ip_error") > fixes a problem where processed packet comes from device > with destroyed inetdev (dev->ip_ptr). This is not expected > because inetdev_destroy is called in NETDEV_UNREGISTER > phase and packets should not be pr

[PATCH net] net: do not process device backlog during unregistration

2015-06-27 Thread Julian Anastasov
commit 381c759d9916 ("ipv4: Avoid crashing in ip_error") fixes a problem where processed packet comes from device with destroyed inetdev (dev->ip_ptr). This is not expected because inetdev_destroy is called in NETDEV_UNREGISTER phase and packets should not be processed after dev_close_many() and sy