linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: syzbot <syzbot+00eaa791c74b27f5e7b1@syzkaller.appspotmail.com>
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
Subject: KASAN: slab-out-of-bounds Read in hidinput_hid_event
Date: Wed, 18 Dec 2019 06:45:10 -0800	[thread overview]
Message-ID: <000000000000daea9f0599fb7da6@google.com> (raw)

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=11e440aee00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=743b91162e9f9496
dashboard link: https://syzkaller.appspot.com/bug?extid=00eaa791c74b27f5e7b1
compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=1445d9fae00000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=12557049e00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+00eaa791c74b27f5e7b1@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: slab-out-of-bounds in test_bit  
include/asm-generic/bitops/instrumented-non-atomic.h:110 [inline]
BUG: KASAN: slab-out-of-bounds in hidinput_hid_event+0x1111/0x15d3  
drivers/hid/hid-input.c:1381
Read of size 8 at addr ffff8881cf4d2cd0 by task swapper/1/0

CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.5.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
Call Trace:
  <IRQ>
  __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



---
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

             reply	other threads:[~2019-12-18 14:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-18 14:45 syzbot [this message]
2020-06-18 12:10 ` KASAN: slab-out-of-bounds Read in hidinput_hid_event Andrey Konovalov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=000000000000daea9f0599fb7da6@google.com \
    --to=syzbot+00eaa791c74b27f5e7b1@syzkaller.appspotmail.com \
    --cc=andreyknvl@google.com \
    --cc=benjamin.tissoires@redhat.com \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=rydberg@bitmath.org \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).