Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp114216rwd; Wed, 24 May 2023 15:07:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6K8PNTL3eo5DXqeVVyQ3HxbSycG5CXOVq1sJDWZ6gQCVs+/KjrZn41FQxk3e9YqNj3YQ8K X-Received: by 2002:a17:90b:190d:b0:247:afed:6d62 with SMTP id mp13-20020a17090b190d00b00247afed6d62mr17614539pjb.46.1684966030743; Wed, 24 May 2023 15:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684966030; cv=none; d=google.com; s=arc-20160816; b=HYmqdO9Jngrc5MLxo7fpwdmXiSlFuyuIJrJ/Hkkoxtg0360HoGD1BqD2VIa/pe7mCl NndwlMKj7PAtpVE4q0UrADoNq6YdxqTKLkRq/xIqDDKdyqK9nwKTuIMJu/sr6Hx33mqa FLZHwSOujcqfIJoKnKurTkjMgCCcXcOsnk9FiBWDahy/gJLFZuUcpAi2l8DhASBygtuh vFCQ1wcF+dzaPQ7t2n2ZCwYl8nVF+W+pF9KCBKAiCcy7COvQHJ1srqxrIOd+bTr1ahsw W8YkDbh4PDj2W+Dg80A175UhxRnT3WPYDcH8ppXuDXGyzzGBVHbyU9QBYshAr8JjBcUG vTJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HnrQePs+guIncAtpR4LpewLTG9uJD1WVMzDg7x5+JnQ=; b=fJ/eRSto6TR+oKxYMqb9RgnARQTKtFd1cfcS6L2ibt+8krEtzMZRbq6PItAV5Bf8x1 RWLK35U/pywCy4pRSSzKGowtRKMNnrXQaJXRxGEBhRu6aYFaDPxFISohJ/M4AaLm8984 4LLx5Nje1WYK3I2DNfs0SDBU0I0Nqrab8DkwjlJR8szZ9xq0ppJVlSjKPDESLzqlO9+J 4KBy/u4ljMz51h7sAdPJYw+r9EoCG/gO/5RLZnlfvWZOcpKLpwR/ftdq8CEi/xNwunVt yy7hYXSb2g75NgasyJ3nM7TKNhfVBxvX2Xnn9nl54KsZcXnFX7ComXw9x01CBonSLw/K mMGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=MOJGgNee; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v14-20020a17090ac90e00b002534549dac8si2070923pjt.38.2023.05.24.15.06.58; Wed, 24 May 2023 15:07:10 -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; dkim=pass header.i=@paul-moore.com header.s=google header.b=MOJGgNee; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232967AbjEXV52 (ORCPT + 99 others); Wed, 24 May 2023 17:57:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231411AbjEXV50 (ORCPT ); Wed, 24 May 2023 17:57:26 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 077CF187 for ; Wed, 24 May 2023 14:57:25 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-ba86ec8047bso2177209276.3 for ; Wed, 24 May 2023 14:57:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1684965444; x=1687557444; 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=HnrQePs+guIncAtpR4LpewLTG9uJD1WVMzDg7x5+JnQ=; b=MOJGgNeeZ2NTaZLOw5dLeQKOsSMdZuOUDLi4BpOvTiIWRhxlewpCkLWFm90AvCFDM0 dBbOiUgnwSF3tx2OCsfzW5pehrThLZTOsfw+byMilrUxH/Cj5v2axZNDxs+vrOsJ2N4v IxXP53ZTgLR3muduWGVYPh1B5tWmAMwq4uWqW4WLkhKPpMI27Eee0C+v/cW+dzVTGCUZ 4A+99EiMuntUsoYNf+LzQB7aUOpYtEqfYo2C/g9I4lkOyTxkb7Zoy5dm+ieqK7BfUV0z H7dMG4Is8HvC4rO8ie0Gg/xc9BXLT61Su2UirLdP/AoEm8mYapaDU29mprZAm7Yp+MSi ymhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684965444; x=1687557444; 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=HnrQePs+guIncAtpR4LpewLTG9uJD1WVMzDg7x5+JnQ=; b=LgTGHw3heURsVdwkO3o5OVNpDQdS2v3e2/3rON7eqad0PLCAq66yTmuJojhxdJV+qf 7bwHaJiLmBbtj51QILt8F1AQTUp8osBPkDSZgiwBYnpBjtl6rfPgeHmZYmJ5zziTtBPa 4mWWSodPf6IER40sX0bp4XcCAd7vKlamqtCx5ddId89062gf42pab+Fr8/+tSi1N14AL fRyHV9yJ7PPesX7zxUxyBxDmX/Fxv5g53NDop6wvTndAOqH1r9EzHwPp0eJDSwH1HJOP ARGF3FQZnE2lzBOHW8g10kpe4KvKa8BJC5AWf6PJefLYuvsXDI/VqJM8GiFSYX9RMefs NnAg== X-Gm-Message-State: AC+VfDwyC/gB7kWX2IraoBRlU4BJFqCb/h54v73TuQoAsMtYYfQVvwS8 lq14/8TeK+lUiEDWMF05KCv3fHFVFi/xw8XxRfSPoCOE+LjfNPY= X-Received: by 2002:a0d:e807:0:b0:55a:4ff4:f97d with SMTP id r7-20020a0de807000000b0055a4ff4f97dmr19964058ywe.48.1684965444190; Wed, 24 May 2023 14:57:24 -0700 (PDT) MIME-Version: 1.0 References: <000000000000be039005fc540ed7@google.com> <00000000000018faf905fc6d9056@google.com> <813148798c14a49cbdf0f500fbbbab154929e6ed.camel@huaweicloud.com> In-Reply-To: <813148798c14a49cbdf0f500fbbbab154929e6ed.camel@huaweicloud.com> From: Paul Moore Date: Wed, 24 May 2023 17:57:13 -0400 Message-ID: Subject: Re: [syzbot] [reiserfs?] INFO: task hung in flush_old_commits To: Roberto Sassu Cc: linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, reiserfs-devel@vger.kernel.org, roberto.sassu@huawei.com, syzkaller-bugs@googlegroups.com, syzbot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, May 24, 2023 at 11:50=E2=80=AFAM Roberto Sassu wrote: > On Wed, 2023-05-24 at 11:11 -0400, Paul Moore wrote: > > On Wed, May 24, 2023 at 5:59=E2=80=AFAM syzbot > > wrote: > > > syzbot has bisected this issue to: > > > > > > commit d82dcd9e21b77d338dc4875f3d4111f0db314a7c > > > Author: Roberto Sassu > > > Date: Fri Mar 31 12:32:18 2023 +0000 > > > > > > reiserfs: Add security prefix to xattr name in reiserfs_security_= write() > > > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=3D11c396= 39280000 > > > start commit: 421ca22e3138 Merge tag 'nfs-for-6.4-2' of git://git.l= inux-.. > > > git tree: upstream > > > final oops: https://syzkaller.appspot.com/x/report.txt?x=3D13c396= 39280000 > > > console output: https://syzkaller.appspot.com/x/log.txt?x=3D15c396392= 80000 > > > kernel config: https://syzkaller.appspot.com/x/.config?x=3D7d8067683= 055e3f5 > > > dashboard link: https://syzkaller.appspot.com/bug?extid=3D0a684c06158= 9dcc30e51 > > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D1431279= 1280000 > > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=3D12da86052= 80000 > > > > > > Reported-by: syzbot+0a684c061589dcc30e51@syzkaller.appspotmail.com > > > Fixes: d82dcd9e21b7 ("reiserfs: Add security prefix to xattr name in = reiserfs_security_write()") > > > > > > For information about bisection process see: https://goo.gl/tpsmEJ#bi= section > > > > Roberto, I think we need to resolve this somehow. As I mentioned > > earlier, I don't believe this to be a fault in your patch, rather that > > patch simply triggered a situation that had not been present before, > > likely because the reiserfs code always failed when writing LSM > > xattrs. Regardless, we still need to fix the deadlocks that sysbot > > has been reporting. > > Hi Paul > > ok, I will try. Thanks Roberto. If it gets to be too challenging, let us know and we can look into safely disabling the LSM xattrs for reiserfs, I'll be shocked if anyone is successfully using LSM xattrs on reiserfs. > > Has anyone dug into the reiserfs code to try and resolve the deadlock? > > Considering the state of reiserfs, I'm guessing no one has, and I > > can't blame them; I personally would have a hard time justifying > > significant time spent on reiserfs at this point. Unless someone has > > any better ideas, I'm wondering if we shouldn't just admit defeat with > > reiserfs and LSM xattrs and disable/remove the reiserfs LSM xattr > > support? Given the bug that Roberto was fixing with the patch in > > question, it's unlikely this was working anyway. --=20 paul-moore.com