NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/55047: Missing COMPAT_43 Syscalls on amd64 for COMPAT_09 and COMPAT_NOMID



The following reply was made to PR kern/55047; it has been noted by GNATS.

From: Paul Goyette <paul%whooppee.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: dplassche%gmail.com@localhost
Subject: Re: kern/55047: Missing COMPAT_43 Syscalls on amd64 for COMPAT_09
 and COMPAT_NOMID
Date: Thu, 5 Mar 2020 16:30:30 -0800 (PST)

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.
 
 --0-1223632841-1583454630=:23605
 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
 
 This time with patch attached!  :)
 
 On Fri, 6 Mar 2020, Paul Goyette wrote:
 
 > The following reply was made to PR kern/55047; it has been noted by GNATS.
 >
 > From: Paul Goyette <paul%whooppee.com@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc: Dan Plassche <dplassche%gmail.com@localhost>
 > Subject: Re: kern/55047: Missing COMPAT_43 Syscalls on amd64 for COMPAT_09
 > and COMPAT_NOMID
 > Date: Thu, 5 Mar 2020 16:17:33 -0800 (PST)
 >
 > Dan,
 >
 > I think I have this!
 >
 > Can you try something:
 >
 > 1. Apply the attached patch to $SRC/sys/compat/netbsd32/syscalls.master
 > 2. Re-generate the various syscall files using
 >
 >     # cd $SRC/sys/compat/netbsd32
 >     # /bin/sh $SRC/sys/kern/makesyscalls.sh syscalls.conf syscalls.master
 >
 > 3. Rebuild and install your kernel and modules
 >
 > I _think_ this will address all of the syscalls you referenced, except
 > for osigvec which should already be handled correctly.
 >
 > Short analysis:  the syscalls.master file uses "sys" prefix for these
 > syscalls, since they don't need a wrapper.  But it says to load the
 > compat_netbsd32_43 module, while the actual sys_* implementations are
 > located in the compat_43 module.  The patch tells it to load from the
 > correct module.
 >
 > Thanks!
 >
 >
 > +--------------------+--------------------------+-----------------------+
 > | Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
 > | (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
 > | Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
 > +--------------------+--------------------------+-----------------------+
 >
 >
 > !DSPAM:5e61977014061860111509!
 >
 >
 
 +--------------------+--------------------------+-----------------------+
 | Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
 | (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
 | Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
 +--------------------+--------------------------+-----------------------+
 --0-1223632841-1583454630=:23605
 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=PR-55047.patch
 Content-Transfer-Encoding: BASE64
 Content-ID: <Pine.NEB.4.64.2003051630300.23605%speedy.whooppee.com@localhost>
 Content-Description: 
 Content-Disposition: attachment; filename=PR-55047.patch
 
 SW5kZXg6IHN5c2NhbGxzLm1hc3Rlcg0KPT09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
 PQ0KUkNTIGZpbGU6IC9jdnNyb290L3NyYy9zeXMvY29tcGF0L25ldGJzZDMy
 L3N5c2NhbGxzLm1hc3Rlcix2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTMx
 DQpkaWZmIC11IC1wIC1yMS4xMzEgc3lzY2FsbHMubWFzdGVyDQotLS0gc3lz
 Y2FsbHMubWFzdGVyCTE4IEphbiAyMDIwIDA3OjMzOjI0IC0wMDAwCTEuMTMx
 DQorKysgc3lzY2FsbHMubWFzdGVyCTYgTWFyIDIwMjAgMDA6MTI6NDUgLTAw
 MDANCkBAIC0xODMsNyArMTgzLDcgQEANCiAJCQl7IGludHxuZXRic2QzMnx8
 b2dldGtlcm5pbmZvKGludCBvcCwgXA0KIAkJCSAgICBuZXRic2QzMl9jaGFy
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