But this way you throw away a lot of functionality, make the existence
of two pointers pointless, cause pthread_self() to change across fork
and force NPTL to copy thread state.
How about instead doing a verify_area in copy_process, putting the
child_settid address and the tid in two child registers and assigning it
in assembly in ret_from_fork?
Alternatively you could also manually call the copy-on-write handler
functions but this adds complexity for little gain.
--=-6b0piB+VK0x4L+s8VBYM
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQA92Nj+djkty3ft5+cRAh2YAJ9lqlV0xUUgXNKmVvRKA5vGNGHMjQCg3hzm
wOMLZTxaVBuIsTkNPoSxw30=
=WIQf
-----END PGP SIGNATURE-----
--=-6b0piB+VK0x4L+s8VBYM--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/