Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4085121ybe; Mon, 16 Sep 2019 06:32:19 -0700 (PDT) X-Received: by 2002:a50:acc1:: with SMTP id x59mr29913490edc.278.1568640709426; Mon, 16 Sep 2019 06:31:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqynh+/lTOCJojdSSVrY+HS7+/6fEpIhDr+vsZ/IkIk1xGqldDJAIYIiSQbh6+zhLjSv7g2M X-Received: by 2002:a50:acc1:: with SMTP id x59mr29913368edc.278.1568640708618; Mon, 16 Sep 2019 06:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568640708; cv=none; d=google.com; s=arc-20160816; b=WytRG7z8q4e8HUmcPaVNzF5CPH4tzxBE3h+0WrabbEAVNMy9DNNzzNUjLxU3hxmrbH t1gPW7HMPFMmmlZzrO0qDGfQ4NCM3C11bWIV6JnUmwEmNrx/DDKm9+jOdgznYO5DdNjA EKxsdxVZtCRvGR0YrCRJDKd31aFuHLgwXxyAnjVubYVYJqO1/BClupbQefusV7kJFkOw TmhgK2aFls6OWizpdSyvDtvjI/vPD7aAgVFj0rI3kMzVpj1FKFcN6UcdMB/SziRMmGaA 3jhEv5TYaPr3VkTJj8arGR9ZHS5wAFmCJWedP1mgYVEq2/Z5PH1HoXLv4jBhbWJO+Lh1 K+vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version; bh=SxErCaoipc4qR6AbkxYQ34p7V9bqMpiyVCAvn4RQDdM=; b=kosMeF6F/aJsFZ0ROfASNtvUEpUkl7ta0Plknxr+R4qh+kCLjJ/Th321MUX7hgvWS3 kw4t6BJNsty7LtnTjusjkbxkQlPRPFN86u/xiS1iOTWEXqKbd201XPJP/vKog0s4nP+4 ybb3FlaCbk9iaNChEa3F+FJInIaRQfy5Oj89+bDeU8uMZz5mwASoVUbTAx0ljOdQmbDY xAm/BxTZkwJgqWm9dy+ubGPocFaAzUHn6PzyL+Z9MKiCT7A08HgWToRkoFTCSbRiRuue rTJRZhEPMCDizmoDvqEhU8TlSW2DwlZsgyJ9ErDV8liC7E3QOT2cegY8EKV3grEsB7ER DIEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d24si24707577ede.119.2019.09.16.06.31.25; Mon, 16 Sep 2019 06:31:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1733242AbfIPN3N (ORCPT + 99 others); Mon, 16 Sep 2019 09:29:13 -0400 Received: from mail-io1-f72.google.com ([209.85.166.72]:33985 "EHLO mail-io1-f72.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733218AbfIPN3L (ORCPT ); Mon, 16 Sep 2019 09:29:11 -0400 Received: by mail-io1-f72.google.com with SMTP id m25so50718161ioo.1 for ; Mon, 16 Sep 2019 06:29:11 -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=SxErCaoipc4qR6AbkxYQ34p7V9bqMpiyVCAvn4RQDdM=; b=t4Mz4mDUQ7mnHy1ZesTVTpzD8e7Up37Y23iungou7htjpEjeFBQHtA2CJuuCYGpjJg 0p36/K5y1NOBXNeny6pt5IfWDX2H1BSorgVA7B0B4TbtoAQZYpNYIOg18NO3az5XAKed bna8QQjuRNn18EP65HyeTI2MZ5ivnvn/2lM+apFqClby4VcKk7/3fmpvWS6dfPebgGij lf9wwnarzWfKIRYL/XUbXogBjjDc8IN2o2DLWhzH3KOoVEsf63mdEyhvFW41ZPZNtJZ/ cINC5Uq84qQbrrs2WRgjdcC0/OJbFIqMH+MWaCqk/q8b1bsBoJWim2UY+P1KVSQlcInF jEvw== X-Gm-Message-State: APjAAAWiQfuHMRLCw0oqouOX6znoI6Sv/Motf8Iz2ewY3yQ4YChI0YdC LSorO1PwxYvXbIDnLdwX5pDWb7GRo3VAdREjg/jfyBMb8jM5 MIME-Version: 1.0 X-Received: by 2002:a02:5585:: with SMTP id e127mr51965020jab.25.1568640550636; Mon, 16 Sep 2019 06:29:10 -0700 (PDT) Date: Mon, 16 Sep 2019 06:29:10 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000cd1def0592ab9697@google.com> Subject: KASAN: slab-out-of-bounds Write in ga_probe 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: f0df5c1b 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=14045831600000 kernel config: https://syzkaller.appspot.com/x/.config?x=5c6633fa4ed00be5 dashboard link: https://syzkaller.appspot.com/bug?extid=403741a091bf41d4ae79 compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13c1e62d600000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=166a3a95600000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+403741a091bf41d4ae79@syzkaller.appspotmail.com usb 1-1: config 0 interface 0 altsetting 0 has 1 endpoint descriptor, different from the interface descriptor's value: 9 usb 1-1: New USB device found, idVendor=0e8f, idProduct=0012, bcdDevice= 0.00 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? greenasia 0003:0E8F:0012.0001: unknown main item tag 0x0 greenasia 0003:0E8F:0012.0001: hidraw0: USB HID v0.00 Device [HID 0e8f:0012] on usb-dummy_hcd.0-1/input0 ================================================================== BUG: KASAN: slab-out-of-bounds in set_bit include/asm-generic/bitops-instrumented.h:28 [inline] BUG: KASAN: slab-out-of-bounds in gaff_init drivers/hid/hid-gaff.c:97 [inline] BUG: KASAN: slab-out-of-bounds in ga_probe+0x1fd/0x6f0 drivers/hid/hid-gaff.c:146 Write of size 8 at addr ffff8881d9acafc0 by task kworker/1:1/78 CPU: 1 PID: 78 Comm: kworker/1:1 Not tainted 5.3.0-rc7+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xca/0x13e lib/dump_stack.c:113 print_address_description+0x6a/0x32c mm/kasan/report.c:351 __kasan_report.cold+0x1a/0x33 mm/kasan/report.c:482 kasan_report+0xe/0x12 mm/kasan/common.c:618 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x128/0x190 mm/kasan/generic.c:192 set_bit include/asm-generic/bitops-instrumented.h:28 [inline] gaff_init drivers/hid/hid-gaff.c:97 [inline] ga_probe+0x1fd/0x6f0 drivers/hid/hid-gaff.c:146 hid_device_probe+0x2be/0x3f0 drivers/hid/hid-core.c:2209 really_probe+0x281/0x6d0 drivers/base/dd.c:548 driver_probe_device+0x101/0x1b0 drivers/base/dd.c:721 __device_attach_driver+0x --- 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