From patchwork Wed Nov 7 13:38:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael David Tinoco X-Patchwork-Id: 150389 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5179930ljp; Wed, 7 Nov 2018 05:38:52 -0800 (PST) X-Google-Smtp-Source: AJdET5dHhhcXRelTwMg+ptXGhrBaZu7J0sJy+tuJ+a1K7LIHS8sY91BrHAgt7sbLkdUqBMk4vytd X-Received: by 2002:adf:c189:: with SMTP id x9-v6mr220252wre.233.1541597932456; Wed, 07 Nov 2018 05:38:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541597932; cv=none; d=google.com; s=arc-20160816; b=vIM9S2xT9SjCvyyYwyGZhtkq+7yYfBOe10Vtgq0v8IR0v3dnPaRnYgkUbVH+20bRPh wUj2By0veX6D+6HQbPhi+6ASXbS1Dazan/YOBWeq17VhQr31VgQmw5ZVxu+2sjrRZRC6 s8OGpFPGkXjLDSMYa2vl2DCd/nuXdFpbfDCPRe27HBb0dhBTSKVe+/WEgL2Bqq3S7Gij ZwGknv9vHxDBElc4IIIGRVYDGZfI0ltdTFgwcsa1BeKx21i0PRen8AKE4zHfWUPSmv4I i6439Oy+AS8Rb2kTyy3f+VkXPOrH3DVNETOOoHkiprjXrnOY03DagPqfFzGoMPq4BDKX m1tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=zD4xMFxl/xLrSrsPFtbhIMaFV7ZHjUOyZQZCtdPtoiM=; b=AGy5Mcv7hgtQZKgO1hFuTt7UciuGFKsLaKF67yubNIlsjEZkBPLj2eXRIoT6svdviu d8kAkEhkiqV6d5L6XiBHBUF51jW/bw55T+XKfVKUzNzQbC+3uM5FZp17hh1Z/0U0WN9B ixVUZRB3+zDqaMWnlSNsDBsEQRnY++fUonwwn4ukNN6jtv5l1h6miE4LCaeeQWBQ2vIp ZSWhvl1bmMe2WP6Jco3c401qIhC4sVgZbthOCjOPC/0HkYYw30W6SdDZDNCAcYKtUk3W cS0viuzF10uS9KcIDgttN05sEY+8Zk/O2Zrye8vaEJMO7Mcy6O6WwnU/ExrTKxjDlyV/ ThQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cy1Nnbgu; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 213.254.12.146 as permitted sender) smtp.mailfrom="ltp-bounces+patch=linaro.org@lists.linux.it"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from picard.linux.it (picard.linux.it. [213.254.12.146]) by mx.google.com with ESMTPS id z79-v6si994656wmd.169.2018.11.07.05.38.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 05:38:52 -0800 (PST) Received-SPF: pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 213.254.12.146 as permitted sender) client-ip=213.254.12.146; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cy1Nnbgu; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 213.254.12.146 as permitted sender) smtp.mailfrom="ltp-bounces+patch=linaro.org@lists.linux.it"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 1274B3E791E for ; Wed, 7 Nov 2018 14:38:52 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [IPv6:2001:4b78:1:20::5]) by picard.linux.it (Postfix) with ESMTP id BC8ED3E784F for ; Wed, 7 Nov 2018 14:38:48 +0100 (CET) Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by in-5.smtp.seeweb.it (Postfix) with ESMTPS id 0765F600965 for ; Wed, 7 Nov 2018 14:38:47 +0100 (CET) Received: by mail-qk1-x742.google.com with SMTP id q1so20704059qkf.13 for ; Wed, 07 Nov 2018 05:38:47 -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:mime-version :content-transfer-encoding; bh=mBualLWTQ9kr1HYFNJoBvNX2Mm2FYGUUYBMg+890oKE=; b=cy1Nnbgu6FDbnCk7qlxeXfozpXKBNvyOp9UAKBW+ukvESXRHX3zZNpS/QcQ0aI34P1 kTz2J7gRQ2IIDP3YT4mqxX4X2Z5QN1EssxFtde74QV+ICk4F1BKXJ3Vx/Fnis8L0uTNA ZyIBFUgDGuWYnWfYmpQ/EEp8cBmzfn3HYIiMY= 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=mBualLWTQ9kr1HYFNJoBvNX2Mm2FYGUUYBMg+890oKE=; b=WIZA7V5Rg7rz7MkFRtfzjKa1XQP9/vKwB+Fb0pjoyJamkyG+8jqDn57eIuofPquWXN XqWh72z8UcxBfqSjuejQ/Qq5Yxkt6hA/7Wh8M0de97lzSxycWA9OSAiMG3X8iTXnChYQ 1y+tIIe50FvExzDpUHNevg74Q/I6uWQW1dZZjRlY1yASXlDBDZNl/cke6Rm+KYkHny+k knCPxP8/JKHfW+Z5AnyMc8TOJEGDhkOgHATajOfXhWaLcjqqa4qnBQBzjOXDjfDmDb1x bA9vOFo+rauW38sfpxJM84dUEtDqLIvmxKzNgWCsvsvIcsd44m7o1C82qa5qcj9LhSiD XUdw== X-Gm-Message-State: AGRZ1gL3aU8vWRZsCHP/z9vhBYZc+Ys7sc+PJa3a4cOmp2Ncf5P9DrBr cSNvsLNc1nazzHv3dLMRQGxL/LvdEVgGIQ== X-Received: by 2002:ac8:2932:: with SMTP id y47-v6mr253577qty.42.1541597926467; Wed, 07 Nov 2018 05:38:46 -0800 (PST) Received: from workstation.celeiro.br ([138.204.25.17]) by smtp.gmail.com with ESMTPSA id v5-v6sm301895qkc.75.2018.11.07.05.38.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 05:38:44 -0800 (PST) From: Rafael David Tinoco To: ltp@lists.linux.it Date: Wed, 7 Nov 2018 11:38:40 -0200 Message-Id: <20181107133840.20042-1-rafael.tinoco@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-5.smtp.seeweb.it Cc: rafael.tinoco@linaro.org, arnd@arndb.de Subject: [LTP] [PATCH] syscalls/bind03: fix ret code behavior for v4.4 backport X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+patch=linaro.org@lists.linux.it Sender: "ltp" Recently added test bind03 has a corner case for bind(2). Because mainline patch 0fb44559ffd6 ("af_unix: move unix_mknod() out of bindlock") got backported to kernel v4.4 as commit 0492a033fb71, the corner case must be adapted to correct running kernel version. Cc: Arnd Bergmann Cc: Naresh Kamboju Cc: Petr Vorel Link: https://bugs.linaro.org/show_bug.cgi?id=4042 Signed-off-by: Rafael David Tinoco --- testcases/kernel/syscalls/bind/bind03.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testcases/kernel/syscalls/bind/bind03.c b/testcases/kernel/syscalls/bind/bind03.c index 955a69dd2..f35e4786f 100644 --- a/testcases/kernel/syscalls/bind/bind03.c +++ b/testcases/kernel/syscalls/bind/bind03.c @@ -46,11 +46,11 @@ void run(void) } /* - * The behavious diverse according to kernel version - * for v4.10 or later, the expected error is EADDRINUSE, + * The behavior diverse according to kernel version + * for v4.4.47~3 or later, the expected error is EADDRINUSE, * otherwise EINVAL. */ - if (tst_kvercmp(4, 10, 0) < 0) { + if (tst_kvercmp(4, 4, 48) < 0) { if (errno != EINVAL) { tst_res(TFAIL | TERRNO, "expected EINVAL"); return;