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=-5.4 required=3.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 A1B11C31E40 for ; Tue, 30 Jul 2019 12:28:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 80C9C206E0 for ; Tue, 30 Jul 2019 12:28:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728448AbfG3M2U (ORCPT ); Tue, 30 Jul 2019 08:28:20 -0400 Received: from mail-io1-f70.google.com ([209.85.166.70]:33235 "EHLO mail-io1-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728381AbfG3M2I (ORCPT ); Tue, 30 Jul 2019 08:28:08 -0400 Received: by mail-io1-f70.google.com with SMTP id 132so71253046iou.0 for ; Tue, 30 Jul 2019 05:28:07 -0700 (PDT) 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=UF+ZT7hkzsQOSIm9ZfReLBGT0sRMnBnJ9BkNk0fgMtk=; b=lw0fGBKGaogHuuu5rLIr0qWw9E3Ok38gz7BtE+xxZsCMhI10wbK+7lei0DwZQj/RN0 SxAGzj/Ab4YVWMnFTmR4ShUhFlS1jRqLo49Fkt4u0MjvnaFt85nEX1EXUwnOhwYmdVzE eRa6MrZUFAMpF1yAbe0+Bcc3mDqz34gXwCTP0PGAcLD8LjglqHKQ8WwWUQPOtSNTqNJv nBVLBMn9BCgxO+TAJsHOYhTx/J2xXd0k1b7Q6l8YFJi0kL7B2iBsx7y/qvhCvr9Vfc6d 8kdDbKRW3eUjdeyZvOd3zWqDamOJUEKWhWA7UVg1TeMS9BuxrGp0nd39+Tn8jj8/OV0C WZ6Q== X-Gm-Message-State: APjAAAVnREUAtsLmpF07gRRP5iuAKrhvfmExxc0zlRiNRTjiD2Fany/c CKBAy7tcIDbELpKsOGbRs61JyUE+3PbuW6EEb3qECP7PONCQ X-Google-Smtp-Source: APXvYqwylNdmLYou55ilmwLxDi//dWkQA/2GdAbuEf8sWkR2fpjRhH0kg4zKEtf78oXPD6M0flpqNynFwWxuxZd0tmIROr31LSch MIME-Version: 1.0 X-Received: by 2002:a02:aa1d:: with SMTP id r29mr48117747jam.127.1564489687097; Tue, 30 Jul 2019 05:28:07 -0700 (PDT) Date: Tue, 30 Jul 2019 05:28:07 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000000de921058ee524e1@google.com> Subject: KASAN: user-memory-access Read in hidraw_ioctl From: syzbot To: andreyknvl@google.com, benjamin.tissoires@redhat.com, jikos@kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: 7f7867ff usb-fuzzer: main usb gadget fuzzer driver git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=13c21ab4600000 kernel config: https://syzkaller.appspot.com/x/.config?x=792eb47789f57810 dashboard link: https://syzkaller.appspot.com/bug?extid=5a8c44432a51154ff6d5 compiler: gcc (GCC) 9.0.0 20181231 (experimental) Unfortunately, I don't have any reproducer for this crash yet. IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+5a8c44432a51154ff6d5@syzkaller.appspotmail.com ================================================================== BUG: KASAN: user-memory-access in _copy_to_user+0x124/0x150 lib/usercopy.c:27 Read of size 148 at addr 0000100000000000 by task syz-executor.2/19576 CPU: 1 PID: 19576 Comm: syz-executor.2 Not tainted 5.3.0-rc2+ #23 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+0xca/0x13e lib/dump_stack.c:113 __kasan_report.cold+0x5/0x33 mm/kasan/report.c:486 kasan_report+0xe/0x12 mm/kasan/common.c:612 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x128/0x190 mm/kasan/generic.c:192 _copy_to_user+0x124/0x150 lib/usercopy.c:27 copy_to_user include/linux/uaccess.h:152 [inline] hidraw_ioctl+0x39c/0xae0 drivers/hid/hidraw.c:392 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0xd2d/0x1330 fs/ioctl.c:696 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:718 do_syscall_64+0xb7/0x580 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459829 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f6587cfbc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459829 RDX: 0000000020005640 RSI: 0000000090044802 RDI: 0000000000000004 RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6587cfc6d4 R13: 00000000004c21db R14: 00000000004d5540 R15: 00000000ffffffff ================================================================== --- This bug 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 bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot.