]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/mips/mips/freebsd32_machdep.c
Fix compat32 on mips64
authorjhibbits <jhibbits@FreeBSD.org>
Fri, 25 Sep 2020 17:13:45 +0000 (17:13 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Fri, 25 Sep 2020 17:13:45 +0000 (17:13 +0000)
commitc03603af7fea471db09bc4ad8343604501a6be54
treeaea1d51d13964f2fc542afa339b3f64a7f186c41
parent8a51a31229377506e0d6ac89f0979196b892c9ae
Fix compat32 on mips64

Summary:
Two bugs:
* Elf32_Auxinfo is broken, using pointers in the union, which are 64-bits not
  32.
* freebsd32_sysarch() doesn't update the 'user local' register when handling
  MIPS_SET_TLS, leading to a NULL pointer dereference in the 32-bit
  application.

Reviewed by: #mips, brooks
MFC after: 1 week
Sponsored by: Juniper Networks, Inc
Differential Revision: https://reviews.freebsd.org/D26556
sys/mips/include/elf.h
sys/mips/mips/freebsd32_machdep.c