ppp routing bug ?

Mike Tancsa mike at sentex.net
Fri Oct 27 15:36:06 UTC 2017


On 10/26/2017 6:16 PM, Eugene Grosbein wrote:
> 27.10.2017 1:04, Mike Tancsa пишет:
>>
>> the borked route monitor looks like
>>
>> got message of size 124 on Thu Oct 26 12:21:12 2017
>> RTM_ADD: Add Route: len 124, pid: 29597, seq 2, errno 0,
>> flags:<UP,GATEWAY,DONE,STATIC>
>> locks:  inits:
>> sockaddrs: <DST,GATEWAY>
>>  192.168.134.2 64.7.128.7
>>
>>
>> got message of size 196 on Thu Oct 26 12:21:13 2017
>> RTM_CHANGE: Change Metrics or flags: len 196, pid: 29597, seq 5, errno
>> 0, flags:<UP,DONE,STATIC>
>> locks:  inits: <mtu>
>> sockaddrs: <DST,GATEWAY,IFP,IFA>
>>  192.168.134.2 64.7.128.7 tun0 98-159-244-185.agas1a-dynamic.dsl.sentex.ca
> 
> That makes sense: ppp send bogus request to the routing socket and
> the request has not RTF_HOST flag nor RTA_NETMASK address.
> It seems, earlier kernel code masked this bug somehow but it does not now.
> 
> Anyway, we have two bugs here: ppp sending bad request and kernel having
> no enough checks for this somehow.
> 
> Fixing ppp part would be easy. Please try this patch:

Thanks, that seems to restore the earlier functionality!

	---Mike



-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike at sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/


More information about the freebsd-stable mailing list