Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5909515rwd; Wed, 24 May 2023 08:19:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4urEVT13DZqNUKo7T2+Fr071dlnSlbvM9Mxfk+RiQMgtaRLP+NsiHRG1k4Ekz3UrNae7Ci X-Received: by 2002:a17:902:c944:b0:1ae:66cf:b90f with SMTP id i4-20020a170902c94400b001ae66cfb90fmr20947298pla.66.1684941542610; Wed, 24 May 2023 08:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684941542; cv=none; d=google.com; s=arc-20160816; b=hlsKwooUd3gl8IcRoEwTYG9vsT0vNV2ULaf0Emc7kQqAY1b2uqSNknNk38L199Bgam qx/5Tzb7nCTX0zN6fjfrKp9dOAd+MEgg3PU04dJrPtGS2VMZ+FA+8bwt6Sc6z+BJyzrq b7jqCQ0Zr5uF1YXlOGl/23qsIRgOIefdcaVGGdLCYB9rr7YBNM9r8V5VMzvq14laZFYc n3eRegweJnWOpDe1IVPc6d7/AhXeluWOLs3l26X6XgXcHcPMJU1bAL7lZM0WmNQckD3g I1uVVooviwxigwqMI/l+4dCiiLV0pItibJtp+tqnITAgK+kG/3mg1iUurAcdLtsidK+m 2h1A== 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=HqqN7STJH2LoGCrwrill0kIUbhodoox7qSOdJoH92o8=; b=bN0Kn6ym7ZZGJJGtC4nPUDCe4NlM917LBhPFzDoEWgBPcIiMYoSJZ4xQPxf52zZVew mn2+HX34yYneFO6MSReBoXKlN49FR+T8vWu2ocm24TkEll00zscla5p5kBKxG7dHTzpL UWv4I8+mw3GK8diJjHKUWJbWR+fDT2ZfNxhcZfsqsLaGyOAAEucGMfaDHM5+kDNzhl7C Pekv7LMX9/0RwZDsWaDkAnldWGCjlg8zspx//GZFPLL7+OFsymRzCVNaGledY1nYuo2X Q6qjNMZOUExKxSmV+5ZrVyV/12n3p+D3Dxg3Ju/JZP2NpOzrvoZQYmOaxy1V3bE2sI1D zHSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=EFehSwqT; 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 a17-20020a170902ecd100b001a6ff6a83e2si1249726plh.522.2023.05.24.08.18.46; Wed, 24 May 2023 08:19:02 -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=EFehSwqT; 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 S235865AbjEXPLk (ORCPT + 99 others); Wed, 24 May 2023 11:11:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235945AbjEXPLi (ORCPT ); Wed, 24 May 2023 11:11:38 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DCA518D for ; Wed, 24 May 2023 08:11:35 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id 3f1490d57ef6-ba827c74187so1597445276.0 for ; Wed, 24 May 2023 08:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1684941094; x=1687533094; 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=HqqN7STJH2LoGCrwrill0kIUbhodoox7qSOdJoH92o8=; b=EFehSwqT4xP3Dsgl9bmiZS3CIEPYx7oE8YP/dagGWOYw22jxpzPgKbLa+z/ZmWlOwX sbDUYJK1SF3CUXwmwlypvEibDRI9nS0D2DX+1qVKP8T5GElGdyojL5b5LWCxsc3eJabx TAQKujaM7/wvTwHsVvSiJVHxSnfB7NkBNEEEy0m67Z1moTU+gNl374iCNxVEG4RM6sZW 9VpQVnKwVC9ltwPttucugKAFTxlXCjokxJbv+TppvKl4cWmkpEiNAzPg+S0RLyaHL2T5 8746YxI3TCs5u9PRcnTlk2UxGUeRQTfCZaRTwVv3wIyHrEIF5SBSX4BfjZzx6oLbdaGJ X1Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684941094; x=1687533094; 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=HqqN7STJH2LoGCrwrill0kIUbhodoox7qSOdJoH92o8=; b=laDadDnMTElc6+4b7ddjWpm7UhcWxo4yYuVyxcXgmfN2PfQQVhmym0sfwmQ96BQklY 6dUPIokxFA+NwmZU6mmbppzu2a6fLZS/XT+lwaTlUYcsoXWpq3ILzVSTcdS5JVkhWOcT l9M0UGEnFi1zMEO0dOthkXp3hgaZ/mApCrHo39s3FQw0m7VhvdEwIhHTK/juyIdZ+a4y xHR8oMJjy6WzA7Cj6VXvN8K+kL6Rg4XdMswDxaMYfcboJDgxkXps/h2vZGG1vt1UJSFr cKy96jM7PkEf53v6fG9xJ3e3tgPn0g8lt3JR8aRevY8JAQ3Vnh+fOBsQ16kewgz9ssh5 KV0Q== X-Gm-Message-State: AC+VfDzqODiYt4ReMYZOSDnoTM95jhp+Echqe0KlotUZ2W7er1yk51UM 18/WMKf/iIksvRxFxhJW+maiqGjh0JVVebaMYxUd X-Received: by 2002:a0d:cc95:0:b0:561:7ec:cf90 with SMTP id o143-20020a0dcc95000000b0056107eccf90mr18983019ywd.42.1684941094273; Wed, 24 May 2023 08:11:34 -0700 (PDT) MIME-Version: 1.0 References: <000000000000be039005fc540ed7@google.com> <00000000000018faf905fc6d9056@google.com> In-Reply-To: <00000000000018faf905fc6d9056@google.com> From: Paul Moore Date: Wed, 24 May 2023 11:11:23 -0400 Message-ID: Subject: Re: [syzbot] [reiserfs?] INFO: task hung in flush_old_commits To: linux-security-module@vger.kernel.org Cc: 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 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_writ= e() > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=3D11c3963928= 0000 > start commit: 421ca22e3138 Merge tag 'nfs-for-6.4-2' of git://git.linux= -.. > git tree: upstream > final oops: https://syzkaller.appspot.com/x/report.txt?x=3D13c3963928= 0000 > console output: https://syzkaller.appspot.com/x/log.txt?x=3D15c3963928000= 0 > kernel config: https://syzkaller.appspot.com/x/.config?x=3D7d8067683055e= 3f5 > dashboard link: https://syzkaller.appspot.com/bug?extid=3D0a684c061589dcc= 30e51 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D14312791280= 000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=3D12da860528000= 0 > > Reported-by: syzbot+0a684c061589dcc30e51@syzkaller.appspotmail.com > Fixes: d82dcd9e21b7 ("reiserfs: Add security prefix to xattr name in reis= erfs_security_write()") > > For information about bisection process see: https://goo.gl/tpsmEJ#bisect= ion 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. 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. -- paul-moore.com