From patchwork Mon Jun 12 14:59:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 103636 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp233884qgd; Mon, 12 Jun 2017 07:59:27 -0700 (PDT) X-Received: by 10.98.74.211 with SMTP id c80mr55344770pfj.58.1497279567399; Mon, 12 Jun 2017 07:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497279567; cv=none; d=google.com; s=arc-20160816; b=dTicpDybxOJYURkeRhboIlVCgORdMpTeecu/EoOMG7J4lEYuGcy59xNvo7FnC+87Rf 9RtRaDzJ7D02Oqf4+eBWQZ0FgyjnfzCSA4ZT7f/5BgWIZ1oKyqYDsFuWs7S0n3BDynEl CjI7UosF7/AkH4aq7eTlKWm1QpPps/X8ve///T4wwRr34ZjFlYLfldp5nsNqn6/HzKBZ B5YgYV9O9Tb9Vc/b0cX/wHVKq489m7xPAgkZWQMj9uHVfhyu6kZbvtYkMCsZgpYIXCqU Xkc0DB4b64kyStFxqkGr9B1t/QU+5nrgtarcIX1xkn/dZjTJsWBxdyt31X/8LtPbFm/4 opSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=dqtippJguBXD6H+qnjWd1VFmIAR/G3sRIsZ164fEkno=; b=gAYHOatX6TYNognX+QTrth5BONkJ3SM5BLx1BkiEm2fw/Ne6mOfqN7GNG6kE/QHzha /1KSa5stpzcYX1WATjJWp/9a3PhpK4eHguRR6QaoMb121bER1/IVByaQUGa5kSd0ZEQV Y/cZQcPh/UtiIuWUjqoIgKWPTGMcwX97EITynJcdnBEKF0MJSoXKLzB9aHvDUSOqWiCX /l9kLUoThjEgs90ESzboGwUx0pK3kRiqlRmC594XBxvadAeJTNygjweMbHdaUFWyL/r2 AYTDf6fMQKwv/5aM3p82KGzkKvOZk+1PMfOjSorgfFaKfdiBnItZYt0fLzU1Lh0+apOg 5wOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; 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=NONE 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 33si2663466pla.452.2017.06.12.07.59.27; Mon, 12 Jun 2017 07:59:27 -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; 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=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 237FB782D6; Mon, 12 Jun 2017 14:59:20 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by mail.openembedded.org (Postfix) with ESMTP id 94E41782D3 for ; Mon, 12 Jun 2017 14:59:18 +0000 (UTC) Received: by mail-pf0-f178.google.com with SMTP id x63so52405297pff.3 for ; Mon, 12 Jun 2017 07:59:20 -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; bh=LLF31kdM3ZxNOoBGLMIbn9lXAzeXpbjn18lIn67hUDM=; b=qR/mjmBbRan1GPzfQNRp7nJwzEAzb8ghi/W/hU6hdPswRjLl7mKk7AIcnu+AZWJWcQ PTo2ypj79DEYyPwp5baZGqWxL6hyH2Pa20yV0AAlQ6txS3M+6pPksZ1y8IJWUzuNTJvl Y7HD886eQQMIQdVZW3cOEepk7wv6+oMqpIBchCOYzVK8Um04bGzTst+SsedaIEW3Rvj1 6rnl3X4Hxt9p/c2Ye372CPjgZB2t+se4mSJCqr3wQ2jU3KGFA3kL6Kiwkw0hMuL0zp83 b2pDKUmFkWf03lru1kcsaNHKbNcDIa+ebnILIoHO28gh9IQEHpLDv1/C+5YpsSjN1NpW Bvlg== 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; bh=LLF31kdM3ZxNOoBGLMIbn9lXAzeXpbjn18lIn67hUDM=; b=IOuPBwK+8u6iBHZ/a02OOV5wuBDD8mw4WdfQim0kpLaxpNDyuTFai5Kf9ZcMvhQ3jI TIG8XS7WDdNHUEktmpArg79qFiYRJqWCL12LFXtrsmmc2FaPgHkHnCXctEyp7pHfNBQu V8v9y9PVTcX7oIUZaxWGidk+m2DNbhqmg6KrCOmc0nyWEVqhrjJ1Wzmd0DPEi4mkNIgI YPqXupCsna5A6QQ+KhI710Eoxd3WT/Eo/rM74bnYqjT9q9/R6YrCfSvtAh33aD2/aTsM auRWMswPE/ytQIOuNz6/5QqLAVMD4W4p8eGzhFfYSpJwxAFCvzCR6SPQ2rluOHt+HObB dovg== X-Gm-Message-State: AODbwcDgOMLZv2sm5jVJT+dTcdawWeB8G/gFlwgx48V9zaja5CbXAUUd ZLlmQQbTiSpKBX/S X-Received: by 10.84.174.3 with SMTP id q3mr56431030plb.52.1497279559276; Mon, 12 Jun 2017 07:59:19 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::264a]) by smtp.gmail.com with ESMTPSA id i17sm20554732pgn.60.2017.06.12.07.59.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Jun 2017 07:59:18 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 12 Jun 2017 07:59:03 -0700 Message-Id: <641a9bf59b213e6f31546db6afb4ddefa132a002.1497279306.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: References: Subject: [OE-core] [PATCH 3/7] ltp: Include stdint.h for uintptr_t 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Fixes build with musl and upcoming glibc Signed-off-by: Khem Raj --- .../ltp/ltp/0001-dirtyc0w-Include-stdint.h.patch | 34 ++++++++++++++++++++++ meta/recipes-extended/ltp/ltp_20170516.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta/recipes-extended/ltp/ltp/0001-dirtyc0w-Include-stdint.h.patch -- 2.13.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-extended/ltp/ltp/0001-dirtyc0w-Include-stdint.h.patch b/meta/recipes-extended/ltp/ltp/0001-dirtyc0w-Include-stdint.h.patch new file mode 100644 index 0000000000..5c73be440b --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-dirtyc0w-Include-stdint.h.patch @@ -0,0 +1,34 @@ +From 1b30d8dac1a37dc0abbb3b545db2824d6489e23f Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 9 Jun 2017 09:32:13 -0700 +Subject: [PATCH] dirtyc0w: Include stdint.h + +uintptr_t is defined in stdint.h + +Fixes +| dirtyc0w_child.c:76:15: error: 'uintptr_t' undeclared (first use in this function); did you mean 'intptr_t'? +| lseek(mfd, (uintptr_t) map, SEEK_SET); +| ^~~~~~~~~ + +Signed-off-by: Khem Raj +--- +Upstream-Status: Submitted + + testcases/kernel/security/dirtyc0w/dirtyc0w_child.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c b/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c +index 5328a9bc4..49abdd6ba 100644 +--- a/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c ++++ b/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + #include + + #include "tst_safe_pthread.h" +-- +2.13.1 + diff --git a/meta/recipes-extended/ltp/ltp_20170516.bb b/meta/recipes-extended/ltp/ltp_20170516.bb index 012c43de35..31f339461f 100644 --- a/meta/recipes-extended/ltp/ltp_20170516.bb +++ b/meta/recipes-extended/ltp/ltp_20170516.bb @@ -50,6 +50,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ file://0034-periodic_output.patch \ file://0035-fix-test_proc_kill-hang.patch \ file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \ + file://0001-dirtyc0w-Include-stdint.h.patch \ " S = "${WORKDIR}/git"