From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) (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 4F8501F4C8E for ; Fri, 17 Apr 2026 19:19:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776453574; cv=none; b=dnTtJddZKuN1ex1jVHnZhxwLZUI+jhlb3X7ZAF22PA+R7DS0psVJmb14dsyzQEHMn+VwQtK7HC40aTXwXGoS0k+x3ueDuZbGwuzu50ZXJoKUrllXfUxmVFhDfGPzzIwdwrhZ9rsbSxp00Kr9+TE1O4oU8WxpOL2qJtUxzR20oOI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776453574; c=relaxed/simple; bh=ZdUa4s9trpPEDpZYyE0WILyuYoezNDUE8r9OsZxOdPg=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=M2bSVQbprDnTiyIzgYtA1Uhqgm2Iy9BKMOzRsb2k8CpR8mzAk1HdY3U0myUiAGR+34Rfrzz7qM6nyIn+YuapVEIBnAbkia+mCvwD0x3sVr4utlPJM284NiEf1sEegstJF3+m1yKZIwTtQGgAqLQ9h4dlUJ8YUjtRYJuCPWVdjI8= 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.167.198 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-oi1-f198.google.com with SMTP id 5614622812f47-4723af8974fso1201049b6e.3 for ; Fri, 17 Apr 2026 12:19:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776453572; x=1777058372; h=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=QpslfJ47VOByvToyjG+15XO6p9msnzfNLtqSDkTXAzg=; b=XjiEjEbyPEFaREXn45jomxqhMyKl0jcCWdMGUV8yrcq1XcGYUtLNhQulJH8RbtfPSK sRC9U1cTWbLS0JTHmR7ooPCs7A/AqEXJuIQZqlhVyOPWVOFMk6YiKJpKdlf9eM6RArM4 5ux0dxQrgi/FsaVWH6CY15O5+7YJi+fToeMb6Od0H4JImy+tS2Ns8AzHcIzELo/leA+6 4DYST4/OBLPTnoTCT5n9T3n92yHgoIKI4BwUUqKRIePBn3dW5fCtsCOdCmRHDEZlOXwt +LMQ9nUFVc58n8COjfYaC1zxUAeRx/dQtLqhhOk68K+jVl7d6HqvPIvXHUS2pQ279Sma GWfA== X-Gm-Message-State: AOJu0YyeC6uWWXO7oz7mnsZtOujGlxHMr2eLDpIbfAnMtaaur+xdssJb tDy/T1vv4lA/CdpoevAdWTKuYUXLs1Ris/Qjhezx8X4arqBYBJzFrfOEFA9RaSLO/K2pVi7DEuS +6pwyleU54YNIJGne0EFzsMuunb+F+OpLoVifJTkU+ozJXMZQ+NRZ7FpNRdg= 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:1988:b0:688:29ff:2dd8 with SMTP id 006d021491bc7-69462f0e3aamr2442104eaf.41.1776453572335; Fri, 17 Apr 2026 12:19:32 -0700 (PDT) Date: Fri, 17 Apr 2026 12:19:32 -0700 In-Reply-To: <69345a63.a70a0220.38f243.0031.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69e287c4.a00a0220.1bd0ca.001f.GAE@google.com> Subject: Forwarded: Re: [syzbot] [jfs?] UBSAN: shift-out-of-bounds in dbJoin (2) From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: Re: [syzbot] [jfs?] UBSAN: shift-out-of-bounds in dbJoin (2) Author: tristmd@gmail.com #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c index XXXXXXX..XXXXXXX 100644 --- a/fs/jfs/jfs_dmap.c +++ b/fs/jfs/jfs_dmap.c @@ -2770,6 +2770,10 @@ static int dbJoin(dmtree_t *tp, int leafno, int newval, bool is_ctl) int budsz, buddy; s8 *leaf; + if (newval < 0 || + (newval >= tp->dmt_budmin && newval - tp->dmt_budmin >= 32)) + return -EIO; + /* can the new leaf value require a join with other leaves ? */ if (newval >= tp->dmt_budmin) {