From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Vladimir Yerilov <openmindead@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: kernel NULL pointer dereference, ucsi bug
Date: Tue, 11 Jun 2019 10:54:31 +0300 [thread overview]
Message-ID: <20190611075431.GB7918@kuha.fi.intel.com> (raw)
In-Reply-To: <CAB31r6U3Ha+JrbjGC+wKj-+gJfQ7dk+LSoL1n0tQBxVTPb2mRQ@mail.gmail.com>
Hi Vladimir,
On Sun, Jun 02, 2019 at 09:24:43PM +1000, Vladimir Yerilov wrote:
> Good day,
>
> There's a problem with ucsi starting from 5.2-rc1 (maybe earlier
> versions of 5.2 are affected too).
> Recently I've tried these versions of rc3 (commits), all have this issue:
> 3ab4436f688c2d2f221793953cd05435ca84261c (05/31)
> 3ea3091f1bd8586125848c62be295910e9802af0
> cd6c84d8f0cdc911df435bb075ba22ce3c605b07 (rc2)
>
> These are lines from journal logs (more in the attachment):
> Jun 01 16:17:27 kernel: BUG: kernel NULL pointer dereference, address:
> 0000000000000368
> Jun 01 16:17:27 kernel: #PF: supervisor read access in kernel mode
> Jun 01 16:17:27 kernel: #PF: error_code(0x0000) - not-present page
> Jun 01 16:17:27 kernel: Oops: 0000 [#1] PREEMPT SMP PTI
> Jun 01 16:17:27 kernel: CPU: 7 PID: 252 Comm: kworker/7:2 Tainted: G
> U OE 5.2.0-1-MANJARO #1
> Jun 01 16:17:27 kernel: Hardware name: Timi TM1701/TM1701, BIOS
> XMAKB5R0P0906 10/23/2018
> Jun 01 16:17:27 kernel: Workqueue: events_long ucsi_init [typec_ucsi]
> Jun 01 16:17:27 kernel: RIP: 0010:typec_altmode_get_partner+0x5/0x20 [typec]
> Jun 01 16:17:27 kernel: Code: 85 c0 74 08 e9 3c 8a 78 e2 31 c0 c3 b8
> a1 ff ff ff c3 b8 ed ff ff ff c3 66 66 2e 0f 1f 84 00 00 00 00 00 66
> 90 0f 1f 44 00 00 <48> 8b 87 68 03 00 00 48 83 c0 08 c3 66 66 2e 0f 1f
> 84 00 00 00 00
> Jun 01 16:17:27 kernel: RSP: 0018:ffffa67542123e00 EFLAGS: 00010293
> Jun 01 16:17:27 kernel: RAX: 0000000000000000 RBX: ffff8e9485a56800
> RCX: 0000000000000000
> Jun 01 16:17:27 kernel: RDX: 0000000000000000 RSI: 0000000000000246
> RDI: 0000000000000000
> Jun 01 16:17:27 kernel: RBP: 0000000000000000 R08: ffff8e949ebdbdc0
> R09: 0000000000000000
> Jun 01 16:17:27 kernel: R10: 0000000000000000 R11: 0000000000000000
> R12: 0000000000000000
> Jun 01 16:17:27 kernel: R13: ffff8e9499237540 R14: ffff8e9485a56ac0
> R15: ffff8e9485a56800
> Jun 01 16:17:27 kernel: FS: 0000000000000000(0000)
> GS:ffff8e949ebc0000(0000) knlGS:0000000000000000
> Jun 01 16:17:27 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> Jun 01 16:17:27 kernel: CR2: 0000000000000368 CR3: 00000001c8a0a003
> CR4: 00000000003606e0
> Jun 01 16:17:27 kernel: Call Trace:
> Jun 01 16:17:27 kernel: ucsi_altmode_update_active+0x85/0x100 [typec_ucsi]
> Jun 01 16:17:27 kernel: ucsi_init+0x398/0x590 [typec_ucsi]
> Jun 01 16:17:27 kernel: process_one_work+0x1eb/0x410
> Jun 01 16:17:27 kernel: worker_thread+0x2d/0x3d0
> Jun 01 16:17:27 kernel: ? process_one_work+0x410/0x410
> Jun 01 16:17:27 kernel: kthread+0x112/0x130
> Jun 01 16:17:27 kernel: ? kthread_park+0x80/0x80
> Jun 01 16:17:27 kernel: ret_from_fork+0x35/0x40
The firmware is reporting that an alt mode which does not exist is
active? What do you have connected to the USB Type-C connectors on the
machine when that happens?
Can you use the machine normally when nothing is connected to the USB
Type-C connectors, and does the issue happen always when you plug in
some specific device?
Is it possible to send complete dmesg output after that happened?
thanks,
--
heikki
next prev parent reply other threads:[~2019-06-11 7:54 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-02 11:24 kernel NULL pointer dereference, ucsi bug Vladimir Yerilov
2019-06-03 13:12 ` Greg KH
2019-06-03 14:58 ` Vladimir Yerilov
2019-06-04 5:40 ` Greg KH
2019-06-05 6:36 ` Vladimir Yerilov
2019-06-05 16:58 ` Greg KH
2019-06-06 9:36 ` Vladimir Yerilov
2019-06-06 16:58 ` Vladimir Yerilov
2019-06-10 3:48 ` Vladimir Yerilov
2019-06-10 14:32 ` Greg KH
2019-06-10 14:57 ` Vladimir Yerilov
2019-06-11 7:06 ` Heikki Krogerus
2019-06-11 7:54 ` Heikki Krogerus [this message]
[not found] ` <CAB31r6V+PYppYJz29u_hfpiL6xqhhe+-2xZTRpqOmpLrtCdh8Q@mail.gmail.com>
2019-06-12 9:55 ` Heikki Krogerus
2019-06-12 12:23 ` Vladimir Yerilov
2019-06-12 12:32 ` Greg KH
2019-06-12 12:57 ` Vladimir Yerilov
2019-06-12 14:05 ` Heikki Krogerus
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=20190611075431.GB7918@kuha.fi.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=linux-usb@vger.kernel.org \
--cc=openmindead@gmail.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).