[PATCH] fix length bug in affinity mask displays (try 3)

Joe Korty joe.korty at gmail.com
Fri Jan 8 16:28:33 UTC 2016


On Thu, Jan 7, 2016 at 5:00 PM, Dmitry V. Levin <ldv at altlinux.org> wrote:

> On Wed, Jan 06, 2016 at 09:27:12AM -0500, Joe Korty wrote:
> > Fix mask length bug in print_affinitylist.
> >
> > The incoming length argument is in terms of bytes not
> > longs.
> >
> > As a result, a buffer overrun occurs and either four or
> > eight times more mask data than is actually available
> > is displayed.
>
> The cpu set decoder was really strange, thanks for reporting.
> I've pushed commit v4.11-122-g6bf08e3 that changes this decoder to print
> cpu_set_t as a set of integers, similar to the way fd_set is printed
> as a set of descriptors.
>
>
> --
> ldv
>


Hi Dmitry,
Thanks for replying.  I have had a hard time posting to
the list, so it is nice to know that the email actually
got through to someone on the third try ...

PS: not sure that the 'set of integers' idea is correct in
a big-endian, 64-bit environment.  I know the version I
posted is correct in any mix of 32 and 64 bit environments
and big and little endian environments.

Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160108/646679a9/attachment.html>


More information about the Strace-devel mailing list