Re: [PATCH RFT v2] sh_eth: fix kernel oops in skb_put()

2015-11-20 Thread Yasushi SHOJI
Hi Sergei, On Fri, 20 Nov 2015 02:53:39 +0900, Sergei Shtylyov wrote: > >Shoji-san, can I push this patch to net.git? I doubt that it has > ill effects in itself -- the reason of the slowdown you're seeing > should be somewhere else... Sure. I've tested and the null access problem is gone

Re: [PATCH RFT v2] sh_eth: fix kernel oops in skb_put()

2015-10-26 Thread Yasushi SHOJI
Control: 10c53c7d Table: 4248c059 DAC: 0015 > Process klogd (pid: 2046, stack limit = 0x84eb02e8) > [...] > > This is because netdev_alloc_skb() fails and 'mdp->rx_skbuff[entry]' is left > NULL but sh_eth_rx() later uses it without checking. Add such check... >

Re: sh_eth.c::sh_eth_rx(): mdp->rx_skbuff[entry] can be NULL

2015-10-21 Thread Yasushi SHOJI
Hi Sergei, Thank your for your reply. On Wed, 21 Oct 2015 05:48:01 +0900, Sergei Shtylyov wrote: > > On 10/19/2015 06:01 PM, Yasushi SHOJI wrote: > > > I'm not that familiar with this code base so I'm note including any > > patch yet. I appreciate if someone with insi

sh_eth.c::sh_eth_rx(): mdp->rx_skbuff[entry] can be NULL

2015-10-19 Thread Yasushi SHOJI
Hi, In a low memory situation with netdev_alloc_skb() failure, mdp->rx_skbuff[entry] can be left NULL, however, sh_eth_rx() seems to access it without checking NULL or not in the following code: skb = mdp->rx_skbuff[entry]; mdp->rx_skbuff[entry] =