Re: kernel NULL pointer dereference, ucsi bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

Here is another bunch of bisect logs generated during the search of
BUG: unable to handle kernel NULL pointer dereference at
0000000000000370.
Strangely, none of these commits except
132d68d37d33f1d0b9c1f507c8b4d64c27ecec8a cause logon issues, but
nevertheless, I think them all worth being looked into. Both rounds
were made just to be sure which commit introduced a bug.

Round one:
git bisect start
# bad: [132d68d37d33f1d0b9c1f507c8b4d64c27ecec8a] Merge tag
'usb-5.2-rc1' of
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
git bisect bad 132d68d37d33f1d0b9c1f507c8b4d64c27ecec8a
# good: [6f6a407a591ebe3e4c6bd2329b29862b3980a3ca] Merge tag
'usb-serial-5.2-rc1' of
https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into
usb-next
git bisect good 6f6a407a591ebe3e4c6bd2329b29862b3980a3ca
# good: [01e5d1830cf54ac45768ef9ceb3e79cea2e1198c] Merge tag
'mmc-v5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
git bisect good 01e5d1830cf54ac45768ef9ceb3e79cea2e1198c
# good: [6ffe0acc935f344eb0b35da07c034d5122222e77] Merge tag
'wireless-drivers-next-for-davem-2019-05-03' of
git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next
git bisect good 6ffe0acc935f344eb0b35da07c034d5122222e77
# good: [6f6a407a591ebe3e4c6bd2329b29862b3980a3ca] Merge tag
'usb-serial-5.2-rc1' of
https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into
usb-next
git bisect good 6f6a407a591ebe3e4c6bd2329b29862b3980a3ca
# good: [6f6a407a591ebe3e4c6bd2329b29862b3980a3ca] Merge tag
'usb-serial-5.2-rc1' of
https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into
usb-next
git bisect good 6f6a407a591ebe3e4c6bd2329b29862b3980a3ca
# good: [2310673c3c12e4b7f8a31c41f67f701d24b0de86] Merge tag
'char-misc-5.2-rc1-part1' of
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
git bisect good 2310673c3c12e4b7f8a31c41f67f701d24b0de86
# good: [67a242223958d628f0ba33283668e3ddd192d057] Merge tag
'for-5.2/block-20190507' of git://git.kernel.dk/linux-block
git bisect good 67a242223958d628f0ba33283668e3ddd192d057
# good: [82efe439599439a5e1e225ce5740e6cfb777a7dd] Merge tag
'devicetree-for-5.2' of
git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
git bisect good 82efe439599439a5e1e225ce5740e6cfb777a7dd
# good: [54516da1ea859dd4f56ebba2e483d2df9d7c8a32] Merge branch
'r8169-replace-some-magic-with-more-speaking-functions'
git bisect good 54516da1ea859dd4f56ebba2e483d2df9d7c8a32
# good: [a9e41a529681b38087c91ebc0bb91e12f510ca2d] Merge
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
git bisect good a9e41a529681b38087c91ebc0bb91e12f510ca2d
# good: [408b56ca5c8eea1e46d2094818de8acc7215cf58] usb: gadget: udc:
lpc32xx: simplify probe
git bisect good 408b56ca5c8eea1e46d2094818de8acc7215cf58
# good: [5799aecd64f2bb6c8175a2e86fbcb9e60d052221] usb: dwc2: Fix
channel disable flow
git bisect good 5799aecd64f2bb6c8175a2e86fbcb9e60d052221
# good: [b873e2d0ea1efc91fb603b727733525f07419f2b] usb: dwc3: Do core
validation early on probe
git bisect good b873e2d0ea1efc91fb603b727733525f07419f2b
# good: [2e487d280525b91b03976203b15aba365ec5b4e6] usb: dwc3: Rename
DWC3_DCTL_LPM_ERRATA
git bisect good 2e487d280525b91b03976203b15aba365ec5b4e6
# bad: [3515468a87a47781f6af818773650513ff14656a] Merge tag
'usb-for-v5.2' of
git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next
git bisect bad 3515468a87a47781f6af818773650513ff14656a
# bad: [12456e509be25d24fe479394852428517922d02a] Merge 5.1-rc7 into usb-next
git bisect bad 12456e509be25d24fe479394852428517922d02a
# first bad commit: [12456e509be25d24fe479394852428517922d02a] Merge
5.1-rc7 into usb-next

