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 X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4C25C433FE for ; Mon, 7 Dec 2020 09:34:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ADAEE22ADF for ; Mon, 7 Dec 2020 09:34:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726303AbgLGJd6 (ORCPT ); Mon, 7 Dec 2020 04:33:58 -0500 Received: from mail-io1-f70.google.com ([209.85.166.70]:55832 "EHLO mail-io1-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725550AbgLGJd5 (ORCPT ); Mon, 7 Dec 2020 04:33:57 -0500 Received: by mail-io1-f70.google.com with SMTP id j10so11450162iog.22 for ; Mon, 07 Dec 2020 01:33:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=3l3sVcECEGrhm4ggZC50QK+EeJ6t6bebCjKEcTpMtNE=; b=EQTrshWrh5mWlIDOQom5JodN06kVyueV7GpOGmcIZ8BWQ9GMKqGEtPIx7AJ2lQmNTm L8xLk1LE+IeuoeXxKyYqMAmZjLI0iaLteUPA+1KMTHk14smWBPK2x0TwXY9qBua8C3dL IWJXMMj3ni93upm68+cbgMiPZej5r347jcI1FpTUyMt7dId7oTtV4/57u0dQTIUqnSZh 9uDvK8Gf2+fPCsZLZmC77fnFNmd0fCFS3v4WRsM/faVxPhW2l4vEninTSSF+uHxNZ76e pfyaQ1NI44fVBws4cM4tbDAXasB8cDga1bqJnVqZ3rnou4th25sXnrypCqUk8NGdSsLQ GikA== X-Gm-Message-State: AOAM5324C8j45YAS63XiksE2OvBogc0Pyd3kIKpBzYex1uX+N5bJxw4i 8bda+6IymJ87Kk70gTy9MD0GbBEninhpKMy9YzPEhNdnS+RJ X-Google-Smtp-Source: ABdhPJzXoTJU1PLEWLDt155glJ29aunV81xvDwYXANLLvY9ErJ2TGZCDTVoW0XJRdbNtQ4z+74vPGZhrfjrSEUuBDmZGba+YSnv4 MIME-Version: 1.0 X-Received: by 2002:a05:6e02:13c4:: with SMTP id v4mr12991966ilj.118.1607333590668; Mon, 07 Dec 2020 01:33:10 -0800 (PST) Date: Mon, 07 Dec 2020 01:33:10 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000b51b6b05b5dc833b@google.com> Subject: KASAN: use-after-free Read in reiserfs_fill_super From: syzbot To: ebiggers@google.com, jack@suse.cz, jhubbard@nvidia.com, junxiao.bi@oracle.com, liao.pingfang@zte.com.cn, linux-kernel@vger.kernel.org, reiserfs-devel@vger.kernel.org, syzkaller-bugs@googlegroups.com, william.kucharski@oracle.com, willy@infradead.org 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: b3298500 Merge tag 'for-5.10/dm-fixes' of git://git.kernel.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11e64345500000 kernel config: https://syzkaller.appspot.com/x/.config?x=e49433cfed49b7d9 dashboard link: https://syzkaller.appspot.com/bug?extid=2b5c012223e37b7c2a88 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12ad719b500000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11193117500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+2b5c012223e37b7c2a88@syzkaller.appspotmail.com REISERFS (device loop0): journal params: device loop0, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 REISERFS (device loop0): checking transaction log (loop0) ================================================================== BUG: KASAN: use-after-free in init_inode fs/reiserfs/inode.c:1325 [inline] BUG: KASAN: use-after-free in reiserfs_read_locked_inode+0x1f2d/0x2230 fs/reiserfs/inode.c:1574 Read of size 4 at addr ffff888035a26000 by task syz-executor059/8481 CPU: 0 PID: 8481 Comm: syz-executor059 Not tainted 5.10.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x4c8 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562 init_inode fs/reiserfs/inode.c:1325 [inline] reiserfs_read_locked_inode+0x1f2d/0x2230 fs/reiserfs/inode.c:1574 reiserfs_fill_super+0x18eb/0x2e00 fs/reiserfs/super.c:2081 mount_bdev+0x32e/0x3f0 fs/super.c:1419 legacy_get_tree+0x105/0x220 fs/fs_context.c:592 vfs_get_tree+0x89/0x2f0 fs/super.c:1549 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x13ad/0x20c0 fs/namespace.c:3205 do_mount fs/namespace.c:3218 [inline] __do_sys_mount fs/namespace.c:3426 [inline] __se_sys_mount fs/namespace.c:3403 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3403 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x447d7a Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 7d a3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 5a a3 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007ffcf7e76348 EFLAGS: 00000297 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffcf7e763a0 RCX: 0000000000447d7a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffcf7e76360 RBP: 00007ffcf7e76360 R08: 00007ffcf7e763a0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000297 R12: 0000000000000006 R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003 The buggy address belongs to the page: page:0000000050546bce refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x35a26 flags: 0xfff00000000000() raw: 00fff00000000000 ffffea0000d689c8 ffff8880b9e39d48 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888035a25f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888035a25f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888035a26000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888035a26080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888035a26100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== --- 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. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches