Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6719911rdb; Fri, 15 Dec 2023 06:43:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoT1iAXJi8A/pLZhGjrae4d8lBXHyUTRUr9fuJ704C/JWvFDe3Meezbo4cnyv/JM8BV49f X-Received: by 2002:ae9:e905:0:b0:77f:402:f3b9 with SMTP id x5-20020ae9e905000000b0077f0402f3b9mr12018234qkf.55.1702651426770; Fri, 15 Dec 2023 06:43:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702651426; cv=none; d=google.com; s=arc-20160816; b=FEFrDMxBvL//L3axly40DQsCi3DmfasCL4lZg8DD/qy5Rg655RTyGaBz6FRfoSx+pU Ht+OXk8+XI5GjEkplRA8ga3k233y8F9Om7KIBLsAQ97I95TcTNLSq22ZJnTiSJ9aDCQu pXHUl9ZQwl3uw55u4Fjz56Ck/3mtfxTrrCgzl5O85p+KixjyjerBOdblHJI6wqJJSsyO I1+TOkHxvHvmbdesDc4FW/2PcVM9fs6v6U0qkhf0XM7MA494HMXHbWVDtLTScFoGJd1C mqXB8FX8+IVcFWOD3WMcPCUddSr8iK2faNqQ0uWw28LzKDSY8t+B/6TDK6AMcpoqIwQy co6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=aGMYxeknzC7gjgFIn010QvpivnBYXCaeK7U8Zp8Dqns=; fh=2z/eAAyqjkyAIgtE4CS0Pbg0a0w+SLtwcF1Mumxr/KM=; b=0OPJZeiNWGGKiw2a06/7d3YREYRQ9V9BoJL1cDUoShhG5oI8GovQf+DY29/Y16PYNT Bb0rx93uXoxxpQwBLgLfJ4GdB1c5BJlkGgnpvIW9tXRsRyDiSe2X/gC4vRBnCEpmaWgs yO4x0TsFv8yD/02Foncf1EsO423Slr558SYSjg4g40TPr8ptP8a/1RB+wgAGX1JDVriB g5pJuLcsQDYpN+Bsd7se1mlHi2Se3IWloc1pcmq439uM1wGzMD6zgNw8SbJX2I2LTbmQ EmGOKoq2mVrbrdxln71m5kf+J5hC1MdIbTx8xwBKzULM0Ph5/t/KEnBxCVp3II5XFMDs ZD6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=s3kuor0o; spf=pass (google.com: domain of linux-kernel+bounces-1124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ay44-20020a05620a17ac00b0077590e5ec7esi18299555qkb.361.2023.12.15.06.43.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 06:43:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=s3kuor0o; spf=pass (google.com: domain of linux-kernel+bounces-1124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 843A91C23789 for ; Fri, 15 Dec 2023 14:43:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EE5F3A8FA; Fri, 15 Dec 2023 14:42:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="s3kuor0o" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DE2639FF1 for ; Fri, 15 Dec 2023 14:42:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-67f07090053so5445986d6.2 for ; Fri, 15 Dec 2023 06:42:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702651350; x=1703256150; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=aGMYxeknzC7gjgFIn010QvpivnBYXCaeK7U8Zp8Dqns=; b=s3kuor0ortf4gI9VX9IlGJh5gT8HeElsb18TwHJRc2oQQ4mHRepVR2n+ODPkBAY+Nx H8JFyVglnsbqlNlkZsHPn+T3gSB2oA10HGvQkkq7UPmA4udR75x5zVoblvovqUtE5S/2 pwxdn92vpW0faVF2dBJrCr6e7hPn3r3Q913YKforl0UlctOLHPb6zHKPqQOyHkNfp5/N OWOKTiRpBIrYJzmGN4LZMi5OOZuBmoYWR7W8FN5kfU/PGYoeiA/Ha2o6IhgcuSE7RlWx 4XPdVQQfa7mMG9Cwr/syXEJMsYD40Ttp35nXtMrBJ0qZSIRZAgobTeARkd0JtFwPCPOJ aMGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702651350; x=1703256150; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aGMYxeknzC7gjgFIn010QvpivnBYXCaeK7U8Zp8Dqns=; b=CTNA3m6wfgZc1DG96E3bTL4maNX67OUoOm4fRB4zw8H5VWG/auijRgoiVM6vEEuA7Y cMFhkkc+7BpD7VcCtaIC/Z9pKzZmoCYzk5C7eKqN3Z138n1wTpV1NjfZktweJWeOXqzr AAI96eq7WCp2vnh/UbK1l1tTWFi/WlfeF+z4I6tBm9K6eH3X3maubd0WdOoF0jJEG8pk k/8D/HpEYsI2nmqLpy7er1glP8fcfbPhA43b7Z7AqUJEsUx6kf0ozLwHUK1HzAcrngjL XLL26n5WC48DQgvwzRDtPbTyAYlztk1gPkiEfkn+xi61K/YMaKi4jWqyFl1iNGPl+9wg UkSg== X-Gm-Message-State: AOJu0YzwVVAewTbv9VHj4ECsadBaGTMCqxKX2cH9TANA8xlfamIo6Xh3 wNYODIzv46mCJGfr7jb58RO2HTftLln1POG8YkV+4g== X-Received: by 2002:a05:6214:226d:b0:67f:f0d:1bda with SMTP id gs13-20020a056214226d00b0067f0f0d1bdamr2911619qvb.110.1702651350277; Fri, 15 Dec 2023 06:42:30 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <000000000000f66a3005fa578223@google.com> <20231213104950.1587730-1-glider@google.com> In-Reply-To: From: Alexander Potapenko Date: Fri, 15 Dec 2023 15:41:49 +0100 Message-ID: Subject: Re: [syzbot] [crypto?] KMSAN: uninit-value in __crc32c_le_base (3) To: Dave Chinner Cc: Dave Chinner , syzbot+a6d6b8fffa294705dbd8@syzkaller.appspotmail.com, hch@lst.de, davem@davemloft.net, herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, linux-xfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 14, 2023 at 10:39=E2=80=AFPM 'Dave Chinner' via syzkaller-bugs wrote: > > On Thu, Dec 14, 2023 at 03:55:00PM +0100, Alexander Potapenko wrote: > > On Wed, Dec 13, 2023 at 10:58=E2=80=AFPM 'Dave Chinner' via syzkaller-b= ugs > > wrote: > > > > > > On Thu, Dec 14, 2023 at 08:16:07AM +1100, Dave Chinner wrote: > > > > [cc linux-xfs@vger.kernel.org because that's where all questions > > > > about XFS stuff should be directed, not to random individual > > > > developers. ] > > > > > > > > On Wed, Dec 13, 2023 at 11:49:50AM +0100, Alexander Potapenko wrote= : > > > > > Hi Christoph, Dave, > > > > > > > > > > The repro provided by Xingwei indeed works. > > > > > > Can you please test the patch below? > > > > It fixed the problem for me, feel free to add: > > > > Tested-by: Alexander Potapenko > > Thanks. > > > As for the time needed to detect the bug, note that kmemcheck was > > never used together with syzkaller, so it couldn't have the chance to > > find it. > > > > KMSAN found this bug in April > > (https://syzkaller.appspot.com/bug?extid=3Da6d6b8fffa294705dbd8), > > KMSAN has been used for quite a long time with syzbot, however, > and it's supposed to find these problems, too. Yet it's only been > finding this for 6 months? > > > only > > half a year after we started mounting XFS images on syzbot. > > Really? Where did you get that from? syzbot has been exercising XFS > filesystems since 2017 - the bug reports to the XFS list go back at > least that far. You are right, syzbot used to mount XFS way before 2022. On the other hand, last fall there were some major changes to the way syz_mount_image() works, so I am attributing the newly detected bugs to those changes. Unfortunately we don't have much insight into reasons behind syzkaller being able to trigger one bug or another: once a bug is found for the first time, the likelihood to trigger it again increases, but finding it initially might be tricky. I don't understand much how trivial is the repro at https://gist.github.com/xrivendell7/c7bb6ddde87a892818ed1ce206a429c4, but overall we are not drilling deep enough into XFS. https://storage.googleapis.com/syzbot-assets/8547e3dd1cca/ci-upstream-kmsan= -gce-c7402612.html (ouch, 230Mb!) shows very limited coverage.