current->addr_limit
When changing current->addr_limit through the macros get_fs() and set_fs() in the kernel or in a kernel thread, do we need to lock anything to prevent anything else from accessing our custom value of current->addr_limit ?
thanks.
Signature · 3 lines
DINH Viêt Hoà, ingénieur associé, projet PARIS IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France Tél: +33 (0) 2 99 84 75 98, Fax: +33 (0) 2 99 84 25 28
Followup to: <[email protected]> By author: DINH Viet Hoa <[email protected]> In newsgroup: linux.dev.kernel
Quoted 6 lines
When changing
current->addr_limitthrough the macrosget_fs()andset_fs()in the kernel or in a kernel thread, do we need to lock anything to prevent anything else from accessing our custom value ofcurrent->addr_limit?
No, the currently running process owns "current".
-hpa
Signature · 3 lines
<[email protected]> at work, <[email protected]> in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt <[email protected]>