From patchwork Thu Sep 13 14:04:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 146629 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp647271ljw; Thu, 13 Sep 2018 07:04:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZEv9PubT5VT2RkoDGyPJ23NFY0MJAPi0yH9RLhHyDp96N2ICyIaQNeZ8Z6DDUepN8JYK0G X-Received: by 2002:a17:902:b70f:: with SMTP id d15-v6mr7664104pls.53.1536847484157; Thu, 13 Sep 2018 07:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847484; cv=none; d=google.com; s=arc-20160816; b=XHal3tXfOOKBd2u1w7RG36g2tXhVl+DPqBeEed1SXdq///O0MfOlxK/cWO8pXlXCVQ ladNDs/S7Jj4tkIenjiaYhxn7YTsZnjH6wPCp9qbHzZC7vbVaheojrPNrerfMubt5S8i gtM1zBPeVgMJxssCBAND2wcs4KMLmiRA3rqdCvsItGq/eYhrPzf2YaD/CiqpYITXOpT1 DiFKeDtnEmas3BW77G6RPt94pMBPc7DZbq12dSE1PhTyl5y9GjfTbN0bTyfXPeD5DwcO b9T3A8mNN+yD7QyLZrffw47JIC8oD62dReLFwiOIn7XYKxXIsmAv5/tgiJFDS5G5xibs Do7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=4ROXkjtclpF4XtycYumEUKF4mji2IeIKcryOY53HuAc=; b=xMHiq9e6SvTnhCBEJArKXbfQJDFOI/NmEYiLMjiIapfZvqCG6kXWHKa9PN2TXN5EJS 6+yyOAFneJ0NyFBucxlfOkf+LoiM/zvMZkR+nRGQwjZFvyESTDSLnWMtlqqHsPU5KuL+ AXCEwM4gNm3VhSStnyrEurNBjhP0qLhoAJDnfnflAqJQ+SGRGFLX/Om3EEZZnpGLXunG NvVueGpTM4ZcVMgIC894dyR+3nzJPCuFHSsPVsf/QRHe4I6sjhPig8CMWCaI6E6IzFix nVdV8xvMCKYx/GZwgEaV317XPZpjrE+phO7Zq2KBwZ3xhqPzrRh1rErW1BMlFf+YzXm1 unpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=uy8jD26+; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id p91-v6si4187812plb.51.2018.09.13.07.04.40; Thu, 13 Sep 2018 07:04:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=uy8jD26+; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 0DBD0798F3; Thu, 13 Sep 2018 14:04:36 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mail.openembedded.org (Postfix) with ESMTP id 066FE796FC for ; Thu, 13 Sep 2018 14:04:34 +0000 (UTC) Received: by mail-pl1-f169.google.com with SMTP id b12-v6so2650831plr.8 for ; Thu, 13 Sep 2018 07:04:36 -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=PaQ1bsshQwE3EGlZ6a5VZ6I2doqPmVlBAt+U6hJ37XM=; b=uy8jD26+7+/10SE+txUQOYr2oSJU7qUCobOGrreN67mXVi/vqOeXGRaYIwFuCBEgZD y38TeoD9JEDDZ8AgAB091LAZvaWaIrsYRQrQL6rCbpuCvab62tprUJIzYvfzUlEaIKfD Y5kb74rneCAr34WLv3ZY4a44OzoYz8EnMTjWzXeykWPupBDSwzbLPkM/yQ7WGMFTXJFV Of3WbwqqoIf1DhFt/MT+AVAc8S6tJPsqaRhX0dbhjsn6QZ63r+rJ8l66GPuhP0OfpUFF gg9GW0coiDHkfO6ZDZwuaLT1c5elgtfLgcNZkgG3Kec52LFACYeeeF7UzBbvRXhw9uQG PJ7Q== 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=PaQ1bsshQwE3EGlZ6a5VZ6I2doqPmVlBAt+U6hJ37XM=; b=LqWgmgpDnveWjbvHHr4KtMbeex7Yy3wSbe2RWo1Eqw2xtZsic968v26tjNDTeLoUat DnuqQuo+AY3kq/M40Q6HSbPf/30OOEjRBXBLhwe0B97E7q002vhHF5qSR6Pq4uRD5H70 UrrUmf+83lyN7zzNr4PswVqw+ZXYj/QQaeR74/hdX9GW+nk7BIr8YNAF4ZA9FiHcwzha DMjrUp7h3ImGVYBtqqt6PATJlsN4YQTh+Ow5cyGyggsoqFl81M5XjSFLaGsu5qtJiyrS muRgikNvNjd6BYRHXn3h8UfLYQHZuzd/0BkIlpeRXl5W/GezctEDqJSoWmp9ppR5cA9Z sKmQ== X-Gm-Message-State: APzg51Bm/ltvW051yR3bqpolPdo3e/EibPgqTS1UuKLDhBOduteBLVxb Khmw7qT7DniTUf7wG0p/jOxR4AI8 X-Received: by 2002:a17:902:7845:: with SMTP id e5-v6mr7458681pln.197.1536847475620; Thu, 13 Sep 2018 07:04:35 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::2887]) by smtp.gmail.com with ESMTPSA id l84-v6sm7820764pfg.3.2018.09.13.07.04.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 07:04:35 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 13 Sep 2018 07:04:26 -0700 Message-Id: <20180913140426.13202-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] musl: Add MAX_HANDLE_SZ X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../musl/musl/0001-Define-MAX_HANDLE_SZ.patch | 29 +++++++++++++++++++ meta/recipes-core/musl/musl_git.bb | 1 + 2 files changed, 30 insertions(+) create mode 100644 meta/recipes-core/musl/musl/0001-Define-MAX_HANDLE_SZ.patch -- 2.19.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/musl/musl/0001-Define-MAX_HANDLE_SZ.patch b/meta/recipes-core/musl/musl/0001-Define-MAX_HANDLE_SZ.patch new file mode 100644 index 0000000000..b1217723a3 --- /dev/null +++ b/meta/recipes-core/musl/musl/0001-Define-MAX_HANDLE_SZ.patch @@ -0,0 +1,29 @@ +From e2e723cfe96ce6ed6558ed7e8fbb44b2283297da Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 13 Sep 2018 06:57:28 -0700 +Subject: [PATCH] Define MAX_HANDLE_SZ + +MAX_HANDLE_SZ is described in name_to_handle_at() to contain maximum +expected size for a file handle + +Upstream-Status: Submitted [https://www.openwall.com/lists/musl/2018/09/13/16] +Signed-off-by: Khem Raj +--- + include/fcntl.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/fcntl.h b/include/fcntl.h +index 5c3defcb..6a8b6d49 100644 +--- a/include/fcntl.h ++++ b/include/fcntl.h +@@ -166,6 +166,7 @@ struct f_owner_ex { + }; + #define FALLOC_FL_KEEP_SIZE 1 + #define FALLOC_FL_PUNCH_HOLE 2 ++#define MAX_HANDLE_SZ 128 + #define SYNC_FILE_RANGE_WAIT_BEFORE 1 + #define SYNC_FILE_RANGE_WRITE 2 + #define SYNC_FILE_RANGE_WAIT_AFTER 4 +-- +2.19.0 + diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb index f6edf7de61..be31718e3a 100644 --- a/meta/recipes-core/musl/musl_git.bb +++ b/meta/recipes-core/musl/musl_git.bb @@ -12,6 +12,7 @@ PV = "1.1.20+git${SRCPV}" SRC_URI = "git://git.musl-libc.org/musl \ file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \ file://0001-wireup-linux-name_to_handle_at-and-name_to_handle_at.patch \ + file://0001-Define-MAX_HANDLE_SZ.patch \ " S = "${WORKDIR}/git"