Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp50277rdf; Thu, 2 Nov 2023 13:27:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEVUImV3ezSh/ED0Ahg8F9U3K6PMvQBw4arw4vFiO9pKQLokhAOsfngje2J9SEv+TKDFZrJ X-Received: by 2002:a05:6a00:124b:b0:690:2ad9:1436 with SMTP id u11-20020a056a00124b00b006902ad91436mr20002892pfi.7.1698956868536; Thu, 02 Nov 2023 13:27:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698956868; cv=none; d=google.com; s=arc-20160816; b=SNBC6Ms/UDsXvKc2HDec45+co7e7mvILJpp3uvyQUrnjm8I0X2b3cyMfn5/UZEjUdC u7WAtZTimZSRwyWzvxyrhSnkbXjbRYNkbg4RS7FNwYZptQbBeZuNbzMSPPHNCLaiJzG1 tXWsbCdeqgIXIKnaPOVRjn8838LE2v/bTqLIC24SpkNaTuzFpSREWCMYPQFQ6IeNltZy WZ+yQUy9Ei/lZfHex/mQDuOW7uzBGhY+ohKY3rdCX9B/9bj8wuP+s+5CEPftC2a5YjLM Sf4Sa2ykDtw8nmqjptM/8vmEERxqBnCHz9PykWRCzmW8o3tmvPpVmt44MtYpaFXbyXMb LZ7A== 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=i/AE2jCHPgbGRlkIG16yYkHlAKH6dWvuLy8rFJbVS4k=; fh=956ATNi2Z67nScvkwnlmtuPKffh0dVVP2cxtWF5f4hg=; b=ddYPtsOKpUS9ZxVhrqtUhqj68e6241hu7sVKfH92+lSlhsjHtc3Gpw4+VwxVZOYTA2 aFOUfBEHfZD3nHowiarS4E+PVuQw6bWQ5tvXKLbnssyLBzltIR6LQkXCxSNMuMuQlmtu 9o1FLFP7Sz2ewvC7ecUr7gMJIAYoYJQAl1R29SZdUiKYH3r0VjbR74fqRck0jLJzGTsS YxsfQ9QgRqN68tsKqElS2jJr1VxnpgGE+i+Ve/r5kUih2K2gYaWpUGQeawG3sC6xI2xX IBXphvshJEZbEpXkSwiqmqd9DTFBn4QpEYEU7LFDbYZqB7seJkEjztA9hbUHUR08lJWr qktA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id a17-20020a656051000000b0056952b496efsi230878pgp.366.2023.11.02.13.27.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 13:27:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 1476C821A170; Thu, 2 Nov 2023 13:27:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344899AbjKBU1K (ORCPT + 99 others); Thu, 2 Nov 2023 16:27:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233041AbjKBU1J (ORCPT ); Thu, 2 Nov 2023 16:27:09 -0400 Received: from mail-oa1-f70.google.com (mail-oa1-f70.google.com [209.85.160.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73519188 for ; Thu, 2 Nov 2023 13:27:03 -0700 (PDT) Received: by mail-oa1-f70.google.com with SMTP id 586e51a60fabf-1ef4782ef93so1690173fac.1 for ; Thu, 02 Nov 2023 13:27:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698956822; x=1699561622; 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=i/AE2jCHPgbGRlkIG16yYkHlAKH6dWvuLy8rFJbVS4k=; b=n3eBddzZjw2nmT1vcKR88oIvjsTaUA5Y7tmIZH35cgmxoXhLcbWM/YkrYdSJcxRLCT ZRChYsnfuFhZkr5IobxO1yTCCsRL3epIWLwWqrzSMEpmEkNkgb34C6SaoNDiOAk2AODe GVmjlTyTpjcOFVvn4cOnfNZ5h2rmaqfj3X/IOuhAn9WACQkg30m7qjgYWAazjdC0ega1 OMGwudsKB8zkIrm1VKSKAzF4e25ovZE89oyJ3k6v5YkJJDOZSsa/6J6fRKxXasXx1erl X2q76WwVaC44g58jei35/5BE6N3LclKL52qUbnSNPHA+nI3ncs1N6Wsxn1msoDvz3csf f7ig== X-Gm-Message-State: AOJu0YxOTihWFuoFADE4IT1xtf2xlKjzvs8DOiOR7JqrdKSSPS5qDxhl GJKG8VjYRn19rduAhd5NO/z/HFvmTArOqlsCRO/5yTR0X70O MIME-Version: 1.0 X-Received: by 2002:a05:6870:65a5:b0:1e9:6d19:935b with SMTP id fp37-20020a05687065a500b001e96d19935bmr523942oab.5.1698956822694; Thu, 02 Nov 2023 13:27:02 -0700 (PDT) Date: Thu, 02 Nov 2023 13:27:02 -0700 In-Reply-To: <526dbcf1-a6ee-54b5-15a4-756979ae2d90@gmail.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000e7d1a0060931353a@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=-1.7 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 02 Nov 2023 13:27:12 -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: 1 PID: 5407 Comm: syz-executor.0 Not tainted 6.6.0-syzkaller-10396-g4652b8e4f3ff-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+0x1168/0x2060 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:0x7fa34307ad39 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:00007fa3441290c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fa34319bf80 RCX: 00007fa34307ad39 RDX: 00000000000001ff RSI: 00000000200000c0 RDI: ffffffffffffff9c RBP: 00007fa3430d7567 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fa34319bf80 R15: 00007ffd3c0fbd48 ================================================================================ Tested on: commit: 4652b8e4 Merge tag '6.7-rc-ksmbd-server-fixes' of git:.. 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=15fb1f07680000 kernel config: https://syzkaller.appspot.com/x/.config?x=8aa5f62c74d2e2d5 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=10e93ef7680000