From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f69.google.com (mail-oa1-f69.google.com [209.85.160.69]) (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 2519228850E for ; Fri, 17 Apr 2026 16:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776442890; cv=none; b=T75ywiwXu8ortoqkv4Y9tvP+CEOaiRgXgo/XUUkke4o1N6dHiU9HljiyW5CiFw5gmACBXkIlbo8vxFJbbrsX2e9NUSip+EaZaEMT1s8FbJJsopHjAMixYCkoeDITPc/0f51LuvTdrrw2lOADxkzsE2XSu7yLchzLxc3A2EFW8ZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776442890; c=relaxed/simple; bh=nUI4wdEXZhKi7VoaGLvJ8yyypjEFRnBFsbwTouVOJdg=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To:Cc: Content-Type; b=NIC3dKtlIgzKMNVFNOhhT8v6K7ykD9X5mhO5HuzIS8r5In5ZaLH4wJj6D/ha45lifa2c6L3DspMyAH26MpvqfrUvqVGQdjCtoCbTOX4IBIyGt43mJLRi7dbOXwvJO6zWY0bnw68vmkjJ33C3P+Txn2cdLZz7mXO9DczeQ5gqhs8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.160.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oa1-f69.google.com with SMTP id 586e51a60fabf-41c5c1675c9so896556fac.2 for ; Fri, 17 Apr 2026 09:21:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776442888; x=1777047688; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dRsPgA7gtu4hFBBavH4+uBOTyaOEHHhMWQTtDzwPnNA=; b=hu5GVdb0fbZeoR3r8sEpKp2g+gvOamUrWkcQ2GnFso4i/rVWETm0fIEPJoGXG/aB1B iArFlMoAoT0iA1gJ/YVHdYiDyc781V6NNAGRdkNGXeZ73GGSmPdAH6GsenYoCCA1iWrk hipgGcZYd6ypfXXbpUth9WCWy1z+GPW+BWAeDoiZCBRqkaqpwXzJBtla3+ts+by+pMD3 /8krQSadNBD+9nRwRok7x5Jli0RKLmz7/rTa55c6EEROWijUK8EAsDbIEyjgRiukpYol IkRgf8e5nDDu9zY7r3VyTupD9R9gNU4x+5kidLDwBEHg2/KisqNEgaoXWb4dxtMuLQUv pRNw== X-Forwarded-Encrypted: i=1; AFNElJ/7vvPik6gAh3DnmhSt+SsnzTsXRTr4rkZ7mIkCLZK4dKyx6vOJKhCp78JAbjnGiM9ccC2zvNj3iqql1Fo=@vger.kernel.org X-Gm-Message-State: AOJu0YyNzoUhLTDmLqp+O2ef8kp2UFanXyJYFokORDtPyRQ0WAnfoQHX UDYzneayy4SRzMVCEeFittoP9Ph4eWdvOURKi8PXgu5naoHvZ36kAfUFi5aplsZVOQT3GWK/4/d XedwmpG5bR8Edl+MIFjdAweymXsDPmXCLjqWbZuRMNbFAB3j6JKzbu4cI8cU= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:2907:b0:688:6d55:190 with SMTP id 006d021491bc7-69462f440f3mr2011373eaf.55.1776442888282; Fri, 17 Apr 2026 09:21:28 -0700 (PDT) Date: Fri, 17 Apr 2026 09:21:28 -0700 In-Reply-To: <177644288492.3790412.4666541082447192776@talencesecurity.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69e25e08.a00a0220.1bd0ca.000c.GAE@google.com> Subject: Re: [syzbot] kernel BUG in ocfs2_xattr_extend_allocation From: syzbot To: tristmd@gmail.com Cc: tristmd@gmail.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" > #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master This crash does not have a reproducer. I cannot test it. >>>From 6a4d8a90cdc507e6cc43ee122be836e3ff19d2c9 Mon Sep 17 00:00:00 2001 > From: Tristan Madani > Date: Fri, 17 Apr 2026 16:15:19 +0000 > Subject: [PATCH] ocfs2: handle RESTART_META gracefully in > ocfs2_xattr_extend_allocation() > ocfs2_xattr_extend_allocation() uses BUG_ON(why == RESTART_META) > when the allocator returns RESTART_META. On corrupted filesystems, > this triggers a kernel panic. Replace with -EIO error return. > Reported-by: syzbot+e538032956b1157914a3@syzkaller.appspotmail.com > Closes: https://syzkaller.appspot.com/bug?extid=e538032956b1157914a3 > Signed-off-by: Tristan Madani > --- > fs/ocfs2/xattr.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c > index 86cfd4c..7dea9e9 100644 > --- a/fs/ocfs2/xattr.c > +++ b/fs/ocfs2/xattr.c > @@ -744,7 +744,11 @@ static int ocfs2_xattr_extend_allocation(struct inode *inode, > * We can only fail in case the alloc file doesn't give > * up enough clusters. > */ > - BUG_ON(why == RESTART_META); > + if (why == RESTART_META) { > + status = -EIO; > + mlog_errno(status); > + break; > + } > > credits = ocfs2_calc_extend_credits(inode->i_sb, > &vb->vb_xv->xr_list); > -- > 2.47.3