[PATCH nptl] Fix memory overwrite bug in pthread_attr_getaffinity().

2010-01-11 Thread Chris Metcalf
If the caller requests fewer bytes of cpu_set_t data than are available from the system, the code will still copy all of the system's data to the user, overwriting additional memory. Signed-off-by: Chris Metcalf --- .../unix/sysv/linux/pthread_attr_getaffinity.c |8 +++- 1 files chan

Re: [PATCH nptl] Fix memory overwrite bug in pthread_attr_getaffinity().

2010-01-11 Thread Carmelo AMOROSO
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Metcalf wrote: > If the caller requests fewer bytes of cpu_set_t data than are > available from the system, the code will still copy all of the > system's data to the user, overwriting additional memory. > > Signed-off-by: Chris Metcalf > --- >

Re: [PATCH nptl] Fix memory overwrite bug in pthread_attr_getaffinity().

2010-01-11 Thread Carmelo AMOROSO
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Metcalf wrote: > If the caller requests fewer bytes of cpu_set_t data than are > available from the system, the code will still copy all of the > system's data to the user, overwriting additional memory. > > Signed-off-by: Chris Metcalf > --- >

Re: [PATCH nptl] Fix memory overwrite bug in pthread_attr_getaffinity().

2010-01-11 Thread Chris Metcalf
On 1/11/2010 12:47 PM, Carmelo AMOROSO wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Chris Metcalf wrote: > >> If the caller requests fewer bytes of cpu_set_t data than are >> available from the system, the code will still copy all of the >> system's data to the user, overwriting

Re: [PATCH nptl] Fix memory overwrite bug in pthread_attr_getaffinity().

2010-01-12 Thread Carmelo AMOROSO
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Metcalf wrote: > On 1/11/2010 12:47 PM, Carmelo AMOROSO wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Chris Metcalf wrote: >> >>> If the caller requests fewer bytes of cpu_set_t data than are >>> available from the system, t

Re: [PATCH nptl] Fix memory overwrite bug in pthread_attr_getaffinity().

2010-01-12 Thread Chris Metcalf
On 1/12/2010 3:03 AM, Carmelo AMOROSO wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Chris Metcalf wrote: > >> On 1/11/2010 12:47 PM, Carmelo AMOROSO wrote: >> >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA1 >>> >>> Chris Metcalf wrote: >>> >>> If the call