Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1328246lqp; Mon, 15 Apr 2024 03:10:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnQTA7OLHLFdanrX9fqru0E/cbikibKkEO7p04s/H74067NdpiIqw6MZRu0nPYym1eIYRwGqxHjqdVK0XgTOqa+jwLkFEcYs3RlF+AEg== X-Google-Smtp-Source: AGHT+IFs0l6EmRdI+kjNPERt9OyvbRrGK9Xj+BneErsU1ABqk63lQUvlBJ0UWIuWmsejmZe5LmAp X-Received: by 2002:a05:6808:57:b0:3c6:382:126a with SMTP id v23-20020a056808005700b003c60382126amr9430054oic.30.1713175853039; Mon, 15 Apr 2024 03:10:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713175853; cv=pass; d=google.com; s=arc-20160816; b=WpqwZE93xBVZCoIKSfw3NxxJkVThFZJxgZH4ur+2MMbDEIzXa0MP21EODU3vLY5+il 5MWe1ua3tOntBkLZmrMG/IGwxyRXJ4f1Vx6o2uel25eqR6xXeBfyT52OQs1WliNeM/Se Xj1BL1UvIVbT4sr4ppvg8R/boAFh2ow6RqnqQg4kqsY5YPcplsedstGxQQ1dN3eKuqWu +7uYZ5f1PETFQUhwPWCGVwvAVi91BopXQeiPhEci73PJllGqewD3JYyVjA580c1SdkAa stvc+Xtd3QgSc61ybbjwu3uJ3MFjoU7v/lWlHGqn+bhK5CwCtPDj+3F5JITZFGMpaqi/ h9zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=Gdxc4wAAvYszVKlmAWW/tRckxl7eELxzR6qaL6OzyB4=; fh=sthwPLcdwjeFOnOE1qE0IwYsW6KH2sUcdp49Fw1ivKg=; b=K0gQg4sSzckZ4fp4LDDq6NhvBxkfaTDGnlgIYJO6mlYxtmrj7Zj3zykhyRXnv+gR60 MSYMe9FMbLctQgPAJacD+uay7PJ6iOAYtg3sMe7RZ2ZEg+VCI3rKlbeASLjsJ52wuYXe TvBunAzl4MxqgYKf9LbVjtU6giJxnyVy0TuBKs1NMuXXm55+oh0dFCKvj5of6DkI3mGW MPUsQhQgnumYsiD9O4AN8KZDOJnBxHSdwnLUdc73u9D19R7Fw7wmr4VK9TKqYt3mPTmQ TIM29in5+J3wD4VU25fIlXFqKmP6iSOdcnyebbEO0WSTCtIZcBwjqrvmrQYG7QBaLDaZ z/4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-144896-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144896-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o14-20020a05622a044e00b00434e95d8680si9570242qtx.734.2024.04.15.03.10.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 03:10:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144896-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-144896-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144896-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BF0371C21142 for ; Mon, 15 Apr 2024 10:10:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D76A4D9FF; Mon, 15 Apr 2024 10:09:34 +0000 (UTC) Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) (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 81622481DE for ; Mon, 15 Apr 2024 10:09:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713175773; cv=none; b=S6HtgQ9Vp3aXDeSLkyEz5KxjwZumqJyyjie+M/WZC0N7yQ6WrUGkIH846Ifq2+IxK3eFGe/O3Tz5RE5jwX1Hgm8yomQNSq8k526KJG6XOV0gyxLfHbRjtdR9CseEVN23bOWSFqR/72hJwip30MxmScuHKh+9J0mguIIk6mubBf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713175773; c=relaxed/simple; bh=y4cKMP+HingK/hArn6PPFVwM1YyhHRIgShZw2DxBL6I=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=ttcDMfoUzyVSpr8eerLdBe8IWPvpaHfZprWS565rrbpn3EpuigvY6BvXMKtAEQkdyTSQUHXSoiqWbwWTy2m8uk5B5i55nevu0BEyFjS0+Utff46L0K5WnsOfMOtWDE1fGi0JgUrKiuTlG+BdQC0PJGrQkdSbwe+FOpq81UF6Wtw= 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.166.72 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-io1-f72.google.com with SMTP id ca18e2360f4ac-7d5d7d6b971so355265639f.0 for ; Mon, 15 Apr 2024 03:09:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713175768; x=1713780568; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Gdxc4wAAvYszVKlmAWW/tRckxl7eELxzR6qaL6OzyB4=; b=HIIyVpPZJWzDMZLDfTm+aXsqJGoTuLLUGS4gpmm7pLem3P6+VjOpLimkkk+9Uf7Jid gKSj5eb8rMHBIijD/hUvO/4vSC8nDdFIqr7z0t7IQtseRYQZ4JJ6Xc/TNMgm71B7SoMN M39KVp4aqFzv12y9nJpBXtDEcv27kRPXA2sCKtGH91xg5MuQg9QzudnCFlHpuadxboUv 5ualjL4/qsZmf1RHaWxW7zVafHTAnPI2iO6/WoNt6FVQiQDoQh0TNoaArQ5HohcJvSC5 C4mHJeuol0qztSNyYl5iXfdoETrctLvHbbqgAxqz70GZ08RR378A+Q3fUn6GsCuEbdkG +ZKg== X-Forwarded-Encrypted: i=1; AJvYcCXbnMGF2xeAMgegwDVH2Isrzjkwfax58onUDZDPq5ms6Dxp3hxTR63cHx1MeZSNylWid5E26YC2mxSBJr1sckbA8sOwYwSUhtklXM6B X-Gm-Message-State: AOJu0YweQ18l2EwBDPJBt390I7s2B21sj5bCNGT0Us7T7BN3GJcxNFtf fQFkL1nlmCyhHZ8P0QnPkGZvDqd3mFh2VD/5L9XJOabcL22lA2EcbHRK9jzA8Wjp/PFPJnuwkWw /fBmjOUM1Ug2Gg0HGrhbTA26oBEBGQJoMCJdE0DRosNo0xz+3t8Xo0DY= 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:6638:8728:b0:482:fccf:d8a8 with SMTP id iw40-20020a056638872800b00482fccfd8a8mr279504jab.0.1713175768630; Mon, 15 Apr 2024 03:09:28 -0700 (PDT) Date: Mon, 15 Apr 2024 03:09:28 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000209c9506161fd1d4@google.com> Subject: [syzbot] [nilfs?] UBSAN: array-index-out-of-bounds in nilfs_add_link From: syzbot To: konishi.ryusuke@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nilfs@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kernel.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=1777792b180000 kernel config: https://syzkaller.appspot.com/x/.config?x=4d90a36f0cab495a dashboard link: https://syzkaller.appspot.com/bug?extid=2e22057de05b9f3b30d8 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1176600b180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15141b43180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/72ab73815344/disk-fe46a7dd.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/2d6d6b0d7071/vmlinux-fe46a7dd.xz kernel image: https://storage.googleapis.com/syzbot-assets/48e275e5478b/bzImage-fe46a7dd.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/de3bc2f4acaf/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+2e22057de05b9f3b30d8@syzkaller.appspotmail.com ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in fs/nilfs2/dir.c:257:18 index 15 is out of range for type 'unsigned char[15]' CPU: 0 PID: 5057 Comm: syz-executor165 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0x121/0x150 lib/ubsan.c:415 nilfs_set_de_type fs/nilfs2/dir.c:257 [inline] nilfs_add_link+0xb39/0xb80 fs/nilfs2/dir.c:501 nilfs_link+0x136/0x220 fs/nilfs2/namei.c:192 vfs_link+0x4f5/0x690 fs/namei.c:4608 do_linkat+0x356/0x760 fs/namei.c:4679 __do_sys_linkat fs/namei.c:4707 [inline] __se_sys_linkat fs/namei.c:4704 [inline] __x64_sys_linkat+0xdd/0xf0 fs/namei.c:4704 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f0624efc679 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff6dc40a98 EFLAGS: 00000246 ORIG_RAX: 0000000000000109 RAX: ffffffffffffffda RBX: 00007fff6dc40c68 RCX: 00007f0624efc679 RDX: 0000000000000004 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 00007f0624f70610 R08: 0000000000000000 R09: 00007fff6dc40c68 R10: 0000000020000640 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fff6dc40c58 R14: 0000000000000001 R15: 0000000000000001 ---[ end trace ]--- --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup