Skip to contentSkip to conversation

race conditions in ia32 subsystem

Linux-ia64 David Mosberger 2 participants 2 messages Jan 18, 2002

lore
Share & tools
lore
#0 lore raw

A while we discussed the race conditions that are present in the ia32 subsystem when the page size is greater than 4KB. It occurred to me that these problems can be fixed easily and cleanly by using the get_user_pages() routine (this routine was introduced in 2.4.17, if memory serves).

The basic idea would be to use the address space's mmap_sem instead of the global ia32_mmap_sem and to use get_user_pages() instead of copy_from_user()/copy_to_user() to access memory.

Does someone want to take a stab at doing this?

	--david
#1 lore raw

David-

I'm up for taking a stab at this. It might be a week or so, I'm pretty busy right now, but I'll get to it.

Quoted 18 lines · David Mosberger

A while we discussed the race conditions that are present in the ia32 subsystem when the page size is greater than 4KB. It occurred to me that these problems can be fixed easily and cleanly by using the get_user_pages() routine (this routine was introduced in 2.4.17, if memory serves).

The basic idea would be to use the address space's mmap_sem instead of the global ia32_mmap_sem and to use get_user_pages() instead of copy_from_user()/copy_to_user() to access memory.

Does someone want to take a stab at doing this?

	--david

_______________________________________________
Linux-IA64 mailing list
[email protected]
http://lists.linuxia64.org/lists/listinfo/linux-ia64

Signature · 4 lines
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
[email protected]
Ph: 303/652-0870x117