From patchwork Mon Feb 12 22:38:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 128174 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3651786ljc; Mon, 12 Feb 2018 14:38:43 -0800 (PST) X-Google-Smtp-Source: AH8x227BJWVOxpByX7hNtOhEkqOr09ewOLpl+sYjw0JsVgq5J9Th8VS6jGU5VEEXIkwqjfYYF4P2 X-Received: by 2002:a17:902:6909:: with SMTP id j9-v6mr11893656plk.372.1518475123490; Mon, 12 Feb 2018 14:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518475123; cv=none; d=google.com; s=arc-20160816; b=vD66Mmh+tdxPGQGnrA79YsZriEMuyU/yhxKkwvpcrEpt0M63dorP2e18e7wN9IRkxB c8Xl/i28PDrIeEjeGVoHwyQCUzNvGTZm75QqktwYcMGyucrDySI5lmVYz0XBKbNaTYdE 0PwkkjIQGfn+h7nMgmKJ120uq+mZc2H//GwEti06c1xnJmBPh0rFP+Ia4cyUproaLdZZ 2VIEKVYLfR0k/Pi4EBESZSknndGAE0ok+qUpQqMozv7u1KmNCrGwAQ8nWGAKKBILSmd9 hJSdW2ucAhz4ARN8XFkL74PkZWaisGPj8VWEhB+m9eQHtU+YTLlAMohhkPYtFopx7rnv REHg== 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:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=PBC3O7tk1oc/ip4BYSAx1xUGjIXUJYLS9tt4tKUFWHA=; b=qcGMKtzzdHLCSc6L5YtnAYHspIOLSNtDaJOoHqx3njDPgaXoOecMdpxsnyvH8m+EWn rfHYhyvWa8xmZjNzdWYuTrHhn3xy7ZDz4i5zYorvzcCD7NKxERwbmMZLtIRiSS8swm2h G2yppqVB+hfXuW9UCdbGzQxwN8Xs1Qdq9AkoDubAoas8rX6mFDK31E8wd/djby3BODVU RZRuKik/fzq31nii/ph95+WxjeN2+IP8C503ewxWxRopRK1mZhH6l+CMa+cY/UCovn8B M/7DzxWvMBw/+7b9VHdDP+ZYKteX4zJtnNas1hojjMTKYalAaCPPCHLJc36Q+TquRkms Clvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HAxcoCJZ; 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=linaro.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id u11-v6si35999pls.480.2018.02.12.14.38.42; Mon, 12 Feb 2018 14:38:43 -0800 (PST) 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=@linaro.org header.s=google header.b=HAxcoCJZ; 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=linaro.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3E1FA782CD; Mon, 12 Feb 2018 22:38:37 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by mail.openembedded.org (Postfix) with ESMTP id AFB4178289 for ; Mon, 12 Feb 2018 22:38:35 +0000 (UTC) Received: by mail-lf0-f42.google.com with SMTP id q69so4702219lfi.10 for ; Mon, 12 Feb 2018 14:38:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=7OkCv+XjYXrMkdJRS1okFmJxXqJepIukOSHM2fzQ5Rs=; b=HAxcoCJZjJIuGuzlixDGVDf5f/fdcyudJ9VYcmFjVICBrUU6BAaIlPBLIjWYQlYeuw Pm1r90/A8eb3GiEnuaQrBpEWpxtf6E+TyVvSv3pVz72bmmPnAvBqTYXjx+fskKEb+Cov YlBncIG50dWZYlBOMXGplbhJO0qRo1SbEeb/A= 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; bh=7OkCv+XjYXrMkdJRS1okFmJxXqJepIukOSHM2fzQ5Rs=; b=RiF1+cVOw1lpaLtWge8PyLu/S4DW0bk/ZekQfGtcfdf8jt9mm3rZVNGvXLC1le27pX 6u4HRc2FhdjR68goZYSf2u/x1cbqRav+lMmY5rBAflV5ETPWOzBQcc9zRsMZ9/W6t3HB Gf+aEVkDGn+HnrfXxp+6DcjRc16ez5kZvQJLKt7+ikJbTRXQ62kjdvCFU5CPB4ogDZYZ izdOydFDbo2mVUJtBmKVGFTLGeTALrrMrDRBerMNelMFx1k8//qouy5cAAfcdGxPhHVa nEE1CUegszTBQmIa0flxdrz2SKfsyBpCu/CGgfWh7ZdIzjCg+Z+ZPRav0+y7UvqU5mnF GRRg== X-Gm-Message-State: APf1xPB/lyQz41PhgqklqPFPgym3mAnVsvOXVETmBZ2+AJqOqQR9lsYx DKgJNlq/dsu5sLvAUCq6v1qfwFdFWFs= X-Received: by 10.25.225.84 with SMTP id y81mr6195809lfg.102.1518475115873; Mon, 12 Feb 2018 14:38:35 -0800 (PST) Received: from localhost (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id c70sm802239ljf.34.2018.02.12.14.38.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Feb 2018 14:38:34 -0800 (PST) From: Anders Roxell To: openembedded-core@lists.openembedded.org Date: Mon, 12 Feb 2018 23:38:08 +0100 Message-Id: <20180212223808.9016-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH v2] ltp: fix fanotify06 test 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 This patch fixes the fanotify06 test. http://lists.linux.it/pipermail/ltp/2018-January/006915.html Signed-off-by: Anders Roxell --- ...anotify-the-mount-fs_type-should-be-given.patch | 38 ++++++++++++++++++++++ meta/recipes-extended/ltp/ltp_20180118.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta/recipes-extended/ltp/ltp/0040-fanotify-the-mount-fs_type-should-be-given.patch -- 2.11.0 -- _______________________________________________ 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/0040-fanotify-the-mount-fs_type-should-be-given.patch b/meta/recipes-extended/ltp/ltp/0040-fanotify-the-mount-fs_type-should-be-given.patch new file mode 100644 index 0000000000..e57b6cd91e --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0040-fanotify-the-mount-fs_type-should-be-given.patch @@ -0,0 +1,38 @@ +From c1b440c04d86adf77308fcd173d41dbfc6e66299 Mon Sep 17 00:00:00 2001 +From: Li Wang +Date: Tue, 23 Jan 2018 16:23:14 +0800 +Subject: [PATCH 40/40] fanotify: the mount fs_type should be given + +This commmit 28507e514c(safe_mount: Do not try mount() syscall for FUSE fs) +involves FUSE fs check in safe_mount(), so we should give the "fs_type" when +calling that in case the system kill our program. + + cmdline="fanotify06" + contacts="" + analysis=exit + <<>> + tst_test.c:980: INFO: Timeout per run is 0h 10m 00s + tst_test.c:1025: BROK: Test killed by SIGSEGV! + +Signed-off-by: Li Wang +Upstream-Status: Submitted [http://lists.linux.it/pipermail/ltp/2018-January/006915.html] +--- + testcases/kernel/syscalls/fanotify/fanotify06.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/testcases/kernel/syscalls/fanotify/fanotify06.c b/testcases/kernel/syscalls/fanotify/fanotify06.c +index e63e457a1..8cbe1adc6 100644 +--- a/testcases/kernel/syscalls/fanotify/fanotify06.c ++++ b/testcases/kernel/syscalls/fanotify/fanotify06.c +@@ -221,7 +221,7 @@ void test01(void) + static void setup(void) + { + SAFE_MKDIR(MOUNT_NAME, 0755); +- SAFE_MOUNT(MOUNT_NAME, MOUNT_NAME, NULL, MS_BIND, NULL); ++ SAFE_MOUNT(MOUNT_NAME, MOUNT_NAME, "none", MS_BIND, NULL); + mount_created = 1; + SAFE_CHDIR(MOUNT_NAME); + +-- +2.11.0 + diff --git a/meta/recipes-extended/ltp/ltp_20180118.bb b/meta/recipes-extended/ltp/ltp_20180118.bb index 369b98df9b..88f3bb4879 100644 --- a/meta/recipes-extended/ltp/ltp_20180118.bb +++ b/meta/recipes-extended/ltp/ltp_20180118.bb @@ -43,6 +43,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ file://0035-fix-test_proc_kill-hang.patch \ file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \ file://0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch \ + file://0040-fanotify-the-mount-fs_type-should-be-given.patch \ " S = "${WORKDIR}/git"