NetBSD-Bugs archive

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

kern/48366: xhci without DIAGNOSTIC may panic

>Number:         48366
>Category:       kern
>Synopsis:       xhci without DIAGNOSTIC may panic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 04 08:05:00 +0000 2013
>Originator:     Takahiro HAYASHI
>Release:        NetBSD 6.99.25 (2013. UTC)
System: NetBSD ruin 6.99.25 NetBSD 6.99.25 (UNION) #3: Sun Nov  3 19:07:53 JST 
2013 root@halt:/build/head/obj.amd64/sys/arch/amd64/compile/UNION amd64
Architecture: x86_64
Machine: amd64
        kernel built without DIAGNOSTIC may panic around xhci.

        xhci_allocx() fills allocated xfer memory with zero only with
        DIAGNOSTIC, but {u,o,e}hci_allocx() always do.
        xhci_allocx() should do it always too, or allocated memory
        is uninitialized if not DIAGNOSTIC defined.


        Please move memset() out of #ifdef DIAGNOSTIC in xhci_allocx()
        if you want to build kernel w/o DIAGNOSTIC.


Home | Main Index | Thread Index | Old Index