]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: fix handling of save_stack_trace sentinel (x86 only)
authorKris Van Hees <kris.van.hees@oracle.com>
Mon, 3 Apr 2017 12:18:53 +0000 (08:18 -0400)
committerKris Van Hees <kris.van.hees@oracle.com>
Mon, 3 Apr 2017 16:11:53 +0000 (12:11 -0400)
commit06c6bae4f7ff9220edbc95143592f241097ab152
tree0b9b88c095d620b395e37a1cc1cde7155179431e
parent2030a00e9d90477544aec48220d865979b8ab57c
dtrace: fix handling of save_stack_trace sentinel (x86 only)

On x86 only, when save_stack_trace() writes less stack frames to the
buffer than there is space for, a ULONG_MAX is added as sentinel.  The
DTrace code was mistakenly treating the buffer as always ending with a
ULONG_MAX.

Orabug: 25727046
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Tomas Jedlicka <tomas.jedlicka@oracle.com>
kernel/dtrace/dtrace_os.c