The patch titled Subject: mm: remove unnecessary check in alloc_thread_stack_node() has been added to the -mm tree. Its filename is kasan-fork-reset-pointer-tags-of-vmapped-stacks-fix-2.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/kasan-fork-reset-pointer-tags-of-vmapped-stacks-fix-2.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/kasan-fork-reset-pointer-tags-of-vmapped-stacks-fix-2.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Subject: mm: remove unnecessary check in alloc_thread_stack_node() The "stack" pointer cannot be NULL at this point so there is no need to check. Link: https://lkml.kernel.org/r/20220301080706.GB17208@kili Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Cc: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> Cc: Andrey Konovalov <andreyknvl@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/fork.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/kernel/fork.c~kasan-fork-reset-pointer-tags-of-vmapped-stacks-fix-2 +++ a/kernel/fork.c @@ -328,8 +328,7 @@ static int alloc_thread_stack_node(struc * so cache the vm_struct. */ tsk->stack_vm_area = vm; - if (stack) - stack = kasan_reset_tag(stack); + stack = kasan_reset_tag(stack); tsk->stack = stack; return 0; } _ Patches currently in -mm which might be from dan.carpenter@xxxxxxxxxx are kasan-fork-reset-pointer-tags-of-vmapped-stacks-fix-2.patch