Round two:
git bisect start
# bad: [132d68d37d33f1d0b9c1f507c8b4d64c27ecec8a] Merge tag
'usb-5.2-rc1' of
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
git bisect bad 132d68d37d33f1d0b9c1f507c8b4d64c27ecec8a
# good: [86dc59e39031fb0d366d5b1f92db015b24bef70b] net: dsa: sja1105:
Make 'sja1105et_regs' and 'sja1105pqrs_regs' static
git bisect good 86dc59e39031fb0d366d5b1f92db015b24bef70b
# good: [80f232121b69cc69a31ccb2b38c1665d770b0710] Merge
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
git bisect good 80f232121b69cc69a31ccb2b38c1665d770b0710
# good: [5d438e200215f61ca6a7aa69f3c4e035ac54d8ee] usb: typec: ucsi:
ccg: add get_fw_info function
git bisect good 5d438e200215f61ca6a7aa69f3c4e035ac54d8ee
# good: [6f6a407a591ebe3e4c6bd2329b29862b3980a3ca] Merge tag
'usb-serial-5.2-rc1' of
https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into
usb-next
git bisect good 6f6a407a591ebe3e4c6bd2329b29862b3980a3ca
# good: [1e868545f2bb06f7dd4a1c97c5b9ed2615929cf0] usb: dwc2: gadget:
Move gadget phy init into core phy init
git bisect good 1e868545f2bb06f7dd4a1c97c5b9ed2615929cf0
# good: [c8006f67ae0371900e601112d9f9cd8fff1c8387] usb: dwc2: Set
actual frame number for completed ISOC transfer
git bisect good c8006f67ae0371900e601112d9f9cd8fff1c8387
# good: [c729969b2b692ce3ed362e60d38391e7671758ff] usb: dwc3: gadget:
Set lpm_capable
git bisect good c729969b2b692ce3ed362e60d38391e7671758ff
# good: [8d791929b2fbdf7734c1596d808e55cb457f4562] usb: dwc3: Fix
default lpm_nyet_threshold value
git bisect good 8d791929b2fbdf7734c1596d808e55cb457f4562
# good: [2e487d280525b91b03976203b15aba365ec5b4e6] usb: dwc3: Rename
DWC3_DCTL_LPM_ERRATA
git bisect good 2e487d280525b91b03976203b15aba365ec5b4e6
# bad: [3515468a87a47781f6af818773650513ff14656a] Merge tag
'usb-for-v5.2' of
git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next
git bisect bad 3515468a87a47781f6af818773650513ff14656a
# bad: [12456e509be25d24fe479394852428517922d02a] Merge 5.1-rc7 into usb-next
git bisect bad 12456e509be25d24fe479394852428517922d02a
# first bad commit: [12456e509be25d24fe479394852428517922d02a] Merge
5.1-rc7 into usb-next

