Date: Wed, 16 Feb 2000 17:25:19 -0800 (PST) From: Jin Guojun (FTG staff) <jin@gracie.lbl.gov> To: FreeBSD-gnats-submit@freebsd.org Subject: kern/16767: open("/dev/ppi0") will crash machine without sync disk Message-ID: <200002170125.RAA01071@gracie.lbl.gov>
next in thread | raw e-mail | index | archive | help
>Number: 16767 >Category: kern >Synopsis: open("/dev/ppi0") will crash machine without sync disk >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 16 17:30:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Jin Guojun (FTG staff) >Release: FreeBSD 4.0-200002xx-CURRENT i386 >Organization: >Environment: FreeBSD 4.0-200002xx-CURRENT i386 >Description: any user can use the following code to crash system. Also, the ppi program interface is no longer exist in 4.0-xxxx-CURRENT; see header files within #if 0 ... #endif /* 0 */ >How-To-Repeat: Run following code will simply cause system panic without sync the file system: /* cc this_ppi.c ./aout --> system crash */ #include <fcntl.h> #if 0 #if (__FreeBSD__ > 3) /* non-user level header files for using ppi */ #define _KERNEL #include <sys/bus.h> #include <sys/bus_private.h> #endif #include </sys/dev/ppbus/ppi.h> /* user interface */ #include </sys/dev/ppbus/ppbconf.h> #endif main(int argc, char* argv[]) { int pd; #define iodev "/dev/ppi0" if ((pd = open(iodev, O_WRONLY)) < 0) err(1, "open %s", iodev); } >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002170125.RAA01071>