Bug 125501

Summary: pppd segfaults when ms-chap is in use on AMD64
Product: [Fedora] Fedora Reporter: Oleg Makarenko <omakarenko>
Component: pppAssignee: Thomas Woerner <twoerner>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 2   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: http://marc.theaimsgroup.com/?l=linux-ppp&m=108667897423901&w=2
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-06-21 10:59:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Oleg Makarenko 2004-06-08 09:05:44 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Description of problem:
pppd segfaults with signal 11 when ms-chap authentication is used.

The problem is with sha1.c file that assumes that unsigned long is 32-
bits wide (on AMD64 in is 64-bits wide).

Possible solutions are:

1. get rid of sha1.c and use openssl's sha implementation. that 
requires some trivial pppd patching

or 

2. Patch sha1.c to use int32 instead of unsigned long (for example as 
in

http://marc.theaimsgroup.com/?l=linux-ppp&m=108667897423901&w=2
)

I would prefer to link in libcrypto.


Version-Release number of selected component (if applicable):
ppp-2.4.2-2

How reproducible:
Always

Steps to Reproduce:
run pppd in ms-chap mode
    

Actual Results:  pppd died with signal 11 message in /var/log/message

Additional info:

Comment 1 Thomas Woerner 2004-06-21 10:59:05 UTC
Fixed in rawhide in rpm ppp-2.4.2-3.1 or newer.