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 55143C433E0 for ; Sun, 28 Feb 2021 10:00:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 09B0061606 for ; Sun, 28 Feb 2021 10:00:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230402AbhB1KAC (ORCPT ); Sun, 28 Feb 2021 05:00:02 -0500 Received: from mail-io1-f71.google.com ([209.85.166.71]:52859 "EHLO mail-io1-f71.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbhB1J77 (ORCPT ); Sun, 28 Feb 2021 04:59:59 -0500 Received: by mail-io1-f71.google.com with SMTP id v5so10931440ioq.19 for ; Sun, 28 Feb 2021 01:59:43 -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=NLWuewdUS1OfIOpz3uSGkuRZirCCodU+4FFzIrUczyQ=; b=odETUQLj0r0HuV6X7tp4C/EPBr8nxyE71vAv3qZdJ+RDFi7SEuDHsLWJ8M/ULkUKV+ 7SRWk/gTPVU2Q6lOKrmPW2xCw59FEzMluOLLSO4xpzXjl/Kk3J21nrwMzX8Yx6MgW7vO 6/P/98RU9v7KuIVXisD/Hi1zR2bTQfVn5FkSjCQZ6AW4x77mJr8rgqzWa2E8LP0Kqe0S azlyjSBsPIw5iZnM3+eh7jC+MT9NDC0QvuS3hB7Zi1oIwsbQbJFFMZ98kPhJNXf5IhPa VRY9M0qBGA2cye66ta43fe2la6iB92EqmumtVhFRux8yDSJTLtUxBJrIa0MvOofzZipI KTag== X-Gm-Message-State: AOAM532XUOTyFRARZ4QF39rWgeWTOr2pHisEsdIS/C0kQFD5NJ1BjhYP DKCegv56ibYD/u7tj4eSRsz/lCpS2El05dB8CvBpLtr+NpYO X-Google-Smtp-Source: ABdhPJwcABAyP8+wKD4xv9GfnU9jio/a0UYe85WEhgszjWZtThWuX4P2fWKbemIzRKk8aPVh1QV8QeLLflHKzPqmq8HyawyKY/nm MIME-Version: 1.0 X-Received: by 2002:a92:444e:: with SMTP id a14mr9103259ilm.215.1614506358701; Sun, 28 Feb 2021 01:59:18 -0800 (PST) Date: Sun, 28 Feb 2021 01:59:18 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000ff83de05bc628d3c@google.com> Subject: KASAN: null-ptr-deref Read in __fget_light From: syzbot To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.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-fsdevel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 3b9cdafb Merge tag 'pinctrl-v5.12-1' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=114ac832d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=22008533485b2c35 dashboard link: https://syzkaller.appspot.com/bug?extid=21c62f4403f8c167e6f6 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+21c62f4403f8c167e6f6@syzkaller.appspotmail.com ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:71 [inline] BUG: KASAN: null-ptr-deref in atomic_read include/asm-generic/atomic-instrumented.h:27 [inline] BUG: KASAN: null-ptr-deref in __fget_light+0x4f/0x280 fs/file.c:930 Read of size 4 at addr 0000000000000000 by task io_wqe_worker-0/10248 CPU: 0 PID: 10248 Comm: io_wqe_worker-0 Not tainted 5.11.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xfa/0x151 lib/dump_stack.c:120 __kasan_report mm/kasan/report.c:400 [inline] kasan_report.cold+0x5f/0xd5 mm/kasan/report.c:413 check_memory_region_inline mm/kasan/generic.c:179 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:185 instrument_atomic_read include/linux/instrumented.h:71 [inline] atomic_read include/asm-generic/atomic-instrumented.h:27 [inline] __fget_light+0x4f/0x280 fs/file.c:930 fdget_raw include/linux/file.h:70 [inline] path_init+0xc24/0x1800 fs/namei.c:2275 path_lookupat+0x30/0x830 fs/namei.c:2331 filename_lookup+0x19f/0x560 fs/namei.c:2374 user_path_at include/linux/namei.h:60 [inline] vfs_statx+0x142/0x390 fs/stat.c:185 do_statx+0xd9/0x160 fs/stat.c:580 io_statx fs/io_uring.c:4525 [inline] io_issue_sqe+0x2c87/0x4ec0 fs/io_uring.c:6343 io_wq_submit_work+0x2a7/0x3f0 fs/io_uring.c:6418 io_worker_handle_work+0xe2f/0x1d00 fs/io-wq.c:561 io_wqe_worker+0xc2c/0x1080 fs/io-wq.c:603 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 ================================================================== --- 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.