From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.166.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E2CA473C73 for ; Wed, 12 Aug 2026 17:40:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.166.231 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786556460; cv=none; b=DfnDTj1R78D97apy0Hu20LlJVMFdEqUnQnFQKtfc9pcA+aPAnDwaqSpCYLTJx+ExDzjjBtxFS7wbWbubhln3n3WLi9pphdd4wqaDNWNP/c20F1KYX5W6l3s761FR1VZBFlX+S39oVOQfqlxorAIKUpu1SCPZVOe1W0CqlC98K1Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786556460; c=relaxed/simple; bh=JuGQlfA3zgIraOxula7WgOztTGsCcKU4o/xpMXTOJCw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=J/oJxWGbAZhzChLCqzIk8hfMJlkhWzauGNe15uADKgCYDlnqsIMFnU+dU3kta4jHwJ7g3hmBNaKLuI3x+Cfj3nhm/sZeIWrkMZGEk7tU54VUf6qCKXtsAau7AB+7RHLf1rXD4bclzpoNUC1B8HEknzTkj9Ov/23YDi9F5x/vlSw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=h0QatlwV; arc=none smtp.client-ip=192.19.166.231 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="h0QatlwV" Received: from mail-acc-it-01.broadcom.com (mail-acc-it-01.acc.broadcom.net [10.35.36.83]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 43D33C0000F5; Wed, 12 Aug 2026 10:33:01 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 43D33C0000F5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1786555981; bh=JuGQlfA3zgIraOxula7WgOztTGsCcKU4o/xpMXTOJCw=; h=From:To:Cc:Subject:Date:From; b=h0QatlwVObtyISLaxAJLNawU0hCU0iWVSzXbPVXou2iLPICDMZBdoL+Nyh5hOXenS 6pSDmDnrPvc82JJA1UoqlrjuA8woDn2yuMPTyO5pY3VvNwgX/CYjSm3wxF4e9WaHsS ly1E+306e/e+uoQRo77+zVSBaFVyZzSO0iCunK+U= Received: from stbirv-lnx-1.igp.broadcom.net (stbirv-lnx-1.igp.broadcom.net [10.67.48.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail-acc-it-01.broadcom.com (Postfix) with ESMTPSA id 67A1EAEA2; Wed, 12 Aug 2026 13:33:00 -0400 (EDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Richard Weinberger , Anton Ivanov , Johannes Berg , Tiwei Bie , Benjamin Berg , linux-um@lists.infradead.org (open list:USER-MODE LINUX (UML)) Subject: [PATCH] um: Add definition of __NR_close_range for older host OSs Date: Wed, 12 Aug 2026 10:32:49 -0700 Message-Id: <20260812173249.98435-1-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit __NR_close_range was introduced with 278a5fbaed89dacd04e9d052f4594ffd0e0585de ("open: add close_range()") which is present in Linux >= 5.9. Older hosts running a kernel version prior to that range currently fail to build due to that missing system call number definition. Fixes: f82a9e7b9fa9 ("um: fix execve stub execution on old host OSs") Signed-off-by: Florian Fainelli --- arch/um/include/shared/skas/stub-data.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/um/include/shared/skas/stub-data.h b/arch/um/include/shared/skas/stub-data.h index 27db38e95df9..1230a325debc 100644 --- a/arch/um/include/shared/skas/stub-data.h +++ b/arch/um/include/shared/skas/stub-data.h @@ -9,11 +9,20 @@ #define __STUB_DATA_H #include +#include #include #include #include #include +#ifndef __NR_close_range +# if defined(__alpha__) +# define __NR_close_range 546 +# else +# define __NR_close_range 436 +# endif +#endif + #define FUTEX_IN_CHILD 0 #define FUTEX_IN_KERN 1 -- 2.34.1