Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/2] nfp: fix retcode and disable netpoll on representors
@ 2019-03-27 18:38 Jakub Kicinski
  2019-03-27 18:38 ` [PATCH net 1/2] nfp: validate the return code from dev_queue_xmit() Jakub Kicinski
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jakub Kicinski @ 2019-03-27 18:38 UTC (permalink / raw)
  To: davem; +Cc: oss-drivers, netdev, Jakub Kicinski

Hi!

This series avoids a potential crash on nfp representor devices
when netpoll is in use.  If transmitting the frame through underlying
vNIC fails we'd return an error code (by passing on error code from
__dev_queue_xmit()) and cause double free in netpoll code.

Fix the error code and disable netpoll on reprs altogether.
IRQ-safety of locking the queues and calling __dev_queue_xmit()
is questionable.

Big thanks to John Hurley for debugging and narrowing down
the trace log after I gave up! :)

Jakub Kicinski (2):
  nfp: validate the return code from dev_queue_xmit()
  nfp: disable netpoll on representors

 drivers/net/ethernet/netronome/nfp/nfp_net_repr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.19.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-03-29  0:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-27 18:38 [PATCH net 0/2] nfp: fix retcode and disable netpoll on representors Jakub Kicinski
2019-03-27 18:38 ` [PATCH net 1/2] nfp: validate the return code from dev_queue_xmit() Jakub Kicinski
2019-03-27 18:38 ` [PATCH net 2/2] nfp: disable netpoll on representors Jakub Kicinski
2019-03-29  0:04 ` [PATCH net 0/2] nfp: fix retcode and " David Miller
2019-03-29  0:27   ` Jakub Kicinski
2019-03-29  0:30     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox