Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1012157ybx; Thu, 7 Nov 2019 06:03:07 -0800 (PST) X-Google-Smtp-Source: APXvYqyjly6NFkk16Y1Epg0irS+8CBJsfIB6xPBo+lvNkoRc21HQhISnydQk/OWcMhaBd7ut+7DJ X-Received: by 2002:a17:906:2e5a:: with SMTP id r26mr3196058eji.283.1573135386374; Thu, 07 Nov 2019 06:03:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573135386; cv=none; d=google.com; s=arc-20160816; b=rryjTZwDvhQU/Jz0VdbLQm7q/q5HuE5EZwX4eqoOSSDxb7ccTcCTSmTlb+aZN8Jq6S ZVTwjKlJzsdKAOHZAPVt8sLB+7ABEcnVhNK01mIX5ny/HZfx1UgMnLS2/fPJJTejjxVQ bT/NdbnAs1iXXnggtIhB0Ic6FgwelN0weUbYi7ctCzIrKYWjdROMChR38ZqZVEzYNfNO VlPCNj7nwy8slS7zA5crMyIR5SrCgJ0HTerdG4KQPpzIR5h6KbzW+nX5y6uXvgrYhx1B cQ81NgQ3xmxXjSzlfU9VJGDPRIPNX9phm4RpEcssZcRX1oKHIzXYMJrdydeA/RDWhd8A Yhxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=zUtIMonLuqK+iWfJbM+SRmDj7hvvfURy8hJeahep4/Y=; b=HQeIVUXBKp5qsqqzZ+i1H8tWF35KHIG+U4FbNgPVryGcZxWcwzIgyoNHRAJoicxjQx jbTnsWRP5LOntvZ+PpBnnfmE7dqPHIJawLLfn5xwHZJfddHu+AX1RMTfFmeghmn450Ug nmfHSOPkABzbolKqfTPTK4JNFxjlCcXBuW79haPwnwER8PmEOtLCjLmdk3TGkAkW1End XcvXMVoS/2bSToLKJ8Wy/OfUf+9Hgp5l+Qp4KPRy1pS+/nttuYeDVywgD44fEVbQHX6h wiPg8Y/3r66SlhAJjOMrsRedVp8mqxCN4Trt6m88/xcKqqn0p1waUSpuzgfxPMClFtjv 6nUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JXVM/MiD"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q24si1450228ejr.128.2019.11.07.06.02.40; Thu, 07 Nov 2019 06:03:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JXVM/MiD"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388873AbfKGN7i (ORCPT + 99 others); Thu, 7 Nov 2019 08:59:38 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41866 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbfKGN7h (ORCPT ); Thu, 7 Nov 2019 08:59:37 -0500 Received: by mail-lf1-f67.google.com with SMTP id j14so1668145lfb.8 for ; Thu, 07 Nov 2019 05:59:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=zUtIMonLuqK+iWfJbM+SRmDj7hvvfURy8hJeahep4/Y=; b=JXVM/MiDFcTdxX8cy44MVmFzKHZugo548aLLV3zop3h5hHOXAzYT6dhtTgattam5zn ZHy819NPhLltJnzWcFS5twZCvlR/8x3QLB6r3t4Po1F5oZONbOnSc5g9AgbLwvWauhAi yotfq3heZSqtcjbCavMNKNiRu404KbTrb8pgpcIdV9hTDi58CHPXULq304hVVwb2hBg0 6LODreUSFrglTydMSlJB/vAnPGzhHTgpXFAVvGI4lUsl2yd05M9aWPgtQwLxEHa4m1b5 FBx+2dk1QMCjwaR6V/2DuSKPMW6c83nrwZUb94/uuRwUAIdlFIbwl3gnqLM4MRRIp0Pm be8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=zUtIMonLuqK+iWfJbM+SRmDj7hvvfURy8hJeahep4/Y=; b=iCxlAfefGtkgBvgfZMEuymEyscw6COBPuXBdaJOYR9ZL+Z7dnQpsBj4BhxShTj5Yer qSYs9Jr9LdhViZlYlRe7NZBVgfnHMmCRKRvZAUKHQCWWg0f5XI0M6FQzbAT2toiZ2j8T WcBUyRYXWxVxwiKklfvHlo+XYtegBZaWzqLLr3/BJ2yVYOcGZMsBPDONzrU4qtIk7bye sflKphN5hVaiXNEzeIg0OItaMezq2ZBQQOfSzAC3iJCQbAA4koZGDSsJnFCZXybijLA4 JSWcbtJpKzP7qr4zobARP5RlzZyCy5rmGK4BU7vWYS7hZVhoZ9dIBfHpad3J2+HPhw7k LuQQ== X-Gm-Message-State: APjAAAVoWNTHUIxA5j07Zb1dKj9IxTriw5k6SQ6tp1XiIStOeRXZA1tV WrstCgW0nvmQSYOhh9Zf918ksfihd8cjipwSENcwBw== X-Received: by 2002:ac2:5930:: with SMTP id v16mr2612552lfi.67.1573135174476; Thu, 07 Nov 2019 05:59:34 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Thu, 7 Nov 2019 19:29:23 +0530 Message-ID: Subject: LTP: diotest4.c:476: read to read-only space. returns 0: Success To: LTP List , Linux-Next Mailing List , linux-fsdevel@vger.kernel.org Cc: Jan Stancek , chrubis , open list , Al Viro , Mark Brown , Arnd Bergmann , lkft-triage@lists.linaro.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org LTP test case dio04 test failed on 32bit kernel running linux next 20191107 kernel. Linux version 5.4.0-rc6-next-20191107. diotest4 1 TPASS : Negative Offset diotest4 2 TPASS : removed diotest4 3 TPASS : Odd count of read and write diotest4 4 TPASS : Read beyond the file size diotest4 5 TPASS : Invalid file descriptor diotest4 6 TPASS : Out of range file descriptor diotest4 7 TPASS : Closed file descriptor diotest4 8 TPASS : removed diotest4 9 TCONF : diotest4.c:345: Direct I/O on /dev/null is not supported diotest4 10 TPASS : read, write to a mmaped file diotest4 11 TPASS : read, write to an unmapped file diotest4 12 TPASS : read from file not open for reading diotest4 13 TPASS : write to file not open for writing diotest4 14 TPASS : read, write with non-aligned buffer diotest4 15 TFAIL : diotest4.c:476: read to read-only space. returns 0: Success diotest4 16 TFAIL : diotest4.c:180: read, write buffer in read-only space diotest4 17 TFAIL : diotest4.c:114: read allows nonexistant space. returns 0: Success diotest4 18 TFAIL : diotest4.c:129: write allows nonexistant space.returns -1: Invalid argument diotest4 19 TFAIL : diotest4.c:180: read, write in non-existant space diotest4 20 TPASS : read, write for file with O_SYNC diotest4 0 TINFO : 2/15 test blocks failed Test results comparison link, https://qa-reports.linaro.org/lkft/linux-next-oe/tests/ltp-dio-tests/dio04 Test case source link, https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/io/direct_io/diotest4.c Test case description: * NAME * diotest4.c * * DESCRIPTION * The program generates error conditions and verifies the error * code generated with the expected error value. The program also * tests some of the boundary condtions. The size of test file created * is filesize_in_blocks * 4k. * Test blocks: * [1] Negative Offset * [2] Negative count - removed 08/01/2003 - robbiew * [3] Odd count of read and write * [4] Read beyond the file size * [5] Invalid file descriptor * [6] Out of range file descriptor * [7] Closed file descriptor * [8] Directory read, write - removed 10/7/2002 - plars * [9] Character device (/dev/null) read, write * [10] read, write to a mmaped file * [11] read, write to an unmaped file with munmap * [12] read from file not open for reading * [13] write to file not open for writing * [14] read, write with non-aligned buffer * [15] read, write buffer in read-only space * [16] read, write in non-existant space * [17] read, write for file with O_SYNC metadata: git branch: master git repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git commit: c68c5373c504078cc0e0edc7d5c88b47ca308144 git describe: next-20191107 make_kernelversion: 5.4.0-rc6 kernel-config: http://snapshots.linaro.org/openembedded/lkft/lkft/sumo/intel-core2-32/lkft/linux-next/641/config build-location: http://snapshots.linaro.org/openembedded/lkft/lkft/sumo/intel-core2-32/lkft/linux-next/641 Best regards Naresh Kamboju