Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2852219pxk; Mon, 28 Sep 2020 01:31:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJR2jrdRPSJDR3d2RENoXAgSgh+yBgnkaPGf7ZFJkhhWnqjDhwnVVG60d8dqFDGHtVhBOp X-Received: by 2002:a17:906:8559:: with SMTP id h25mr564828ejy.536.1601281866299; Mon, 28 Sep 2020 01:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601281866; cv=none; d=google.com; s=arc-20160816; b=lAYXxjfS64SGTeRnygQDksHSLj7jyEQ4FZTv/inrZ8bZmoodE2nSCVjdxZEahZ6TE6 WSAtEHLXVng3702Vs+e66JJAuGMOXcxgP1WF9aBj7SRwcoD3fdD5pdC5Ht9RaxefMRsu ZJqGPxsU2a/qVatHFfPq/SdV/J+C9u57N0UKTLLxuDedJ/JwN47tbPPZKLCk5loZ0qy9 dRybfhFBbanHR6d1u44oPRoQDTBa5L/77OP59Lk6/0qgXHT1eaozIUhw69NEu6hrIlU5 T+uBkVGfMqAzDTpWlIFscHAhlfFVZjcbEdd9TjBtySY8gDpE8ueocubHy8umeY5N7HqB i6Xw== 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=s4/SD7sDkhkzjSmNCqnhnzxoSGKZx4XDrWdqdQe3XZ4=; b=QMDFvM41z6iX8G7NDFeiaEEwQewvS94NK60R7ZlJfKYDAtmCn7+xRnvVJlZpFAqiKA nPe/YixAcM1pmS84TAJVZJ+781yifMD2JahV+q/ruZmGj1vT+rHNsIKdPoI00j5qW72l xWy6SLbX90yGE7Oy5RDNEJOCf3uNCQJP2PR1lw7J8uSnVFCw0OkmE0MWlYDY8sqwG5P+ StKP1e9N1NflXpBw9ih7KQL1lT+9t+ZTwJ/S3mWCk36dZd0Wkv2NN2b3cdj6dyMR9hDr Q9U+szxSvr962xdyeBZSPtnzOkKpP1Wi6X43bXeyWTa1hvJPwMPqozavt+8G+DqLIdtM HSOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FuiT47fm; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si162901edd.16.2020.09.28.01.30.43; Mon, 28 Sep 2020 01:31:06 -0700 (PDT) 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=@google.com header.s=20161025 header.b=FuiT47fm; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726504AbgI1I3W (ORCPT + 99 others); Mon, 28 Sep 2020 04:29:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726328AbgI1I3W (ORCPT ); Mon, 28 Sep 2020 04:29:22 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E1C0C0613CE for ; Mon, 28 Sep 2020 01:29:22 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id o21so136612qtp.2 for ; Mon, 28 Sep 2020 01:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s4/SD7sDkhkzjSmNCqnhnzxoSGKZx4XDrWdqdQe3XZ4=; b=FuiT47fmOQx6DCBlqkiTikuEAjM+gEeegjVBcLz9fChgT+Vqev1yjRHhl+fxLrs8Y1 DQ+9/cWC/kMR5b3Vo6+g+5TY/tOwJLb/2yiQxHLzw94JxofxKRwoeYRTFBrphQKF+ZE4 oBto8rP0m3U92NUQBarcpKHRJCUztbR/Nx0ngvkPUewmdNbEFb27FJl5wiBwdhZVPH4A egvrMy8phOfMO9JUPEqwb2MaiB0jSCgoXkK+pJSbzX1QSmPKdoV/6c/kkOFPE4SuS7fv TFGTrMWYHUPcW5z81C9wIYBILvrpU0oayb8sTfpJg5Vtrq592+1+e0iu3QYJQfoNnNlI /fJg== 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=s4/SD7sDkhkzjSmNCqnhnzxoSGKZx4XDrWdqdQe3XZ4=; b=MdwU1SifGx/yISI9S8Dt2nwf3Ypd12ayI8fsX6dS1Pj815b4gU0dFlUonWqTgN7hJO ZRTIp+OYSmOrK9FmdfkReHKfE1zaYGZ752Juyq18IomNkbn5VG/+w9VYbs3ec+kOAjYH 0tJkVWn+Phtp90LLlXKY52kO6UvkxyfDTsT0mqBW8/2Mswoa686dkuzYiifz19O6q/UI 9SO8AqGsv6oqyEXB2+rGgeke8kslyKDr15QR3TXr1inBjiQlfGBs5wn65DjOtd+f/GSi YjSiUwr28hjjsDHYyayZAJZRzNSEWHXLbE1KPUEWbW0DUU6+nY0SdUrEKEExD3dAAsOU zL2g== X-Gm-Message-State: AOAM530/UlDjmbg1mZNOhvsJD3WO8UzeB32C9OzNX8s3AqIcbfLlM+GS fw0U3Py167aCmo5RoNC4TBh2QYKeEOvXGQrZcuGZIQ== X-Received: by 2002:ac8:4658:: with SMTP id f24mr444266qto.158.1601281761299; Mon, 28 Sep 2020 01:29:21 -0700 (PDT) MIME-Version: 1.0 References: <000000000000b7551005b05ae3b8@google.com> In-Reply-To: From: Dmitry Vyukov Date: Mon, 28 Sep 2020 10:29:10 +0200 Message-ID: Subject: Re: WARNING: filesystem loop0 was created with 512 inodes, the real maximum is 511, mounting anyway To: Tigran Aivazian Cc: syzbot , LKML , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 28, 2020 at 10:23 AM Tigran Aivazian wrote: > > Hello Dmitry, > > On Mon, 28 Sep 2020 at 08:51, Dmitry Vyukov wrote: > > On Mon, Sep 28, 2020 at 9:48 AM syzbot > > wrote: > > > BFS-fs: bfs_fill_super(): WARNING: filesystem loop0 was created with 512 inodes, the real maximum is 511, mounting anyway > > > > This looks like a BFS issue. +BFS maintainers. > > No, this is not an issue. In the latest change to BFS I added the > following comment to the header fs/bfs/bfs.h, which explains it: > > /* In theory BFS supports up to 512 inodes, numbered from 2 (for /) up > to 513 inclusive. > In actual fact, attempting to create the 512th inode (i.e. inode > No. 513 or file No. 511) > will fail with ENOSPC in bfs_add_entry(): the root directory cannot > contain so many entries, counting '..'. > So, mkfs.bfs(8) should really limit its -N option to 511 and not > 512. For now, we just print a warning > if a filesystem is mounted with such "impossible to fill up" number > of inodes */ Hi Tigran, There are rules for use of "WARNING" in output required to support kernel testing: https://github.com/torvalds/linux/blob/master/include/asm-generic/bug.h#L67-L80 This seems to be triggerable by exteranal inputs and breaks these rules.