]> git.baikalelectronics.ru Git - kernel.git/commit
[PPP]: Fix skbuff.c:BUG due incorrect logic in process_input_packet()
authorPaul Mackerras <paulus@samba.org>
Thu, 19 Apr 2007 20:05:52 +0000 (13:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2007 20:05:52 +0000 (13:05 -0700)
commitef3e0eb6a4af0d0f5f8525d8f838f9d5e9998b34
tree739b5eb674a433077fb3486f7c305ca1720b3215
parent600471950023b03c0446475addff55a4f88a93ee
[PPP]: Fix skbuff.c:BUG due incorrect logic in process_input_packet()

From: Paul Mackerras <paulus@samba.org>

This fixes:

Subject: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6

process_input_packet() treats the case where the first byte is 0xff
(PPP_ALLSTATIONS) but the second byte is 0x03 (PPP_UI) as indicating a
packet with a PPP protocol number of 0xff.  Arguably that's wrong
since PPP protocol 0xff is reserved, and the RFC does envision the
possibility of receiving frames where the control field has values
other than 0x03.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp_async.c