From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 159A9C77B78 for ; Thu, 4 May 2023 09:33:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230007AbjEDJch (ORCPT ); Thu, 4 May 2023 05:32:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229878AbjEDJcF (ORCPT ); Thu, 4 May 2023 05:32:05 -0400 Received: from mail-il1-f207.google.com (mail-il1-f207.google.com [209.85.166.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CB714698 for ; Thu, 4 May 2023 02:32:03 -0700 (PDT) Received: by mail-il1-f207.google.com with SMTP id e9e14a558f8ab-331828cdc2dso1487385ab.3 for ; Thu, 04 May 2023 02:32:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683192722; x=1685784722; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=C8fFZy2M9CRWNQT/qQ4rHsUOD+ZlazMxTl8QpIseuL8=; b=LkyezhndehIQsynouynxeF4r+1d1lvEp8/QQFH31oK8+gswY0pCetbslqz+p2RD0gU 7RMhUCYur+KKqDuO8gCjYcNgiCdyOwfIovLXS+bUIKp2Ob9ujxXbEJ+fao0rQV/RfIrL nHi+M1rUyIrSkR0Q5O8LVyzxyWkGun+0kG7JVmwjAmwtMYY3cwei6NuqoSy/OlwhpczV wie/Tz/eY4Z5LcY7rjcROyu5WhdO0r8HQemszJZPWmdwG9Vf2DL+5IjsE/rUCjzVrNoh 6IA8rFn0XDF6h0fhZk6WMkdhV5bOOSRuI07r1hHlEItFKFW8sO9bBAFbx48H0PjIkc5A 46Ig== X-Gm-Message-State: AC+VfDwZDBx77Sy2/D9qi04oPsvCjH3jKnlXxRTPEOqsl0w8wRJU+xnz ZIPKjy4GLjvf413A/NBQeUGjDe2SRED7DDnBrxuIWBKT09W0 X-Google-Smtp-Source: ACHHUZ5F0rrP+Fpyvw8MhPHceX+zZzy+lIokl7i/4c8QOsPPUdo5FhTd5mZSgg2APXXXZ2qNseR/5f8Nmmb4O7HGpPRGTfe7rWXm MIME-Version: 1.0 X-Received: by 2002:a92:d08a:0:b0:329:5faf:cbc0 with SMTP id h10-20020a92d08a000000b003295fafcbc0mr13341297ilh.2.1683192722605; Thu, 04 May 2023 02:32:02 -0700 (PDT) Date: Thu, 04 May 2023 02:32:02 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000051d14405fadad8cc@google.com> Subject: [syzbot] [jfs?] KASAN: user-memory-access Write in __destroy_inode From: syzbot To: brauner@kernel.org, jfs-discussion@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, shaggy@kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: fa31fc82fb77 Merge tag 'pm-6.4-rc1-2' of git://git.kernel... git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=176f146c280000 kernel config: https://syzkaller.appspot.com/x/.config?x=73a06f6ef2d5b492 dashboard link: https://syzkaller.appspot.com/bug?extid=dcc068159182a4c31ca3 compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13a40690280000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=156b965c280000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/47047382df87/disk-fa31fc82.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/1fd540f5f80a/vmlinux-fa31fc82.xz kernel image: https://storage.googleapis.com/syzbot-assets/21da1f9e2c23/bzImage-fa31fc82.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/058ce906b620/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+dcc068159182a4c31ca3@syzkaller.appspotmail.com ERROR: (device loop0): jfs_readdir: JFS:Dtree error: ino = 2, bn=0, index = 6 ERROR: (device loop0): jfs_readdir: JFS:Dtree error: ino = 2, bn=0, index = 7 ================================================================== BUG: KASAN: user-memory-access in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: user-memory-access in atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:176 [inline] BUG: KASAN: user-memory-access in __refcount_sub_and_test include/linux/refcount.h:272 [inline] BUG: KASAN: user-memory-access in __refcount_dec_and_test include/linux/refcount.h:315 [inline] BUG: KASAN: user-memory-access in refcount_dec_and_test include/linux/refcount.h:333 [inline] BUG: KASAN: user-memory-access in posix_acl_release include/linux/posix_acl.h:57 [inline] BUG: KASAN: user-memory-access in __destroy_inode+0x426/0x5e0 fs/inode.c:297 Write of size 4 at addr 0000000b00000000 by task syz-executor374/4998 CPU: 0 PID: 4998 Comm: syz-executor374 Not tainted 6.3.0-syzkaller-12999-gfa31fc82fb77 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_report+0xe6/0x540 mm/kasan/report.c:465 kasan_report+0x176/0x1b0 mm/kasan/report.c:572 kasan_check_range+0x283/0x290 mm/kasan/generic.c:187 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:176 [inline] __refcount_sub_and_test include/linux/refcount.h:272 [inline] __refcount_dec_and_test include/linux/refcount.h:315 [inline] refcount_dec_and_test include/linux/refcount.h:333 [inline] posix_acl_release include/linux/posix_acl.h:57 [inline] __destroy_inode+0x426/0x5e0 fs/inode.c:297 destroy_inode fs/inode.c:308 [inline] evict+0x51b/0x620 fs/inode.c:680 dispose_list fs/inode.c:698 [inline] evict_inodes+0x5f8/0x690 fs/inode.c:748 generic_shutdown_super+0x98/0x340 fs/super.c:479 kill_block_super+0x84/0xf0 fs/super.c:1407 deactivate_locked_super+0xa4/0x110 fs/super.c:331 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1177 task_work_run+0x24a/0x300 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x68f/0x2290 kernel/exit.c:871 do_group_exit+0x206/0x2c0 kernel/exit.c:1021 __do_sys_exit_group kernel/exit.c:1032 [inline] __se_sys_exit_group kernel/exit.c:1030 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1030 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f696702ea49 Code: Unable to access opcode bytes at 0x7f696702ea1f. RSP: 002b:00007ffcc25baa18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007f69670a9330 RCX: 00007f696702ea49 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 00007f69670a3e40 R10: 00007f69670a3e40 R11: 0000000000000246 R12: 00007f69670a9330 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 ================================================================== --- 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 bug is already fixed, 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 change bug's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the bug is a duplicate of another bug, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup