From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE1BCC67871 for ; Mon, 24 Oct 2022 21:58:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229865AbiJXV61 (ORCPT ); Mon, 24 Oct 2022 17:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230460AbiJXV6K (ORCPT ); Mon, 24 Oct 2022 17:58:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 136762F5875 for ; Mon, 24 Oct 2022 13:11:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 39AD2615C4 for ; Mon, 24 Oct 2022 20:09:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90DFDC43147; Mon, 24 Oct 2022 20:09:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1666642196; bh=SkXZZ4LyyFDqzteAu9bkQS6SJhjmL1Mji44IiHEun3M=; h=Date:To:From:Subject:From; b=SEPFz54QGVQpmS/EOQifLCwAYRU/UUidREqGp0dsSqUCnhhhtmDJyQYeZW7vRT2JG azGXwolnpvOar3GxdRKuWkf1y8rToO8SdtyPozpLq7lqhflCFcV4rPkD9qgDUkqiLz PqNxKoHwQZ7pIVASRpZfDZuPoFfkHdbc4FyiL6Ac= Date: Mon, 24 Oct 2022 13:09:55 -0700 To: mm-commits@vger.kernel.org, adobriyan@gmail.com, akpm@linux-foundation.org From: Andrew Morton Subject: + proc-fixup-uptime-test.patch added to mm-nonmm-unstable branch Message-Id: <20221024200956.90DFDC43147@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: proc: fixup uptime selftest has been added to the -mm mm-nonmm-unstable branch. Its filename is proc-fixup-uptime-test.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/proc-fixup-uptime-test.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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 via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Alexey Dobriyan Subject: proc: fixup uptime selftest Date: Mon, 24 Oct 2022 21:08:09 +0300 syscall(3) returns -1 and sets errno on error, unlike "syscall" instruction. Systems which have <= 32/64 CPUs are unaffected. Test won't bounce to all CPUs before completing if there are more of them. Link: https://lkml.kernel.org/r/Y1bUiT7VRXlXPQa1@p183 Fixes: 1f5bd0547654 ("proc: selftests: test /proc/uptime") Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton --- tools/testing/selftests/proc/proc-uptime-002.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/tools/testing/selftests/proc/proc-uptime-002.c~proc-fixup-uptime-test +++ a/tools/testing/selftests/proc/proc-uptime-002.c @@ -17,6 +17,7 @@ // while shifting across CPUs. #undef NDEBUG #include +#include #include #include #include @@ -54,7 +55,7 @@ int main(void) len += sizeof(unsigned long); free(m); m = malloc(len); - } while (sys_sched_getaffinity(0, len, m) == -EINVAL); + } while (sys_sched_getaffinity(0, len, m) == -1 && errno == EINVAL); fd = open("/proc/uptime", O_RDONLY); assert(fd >= 0); _ Patches currently in -mm which might be from adobriyan@gmail.com are proc-give-proc-cmdline-size.patch proc-fixup-uptime-test.patch