Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1386670

Re: [PATCH v1 1/1] usb: gadget: NCM: NULL pointer dereference in eth_start_xmit

From One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH v1 1/1] usb: gadget: NCM: NULL pointer dereference in eth_start_xmit
Date 2016-04-25 19:00 +0200
Message-ID <rrS1A-Kw-13@gated-at.bofh.it> (permalink)
References <rrQCv-89O-43@gated-at.bofh.it>
Organization Intel Corporation

Show all headers | View raw


On Mon, 25 Apr 2016 16:25:03 +0100
<jim_baxter@mentor.com> wrote:

> From: Jim Baxter <jim_baxter@mentor.com>
> 
> "Unable to handle kernel NULL pointer dereference at virtual address
> 00000078" is reported with "PC is at eth_start_xmit+0x19c/0x378 [u_ether]"
> 
> The failure scenario is seen when closing the NCM connection while the
> TCP/IPv6 stack is still trying to transmit over NCM.
> 
> Defensive code is missing from commit
> 6d3865f9d41f15ddbcecaa6722871fc0db21d7ab
> "usb: gadget: NCM: Add transmit multi-frame."

This looks inadequate. Surely you also need to hold dev->lock ?

Also it'll also crash at the no zlp test with the same problem.

Alan

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v1 1/1] usb: gadget: NCM: NULL pointer dereference in eth_start_xmit <jim_baxter@mentor.com> - 2016-04-25 17:30 +0200
  Re: [PATCH v1 1/1] usb: gadget: NCM: NULL pointer dereference in  eth_start_xmit One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-04-25 19:00 +0200

csiph-web