Bug 120994

Summary: [patch] alignment violation in chap module of ppp(8) causes bus error on ARM
Product: Base System Reporter: Joerg Wallerich <joerg>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me Keywords: patch
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Joerg Wallerich 2008-02-23 15:00:07 UTC
The chap code in ppp(8) provides a target buffer to MD5Final()
that is not word aligned. This leads to a bus error in libmd while
computing a response to the CHAP challenge string.

Fix: Provide a temporary word aligned buffer to store the MD5 hash
and copy the hash into the CHAP response string using memcpy().

Patch attached with submission follows:
How-To-Repeat: Authenticate a ppp/pppoe session unsing CHAP
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:45 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:40:10 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>