Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Nov 2011 14:33:57 GMT
From:      Sylvain Galliano <sg@efficientip.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/162294: Reading DMI memory parts using mmap freeze the system
Message-ID:  <201111041433.pA4EXvCY059284@red.freebsd.org>
Resent-Message-ID: <201111041440.pA4Ee8Ms060109@freefall.freebsd.org>

index | next in thread | raw e-mail


>Number:         162294
>Category:       kern
>Synopsis:       Reading DMI memory parts using mmap freeze the system
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 04 14:40:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Sylvain Galliano
>Release:        8.2-RELEASE
>Organization:
EfficientIP
>Environment:
FreeBSD solid.intranet 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #17: Thu Sep 29 19:28:07 UTC 2011     root@masterappliance-402.intranet:/usr/src/sys/i386/compile/SOLIDSERVER  i386
>Description:
When several processes simultaneously read DMI datas (using dmidecode), the system freeze.

There is no issue in 8.1-RELEASE.



>How-To-Repeat:
Execute the following script:

#!/bin/sh

/usr/local/sbin/dmidecode -s system-serial-number &
/usr/local/sbin/dmidecode -s system-serial-number &
/usr/local/sbin/dmidecode -s system-serial-number &
/usr/local/sbin/dmidecode -s system-serial-number &
. hundreds of lines


after few execution (sometime the first one), the system freeze

>Fix:
This issue seems to be related to mmap use in dmidecode.
In fact, if we change config.h in dmidecode port to disable mmap usage, all works fine. (In this case, dmidecode just open/read/close /dev/mem instead of mmap)


>Release-Note:
>Audit-Trail:
>Unformatted:


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111041433.pA4EXvCY059284>