The patch titled Subject: lib/stackdepot.c: allow the stack trace hash to be zero has been added to the -mm tree. Its filename is lib-stackdepotc-allow-the-stack-trace-hash-to-be-zero.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/lib-stackdepotc-allow-the-stack-trace-hash-to-be-zero.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/lib-stackdepotc-allow-the-stack-trace-hash-to-be-zero.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Alexander Potapenko <glider@xxxxxxxxxx> Subject: lib/stackdepot.c: allow the stack trace hash to be zero Do not bail out from depot_save_stack() if the stack trace has zero hash. Initially depot_save_stack() silently dropped stack traces with zero hashes, however there's actually no point in reserving this zero value. Reported-by: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx> Signed-off-by: Alexander Potapenko <glider@xxxxxxxxxx> Acked-by: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/stackdepot.c | 4 ---- 1 file changed, 4 deletions(-) diff -puN lib/stackdepot.c~lib-stackdepotc-allow-the-stack-trace-hash-to-be-zero lib/stackdepot.c --- a/lib/stackdepot.c~lib-stackdepotc-allow-the-stack-trace-hash-to-be-zero +++ a/lib/stackdepot.c @@ -210,10 +210,6 @@ depot_stack_handle_t depot_save_stack(st goto fast_exit; hash = hash_stack(trace->entries, trace->nr_entries); - /* Bad luck, we won't store this stack. */ - if (hash == 0) - goto exit; - bucket = &stack_table[hash & STACK_HASH_MASK]; /* _ Patches currently in -mm which might be from glider@xxxxxxxxxx are lib-stackdepotc-allow-the-stack-trace-hash-to-be-zero.patch mm-kasan-initial-memory-quarantine-implementation.patch mm-kasan-initial-memory-quarantine-implementation-v8.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html