Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34010461rwd; Sun, 9 Jul 2023 03:17:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKqR8X9+DtSsfLt54JcEAajrJw3D95MmP/O0xa+93cSbEXi2TLmCLz/7pGmbYivrNyQ59a X-Received: by 2002:a05:6a00:1912:b0:682:57f0:7c00 with SMTP id y18-20020a056a00191200b0068257f07c00mr9705005pfi.3.1688897833538; Sun, 09 Jul 2023 03:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688897833; cv=none; d=google.com; s=arc-20160816; b=Erj9URJ5nt82DD4agBlFODMgFZH3uMdMUziBS3x1wlvSvDveJIVeut9XvIPN/HIkgv Zy3mSDSbObiVDSK0Bttuqm0CUwMEg8R3fqFRWDD42Fs1w845rZjKDV54Ix4L0eHCAsuU OKQGI8ztlQSkrDz4EvKpVlCIF76YQdmA1ey5P8wvV2L2xPsR+Fn6c4o1D62ThOw08yqV 2cmq6itKlQz6k1qa/1PK1dv8TE/nQnyHhpNxa8pDZFoX7v+29HLVhbfvLIOFP/Qb4dcv obOd6eG6pbcZ8o7HFOiIxJ2o/70EXuehIftbohkKM2SrK361ky7dZNLyUJNDyrNxvQo2 GhXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=7pk6gW1W17sz7j1PBXmpZVGu7IXm0Dy8WM5rSk+kl4g=; fh=7G4zhAeL2GDfUyvEt0NQ3kY8suZ6zVwdL2oUkxvyrDg=; b=VVwmlzCK0j8rlVGigAk6ncbYgoq66TPuhszFjPnFs+tGohiwxkO43myR2p0qb3n/rE Pko8G5pkFQhKP2a4SremHC8wvxTA6wzGk7+iqdEFu4fHFYd8WiJtERcUnikJvsRGxySr wWgh6vZpfUKlxUTd3imeOLSka/r19KCBoZWsH+lY6mjaqxXOwdDkUDQR+VdpwvwOpCfB z8NGcM7S453Vg0d/Z9BuIRJ6tnXUWYGG3xMPdnWUZHgaaCbYckbv1JY5lc2Uwc7OOZGD wp7ezqX9MS/JKlSKgJjK89rBCFET+jfKXI9Ts7T63qOA8NKPtrL6ct2Wo5OpDNUiwd8Z A2hA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h16-20020a635750000000b0055afc8d8a0bsi7351607pgm.411.2023.07.09.03.17.01; Sun, 09 Jul 2023 03:17:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229960AbjGIJQ2 (ORCPT + 99 others); Sun, 9 Jul 2023 05:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbjGIJQ0 (ORCPT ); Sun, 9 Jul 2023 05:16:26 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 698E2B8; Sun, 9 Jul 2023 02:16:25 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 3699Flap018530; Sun, 9 Jul 2023 11:15:47 +0200 Date: Sun, 9 Jul 2023 11:15:47 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: arnd@arndb.de, david.laight@aculab.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, thomas@t-8ch.de Subject: Re: [PATCH v6 13/15] selftests/nolibc: add mmap_bad test case Message-ID: <20230709091547.GD9321@1wt.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 07, 2023 at 11:05:49PM +0800, Zhangjin Wu wrote: > The length argument of mmap() must be greater than 0, passing a zero > length argument expects failure with -EINVAL. This one doesn't work for me on x86_64 kernel 5.15.112, qemu userland: 46 mmap_bad = <0x0> EEXIST != (<0xffffffffffffffff> EINVAL) [FAIL] This EEXIST actually is the errno from the previous test. If I run the test natively it's OK: $ ./nolibc-test syscall:46 Running test 'syscall' 46 mmap_bad = <0xffffffffffffffff> EINVAL [OK] Errors during this test: 0 I'll queue it anyway for now but it would be nice that we figure what's happening (even if we need to adjust or drop the test if it's a false positive) so that we don't get used to "ah this is a normal error". Willy