Date: Mon, 9 Nov 1998 09:53:09 -0800 (PST) From: dev@opensound.com To: freebsd-gnats-submit@FreeBSD.ORG Subject: kern/8632: Bug in vm_page_alloc_contig() Message-ID: <199811091753.JAA29303@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 8632 >Category: kern >Synopsis: Bug in vm_page_alloc_contig() >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 9 10:00:01 PST 1998 >Last-Modified: >Originator: Dev Mazumdar >Organization: 4Front Technologies >Release: FreeBSD 3.0-RELEASE >Environment: FreeBSD 3.0-RELEASE Intel P133, 32 MB RAM, 500MB FreeBSD partition 2GB IDE Harddisk, 6x CDROM, S3 Virge DX Graphics, SB AWE64 Sound, NE2000 network, 28.8 Modem. >Description: Using vm_page_alloc_contig() system call in an LKM crashes FreeBSD 3.0 when running X Windows and a memory hogging application like Netscape. We have created a sample LKM using the example in /usr/share/examples/lkm/syscall. The source code for the LKM can be obtained from ftp://ftp.4front-tech.com/ossapps/modtest.tar.gz >How-To-Repeat: Once you obtain this LKM, please follow the steps below: 0) extract modtest.tar in your root's home directory /root. Make sure OSS is turned off and isn't loaded. 1) Boot up FreeBSD 3 and don't run X Windows yet!. From the console type make load - this should load the LKM and print out some messages. Now type make unload to unload the LKM. 2) Now start X Windows, start you window manager and then from an Xterm WIndow start Netscape (netscape &) and now try step 1 above. You should have a total lockup. If you have the kernel debugger enabled, then follow the steps below: 0: Start X WIndows, then switch to a Virtual console (Ctl-Alt F2) Log in as root, set the DISPLAY variable to localhost:0 (in bash type: typeset -x DISPLAY=localhost:0, in csh type: setenv DISPLAY localhost:0) 1: Now start Netscape from the VC and you should check that it is displayed by switching to XWindows (type Ctl-Alt F4). Now switch back to the VC on (ctl-alt-F2). 2: Now type make load and you should see that the kernel has now crashed. We get the following output: fault virtual address: 0x8 fault code: supervisor write, page not present instruction pointer: 0x8:0xf020a8e2 stack pointer: 0xc0: 0xf2fc0b54 frame pointer: 0xc0: 0xf2fc0b54 code segment: base 0x0, limit 0xffff, type 0x1b DPL 0, pres 1, def32 1, gran 1 processor flags: interrupt enabled, resume, IOPL=3 current process: 222 (modload) interrupt mask: net tty bio cam kernel: type 12 trap code=0 stopped at _spc_free+0x6: movl $0, 0x8 (%eax) ddb> trace _spc_free(0) at _spc_free + 0x6 _swap_pager_put_pages(...) at _default_pager_put_pages + 0x56 _vm_pager_put_pages(...) at _vm_pager_put_pages + 0x22 _vm_pageout_flush(...) at _vm_pageoutflush + 0x2e _contigmalloc1(...) at _contigmalloc1 + 0x2ad _vm_page_alloc_contig(...) at _vm_page_alloc_contig + 0x23. .... .... Best regards Dev Mazumdar For those who don't wish to download the modtest.tar.gz file from the FTP site, cut and past the uuencoded copy from here to a file and run uudecode to extract modtest.tar.gz: ----CUT HERE---- begin 644 modtest.tar.gz M'XL(""&G1#8``VUO9'1E<W0N=&%R`.U:^W/:2!+.K_!7])'+!7PL!L>/VOB\ M51CD6+<\?`B2N&JK6"$-1F4A47H8<ZG]W^_K&0D$<7:S%9RKJU-7G$B:F:\? MT]./<>:^';OB\,5S$AW7STY.Z`4QU7?^35[H]+1Q=GQZ<M1X0]2H'Y_67]#) MLTJ54!Q&9D#T(O#]Z/?F+6="N-]#H.]+<[7_7?->3!U7/`N/1KU^>GS\Q?U_ M<W)T)O?_]/2T?M8XQOX?'1V=OJ#ZLTBS0__G^_^2ZB?TS]BC']\47Q9?4NH( M-/4#\L0R7(66Z;IR;#VS,!1!L**..9^(("H4^H%SYWBFFM7R%RN\SR(J6Q5J M_/CC&^+IPK,$#6KIHAIF-EV7Y,R0`A&*X$'8-0DQ$+831H$SB2/']\CT;(I# M08Y'H1\'P.$O$W"$$)!S'E9IZ40S@LC\KQ]'`(%G.U/',AFB2F8@:"&"N1-% MPJ9%X#\X-AZBF1GA+U;7=?VEX]V1Y7NVPXM"@/"RN8C>XK%1VY$K)'^:"F3Y M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"6 M$P&*7G&(BG#4^2ZDW6T2"RP"9:44:<M84H(G.`S$!,VEJHQ1;YMWJ/:3]E_- M_BW-"WC::NC1IB>G49-!S71E`%JILWV>QE455''<N/#%Z90U)`)"S9>W.34N M4$4Q>XLBVQ3379JKY.Z.5["B',22ZQ%UM$.U&H>5[X#D>2[%GGJ1*I7X`)76 MD4)V%CN'6%YL3$0:06(DT4`>QYEP`N[F4()&#C<;3H">`("H?4/,<_DF0\UZ M,-U8QIFMJ,%EVI2A%#2W)6(EE4MXK=L&J>%&_S(?+KY?5<F1RVEI("[UY?RD M0UC?C:7Z53DU;*UDL^$;%\FRC>0MX&YA(J*E$%YJQW5GI"Z&TDNF]#8WF55) MZVQ#7N@A=(I'M@Z[)E\&IF$R`6%,TT903MTC7,TGOALFZF1FJ@'E&N%"WNER MFI_&W!.E\E<SKL3_ZR]S.1JJKB-AS]=V8M.\24/Q1;)CQ2X"69(5E'LRRN9. M>K.I:I^4>JJ?X5EL,3!)^L#$='Z01&_XBN_"46(O>;+7&IMN@)(%>.@/V?S; MABHG?6<HN%>%=X32F;BA<IU[P9?!2.Z\M;YEQ<%Z&]CU,T<N/7'JC"*5)^JH MZ_5`3-6=HBQ8RI!@.7.LF?+/4-ZB;Z\W/74GMWT]M[EHW4[4V7PDW?#KDI)Z MQ'1Y&9L]F9\5`COX2:#;28MR6GH"MUXJZVO%G'+**:><<LHIIYQRRBFGG'+* C*:><<LHIIYQRRBFGG'+**:><<LHIIYR^$_T'"\V]>@!0```I ` end >Fix: None so far!!!! >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?199811091753.JAA29303>