Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp163984iog; Fri, 17 Jun 2022 00:49:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjPbIsTwjcF2aZt9lR9pcZsoBnnIlXEquh14CPfAF/Go8PFE6B/5/m1LPmJeYMyvgqeTOP X-Received: by 2002:a05:6402:3046:b0:42e:fee1:c2dd with SMTP id bs6-20020a056402304600b0042efee1c2ddmr10861779edb.29.1655452159138; Fri, 17 Jun 2022 00:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655452159; cv=none; d=google.com; s=arc-20160816; b=WkIcMoyt4lszllYpzupCOrkeVVJHailc//jS4mNvlhvLD1chckimA77/txodNZQuqO dgEGNoDE68eMkEBFVmX2lBTOyYS1G6NabloKCvyaUftSolvMiw/ualnVQZGeZKcckcXt I+sPcEvMQ2gkg+xhAhJAWEPhl7MST/tUMPZLayD7ueJvTmUEpmydwW8mn57Cqs2arSOe WgPIobrrdnTG5832J4MzdcfXJM1xhzJ3/F0uhKBMiiE1A8obyIHRmvRw7fQkxflt9KNw 5ZmhZNmDsdA/VVP82pM6728gcUfEcu95QEy0adE4iYWUFQcTV5RXkETr0DEMWIPl3tbi kB9Q== 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:date:mime-version; bh=DtPbQllWMTHrEOQKUrdZBFP/DdiKKKqRgH9nYMOfst8=; b=Zqencq8CO6qH7mnarv8v4AtWHOWQm/zMvlB7svDYKfupghoPv0ypt7kcFC1jDhnqhK R8kB2FfjTplZvg/bXWVK4gn3TtflwGDdJH131RHBCNQC8Q/p0ycPQUIIdHcm/j+dcxSY KkDh8LLdVw09Bj36NemSVQn93+Rlc7rIiV2VqXWIgmofBBF7YEaVJE4W708JdwwNmCjH qsCAOa/nG2QAbNNdr+KNgvW6m8uKeoc/mMB5LVXvX25qduNmXPU45Tl/CiHc2UhnTsen VByfee3zTt6BQEWnpcJbC1+zW7fc1U64xVh3UhChW8bYRmdPuiJvtlyQyWSid2RXKXn5 i39w== 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 n13-20020a05640205cd00b0042ddd05d4ebsi5406990edx.610.2022.06.17.00.48.52; Fri, 17 Jun 2022 00:49:19 -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 S1380059AbiFQHE3 (ORCPT + 99 others); Fri, 17 Jun 2022 03:04:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232060AbiFQHE2 (ORCPT ); Fri, 17 Jun 2022 03:04:28 -0400 Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C00D0606FE for ; Fri, 17 Jun 2022 00:04:23 -0700 (PDT) Received: by mail-il1-f199.google.com with SMTP id j18-20020a056e02219200b002d3aff22b4cso2184935ila.9 for ; Fri, 17 Jun 2022 00:04:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=DtPbQllWMTHrEOQKUrdZBFP/DdiKKKqRgH9nYMOfst8=; b=RjNho9gtGdNQ4EBPIoyrEhKVillOzzs1N6wssUA9m1cMD6jQZ0et0N4ovc7opHTE+b 1RTkcKL86OAfey42YMijWUB3EyzyJc9YbyIu6Zp34PeBBw4gGL/NcKg7j8Wot3aIv80Z zFYBJUhh6gSkbV044hss34y9/kYhOr/k42m50LDKC3txO1b5mu3dWTZ5e1Ld9M5ulNg0 4E+E+6ZWkqwdveDpdwupMjlfQUdK/vMBMpF9htxBWgy7m3JOTiIXjcNNIC1+iG9ZPOvy cp+whMLI7NmCvy/AfjTxOuT3/z9V8CxELIPePp32HBpbFpolPZ+F2z5rSKpxyJrIhehJ 4GFw== X-Gm-Message-State: AJIora9hkQChb0eEgBXVYPW7c5vu6NsvAqQwPRlnG9tEA+SFR+YzSo+g E1jFLNxaMenVGoIwV+Ea9jy74gwYTf9EJGCdpNpYqUc8Y+RZ MIME-Version: 1.0 X-Received: by 2002:a05:6e02:17c8:b0:2d4:dfae:edf4 with SMTP id z8-20020a056e0217c800b002d4dfaeedf4mr4820719ilu.8.1655449463126; Fri, 17 Jun 2022 00:04:23 -0700 (PDT) Date: Fri, 17 Jun 2022 00:04:23 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000003189f305e19f5d3e@google.com> Subject: [syzbot] KASAN: null-ptr-deref Read in hugepage_vma_check From: syzbot To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@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_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hello, syzbot found the following issue on: HEAD commit: c6d7e3b385f1 Add linux-next specific files for 20220616 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=10d9fb1bf00000 kernel config: https://syzkaller.appspot.com/x/.config?x=9d495405e4a98620 dashboard link: https://syzkaller.appspot.com/bug?extid=4d875b4d2e2b60bae9b4 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 Unfortunately, I don't have any reproducer for this issue yet. IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+4d875b4d2e2b60bae9b4@syzkaller.appspotmail.com ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:71 [inline] BUG: KASAN: null-ptr-deref in test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] BUG: KASAN: null-ptr-deref in hugepage_vma_check+0x8e/0x750 mm/huge_memory.c:82 Read of size 8 at addr 00000000000005a8 by task syz-executor.5/21978 CPU: 0 PID: 21978 Comm: syz-executor.5 Not tainted 5.19.0-rc2-next-20220616-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 kasan_report+0xbe/0x1f0 mm/kasan/report.c:495 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] hugepage_vma_check+0x8e/0x750 mm/huge_memory.c:82 show_smap+0x1c6/0x470 fs/proc/task_mmu.c:866 traverse.part.0+0xcf/0x5f0 fs/seq_file.c:111 traverse fs/seq_file.c:101 [inline] seq_read_iter+0x90f/0x1280 fs/seq_file.c:195 seq_read+0x337/0x4b0 fs/seq_file.c:162 do_loop_readv_writev fs/read_write.c:763 [inline] do_loop_readv_writev fs/read_write.c:750 [inline] do_iter_read+0x4f8/0x750 fs/read_write.c:805 vfs_readv+0xe5/0x150 fs/read_write.c:923 do_preadv fs/read_write.c:1015 [inline] __do_sys_preadv fs/read_write.c:1065 [inline] __se_sys_preadv fs/read_write.c:1060 [inline] __x64_sys_preadv+0x22b/0x310 fs/read_write.c:1060 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f5c1d889109 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5c1ea69168 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007f5c1d99bf60 RCX: 00007f5c1d889109 RDX: 0000000000000001 RSI: 00000000200006c0 RDI: 0000000000000005 RBP: 00007f5c1d8e305d R08: 0000000000000000 R09: 0000000000000000 R10: 00000000fffffffe R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd8514b43f R14: 00007f5c1ea69300 R15: 0000000000022000 ================================================================== --- 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.