Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5337022pxb; Mon, 15 Feb 2021 17:05:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWhNOUfUPL9KOsgbROno9Us4Zr7WL3UIEbUv3wOFb+uukOtsqqzgB49wzDRBsgpoxqqAFT X-Received: by 2002:a05:6402:22ef:: with SMTP id dn15mr12021008edb.259.1613437543217; Mon, 15 Feb 2021 17:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613437543; cv=none; d=google.com; s=arc-20160816; b=mm1OBGOf+tkUlcErdjgAN3xdCim/o8GbrfDY8oGpDO058u2thnPv9Jf/8v4HK4n9T2 p4uNuQJWvJzvadJMbjxXFDs8MTKvPV/T10J+5kf5hSZnWbpiqynQntkn4qUv0qUUylb+ POMwvI+jrdAIa4mqHkKTrgl9WAy9ucx8lU82hQy8PaxBX4OEflHRTSwNM0h/B9nayMsb 9SxdGyoOCaz/DsYoTpTnKDNmWfCfSGhpcdEA6Y2+6z6qUsNSDHiSz3NiejGbKwKG0THY xygNKkiEEyj+K9zNSHOJyykHyhO0H0QLiMvurqAGEgWEnmmbDp13rTfjo4YUytpd//Fr quJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zrjbMWbLD5k1YU1gY6sgg8lrLPs48sMOTQtq5qr6+JE=; b=W53AkItnNYi7drwgELvkcQyeCbdRrQp9VR6KvXu5+7xpag//oeTEoCUI9ORr89GC+u RoarfVNDuWxt4IjkVpXXdfJKGH14WjmeS8TNrTq1XwawgurRORrdEUzKI0+Z5W2PRRnA sYnTZboFgvo46XngR+W27viM2oAR1XWv/pk9JiBE1trx/7mAKFhCI2UEYbjG+SUxUshk b+6wBQW0YBhMlNkc4zdUsinTzwZcrWodF+hr8VL75u+UBBKIzxpFCiFMsZxjL3d6j9Bi fMssIWDyDmB4v1PSGwx8ai2u3NDD8gHgnwjSvD+1TU+NyTlY/zktOcSsLHTBbjfnjWXH YVJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LIupk08t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id ce22si7704628ejb.496.2021.02.15.17.05.18; Mon, 15 Feb 2021 17:05:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LIupk08t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229721AbhBPBEX (ORCPT + 99 others); Mon, 15 Feb 2021 20:04:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhBPBEF (ORCPT ); Mon, 15 Feb 2021 20:04:05 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2AEBC061574 for ; Mon, 15 Feb 2021 17:03:24 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id ot7so11406152ejb.9 for ; Mon, 15 Feb 2021 17:03:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zrjbMWbLD5k1YU1gY6sgg8lrLPs48sMOTQtq5qr6+JE=; b=LIupk08tNIWocLfmHYdevHIaMUM6xGoaBpAWMYTkuBgf3r3EGTFB209egHvSXfoGNS GWCWd7fEN/Bq4pnpKID2URgFbQqUTAU0x5/K9yCIWixQjRfUYcasFfnfI4Dz/HnBRG54 dhmq2a26jT7RKOsFjj3UmPANSPpO/7HeXa05EhfgHmDdrRYh0xun30YVkTlAlSliJdOU x9oPZ9Mw5Y+RDjR1FrWgrdAicmx3f7lHd4l1LWa9dYQyyqjqsWggjk61PKX40m4ENZxw pC5aJ3gDug4zgcA1QWzS75Qk5sOiWwwLuPUfn3cSlR4bGI7xeUwEbZSP01Nb3XKKQ4gp NviA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zrjbMWbLD5k1YU1gY6sgg8lrLPs48sMOTQtq5qr6+JE=; b=DWc+PxV8NjQbVUXwalfuhky67UZNlTAhCeJUD2AUjXyBbxRLeG4VJAWfRVR8jiMA5c 65E/5Poyhm1O/xK9Wf34eSdufUyfopW32f5kYMQhDZMkDs7Hv7npVPxkrpANko5991sa NnKapKaiI4/yGfB0KkHsGYLZwYG4ky14P2786m8M8g8DDdEKBxYreo7K2oY2b3TaOqUd QYPAqTG7wAGp6t52Vkk2Jz+VL9lvc/sFaCdR6OOlQBBpaa3XxCf50QJQNNOh53QPVqlK BNi0rpYFvzEkL3dOS3m6s6lsVL36R+Zv8WhzzKFk8G4nS+M+BZxMBHGlIgmMQxErmbMF +X1A== X-Gm-Message-State: AOAM530VBJTRllyle/euMzHlhNVUsVWBSz7DJFjDormZp2vQNpi7mTKU 0cbngafDh6aTy49PLtrpSffGKSoxzUYgCJHl07qJxg== X-Received: by 2002:a17:906:4c85:: with SMTP id q5mr17896470eju.375.1613437403417; Mon, 15 Feb 2021 17:03:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Naresh Kamboju Date: Tue, 16 Feb 2021 06:33:12 +0530 Message-ID: Subject: Re: LTP: madvise08.c:203: TFAIL: No sequence in dump after MADV_DODUMP. To: Al Viro Cc: Arnd Bergmann , open list , Linux-Next Mailing List , LTP List , lkft-triage@lists.linaro.org, chrubis , Jan Stancek , Stephen Rothwell , Arnd Bergmann , "Eric W. Biederman" , Christian Brauner , Kees Cook , Peter Xu , Andrew Morton , Petr Vorel , Richard Palethorpe , Joerg.Vehlow@aox-tech.de Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Feb 2021 at 20:05, Al Viro wrote: > > On Mon, Feb 15, 2021 at 02:11:15PM +0530, Naresh Kamboju wrote: > > > fs/coredump.c:903:9: error: 'return' with a value, in function > > returning void [-Werror=return-type] > > 903 | return 0; > > | ^ > > > > Build failed due to above error. > > FWIW, here the test results in > Running tests....... > <<>> > tag=madvise08 stime=1613398818 > cmdline="madvise08" > contacts="" > analysis=exit > <<>> > incrementing stop > tst_test.c:1250: TINFO: Timeout per run is 0h 05m 00s > madvise08.c:78: TINFO: Temporary core pattern is '/tmp/ltp-tgvQ3Lz1UZ/B6lwy6/dump-%p' > madvise08.c:117: TINFO: Dump file should be dump-2276 > madvise08.c:201: TPASS: madvise(..., MADV_DONTDUMP) > madvise08.c:117: TINFO: Dump file should be dump-2277 > madvise08.c:205: TPASS: madvise(..., MADV_DODUMP) > > Summary: > passed 2 > failed 0 > skipped 0 > warnings 0 > <<>> > initiation_status="ok" > duration=0 termination_type=exited termination_id=0 corefile=no > cutime=0 cstime=0 > <<>> > > (built without -Werror=return-type, so I'd missed the warnings) > > Anyway, I've folded the fix (with those stray return 0 removed, of course) > into #work.coredump and #for-next; works here. Could you test either > branch (in git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git)? By using Linaro tuxsuite [1] I have built your tree and tested on x86_64 and the reported test PASS now. LTP syscalls [2] and LTP fs [3] tested on x86_64 and both PASS. Tested-by: Naresh Kamboju [1] https://gitlab.com/Linaro/tuxsuite [2] https://lkft.validation.linaro.org/results/2278012 [3] https://lkft.validation.linaro.org/results/2280979 - Naresh