пт, 7 июн. 2019 г. в 02:58, Vladimir Yerilov <openmindead@xxxxxxxxx>:
>
> Finally I can name the first bad commit:
>
> git bisect good
> ad74b8649beaf1a22cf8641324e3321fa0269d16 is the first bad commit
> commit ad74b8649beaf1a22cf8641324e3321fa0269d16
> Author: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>
> Date:   Tue Apr 23 17:21:48 2019 +0300
>
>    usb: typec: ucsi: Preliminary support for alternate modes
>
>    With UCSI the alternate modes, just like everything else
>    related to USB Type-C connectors, are handled in firmware.
>    The operating system can see the status and is allowed to
>    request certain things, for example entering and exiting the
>    modes, but the support for alternate modes is very limited
>    in UCSI. The feature is also optional, which means that even
>    when the platform supports alternate modes, the operating
>    system may not be even made aware of them.
>
>    UCSI does not support direct VDM reading or writing.
>    Instead, alternate modes can be entered and exited using a
>    single custom command which takes also an optional SVID
>    specific configuration value as parameter. That means every
>    supported alternate mode has to be handled separately in
>    UCSI driver.
>
>    This commit does not include support for any specific
>    alternate mode. The discovered alternate modes are now
>    registered, but binding a driver to an alternate mode will
>    not be possible until support for that alternate mode is
>    added to the UCSI driver.
>
>    Tested-by: Ajay Gupta <ajayg@xxxxxxxxxx>
>    Signed-off-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>
>    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
>
> :040000 040000 f19a610d131d6d3e6397934562dd6112e78b2415
> 76df0e463eeacf57157adba0291fc9577c7d5145 M      dr
> ivers
>
> git bisect log
> git bisect start
> # bad: [132d68d37d33f1d0b9c1f507c8b4d64c27ecec8a] Merge tag
> 'usb-5.2-rc1' of git://git.kernel.org/pub/scm/
> linux/kernel/git/gregkh/usb
> git bisect bad 132d68d37d33f1d0b9c1f507c8b4d64c27ecec8a
> # good: [86dc59e39031fb0d366d5b1f92db015b24bef70b] net: dsa: sja1105:
> Make 'sja1105et_regs' and 'sja1105pq
> rs_regs' static
> git bisect good 86dc59e39031fb0d366d5b1f92db015b24bef70b
> # good: [80f232121b69cc69a31ccb2b38c1665d770b0710] Merge
> git://git.kernel.org/pub/scm/linux/kernel/git/dav
> em/net-next
> git bisect good 80f232121b69cc69a31ccb2b38c1665d770b0710
> # good: [5d438e200215f61ca6a7aa69f3c4e035ac54d8ee] usb: typec: ucsi:
> ccg: add get_fw_info function
> git bisect good 5d438e200215f61ca6a7aa69f3c4e035ac54d8ee
> # bad: [6f6a407a591ebe3e4c6bd2329b29862b3980a3ca] Merge tag
> 'usb-serial-5.2-rc1' of https://git.kernel.org
> /pub/scm/linux/kernel/git/johan/usb-serial into usb-next
> git bisect bad 6f6a407a591ebe3e4c6bd2329b29862b3980a3ca
> # bad: [e823d948b7e53dc982c867ac4ce7877fc0418897] usb: musb: dsps: Use
> dev_get_drvdata()
> git bisect bad e823d948b7e53dc982c867ac4ce7877fc0418897
> # bad: [6fee3787ea7aebf25fecdce325ee9b2150c5727b] dt-bindings:
> usb-xhci: Add r8a774c0 support
> git bisect bad 6fee3787ea7aebf25fecdce325ee9b2150c5727b
> # bad: [cf28369c634fafb5f4e81750cba6988cdb4b4490] usb: typec: Add
> driver for NVIDIA Alt Modes
> git bisect bad cf28369c634fafb5f4e81750cba6988cdb4b4490
> # bad: [ad74b8649beaf1a22cf8641324e3321fa0269d16] usb: typec: ucsi:
> Preliminary support for alternate mode
> s
> git bisect bad ad74b8649beaf1a22cf8641324e3321fa0269d16
> # good: [5c9ae5a87573d38cfc4c740aafda2fa6ce06e401] usb: typec: ucsi:
> ccg: add firmware flashing support
> git bisect good 5c9ae5a87573d38cfc4c740aafda2fa6ce06e401
> # first bad commit: [ad74b8649beaf1a22cf8641324e3321fa0269d16] usb:
> typec: ucsi: Preliminary support for a
> lternate modes
>
> Best regards,
> Vladimir
>
> чт, 6 июн. 2019 г. в 02:59, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx>:
> >
> > On Wed, Jun 05, 2019 at 04:36:23PM +1000, Vladimir Yerilov wrote:
> > > Good day Mr. Kroah-Hartman,
> > >
> > > I've found the culprit commit. It took a while though but now I'm sure:
> > >
> > > commit - brief decription - time - works (y) or not (n)
> > > 670784fb4ebe54434e263837390e358405031d9e - rc1 2019-05-20
> > > e260ad01f0aa9e96b5386d5cd7184afd949dc457 - rc0 2019-05-14 19:52:51 -0700 n
> > > 8ea5b2abd07e2280a332bd9c1a7f4dd15b9b6c13 - rc0 2019-05-09 19:35:41 -0700 n
> > > 54516da1ea859dd4f56ebba2e483d2df9d7c8a32 - rc0 2019-05-05 21:58:36 -0700 y
> > > 71ae5fc87c34ecbdca293c2a5c563d6be2576558 - rc0 2019-05-06 20:29:45 -0700 y
> > > 80f232121b69cc69a31ccb2b38c1665d770b0710 - rc0 2019-05-07 22:03:58 -0700 y
> > > a2d635decbfa9c1e4ae15cb05b68b2559f7f827c - rc0 2019-05-08 21:35:19 -0700 n
> > > 132d68d37d33f1d0b9c1f507c8b4d64c27ecec8a - rc0 2019-05-08 10:03:52 -0700 n
> > > 86dc59e39031fb0d366d5b1f92db015b24bef70b - rc0 2019-05-08 09:46:44 -0700 y
> > >
> > > So 86dc59e39031fb0d366d5b1f92db015b24bef70b is the last working for
> > > me, and 132d68d37d33f1d0b9c1f507c8b4d64c27ecec8a is the breaking one:
> > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.2-rc3&id=132d68d37d33f1d0b9c1f507c8b4d64c27ecec8a
> >
> > 132d68d37d33 ("Merge tag 'usb-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb")
> > is a merge point, which is odd, you should be able to drop down into
> > that and find the exact wrong commit.
> >
> > what does 'git bisect log' show?
> >
> > thanks,
> >
> > greg k-h
>
>
>
> --
> ----
> Best regards,
> Vladimir Yerilov



-- 
----
Best regards,
Vladimir Yerilov




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux