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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C6EBC433EF for ; Fri, 17 Jun 2022 07:04:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BD21C6B0071; Fri, 17 Jun 2022 03:04:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B5B196B0073; Fri, 17 Jun 2022 03:04:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9D3EB6B0074; Fri, 17 Jun 2022 03:04:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 88DA96B0071 for ; Fri, 17 Jun 2022 03:04:24 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 58815807CA for ; Fri, 17 Jun 2022 07:04:24 +0000 (UTC) X-FDA: 79586839248.10.5FF3A48 Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) by imf20.hostedemail.com (Postfix) with ESMTP id B50B61C0093 for ; Fri, 17 Jun 2022 07:04:23 +0000 (UTC) Received: by mail-il1-f200.google.com with SMTP id r9-20020a92cd89000000b002d16798b3cfso2165052ilb.22 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=g33LtEKwqtVH4ANyRp6anU77mu99AztaHbG6jtzRnFkPqJCFY+SFlXWCzX6diCwlvS tnkEfSSUgnf7s3OPSvma+7fj474Yve9YUL0HH999ydf8043Iv1C33j0aJGYoMiuzI6B+ G2eDvIifxXKQShLNWLRWbDeQFzLYxS1p+NW97/vamsLX+sXgySop2ry0VkCVG/z3lavK NBW5JIureeLJzbXZCGswsgjpR1DpiyB3J5EjH5bwOMEGflIuyesN387aANhT7YDpTtbm aWqeQmvr9pJ6OLHHCyQeAGZbiOG378MLDc63MUMppM5ex0leHBgt4+/dq5qhOOo3gtC4 64cw== X-Gm-Message-State: AJIora/E/EaHwZIXT5+3158m6oZHTk8XelWWxdplQz8AMa8N1hHOIsNb xqYqpzp3KyGjWkd7p2fbLOEIv+2exGYEHBNUtvyLL5BMnwja X-Google-Smtp-Source: AGRyM1s01cyQmuJczk79FYTWKmFku8pZ3yW6fQ2vK93NjBNTpP1W4m7Ace+RkQ38mwq3MkqaLcB4UCckUABCQ8Z6xxCxR8WB9WtR 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" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655449463; a=rsa-sha256; cv=none; b=QRnyfUNrJWwOrR96PIXLEHL6Dr0n1EYJ9fC7hOIAKCKZAYrW0HHvmsP1ctaFx16uvz9OK6 nBOMH/KqIxD97YwxZjkk7L/PJJVwddpjxiIVHFOGurFP4PMZpJCA/HS8RN42EyCGgubWM2 0oJytXEB5KP6FeH/QaUk5tG8Y4osw2s= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none); spf=pass (imf20.hostedemail.com: domain of 3dyesYgkbAJIEKL6w770DwBB4z.2AA270GE0DyA9F09F.yA8@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.200 as permitted sender) smtp.mailfrom=3dyesYgkbAJIEKL6w770DwBB4z.2AA270GE0DyA9F09F.yA8@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655449463; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references; bh=DtPbQllWMTHrEOQKUrdZBFP/DdiKKKqRgH9nYMOfst8=; b=bYQf8q4208lsUck7g+OukXCpV2TNwAXq1CzlkdIRCHPok8chLVc5kZQA/Hj+aRJ2Uo7D9H e6pilZ8pTPWIsdAtQPYpr7Xx0582D5LcIZy2/7QnHhhvbQJZLkm8D6sTyXdFxj6H4VfW4y ihRcbXcNkhGe9MKFkc8SdrzO71Sg2II= X-Rspamd-Queue-Id: B50B61C0093 X-Rspam-User: Authentication-Results: imf20.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none); spf=pass (imf20.hostedemail.com: domain of 3dyesYgkbAJIEKL6w770DwBB4z.2AA270GE0DyA9F09F.yA8@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.200 as permitted sender) smtp.mailfrom=3dyesYgkbAJIEKL6w770DwBB4z.2AA270GE0DyA9F09F.yA8@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com X-Rspamd-Server: rspam06 X-Stat-Signature: 4j981m5xzwo9twj6ncj8p4rybxuoc8r8 X-HE-Tag: 1655449463-710931 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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.