Bug 120994 - [patch] alignment violation in chap module of ppp(8) causes bus error on ARM
Summary: [patch] alignment violation in chap module of ppp(8) causes bus error on ARM
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-23 15:00 UTC by Joerg Wallerich
Modified: 2017-12-31 22:36 UTC (History)
0 users

See Also:


Attachments
file.diff (1.32 KB, patch)
2008-02-23 15:00 UTC, Joerg Wallerich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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