Skip to contentSkip to conversation

current->addr_limit

DISCUSSION DINH Viet Hoa 2 participants 2 messages Oct 31, 2001

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Followup to:  <[email protected]>
By author:    DINH Viet Hoa <[email protected]>
In newsgroup: linux.dev.kernel
Quoted 6 lines

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 ?

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]>