Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp221797rdf; Thu, 2 Nov 2023 20:37:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENwjkNC0esC1x4EGDeSjcCUyCk5rWOCCNNZt6dzGIW9l77GAymdrICVepEYe5STCLI2iXi X-Received: by 2002:a05:6a21:6da5:b0:128:ffb7:dcfe with SMTP id wl37-20020a056a216da500b00128ffb7dcfemr2240861pzb.1.1698982652176; Thu, 02 Nov 2023 20:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698982652; cv=none; d=google.com; s=arc-20160816; b=hmj7aq8mU5JI8eP3NVKRfzF9s/Aj1RRnOoyayJvvz3aAtYliSIJFgVZzeKH3Zqu/t0 V2+M97Yj9qZ9W0nXZlTNral7ue0R8qPVMgXValbh4QsL3UVeVDL4+hK8qJC96BjLh6y0 TB2HMnG2s/SwPZw71nPxdTwesuHjW7IIPXqdPFh1/ccL69vajorbpjRRZLpvZANrAOkG BmGxCrIl7XKaduvRBSC7PHR/fna3u+1S2NDyJMTsJEYNY5Q4jm4h3O7tW4FurvmkJYe2 zIsPgeaxiHyIJ3Un2m2TBR0RJNFa+xLyYnsseVh4uiNXuQ+aeKEDBgYfZo7vbjGKo+NR qxyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=uh5rI2PuAfSF/BHwUbOtXzmR4MYj4GNwrdflTHtJU8I=; fh=956ATNi2Z67nScvkwnlmtuPKffh0dVVP2cxtWF5f4hg=; b=jgkmmCLjOy7WynEHYwOIZQtVrcg4908jBbAra3HhNqja+hNMnnCT/3sFG0b+yaN0Yc VCvyuSLyo0hP+sDU8s52eIlyPmZiunUtiVQiIoFMRBfYC20vgR+zQIWTyhiqrj2XfAin cWQ5AbSizMxDGcpynEzWECJp+Mfw2xbuPeWejliENRflxkaouyHrhxHEpIAoSexCrUjb wlBD9Dbl4ES+a7ptGLsNs2lGhbchKFfQh4FG+2etYTXoTxuDAvMFEijadGAU9vR92wir FNQfxA7MSn31peN8kl4lZqH1dK5/EokfRd06L682WuzULms/hgQICOps0FONKOFHm0Dt AypQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id d10-20020a056a0024ca00b006bf537ce976si782281pfv.260.2023.11.02.20.37.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 20:37:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 26F4F8388AE3; Thu, 2 Nov 2023 20:37:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbjKCDhO (ORCPT + 99 others); Thu, 2 Nov 2023 23:37:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjKCDhN (ORCPT ); Thu, 2 Nov 2023 23:37:13 -0400 Received: from mail-oa1-f71.google.com (mail-oa1-f71.google.com [209.85.160.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE1D4CE for ; Thu, 2 Nov 2023 20:37:06 -0700 (PDT) Received: by mail-oa1-f71.google.com with SMTP id 586e51a60fabf-1e9f6006f9cso2144159fac.3 for ; Thu, 02 Nov 2023 20:37:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698982626; x=1699587426; 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=uh5rI2PuAfSF/BHwUbOtXzmR4MYj4GNwrdflTHtJU8I=; b=AvEVn9ocVPr9NstQVNYOSH48OeTzDmjWBBuUAMTRr7UQxo3oEhH6MTdnnt12moYIfR uwnW1Fg+uYJf5cpqXO41grgCpR/rCa1suSXzO1rYBwF3L04W0ThHOue2pp58mbyyt7pT tewhHmuaXSDnRU0Vnh/RyLF+usExW6XrvrL1qC+KzOAfD5iJRXVFSvapeQbm/q77rY5O r6MwkuKxAHyLDAE1ZAs7DF3BAY13+/RdEhHqQhHq7PjPr4nqBkMrvrPM//BHVvXF+sNC YkgRTDhYpeaJxgnb53J1NAaZXzo9M/82WD4j2N1AkASe12eIP8fmQIAe7oM54ulXluKk 1jtg== X-Gm-Message-State: AOJu0YzBKsR+8w/rxmZN7dGTM/skAtTkCtVnejOHnF0kNkY+KCYd0efy iXqz14O5Ucy0W2G8FQbjdRKPvXYHlX9bP9PFW5DPYgkym+UH MIME-Version: 1.0 X-Received: by 2002:a05:6870:e9a1:b0:1e9:9bef:b1df with SMTP id r33-20020a056870e9a100b001e99befb1dfmr10055517oao.3.1698982626141; Thu, 02 Nov 2023 20:37:06 -0700 (PDT) Date: Thu, 02 Nov 2023 20:37:06 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000e92c4906093737be@google.com> Subject: Re: [syzbot] [jfs?] UBSAN: array-index-out-of-bounds in diWrite From: syzbot To: ghandatmanas@gmail.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, syzkaller@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.4 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 02 Nov 2023 20:37:27 -0700 (PDT) Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: UBSAN: array-index-out-of-bounds in diWrite diWrite: Offset too large ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_imap.c:754:4 index 255 is out of range for type 'struct dtslot[128]' CPU: 0 PID: 5416 Comm: syz-executor.0 Not tainted 6.6.0-syzkaller-11928-gbc3012f4e3a9-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b5/0x2a0 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0xf0/0x120 lib/ubsan.c:348 diWrite+0x148c/0x2020 fs/jfs/jfs_imap.c:754 txCommit+0xa03/0x6a00 fs/jfs/jfs_txnmgr.c:1255 jfs_mkdir+0x8d7/0xad0 fs/jfs/namei.c:290 vfs_mkdir+0x2f1/0x4b0 fs/namei.c:4106 do_mkdirat+0x255/0x390 fs/namei.c:4129 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fefe747ad39 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fefe859c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fefe759bf80 RCX: 00007fefe747ad39 RDX: 00000000000001ff RSI: 00000000200000c0 RDI: ffffffffffffff9c RBP: 00007fefe74d7567 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fefe759bf80 R15: 00007ffd5e8e9838 ================================================================================ Tested on: commit: bc3012f4 Merge tag 'v6.7-p1' of git://git.kernel.org/p.. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master console output: https://syzkaller.appspot.com/x/log.txt?x=10ece56b680000 kernel config: https://syzkaller.appspot.com/x/.config?x=aa4ab0f6bdaaea8a dashboard link: https://syzkaller.appspot.com/bug?extid=c1056fdfe414463fdb33 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 patch: https://syzkaller.appspot.com/x/patch.diff?x=17fe65a0e80000