Re: [PATCH v2 6/6] powerpc: Implement user_access_begin and friends

2020-01-24 Thread Christophe Leroy
Le 23/01/2020 à 13:31, Michael Ellerman a écrit : Michael Ellerman writes: Christophe Leroy writes: Today, when a function like strncpy_from_user() is called, the userspace access protection is de-activated and re-activated for every word read. By implementing user_access_begin and friend

Re: [PATCH v2 6/6] powerpc: Implement user_access_begin and friends

2020-01-23 Thread Michael Ellerman
Michael Ellerman writes: > Christophe Leroy writes: >> Today, when a function like strncpy_from_user() is called, >> the userspace access protection is de-activated and re-activated >> for every word read. >> >> By implementing user_access_begin and friends, the protection >> is de-activated at t

Re: [PATCH v2 6/6] powerpc: Implement user_access_begin and friends

2020-01-23 Thread Michael Ellerman
Christophe Leroy writes: > Today, when a function like strncpy_from_user() is called, > the userspace access protection is de-activated and re-activated > for every word read. > > By implementing user_access_begin and friends, the protection > is de-activated at the beginning of the copy and re-ac

[PATCH v2 6/6] powerpc: Implement user_access_begin and friends

2020-01-22 Thread Christophe Leroy
Today, when a function like strncpy_from_user() is called, the userspace access protection is de-activated and re-activated for every word read. By implementing user_access_begin and friends, the protection is de-activated at the beginning of the copy and re-activated at the end. Implement user_a