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 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 8E93BC43603 for ; Wed, 18 Dec 2019 15:15:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6A6072465E for ; Wed, 18 Dec 2019 15:15:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726723AbfLRPPK (ORCPT ); Wed, 18 Dec 2019 10:15:10 -0500 Received: from mail-il1-f199.google.com ([209.85.166.199]:48180 "EHLO mail-il1-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726921AbfLRPPJ (ORCPT ); Wed, 18 Dec 2019 10:15:09 -0500 Received: by mail-il1-f199.google.com with SMTP id u14so1960848ilq.15 for ; Wed, 18 Dec 2019 07:15:09 -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=jSdukNVKN1rb2lDU57Ar/9GWwm2qqaJhHtnd5Wdgw+4=; b=p5mUIB0yt1G+66z+kTdSLy10bWQrle/KL+K3fJKlLdsSxYgVrLfaIhLJDo8IRG3MU5 kzdgaHpbYPKqgLWV/VQVAPdcL7gjlcLpr57R8R4oBIxRtiMw7JqWLswBPjMLC29U+l0X guviuvvjQpollRSYci4BoDPR3lIDHH90D3fu5q1wlXlS8iEO95ipaAK3l62QH1Pc/Yc/ 2HWt9NjuXtZbckFj4TyjBym1XecDyMbSbSHEDYdkp+HddsbhwqZEsbMUCrhfCX76JkJr Hcncsgir47NZwrwcKh81fxESs28e8wSZkSX8GPEFWLEH6Sor0uKPJmxvMoN6Aa/bC5aW FIMw== X-Gm-Message-State: APjAAAVZLQXJRscuPPKiM65wMWQi9I5ywDLjrQdQCIBg1aX/3x4jfqsg pcxv4l1ja43bMQ3+ZDTPdg7hU2GoyhXsXlpHw9CLHtnzSK/t X-Google-Smtp-Source: APXvYqzX8BiTDcFwWOoADIUa/C/W1aNUeW4q5RhSf7rp5KnkYx2nF+BA95bYW/QdzsdpbaLu0DFYyyFA+RBPWauGFLBsYsRahBlT MIME-Version: 1.0 X-Received: by 2002:a92:4616:: with SMTP id t22mr2292795ila.186.1576682109244; Wed, 18 Dec 2019 07:15:09 -0800 (PST) Date: Wed, 18 Dec 2019 07:15:09 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000000b9e820599fbe9a7@google.com> Subject: KASAN: use-after-free Read in hidinput_hid_event 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, rydberg@bitmath.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: d533c992 usb: core: kcov: collect coverage from usb comple.. git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=100798b9e00000 kernel config: https://syzkaller.appspot.com/x/.config?x=743b91162e9f9496 dashboard link: https://syzkaller.appspot.com/bug?extid=c961cb836a707f66e2f8 compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15519951e00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=166f72fee00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+c961cb836a707f66e2f8@syzkaller.appspotmail.com ================================================================== BUG: KASAN: use-after-free in test_bit include/asm-generic/bitops/instrumented-non-atomic.h:110 [inline] BUG: KASAN: use-after-free in hidinput_hid_event+0x1111/0x15d3 drivers/hid/hid-input.c:1381 Read of size 8 at addr ffff8881cfb19738 by task swapper/0/0 CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.5.0-rc2-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+0xef/0x16e lib/dump_stack.c:118 print_address_description.constprop.0+0x16/0x200 mm/kasan/report.c:374 __kasan_report.cold+0x37/0x7f mm/kasan/report.c:506 kasan_report+0xe/0x20 mm/kasan/common.c:639 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x152/0x1c0 mm/kasan/generic.c:192 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:110 [inline] hidinput_hid_event+0x1111/0x15d3 drivers/hid/hid-input.c:1381 hid_process_event+0x4a0/0x580 drivers/hid/hid-core.c:1506 hid_input_field drivers/hid/hid-core.c:1550 [inline] hid_report_raw_event+0xabb/0xed0 drivers/hid/hid-core.c:1757 hid_input_report+0x315/0x3f0 drivers/hid/hid-core.c:1824 hid_irq_in+0x50e/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback --- 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. syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches