-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                        ESB-2007.0040 -- [Solaris]
        On Solaris 10 Possible System Panics with a "Bad Trap" from
               the drain_squeue() Function Under High Stress
                             15 February 2007

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:              drain_squeue
Publisher:            Sun Microsystems
Operating System:     Solaris 10
Impact:               Denial of Service
Access:               Remote/Unauthenticated

Original Bulletin:    
  http://sunsolve.sun.com/search/printfriendly.do?assetkey=1-26-102554-1

Revision History:  February 15 2007: Final patch availability update.
                   January 22 2007: Initial Release

- --------------------------BEGIN INCLUDED TEXT--------------------

Sun(sm) Alert Notification
     * Sun Alert ID: 102554
     * Synopsis: On Solaris 10 Possible System Panics with a "Bad Trap"
       from the drain_squeue() Function Under High Stress
     * Category: Availability
     * Product: Solaris 10 Operating System
     * BugIDs: 6266950
     * Avoidance: Patch
     * State: Resolved
     * Date Released: 09-Aug-2006, 13-Feb-2007
     * Date Closed: 13-Feb-2007
     * Date Modified: 19-Jan-2007, 13-Feb-2007

1. Impact

   System panics in drain_squeue() TCP/IP function under heavy stress.

   The following Sun Alerts describe TCP/IP issues for the new SPARC
   systems which use CMT processors.
     * Sun Alert ID: 102551
     * Sun Alert ID: 102553
     * Sun Alert ID: 102554

2. Contributing Factors

   This issue can occur in the following releases:

   SPARC Platform
     * Solaris 10 without patch 119998-01

   x86 Platform
     * Solaris 10 without patch 119999-01

   Notes: Solaris 8 and 9 are not impacted by this issue.

   Extremely heavy TCP/IP loads with many tens of thousands of rapidly
   opening/closing TCP connections.

   CMT processors (Chip Multi-Threading technology) are more likely to
   sustain the throughput required, while still being able to context
   switch rapidly enough to reproduce this. It is highly unlikely that
   this issue will be seen on other systems.

   There are two classes of system using CMT processors. These can be
   identified using the following commands:

   a) Systems with Sun4v kernel architecture use CMT processors. These
   are identified by the command:
   % uname -m

   which will return "sun4v".

   b) UltraSPARC IV and UltraSPARC IV+ systems use CMT processors. These
   are identified by the command:
   % prtconf -pv | grep "SUNW,UltraSPARC-IV"

   which will return a non-NULL result something similar to:
   compatible: 'SUNW,UltraSPARC-IV'


3. Symptoms

   The following panic string and stack trace is representative of this
   issue:
   BAD TRAP: type=31 rp=2a17492b380 addr=1c mmu_fsr=0
   occurred in module "ip" due to a NULL pointer dereference

   <trap>ip:squeue_drain+0x114(0x6000192d300, 0x10)
   ip:squeue_enter+0x34c()
   ip:tcp_wput(0x30011b6cbe0, 0x60023c83780) - frame recycled
   unix:putnext+0x218(0x30011b6ce70, 0x60023c83780?)
   genunix:strput+0x1b4(0x300143f46b8, 0x60023c83780, 0x0, 0x2a17492b918,
   0x0, 0x0)
   genunix:kstrputmsg+0x328(0x60008790780, , 0x0, 0x0, 0x0, 0x2c4, 0x0)
   sockfs:sotpi_setsockopt+0x58c(0x3001445ebf0, 0x121c2113, 0x6c3e4fdd,
   0x2a17492bac8, 0xc)
   sockfs:setsockopt+0xc0()
   unix:syscall_trap+0xac()
   -- switch to user thread's user stack --

   Please be aware that athough this stacktrace does not match the
   stacktrace in the bug report for bug 6266950, it is the same issue.

   The stacktrace in the bug report illustrated this same problem when
   running an IP module compiled with DEBUG turned on. 

4. Relief/Workaround

   There is no workaround. Please see Resolution section below.

5. Resolution

   This issue is addressed in the following releases:

   SPARC Platform
     * Solaris 10 with patch 119998-01 or later

   x86 Platform
     * Solaris 10 with patch 119999-02 or later


Change History

   19-Jan-2007:
     * Updated Relief/Workaround with temporary patches

   13-Feb-2007:
     * Updated Contributing Factors, Relief/Workaround and Resolution
       sections
     * State: Resolved

   This Sun Alert notification is being provided to you on an "AS IS"
   basis. This Sun Alert notification may contain information provided by
   third parties. The issues described in this Sun Alert notification may
   or may not impact your system(s). Sun makes no representations,
   warranties, or guarantees as to the information contained herein. ANY
   AND ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
   WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
   NON-INFRINGEMENT, ARE HEREBY DISCLAIMED. BY ACCESSING THIS DOCUMENT
   YOU ACKNOWLEDGE THAT SUN SHALL IN NO EVENT BE LIABLE FOR ANY DIRECT,
   INDIRECT, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES THAT ARISE
   OUT OF YOUR USE OR FAILURE TO USE THE INFORMATION CONTAINED HEREIN.
   This Sun Alert notification contains Sun proprietary and confidential
   information. It is being provided to you pursuant to the provisions of
   your agreement to purchase services from Sun, or, if you do not have
   such an agreement, the Sun.com Terms of Use. This Sun Alert
   notification may only be used for the purposes contemplated by these
   agreements.

   Copyright 2000-2006 Sun Microsystems, Inc., 4150 Network Circle, Santa
   Clara, CA 95054 U.S.A. All rights reserved

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

        http://www.auscert.org.au/render.html?it=3192

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================

-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBRdOobih9+71yA2DNAQIBOQP/b2R7U++GoNFd9b8W8YcqUbtGmU6ZDPBB
4k9Yf8e5GhdbMf8AOvhSeY1AHrTkYMDYQcN5i2yP8gKMteUlWev/99TrOJR3JDud
R8Y1tR/fEgcUI8Tk8HJ7VRZKll5s3RSH/NBY/pC5KZ/1eVClr9BRuLQ5omwjYgZb
GNwvg42t2C4=
=OE/V
-----END PGP SIGNATURE-----