linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: syzbot <syzbot+ee6f6e2e68886ca256a8@syzkaller.appspotmail.com>
Cc: 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: Re: [syzbot] general protection fault in magicmouse_remove
Date: Mon, 17 May 2021 12:08:03 +0200	[thread overview]
Message-ID: <YKJAg+4e5KwUD0Mw@hovoldconsulting.com> (raw)
In-Reply-To: <000000000000b5a0af05c28368b4@google.com>

On Mon, May 17, 2021 at 02:42:16AM -0700, syzbot wrote:
> Hello,
> 
> syzbot found the following issue on:
> 
> HEAD commit:    d665ea6e Merge tag 'for-linus-5.13-rc1' of git://git.kerne..
> git tree:       https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
> console output: https://syzkaller.appspot.com/x/log.txt?x=11afac45d00000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=f635d6ce17da8a68
> dashboard link: https://syzkaller.appspot.com/bug?extid=ee6f6e2e68886ca256a8
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=16d48069d00000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=12023fa9d00000
> 
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+ee6f6e2e68886ca256a8@syzkaller.appspotmail.com
> 
> usb 1-1: New USB device found, idVendor=05ac, idProduct=0265, bcdDevice= 0.40
> usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> usb 1-1: config 0 descriptor??
> usb 1-1: USB disconnect, device number 2
> general protection fault, probably for non-canonical address 0xdffffc000000002b: 0000 [#1] SMP KASAN
> KASAN: null-ptr-deref in range [0x0000000000000158-0x000000000000015f]
> CPU: 0 PID: 7 Comm: kworker/0:1 Not tainted 5.12.0-syzkaller #0
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
> Workqueue: usb_hub_wq hub_event
> RIP: 0010:timer_is_static_object+0x20/0x90 kernel/time/timer.c:625
> Code: 84 00 00 00 00 00 0f 1f 40 00 41 54 53 48 89 fb e8 d5 86 10 00 48 8d 7b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 4f 45 31 e4 48 83 7b 08 00 74 0c e8 ab 86 10 00 44
> RSP: 0018:ffffc9000007f330 EFLAGS: 00010006
> RAX: dffffc0000000000 RBX: 0000000000000150 RCX: 0000000000000000
> RDX: 000000000000002b RSI: ffffffff8130663b RDI: 0000000000000158
> RBP: 0000000000000002 R08: 0000000000000000 R09: ffffffff8a5c35ab
> R10: fffffbfff14b86b5 R11: 0000000000000000 R12: dffffc0000000000
> R13: ffffffff86090c00 R14: 0000000000000150 R15: 1ffff9200000fe6b
> FS:  0000000000000000(0000) GS:ffff8881f6a00000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 00000000004ba438 CR3: 00000001097bb000 CR4: 00000000001506f0
> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
> Call Trace:
>  debug_object_assert_init lib/debugobjects.c:886 [inline]
>  debug_object_assert_init+0x1df/0x2e0 lib/debugobjects.c:861
>  debug_timer_assert_init kernel/time/timer.c:737 [inline]
>  debug_assert_init kernel/time/timer.c:782 [inline]
>  del_timer+0x6d/0x110 kernel/time/timer.c:1202
>  try_to_grab_pending+0x6d/0xd0 kernel/workqueue.c:1252
>  __cancel_work_timer+0xa6/0x570 kernel/workqueue.c:3098
>  magicmouse_remove+0x3a/0x50 drivers/hid/hid-magicmouse.c:782

For the record, fixed here:

	https://lore.kernel.org/r/20210517100430.20509-1-johan@kernel.org

Johan

      reply	other threads:[~2021-05-17 10:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-17  9:42 [syzbot] general protection fault in magicmouse_remove syzbot
2021-05-17 10:08 ` Johan Hovold [this message]

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=YKJAg+4e5KwUD0Mw@hovoldconsulting.com \
    --to=johan@kernel.org \
    --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=syzbot+ee6f6e2e68886ca256a8@syzkaller.appspotmail.com \
    --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).