Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4071807rwi; Sat, 22 Oct 2022 04:50:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4RqNRyd0nkmwLMhJlLcstxo4+F3PBosQRvD5a/qDhzN+Mj3kssLjG8UmQ/xG59M7CCvrAn X-Received: by 2002:a17:902:edcd:b0:17a:6fa:228d with SMTP id q13-20020a170902edcd00b0017a06fa228dmr23883608plk.29.1666439444885; Sat, 22 Oct 2022 04:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666439444; cv=none; d=google.com; s=arc-20160816; b=Ew0bWfhH1v53DSvTqO88nQp633MGs1MwixoIAnvFkaQfXM/NTlYE5mxL2Hvp+6/IlT daKraer/cAuH0U2EsRQc3FjLcdk93hH0G2gnpqL1TODU5+b6mThAvW6ZqWIRyITiIG3b jO7X22g7TRcFtAcQqdgWXj/ktZxI/l8qUuAy1saG5YBMGkuZISzzGGu2el00loo+g6x5 70rvSr9lJCMAPndf6LD2o+7BOdwcGks70HCryh5PpQuGXpc9J8i0vtKa2SdlBLQ+sDrU CURpIEfJou1OjEi3xKR+MDnw3fUAmRDuDlpv7Rhr91c+/tOOe3b15RBBKku54m/zDZ5y hlGw== 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=xzPY5+dygQG7DwfaQGmzfbg3WM+EsIeaCR6GugnyQeo=; b=wnA6w6kGEde5nUWfmsJHFabO1Zqkqfn/nSugO8MYkVQIFuP9oo6U3VUtBg6JrAVBz/ GxAwjJcunVJfRIKDTrmCcOVgiFT/e5/sjYbEFiSRK5rzlyFQcMciDTlP9HBlkPJiOmGp E932Y82OjVqc9C8z/CX9xgfyTBR7+winoxHEIfOGOc9jnloyFmX0884b69YBFK2JmBXX wZI94OzclGyAv2t/vlM/aIy5clRrfB0Yryqw1M2s2YongVWZ1vYZHfNevHAg70Tv1vqT B10ltluOZFpms2v6nsYEny21596Gtj7uuMAOIEfQ3D6XSweUTxFTFpBG1FdrUL+BRIpe j96w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cj11-20020a056a00298b00b005567d823a2esi27744410pfb.306.2022.10.22.04.50.32; Sat, 22 Oct 2022 04:50:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229683AbiJVLoL (ORCPT + 99 others); Sat, 22 Oct 2022 07:44:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230327AbiJVLnz (ORCPT ); Sat, 22 Oct 2022 07:43:55 -0400 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA12F5593 for ; Sat, 22 Oct 2022 04:43:44 -0700 (PDT) Received: by mail-il1-f198.google.com with SMTP id a20-20020a921a14000000b002ffb33924c5so1140995ila.16 for ; Sat, 22 Oct 2022 04:43:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=xzPY5+dygQG7DwfaQGmzfbg3WM+EsIeaCR6GugnyQeo=; b=sGgXkYL9fKLAkNS0wzGr4Tj0dmwzRWR01iS0s3MPTOd7RA1+hESVeE7H/g76hBTJsT vF0/8Ts/+mWg0zSzMzYWTAnaHQkT+Eu8EohHu6kFniqOHU+zXdSGohlkkcwgjk+41q8q o41bZDkG7Kuogx+ry10ftNjs/08eTdlnFhTwab+NyoBdZ1w5A4ZL/fBbYiwyNSEyb1hZ 4x+BYlsCKHwCQ+4Tk9BJyux9hBLroFc4xlGB18+ZnEAK+C542BnvWMuvoLxjQY2UPW73 0iK8uQfysankHm6E5WLpHaglx/j2BAuxIZO8d/v8vSMh/Ah1r/gR1vDVuLsXJctZCNm1 Vkmw== X-Gm-Message-State: ACrzQf2dQyTIcPO6OALrYAXZweKV04619958o8IRpocXh6zyVh+Nj2Al OWxuLEg9PGm2vHfXaLYxfDVePq7xbvaxRfbqgkdLtla4YY38 MIME-Version: 1.0 X-Received: by 2002:a05:6602:134f:b0:6a4:cd04:7842 with SMTP id i15-20020a056602134f00b006a4cd047842mr16442958iov.172.1666439023961; Sat, 22 Oct 2022 04:43:43 -0700 (PDT) Date: Sat, 22 Oct 2022 04:43:43 -0700 In-Reply-To: <000000000000f61bdf05e79a7c5c@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000102c9e05eb9e12c3@google.com> Subject: Re: [syzbot] BUG: unable to handle kernel paging request in mi_enum_attr From: syzbot To: almaz.alexandrovich@paragon-software.com, linux-kernel@vger.kernel.org, ntfs3@lists.linux.dev, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS 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 syzbot has found a reproducer for the following issue on: HEAD commit: 440b7895c990 Merge tag 'mm-hotfixes-stable-2022-10-20' of .. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=12f15216880000 kernel config: https://syzkaller.appspot.com/x/.config?x=afc317c0f52ce670 dashboard link: https://syzkaller.appspot.com/bug?extid=28207acc70bbf3d85b74 compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16d6496a880000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13d32fc2880000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/105038975fc9/disk-440b7895.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/edd7302c8fc8/vmlinux-440b7895.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/7e29515d4690/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+28207acc70bbf3d85b74@syzkaller.appspotmail.com loop0: detected capacity change from 0 to 4096 ntfs3: loop0: Different NTFS' sector size (1024) and media sector size (512) ntfs3: loop0: Mark volume as dirty due to NTFS errors ================================================================== BUG: KASAN: use-after-free in mi_enum_attr+0x583/0x6a0 fs/ntfs3/record.c:227 Read of size 4 at addr ffff888177de6993 by task syz-executor131/3605 CPU: 0 PID: 3605 Comm: syz-executor131 Not tainted 6.1.0-rc1-syzkaller-00158-g440b7895c990 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:284 print_report+0x107/0x1f0 mm/kasan/report.c:395 kasan_report+0xcd/0x100 mm/kasan/report.c:495 mi_enum_attr+0x583/0x6a0 fs/ntfs3/record.c:227 ni_enum_attr_ex+0x2f6/0x6d0 fs/ntfs3/frecord.c:259 ntfs_read_mft fs/ntfs3/inode.c:114 [inline] ntfs_iget5+0x1d3e/0x36f0 fs/ntfs3/inode.c:501 ntfs_fill_super+0x3b55/0x42a0 fs/ntfs3/super.c:1195 get_tree_bdev+0x400/0x620 fs/super.c:1323 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x289/0xad0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f43fe5afaca Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 f8 03 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd57724258 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f43fe5afaca RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffd57724270 RBP: 00007ffd57724270 R08: 00007ffd577242b0 R09: 00007ffd577242e0 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004 R13: 00007ffd577242b0 R14: 0000000000000109 R15: 0000000020001ad8 The buggy address belongs to the physical page: page:ffffea0005df7980 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x177de6 flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000000 ffffea0005df7988 ffffea0005df7988 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff888177de6880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888177de6900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888177de6980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888177de6a00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888177de6a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================