From owner-freebsd-amd64@FreeBSD.ORG Mon Aug 24 11:06:50 2009 Return-Path: Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30CD21065692 for ; Mon, 24 Aug 2009 11:06:50 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1EB178FC30 for ; Mon, 24 Aug 2009 11:06:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7OB6o8o048466 for ; Mon, 24 Aug 2009 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7OB6noD048462 for freebsd-amd64@FreeBSD.org; Mon, 24 Aug 2009 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 24 Aug 2009 11:06:49 GMT Message-Id: <200908241106.n7OB6noD048462@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-amd64@FreeBSD.org X-Mailman-Approved-At: Mon, 24 Aug 2009 11:48:40 +0000 Cc: Subject: Current problem reports assigned to freebsd-amd64@FreeBSD.org X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2009 11:06:50 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o amd64/138029 amd64 [panic] periodically kernel panic and reboot o amd64/137942 amd64 8.0-BETA2 having problems with Asus M2N-SLI-deluxe mot o amd64/136884 amd64 [install] Try to install FreeBSD 7.2 amd64 on a prolia o amd64/136814 amd64 [mxge] mxge driver error s i386/135447 amd64 [i386] [request] Intel Core i7 and Nehalem-EP new feat o amd64/135265 amd64 [install] Boot from install cd hangs on HP DL160 G5 wi o amd64/135040 amd64 [ata] FreeBSD/amd64 does not (always) detect disk on S o amd64/134978 amd64 [panic] g_up pmap amd64 panic o amd64/134757 amd64 32 bit processes on 64 bit platforms occasionally drop o amd64/133977 amd64 [panic] [ffs] "panic: ffs_blkfree: freeing free block" o amd64/133701 amd64 Recompiling the kernel with k8temp or smbios break GEO o amd64/132574 amd64 [boot] [hang] Freeze on bootstrap loader (CD) using AT o amd64/132372 amd64 [ata] No disks found (nVidia nForce MCP55 sata control o amd64/132019 amd64 [install] kernel trap 12 while installation o amd64/131906 amd64 [ata] SATA data corruption with Promise PDC20378 (amd6 o amd64/131456 amd64 ACPI & ATA problems o amd64/131314 amd64 [modules] [panic] large modules fail to load on amd64 o amd64/131209 amd64 [panic] [bce] 7.1-STABLE amd64 crash - m0 NULL f amd64/130885 amd64 sockstat(1) on amd64 does not work o amd64/130864 amd64 [hang] Problem with copying files to a large partition o amd64/130817 amd64 FreeBSD does not support HP DL160G5 [regression] o amd64/130494 amd64 [boot] netbooting BTX fails on amd64 o amd64/130483 amd64 [mxge] MSI must be disabled when Myricom 10Gbps Card i o amd64/130368 amd64 [hang] Switching from xorg to console locks up compute o amd64/129889 amd64 [boot] [hang] The booting process stops at the line mo o amd64/129721 amd64 [hang] Motherboard K9N2G Neo-FD hangs on boot of 7.0-R o amd64/129667 amd64 [ata] Elitegroup A780GM-A IDE controller not recognize o amd64/129426 amd64 [panic] FreeBSD 7.0 crash after subdiskXX: detached o amd64/129315 amd64 [boot] [reboot] amd64 motherboard: Intel DG965WH mothe f amd64/128978 amd64 [install] FreeBSD 6.3 64-bit panics at boot time duri o amd64/128810 amd64 AMD 64 port installation o amd64/128765 amd64 [install] Install CD loads to Install choices but stop o amd64/128686 amd64 [ata] can't detect SATA Disk on 8.0-Current with NF550 o amd64/128263 amd64 [panic] 2 amd64 dl380 g5 with dual quadcore xeons, 8 a o amd64/128259 amd64 csh(1): "`" crashes csh o amd64/127640 amd64 gcc(1) will not build shared libraries with -fprofile- o amd64/127484 amd64 [timecounters] Drift problem with FreeBSD 7.0 and 7.1 o amd64/127451 amd64 [scheduler] incorrect load on quad core o amd64/127397 amd64 [amd64] 32bit application on FreeBSD-6.3 amd64 gets SI s amd64/127276 amd64 ldd(1) invokes linux yes o amd64/127129 amd64 mdconfig(8) is core dumping with Segmentation Fault 11 o amd64/125873 amd64 [smbd] [panic] Repeated kernel panics, trap 12 page fa o amd64/125002 amd64 [install] amd64, SATA hard disks not detected o amd64/124432 amd64 [panic] 7.0-STABLE panic: invalbuf: dirty bufs o amd64/124134 amd64 [kernel] The kernel doesn't follow the calling convent o amd64/123562 amd64 [install] FreeBSD amd64 not installs o amd64/123520 amd64 [ahd] unable to boot from net while using ahd o amd64/123456 amd64 fstat(1): /usr/bin/fstat shows error messages and hang f amd64/123275 amd64 [cbb] [pcmcia] cbb/pcmcia drivers on amd64 failure [re o kern/122782 amd64 [modules] accf_http.ko kernel module is not loadable o amd64/122695 amd64 [cpufreq] Lack of cpufreq control using amd64 eith cor o amd64/122624 amd64 unusable minimal installation of FreeBSD-7.0 o amd64/122549 amd64 7.0-RELEASE-amd64-bootonly.iso doesn't work w/ serial o amd64/122468 amd64 Compile problems after upgrading to 7.0 o amd64/122174 amd64 [panic] 7.0 no longer includes "device atpic" so fails o amd64/121590 amd64 [est] [p4tcc] [acpi_perf] setting dev.cpu.0.freq somet o amd64/120202 amd64 [amd64] [patch] [panic] kernel panic at start_all_aps, o amd64/119591 amd64 [amd64] [patch] time_t on 64-bit architecture o amd64/117418 amd64 [hang] FreeBSD 6.2 crash on amd64 4400+ with ssh o amd64/117316 amd64 [acpi] ACPI lockups on SuperMicro motherboard o amd64/117296 amd64 [ata] I don`t see second SATA IDE on VIA VT8237A a amd64/117186 amd64 [modules] kldload Unsupported file type on STABLE amd6 s amd64/116689 amd64 [request] support for MSI K9MM-V o amd64/116620 amd64 [hang] ifconfig spins when creating carp(4) device on o amd64/116322 amd64 [panic] At start fsck on current, the system panics o amd64/116159 amd64 [panic] Panic while debugging on CURRENT s amd64/115815 amd64 [ata] [request] Gigabyte GA-M61P-S3 Motherboard unsupp o amd64/115581 amd64 [Makefile] [patch] -mfancy-math-387 has no effect o amd64/115194 amd64 LCD screen remains blank after Dell XPS M1210 lid is c o amd64/114270 amd64 [cpufreq] cpufreq doesnt work when compiled in to kern o amd64/112222 amd64 [libc] 32-bit libc incorrectly converts some FP number o amd64/110599 amd64 [geli] geli attach to gmirror device hangs and cannot s amd64/108861 amd64 [nve] nve(4) driver on FreeBSD 6.2 AMD64 does not work o amd64/106186 amd64 [panic] panic in swap_pager_swap_init (amd64/smp/6.2-p f amd64/105531 amd64 [ata] gigabyte GA-M51GM-S2G / nVidia nForce 430 - does f amd64/105514 amd64 [boot] FreeBSD/amd64 - Fails to boot on HP Pavilion dv o amd64/102716 amd64 ex with no argument in an xterm gets SIGSEGV o amd64/97337 amd64 [dri] xorg reboots system if dri module is enabled o amd64/95888 amd64 [ata] kernel: ad2: TIMEOUT - WRITE_DMA retrying on HP o amd64/94677 amd64 [panic] panic in amd64 install at non-root user creati o amd64/93961 amd64 [busdma] Problem in bounce buffer handling in sys/amd6 o amd64/92337 amd64 [em] FreeBSD 6.0 Release Intel Pro 1000 MT em1 no buff o amd64/91405 amd64 [asr] [panic] Kernel panic caused by asr on 6.0-amd64 o amd64/89501 amd64 [install] System crashes on install using ftp on local o amd64/88790 amd64 [panic] kernel panic on first boot (after the FreeBSD o amd64/88568 amd64 [panic] 6.0-RELEASE install cd does not boot with usb o amd64/87689 amd64 [powerd] [hang] powerd hangs SMP Opteron 244 5-STABLE o amd64/87316 amd64 [vge] "vge0 attach returned 6" on FreeBSD 6.0-RC1 amd6 o amd64/87305 amd64 [smp] Dual Opteron / FreeBSD 5 & 6 / powerd results in s amd64/85273 amd64 [install] FreeBSD (NetBSD or OpenBSD) not install on l o amd64/78406 amd64 [panic]AMD64 w/ SCSI: issue 'rm -r /usr/ports' and sys o amd64/76136 amd64 [hang] system halts before reboot o amd64/74747 amd64 [panic] System panic on shutdown when process will not 93 problems total. From owner-freebsd-amd64@FreeBSD.ORG Tue Aug 25 17:40:01 2009 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B99A81065690 for ; Tue, 25 Aug 2009 17:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 942448FC18 for ; Tue, 25 Aug 2009 17:40:01 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7PHe1Ms044181 for ; Tue, 25 Aug 2009 17:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7PHe1iH044180; Tue, 25 Aug 2009 17:40:01 GMT (envelope-from gnats) Resent-Date: Tue, 25 Aug 2009 17:40:01 GMT Resent-Message-Id: <200908251740.n7PHe1iH044180@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Frank Sheiness Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70053106568B for ; Tue, 25 Aug 2009 17:31:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 5E6528FC26 for ; Tue, 25 Aug 2009 17:31:11 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7PHVB17094489 for ; Tue, 25 Aug 2009 17:31:11 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n7PHVB4o094488; Tue, 25 Aug 2009 17:31:11 GMT (envelope-from nobody) Message-Id: <200908251731.n7PHVB4o094488@www.freebsd.org> Date: Tue, 25 Aug 2009 17:31:11 GMT From: Frank Sheiness To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 X-Mailman-Approved-At: Tue, 25 Aug 2009 17:44:23 +0000 Cc: Subject: amd64/138177: FreeBSD crashing repeatedly in pcpu.h:195 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2009 17:40:01 -0000 >Number: 138177 >Category: amd64 >Synopsis: FreeBSD crashing repeatedly in pcpu.h:195 >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 25 17:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Frank Sheiness >Release: 7.2-STABLE >Organization: >Environment: FreeBSD ROUTER 7.2-STABLE FreeBSD 7.2-STABLE #0: Mon Aug 24 20:47:37 UTC 2009 root@BUILD-7.0:/usr/obj/usr/src2/src/sys/BUILD amd64 >Description: We have FreeBSD servers with this code deployed at several sites. It is only crashing at one site, but on both servers (original and spare) at that site. After booting, the server is fine until the interrupts start climbing on the CPU. Eventually, the server panics. It can take a few minutes or hours before it crashes. We suspect some kind of traffic is triggering it. We blocked everything that has an ether type other than IPv4 or ARP on the switch and it hasn't crashed since (around 12 hours). Here is the backtrace: Unread portion of the kernel message buffer: ge not present instruction pointer = 0x8:0xffffffff801b8f68 stack pointer = 0x10:0xffffff800002d560 frame pointer = 0x10:0x14cb code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 15 (swi1: net) trap number = 12 panic: page fault cpuid = 0 Uptime: 20m47s Physical memory: 1004 MB Dumping 1181 MB: 1166 1150 1134 1118 1102 1086 1070 1054 1038 1022 1006 990 974 958 942 926 910 894 878 862 846 830 814 798 782 766 750 734 718 702 686 670 654 638 622 606 590 574 558 542 526 510 494 478 462 446 430 414 398 382 366 350 334 318 302 286 270 254 238 222 206 190 174 158 142 126 110 94 78 62 46 30 14 #0 doadump () at pcpu.h:195 195 __asm __volatile("movq %%gs:0,%0" : "=r" (td)); (kgdb) where #0 doadump () at pcpu.h:195 #1 0x0000000000000004 in ?? () #2 0xffffffff804067fe in boot (howto=260) at /usr/src2/src/sys/kern/kern_shutdown.c:418 #3 0xffffffff80406c12 in panic (fmt=0x104
) at /usr/src2/src/sys/kern/kern_shutdown.c:574 #4 0xffffffff806a9f73 in trap_fatal (frame=0xffffff0001191390, eva=Variable "eva" is not available. ) at /usr/src2/src/sys/amd64/amd64/trap.c:756 #5 0xffffffff806aa345 in trap_pfault (frame=0xffffff800002d4b0, usermode=0) at /usr/src2/src/sys/amd64/amd64/trap.c:672 #6 0xffffffff806aac84 in trap (frame=0xffffff800002d4b0) at /usr/src2/src/sys/amd64/amd64/trap.c:443 #7 0xffffffff8068f73e in calltrap () at /usr/src2/src/sys/amd64/amd64/exception.S:218 #8 0xffffffff801b8f68 in nat_new (fin=0xffffff800002d700, np=Variable "np" is not available. ) at /usr/src2/src/sys/contrib/ipfilter/netinet/ip_nat.c:2577 #9 0xffffffff801bcac0 in fr_checknatout (fin=0xffffff800002d700, passp=0xffffff800002d7ec) at /usr/src2/src/sys/contrib/ipfilter/netinet/ip_nat.c:3828 #10 0xffffffff801b02aa in fr_check (ip=0x2, hlen=Variable "hlen" is not available. ) at /usr/src2/src/sys/contrib/ipfilter/netinet/fil.c:2624 #11 0xffffffff804d58a1 in pfil_run_hooks (ph=Variable "ph" is not available. ) at /usr/src2/src/sys/net/pfil.c:78 #12 0xffffffff8051d64d in ip_output (m=0xffffff00013b6100, opt=Variable "opt" is not available. ) at /usr/src2/src/sys/netinet/ip_output.c:443 #13 0xffffffff8051a63d in ip_forward (m=0xffffff00013b6100, srcrt=Variable "srcrt" is not available. ) at /usr/src2/src/sys/netinet/ip_input.c:1366 #14 0xffffffff8051be06 in ip_input (m=0xffffff00013b6100) at /usr/src2/src/sys/netinet/ip_input.c:609 #15 0xffffffff804c8561 in ether_demux (ifp=0xffffff000c771000, m=0xffffff00013b6100) at /usr/src2/src/sys/net/if_ethersubr.c:834 #16 0xffffffff804c87de in ether_input (ifp=0xffffff000c771000, m=0xffffff00013b6100) at /usr/src2/src/sys/net/if_ethersubr.c:692 #17 0xffffffff804c8486 in ether_demux (ifp=0xffffff00011a9800, m=0xffffff00013b6100) at /usr/src2/src/sys/net/if_ethersubr.c:743 #18 0xffffffff804c87de in ether_input (ifp=0xffffff00011a9800, m=0xffffff00013b6100) at /usr/src2/src/sys/net/if_ethersubr.c:692 #19 0xffffffff80257b02 in em_rxeof (adapter=0xffffff8000211000, count=2) at /usr/src2/src/sys/dev/e1000/if_em.c:4539 #20 0xffffffff80259c19 in em_poll (ifp=0xffffff00011a9800, cmd=Variable "cmd" is not available. ) at /usr/src2/src/sys/dev/e1000/if_em.c:1594 #21 0xffffffff803fb1ad in netisr_poll () at /usr/src2/src/sys/kern/kern_poll.c:432 #22 0xffffffff804d3c1a in swi_net (dummy=Variable "dummy" is not available. ) at /usr/src2/src/sys/net/netisr.c:254 #23 0xffffffff803e22a0 in ithread_loop (arg=0xffffff000117dae0) at /usr/src2/src/sys/kern/kern_intr.c:1126 #24 0xffffffff803de94f in fork_exit ( callout=0xffffffff803e2130 , arg=0xffffff000117dae0, frame=0xffffff800002dc80) at /usr/src2/src/sys/kern/kern_fork.c:811 #25 0xffffffff8068fb1e in fork_trampoline () at /usr/src2/src/sys/amd64/amd64/exception.S:554 #26 0x0000000000000000 in ?? () #27 0x0000000000000000 in ?? () #28 0x0000000000000001 in ?? () #29 0x0000000000000000 in ?? () #30 0x0000000000000000 in ?? () #31 0x0000000000000000 in ?? () #32 0x0000000000000000 in ?? () #33 0x0000000000000000 in ?? () #34 0x0000000000000000 in ?? () #35 0x0000000000000000 in ?? () #36 0x0000000000000000 in ?? () #37 0x0000000000000000 in ?? () #38 0x0000000000000000 in ?? () #39 0x0000000000000000 in ?? () #40 0x0000000000000000 in ?? () #41 0x0000000000000000 in ?? () #42 0x0000000000000000 in ?? () #43 0x0000000000000000 in ?? () #44 0x0000000000000000 in ?? () #45 0x0000000000000000 in ?? () #46 0x0000000000000000 in ?? () #47 0x0000000000000000 in ?? () #48 0x0000000000000000 in ?? () #49 0x0000000000000000 in ?? () #50 0x0000000000af4000 in ?? () #51 0xffffffff80981cc0 in tdg_maxid () #52 0xffffffff8098e4c0 in tdq_cpu () #53 0xffffffff8098e4c0 in tdq_cpu () #54 0xffffff0001191390 in ?? () #55 0xffffff00011916e0 in ?? () #56 0xffffff800002cd08 in ?? () #57 0x0000000000000000 in ?? () #58 0xffffffff8042e2d8 in sched_switch (td=0xffffffff803e2130, newtd=0x80054b1d0, flags=Variable "flags" is not available. ) at /usr/src2/src/sys/kern/sched_ule.c:1938 #59 0x0000000000000000 in ?? () #60 0x0000000000000000 in ?? () #61 0x0000000000000000 in ?? () #62 0x0000000000000000 in ?? () #63 0x0000000000000000 in ?? () #64 0x0000000000000000 in ?? () #65 0x0000000000000000 in ?? () #66 0x0000000000000000 in ?? () #67 0x0000000000000000 in ?? () #68 0x0000000000000000 in ?? () #69 0x0000000000000000 in ?? () #70 0x0000000000000000 in ?? () #71 0x0000000000000000 in ?? () #72 0x0000000000000000 in ?? () #73 0x0000000000000000 in ?? () #74 0x0000000000000000 in ?? () #75 0x0000000000000000 in ?? () #76 0x0000000000000000 in ?? () #77 0x0000000000000000 in ?? () #78 0x0000000000000000 in ?? () #79 0x0000000000000000 in ?? () #80 0x0000000000000000 in ?? () #81 0x0000000000000000 in ?? () #82 0x0000000000000000 in ?? () #83 0x0000000000000000 in ?? () #84 0x0000000000000000 in ?? () #85 0x0000000000000000 in ?? () #86 0x0000000000000000 in ?? () #87 0x0000000000000000 in ?? () #88 0x0000000000000000 in ?? () #89 0x0000000000000000 in ?? () #90 0x0000000000000000 in ?? () #91 0x0000000000000000 in ?? () #92 0x0000000000000000 in ?? () #93 0x0000000000000000 in ?? () #94 0x0000000000000000 in ?? () #95 0x0000000000000000 in ?? () #96 0x0000000000000000 in ?? () #97 0x0000000000000000 in ?? () #98 0x0000000000000000 in ?? () #99 0x0000000000000000 in ?? () #100 0x0000000000000000 in ?? () #101 0x0000000000000000 in ?? () #102 0x0000000000000000 in ?? () #103 0x0000000000000000 in ?? () #104 0x0000000000000000 in ?? () #105 0x0000000000000000 in ?? () #106 0x0000000000000000 in ?? () #107 0x0000000000000000 in ?? () #108 0x0000000000000000 in ?? () #109 0x0000000000000000 in ?? () #110 0x0000000000000000 in ?? () #111 0x0000000000000000 in ?? () #112 0x0000000000000000 in ?? () #113 0x0000000000000000 in ?? () #114 0x0000000000000000 in ?? () #115 0x0000000000000000 in ?? () #116 0x0000000000000000 in ?? () #117 0x0000000000000000 in ?? () #118 0x0000000000000000 in ?? () #119 0x0000000000000000 in ?? () #120 0x0000000000000000 in ?? () #121 0x0000000000000000 in ?? () #122 0x0000000000000000 in ?? () #123 0x0000000000000000 in ?? () #124 0x0000000000000000 in ?? () #125 0x0000000000000000 in ?? () #126 0x0000000000000000 in ?? () Cannot access memory at address 0xffffff800002e000 >How-To-Repeat: Unknown >Fix: Unknown >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-amd64@FreeBSD.ORG Tue Aug 25 18:01:19 2009 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76CC41065691; Tue, 25 Aug 2009 18:01:19 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4E40E8FC1C; Tue, 25 Aug 2009 18:01:19 +0000 (UTC) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7PI1J0U072146; Tue, 25 Aug 2009 18:01:19 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7PI1I27072142; Tue, 25 Aug 2009 18:01:18 GMT (envelope-from gavin) Date: Tue, 25 Aug 2009 18:01:18 GMT Message-Id: <200908251801.n7PI1I27072142@freefall.freebsd.org> To: office@adaptcom.ro, gavin@FreeBSD.org, freebsd-amd64@FreeBSD.org, gavin@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: amd64/136884: [install] Try to install FreeBSD 7.2 amd64 on a proliant DL360 G4 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2009 18:01:19 -0000 Synopsis: [install] Try to install FreeBSD 7.2 amd64 on a proliant DL360 G4 State-Changed-From-To: open->feedback State-Changed-By: gavin State-Changed-When: Tue Aug 25 18:00:38 UTC 2009 State-Changed-Why: To submitter: Could you please try the patch at http://people.freebsd.org/~scottl/ciss_p410.diff and see if that fixes things for you? Responsible-Changed-From-To: freebsd-amd64->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Tue Aug 25 18:00:38 UTC 2009 Responsible-Changed-Why: Track http://www.freebsd.org/cgi/query-pr.cgi?pr=136884 From owner-freebsd-amd64@FreeBSD.ORG Tue Aug 25 18:58:04 2009 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D714106568B; Tue, 25 Aug 2009 18:58:04 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7DD768FC21; Tue, 25 Aug 2009 18:58:04 +0000 (UTC) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7PIw4IU022675; Tue, 25 Aug 2009 18:58:04 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7PIw49k022671; Tue, 25 Aug 2009 18:58:04 GMT (envelope-from gavin) Date: Tue, 25 Aug 2009 18:58:04 GMT Message-Id: <200908251858.n7PIw49k022671@freefall.freebsd.org> To: syndesis@gmail.com, gavin@FreeBSD.org, freebsd-amd64@FreeBSD.org, gavin@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: kern/138177: [ipfilter] FreeBSD crashing repeatedly in ip_nat.c:2577 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2009 18:58:04 -0000 Old Synopsis: FreeBSD crashing repeatedly in pcpu.h:195 New Synopsis: [ipfilter] FreeBSD crashing repeatedly in ip_nat.c:2577 State-Changed-From-To: open->feedback State-Changed-By: gavin State-Changed-When: Tue Aug 25 18:19:03 UTC 2009 State-Changed-Why: To submitter: Firstly, can you give me some details about the servers? What services do they provide? You appear to be using the ipfilter firewall, what sort of rules are in use? (general info is fine, don't need the exact ruleset). Also, do you have a core dump from this panic in /var/crash? If so, can you run the following: kgdb /boot/kernel/kernel.symbols /var/crash/vmcore.X then give the "bt" command to obtain a trace? Then, select the "ip_output" frame with (e.g.) "f 12" and give the commands "p m" and "p *m". Thanks! Responsible-Changed-From-To: freebsd-amd64->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Tue Aug 25 18:19:03 UTC 2009 Responsible-Changed-Why: Track http://www.freebsd.org/cgi/query-pr.cgi?pr=138177 From owner-freebsd-amd64@FreeBSD.ORG Wed Aug 26 19:40:02 2009 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6378106568F for ; Wed, 26 Aug 2009 19:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A32968FC2C for ; Wed, 26 Aug 2009 19:40:02 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7QJe1ph046288 for ; Wed, 26 Aug 2009 19:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7QJe1AB046287; Wed, 26 Aug 2009 19:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 26 Aug 2009 19:40:01 GMT Resent-Message-Id: <200908261940.n7QJe1AB046287@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitriy Demidov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CB9E106568C for ; Wed, 26 Aug 2009 19:34:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id EFDF38FC25 for ; Wed, 26 Aug 2009 19:34:31 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7QJYVal099833 for ; Wed, 26 Aug 2009 19:34:31 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n7QJYVR6099832; Wed, 26 Aug 2009 19:34:31 GMT (envelope-from nobody) Message-Id: <200908261934.n7QJYVR6099832@www.freebsd.org> Date: Wed, 26 Aug 2009 19:34:31 GMT From: Dmitriy Demidov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 X-Mailman-Approved-At: Wed, 26 Aug 2009 19:52:28 +0000 Cc: Subject: amd64/138210: [acpi] acer aspire 5536 ACPI problems (S3, brightness, hotkeys) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2009 19:40:02 -0000 >Number: 138210 >Category: amd64 >Synopsis: [acpi] acer aspire 5536 ACPI problems (S3, brightness, hotkeys) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 26 19:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dmitriy Demidov >Release: FreeBSD 8.0-BETA3 >Organization: >Environment: FreeBSD dune.local.home 8.0-BETA3 FreeBSD 8.0-BETA3 #0: Tue Aug 25 21:01:51 EEST 2009 root@dune.local.home:/usr/obj/usr/src/sys/CURRENT amd64 >Description: I'm using Acer aspire 5536 notebook. I have several ACPI related issues: - hotkeys not working (volume +/-, screen brightness +/-, Wi-Fi on/off, sleep button). - I'm unabled to use S3 power saving mode. If I do S3 without hw.acpi.reset_video then computer wakes up but screen is black - backlight is off. - I'm unabled to use S3 power saving mode. If I do S3 with hw.acpi.reset_video=1 then computer wakes up, backlight is on but console no do not works (no output to monitor). - Battery status showing "Remaining time: unknown". Here can be found additional debug info http://acer5536.times.lv/acpi.tar.gz Archive contains: acer_aspire_5536(LX.PAW0C.024).asl (acpidump -dt) devinfo_rv.txt (devinfo -rv) dmesg_verbose_acpi_enabled.txt (dmesg in verbose) sysctl-a-grep-hw.acpi.txt (sysctl -a | grep hw.acpi) >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-amd64@FreeBSD.ORG Wed Aug 26 23:00:09 2009 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55D23106568B for ; Wed, 26 Aug 2009 23:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 27B778FC24 for ; Wed, 26 Aug 2009 23:00:09 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7QN09eO051370 for ; Wed, 26 Aug 2009 23:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7QN09nO051369; Wed, 26 Aug 2009 23:00:09 GMT (envelope-from gnats) Resent-Date: Wed, 26 Aug 2009 23:00:09 GMT Resent-Message-Id: <200908262300.n7QN09nO051369@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "James R. Van Artsdalen" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62EC7106568B for ; Wed, 26 Aug 2009 22:59:47 +0000 (UTC) (envelope-from james@jrv.org) Received: from mail.jrv.org (rrcs-24-73-246-106.sw.biz.rr.com [24.73.246.106]) by mx1.freebsd.org (Postfix) with ESMTP id 0B7D48FC21 for ; Wed, 26 Aug 2009 22:59:46 +0000 (UTC) Received: from bigtex.housenet.jrv (localhost [127.0.0.1]) by mail.jrv.org (8.14.3/8.14.3) with ESMTP id n7QMdeOB045329 for ; Wed, 26 Aug 2009 17:39:40 -0500 (CDT) (envelope-from james@bigtex.housenet.jrv) Received: (from root@localhost) by bigtex.housenet.jrv (8.14.3/8.14.3/Submit) id n7QMdeHV045328; Wed, 26 Aug 2009 17:39:40 -0500 (CDT) (envelope-from james) Message-Id: <200908262239.n7QMdeHV045328@bigtex.housenet.jrv> Date: Wed, 26 Aug 2009 17:39:40 -0500 (CDT) From: "James R. Van Artsdalen" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 X-Mailman-Approved-At: Wed, 26 Aug 2009 23:20:34 +0000 Cc: Subject: amd64/138220: [patch] FreeBSD/amd64 can't see all system memory X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "James R. Van Artsdalen" List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2009 23:00:09 -0000 >Number: 138220 >Category: amd64 >Synopsis: [patch] FreeBSD/amd64 can't see all system memory >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 26 23:00:08 UTC 2009 >Closed-Date: >Last-Modified: >Originator: James R. Van Artsdalen >Release: FreeBSD 9.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD pygmy.housenet.jrv 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r196500M: Wed Aug 26 11:28:43 CDT 2009 james@pygmy.housenet.jrv:/usr/src/sys/amd64/compile/GENERIC amd64 >Description: Two related bugs: 1. FreeBSD erroneously assumes that the BIOS E820 system memory map data is non-descending. The Zotac GF9300-D-E is an example of a system where this is not true. 2. There is a typo in code that detects overlaps in regions reported by E820. No action is in fact taken right now on amd64. i386 may have bug #1 but not #2. With this patch "available memory" goes from 2689 MB to 7605 MB on the Zotac GF9300-D-E. >How-To-Repeat: Boot amd64 on Zotac GF9300-D-E motherboard with 8GB of RAM. Less than 3GB is reported. >Fix: No user fix. The patch sorts smap enteries on the base address and ignores overlapping regions. --- smap.pat begins here --- Index: sys/amd64/amd64/machdep.c =================================================================== --- sys/amd64/amd64/machdep.c (revision 196500) +++ sys/amd64/amd64/machdep.c (working copy) @@ -1236,6 +1236,19 @@ smapend = (struct bios_smap *)((uintptr_t)smapbase + smapsize); for (smap = smapbase; smap < smapend; smap++) { + struct bios_smap *sp, *low = smap; + + for (sp = smap + 1; sp < smapend; sp++) + if (low->base > sp->base) + low = sp; + if (low != smap) { + struct bios_smap ts; + + ts = *smap; + *smap = *low; + *low = ts; + } + if (boothowto & RB_VERBOSE) printf("SMAP type=%02x base=%016lx len=%016lx\n", smap->type, smap->base, smap->length); @@ -1250,10 +1263,12 @@ if (smap->base < physmap[i + 1]) { if (boothowto & RB_VERBOSE) printf( - "Overlapping or non-monotonic memory region, ignoring second region\n"); - continue; + "Overlapping memory region, ignoring second region\n"); + break; } } + if (i <= physmap_idx) + continue; if (smap->base == physmap[physmap_idx + 1]) { physmap[physmap_idx + 1] += smap->length; --- smap.pat ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-amd64@FreeBSD.ORG Thu Aug 27 03:54:29 2009 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0ACB3106564A; Thu, 27 Aug 2009 03:54:29 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D71E08FC29; Thu, 27 Aug 2009 03:54:28 +0000 (UTC) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7R3sSlL053898; Thu, 27 Aug 2009 03:54:28 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7R3sSU0053894; Thu, 27 Aug 2009 03:54:28 GMT (envelope-from linimon) Date: Thu, 27 Aug 2009 03:54:28 GMT Message-Id: <200908270354.n7R3sSU0053894@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-amd64@FreeBSD.org, freebsd-acpi@FreeBSD.org From: linimon@FreeBSD.org X-Mailman-Approved-At: Thu, 27 Aug 2009 04:22:46 +0000 Cc: Subject: Re: amd64/138210: [acpi] acer aspire 5536 ACPI problems (S3, brightness, hotkeys) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2009 03:54:29 -0000 Synopsis: [acpi] acer aspire 5536 ACPI problems (S3, brightness, hotkeys) Responsible-Changed-From-To: freebsd-amd64->freebsd-acpi Responsible-Changed-By: linimon Responsible-Changed-When: Thu Aug 27 03:54:06 UTC 2009 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=138210 From owner-freebsd-amd64@FreeBSD.ORG Thu Aug 27 15:10:44 2009 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43BD7106568E; Thu, 27 Aug 2009 15:10:44 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 19F5C8FC41; Thu, 27 Aug 2009 15:10:44 +0000 (UTC) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7RFAhgX071114; Thu, 27 Aug 2009 15:10:43 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7RFAhtV071100; Thu, 27 Aug 2009 15:10:43 GMT (envelope-from gavin) Date: Thu, 27 Aug 2009 15:10:43 GMT Message-Id: <200908271510.n7RFAhtV071100@freefall.freebsd.org> To: kumark@vmware.com, gavin@FreeBSD.org, freebsd-amd64@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: amd64/128978: [install] FreeBSD 6.3 64-bit panics at boot time during installation on HP DL580 G5 with 128GB physical memory X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2009 15:10:44 -0000 Synopsis: [install] FreeBSD 6.3 64-bit panics at boot time during installation on HP DL580 G5 with 128GB physical memory State-Changed-From-To: feedback->open State-Changed-By: gavin State-Changed-When: Thu Aug 27 14:51:32 UTC 2009 State-Changed-Why: Feedback was received on this some time ago. Although FreeBSD 7 is happy with 128G RAM, FreeBSD 6.x cannot boot. I don't know if setting something like 'options KVA_PAGES=512' in the kernel may help? It might be worth trying. http://www.freebsd.org/cgi/query-pr.cgi?pr=128978 From owner-freebsd-amd64@FreeBSD.ORG Fri Aug 28 23:06:58 2009 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 142C1106566B; Fri, 28 Aug 2009 23:06:58 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id E23F68FC1C; Fri, 28 Aug 2009 23:06:57 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.3/8.14.3) with ESMTP id n7SN6vun063090; Fri, 28 Aug 2009 19:06:57 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.3/8.14.3/Submit) id n7SN6vKF063080; Fri, 28 Aug 2009 23:06:57 GMT (envelope-from tinderbox@freebsd.org) Date: Fri, 28 Aug 2009 23:06:57 GMT Message-Id: <200908282306.n7SN6vKF063080@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [releng_8 tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Aug 2009 23:06:58 -0000 TB --- 2009-08-28 21:20:38 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-08-28 21:20:38 - starting RELENG_8 tinderbox run for amd64/amd64 TB --- 2009-08-28 21:20:38 - cleaning the object tree TB --- 2009-08-28 21:22:07 - cvsupping the source tree TB --- 2009-08-28 21:22:07 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/RELENG_8/amd64/amd64/supfile TB --- 2009-08-28 21:27:45 - building world TB --- 2009-08-28 21:27:45 - MAKEOBJDIRPREFIX=/obj TB --- 2009-08-28 21:27:45 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-08-28 21:27:45 - TARGET=amd64 TB --- 2009-08-28 21:27:45 - TARGET_ARCH=amd64 TB --- 2009-08-28 21:27:45 - TZ=UTC TB --- 2009-08-28 21:27:45 - __MAKE_CONF=/dev/null TB --- 2009-08-28 21:27:45 - cd /src TB --- 2009-08-28 21:27:45 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 28 21:27:46 UTC 2009 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries >>> World build completed on Fri Aug 28 22:57:29 UTC 2009 TB --- 2009-08-28 22:57:29 - generating LINT kernel config TB --- 2009-08-28 22:57:29 - cd /src/sys/amd64/conf TB --- 2009-08-28 22:57:29 - /usr/bin/make -B LINT TB --- 2009-08-28 22:57:29 - building LINT kernel TB --- 2009-08-28 22:57:29 - MAKEOBJDIRPREFIX=/obj TB --- 2009-08-28 22:57:29 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-08-28 22:57:29 - TARGET=amd64 TB --- 2009-08-28 22:57:29 - TARGET_ARCH=amd64 TB --- 2009-08-28 22:57:29 - TZ=UTC TB --- 2009-08-28 22:57:29 - __MAKE_CONF=/dev/null TB --- 2009-08-28 22:57:29 - cd /src TB --- 2009-08-28 22:57:29 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Aug 28 22:57:29 UTC 2009 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -DGPROF -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror -pg -mprofiler-epilogue /src/sys/net/ieee8023ad_lacp.c cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -DGPROF -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror -pg -mprofiler-epilogue /src/sys/net/if.c cc1: warnings being treated as errors /src/sys/net/if.c: In function 'ifnet_byindex': /src/sys/net/if.c:203: warning: implicit declaration of function 'IFNET_RLOCK_NOSLEEP' /src/sys/net/if.c:203: warning: nested extern declaration of 'IFNET_RLOCK_NOSLEEP' /src/sys/net/if.c:205: warning: implicit declaration of function 'IFNET_RUNLOCK_NOSLEEP' /src/sys/net/if.c:205: warning: nested extern declaration of 'IFNET_RUNLOCK_NOSLEEP' *** Error code 1 Stop in /obj/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-08-28 23:06:57 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-08-28 23:06:57 - ERROR: failed to build lint kernel TB --- 2009-08-28 23:06:57 - 4296.84 user 695.10 system 6379.09 real http://tinderbox.des.no/tinderbox-releng_8-RELENG_8-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Sat Aug 29 23:10:02 2009 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B885E1065673 for ; Sat, 29 Aug 2009 23:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8F9F38FC17 for ; Sat, 29 Aug 2009 23:10:02 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7TNA2wt075694 for ; Sat, 29 Aug 2009 23:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7TNA2Ld075688; Sat, 29 Aug 2009 23:10:02 GMT (envelope-from gnats) Resent-Date: Sat, 29 Aug 2009 23:10:02 GMT Resent-Message-Id: <200908292310.n7TNA2Ld075688@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Peter Jeremy Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85DD0106566C for ; Sat, 29 Aug 2009 23:03:36 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail12.syd.optusnet.com.au (mail12.syd.optusnet.com.au [211.29.132.193]) by mx1.freebsd.org (Postfix) with ESMTP id 1E5408FC15 for ; Sat, 29 Aug 2009 23:03:35 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c122-106-217-45.belrs3.nsw.optusnet.com.au [122.106.217.45]) by mail12.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n7TN3XVZ025931 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 30 Aug 2009 09:03:34 +1000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id n7TN3WV2081444; Sun, 30 Aug 2009 09:03:32 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id n7TN3WLe081443; Sun, 30 Aug 2009 09:03:32 +1000 (EST) (envelope-from peter) Message-Id: <200908292303.n7TN3WLe081443@server.vk2pj.dyndns.org> Date: Sun, 30 Aug 2009 09:03:32 +1000 (EST) From: Peter Jeremy To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: amd64/138318: [patch] select(2) in i386 emulation can overwrite user data X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Peter Jeremy List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Aug 2009 23:10:02 -0000 >Number: 138318 >Category: amd64 >Synopsis: [patch] select(2) in i386 emulation can overwrite user data >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Aug 29 23:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Peter Jeremy >Release: FreeBSD 8.0-BETA2 amd64 >Organization: n/a >Environment: System: FreeBSD server.vk2pj.dyndns.org 8.0-BETA2 FreeBSD 8.0-BETA2 #8: Sat Aug 8 21:54:17 EST 2009 root@server.vk2pj.dyndns.org:/var/obj/usr/src/sys/server amd64 Code inspection shows that this bug still exists in 9-current. >Description: The select() wrapper for freebsd32 and linux32 emulation does not wrap the fd_set arguments. fd_set is an array of fd_mask - which is 'long' on all architectures. This means that kern_select() on 64-bit kernels expects that the fd_set arguments are arrays of 8-byte objects whilst 32-bit code passes arrays of 4-byte objects. As a result, the kernel can overwrite 4-bytes more than userland expects. This obviously breaks 32-bit sshd with PrivilegeSeparation enabled but may have other less-obvious breakage. >How-To-Repeat: Run a FreeBSD/i386 sshd on FreeBSD/amd64: server# file /tank/aspire/usr/sbin/sshd /tank/aspire/usr/sbin/sshd: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.0 (800096), stripped server# /tank/aspire/usr/sbin/sshd -p 8022 -d -o UsePrivilegeSeparation=yes debug1: sshd version OpenSSH_5.1p1 FreeBSD-20080801 ... debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT buffer_put_bignum2_ret: BN too small buffer_put_bignum2: buffer error debug1: do_cleanup debug1: do_cleanup server# As a more contrived (but more obvious) example, compile the following code on i386 and run it on amd64: ---- 8-< ---- 8-< ---- 8-< ---- 8-< ---- 8-< ---- 8-< ---- 8-< ---- #include #include #include #include int main(void) { fd_set *fd, *rd, *wr, *ex; int r; fd = malloc(sizeof(fd_mask) * 3 * 4); memset(fd, 0xa5, sizeof(fd_mask) * 3 * 4); rd = (fd_set *)&fd->fds_bits[1]; wr = (fd_set *)&fd->fds_bits[5]; ex = (fd_set *)&fd->fds_bits[9]; rd->fds_bits[0] = wr->fds_bits[0] = ex->fds_bits[0] = 0; FD_SET(0, rd); FD_SET(1, wr); FD_SET(2, wr); FD_SET(0, ex); FD_SET(1, ex); FD_SET(2, ex); printf("read: %08lx %08lx %08lx %08lx\n", fd->fds_bits[0], fd->fds_bits[1], fd->fds_bits[2], fd->fds_bits[3]); printf("write: %08lx %08lx %08lx %08lx\n", fd->fds_bits[4], fd->fds_bits[5], fd->fds_bits[6], fd->fds_bits[7]); printf("except: %08lx %08lx %08lx %08lx\n", fd->fds_bits[8], fd->fds_bits[9], fd->fds_bits[10], fd->fds_bits[11]); r = select(3, rd, wr, ex, NULL); printf("select returns %d:\n", r); printf("read: %08lx %08lx %08lx %08lx\n", fd->fds_bits[0], fd->fds_bits[1], fd->fds_bits[2], fd->fds_bits[3]); printf("write: %08lx %08lx %08lx %08lx\n", fd->fds_bits[4], fd->fds_bits[5], fd->fds_bits[6], fd->fds_bits[7]); printf("except: %08lx %08lx %08lx %08lx\n", fd->fds_bits[8], fd->fds_bits[9], fd->fds_bits[10], fd->fds_bits[11]); return 0; } ---- 8-< ---- 8-< ---- 8-< ---- 8-< ---- 8-< ---- 8-< ---- 8-< ---- server# /tank/aspire/root/seltest read: a5a5a5a5 00000001 a5a5a5a5 a5a5a5a5 write: a5a5a5a5 00000006 a5a5a5a5 a5a5a5a5 except: a5a5a5a5 00000007 a5a5a5a5 a5a5a5a5 read: a5a5a5a5 00000000 00000000 a5a5a5a5 write: a5a5a5a5 00000006 00000000 a5a5a5a5 except: a5a5a5a5 00000000 00000000 a5a5a5a5 server# >Fix: Either: 1) Change the definition of fd_mask from ulong to uint32 (at least within the kernel) 2) Wrap the fd_set arguments on freebsd32 and linux for 64-bit kernels. The latter may appear stylistically cleaner but requires significantly more effort because the fd_set copyin()s are all currently done within kern_select() and are non-trivial blocks of code to optimise performance whilst minimising kvm usage. The attached patch therefore implements the former behaviour: Index: select.h =================================================================== RCS file: /usr/ncvs/src/sys/sys/select.h,v retrieving revision 1.20 diff -u -r1.20 select.h --- select.h 6 Jan 2006 22:12:46 -0000 1.20 +++ select.h 29 Aug 2009 23:00:08 -0000 @@ -39,7 +39,7 @@ #include #include -typedef unsigned long __fd_mask; +typedef __uint32_t __fd_mask; #if __BSD_VISIBLE typedef __fd_mask fd_mask; #endif >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-amd64@FreeBSD.ORG Sat Aug 29 23:34:58 2009 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AE621065670; Sat, 29 Aug 2009 23:34:58 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail16.syd.optusnet.com.au (mail16.syd.optusnet.com.au [211.29.132.197]) by mx1.freebsd.org (Postfix) with ESMTP id EEF288FC13; Sat, 29 Aug 2009 23:34:57 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c122-106-217-45.belrs3.nsw.optusnet.com.au [122.106.217.45]) by mail16.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n7TNYsRV028324 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 30 Aug 2009 09:34:55 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id n7TNYswP094601; Sun, 30 Aug 2009 09:34:54 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id n7TNYsNA094600; Sun, 30 Aug 2009 09:34:54 +1000 (EST) (envelope-from peter) Date: Sun, 30 Aug 2009 09:34:54 +1000 From: Peter Jeremy To: freebsd-current@freebsd.org, freebsd-amd64@freebsd.org Message-ID: <20090829233454.GA13036@server.vk2pj.dyndns.org> References: <20090824193344.GA34949@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <20090824193344.GA34949@server.vk2pj.dyndns.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: Re: sshd failing in jail X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-amd64@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Aug 2009 23:34:58 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Redirected to amd64 because this is an amd64 kernel bug] On 2009-Aug-25 05:33:44 +1000, Peter Jeremy = wrote: >I am attempting to build an i386 jail on an amd64 box to build >packages for my netbook. The host is running -current from just over >two weeks ago and the jail is -current from early June. The jail was >built by doing a dump|restore of my netbook and then tweaking various >config files to give it a new identity. The jail's devfs is using >"devfsrules_jail" from /etc/default/devfs.rules. > >The jail starts OK but when I attempt to ssh into it, I just get >"Connection closed by ". Turns out this is a bug in the 32-bit select(2) wrapper on 64-bit kernels. The userland fd_set arguments are not wrapped but passed directly to kern_select(). Unfortunately, fd_set is (effectively) an array of longs which means kern_select() assumes fd_set is a multiple of 8-bytes whilst userland assumes it is a multiple of 4 bytes. As a result, the kernel can over-write an extra 4 bytes of user memory. In the case of sshd, this causes part of the RSA host key to be trashed when privilege separation mode is enabled. This bug also affects linux emulation on amd64 and potentially affects any other 64-bit kernels with 32-bit emulation modes. I have raised amd64/138318 to cover it. --=20 Peter Jeremy --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkqZux4ACgkQ/opHv/APuIeYNgCcDkwu+czNYx1NpLgdYxPEcaSB IFsAnRdl65DvrBRiNZL7dK10VisqwEfL =kgvG -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--