From patchwork Tue Sep 10 10:39:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 1160244 X-Patchwork-Delegate: yszhou4tech@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lcH3VNVB"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hgDcqasX"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46SM3v3397z9sPF for ; Tue, 10 Sep 2019 20:39:55 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xiCw1e5gojd39BxTR/cSwHFuDKzTkc4OHbMrD0VYr4w=; b=lcH3VNVB9pAmZo I/71rkrSBEQs5PhWdErcJ23JemhjLFIQVZOrAjyOFc2CfICNDDjH7aAuB1UvDMkvZkZCTN4UZvP1F lMP87bk+a4E2u0RkY75n9k1l6T0QzYo1w6NR44kyzbg3IyLzsjyypuSBJFXnppwzKLpWsFL88exSR Y3o4xuuUUiWz9Q+y/zyTlaMX4fiNgHpk4MFHGkF3Vyvu0gg3dtV+Rr/wEiQEXrQ3dEdL3kFueIrD+ i7EmplJpBKfa75gR/R+3/QTJHERnMLLCX8diVCk1CCBBKybhPaY7WGVQ8hssAVqKXDlm1sSIoQmtK Peg4ucHPqKkEDZcXQQMQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i7dYo-0005Mw-Jf; Tue, 10 Sep 2019 10:39:46 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i7dYl-0005Lp-SO for openwrt-devel@lists.openwrt.org; Tue, 10 Sep 2019 10:39:45 +0000 Received: by mail-pf1-x443.google.com with SMTP id y22so11311371pfr.3 for ; Tue, 10 Sep 2019 03:39:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mfG+ldvltN5JDBf6JD3mcNOz+y7BMKgHAbqGmcCOR9M=; b=hgDcqasXf98pVKIvGMSSAknLMUD0EOWX4ysZ7blMikfvT2Jdj2DyIJ5YpL+kvDpdJn lvzn8NifOVxbNG3Ula0+pQQwkFZz61VhwadeGu6aKW98iDnHoFfxbhfL3WCvc8sp06xf n6yE6m+ycIkT9Yzs0eJfKZBgECgxEQ07coReEUMJgZu6fW4VfoBtPo5OgBVkgTIShKMR oufV7iz8dTMMivX65iCWaxxc9A+2+HR6CSd99XfUVvXhedsAeZyRllJFVe89fEMU7uco /jmuUVPQPlCcG+KRg3osZZA/Mg3irSJndlvZEp8bm2rvgdClXoP+9hXrorxK1riLnx/K uCPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mfG+ldvltN5JDBf6JD3mcNOz+y7BMKgHAbqGmcCOR9M=; b=L+jTbD9T+iAMRT1CHdm0kabIm6kW0MFt0GIuFmV/p+wMWxP+wPT9RNlUHkbFC+Keq7 53nyyv8zl8Gq5iGsHa5RhYcj9UcUAwlvT5nIR6MNd7rGPLyw0Uj7c4DY4J2Yv8ufU7fQ yTENoUi81DJGyM1h8vcTYtN4/G46POAdwQby+DL/zLiPannH9NjorBaFNWTY5HZOv7D9 vwYs8kpCX0U4b/Ig4hltNB7jKoe9VCjTHdn8Lsg1oeqgQkf70j2FQnsR2f6SnqOt17u1 CodNELz+0USxs5PI0Ey1LF/nAYpRCqDGrwrQC1yXCdS98jFZcO0SE7ZfF+11FG+p1KvR 7khw== X-Gm-Message-State: APjAAAVIHJQZBbkZrRXkLQy4j/jT1eEYWo55sToBgQUaMQ4rDVNnXgsI fFYiblqflyWDS5w09Qzjp2I= X-Google-Smtp-Source: APXvYqy+CZ1iSxsFhgMdHfIhyh02uFf5TXGZBxTYvihuX4mb16JN1xe02f6LWaxKYlWR+Qi/8fqJcw== X-Received: by 2002:a65:4304:: with SMTP id j4mr27875320pgq.419.1568111978709; Tue, 10 Sep 2019 03:39:38 -0700 (PDT) Received: from titan.hq.cloud.yunionyun.com ([47.244.19.249]) by smtp.gmail.com with ESMTPSA id i9sm35278482pgo.46.2019.09.10.03.39.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Sep 2019 03:39:37 -0700 (PDT) From: Yousong Zhou To: luka@openwrt.org Date: Tue, 10 Sep 2019 10:39:23 +0000 Message-Id: <20190910103924.1215-1-yszhou4tech@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190910_033943_919888_FF375657 X-CRM114-Status: UNSURE ( 9.19 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (yszhou4tech[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:443 listed in] [list.dnswl.org] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [OpenWrt-Devel] [PATCH 1/2] config: kernel: add KERNEL_X86_VSYSCALL_EMULATION X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yousong Zhou , openwrt-devel@lists.openwrt.org Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Binaries in container images may need this. E.g. nginx:1.7.9 used in k8s default deployment manifest file for demostration [1] [1] https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#creating-a-deployment Signed-off-by: Yousong Zhou --- config/Config-kernel.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index eeda3e1b6f..d9a9fe687f 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -54,6 +54,24 @@ config KERNEL_ARM_PMU default n depends on (arm || aarch64) +config KERNEL_X86_VSYSCALL_EMULATION + bool "Enable vsyscall emulation" + default n + depends on x86_64 + help + This enables emulation of the legacy vsyscall page. Disabling + it is roughly equivalent to booting with vsyscall=none, except + that it will also disable the helpful warning if a program + tries to use a vsyscall. With this option set to N, offending + programs will just segfault, citing addresses of the form + 0xffffffffff600?00. + + This option is required by many programs built before 2013, and + care should be used even with newer programs if set to N. + + Disabling this option saves about 7K of kernel size and + possibly 4K of additional runtime pagetable memory. + config KERNEL_PERF_EVENTS bool "Compile the kernel with performance events and counters" default n From patchwork Tue Sep 10 10:39:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 1160246 X-Patchwork-Delegate: yszhou4tech@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gyfsgL3b"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GuXCIFsR"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46SM3x6lxgz9sNf for ; Tue, 10 Sep 2019 20:39:57 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SbRUz4xy4IMi0Yk499vgHfgOdbDdoRXwzPIq0+RBTiA=; b=gyfsgL3b+6JCGE KzXeEeJE88eYtf30Okw7OZUancYtwNBVC4QwLIV64v+uTv/QC9Ew7ppeHni0QKU5z+cQKiEDoveLN bPrjvsCm6PIMfl2JdJCz+pl2olkoTZPSwTMN5y3zarMZD+p9kE1TBrztIkBNCBfwaRsSS+r3wMKMr JJBFJl4l/xXI1OLzxHZfmGKhrYWloB7AuTOgK0wl5KdXDt8beuR/EgvwKlwRcvOH4RCw1pDVu8H+i n7wq+NGNkVtvLdhkbvVlYvoi0nAZFd/NJkR2uC1YvgBkricjBSKsJphDtFsxNExI6M093H5LzBjy/ V5zVZFIh7XlVvKjwsOlQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i7dYt-0005VP-Sc; Tue, 10 Sep 2019 10:39:51 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i7dYn-0005Lx-H1 for openwrt-devel@lists.openwrt.org; Tue, 10 Sep 2019 10:39:47 +0000 Received: by mail-pf1-x436.google.com with SMTP id y5so8547018pfo.4 for ; Tue, 10 Sep 2019 03:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=k5XCtSKTB2N+7wu5+xyO3XjYbQ38eU18vXOA34txsaw=; b=GuXCIFsRh2zXv+KdOtojJOxe1D5aJEHEOB8W8FsooBjnpVR6XwGJQ9vuPnDOVALO0Y ru2h1lVKvC8IcTh/n7z9cpaY8U8+VK2iVjQOis5gjZddEmrnGCbQ5pHrNtqdxDymLTBm zKg+ZxCC0510hY6cQh2fc7XilO0qYIrDJ0EBkw5RtE+x6ArKCob5Otmh8IHlRhT/gCux NjC4IINAWVdtnaQp3kyhfPP41uaukdesTNzxfJnwwoxe4FD0QUFKmBB3mOv95pFFtuBh oKY3O8vnFlKUzVtjR1VtN2O+NF6Q3DK5U4K4lRkl200+3Lplvx6QTL02iIyRpaIaEMb6 +gxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=k5XCtSKTB2N+7wu5+xyO3XjYbQ38eU18vXOA34txsaw=; b=QKxbfoUWMBUUUPoeZy2zo8g0TMl2ftmpR8MtZqkAdeYP39xpxKLLinj8979EANu4Uw i9fQjXHN5hJ6gUuX+DK4Zz9pDcnEcb/Y4cTDuKe4DbPyc1zf5/e+SG4zNADg8LjE9oz7 trGR5LECfZc5UFQi1okFwdAUd8InFlwRtX65eMGv1GdO1TyPzhc1I4RmAhLedAWIDgLe TbA0exZNMU1dOnh8mIBasqYCqVS+mE5BZkoodc4eiImtbyQoZL3as09biPQDHwzWGRw8 rMIbnn0EiqTcxaGKSiDP687fhNsU1SoL3pak0tCZwpxdbxDxbk3jxry08oSCnPXm/MLL qG3w== X-Gm-Message-State: APjAAAXq16T7YEathCowfgNq3tQJRTjRRsKs5goKQS0sz1piBdHY1I82 ZY8unktsfvXWCdnI9a30TqE= X-Google-Smtp-Source: APXvYqwD3srWXtPhp40BDW6MZMncmwgQhWgXF115N5F9gGe4bMcHIbHLy+koXM7y7fAlnmKvSQ0b8g== X-Received: by 2002:a63:1c22:: with SMTP id c34mr26988255pgc.56.1568111982097; Tue, 10 Sep 2019 03:39:42 -0700 (PDT) Received: from titan.hq.cloud.yunionyun.com ([47.244.19.249]) by smtp.gmail.com with ESMTPSA id i9sm35278482pgo.46.2019.09.10.03.39.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Sep 2019 03:39:41 -0700 (PDT) From: Yousong Zhou To: luka@openwrt.org Date: Tue, 10 Sep 2019 10:39:24 +0000 Message-Id: <20190910103924.1215-2-yszhou4tech@gmail.com> In-Reply-To: <20190910103924.1215-1-yszhou4tech@gmail.com> References: <20190910103924.1215-1-yszhou4tech@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190910_033945_561435_186F71D3 X-CRM114-Status: GOOD ( 10.61 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:436 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (yszhou4tech[at]gmail.com) 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [OpenWrt-Devel] [PATCH 2/2] config: kernel: remove KERNEL_LXC_MISC X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yousong Zhou , openwrt-devel@lists.openwrt.org Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Kernel features are neutral. The two cascaded features can also be useful for other container related tools It's also less error-prone if only kconfig symbols from the kernel are prefixed KERNEL_ Signed-off-by: Yousong Zhou --- Changes will also need to be applied to packages feed, see [1] [1] https://github.com/openwrt/packages/pull/9958 config/Config-kernel.in | 55 +++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 33 deletions(-) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index d9a9fe687f..310c6dfd07 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -623,41 +623,30 @@ if KERNEL_NAMESPACES endif -# -# LXC related symbols -# - -config KERNEL_LXC_MISC - bool "Enable miscellaneous LXC related options" - default y if !SMALL_FLASH - -if KERNEL_LXC_MISC - - config KERNEL_DEVPTS_MULTIPLE_INSTANCES - bool "Support multiple instances of devpts" - default y - help - Enable support for multiple instances of devpts filesystem. - If you want to have isolated PTY namespaces (eg: in containers), - say Y here. Otherwise, say N. If enabled, each mount of devpts - filesystem with the '-o newinstance' option will create an - independent PTY namespace. - - config KERNEL_POSIX_MQUEUE - bool "POSIX Message Queues" - default y - help - POSIX variant of message queues is a part of IPC. In POSIX message - queues every message has a priority which decides about succession - of receiving it by a process. If you want to compile and run - programs written e.g. for Solaris with use of its POSIX message - queues (functions mq_*) say Y here. +config KERNEL_DEVPTS_MULTIPLE_INSTANCES + bool "Support multiple instances of devpts" + default y + help + Enable support for multiple instances of devpts filesystem. + If you want to have isolated PTY namespaces (eg: in containers), + say Y here. Otherwise, say N. If enabled, each mount of devpts + filesystem with the '-o newinstance' option will create an + independent PTY namespace. + +config KERNEL_POSIX_MQUEUE + bool "POSIX Message Queues" + default y + help + POSIX variant of message queues is a part of IPC. In POSIX message + queues every message has a priority which decides about succession + of receiving it by a process. If you want to compile and run + programs written e.g. for Solaris with use of its POSIX message + queues (functions mq_*) say Y here. - POSIX message queues are visible as a filesystem called 'mqueue' - and can be mounted somewhere if you want to do filesystem - operations on message queues. + POSIX message queues are visible as a filesystem called 'mqueue' + and can be mounted somewhere if you want to do filesystem + operations on message queues. -endif config KERNEL_SECCOMP_FILTER bool