SVNews r330876

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-03-13 19:56:10 - r330876 by brooks (Brooks Davis)

Complete list of files affected by revision r330876:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/dev/isp/isp_freebsd.c  

Commit message:

Fix ISP_FC_LIP and ISP_RESCAN on big-endian 64-bit systems.

For _IO() ioctls, addr is a pointer to uap->data which is a caddr_t.
When the caddr_t stores an int, dereferencing addr as an (int *) results
in truncation on little-endian 64-bit systems and corruption (owing to
extracting top bits) on big-endian 64-bit systems. In practice the
value of chan was probably always zero on systems of the latter type as
all such FreeBSD platforms use a register-based calling convention.

Reviewed by: mav
Obtained from: CheriBSD
MFC after: 1 week
Sponsored by: DARPA, AFRL
Differential Revision:


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 14 ms, 1 file printed. Current time is 2018-03-18 09:41:10. All times are in UTC/GMT.