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


Groups > linux.kernel > #1306886

Re: [OOPS] In __netif_receive_skb_core

From Salam Noureddine <noureddine@arista.com>
Newsgroups linux.kernel
Subject Re: [OOPS] In __netif_receive_skb_core
Date 2016-01-12 02:20 +0100
Message-ID <qPVMS-2bA-17@gated-at.bofh.it> (permalink)
References (2 earlier) <qPuMF-A8-1@gated-at.bofh.it> <qPRSW-7T9-9@gated-at.bofh.it> <qPSYF-bV-1@gated-at.bofh.it> <qPVtw-1Mg-15@gated-at.bofh.it> <qPVDc-25w-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


It must be that skb->dev was changed to NULL inside of
__netif_receive_skb_core, otherwise we would have crashed much
earlier. Also, orig_dev is saved at the beginning. Possibly a device
is layered on top of the original device.

On Mon, Jan 11, 2016 at 5:06 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
> On Tue, 2016-01-12 at 02:51 +0200, Ivaylo Dimitrov wrote:
>
>>
>> I put some additional printks around that code, and it turned out that
>> skb->dev is null, so "if (unlikely(skb->dev != orig_dev))" succeeds, but
>> "&skb->dev->ptype_specific" oopses.
>
> Nice find !
>
> Now lets find what possibly called netif_rx() with skb->dev == NULL
>
> (This is illegal)
>
>
>

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


Thread

[OOPS] In __netif_receive_skb_core Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-01-07 19:00 +0100
  Re: [OOPS] In __netif_receive_skb_core Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-01-10 18:50 +0100
    Re: [OOPS] In __netif_receive_skb_core Eric Dumazet <eric.dumazet@gmail.com> - 2016-01-10 21:30 +0100
      Re: [OOPS] In __netif_receive_skb_core Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-01-11 22:10 +0100
        Re: [OOPS] In __netif_receive_skb_core Salam Noureddine <noureddine@arista.com> - 2016-01-11 23:20 +0100
          Re: [OOPS] In __netif_receive_skb_core Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-01-12 02:00 +0100
            Re: [OOPS] In __netif_receive_skb_core Eric Dumazet <eric.dumazet@gmail.com> - 2016-01-12 02:10 +0100
              Re: [OOPS] In __netif_receive_skb_core Salam Noureddine <noureddine@arista.com> - 2016-01-12 02:20 +0100
                Re: [OOPS] In __netif_receive_skb_core Eric Dumazet <eric.dumazet@gmail.com> - 2016-01-12 03:30 +0100
                Re: [OOPS] In __netif_receive_skb_core Eric Dumazet <eric.dumazet@gmail.com> - 2016-01-12 03:30 +0100
                Re: [OOPS] In __netif_receive_skb_core Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-01-12 08:20 +0100
                Re: [OOPS] In __netif_receive_skb_core Eric Dumazet <eric.dumazet@gmail.com> - 2016-01-12 15:20 +0100
                [PATCH net] phonet: properly unshare skbs in phonet_rcv() Eric Dumazet <eric.dumazet@gmail.com> - 2016-01-12 18:00 +0100
                Re: [PATCH net] phonet: properly unshare skbs in phonet_rcv() David Miller <davem@davemloft.net> - 2016-01-12 21:50 +0100
                Re: [OOPS] In __netif_receive_skb_core Salam Noureddine <noureddine@arista.com> - 2016-01-12 19:20 +0100

csiph-web