From patchwork Thu Oct 19 21:41:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 828363 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BuM6Jrz+"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="JtBlEHSn"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yJ2kr1VBNz9t6M for ; Fri, 20 Oct 2017 08:54:12 +1100 (AEDT) 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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id:Date:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tvdT4E53EI4N5ZekV2qw9wtvfhbRidPSLJtx5IieJ8Q=; b=BuM6Jrz+9ifw6T 18DVvBQtuPoBzcJrtZOyd61OzvCWRa9LVDZqyxc03quPkT9aVbHGAfbPuy+zQx1vbLAk0RBcosZPj qtP0d2jdaJL0FAC9g9/I9nbxBHMCp8ASIIXi/RukezLypR7Y5bld005BpkQNeR/Msz4E0VV0SNE8Q 0vEgLNwVpf0lHPHyjjEb70WZEj6snlwgR80Hwx7qp+n0eznQII7jpTDRton61dqUo0s62k0u38Xhf oiY0hda/japiJnXMD1/EEHQSh1TJmCjVGoU9m4WGcRClenxQSf5lyLXmgk6ZVjoPgOBnBXsXEalYc CUiVnb4st8xQBqcb1f0g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e5IlO-0008GF-VM; Thu, 19 Oct 2017 21:54:02 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e5IZw-0001Jr-HX for lede-dev@lists.infradead.org; Thu, 19 Oct 2017 21:42:20 +0000 Received: by mail-wm0-x244.google.com with SMTP id l68so18935175wmd.5 for ; Thu, 19 Oct 2017 14:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=J+BTIlvMVpzqFqlUB7itITGgHOGlYUfgXbYlPfd7B10=; b=JtBlEHSnOQMNfGYoIMB0TDcnhiZXB8BWk9sJM8jp9rifMUSTzMMhNuChzcGoBqxxgC Lse5jJoikVqi8XRKdsRbd20ON64dyCXFxWHd4ynUf6XkwHYRnsRLi/4QoS5AgQ66BU/L DETiVgZBnu3wsbVXBShL2CvZG8gq7Zgj7H0O/iZdMAEwIQR9GjSFCytmOv84fvj68UM3 v+pLoOmMeVcYbXBiHs65gEKjCYbFnHNfV819m5g/TkHsw6NIiWe/GtSNQ7VrUgQFeXq8 2TGrMlqyggMkDzcGUWN+ZJ6wv9LoNJUt7F6v+1ifBNoUzfnxNHieR7NMvexsE+zQfycH 4gFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=J+BTIlvMVpzqFqlUB7itITGgHOGlYUfgXbYlPfd7B10=; b=avJnul5QeGJDCrMEpCLWnt5b8XY6+pTUDnmgRXqp/kLBkHZ0i6COPA1D/pmru54lku JRtDCb1pgR587bh1lEfbo2zpZfKr0FtV90eALJet+EyujQVxY7PGkJf/WhYE5yZozCEI ZJciNPcBieg/VvGUUa3k/OvOYpKeIM2d6JfcMUCd7nCiU/qmMcHmu7lWKTZoBVE/QstZ MBQypHkYkGivLHBy97PEe+FtU+KA/nARNndUuEl1GE6RQT+iLeNIlPL7jmGMXz0fahCY c4WkIc67TVyK1fp18gH3Jw3BxagNCqX6GYxkSvixpf4N71GFI9SBGIxBLJC+/AsL3d8n CgYA== X-Gm-Message-State: AMCzsaUp32GHr+r8HEkEloNg1xwO/PwjxgWTj9suLm2WFzrU1jhp5dce RzGIcNXvVjAZXA3LhCHt2IwvavQf X-Google-Smtp-Source: ABhQp+SGelYID4QviGNuztgI7EYb4cxwFJPbwyA4ns2QWH7pI0EOBWCq1M6c+3hCF3zYZgTwlKS/0g== X-Received: by 10.28.128.194 with SMTP id b185mr2647103wmd.152.1508449310113; Thu, 19 Oct 2017 14:41:50 -0700 (PDT) Received: from debian64.daheim (p200300D5FBC57FFC0000000000000830.dip0.t-ipconnect.de. [2003:d5:fbc5:7ffc::830]) by smtp.gmail.com with ESMTPSA id 5sm22168025wrt.59.2017.10.19.14.41.49 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Oct 2017 14:41:49 -0700 (PDT) Received: from chuck by debian64.daheim with local (Exim 4.89) (envelope-from ) id 1e5IZY-0003tG-DB for lede-dev@lists.infradead.org; Thu, 19 Oct 2017 23:41:48 +0200 From: Christian Lamparter To: lede-dev@lists.infradead.org Date: Thu, 19 Oct 2017 23:41:48 +0200 Message-Id: <20171019214148.14908-1-chunkeey@gmail.com> X-Mailer: git-send-email 2.15.0.rc1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171019_144213_113148_98202B64 X-CRM114-Status: GOOD ( 11.04 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:400c:c09:0:0:0:244 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (chunkeey[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 Subject: [LEDE-DEV] [PATCH] musl: update to 1.1.17 X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This patch updates musl to the latest 1.1.17 release. Rick Felker stated in his release note: " This release fixes numerous bugs affecting visible behavior and safety/internal consistency, including a stack-based buffer overflow in dns parsing and multiple sources of invalid memory accesses that may lead to crashes. See the release notes in WHATSNEW for details. Many new features have also been added, including deferred symbol binding in the dynamic linker (RTLD_LAZY emulation), an option to overrid argv[0] when running ldso to execute a program, support for starting new sessions via posix_spawn (POSIX_SPAWN_SETSID, accepted for standardization), and ability to query the active thread-local locale (via _NL_LOCALE_NAME extension). Improvements in compatibility with applications, build tools, and platforms have also been made. " The stack-based buffer overflow in dns parsing can be mitigated by: "running a caching nameserver on localhost and pointing resolv.conf to 127.0.0.1." Which is the case on the default LEDE installation (dnsmasq). Signed-off-by: Christian Lamparter --- toolchain/musl/common.mk | 6 +++--- toolchain/musl/patches/900-iconv_size_hack.patch | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/toolchain/musl/common.mk b/toolchain/musl/common.mk index 0a45828f79..4c4e5b47ae 100644 --- a/toolchain/musl/common.mk +++ b/toolchain/musl/common.mk @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/target.mk PKG_NAME:=musl -PKG_VERSION:=1.1.16 +PKG_VERSION:=1.1.17 PKG_RELEASE=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_VERSION:=5f7efb87a28a311ad377dd26adf53715dedb096d -PKG_MIRROR_HASH:=da18ef24f270e5cae6bc4c440479da17bec1949ae5a1bc990352ca04f24c4378 +PKG_SOURCE_VERSION:=2cd663fb2d576d590a08c1e40386c07b378d5ad6 +PKG_MIRROR_HASH:=e3140faaa9aff51c4f56f36c15d677265a5bed39aa6d9ab5d252f1c49b7c13ca PKG_SOURCE_URL:=git://git.musl-libc.org/musl PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz diff --git a/toolchain/musl/patches/900-iconv_size_hack.patch b/toolchain/musl/patches/900-iconv_size_hack.patch index 343915fb06..cfbb7ee5f7 100644 --- a/toolchain/musl/patches/900-iconv_size_hack.patch +++ b/toolchain/musl/patches/900-iconv_size_hack.patch @@ -32,7 +32,7 @@ static int fuzzycmp(const unsigned char *a, const unsigned char *b) { -@@ -216,6 +220,7 @@ size_t iconv(iconv_t cd0, char **restric +@@ -224,6 +228,7 @@ size_t iconv(iconv_t cd0, char **restric c = ((c-0xd7c0)<<10) + (d-0xdc00); } break; @@ -47,7 +47,7 @@ +#endif default: if (c < 128+type) break; - c -= 128+type; + c = legacy_map(map, c); --- a/src/locale/codepages.h +++ b/src/locale/codepages.h @@ -118,6 +118,7 @@