From owner-freebsd-hackers Sun Apr 21 12:13:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from viola.sinor.ru (viola.sinor.ru [217.70.106.9]) by hub.freebsd.org (Postfix) with ESMTP id A7A0237B405; Sun, 21 Apr 2002 12:13:16 -0700 (PDT) Received: from tlg2-ppp15.sibnet.ru (tlg2-ppp15.sibnet.ru [217.70.97.126]) by viola.sinor.ru (8.9.3/8.9.3) with ESMTP id CAA05985; Mon, 22 Apr 2002 02:13:13 +0700 Date: Mon, 22 Apr 2002 02:13:12 +0700 (NOVST) From: "Semen A. Ustimenko" X-X-Sender: semenu@def.the.net To: freebsd-hackers@FreeBSD.org Cc: Bill Paul Subject: MIIBUS_MEDIAINIT method Message-ID: <20020422020233.W611-100000@def.the.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! I was just thinking about the purpose of this method... What is it? It used to be used by NIC drivers to add something like AUI beside MII provided media, correct? But it looks like every PHY's driver thinks it must call MEDIAINIT in its attach() routine. So, if there would be two PHY on MII (can this happen?), then the method will be called twice, and some NIC drivers (tx, xl, dc, maybe more) will not behave well. Isn't it reasonable to stop all PHY drivers from calling MEDIAINIT, and call it once per miibus instance in miibus_attach() or miibus_probe() instead? Thanks! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Apr 21 12:25: 6 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by hub.freebsd.org (Postfix) with SMTP id 6277C37B419 for ; Sun, 21 Apr 2002 12:24:54 -0700 (PDT) Received: (qmail 16373 invoked from network); 21 Apr 2002 19:24:44 -0000 Received: from ken.yumyumyum.org (192.168.0.2) by router.yumyumyum.org with SMTP; 21 Apr 2002 19:24:44 -0000 Content-Type: text/plain; charset="us-ascii" From: Kenneth Culver To: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: implementing linux mmap2 syscall Date: Sun, 21 Apr 2002 15:25:08 -0400 X-Mailer: KMail [version 1.4] MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200204211525.08827.culverk@yumyumyum.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, =09I have recently been trying to implement the linux mmap2 syscall into = our=20 linuxulator, and I have run into a little problem.=20 I looked at the code that was used to implement the regular linux_mmap=20 syscall, and I've also looked in the linux kernel at the code that they u= se=20 for mmap and mmap2. Basically this is in the linux kernel: This is what mmap does in linux... static inline unsigned long do_mmap(struct file *file, unsigned long addr= , =09unsigned long len, unsigned long prot, =09unsigned long flag, unsigned long offset) { =09unsigned long ret =3D -EINVAL; =09if ((offset + PAGE_ALIGN(len)) < offset) =09=09goto out; =09if (!(offset & ~PAGE_MASK)) =09=09ret =3D do_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_S= HIFT); out: =09return ret; } This is what mmap2 does: andstatic inline long do_mmap2( =09unsigned long addr, unsigned long len, =09unsigned long prot, unsigned long flags, =09unsigned long fd, unsigned long pgoff) { =09int error =3D -EBADF; =09struct file * file =3D NULL; =09flags &=3D ~(MAP_EXECUTABLE | MAP_DENYWRITE); =09if (!(flags & MAP_ANONYMOUS)) { =09=09file =3D fget(fd); =09=09if (!file) =09=09=09goto out; =09} =09down_write(¤t->mm->mmap_sem); =09error =3D do_mmap_pgoff(file, addr, len, prot, flags, pgoff); =09up_write(¤t->mm->mmap_sem); =09if (file) =09=09fput(file); out: =09return error; } So what it looks like to me is that mmap2 expects an offset that's alread= y=20 page-aligned (I'm not sure if this is the right way to say it), where mma= p=20 doesn't. the FreeBSD code in the linuxulator basically just takes the off= set=20 that is passed in with the linux mmap, and uses that to call FreeBSD's mm= ap=20 (the kernel version, not the one called from userland). So basically I'm=20 kinda stuck as to what to do to implement linux's mmap2. The only thing I= can=20 think of is to implement a FreeBSD "mmap2" that basically assumes that th= e=20 offset passed in is already page aligned or whatever, and just uses it, a= nd=20 then have linux_mmap2() just call the FreeBSD mmap2(). Any ideas? Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Apr 21 14:11: 2 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id D532037B400; Sun, 21 Apr 2002 14:10:57 -0700 (PDT) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.2/8.12.2) with ESMTP id g3LLAhHx053375; Sun, 21 Apr 2002 23:10:44 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: "Semen A. Ustimenko" Cc: freebsd-hackers@FreeBSD.ORG, Bill Paul Subject: Re: MIIBUS_MEDIAINIT method In-Reply-To: Your message of "Mon, 22 Apr 2002 02:13:12 +0700." <20020422020233.W611-100000@def.the.net> Date: Sun, 21 Apr 2002 23:10:43 +0200 Message-ID: <53374.1019423443@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20020422020233.W611-100000@def.the.net>, "Semen A. Ustimenko" write s: >Hi! > >I was just thinking about the purpose of this method... What is it? > >It used to be used by NIC drivers to add something like AUI beside MII >provided media, correct? > >But it looks like every PHY's driver thinks it must call MEDIAINIT in its >attach() routine. So, if there would be two PHY on MII (can this happen?), >then the method will be called twice, and some NIC drivers (tx, xl, dc, >maybe more) will not behave well. > >Isn't it reasonable to stop all PHY drivers from calling MEDIAINIT, and >call it once per miibus instance in miibus_attach() or miibus_probe() >instead? I just had reason to mess around with a PHY GigE related problem as well, and I can only say that the MII code might have sounded like a good idea at the time but the implementation sucks as far as I can tell. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Apr 21 16: 4:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 618) id 9B4B637B400; Sun, 21 Apr 2002 16:04:24 -0700 (PDT) Subject: Re: MIIBUS_MEDIAINIT method In-Reply-To: <20020422020233.W611-100000@def.the.net> from "Semen A. Ustimenko" at "Apr 22, 2002 02:13:12 am" To: semenu@FreeBSD.org (Semen A. Ustimenko) Date: Sun, 21 Apr 2002 16:04:24 -0700 (PDT) Cc: freebsd-hackers@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20020421230424.9B4B637B400@hub.freebsd.org> From: wpaul@FreeBSD.ORG (Bill Paul) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Hi! > > I was just thinking about the purpose of this method... What is it? > > It used to be used by NIC drivers to add something like AUI beside MII > provided media, correct? It is _still_ used that way. See if_xl.c. There exists a 3c905B-Combo card which supports a 10/100 RJ-45 port, a 10Mbps-only BNC port and a 10Mbps only AUI port. Why did I concoct MEDIAINIT for this? Because each device can have only one ifmedia structure. When a driver uses miibus, the ifmedia struct is initialized by the underlying PHY driver, and that initialization does not happen until after we leave the MAC driver's attach routine. It's not a problem to add additional media types to the ifmedia struct later, but we need to have the PHY driver call back to the MAC driver to do this, which is why every PHY driver has a call to MIIBUS_MEDIAINIT() in its attach routine. If the parent MAC driver does not implement this method, nothing happens. But if it does implement this method, the parent can use it to do some extra ifmedia_add()s to tack on some extra media types. > But it looks like every PHY's driver thinks it must call MEDIAINIT in its > attach() routine. So, if there would be two PHY on MII (can this happen?), Yes, though it's rare, and not always useful. > then the method will be called twice, and some NIC drivers (tx, xl, dc, > maybe more) will not behave well. They work fine if the author of the MAC driver was smart enough to check for this in his mediainit method and just return immmediately if the auxilliary media types have already been ifmedia_add()ed. Right now, the only card that uses this feature is the 3c905B-Combo, and its hardware configuration does not permit the sort of edge condition you are fretting over. > Isn't it reasonable to stop all PHY drivers from calling MEDIAINIT, and > call it once per miibus instance in miibus_attach() or miibus_probe() > instead? No. We want the PHY driver to set up its media types in the ifmedia struct first, and then add our own after those, which means we have to wait until the end of the PHY's attach routine, and it's newbus that calls the attach routines, not the miibus code. If you have a card or hardware configuration which is actually causing the scenario you describe, then say so. Otherwise, keep your fingers out of this code. No user-servicable parts inside. Keep out of children. Do not look into laser optics with remaining eye. -Bill -- ============================================================================= -Bill Paul (510) 749-2329 | Senior Engineer, Master of Unix-Fu wpaul@windriver.com | Wind River Systems ============================================================================= God was my co-pilot, until we crashed in the mountains and I had to eat him. ============================================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Apr 21 17: 5:19 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from viola.sinor.ru (viola.sinor.ru [217.70.106.9]) by hub.freebsd.org (Postfix) with ESMTP id 4FCC437B416; Sun, 21 Apr 2002 16:59:35 -0700 (PDT) Received: from tlg5-ppp85.sibnet.ru (tlg5-ppp85.sibnet.ru [217.70.98.216]) by viola.sinor.ru (8.9.3/8.9.3) with ESMTP id GAA16279; Mon, 22 Apr 2002 06:59:31 +0700 Date: Mon, 22 Apr 2002 06:59:31 +0700 (NOVST) From: "Semen A. Ustimenko" X-X-Sender: semenu@def.the.net To: Bill Paul Cc: freebsd-hackers@FreeBSD.org Subject: Re: MIIBUS_MEDIAINIT method In-Reply-To: <20020421230424.9B4B637B400@hub.freebsd.org> Message-ID: <20020422061252.N2315-100000@def.the.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Pretty clear now... Thanks! See below... On Sun, 21 Apr 2002, Bill Paul wrote: > > then the method will be called twice, and some NIC drivers (tx, xl, dc, > > maybe more) will not behave well. > > They work fine if the author of the MAC driver was smart enough to check > for this in his mediainit method and just return immmediately if the > auxilliary media types have already been ifmedia_add()ed. The authors of above drivers do not. :) I bet they didn't know... And a quest: how will you know inside YOURMAC_miibus_mediainit() that this is the call from the *last* PHY? (Not critical, but...) > > Isn't it reasonable to stop all PHY drivers from calling MEDIAINIT, and > > call it once per miibus instance in miibus_attach() or miibus_probe() > > instead? > > No. We want the PHY driver to set up its media types in the ifmedia > struct first, and then add our own after those, which means we have > to wait until the end of the PHY's attach routine, and it's newbus > that calls the attach routines, not the miibus code. > Ah, my bad... You're rigth. This is the main point - there is no place which would be more appropriate to notify MAC driver about PHY attachement completion. Well.... But this isn't very nice... As long as MEDIAINIT method is called per every PHY, it should at least contain a PHY-identifying argument, i think... Yet mii_inst would be enough, even to solve the ``quest above''. This way somebody could do per-PHY tricks in MAC driver :) If you really need to spot the all-PHYs-atachment-completion-event, then you must await it from miibus device, i think. > If you have a card or hardware configuration which is actually > causing the scenario you describe, then say so. No, I don't. But who knows what NIC there can exist? > Otherwise, keep your fingers out of this code. No user-servicable parts > inside. Keep out of children. Do not look into laser optics with > remaining eye. > :) OK... As you say... Just one more question: Will the MIIBUS_LINKCHG method be MFCed? Thanks! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Apr 21 17:20: 1 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from outbox.attcanada.ca (outbox.attcanada.ca [207.245.244.41]) by hub.freebsd.org (Postfix) with ESMTP id 4FD3E37B416 for ; Sun, 21 Apr 2002 17:19:57 -0700 (PDT) Received: from default (trt-on70-140.netcom.ca [142.154.113.140]) by outbox.attcanada.ca (Postfix) with ESMTP id 47B8B2F86 for ; Sun, 21 Apr 2002 20:19:36 -0400 (EDT) Message-ID: <4113-22002412214037280@default> X-Priority: 3 X-MSMail-Priority: Normal Organization: InfoSource From: "Barbara Caldwell" To: "hackers@freebsd.org" Subject: The United States Healthcare Directory Date: Sun, 21 Apr 2002 20:40:37 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG We are publishers of specialized reports and directories=20 dealing with public affairs=2E Our new directory,=20 "The United States Healthcare Directory" covers hospitals,=20 nursing homes, HMOs, medical manufacturers, etc=2E It is available=20 at an introductory price of $245=2E If you are interested=20 in receiving this directory, please provide us with your mailing=20 address or visit our website at www=2Enational-directories=2Ecom=2E To contact us by phone, please call 905-751-0919=2E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Apr 21 18:22:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web20.linux-hosting.com (web20.linux-hosting.com [216.121.191.212]) by hub.freebsd.org (Postfix) with ESMTP id 3283637B41B for ; Sun, 21 Apr 2002 18:22:45 -0700 (PDT) Received: (from nobody@localhost) by web20.linux-hosting.com (8.9.3/8.9.3) id GAA04719; Mon, 22 Apr 2002 06:24:46 +0500 Date: Mon, 22 Apr 2002 06:24:46 +0500 Message-Id: <200204220124.GAA04719@web20.linux-hosting.com> To: hackerpx@hotmail.com, hackerr116@aol.com, hackers@FreeBSD.org, hackers@hackers-for-hire.com, hackers@lists.samba.org From: teen4free@aol.com () Subject: Your Acount ID is 215069414 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Below is the result of your feedback form. It was submitted by (teen4free@aol.com) on Monday, April 22, 2002 at 06:24:46 --------------------------------------------------------------------------- :

Adult Membership Approved
Your Application Has been Processed And ACCEPTED


free gallery membership at TEEN4FREE galleries


>>HERE to enter<<


(if this email was sent in error, please ignore it)

--------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Apr 21 19: 9:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from yello.shallow.net (yello.shallow.net [203.18.243.120]) by hub.freebsd.org (Postfix) with ESMTP id B498137B405 for ; Sun, 21 Apr 2002 19:09:09 -0700 (PDT) Received: by yello.shallow.net (Postfix, from userid 1001) id 9D5D92A6D; Mon, 22 Apr 2002 12:09:02 +1000 (EST) Date: Mon, 22 Apr 2002 12:09:02 +1000 From: Joshua Goodall To: freebsd-hackers@FreeBSD.org Subject: kernel backtrace of sleeping processes Message-ID: <20020422020902.GB86692@roughtrade.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In a remote kgdb, I have struct proc * for several processes that are sleeping and I want the kernel backtraces for them. To illustrate: (kgdb) set var $p201 = allproc.lh_first->p_list.le_next->p_list.le_next (kgdb) print $p201->p_pid $12 = 201 (kgdb) print $p201->p_xxthread.td_wmesg $13 = 0xc0247174 "select" Now I want a (kernel) backtrace on this; given that I have $p201, how can I select the appropriate stack frame? (recent -current on i386) Joshua To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Apr 21 19:47:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 1C82E37B400 for ; Sun, 21 Apr 2002 19:47:35 -0700 (PDT) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.6) with SMTP id g3M2lKw09906; Sun, 21 Apr 2002 22:47:20 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sun, 21 Apr 2002 22:47:19 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Joshua Goodall Cc: freebsd-hackers@FreeBSD.org Subject: Re: kernel backtrace of sleeping processes In-Reply-To: <20020422020902.GB86692@roughtrade.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 22 Apr 2002, Joshua Goodall wrote: > In a remote kgdb, I have struct proc * for several processes that > are sleeping and I want the kernel backtraces for them. To illustrate: > > (kgdb) set var $p201 = allproc.lh_first->p_list.le_next->p_list.le_next > (kgdb) print $p201->p_pid > $12 = 201 > (kgdb) print $p201->p_xxthread.td_wmesg > $13 = 0xc0247174 "select" > > Now I want a (kernel) backtrace on this; given that I have $p201, > how can I select the appropriate stack frame? > > (recent -current on i386) In recent -CURRENT, you can just use trace or trace I have to say that since that since this feature was introduced, life has become a *lot* easier :-). Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Apr 21 20: 4: 5 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by hub.freebsd.org (Postfix) with SMTP id 58E2E37B405 for ; Sun, 21 Apr 2002 20:03:55 -0700 (PDT) Received: (qmail 18432 invoked from network); 22 Apr 2002 03:03:43 -0000 Received: from ken.yumyumyum.org (192.168.0.2) by router.yumyumyum.org with SMTP; 22 Apr 2002 03:03:43 -0000 Content-Type: text/plain; charset="us-ascii" From: Kenneth Culver To: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: more on mmap2 Date: Sun, 21 Apr 2002 23:04:09 -0400 X-Mailer: KMail [version 1.4] MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200204212304.09259.culverk@yumyumyum.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alright, sorry for the cross-post, not sure where to send this. I THINK I= got=20 linux's mmap2 working, but for some reason, the program I'm testing with = (the=20 linux version of winex, the one that runs all those neat windows directx = 8=20 games ;-) ) still does this (from truss) linux_mmap2(0x65430000,0x100000,0x0,0x22,0xffffffff,0x6) =3D 1698889728=20 (0x65430000) linux_mmap2(0x65430000,0x100000,0x3,0x11,0x9,0x6) =3D 1698889728 (0x65430= 000) linux_rt_sigprocmask(0x0,0x28150c00,0x286b2b70,0x8) =3D 0 (0x0) write(4,0x286b2c08,64) =3D 64 (0x40) read(0x5,0x286b2c08,0x40) =3D 64 (0x40) linux_rt_sigprocmask(0x2,0x286b2b70,0x0,0x8) =3D 0 (0x0) close(9) =3D 0 (0x0) linux_rt_sigprocmask(0x0,0x28150c00,0x286b2c78,0x8) =3D 0 (0x0) writev(0x4,0x286b2c38,0x2) =3D 98 (0x62) read(0x5,0x286b2d14,0x40) =3D 64 (0x40) linux_rt_sigprocmask(0x2,0x286b2c78,0x0,0x8) =3D 0 (0x0) mprotect(0x65430000,0x100000,0x7) =3D 0 (0x0) linux_rt_sigprocmask(0x0,0x28150c00,0x286b2c90,0x8) =3D 0 (0x0) write(4,0x286b2d20,64) =3D 64 (0x40) read(0x5,0x286b2d20,0x40) =3D 64 (0x40) linux_rt_sigprocmask(0x2,0x286b2c90,0x0,0x8) =3D 0 (0x0) linux_rt_sigprocmask(0x0,0x28150c00,0x286b2c78,0x8) =3D 0 (0x0) write(4,0x286b2d10,64) =3D 64 (0x40) read(0x5,0x286b2d10,0x40) =3D 64 (0x40) linux_rt_sigprocmask(0x2,0x286b2c78,0x0,0x8) =3D 0 (0x0) close(6) =3D 0 (0x0) linux_mmap2(0x0,0x120000,0x0,0x22,0xffffffff,0x6) =3D 678707200 (0x287440= 00) munmap(0x28744000,0xc000) =3D 0 (0x0) munmap(0x28860000,0x4000) =3D 0 (0x0) mprotect(0x28750000,0x10000,0x7) =3D 0 (0x0) linux_rt_sigprocmask(0x0,0x28150c00,0x286b2ca4,0x8) =3D 0 (0x0) write(4,0x286b2d40,64) =3D 64 (0x40) read(0x5,0x286b2d40,0x40) =3D 64 (0x40) linux_rt_sigprocmask(0x2,0x286b2ca4,0x0,0x8) =3D 0 (0x0) linux_rt_sigprocmask(0x0,0x28150c00,0x286b2ca4,0x8) =3D 0 (0x0) write(4,0x286b2d40,64) =3D 64 (0x40) read(0x5,0x286b2d40,0x40) =3D 64 (0x40) linux_rt_sigprocmask(0x2,0x286b2ca4,0x0,0x8) =3D 0 (0x0) linux_rt_sigprocmask(0x0,0x28150c00,0x286b2ca4,0x8) =3D 0 (0x0) write(4,0x286b2d40,64) =3D 64 (0x40) read(0x5,0x286b2d40,0x40) =3D 64 (0x40) linux_rt_sigprocmask(0x2,0x286b2ca4,0x0,0x8) =3D 0 (0x0) linux_open("/",0x8000,00) =3D 6 (0x6) linux_ioctl(0x6,0x82187201,0x28391024) ERR#22 'Invalid argument= ' close(6) =3D 0 (0x0) linux_stat64(0x286b23f0,0x286b2274,0x2813c568) =3D 0 (0x0) linux_open("/",0x18800,00) =3D 6 (0x6) linux_fstat64(0x6,0x286b2274,0x0) =3D 0 (0x0) linux_fcntl64(0x6,0x2,0x1) =3D 0 (0x0) linux_getdents64(0x6,0x286b2148,0x110) =3D 252 (0xfc) linux_getdents64(0x6,0x286b2148,0x110) =3D 252 (0xfc) linux_getdents64(0x6,0x286b2148,0x110) =3D 264 (0x108) linux_getdents64(0x6,0x286b2148,0x110) =3D 60 (0x3c) linux_getdents64(0x6,0x286b2148,0x110) =3D 0 (0x0) close(6) =3D 0 (0x0) linux_open("/",0x8000,00) =3D 6 (0x6) linux_ioctl(0x6,0x82187201,0x28391024) ERR#22 'Invalid argument= ' close(6) =3D 0 (0x0) linux_stat64(0x286b23f0,0x286b2274,0x2813c568) =3D 0 (0x0) linux_open("/",0x18800,00) =3D 6 (0x6) linux_fstat64(0x6,0x286b2274,0x0) =3D 0 (0x0) linux_fcntl64(0x6,0x2,0x1) =3D 0 (0x0) linux_getdents64(0x6,0x286b2148,0x110) =3D 252 (0xfc) linux_getdents64(0x6,0x286b2148,0x110) =3D 252 (0xfc) linux_getdents64(0x6,0x286b2148,0x110) =3D 264 (0x108) linux_getdents64(0x6,0x286b2148,0x110) =3D 60 (0x3c) linux_getdents64(0x6,0x286b2148,0x110) =3D 0 (0x0) close(6) =3D 0 (0x0) linux_rt_sigprocmask(0x0,0x28150c00,0x286b2ce0,0x8) =3D 0 (0x0) write(4,0x286b2d74,64) =3D 64 (0x40) read(0x5,0x286b2d74,0x40) =3D 64 (0x40) linux_rt_sigprocmask(0x2,0x286b2ce0,0x0,0x8) =3D 0 (0x0) exit(0x0) process exit, rval =3D 0 this is the end of the truss output, can anyone tell me if anything in th= is=20 truss output looks like it would cause the program to exit without doing=20 anything? (this is what happens, it doesn't do ANYTHING at all Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Apr 21 20: 4:44 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id C146A37B416 for ; Sun, 21 Apr 2002 20:04:40 -0700 (PDT) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.6) with SMTP id g3M34Sw10024; Sun, 21 Apr 2002 23:04:28 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sun, 21 Apr 2002 23:04:27 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Joshua Goodall Cc: freebsd-hackers@FreeBSD.org Subject: Re: kernel backtrace of sleeping processes In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 21 Apr 2002, Robert Watson wrote: > On Mon, 22 Apr 2002, Joshua Goodall wrote: > > In recent -CURRENT, you can just use > > trace > > or > > trace > > I have to say that since that since this feature was introduced, life > has become a *lot* easier :-). Sigh. Remote gdb, not ddb. I tried the usual tricks (updating $sp in gdb, etc) but gdb persisted in using the old frame. Nevermind. It seemed to me that on i386, just using the value of allproc.lh_first->(....)->p_threads.tqh_first.td_frame.tf_esp should DTRT, but apparently not. Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 2: 5:52 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web20901.mail.yahoo.com (web20901.mail.yahoo.com [216.136.226.223]) by hub.freebsd.org (Postfix) with SMTP id 78B6437B400 for ; Mon, 22 Apr 2002 02:05:50 -0700 (PDT) Message-ID: <20020422090317.76678.qmail@web20901.mail.yahoo.com> Received: from [61.152.254.1] by web20901.mail.yahoo.com via HTTP; Mon, 22 Apr 2002 02:03:17 PDT Date: Mon, 22 Apr 2002 02:03:17 -0700 (PDT) From: David Xu Subject: fix wrong PNP ID comment To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Current branch, pci_bus.c has wrong PNP ID comment. --- /sys/i386/pci/pci_bus.c.orig Mon Apr 22 16:13:02 2002 +++ /sys/i386/pci/pci_bus.c Mon Apr 22 16:13:29 2002 @@ -554,7 +554,7 @@ * people. */ static struct isa_pnp_id pcibus_pnp_ids[] = { - { 0x030ad041 /* PNP030A */, "PCI Bus" }, + { 0x030ad041 /* PNP0A03 */, "PCI Bus" }, { 0 } }; __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 2:17:24 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gate.nentec.de (gate2.nentec.de [194.25.215.66]) by hub.freebsd.org (Postfix) with ESMTP id A9E4737B400 for ; Mon, 22 Apr 2002 02:17:19 -0700 (PDT) Received: from nenny.nentec.de (root@nenny.nentec.de [153.92.64.1]) by gate.nentec.de (8.11.3/8.9.3) with ESMTP id g3M9C6330396 for ; Mon, 22 Apr 2002 11:12:06 +0200 Received: from nentec.de (andromeda [153.92.64.34]) by nenny.nentec.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id g3M9CAm19384 for ; Mon, 22 Apr 2002 11:12:10 +0200 Message-ID: <3CC3D3EA.6020505@nentec.de> Date: Mon, 22 Apr 2002 11:12:10 +0200 From: Andy Sporner User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:0.9.8) Gecko/20020204 X-Accept-Language: de-at, de, en, en-us MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: FreeBSD Convention in EU References: <20020422090317.76678.qmail@web20901.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I heard some random comment here about a possible convention (sort of like BSDCon) in Europe. Does anyone know about this or if there is going to be such a thing? I have an interest to present either on Clustering or perhaps if the timing is right, a feature I am working on to bundle ethernet adapters as a single virtual adaptor (idea taken from Intel Adapter Teaming). Thanks in advance! Andy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 2:28: 3 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from www.example.org (dhcp-nic-val-26-130.cisco.com [64.103.26.130]) by hub.freebsd.org (Postfix) with SMTP id CA44637B427 for ; Mon, 22 Apr 2002 02:27:55 -0700 (PDT) Received: (qmail 97199 invoked by uid 1000); 22 Apr 2002 09:21:55 -0000 Message-ID: <20020422092155.97198.qmail@cobweb.example.org> Date: Mon, 22 Apr 2002 11:21:55 +0200 From: Marco Molteni To: hackers@freebsd.org Cc: Andy Sporner Subject: Re: FreeBSD Convention in EU In-Reply-To: <3CC3D3EA.6020505@nentec.de> References: <20020422090317.76678.qmail@web20901.mail.yahoo.com> <3CC3D3EA.6020505@nentec.de> X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 22 Apr 2002 11:12:10 +0200, Andy Sporner wrote: > I heard some random comment here about a possible convention (sort of like > BSDCon) in Europe. Does anyone know about this or if there is going to be > such a thing? http://www.eurobsdcon2002.org/ marco To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 2:31:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from host217-41-2-91.in-addr.btopenworld.com (host217-41-2-91.in-addr.btopenworld.com [217.41.2.91]) by hub.freebsd.org (Postfix) with ESMTP id B7D8E37B42B for ; Mon, 22 Apr 2002 02:31:19 -0700 (PDT) Received: by host217-41-2-91.in-addr.btopenworld.com (Postfix, from userid 1001) id 6BEC948C; Mon, 22 Apr 2002 10:26:41 +0100 (BST) Date: Mon, 22 Apr 2002 10:26:40 +0100 From: Dominic Marks To: Andy Sporner Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: FreeBSD Convention in EU Message-ID: <20020422102640.A65157@host217-41-2-91.in-addr.btopenw> References: <20020422090317.76678.qmail@web20901.mail.yahoo.com> <3CC3D3EA.6020505@nentec.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3CC3D3EA.6020505@nentec.de>; from sporner@nentec.de on Mon, Apr 22, 2002 at 11:12:10AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Apr 22, 2002 at 11:12:10AM +0200, Andy Sporner wrote: > Hi, > > I heard some random comment here about a possible convention (sort of like > BSDCon) in Europe. Does anyone know about this or if there is going to be > such a thing? http://www.eurobsdcon2002.org/ > I have an interest to present either on Clustering or perhaps if the > timing is > right, a feature I am working on to bundle ethernet adapters as a single > virtual > adaptor (idea taken from Intel Adapter Teaming). > > Thanks in advance! > > > > Andy > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- Dominic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 2:48:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.viasoft.com.cn (ip-167-164-97-218.anlai.com [218.97.164.167]) by hub.freebsd.org (Postfix) with ESMTP id 0BFDF37B405 for ; Mon, 22 Apr 2002 02:48:40 -0700 (PDT) Received: from davidwnt (davidwnt.viasoft.com.cn [192.168.1.239]) by mail.viasoft.com.cn (8.9.3/8.9.3) with SMTP id QAA28930 for ; Mon, 22 Apr 2002 16:52:14 +0800 Message-ID: <00aa01c1e9d8$b3c1b9f0$ef01a8c0@davidwnt> From: "David Xu" To: Subject: fix wrong pnp id comment Date: Mon, 22 Apr 2002 16:35:47 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Current branch, pci_bus.c has wrong PNP ID comment. --- /sys/i386/pci/pci_bus.c.orig Mon Apr 22 16:13:02 2002 +++ /sys/i386/pci/pci_bus.c Mon Apr 22 16:13:29 2002 @@ -554,7 +554,7 @@ * people. */ static struct isa_pnp_id pcibus_pnp_ids[] =3D { - { 0x030ad041 /* PNP030A */, "PCI Bus" }, + { 0x030ad041 /* PNP0A03 */, "PCI Bus" }, { 0 } }; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 3:23:38 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gate.nentec.de (gate2.nentec.de [194.25.215.66]) by hub.freebsd.org (Postfix) with ESMTP id ED97C37B41D for ; Mon, 22 Apr 2002 03:23:34 -0700 (PDT) Received: from nenny.nentec.de (root@nenny.nentec.de [153.92.64.1]) by gate.nentec.de (8.11.3/8.9.3) with ESMTP id g3M9gH302716; Mon, 22 Apr 2002 11:42:17 +0200 Received: from nentec.de (andromeda [153.92.64.34]) by nenny.nentec.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id g3M9gLm20855; Mon, 22 Apr 2002 11:42:21 +0200 Message-ID: <3CC3DAFD.6040407@nentec.de> Date: Mon, 22 Apr 2002 11:42:21 +0200 From: Andy Sporner User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:0.9.8) Gecko/20020204 X-Accept-Language: de-at, de, en, en-us MIME-Version: 1.0 To: Dominic Marks Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: FreeBSD Convention in EU -- OK Enough said ;-) References: <20020422090317.76678.qmail@web20901.mail.yahoo.com> <3CC3D3EA.6020505@nentec.de> <20020422102640.A65157@host217-41-2-91.in-addr.btopenw> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have submitted a form for a presentation. I can only hope it is accepted. Thanks for all of your comments! :-) Andy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 8:48: 4 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 8E2F137B431; Mon, 22 Apr 2002 08:46:24 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id KAA02472; Mon, 22 Apr 2002 10:07:25 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g3ME6tV42317; Mon, 22 Apr 2002 10:06:55 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15556.6399.62081.426193@grasshopper.cs.duke.edu> Date: Mon, 22 Apr 2002 10:06:55 -0400 (EDT) To: Kenneth Culver Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: implementing linux mmap2 syscall In-Reply-To: <200204211525.08827.culverk@yumyumyum.org> References: <200204211525.08827.culverk@yumyumyum.org> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kenneth Culver writes: > static inline unsigned long do_mmap(struct file *file, unsigned long addr, <..> > ret = do_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_SHIFT); > out: > return ret; > } > > This is what mmap2 does: > > andstatic inline long do_mmap2( > unsigned long addr, unsigned long len, > unsigned long prot, unsigned long flags, > unsigned long fd, unsigned long pgoff) <...> > error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff); > > So what it looks like to me is that mmap2 expects an offset that's already > page-aligned (I'm not sure if this is the right way to say it), where mmap > doesn't. the FreeBSD code in the linuxulator basically just takes the offset To me, it looks like mmap2 takes an offset that's a page index, rather than a byte position. Since linux passes the offset with a 32-bit long, rather than a 64-bit off_t like we do, they need to do this in order to be able to map offsets larger than 4GB into a file. For linux_mmap2, I'd think we want to do roughly the same things as linux_mmap, but with bsd_args.pos = ctob((off_t)linux_args.pos) Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 9:57:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 449B837B41A for ; Mon, 22 Apr 2002 09:57:37 -0700 (PDT) Received: (from ken@localhost) by panzer.kdm.org (8.11.6/8.9.1) id g3MGtMm25875; Mon, 22 Apr 2002 10:55:22 -0600 (MDT) (envelope-from ken) Date: Mon, 22 Apr 2002 10:55:22 -0600 From: "Kenneth D. Merry" To: Andy Sporner Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: port trunking (was Re: FreeBSD Convention in EU) Message-ID: <20020422105522.A25845@panzer.kdm.org> References: <20020422090317.76678.qmail@web20901.mail.yahoo.com> <3CC3D3EA.6020505@nentec.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3CC3D3EA.6020505@nentec.de>; from sporner@nentec.de on Mon, Apr 22, 2002 at 11:12:10AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Apr 22, 2002 at 11:12:10 +0200, Andy Sporner wrote: > I have an interest to present either on Clustering or perhaps if the > timing is > right, a feature I am working on to bundle ethernet adapters as a single > virtual > adaptor (idea taken from Intel Adapter Teaming). You may want to take a look at: http://people.freebsd.org/~wpaul/FEC/ I haven't tried it, but it implements the Cisco Fast Etherchannel stuff. Anyone know why it hasn't made it into -current? Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 13: 8:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ahuumrelay1.ams.ops.eu.uu.net (ahuumrelay1.ams.ops.eu.uu.net [195.129.70.139]) by hub.freebsd.org (Postfix) with ESMTP id 414EA37B400 for ; Mon, 22 Apr 2002 13:08:42 -0700 (PDT) Received: from Jeff ([212.208.161.213]) by ahuumrelay1.ams.ops.eu.uu.net (8.11.0/8.11.0) with SMTP id g3MCqXD21990 for ; Mon, 22 Apr 2002 12:52:33 GMT Content-Type: text/plain; charset="iso-8859-1" From: Jeff Reply-To: jeff@netfly.fr Organization: NETFLY To: freebsd-hackers Subject: Re: A powful tool Date: Mon, 22 Apr 2002 14:54:05 -0400 X-Mailer: KMail [version 1.2] References: <20020422124842.508E031B93@mail.fr.uu.net> In-Reply-To: <20020422124842.508E031B93@mail.fr.uu.net> MIME-Version: 1.0 Message-Id: <02042214540500.03719@Jeff> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG thx . gros con. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 13:12:42 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by hub.freebsd.org (Postfix) with SMTP id 4B18737B405 for ; Mon, 22 Apr 2002 13:12:37 -0700 (PDT) Received: (qmail 22813 invoked from network); 22 Apr 2002 20:04:19 -0000 Received: from dsl092-171-091.wdc1.dsl.speakeasy.net (66.92.171.91) by dsl092-171-091.wdc1.dsl.speakeasy.net with SMTP; 22 Apr 2002 20:04:19 -0000 Date: Mon, 22 Apr 2002 16:04:18 -0400 (EDT) From: Kenneth Culver To: Andrew Gallatin Cc: freebsd-hackers@freebsd.org, Subject: Re: implementing linux mmap2 syscall In-Reply-To: <15556.6399.62081.426193@grasshopper.cs.duke.edu> Message-ID: <20020422155927.E22719-100000@alpha.yumyumyum.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > To me, it looks like mmap2 takes an offset that's a page index, rather > than a byte position. Since linux passes the offset with a 32-bit > long, rather than a 64-bit off_t like we do, they need to do this in > order to be able to map offsets larger than 4GB into a file. > > For linux_mmap2, I'd think we want to do roughly the same things as > linux_mmap, but with bsd_args.pos = ctob((off_t)linux_args.pos) > > Drew > > AHH, ok I was wondering where PAGE_SHIFT was for FreeBSD. I guess ctob does what I need it to. I think that's probably why it still wasn't working yet... I think it also has to be page aligned before you pass it in though, I have to look at linux's do_mmap_pgoff() (I think that's the right function name) to see if it's expecting an already page-aligned arg, or if it's aligning it before it uses it. Thanks Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 13:21:24 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id B446337B41C; Mon, 22 Apr 2002 13:21:16 -0700 (PDT) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 22 Apr 2002 13:27:21 +0100 (BST) To: Robert Watson Cc: Joshua Goodall , freebsd-hackers@FreeBSD.org Subject: Re: kernel backtrace of sleeping processes In-Reply-To: Your message of "Sun, 21 Apr 2002 23:04:27 EDT." Date: Mon, 22 Apr 2002 13:27:20 +0100 From: Ian Dowse Message-ID: <200204221327.aa71960@salmon.maths.tcd.ie> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message , Robe rt Watson writes: >Sigh. Remote gdb, not ddb. I tried the usual tricks (updating $sp in >gdb, etc) but gdb persisted in using the old frame. Nevermind. It seemed In gdb, the "proc" command switches processes, so this should work: proc bt Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 13:25:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 5C37637B61B; Mon, 22 Apr 2002 13:24:33 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id QAA14970; Mon, 22 Apr 2002 16:23:28 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g3MKMwe02443; Mon, 22 Apr 2002 16:22:58 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15556.28962.259876.509643@grasshopper.cs.duke.edu> Date: Mon, 22 Apr 2002 16:22:58 -0400 (EDT) To: Kenneth Culver Cc: freebsd-hackers@freebsd.org, Subject: Re: implementing linux mmap2 syscall In-Reply-To: <20020422155927.E22719-100000@alpha.yumyumyum.org> References: <15556.6399.62081.426193@grasshopper.cs.duke.edu> <20020422155927.E22719-100000@alpha.yumyumyum.org> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kenneth Culver writes: > > To me, it looks like mmap2 takes an offset that's a page index, rather > > than a byte position. Since linux passes the offset with a 32-bit > > long, rather than a 64-bit off_t like we do, they need to do this in > > order to be able to map offsets larger than 4GB into a file. > > > > For linux_mmap2, I'd think we want to do roughly the same things as > > linux_mmap, but with bsd_args.pos = ctob((off_t)linux_args.pos) > > > > Drew > > > > > AHH, ok I was wondering where PAGE_SHIFT was for FreeBSD. I guess ctob > does what I need it to. I think that's probably why it still wasn't > working yet... I think it also has to be page aligned before you pass it > in though, I have to look at linux's do_mmap_pgoff() (I think that's the > right function name) to see if it's expecting an already page-aligned arg, > or if it's aligning it before it uses it. The name implies that do_mmap_pgoff() takes page-shift'ed args. An offset specified as a page-shift is page-aligned by definition. Eg, when you call ctob(pgoff) this turns out to be (pgoff << PAGE_SHIFT) bytes. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 13:30:44 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by hub.freebsd.org (Postfix) with ESMTP id D8DAE37B4A6 for ; Mon, 22 Apr 2002 13:29:59 -0700 (PDT) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.12.2/8.12.2) with ESMTP id g3MJZMaq004494 for ; Mon, 22 Apr 2002 21:35:22 +0200 (CEST) (envelope-from wkb@freebie.xs4all.nl) Received: (from wkb@localhost) by freebie.xs4all.nl (8.12.2/8.12.2/Submit) id g3MJZMvZ004493 for hackers@freebsd.org; Mon, 22 Apr 2002 21:35:22 +0200 (CEST) Date: Mon, 22 Apr 2002 21:35:22 +0200 From: Wilko Bulte To: hackers@FreeBSD.org Subject: sendmail complaining about filedescriptors? Message-ID: <20020422213522.A4465@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-OS: FreeBSD 4.5-STABLE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On -stable as of last week I see sendmail log errors on file descriptors as in: Apr 22 09:29:16 freebie sm-msp-queue[126]: starting daemon (8.12.2): queueing@00:30:00 Apr 22 09:29:50 freebie sendmail[253]: File descriptors missing on startup: stdout, stderr; Bad file descriptor Apr 22 09:29:50 freebie sendmail[253]: g3M7To31000253: from=wkb, size=449, class=0, nrcpts=1, msgid=<20020422092950.A243@freebie.xs4all.nl>, relay=wkb@localhost etc. Mail arrives OK, mergemaster has been run. Any idea? -- | / o / /_ _ wilko@FreeBSD.org |/|/ / / /( (_) Bulte Arnhem, the Netherlands To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 13:41:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wemm.org (12-232-135-171.client.attbi.com [12.232.135.171]) by hub.freebsd.org (Postfix) with ESMTP id 7C6F737B432 for ; Mon, 22 Apr 2002 13:40:34 -0700 (PDT) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (8.11.6/8.11.6) with ESMTP id g3MKdVe27263 for ; Mon, 22 Apr 2002 13:39:31 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 0B84638CC; Mon, 22 Apr 2002 13:39:32 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Wilko Bulte Cc: hackers@FreeBSD.ORG Subject: Re: sendmail complaining about filedescriptors? In-Reply-To: <20020422213522.A4465@freebie.xs4all.nl> Date: Mon, 22 Apr 2002 13:39:32 -0700 From: Peter Wemm Message-Id: <20020422203932.0B84638CC@overcee.wemm.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Wilko Bulte wrote: > On -stable as of last week I see sendmail log errors on file descriptors > as in: > > Apr 22 09:29:16 freebie sm-msp-queue[126]: starting daemon (8.12.2): queueing @00:30:00 > Apr 22 09:29:50 freebie sendmail[253]: File descriptors missing on startup: s tdout, stderr; Bad file descriptor > Apr 22 09:29:50 freebie sendmail[253]: g3M7To31000253: from=wkb, size=449, cl ass=0, nrcpts=1, msgid=<20020422092950.A243@freebie.xs4all.nl>, relay=wkb@l ocalhost > > etc. Mail arrives OK, mergemaster has been run. This is usually because fstat(2) fails on file descriptors that have been revoked. By the time that message is printed, the /dev/console descriptors that were inherited from /etc/rc etc would have been revoke(2)'ed by the getty on /dev/ttyv0 or ttyd0. cron also used to do this. It would end up with handles to the console that would get revoked, and sendmail would get upset when cron fired it up. I "fixed" that a while back in cron to ensure that it had valid handles. Have a look at lsof/fstat output for the revoked fd's, and you'll probably find some new ones now. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 15:17:21 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web14806.mail.yahoo.com (web14806.mail.yahoo.com [216.136.224.222]) by hub.freebsd.org (Postfix) with SMTP id 1250037C74F for ; Mon, 22 Apr 2002 15:07:47 -0700 (PDT) Message-ID: <20020422203120.15772.qmail@web14806.mail.yahoo.com> Received: from [213.19.151.12] by web14806.mail.yahoo.com via HTTP; Mon, 22 Apr 2002 13:31:20 PDT Date: Mon, 22 Apr 2002 13:31:20 -0700 (PDT) From: ali nasseh Subject: subscription To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi, pleasz subscribe me for freebsd-hackers list a. nasseh __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 15:17:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from horsey.gshapiro.net (horsey.gshapiro.net [209.220.147.178]) by hub.freebsd.org (Postfix) with ESMTP id 8771537C8EF for ; Mon, 22 Apr 2002 15:15:03 -0700 (PDT) Received: from horsey.gshapiro.net (gshapiro@localhost [IPv6:::1]) by horsey.gshapiro.net (8.12.3/8.12.3) with ESMTP id g3MKcXOE032708 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 22 Apr 2002 13:38:34 -0700 (PDT) Received: (from gshapiro@localhost) by horsey.gshapiro.net (8.12.3/8.12.3/Submit) id g3MKcXnD032705; Mon, 22 Apr 2002 13:38:33 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15556.29897.695479.817308@horsey.gshapiro.net> Date: Mon, 22 Apr 2002 13:38:33 -0700 From: Gregory Neil Shapiro To: Wilko Bulte Cc: hackers@FreeBSD.ORG Subject: Re: sendmail complaining about filedescriptors? In-Reply-To: <20020422213522.A4465@freebie.xs4all.nl> References: <20020422213522.A4465@freebie.xs4all.nl> X-Mailer: VM 7.00 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG wkb> Apr 22 09:29:50 freebie sendmail[253]: File descriptors missing on startup: stdout, stderr; Bad file descriptor sendmail always checks it's first three fd's at startup to avoid the problem that has just come to light in the FreeBSD security announcement. This is what is logged if sendmail has problems with them. It can be ignored as sendmail attaches /dev/null to them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 15:21:14 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by hub.freebsd.org (Postfix) with SMTP id 1C74437C55A for ; Mon, 22 Apr 2002 15:12:48 -0700 (PDT) Received: (qmail 23745 invoked from network); 22 Apr 2002 22:12:14 -0000 Received: from dsl092-171-091.wdc1.dsl.speakeasy.net (66.92.171.91) by dsl092-171-091.wdc1.dsl.speakeasy.net with SMTP; 22 Apr 2002 22:12:14 -0000 Date: Mon, 22 Apr 2002 18:12:14 -0400 (EDT) From: Kenneth Culver To: Andrew Gallatin Cc: freebsd-hackers@freebsd.org, Subject: Re: implementing linux mmap2 syscall In-Reply-To: <15556.28962.259876.509643@grasshopper.cs.duke.edu> Message-ID: <20020422172703.C23429-100000@alpha.yumyumyum.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > AHH, ok I was wondering where PAGE_SHIFT was for FreeBSD. I guess ctob > > does what I need it to. I think that's probably why it still wasn't > > working yet... I think it also has to be page aligned before you pass it > > in though, I have to look at linux's do_mmap_pgoff() (I think that's the > > right function name) to see if it's expecting an already page-aligned arg, > > or if it's aligning it before it uses it. > > The name implies that do_mmap_pgoff() takes page-shift'ed args. > An offset specified as a page-shift is page-aligned by definition. > Eg, when you call ctob(pgoff) this turns out to be (pgoff << > PAGE_SHIFT) bytes. > > Drew > > That makes sense, regular linux mmap seems to expect the offset to be in bytes (from linux's mmap): ret = do_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_SHIFT); Where linux's mmap2 does this: error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff); so this looks to me like do_mmap_pgoff expects a page-aligned offset, meaning that the difference between a regular linux mmap, and linux's mmap2 is that mmap expects bytes, and mmap2 expects a page offset instead... even more is that linux's old_mmap (the one that we actually emulate in linux_mmap(), calls do_mmap2 with these args: err = do_mmap2(a.addr, a.len, a.prot, a.flags, a.fd, a.offset >> PAGE_SHIFT); so, I'll just do the ctob() and see what happens. :-) Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 15:34:34 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by hub.freebsd.org (Postfix) with SMTP id A52D037C065 for ; Mon, 22 Apr 2002 15:23:56 -0700 (PDT) Received: (qmail 21100 invoked from network); 22 Apr 2002 13:23:05 -0000 Received: from ken.yumyumyum.org (192.168.0.2) by router.yumyumyum.org with SMTP; 22 Apr 2002 13:23:05 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Kenneth Culver To: Terry Lambert Subject: Re: implementing linux mmap2 syscall Date: Mon, 22 Apr 2002 09:23:35 -0400 X-Mailer: KMail [version 1.4] References: <200204211525.08827.culverk@yumyumyum.org> <3CC3E619.8AD5EFF9@mindspring.com> In-Reply-To: <3CC3E619.8AD5EFF9@mindspring.com> Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200204220923.35667.culverk@yumyumyum.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 22 April 2002 06:29 am, you wrote: > Kenneth Culver wrote: > > So what it looks like to me is that mmap2 expects an offset that's > > already page-aligned (I'm not sure if this is the right way to say it= ), > > where mmap doesn't. the FreeBSD code in the linuxulator basically jus= t > > takes the offset that is passed in with the linux mmap, and uses that= to > > call FreeBSD's mmap (the kernel version, not the one called from > > userland). So basically I'm kinda stuck as to what to do to implement > > linux's mmap2. The only thing I can think of is to implement a FreeBS= D > > "mmap2" that basically assumes that the offset passed in is already p= age > > aligned or whatever, and just uses it, and then have linux_mmap2() ju= st > > call the FreeBSD mmap2(). Any ideas? > > This is too much work. > > Basically, it just wants to bitch when the offset is not page > aligned, and then call the old mmap if it doesn't bitch. > OK, I think I can do that, thanks for the help. Will anyone be interested= in=20 patches when/if I get this working? I also implemented ftruncate64 (which= =20 just calls ftruncate).=20 Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 16: 6:49 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wemm.org (12-232-135-171.client.attbi.com [12.232.135.171]) by hub.freebsd.org (Postfix) with ESMTP id 4F2EA37B935; Mon, 22 Apr 2002 15:55:18 -0700 (PDT) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (8.11.6/8.11.6) with ESMTP id g3MMsee27747; Mon, 22 Apr 2002 15:54:40 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id A91A138CC; Mon, 22 Apr 2002 15:54:40 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Gregory Neil Shapiro Cc: Wilko Bulte , hackers@FreeBSD.ORG Subject: Re: sendmail complaining about filedescriptors? In-Reply-To: <15556.29897.695479.817308@horsey.gshapiro.net> Date: Mon, 22 Apr 2002 15:54:40 -0700 From: Peter Wemm Message-Id: <20020422225440.A91A138CC@overcee.wemm.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Gregory Neil Shapiro wrote: > wkb> Apr 22 09:29:50 freebie sendmail[253]: File descriptors missing on start up: stdout, stderr; Bad file descriptor > > sendmail always checks it's first three fd's at startup to avoid the > problem that has just come to light in the FreeBSD security announcement. > This is what is logged if sendmail has problems with them. It can be > ignored as sendmail attaches /dev/null to them. In this particular case it's a false alarm. There are fd's there, but they got revoke(2)'ed by the getty on the console. fstat(2) returns EBADF on the revoked fd's and is impossible to tell the difference between a revoke'd fd and a non-existing fd. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 16:14: 4 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail6.microsoft.com (mail6.microsoft.com [131.107.3.126]) by hub.freebsd.org (Postfix) with ESMTP id D54C337BF6C for ; Mon, 22 Apr 2002 16:06:23 -0700 (PDT) Received: from inet-vrs-06.redmond.corp.microsoft.com ([157.54.6.201]) by mail6.microsoft.com with Microsoft SMTPSVC(5.0.2195.4905); Mon, 22 Apr 2002 16:06:10 -0700 Received: from 157.54.8.155 by inet-vrs-06.redmond.corp.microsoft.com (InterScan E-Mail VirusWall NT); Mon, 22 Apr 2002 16:06:08 -0700 Received: from na-hub-02.redmond.corp.microsoft.com ([157.54.0.171]) by inet-hub-04.redmond.corp.microsoft.com with Microsoft SMTPSVC(5.0.2195.4905); Mon, 22 Apr 2002 16:06:10 -0700 Received: from sp-hub-01.southpacific.corp.microsoft.com ([157.54.7.153]) by na-hub-02.redmond.corp.microsoft.com with Microsoft SMTPSVC(5.0.2195.4905); Mon, 22 Apr 2002 16:06:21 -0700 Received: from syd-msg-02.southpacific.corp.microsoft.com ([157.60.164.36]) by sp-hub-01.southpacific.corp.microsoft.com with Microsoft SMTPSVC(5.0.2195.4905); Mon, 22 Apr 2002 16:06:03 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6177.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: 4.5 STABLE - kernel panics Date: Tue, 23 Apr 2002 09:03:41 +1000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 4.5 STABLE - kernel panics Thread-Index: AcHoTj/wA8CfaeIqR3e2dvxRpA2rSQCA3KQw From: "Chris Moran" To: "Steven Goodwin" , "Herbert" Cc: X-OriginalArrivalTime: 22 Apr 2002 23:06:04.0178 (UTC) FILETIME=[46F53F20:01C1EA52] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Just to add fuel to the fire, I'm getting this on 4.5-RELEASE on an Intel R440 SMP board with 2xPII-233 CPUs: ad4: UDMA ICRC error reading fsbn 1480839 of 0-103 Fatal trap 18: integer divide while in kernel mode mp_lock =3D 01000002; cpuid =3D 1; lapic.id =3D 00000000 instruction pointer =3D 0x8:0xc020ad39 stack pointer =3D 0x10:0xff80ff48 frame pointer =3D 0x10:0xff80ff5c code segment =3D base 0x0, limit 0xffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D idle interrupt mask =3D bio <- SMP: XXX trap number =3D 18 panic: integer divide fault mp_lock =3D 0x01000002; cpuid =3D 1; lapic.id =3D 00000000 bot() called on CPU #1 syncing disks... 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 giving up on 8 buffers Uptime: 35s Automatic reboot in 15 seconds - press a key on the console to abort --> Press a key on the console to reboot, --> or switch off the system now -----Original Message----- From: Steven Goodwin [mailto:steve@cit.gu.edu.au]=20 Sent: Saturday, 20 April 2002 7:32 PM To: Herbert Cc: hackers@FreeBSD.ORG Subject: Re: 4.5 STABLE - kernel panics Hello. Just out of curiosity, what sort of hardware are you running? I get a similar kernel panic message ...=20 Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0xc4b4641e fault code =3D supervisor read, page not present ... while extracting large tarballs. I'm using a ASUS A7M266 motherboard and, unfortunately, I haven't been able to find a solution on this list (or freebsd-questions). Steve On Fri, 19 Apr 2002, Herbert wrote > Hei! >=20 > When I have tried to compile QT-3.0.3 with g++30 today my > FreeBSD-STABLE kernel paniced while gmake was generating the Makefiles. >=20 > # uname -a > FreeBSD freebsd3.rocks 4.5-STABLE FreeBSD 4.5-STABLE #0: Fri Apr 19 > 07:24:16 CEST 2002 > herbert@freebsd3.rocks:/usr/obj/usr/src/sys/ATAPICAM i386 >=20 > Fatal trap 12: page fault while in kernel mode > fault virtual address =3D 0x46 > fault code =3D supervisor read, page not present > instruction pointer =3D 0x8:0xc02798d4 > stack pointer =3D 0x10:0xdd7d5c28 > frame pointer =3D 0x10:0xdd7d5c18 > code segment =3D base 0x0, limit 0xfffff, type 0x1b > =3D DPL 0, pres 1, def32 1, gran 1 > processor eflags =3D interrupt enabled, resume, IOPL =3D 0 > current process =3D 16947 (cpp0) > interrupt mask =3D none > trap number =3D 12 > panic: page fault >=20 > syncing disks... 24 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1=20 > done > Uptime: 6h15m10s >=20 > (kgdb) bt > #0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487 > #1 0xc016d313 in boot (howto=3D256) at > /usr/src/sys/kern/kern_shutdown.c:316 > #2 0xc016d751 in panic (fmt=3D0xc02bbfcc "%s") > at /usr/src/sys/kern/kern_shutdown.c:595 > #3 0xc027c36b in trap_fatal (frame=3D0xdd7d5be8, eva=3D70) > at /usr/src/sys/i386/i386/trap.c:966 > #4 0xc027c019 in trap_pfault (frame=3D0xdd7d5be8, usermode=3D0, = eva=3D70) > at /usr/src/sys/i386/i386/trap.c:859 > #5 0xc027bb93 in trap (frame=3D{tf_fs =3D 16, tf_es =3D 16, tf_ds =3D = 16,=20 > tf_edi =3D -574190496, tf_esi =3D -578986936, tf_ebp =3D = -578986984,=20 > tf_isp =3D -578986988, tf_ebx =3D 14, tf_edx =3D -578998272,=20 > tf_ecx =3D 13077933, tf_eax =3D 14, tf_trapno =3D 12, tf_err =3D = 0,=20 > tf_eip =3D -1071146796, tf_cs =3D 8, tf_eflags =3D 66050, tf_esp = =3D 0,=20 > tf_ss =3D -579023232}) at /usr/src/sys/i386/i386/trap.c:458 > #6 0xc02798d4 in pmap_prefault (pmap=3D0x8, addra=3D66050, = entry=3D0x0) > at /usr/src/sys/i386/i386/pmap.c:2535 >=20 > Anyone knows what's going on here? >=20 > Regards, > Herbert >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 16:19: 3 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.merconic.com (mail.merconic.com [62.96.220.180]) by hub.freebsd.org (Postfix) with SMTP id 447DB37B93E for ; Mon, 22 Apr 2002 16:11:40 -0700 (PDT) Received: (qmail 21262 invoked by uid 306); 22 Apr 2002 17:44:57 -0000 Received: from scotty.ds9 (192.168.2.100) by uhura.ds9 with SMTP; 22 Apr 2002 17:44:56 -0000 Received: by scotty.ds9 (Postfix, from userid 754) id F171558374; Mon, 22 Apr 2002 19:44:55 +0200 (CEST) Date: Mon, 22 Apr 2002 19:44:55 +0200 From: Marc Heckmann To: freebsd-hackers@freebsd.org Subject: "boot -a" in 4.5-STABLE Message-ID: <20020422174455.GA8682@merconic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I've got 4.5-STABLE setup here with vinum as per the Vinum bootstrapping howto (http://www.freebsd.org/doc/en_US.ISO8859-1/articles/vinum/index.html). I have ad0s1a which is "/" and ad2s1a which is mounted on /rootback, it's an exact copy of the "/" filesystem. I wanted to try one of the failure scenarios from the howto (http://www.freebsd.org/doc/en_US.ISO8859-1/articles/vinum/failures.html) so I shutdown the machine, unplugged the ad0 drive. The machine found the boot loader on ad2 and I have a prompt.. so far so good.. I do "boot -as" so that I can manually tell the kernel which root filesystem to mount. here is what I get: ad2: 95396MB [193821/16/63] at ata1-master UDMA66 Manual root filesystem specification: : Mount using filesystem eg. ufs:/dev/da0s1a ? List valid disk boot devices Abort manual input mountroot> ufs:/dev/ad2s1a Mounting root from ufs:/dev/ad0s1a <---- NOTE this Root mount failed: 6 panic: Root mount failed, startup aborted. Why is it still trying to use ad0s1a as the root when I explicitly told it to use /dev/ad2s1a? Any ideas? thanks in advance. -m -- m. heckmann. -- merconic GmbH, Chausseestr. 128-129, D-10115 Berlin (Mitte) Telefon +49-30-726265-200, Fax +49-30-726265-211, Durchwahl -200 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 16:27:23 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from deathrow.mail.pas.earthlink.net (deathrow.mail.pas.earthlink.net [207.217.120.19]) by hub.freebsd.org (Postfix) with ESMTP id 39AEB37B8A4; Mon, 22 Apr 2002 16:20:34 -0700 (PDT) Received: from gull.mail.pas.earthlink.net ([207.217.120.84] helo=gull.prod.itd.earthlink.net) by deathrow.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 16zb5L-0000CN-00; Mon, 22 Apr 2002 03:30:15 -0700 Received: from pool0081.cvx40-bradley.dialup.earthlink.net ([216.244.42.81] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 16zb5I-0002Za-00; Mon, 22 Apr 2002 03:30:13 -0700 Message-ID: <3CC3E619.8AD5EFF9@mindspring.com> Date: Mon, 22 Apr 2002 03:29:45 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Kenneth Culver Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: implementing linux mmap2 syscall References: <200204211525.08827.culverk@yumyumyum.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kenneth Culver wrote: > So what it looks like to me is that mmap2 expects an offset that's already > page-aligned (I'm not sure if this is the right way to say it), where mmap > doesn't. the FreeBSD code in the linuxulator basically just takes the offset > that is passed in with the linux mmap, and uses that to call FreeBSD's mmap > (the kernel version, not the one called from userland). So basically I'm > kinda stuck as to what to do to implement linux's mmap2. The only thing I can > think of is to implement a FreeBSD "mmap2" that basically assumes that the > offset passed in is already page aligned or whatever, and just uses it, and > then have linux_mmap2() just call the FreeBSD mmap2(). Any ideas? This is too much work. Basically, it just wants to bitch when the offset is not page aligned, and then call the old mmap if it doesn't bitch. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 16:35:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from your-mom.student.umd.edu (your-mom.student.umd.edu [129.2.247.58]) by hub.freebsd.org (Postfix) with ESMTP id 6FF5937BC9C for ; Mon, 22 Apr 2002 16:32:29 -0700 (PDT) Received: from localhost (philip@localhost) by your-mom.student.umd.edu (8.11.6/8.11.6) with ESMTP id g3MIamT61644; Mon, 22 Apr 2002 18:36:48 GMT (envelope-from philip@your-mom.student.umd.edu) Date: Mon, 22 Apr 2002 18:36:48 +0000 (GMT) From: Philip To: Marc Heckmann Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: "boot -a" in 4.5-STABLE In-Reply-To: <20020422174455.GA8682@merconic.com> Message-ID: <20020422183440.R61615-100000@your-mom.student.umd.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You might try just booting it normally and letting it fail. Then enter th ufs:/dev/ad2s1a I do this all time when I stick a hd in a fast machine to install FBSD its gets ad4s what ever... but in the machine its ends up it needs to be ad0s whatever. after I mount every manually the first time, I just change my /etc/fstab file to be what it should and everything is happy. On Mon, 22 Apr 2002, Marc Heckmann wrote: > Hi, > > I've got 4.5-STABLE setup here with vinum as per the Vinum bootstrapping howto > (http://www.freebsd.org/doc/en_US.ISO8859-1/articles/vinum/index.html). > > I have ad0s1a which is "/" and ad2s1a which is mounted on /rootback, it's an > exact copy of the "/" filesystem. I wanted to try one of the failure scenarios > from the howto > (http://www.freebsd.org/doc/en_US.ISO8859-1/articles/vinum/failures.html) so I > shutdown the machine, unplugged the ad0 drive. The machine found the boot > loader on ad2 and I have a prompt.. so far so good.. > > I do "boot -as" so that I can manually tell the kernel which root filesystem to > mount. here is what I get: > > ad2: 95396MB [193821/16/63] at ata1-master UDMA66 > > Manual root filesystem specification: > : Mount using filesystem > eg. ufs:/dev/da0s1a > ? List valid disk boot devices > Abort manual input > > mountroot> ufs:/dev/ad2s1a > Mounting root from ufs:/dev/ad0s1a <---- NOTE this > Root mount failed: 6 > panic: Root mount failed, startup aborted. > > Why is it still trying to use ad0s1a as the root when I explicitly told it to > use /dev/ad2s1a? > > Any ideas? thanks in advance. > > -m > > -- > m. heckmann. > -- > merconic GmbH, Chausseestr. 128-129, D-10115 Berlin (Mitte) > Telefon +49-30-726265-200, Fax +49-30-726265-211, Durchwahl -200 > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 16:36:54 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from SRDMAIL.SINP.MSU.RU (bigking.sinp.msu.ru [213.131.9.130]) by hub.freebsd.org (Postfix) with ESMTP id 8020737B619 for ; Mon, 22 Apr 2002 16:30:34 -0700 (PDT) Received: from dima (helo=localhost) by SRDMAIL.SINP.MSU.RU with local-esmtp (Exim 3.34 #1) id 16zcAq-0005No-00 for freebsd-hackers@FreeBSD.org; Mon, 22 Apr 2002 15:40:00 +0400 Date: Mon, 22 Apr 2002 15:40:00 +0400 (MSD) From: Dmitry Mottl To: freebsd-hackers@FreeBSD.org Subject: make installworld failed on 4.0-RELEASE Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have a problem when installing 4-STABLE on 4.0-RELEASE from remotely mounted /usr/src and /usr/obj: ELF binary type not known. Use "brandelf" to brand it Why? === [skipped] -------------------------------------------------------------- >>> Installing everything.. -------------------------------------------------------------- cd /usr/src; make -f Makefile.inc1 install ===> share/info ===> include if [ -h /usr/include/cam ]; then rm -f /usr/include/cam; fi if [ -h /usr/include/msdosfs ]; then rm -f /usr/include/msdosfs; fi if [ -h /usr/include/net ]; then rm -f /usr/include/net; fi if [ -h /usr/include/netatalk ]; then rm -f /usr/include/netatalk; fi if [ -h /usr/include/netatm ]; then rm -f /usr/include/netatm; fi if [ -h /usr/include/netgraph ]; then rm -f /usr/include/netgraph; fi if [ -h /usr/include/netinet ]; then rm -f /usr/include/netinet; fi if [ -h /usr/include/netinet6 ]; then rm -f /usr/include/netinet6; fi if [ -h /usr/include/netipx ]; then rm -f /usr/include/netipx; fi if [ -h /usr/include/netkey ]; then rm -f /usr/include/netkey; fi if [ -h /usr/include/netnatm ]; then rm -f /usr/include/netnatm; fi if [ -h /usr/include/netncp ]; then rm -f /usr/include/netncp; fi if [ -h /usr/include/netns ]; then rm -f /usr/include/netns; fi if [ -h /usr/include/netsmb ]; then rm -f /usr/include/netsmb; fi if [ -h /usr/include/nfs ]; then rm -f /usr/include/nfs; fi if [ -h /usr/include/ntfs ]; then rm -f /usr/include/ntfs; fi if [ -h /usr/include/nwfs ]; then rm -f /usr/include/nwfs; fi if [ -h /usr/include/pccard ]; then rm -f /usr/include/pccard; fi if [ -h /usr/include/posix4 ]; then rm -f /usr/include/posix4; fi if [ -h /usr/include/sys ]; then rm -f /usr/include/sys; fi if [ -h /usr/include/vm ]; then rm -f /usr/include/vm; fi if [ -h /usr/include/fs/smbfs ]; then rm -f /usr/include/fs/smbfs; fi if [ -h /usr/include/isofs/cd9660 ]; then rm -f /usr/include/isofs/cd9660; fi if [ -h /usr/include/ufs/ffs ]; then rm -f /usr/include/ufs/ffs; fi if [ -h /usr/include/ufs/mfs ]; then rm -f /usr/include/ufs/mfs; fi if [ -h /usr/include/ufs/ufs ]; then rm -f /usr/include/ufs/ufs; fi if [ -h /usr/include/dev/ppbus ]; then rm -f /usr/include/dev/ppbus; fi if [ -h /usr/include/dev/usb ]; then rm -f /usr/include/dev/usb; fi if [ -h /usr/include/machine ]; then rm -f /usr/include/machine; fi mtree -deU -f /usr/src/include/../etc/mtree/BSD.include.dist -p /usr/include cd /usr/src/include/../sys; install -C -o root -g wheel -m 444 cam/*.h /usr/include/cam ELF binary type not known. Use "brandelf" to brand it. Abort trap *** Error code 134 Stop in /usr/src/include. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. === - Dmitry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 16:44:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by hub.freebsd.org (Postfix) with SMTP id 9074937B754 for ; Mon, 22 Apr 2002 16:43:57 -0700 (PDT) Received: (qmail 24452 invoked from network); 22 Apr 2002 23:43:41 -0000 Received: from dsl092-171-091.wdc1.dsl.speakeasy.net (66.92.171.91) by dsl092-171-091.wdc1.dsl.speakeasy.net with SMTP; 22 Apr 2002 23:43:41 -0000 Date: Mon, 22 Apr 2002 19:43:41 -0400 (EDT) From: Kenneth Culver To: Terry Lambert Cc: freebsd-hackers@FreeBSD.ORG, Subject: Re: implementing linux mmap2 syscall In-Reply-To: <3CC3E619.8AD5EFF9@mindspring.com> Message-ID: <20020422194240.K24428-100000@alpha.yumyumyum.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Basically, it just wants to bitch when the offset is not page > aligned, and then call the old mmap if it doesn't bitch. > Basically I misunderstood what the linux mmap2 was doing, it recieves an offset as a number of pages, not as bytes, so by definition it's already page aligned. All I have to do is convert the number of pages to a number of bytes and pass it along to FreeBSD's mmap. Thanks! Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 16:53:40 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from odusv.oduurl.ru (odusv.oduurl.ru [195.12.73.193]) by hub.freebsd.org (Postfix) with SMTP id 0165B37B4DE for ; Mon, 22 Apr 2002 16:52:39 -0700 (PDT) Received: from maxic.smes.elektra.ru by odusv.oduurl.ru with ESMTP id XAA82190 (8.6.12 for ); Mon, 22 Apr 2002 23:22:05 +0600 Received: (from root@localhost) by maxic.smes.elektra.ru (8.11.1/8.11.6) id g3MGQUT22885 for freebsd-hackers@FreeBSD.org.KAV; Mon, 22 Apr 2002 22:26:30 +0600 (YEKST) (envelope-from kuzn@smes.elektra.ru) Received: from Ohxrrq (ods.smes.elektra.ru [192.168.7.150]) by maxic.smes.elektra.ru (8.11.1/8.11.6) with SMTP id g3MGQQJ22841 for ; Mon, 22 Apr 2002 22:26:26 +0600 (YEKST) (envelope-from kuzn@smes.elektra.ru) Date: Mon, 22 Apr 2002 22:26:26 +0600 (YEKST) Message-Id: <200204221626.g3MGQQJ22841@maxic.smes.elektra.ru> From: mwozniak To: freebsd-hackers@FreeBSD.org Subject: So cool a flash,enjoy it MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=K61yw1Uy9K30TyA1hEb Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 17:40:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from winston.freebsd.org (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id 48B4237B428 for ; Mon, 22 Apr 2002 17:40:15 -0700 (PDT) Received: from winston.freebsd.org (jkh@localhost [127.0.0.1]) by winston.freebsd.org (8.12.2/8.12.2) with ESMTP id g3N0dQ7W011314 for ; Mon, 22 Apr 2002 17:39:26 -0700 (PDT) (envelope-from jkh@winston.freebsd.org) Received: (from jkh@localhost) by winston.freebsd.org (8.12.2/8.12.2/Submit) id g3N0dQ8i011313 for hackers@freebsd.org; Mon, 22 Apr 2002 17:39:26 -0700 (PDT) Date: Mon, 22 Apr 2002 17:39:26 -0700 (PDT) From: Jordan Hubbard Message-Id: <200204230039.g3N0dQ8i011313@winston.freebsd.org> To: hackers@freebsd.org Subject: ssh + compiled-in SKEY support considered harmful? Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG We at Apple are noticing a strange problem with newer versions of ssh (which has been upgraded to OpenSSH_3.1p1) and FreeBSD 4.5-STABLE's sshd. This problem did not occur with our older ssh, but it also does not occur with the newer version and *any* other OS other than FreeBSD, e.g. if you ssh to a Linux or Solaris or Mac OS X box, for that matter, you will not see this behavior. What behavior am I talking about? This: jhubbard@wafer-> ssh jkh@winston.freebsd.org otp-md5 114 wi7854 ext S/Key Password: otp-md5 117 wi5044 ext S/Key Password: otp-md5 397 wi0652 ext S/Key Password: jkh@winston.freebsd.org's password: The machine "wafer" is a Mac OS X box running 10.1.3 and winston.freebsd.org is running FreeBSD 4.5-STABLE. The authentication method which tries this S/Key stuff is "keyboard-interactive" and this is tried, for some reason, before the "password" auth method. If you compile sshd on the FreeBSD side without SKEY support built-in, the problem also goes away. My question: Who's "wrong" here, FreeBSD or Mac OS X? If the latter, why doesn't Linux or anything else produce this problem? I ask now because I know that the usage of Mac OS X is growing and there are going to be a lot of annoyed users (like me!) who very quickly get tired of having to wind through all the bogus S/Key password prompts before they can actually type in their real password (and no, skey is not enabled on winston and I have never done a keyinit operation, so I couldn't S/Key authenticate to it if I wanted to). - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 17:46: 5 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from tao.org.uk (genius.tao.org.uk [212.135.162.51]) by hub.freebsd.org (Postfix) with ESMTP id 82DFB37B41A for ; Mon, 22 Apr 2002 17:45:57 -0700 (PDT) Received: by tao.org.uk (Postfix, from userid 100) id 82560602; Tue, 23 Apr 2002 01:45:04 +0100 (BST) Date: Tue, 23 Apr 2002 01:45:04 +0100 From: Josef Karthauser To: Jordan Hubbard Cc: hackers@freebsd.org Subject: Re: ssh + compiled-in SKEY support considered harmful? Message-ID: <20020423004504.GA45021@genius.tao.org.uk> References: <200204230039.g3N0dQ8i011313@winston.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline In-Reply-To: <200204230039.g3N0dQ8i011313@winston.freebsd.org> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 22, 2002 at 05:39:26PM -0700, Jordan Hubbard wrote: >=20 > My question: Who's "wrong" here, FreeBSD or Mac OS X? If the latter, > why doesn't Linux or anything else produce this problem? I ask now > because I know that the usage of Mac OS X is growing and there are going > to be a lot of annoyed users (like me!) who very quickly get tired > of having to wind through all the bogus S/Key password prompts before > they can actually type in their real password (and no, skey is not > enabled on winston and I have never done a keyinit operation, so I couldn= 't > S/Key authenticate to it if I wanted to). >=20 I got it sshing from -current to a freshly installed 4.5 box and it continued to happen when I upgraded the 4.5 box to 5.0-DP1. It doesn't happen when I ssh to my regular -stable server, but I've not investigated the reasons why. Joe --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzEro8ACgkQXVIcjOaxUBZQ9ACeONvFxhQQm7kkcNWrB0+HGR8F MTcAoJ5l8O0Rs+RKd2ImaiIQcMWvWwnU =jHxj -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 18: 4:51 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from guru.mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with ESMTP id EDAB337B429 for ; Mon, 22 Apr 2002 18:04:47 -0700 (PDT) Received: (from mwm@localhost) by guru.mired.org (8.11.1/8.11.2) id g3N14im24849 for hackers@freebsd.org; Mon, 22 Apr 2002 20:04:44 -0500 (CDT) (envelope-from mwm-dated-1019955884.8b118e@mired.org) X-Authentication-Warning: guru.mired.org: mwm set sender to mwm-dated-1019955884.8b118e@mired.org using -f MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15556.45867.668486.259740@guru.mired.org> Date: Mon, 22 Apr 2002 20:04:43 -0500 To: Jordan Hubbard Cc: hackers@freebsd.org Subject: Re: ssh + compiled-in SKEY support considered harmful? In-Reply-To: <200204230039.g3N0dQ8i011313@winston.freebsd.org> References: <200204230039.g3N0dQ8i011313@winston.freebsd.org> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.51 (Python 2.2 on FreeBSD/i386) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In <200204230039.g3N0dQ8i011313@winston.freebsd.org>, Jordan Hubbard typed: > My question: Who's "wrong" here, FreeBSD or Mac OS X? If the latter, Someone decided that FreeBSD should do challengeresponse authentication by default. You can fix it by uncommenting the line "#ChallengeResponseAuthentication no" in /etc/ssh/sshd_config. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 18:39:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from slc.edu (weir-01c.slc.edu [207.106.89.46]) by hub.freebsd.org (Postfix) with ESMTP id 7ED0737B417 for ; Mon, 22 Apr 2002 18:39:19 -0700 (PDT) Received: (from anthony@localhost) by slc.edu (8.11.6/8.11.6) id g3N1fKP14662; Mon, 22 Apr 2002 21:41:20 -0400 (EDT) (envelope-from anthony) Date: Mon, 22 Apr 2002 21:41:20 -0400 From: Anthony Schneider To: Mike Meyer Cc: Jordan Hubbard , hackers@FreeBSD.ORG Subject: Re: ssh + compiled-in SKEY support considered harmful? Message-ID: <20020422214120.A14633@mail.slc.edu> References: <200204230039.g3N0dQ8i011313@winston.freebsd.org> <15556.45867.668486.259740@guru.mired.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <15556.45867.668486.259740@guru.mired.org>; from mwm-dated-1019955884.8b118e@mired.org on Mon, Apr 22, 2002 at 08:04:43PM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 22, 2002 at 08:04:43PM -0500, Mike Meyer wrote: > In <200204230039.g3N0dQ8i011313@winston.freebsd.org>, Jordan Hubbard typed: > > My question: Who's "wrong" here, FreeBSD or Mac OS X? If the latter, >=20 > Someone decided that FreeBSD should do challengeresponse > authentication by default. You can fix it by uncommenting the line > "#ChallengeResponseAuthentication no" in /etc/ssh/sshd_config. >=20 that's what fixxed it for me, too. SkeyAuthentication no also does it. :) -Anthony. ----------------------------------------------- PGP key at: http://www.keyserver.net/ http://www.anthonydotcom.com/gpgkey/key.txt Home: http://www.anthonydotcom.com ----------------------------------------------- --vkogqOf2sHV7VnPd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzEu78ACgkQ+rDjkNht5F2mMACfYxbazSOUnrTs0XOk00X1AAND xToAoIGhI8C9EssxCQ6I0ttn2yhiJAuh =z7cs -----END PGP SIGNATURE----- --vkogqOf2sHV7VnPd-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 18:40:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wemm.org (12-232-135-171.client.attbi.com [12.232.135.171]) by hub.freebsd.org (Postfix) with ESMTP id BF08337B422 for ; Mon, 22 Apr 2002 18:40:31 -0700 (PDT) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (8.11.6/8.11.6) with ESMTP id g3N1eVe28369 for ; Mon, 22 Apr 2002 18:40:31 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 8ACF638CC; Mon, 22 Apr 2002 18:40:31 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Mike Meyer Cc: Jordan Hubbard , hackers@FreeBSD.ORG Subject: Re: ssh + compiled-in SKEY support considered harmful? In-Reply-To: <15556.45867.668486.259740@guru.mired.org> Date: Mon, 22 Apr 2002 18:40:31 -0700 From: Peter Wemm Message-Id: <20020423014031.8ACF638CC@overcee.wemm.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike Meyer wrote: > In <200204230039.g3N0dQ8i011313@winston.freebsd.org>, Jordan Hubbard typed: > > My question: Who's "wrong" here, FreeBSD or Mac OS X? If the latter, > > Someone decided that FreeBSD should do challengeresponse > authentication by default. You can fix it by uncommenting the line > "#ChallengeResponseAuthentication no" in /etc/ssh/sshd_config. AHA! I've been wondering about this too. I cheated and set "Protocol 1,2" to avoid the whole issue. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 18:41:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from hermes.galileo.edu (hermes.galileo.edu [168.234.203.13]) by hub.freebsd.org (Postfix) with SMTP id 4DB5737B421 for ; Mon, 22 Apr 2002 18:40:39 -0700 (PDT) Received: (qmail 17531 invoked by uid 1020); 23 Apr 2002 01:44:41 -0000 Date: Mon, 22 Apr 2002 19:44:41 -0600 From: Oscar Bonilla To: Anthony Schneider Cc: Mike Meyer , Jordan Hubbard , hackers@FreeBSD.ORG Subject: Re: ssh + compiled-in SKEY support considered harmful? Message-ID: <20020422194441.A17469@galileo.edu> References: <200204230039.g3N0dQ8i011313@winston.freebsd.org> <15556.45867.668486.259740@guru.mired.org> <20020422214120.A14633@mail.slc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020422214120.A14633@mail.slc.edu>; from aschneid@mail.slc.edu on Mon, Apr 22, 2002 at 09:41:20PM -0400 X-Mailer: Mutt 1.2i (2000-05-09) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG shouldn't the default be no skey? On Mon, Apr 22, 2002 at 09:41:20PM -0400, Anthony Schneider wrote: > On Mon, Apr 22, 2002 at 08:04:43PM -0500, Mike Meyer wrote: > > In <200204230039.g3N0dQ8i011313@winston.freebsd.org>, Jordan Hubbard typed: > > > My question: Who's "wrong" here, FreeBSD or Mac OS X? If the latter, > > > > Someone decided that FreeBSD should do challengeresponse > > authentication by default. You can fix it by uncommenting the line > > "#ChallengeResponseAuthentication no" in /etc/ssh/sshd_config. > > > > that's what fixxed it for me, too. > SkeyAuthentication no also does it. :) > -Anthony. > > ----------------------------------------------- > PGP key at: > http://www.keyserver.net/ > http://www.anthonydotcom.com/gpgkey/key.txt > Home: > http://www.anthonydotcom.com > ----------------------------------------------- > -- pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 18:43: 0 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by hub.freebsd.org (Postfix) with ESMTP id 569A737B400 for ; Mon, 22 Apr 2002 18:42:55 -0700 (PDT) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id E59CFA809; Tue, 23 Apr 2002 11:42:53 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id E44DA5422; Tue, 23 Apr 2002 11:42:53 +1000 (EST) Date: Tue, 23 Apr 2002 11:42:53 +1000 (EST) From: Andrew To: Jordan Hubbard Cc: hackers@freebsd.org Subject: Re: ssh + compiled-in SKEY support considered harmful? In-Reply-To: <200204230039.g3N0dQ8i011313@winston.freebsd.org> Message-ID: <20020423113925.N45031-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 22 Apr 2002, Jordan Hubbard wrote: > We at Apple are noticing a strange problem with newer versions of > ssh (which has been upgraded to OpenSSH_3.1p1) and FreeBSD 4.5-STABLE's > sshd. This problem did not occur with our older ssh, but it also does not It's just your settings. Issues like this really belong on -questions ;-) You can put "ChallengeResponseAuthentication no" into ssh{,d}_config on either end. Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 19: 1:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from winston.freebsd.org (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id 52EC937B400 for ; Mon, 22 Apr 2002 19:01:23 -0700 (PDT) Received: from winston.freebsd.org (jkh@localhost [127.0.0.1]) by winston.freebsd.org (8.12.2/8.12.2) with ESMTP id g3N21L7W011532; Mon, 22 Apr 2002 19:01:21 -0700 (PDT) (envelope-from jkh@winston.freebsd.org) To: Oscar Bonilla Cc: Anthony Schneider , Mike Meyer , hackers@FreeBSD.ORG Subject: Re: ssh + compiled-in SKEY support considered harmful? In-Reply-To: Message from Oscar Bonilla of "Mon, 22 Apr 2002 19:44:41 MDT." <20020422194441.A17469@galileo.edu> Date: Mon, 22 Apr 2002 19:01:21 -0700 Message-ID: <11531.1019527281@winston.freebsd.org> From: Jordan Hubbard Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG That would be my question as well, especially since "everyone else" seems to use that default. Thanks to all who responded, and so quickly at that - this at least clarified the situation (and gave me a way out!). - Jordan > shouldn't the default be no skey? > > On Mon, Apr 22, 2002 at 09:41:20PM -0400, Anthony Schneider wrote: > > On Mon, Apr 22, 2002 at 08:04:43PM -0500, Mike Meyer wrote: > > > In <200204230039.g3N0dQ8i011313@winston.freebsd.org>, Jordan Hubbard typed: > > > > My question: Who's "wrong" here, FreeBSD or Mac OS X? If the latter, > > > > > > Someone decided that FreeBSD should do challengeresponse > > > authentication by default. You can fix it by uncommenting the line > > > "#ChallengeResponseAuthentication no" in /etc/ssh/sshd_config. > > > > > > > that's what fixxed it for me, too. > > SkeyAuthentication no also does it. :) > > -Anthony. > > > > ----------------------------------------------- > > PGP key at: > > http://www.keyserver.net/ > > http://www.anthonydotcom.com/gpgkey/key.txt > > Home: > > http://www.anthonydotcom.com > > ----------------------------------------------- > > > > > > -- > pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 19:17:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id F3C1B37B416; Mon, 22 Apr 2002 19:17:10 -0700 (PDT) Received: from pool0527.cvx21-bradley.dialup.earthlink.net ([209.179.194.17] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 16zprg-0007MP-00; Mon, 22 Apr 2002 19:17:09 -0700 Message-ID: <3CC4C408.4B2501F@mindspring.com> Date: Mon, 22 Apr 2002 19:16:40 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Kenneth Culver Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: implementing linux mmap2 syscall References: <200204211525.08827.culverk@yumyumyum.org> <3CC3E619.8AD5EFF9@mindspring.com> <200204220923.35667.culverk@yumyumyum.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kenneth Culver wrote: > > This is too much work. > > > > Basically, it just wants to bitch when the offset is not page > > aligned, and then call the old mmap if it doesn't bitch. > > > OK, I think I can do that, thanks for the help. Will anyone be interested in > patches when/if I get this working? I also implemented ftruncate64 (which > just calls ftruncate). Sure. PR them, and then send email to whoever CVS says touched them last. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 19:42: 1 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 5DB3037B417 for ; Mon, 22 Apr 2002 19:41:58 -0700 (PDT) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.6) with SMTP id g3N2f3w54443; Mon, 22 Apr 2002 22:41:04 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Mon, 22 Apr 2002 22:41:02 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Jordan Hubbard Cc: Oscar Bonilla , Anthony Schneider , Mike Meyer , hackers@FreeBSD.ORG Subject: Re: ssh + compiled-in SKEY support considered harmful? In-Reply-To: <11531.1019527281@winston.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 22 Apr 2002, Jordan Hubbard wrote: > That would be my question as well, especially since "everyone else" > seems to use that default. Thanks to all who responded, and so quickly > at that - this at least clarified the situation (and gave me a way > out!). This was discussed fairly extensively regarding -current: basically, s/key is "greedy" and attempts to fake s/key responses even for users who don't have s/key enabled. Nothing is wrong with challenge response -- arguably, that's a cleaner way to handle things as a default in the client, since it means if you connect to a server that does want to use challenge response, it DTRT. The fix in -CURRENT, I believe, was to make s/key "faking" for non-enabled users be an option, and to turn the option off by default. That fix relies on the extensive PAM updates in -CURRENT however; in -STABLE it can probably be similarly replicated via appropriate tweaking of sshd (?). Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 19:51:55 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by hub.freebsd.org (Postfix) with ESMTP id 7ACB537B41A for ; Mon, 22 Apr 2002 19:51:50 -0700 (PDT) Received: from pool0527.cvx21-bradley.dialup.earthlink.net ([209.179.194.17] helo=mindspring.com) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 16zqOv-0002Q5-00; Mon, 22 Apr 2002 19:51:29 -0700 Message-ID: <3CC4CC15.6DED09F8@mindspring.com> Date: Mon, 22 Apr 2002 19:51:01 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Andrew Cc: Jordan Hubbard , hackers@freebsd.org Subject: Re: ssh + compiled-in SKEY support considered harmful? References: <20020423113925.N45031-100000@starbug.ugh.net.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andrew wrote: > On Mon, 22 Apr 2002, Jordan Hubbard wrote: > > We at Apple are noticing a strange problem with newer versions of > > ssh (which has been upgraded to OpenSSH_3.1p1) and FreeBSD 4.5-STABLE's > > sshd. This problem did not occur with our older ssh, but it also does not > > It's just your settings. Issues like this really belong on -questions ;-) > > You can put "ChallengeResponseAuthentication no" into ssh{,d}_config on > either end. I beg to differ. When the default behaviour is changed, the dicussion belongs here, since here is where the proplr who live who can change it back to The Way It Is Supposed To Be By Default(tm). IMO, you should have to: "Add ``ChallengeResponseAuthentication yes'' to get the new behaviour" NOT: "Add ``ChallengeResponseAuthentication no'' to get the historical behaviour" It's really damn annoying. Maybe the intention was to subtlely harass people who put passwords challenge/response pairs into shell scripts, but the effect has been to unsubtlely harass people who wire their typing of passwords into their medulla. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 19:53:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from winston.freebsd.org (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id 6050C37B417; Mon, 22 Apr 2002 19:53:07 -0700 (PDT) Received: from winston.freebsd.org (jkh@localhost [127.0.0.1]) by winston.freebsd.org (8.12.2/8.12.2) with ESMTP id g3N2r67W011671; Mon, 22 Apr 2002 19:53:06 -0700 (PDT) (envelope-from jkh@winston.freebsd.org) To: Robert Watson Cc: Oscar Bonilla , Anthony Schneider , Mike Meyer , hackers@FreeBSD.ORG Subject: Re: ssh + compiled-in SKEY support considered harmful? In-Reply-To: Message from Robert Watson of "Mon, 22 Apr 2002 22:41:02 EDT." Date: Mon, 22 Apr 2002 19:53:06 -0700 Message-ID: <11670.1019530386@winston.freebsd.org> From: Jordan Hubbard Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > That fix relies on the extensive PAM updates in -CURRENT however; in > -STABLE it can probably be similarly replicated via appropriate tweaking > of sshd (?). Why not fix it in stable by the very simple tweaking of the ChallengeResponseAuthentication to no in the sshd config file we ship Trust me, this question is going to come up a _lot_ for us otherwise. :( - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 20: 3:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by hub.freebsd.org (Postfix) with ESMTP id CA07A37B417 for ; Mon, 22 Apr 2002 20:03:39 -0700 (PDT) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id 9315DA809; Tue, 23 Apr 2002 13:03:38 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id 8FB375422; Tue, 23 Apr 2002 13:03:38 +1000 (EST) Date: Tue, 23 Apr 2002 13:03:38 +1000 (EST) From: Andrew To: Terry Lambert Cc: Jordan Hubbard , Subject: Re: ssh + compiled-in SKEY support considered harmful? In-Reply-To: <3CC4CC15.6DED09F8@mindspring.com> Message-ID: <20020423130148.N45031-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 22 Apr 2002, Terry Lambert wrote: > When the default behaviour is changed, the dicussion belongs here, I was only joking...hence the ;-) on the end. The original question wasn't why did the defualt configuration change but "what changed" anyway. Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 20:12:31 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 1A16937B417 for ; Mon, 22 Apr 2002 20:12:29 -0700 (PDT) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g3N3CG2D561692; Mon, 22 Apr 2002 23:12:27 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20020423014031.8ACF638CC@overcee.wemm.org> References: <20020423014031.8ACF638CC@overcee.wemm.org> Date: Mon, 22 Apr 2002 23:12:15 -0400 To: Peter Wemm From: Garance A Drosihn Subject: Re: ssh + compiled-in SKEY support considered harmful? Cc: Jordan Hubbard , hackers@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 6:40 PM -0700 4/22/02, Peter Wemm wrote: >Mike Meyer wrote: > > Jordan Hubbard typed: > > > My question: Who's "wrong" here, FreeBSD or Mac OS X? If the latter, >> >> Someone decided that FreeBSD should do challengeresponse >> authentication by default. You can fix it by uncommenting the line >> "#ChallengeResponseAuthentication no" in /etc/ssh/sshd_config. > >AHA! I've been wondering about this too. I cheated and set >"Protocol 1,2" to avoid the whole issue. The release notes at: http://www.FreeBSD.org/releases/4.5R/errata.html imply you can also fix this on the client side by adding the line: PreferredAuthentications publickey,password,keyboard-interactive to your own ~/.ssh/config file (useful if you need to connect to some machine where you can't change the /etc/ssh/sshd_config file). Usually I wouldn't know these things, but I just happened to be reading the errata notes a few minutes ago... :-) -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 20:13:26 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by hub.freebsd.org (Postfix) with SMTP id 02E1B37B416 for ; Mon, 22 Apr 2002 20:13:12 -0700 (PDT) Received: (qmail 25573 invoked from network); 23 Apr 2002 03:12:54 -0000 Received: from ken.yumyumyum.org (192.168.0.2) by router.yumyumyum.org with SMTP; 23 Apr 2002 03:12:54 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Kenneth Culver To: Andrew Gallatin Subject: Re: implementing linux mmap2 syscall Date: Mon, 22 Apr 2002 23:13:29 -0400 X-Mailer: KMail [version 1.4] References: <200204211525.08827.culverk@yumyumyum.org> <15556.6399.62081.426193@grasshopper.cs.duke.edu> In-Reply-To: <15556.6399.62081.426193@grasshopper.cs.duke.edu> Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200204222313.29181.culverk@yumyumyum.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 22 April 2002 10:06 am, you wrote: > Kenneth Culver writes: > > static inline unsigned long do_mmap(struct file *file, unsigned long > > addr, > > <..> > > > =09=09ret =3D do_mmap_pgoff(file, addr, len, prot, flag, offset >> > > PAGE_SHIFT); out: > > =09return ret; > > } > > > > This is what mmap2 does: > > > > andstatic inline long do_mmap2( > > =09unsigned long addr, unsigned long len, > > =09unsigned long prot, unsigned long flags, > > =09unsigned long fd, unsigned long pgoff) > > <...> > > > =09error =3D do_mmap_pgoff(file, addr, len, prot, flags, pgoff); > > > > > > So what it looks like to me is that mmap2 expects an offset that's > > already page-aligned (I'm not sure if this is the right way to say i= t), > > where mmap doesn't. the FreeBSD code in the linuxulator basically ju= st > > takes the offset > > To me, it looks like mmap2 takes an offset that's a page index, rather > than a byte position. Since linux passes the offset with a 32-bit > long, rather than a 64-bit off_t like we do, they need to do this in > order to be able to map offsets larger than 4GB into a file. > > For linux_mmap2, I'd think we want to do roughly the same things as > linux_mmap, but with bsd_args.pos =3D ctob((off_t)linux_args.pos) > > Drew OK, I found another problem, here it is: static void linux_prepsyscall(struct trapframe *tf, int *args, u_int *code, caddr_t=20 *params) { =09args[0] =3D tf->tf_ebx; =09args[1] =3D tf->tf_ecx; =09args[2] =3D tf->tf_edx; =09args[3] =3D tf->tf_esi; =09args[4] =3D tf->tf_edi; =09*params =3D NULL;=09=09/* no copyin */ } Basically, linux_mmap2 takes 6 args, and this looks here like only 5 args= are=20 making it in... I checked this because the sixth argument to linux_mmap2(= ) in=20 truss was showing 0x6, but when I printed out that arg from the kernel, i= t=20 was showing 0x0. Am I correct here? Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 20:29: 1 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx2.irbs.com (mx2.irbs.com [66.33.113.57]) by hub.freebsd.org (Postfix) with ESMTP id 9840D37B417 for ; Mon, 22 Apr 2002 20:28:58 -0700 (PDT) Received: from localhost (localhost.irbs.com [127.0.0.1]) by mx2.irbs.com (Postfix) with ESMTP id 0440578238 for ; Mon, 22 Apr 2002 23:28:58 -0400 (EDT) Received: by mx2.irbs.com (Postfix, from userid 61) id 33DFA78234; Mon, 22 Apr 2002 23:28:56 -0400 (EDT) From: postmaster@irbs.com To: freebsd-hackers Message-Id: <20020423032856.33DFA78234@mx2.irbs.com> Date: Mon, 22 Apr 2002 23:28:56 -0400 (EDT) X-Virus-Scanned: by Sophos Sweep Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Subject: VIRUS IN YOUR MAIL V I R U S A L E R T Our viruschecker found the 'W32/Klez-G' 'W32/Klez-G' virus(es) in your email. Please check your system for viruses, or ask your system administrator to do so. For your reference, here are the headers from your email: ------------------------- BEGIN HEADERS ----------------------------- Received: from uzdeco.com (unknown [218.30.255.44]) by mx2.irbs.com (Postfix) with ESMTP id A8FAA78201 for ; Mon, 22 Apr 2002 23:28:31 -0400 (EDT) Received: from Zioiupbq (leonid.uzdeco.com [192.168.1.9]) by uzdeco.com (8.9.3/8.8.7) with SMTP id IAA21828 for ; Tue, 23 Apr 2002 08:33:30 +0500 Date: Tue, 23 Apr 2002 08:33:30 +0500 Message-Id: <200204230333.IAA21828@uzdeco.com> From: freebsd-hackers To: jc@irbs.com Subject: Language MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=GBo5i03a6i54ow66T9pu743m3P -------------------------- END HEADERS ------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 20:46:56 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 2849737B417; Mon, 22 Apr 2002 20:46:50 -0700 (PDT) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 24BB181556; Tue, 23 Apr 2002 13:16:46 +0930 (CST) Date: Tue, 23 Apr 2002 13:16:46 +0930 From: Greg 'groggy' Lehey To: Jordan Hubbard Cc: Robert Watson , Oscar Bonilla , Anthony Schneider , Mike Meyer , hackers@FreeBSD.ORG Subject: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) Message-ID: <20020423131646.I6425@wantadilla.lemis.com> References: <11670.1019530386@winston.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11670.1019530386@winston.freebsd.org> User-Agent: Mutt/1.3.23i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday, 22 April 2002 at 19:53:06 -0700, Jordan Hubbard wrote: >> That fix relies on the extensive PAM updates in -CURRENT however; in >> -STABLE it can probably be similarly replicated via appropriate tweaking >> of sshd (?). > > Why not fix it in stable by the very simple tweaking of the > ChallengeResponseAuthentication to no in the sshd config file we ship > Trust me, this question is going to come up a _lot_ for us otherwise. :( I've been noticing a continuing trend for more and more "safe" configurations the default. I spent half a day recently trying to find why I could no longer open windows on my X display, only to discover that somebody had turned off tcp connections by default. I have a problem with this, and as you imply, so will a lot of other people. As a result of this sort of thing, people trying to migrate from other systems will probably just give up. I certainly would have. While it's a laudable aim to have a secure system, you have to be able to use it too. I'd suggest that we do the following: 1. Give the user the choice of these additional features at installation time. Recommend the procedures, but explain that you need to understand the differences. 2. Document these things very well. Both this ssh change and the X without TCP change are confusing. If three core team members were surprised, it's going to surprise the end user a whole lot more. We should at least have had a HEADS UP, and we probably need a security policy document with the distributions. Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 21:14:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from slc.edu (weir-01c.slc.edu [207.106.89.46]) by hub.freebsd.org (Postfix) with ESMTP id 0CBA837B41A; Mon, 22 Apr 2002 21:14:30 -0700 (PDT) Received: (from anthony@localhost) by slc.edu (8.11.6/8.11.6) id g3N4GqJ15199; Tue, 23 Apr 2002 00:16:52 -0400 (EDT) (envelope-from anthony) Date: Tue, 23 Apr 2002 00:16:52 -0400 From: Anthony Schneider To: "Greg 'groggy' Lehey" Cc: Jordan Hubbard , Robert Watson , Oscar Bonilla , Mike Meyer , hackers@FreeBSD.ORG Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) Message-ID: <20020423001652.A15133@mail.slc.edu> References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020423131646.I6425@wantadilla.lemis.com>; from grog@FreeBSD.ORG on Tue, Apr 23, 2002 at 01:16:46PM +0930 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > be able to use it too. I'd suggest that we do the following: >=20 > 1. Give the user the choice of these additional features at > installation time. Recommend the procedures, but explain that you > need to understand the differences. >=20 > 2. Document these things very well. Both this ssh change and the X > without TCP change are confusing. If three core team members were > surprised, it's going to surprise the end user a whole lot more. > We should at least have had a HEADS UP, and we probably need a > security policy document with the distributions. >=20 I disagree somewhat with #1. A "secure by default" policy is by far more favorable than a "not so secure by default, but we'll try to let you know how to make it more secure easily" policy. Consider a move to make telnetd commented out in inetd.conf a default. Many newcomers will of course be baffled, but it is in the long run a better policy, and people will get=20 used to it. =20 This example is somewhat of an *extremely* simplified analogy to adding s/key authentication as a default before password authentication, but it=20 still holds in that a default installation had better be more secure than= =20 not. If FreeBSD were to have installation dialogues with the user=20 suggesting that the user install certain components for security purposes,= =20 the user will likely opt for the default "button," which I assume in this= =20 case would default to have the less secure, more conventional option. =20 I think that #2 alone is the way to go. Make it "clear" (not that that=20 is necessarily an easy task) that the default install of a certain=20 software package no longer follows what has historically been the default,= =20 or at least do so in the case where the software will become unusable to=20 the unknowing user. Perhaps a "SEVERE DIFFERENCES" section of www.freebsd.org is in order? 8D -Anthony. > Greg > -- > See complete headers for address and phone numbers >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message ----------------------------------------------- PGP key at: http://www.keyserver.net/ http://www.anthonydotcom.com/gpgkey/key.txt Home: http://www.anthonydotcom.com ----------------------------------------------- --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzE4DQACgkQ+rDjkNht5F3VWgCcD9tLXsA+FtswntwgvJVjCtTt Mb0An0mzxR1HpObecoV7wTi+Q8DJgEj/ =hzuW -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 21:46:27 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from herbelot.dyndns.org (d013.dhcp212-198-27.noos.fr [212.198.27.13]) by hub.freebsd.org (Postfix) with ESMTP id B487637B404 for ; Mon, 22 Apr 2002 21:46:23 -0700 (PDT) Received: from herbelot.com (tulipe.herbelot.nom [192.168.1.5]) by herbelot.dyndns.org (8.9.3/8.9.3) with ESMTP id GAA33809; Tue, 23 Apr 2002 06:46:19 +0200 (CEST) (envelope-from thierry@herbelot.com) Message-ID: <3CC4E71A.265861D5@herbelot.com> Date: Tue, 23 Apr 2002 06:46:18 +0200 From: Thierry Herbelot X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Marc Heckmann Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: "boot -a" in 4.5-STABLE References: <20020422174455.GA8682@merconic.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Marc Heckmann wrote: > > I've got 4.5-STABLE setup here with vinum as per the Vinum bootstrapping howto > (http://www.freebsd.org/doc/en_US.ISO8859-1/articles/vinum/index.html). > > I have ad0s1a which is "/" and ad2s1a which is mounted on /rootback, it's an > exact copy of the "/" filesystem. ^^^^^ [SNIP] > mountroot> ufs:/dev/ad2s1a > Mounting root from ufs:/dev/ad0s1a <---- NOTE this if the root partitions are identical, the /etc/fstab files are also identical, so you are truing to mount the initial root paartition from the second disk. TfH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Apr 22 21:52:40 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id 25DB537B405; Mon, 22 Apr 2002 21:52:29 -0700 (PDT) Received: from bmah.dyndns.org ([12.233.149.189]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020423045228.TLQI1901.rwcrmhc52.attbi.com@bmah.dyndns.org>; Tue, 23 Apr 2002 04:52:28 +0000 Received: from intruder.bmah.org (localhost [127.0.0.1]) by bmah.dyndns.org (8.12.3/8.12.3) with ESMTP id g3N4qScB049304; Mon, 22 Apr 2002 21:52:28 -0700 (PDT) (envelope-from bmah@intruder.bmah.org) Received: (from bmah@localhost) by intruder.bmah.org (8.12.3/8.12.3/Submit) id g3N4qSiK049303; Mon, 22 Apr 2002 21:52:28 -0700 (PDT) Message-Id: <200204230452.g3N4qSiK049303@intruder.bmah.org> X-Mailer: exmh version 2.5+ 20020416 with nmh-1.0.4 To: "Greg 'groggy' Lehey" Cc: hackers@FreeBSD.ORG Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) In-reply-to: <20020423131646.I6425@wantadilla.lemis.com> References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> Comments: In-reply-to "Greg 'groggy' Lehey" message dated "Tue, 23 Apr 2002 13:16:46 +0930." From: "Bruce A. Mah" Reply-To: bmah@FreeBSD.ORG X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Image-Url: http://www.employees.org/~bmah/Images/bmah-cisco-small.gif X-Url: http://www.employees.org/~bmah/ Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 22 Apr 2002 21:52:28 -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [CC list trimmed] If memory serves me right, "Greg 'groggy' Lehey" wrote: > 2. Document these things very well. Both this ssh change and the X > without TCP change are confusing. If three core team members were > surprised, it's going to surprise the end user a whole lot more. The SSH change happened before 4.5-RELEASE, but wasn't documented. I admit to having been totally unaware of this change at the time. green and I made several attempts at an item for the errata, which, while not perfect, does give some workarounds for the problem, including almost every one mentioned in this thread. So far, it looks like precious few people on this thread actually read it. :-( > We should at least have had a HEADS UP, Having run into the SSH change myself, I agree. I haven't bumped into the "X without TCP" change. > and we probably need a > security policy document with the distributions. Hmmm. Still trying to wrap my mind around this concept, but I'm worried that people won't read *that* document either. In any case, someone needs to maintain it to make sure it doesn't get stale. Cheers, Bruce. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 0:50:38 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from SRDMAIL.SINP.MSU.RU (bigking.sinp.msu.ru [213.131.9.130]) by hub.freebsd.org (Postfix) with ESMTP id 0C06237B417 for ; Tue, 23 Apr 2002 00:50:16 -0700 (PDT) Received: from dima (helo=localhost) by SRDMAIL.SINP.MSU.RU with local-esmtp (Exim 3.34 #1) id 16zv4T-000JlD-00 for freebsd-hackers@FreeBSD.org; Tue, 23 Apr 2002 11:50:41 +0400 Date: Tue, 23 Apr 2002 11:50:41 +0400 (MSD) From: Dmitry Mottl To: freebsd-hackers@FreeBSD.org Subject: make installworld failed on 4.0-RELEASE Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! I have a problem upgrading 4.0-RELEASE to 4-STABLE from remotely mounted /usr/src and /usr/obj: ELF binary type not known. Use "brandelf" to brand it Why? === # cd /usr/src; make installworld [skipped] -------------------------------------------------------------- >>> Installing everything.. -------------------------------------------------------------- cd /usr/src; make -f Makefile.inc1 install ===> share/info ===> include if [ -h /usr/include/cam ]; then rm -f /usr/include/cam; fi if [ -h /usr/include/msdosfs ]; then rm -f /usr/include/msdosfs; fi if [ -h /usr/include/net ]; then rm -f /usr/include/net; fi if [ -h /usr/include/netatalk ]; then rm -f /usr/include/netatalk; fi if [ -h /usr/include/netatm ]; then rm -f /usr/include/netatm; fi if [ -h /usr/include/netgraph ]; then rm -f /usr/include/netgraph; fi if [ -h /usr/include/netinet ]; then rm -f /usr/include/netinet; fi if [ -h /usr/include/netinet6 ]; then rm -f /usr/include/netinet6; fi if [ -h /usr/include/netipx ]; then rm -f /usr/include/netipx; fi if [ -h /usr/include/netkey ]; then rm -f /usr/include/netkey; fi if [ -h /usr/include/netnatm ]; then rm -f /usr/include/netnatm; fi if [ -h /usr/include/netncp ]; then rm -f /usr/include/netncp; fi if [ -h /usr/include/netns ]; then rm -f /usr/include/netns; fi if [ -h /usr/include/netsmb ]; then rm -f /usr/include/netsmb; fi if [ -h /usr/include/nfs ]; then rm -f /usr/include/nfs; fi if [ -h /usr/include/ntfs ]; then rm -f /usr/include/ntfs; fi if [ -h /usr/include/nwfs ]; then rm -f /usr/include/nwfs; fi if [ -h /usr/include/pccard ]; then rm -f /usr/include/pccard; fi if [ -h /usr/include/posix4 ]; then rm -f /usr/include/posix4; fi if [ -h /usr/include/sys ]; then rm -f /usr/include/sys; fi if [ -h /usr/include/vm ]; then rm -f /usr/include/vm; fi if [ -h /usr/include/fs/smbfs ]; then rm -f /usr/include/fs/smbfs; fi if [ -h /usr/include/isofs/cd9660 ]; then rm -f /usr/include/isofs/cd9660; fi if [ -h /usr/include/ufs/ffs ]; then rm -f /usr/include/ufs/ffs; fi if [ -h /usr/include/ufs/mfs ]; then rm -f /usr/include/ufs/mfs; fi if [ -h /usr/include/ufs/ufs ]; then rm -f /usr/include/ufs/ufs; fi if [ -h /usr/include/dev/ppbus ]; then rm -f /usr/include/dev/ppbus; fi if [ -h /usr/include/dev/usb ]; then rm -f /usr/include/dev/usb; fi if [ -h /usr/include/machine ]; then rm -f /usr/include/machine; fi mtree -deU -f /usr/src/include/../etc/mtree/BSD.include.dist -p /usr/include cd /usr/src/include/../sys; install -C -o root -g wheel -m 444 cam/*.h /usr/include/cam ELF binary type not known. Use "brandelf" to brand it. Abort trap *** Error code 134 Stop in /usr/src/include. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. === - Dmitry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 1:15:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail1.home.nl (mail1.home.nl [213.51.129.225]) by hub.freebsd.org (Postfix) with ESMTP id 395E837B405; Tue, 23 Apr 2002 01:15:09 -0700 (PDT) Received: from lisa.CC40670-a.groni1.gr.nl.home.com ([217.123.110.189]) by mail1.home.nl (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20020423080953.MIVZ1365.mail1.home.nl@lisa.CC40670-a.groni1.gr.nl.home.com>; Tue, 23 Apr 2002 10:09:53 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Jochem Kossen To: "Greg 'groggy' Lehey" Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) Date: Tue, 23 Apr 2002 10:09:51 +0200 X-Mailer: KMail [version 1.4] References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> In-Reply-To: <20020423131646.I6425@wantadilla.lemis.com> Cc: hackers@FreeBSD.ORG MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200204231009.51297.j.kossen@home.nl> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday 23 April 2002 05:46, Greg 'groggy' Lehey wrote: > On Monday, 22 April 2002 at 19:53:06 -0700, Jordan Hubbard wrote: > >> That fix relies on the extensive PAM updates in -CURRENT however; > >> in -STABLE it can probably be similarly replicated via appropriate > >> tweaking of sshd (?). > > > > Why not fix it in stable by the very simple tweaking of the > > ChallengeResponseAuthentication to no in the sshd config file we > > ship Trust me, this question is going to come up a _lot_ for us > > otherwise. :( > > I've been noticing a continuing trend for more and more "safe" > configurations the default. I spent half a day recently trying to > find why I could no longer open windows on my X display, only to > discover that somebody had turned off tcp connections by default. *shrug* I was the one who sent in the patch. It was added some time=20 around 2001/10/26 to the XFree86-4 megaport. When the metaport was=20 created, the patch was incorporated too.=20 A simple 'man startx' should have cleared your mind: Except for the '-listen_tcp' option, arguments immediately following the startx command are used to start a client in the same manner as xinit(1). The '-listen_tcp' option of startx enables the TCP/IP transport type which is needed for remote X displays. This is disabled by default for security reasons. > I have a problem with this, and as you imply, so will a lot of other > people. As a result of this sort of thing, people trying to migrate > from other systems will probably just give up. I certainly would > have. While it's a laudable aim to have a secure system, you have to > be able to use it too. I'd suggest that we do the following: > > 1. Give the user the choice of these additional features at > installation time. Recommend the procedures, but explain that > you need to understand the differences. > > 2. Document these things very well. Both this ssh change and the X > without TCP change are confusing. If three core team members > were surprised, it's going to surprise the end user a whole lot more. > We should at least have had a HEADS UP, and we probably need a > security policy document with the distributions. I'd agree with option 2. Except that people trying to use X with tcp=20 connections probably won't look in the security policy document for a=20 solution. In the case of the X patch, i'd add it to the release notes=20 AND the security policy document, since - i think - few people will=20 look in the security policy document for such a problem. I do have to say you're the first one I see who complains about this... Jochem To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 2: 5:10 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id CB70437B419 for ; Tue, 23 Apr 2002 02:05:01 -0700 (PDT) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id A3EFC81663; Tue, 23 Apr 2002 18:34:52 +0930 (CST) Date: Tue, 23 Apr 2002 18:34:52 +0930 From: Greg 'groggy' Lehey To: Jochem Kossen Cc: hackers@FreeBSD.ORG Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) Message-ID: <20020423183452.M6425@wantadilla.lemis.com> References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> <200204231009.51297.j.kossen@home.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200204231009.51297.j.kossen@home.nl> User-Agent: Mutt/1.3.23i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday, 23 April 2002 at 10:09:51 +0200, Jochem Kossen wrote: > On Tuesday 23 April 2002 05:46, Greg 'groggy' Lehey wrote: >> On Monday, 22 April 2002 at 19:53:06 -0700, Jordan Hubbard wrote: >>>> That fix relies on the extensive PAM updates in -CURRENT however; >>>> in -STABLE it can probably be similarly replicated via appropriate >>>> tweaking of sshd (?). >>> >>> Why not fix it in stable by the very simple tweaking of the >>> ChallengeResponseAuthentication to no in the sshd config file we >>> ship Trust me, this question is going to come up a _lot_ for us >>> otherwise. :( >> >> I've been noticing a continuing trend for more and more "safe" >> configurations the default. I spent half a day recently trying to >> find why I could no longer open windows on my X display, only to >> discover that somebody had turned off tcp connections by default. > > *shrug* I was the one who sent in the patch. It was added some time > around 2001/10/26 to the XFree86-4 megaport. When the metaport was > created, the patch was incorporated too. > > A simple 'man startx' should have cleared your mind: Well, yes. But I've been using X for 11 years. Why should I have to read the man page to find changes? How do I know which man page to read? If I did that for everything that happened, I wouldn't get any work done. And you can bet your bottom dollar that somebody coming from another UNIX variant and trying out FreeBSD won't do so. They'll just say that it's broken and wander off again. >> I have a problem with this, and as you imply, so will a lot of other >> people. As a result of this sort of thing, people trying to migrate >> from other systems will probably just give up. I certainly would >> have. While it's a laudable aim to have a secure system, you have to >> be able to use it too. I'd suggest that we do the following: >> >> 1. Give the user the choice of these additional features at >> installation time. Recommend the procedures, but explain that >> you need to understand the differences. >> >> 2. Document these things very well. Both this ssh change and the X >> without TCP change are confusing. If three core team members >> were surprised, it's going to surprise the end user a whole lot more. >> We should at least have had a HEADS UP, and we probably need a >> security policy document with the distributions. > > I'd agree with option 2. Except that people trying to use X with tcp > connections probably won't look in the security policy document for a > solution. Correct. That's why I think option 1 is preferable. > In the case of the X patch, i'd add it to the release notes AND the > security policy document, since - i think - few people will look in > the security policy document for such a problem. I think it shouldn't happen at all unless people agree to it. > I do have to say you're the first one I see who complains about > this... Maybe the others have given up. But since we're on the subject, why? What's so insecure about X TCP connections? Until you explicitly allow connections, the only system that can open the server is the local system. -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 2:14: 5 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from taupo.cs.waikato.ac.nz (taupo.cs.waikato.ac.nz [130.217.250.12]) by hub.freebsd.org (Postfix) with ESMTP id 7179137B419; Tue, 23 Apr 2002 02:14:01 -0700 (PDT) Received: (from joerg@localhost) by taupo.cs.waikato.ac.nz (8.11.3/8.11.1) id g3N9Dxh56699; Tue, 23 Apr 2002 21:13:59 +1200 (NZST) (envelope-from joerg) Date: Tue, 23 Apr 2002 21:13:59 +1200 From: Joerg Micheel To: "Greg 'groggy' Lehey" Cc: Jochem Kossen , hackers@freebsd.org Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) Message-ID: <20020423211359.D48271@cs.waikato.ac.nz> References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> <200204231009.51297.j.kossen@home.nl> <20020423183452.M6425@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020423183452.M6425@wantadilla.lemis.com>; from grog@freebsd.org on Tue, Apr 23, 2002 at 06:34:52PM +0930 Operating-System: ... powered by FreeBSD Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Apr 23, 2002 at 06:34:52PM +0930, Greg 'groggy' Lehey wrote: > Well, yes. But I've been using X for 11 years. Why should I have to > read the man page to find changes? How do I know which man page to > read? If I did that for everything that happened, I wouldn't get any > work done. And you can bet your bottom dollar that somebody coming > from another UNIX variant and trying out FreeBSD won't do so. They'll > just say that it's broken and wander off again. FWIW, I would be extremly pissed about this myself, I just happen to not having installed 4.5 myself yet, for other reasons. I thought there was a policy of the least surprise, it might have been to kernel code, but should be applied here as well. The system has to work right away, when installed out of the box. Period. No when's and if's. And don't tell me that X11 is an add-on and luxury. We are living in the 21st century. Joerg -- Joerg B. Micheel Email: WAND and NLANR MOAT Email: The University of Waikato, CompScience Phone: +64 7 8384794 Private Bag 3105 Fax: +64 7 8585095 Hamilton, New Zealand Plan: PMA, TINE and the DAG's To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 2:36:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from infinitive.futureperfectcorporation.com (infinitive.futureperfectcorporation.com [196.25.137.68]) by hub.freebsd.org (Postfix) with SMTP id C6AF837B416 for ; Tue, 23 Apr 2002 02:36:30 -0700 (PDT) Received: (qmail 79057 invoked by uid 0); 23 Apr 2002 09:36:24 -0000 Received: from unknown (HELO gerund.futureperfectcorporation.com) (196.25.137.65) by infinitive.futureperfectcorporation.com with DES-CBC3-SHA encrypted SMTP; 23 Apr 2002 09:36:24 -0000 Received: (qmail 58574 invoked by uid 1001); 23 Apr 2002 09:38:27 -0000 Date: Tue, 23 Apr 2002 11:38:26 +0200 From: Neil Blakey-Milner To: Joerg Micheel Cc: Greg 'groggy' Lehey , Jochem Kossen , hackers@freebsd.org Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) Message-ID: <20020423093826.GA58411@mithrandr.moria.org> References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> <200204231009.51297.j.kossen@home.nl> <20020423183452.M6425@wantadilla.lemis.com> <20020423211359.D48271@cs.waikato.ac.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020423211359.D48271@cs.waikato.ac.nz> User-Agent: Mutt/1.3.27i Organization: iTouch Labs X-Operating-System: FreeBSD 4.3-RELEASE i386 X-URL: http://mithrandr.moria.org/nbm/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue 2002-04-23 (21:13), Joerg Micheel wrote: > On Tue, Apr 23, 2002 at 06:34:52PM +0930, Greg 'groggy' Lehey wrote: > > Well, yes. But I've been using X for 11 years. Why should I have to > > read the man page to find changes? How do I know which man page to > > read? If I did that for everything that happened, I wouldn't get any > > work done. And you can bet your bottom dollar that somebody coming > > from another UNIX variant and trying out FreeBSD won't do so. They'll > > just say that it's broken and wander off again. > > FWIW, I would be extremly pissed about this myself, I just happen to > not having installed 4.5 myself yet, for other reasons. I thought there > was a policy of the least surprise, it might have been to kernel code, > but should be applied here as well. > > The system has to work right away, when installed out of the box. Period. > No when's and if's. And don't tell me that X11 is an add-on and luxury. > We are living in the 21st century. There are people who will tell people that still use X11 tcp sockets to start living in the 21st century. ssh X11 forwarding still works, it's only the (often much lower security) tcp sockets that are disabled by default. (And if the "none" cipher is available, the overhead would be minimal for even the most underpowered machine.) At least Debian takes this stance, and so many believe it's a sane default. If it were reverted, I'm sure there'll be lots of people re-adding the change to their security regimen. And lots more people scurrying to patch when the next DoS or exploit comes out. Neil -- Neil Blakey-Milner nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 2:39:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.merconic.com (mail.merconic.com [62.96.220.180]) by hub.freebsd.org (Postfix) with SMTP id 396D137B416 for ; Tue, 23 Apr 2002 02:39:34 -0700 (PDT) Received: (qmail 19191 invoked by uid 306); 23 Apr 2002 09:39:33 -0000 Received: from scotty.ds9 (192.168.2.100) by uhura.ds9 with SMTP; 23 Apr 2002 09:39:31 -0000 Received: by scotty.ds9 (Postfix, from userid 754) id E77DB58374; Tue, 23 Apr 2002 11:39:30 +0200 (CEST) Date: Tue, 23 Apr 2002 11:39:30 +0200 From: Marc Heckmann To: Thierry Herbelot Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: "boot -a" in 4.5-STABLE Message-ID: <20020423093930.GB14225@merconic.com> References: <20020422174455.GA8682@merconic.com> <3CC4E71A.265861D5@herbelot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CC4E71A.265861D5@herbelot.com> User-Agent: Mutt/1.3.28i X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, On Tue, Apr 23, 2002 at 06:46:18AM +0200, Thierry Herbelot wrote: > Marc Heckmann wrote: > > > > I've got 4.5-STABLE setup here with vinum as per the Vinum bootstrapping howto > > (http://www.freebsd.org/doc/en_US.ISO8859-1/articles/vinum/index.html). > > > > I have ad0s1a which is "/" and ad2s1a which is mounted on /rootback, it's an > > exact copy of the "/" filesystem. > ^^^^^ > [SNIP] > > mountroot> ufs:/dev/ad2s1a > > Mounting root from ufs:/dev/ad0s1a <---- NOTE this > > if the root partitions are identical, the /etc/fstab files are also > identical, so you are truing to mount the initial root paartition from > the second disk. correct, the value in /etc/fstab, seems to override whatever I manually tell the kernel to use as the root device. But if I am booting with "-a" and "-s", shouldn't the fstab just be ignored? I should have / on ad2s1a mounted RO at that point so I can manually re-mount RW and edit my fstab. The vinum bootstrap howto also seems to describe that way. What is the expected behavious should be when using the "-a" switch? Thanks in advance -m -- m. heckmann. -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 3: 6:13 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail1.home.nl (mail1.home.nl [213.51.129.225]) by hub.freebsd.org (Postfix) with ESMTP id 1A0AD37B41A; Tue, 23 Apr 2002 03:06:05 -0700 (PDT) Received: from lisa.CC40670-a.groni1.gr.nl.home.com ([217.123.110.189]) by mail1.home.nl (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20020423100603.NOLJ1365.mail1.home.nl@lisa.CC40670-a.groni1.gr.nl.home.com>; Tue, 23 Apr 2002 12:06:03 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Jochem Kossen To: "Greg 'groggy' Lehey" Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) Date: Tue, 23 Apr 2002 12:06:01 +0200 X-Mailer: KMail [version 1.4] References: <200204231009.51297.j.kossen@home.nl> <20020423183452.M6425@wantadilla.lemis.com> In-Reply-To: <20020423183452.M6425@wantadilla.lemis.com> Cc: hackers@FreeBSD.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200204231206.01451.j.kossen@home.nl> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday 23 April 2002 11:04, you wrote: [...] > >> > >> I've been noticing a continuing trend for more and more "safe" > >> configurations the default. I spent half a day recently trying to > >> find why I could no longer open windows on my X display, only to > >> discover that somebody had turned off tcp connections by default. > > > > *shrug* I was the one who sent in the patch. It was added some time > > around 2001/10/26 to the XFree86-4 megaport. When the metaport was > > created, the patch was incorporated too. > > > > A simple 'man startx' should have cleared your mind: > > Well, yes. But I've been using X for 11 years. Why should I have to > read the man page to find changes? Because things evolve? :) > How do I know which man page to read? You start X with startx, seems obvious to me. The disabling of tcp=20 connections only applies to startx > If I did that for everything that happened, I wouldn't get any > work done. And you can bet your bottom dollar that somebody coming > from another UNIX variant and trying out FreeBSD won't do so. OK, then i suggest we mention it in the handbook, the security policy=20 document, the manpage AND the release notes :) > They'll just say that it's broken and wander off again. > >> I have a problem with this, and as you imply, so will a lot of > >> other people. As a result of this sort of thing, people trying to > >> migrate from other systems will probably just give up. I > >> certainly would have. While it's a laudable aim to have a secure > >> system, you have to be able to use it too. I'd suggest that we do > >> the following: > >> > >> 1. Give the user the choice of these additional features at > >> installation time. Recommend the procedures, but explain that > >> you need to understand the differences. > >> > >> 2. Document these things very well. Both this ssh change and the > >> X without TCP change are confusing. If three core team members > >> were surprised, it's going to surprise the end user a whole lot > >> more. We should at least have had a HEADS UP, and we probably need > >> a security policy document with the distributions. > > > > I'd agree with option 2. Except that people trying to use X with > > tcp connections probably won't look in the security policy document > > for a solution. > > Correct. That's why I think option 1 is preferable. I was trying to say to not just notify it in the security policy alone.=20 > > In the case of the X patch, i'd add it to the release notes AND the > > security policy document, since - i think - few people will look in > > the security policy document for such a problem. > > I think it shouldn't happen at all unless people agree to it. 3 people did, 0 people did not...read below > > I do have to say you're the first one I see who complains about > > this... > > Maybe the others have given up. LOL > But since we're on the subject, why? What's so insecure about X TCP > connections? Until you explicitly allow connections, the only system > that can open the server is the local system. For the simple reason I don't like useless open ports on my system. I=20 don't use it, _most_ other people don't use it, so i sent in a patch.=20 Peter Pentchev liked the idea, Jean-Marc Zucconi (the maintainer) didn't=20 have any objections, and when I showed the patch to Will Andrews when=20 he was busy with the meta port, he liked it too and integrated it. I=20 haven't seen any other reactions to it. Of course, it was only discussed on the ports@ mailinglist, but it=20 didn't seem like such a big deal to me or apparently the others... Jochem To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 3:13: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail1.home.nl (mail1.home.nl [213.51.129.225]) by hub.freebsd.org (Postfix) with ESMTP id E81EA37B400 for ; Tue, 23 Apr 2002 03:13:03 -0700 (PDT) Received: from lisa.CC40670-a.groni1.gr.nl.home.com ([217.123.110.189]) by mail1.home.nl (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20020423101303.NQCP1365.mail1.home.nl@lisa.CC40670-a.groni1.gr.nl.home.com>; Tue, 23 Apr 2002 12:13:03 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Jochem Kossen To: Joerg Micheel Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) Date: Tue, 23 Apr 2002 12:13:00 +0200 X-Mailer: KMail [version 1.4] References: <20020423183452.M6425@wantadilla.lemis.com> <20020423211359.D48271@cs.waikato.ac.nz> In-Reply-To: <20020423211359.D48271@cs.waikato.ac.nz> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200204231212.34754.j.kossen@home.nl> Cc: hackers@FreeBSD.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday 23 April 2002 11:13, you wrote: > On Tue, Apr 23, 2002 at 06:34:52PM +0930, Greg 'groggy' Lehey wrote: > > Well, yes. But I've been using X for 11 years. Why should I have > > to read the man page to find changes? How do I know which man page > > to read? If I did that for everything that happened, I wouldn't > > get any work done. And you can bet your bottom dollar that > > somebody coming from another UNIX variant and trying out FreeBSD > > won't do so. They'll just say that it's broken and wander off > > again. > > FWIW, I would be extremly pissed about this myself, I just happen to > not having installed 4.5 myself yet, for other reasons. I thought > there was a policy of the least surprise, it might have been to > kernel code, but should be applied here as well. I haven't seen your complaint anywhere... > The system has to work right away, when installed out of the box. > Period. No when's and if's. It does work. But i think you mean the tcp connections. Does that mean you vote for enabling _all_ services? They don't work out=20 of the box as well... > And don't tell me that X11 is an add-on and luxury. I agree, but the tcp connections IS an add-on luxury imho > We are living in the 21st century. That's right, the century of virii, DoS attacks, worms, and=20 scriptkiddiots. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 3:21:15 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from taupo.cs.waikato.ac.nz (taupo.cs.waikato.ac.nz [130.217.250.12]) by hub.freebsd.org (Postfix) with ESMTP id BC55537B417; Tue, 23 Apr 2002 03:21:10 -0700 (PDT) Received: (from joerg@localhost) by taupo.cs.waikato.ac.nz (8.11.3/8.11.1) id g3NAKx560183; Tue, 23 Apr 2002 22:20:59 +1200 (NZST) (envelope-from joerg) Date: Tue, 23 Apr 2002 22:20:58 +1200 From: Joerg Micheel To: Neil Blakey-Milner Cc: "Greg 'groggy' Lehey" , Jochem Kossen , hackers@freebsd.org Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) Message-ID: <20020423222058.B57646@cs.waikato.ac.nz> References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> <200204231009.51297.j.kossen@home.nl> <20020423183452.M6425@wantadilla.lemis.com> <20020423211359.D48271@cs.waikato.ac.nz> <20020423093826.GA58411@mithrandr.moria.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020423093826.GA58411@mithrandr.moria.org>; from nbm@mithrandr.moria.org on Tue, Apr 23, 2002 at 11:38:26AM +0200 Operating-System: ... powered by FreeBSD Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Apr 23, 2002 at 11:38:26AM +0200, Neil Blakey-Milner wrote: > There are people who will tell people that still use X11 tcp sockets to > start living in the 21st century. ssh X11 forwarding still works, it's > only the (often much lower security) tcp sockets that are disabled by > default. (And if the "none" cipher is available, the overhead would be > minimal for even the most underpowered machine.) I may not understand all the issues here, but can the situation be helped by improving the reporting. I.e. if the firewalling prohibits access to the X11 TCP socket, why would the firewall not report this instantly at the first attempt to connect, to be visible at the console and in /var/log/messages. I am sure Greg would have caught that first time around, and it would have safed him from a few hours of useless debugging time. Joerg -- Joerg B. Micheel Email: WAND and NLANR MOAT Email: The University of Waikato, CompScience Phone: +64 7 8384794 Private Bag 3105 Fax: +64 7 8585095 Hamilton, New Zealand Plan: PMA, TINE and the DAG's To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 3:22:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from www.example.org (dhcp-nic-val-26-130.cisco.com [64.103.26.130]) by hub.freebsd.org (Postfix) with SMTP id 1FD6637B400 for ; Tue, 23 Apr 2002 03:22:36 -0700 (PDT) Received: (qmail 9451 invoked by uid 1000); 23 Apr 2002 10:22:31 -0000 Message-ID: <20020423102231.9450.qmail@cobweb.example.org> Date: Tue, 23 Apr 2002 12:22:31 +0200 From: Marco Molteni To: hackers@freebsd.org Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) In-Reply-To: <20020423093826.GA58411@mithrandr.moria.org> References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> <200204231009.51297.j.kossen@home.nl> <20020423183452.M6425@wantadilla.lemis.com> <20020423211359.D48271@cs.waikato.ac.nz> <20020423093826.GA58411@mithrandr.moria.org> X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 23 Apr 2002 11:38:26 +0200, Neil Blakey-Milner wrote: > On Tue 2002-04-23 (21:13), Joerg Micheel wrote: [..] > > The system has to work right away, when installed out of the box. Period. > > No when's and if's. And don't tell me that X11 is an add-on and luxury. > > We are living in the 21st century. > > There are people who will tell people that still use X11 tcp sockets to > start living in the 21st century. ssh X11 forwarding still works, it's > only the (often much lower security) tcp sockets that are disabled by > default. (And if the "none" cipher is available, the overhead would be > minimal for even the most underpowered machine.) [..] I completely agree with Neil. Being scared by X11 access mechanisms, I always disabled the TCP listen of the X server, and I always used ssh with X forwarding. marco To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 3:26:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by hub.freebsd.org (Postfix) with SMTP id C4B0637B400 for ; Tue, 23 Apr 2002 03:26:37 -0700 (PDT) Received: (qmail 25034 invoked by uid 1000); 23 Apr 2002 10:29:03 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 23 Apr 2002 10:29:03 -0000 Date: Tue, 23 Apr 2002 12:29:03 +0200 (CEST) From: Attila Nagy To: hackers@freebsd.org Subject: sendfile() in tftpd? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, Would it be possible to use sendfile in tftpd? With an Athlon XP 1600+ I could only get ~40 Mbps out from the machine with 0% idle CPU time (large file transfers from many machines, getting the same file). Thanks, --------[ Free Software ISOs - ftp://ftp.fsn.hu/pub/CDROM-Images/ ]------- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415 (194) cell.: +3630 306 6758 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 3:31:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 27F3537B417; Tue, 23 Apr 2002 03:31:47 -0700 (PDT) Received: from pool0061.cvx21-bradley.dialup.earthlink.net ([209.179.192.61] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 16zxaH-0006H5-00; Tue, 23 Apr 2002 03:31:42 -0700 Message-ID: <3CC537F1.7F571CD2@mindspring.com> Date: Tue, 23 Apr 2002 03:31:13 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Greg 'groggy' Lehey Cc: Jordan Hubbard , Robert Watson , Oscar Bonilla , Anthony Schneider , Mike Meyer , hackers@FreeBSD.ORG Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greg 'groggy' Lehey wrote: > I've been noticing a continuing trend for more and more "safe" > configurations the default. I spent half a day recently trying to > find why I could no longer open windows on my X display, only to > discover that somebody had turned off tcp connections by default. > > I have a problem with this, and as you imply, so will a lot of other > people. As a result of this sort of thing, people trying to migrate > from other systems will probably just give up. I certainly would > have. While it's a laudable aim to have a secure system, you have to > be able to use it too. I'd suggest that we do the following: I think we need to make an ACPI call in the loader to power off the machine before it becomes dangerously functional. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 3:48:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from HAL9000.wox.org (12-232-222-90.client.attbi.com [12.232.222.90]) by hub.freebsd.org (Postfix) with ESMTP id 33D6E37B404; Tue, 23 Apr 2002 03:48:16 -0700 (PDT) Received: (from das@localhost) by HAL9000.wox.org (8.11.6/8.11.6) id g3NALkp00811; Tue, 23 Apr 2002 03:21:46 -0700 (PDT) (envelope-from das) Date: Tue, 23 Apr 2002 03:21:46 -0700 From: David Schultz To: "Greg 'groggy' Lehey" Cc: Jochem Kossen , hackers@FreeBSD.ORG Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) Message-ID: <20020423032146.A490@HAL9000.wox.org> Mail-Followup-To: Greg 'groggy' Lehey , Jochem Kossen , hackers@FreeBSD.ORG References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> <200204231009.51297.j.kossen@home.nl> <20020423183452.M6425@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020423183452.M6425@wantadilla.lemis.com>; from grog@FreeBSD.ORG on Tue, Apr 23, 2002 at 06:34:52PM +0930 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Greg 'groggy' Lehey : > work done. And you can bet your bottom dollar that somebody coming > from another UNIX variant and trying out FreeBSD won't do so. They'll > just say that it's broken and wander off again. I agree with this point, in general. FreeBSD shouldn't be like OpenBSD, where everything is so secure by default that you can't get anything done. For example, most people who use X don't know---and don't want to know---how it works. If the defaults are too restrictive, they will be frustrated, and maybe they'll figure out how to make things unrestrictive without understanding what's going on. On the other hand, if the defaults are not cautious enough, the same people will need to apply patches when the next remotely exploitable hole in X is found, and many of them won't bother. I'm a bit more wary of third-party applications, particularly big ones like X, so disabling TCP connections by default seems like a reasonable thing to do. But it should have been documented in a place where people actually look when they upgrade. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 3:49:19 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 5BEB437B400; Tue, 23 Apr 2002 03:49:12 -0700 (PDT) Received: from pool0061.cvx21-bradley.dialup.earthlink.net ([209.179.192.61] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 16zxqu-0003Dp-00; Tue, 23 Apr 2002 03:48:52 -0700 Message-ID: <3CC53BF7.EC99574F@mindspring.com> Date: Tue, 23 Apr 2002 03:48:23 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Neil Blakey-Milner Cc: Joerg Micheel , Greg 'groggy' Lehey , Jochem Kossen , hackers@freebsd.org Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> <200204231009.51297.j.kossen@home.nl> <20020423183452.M6425@wantadilla.lemis.com> <20020423211359.D48271@cs.waikato.ac.nz> <20020423093826.GA58411@mithrandr.moria.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Neil Blakey-Milner wrote: > > The system has to work right away, when installed out of the box. Period. > > No when's and if's. And don't tell me that X11 is an add-on and luxury. > > We are living in the 21st century. > > There are people who will tell people that still use X11 tcp sockets to > start living in the 21st century. ssh X11 forwarding still works, it's > only the (often much lower security) tcp sockets that are disabled by > default. (And if the "none" cipher is available, the overhead would be > minimal for even the most underpowered machine.) I agree that X11 isn't very forward looking; it'd be nice if the displays were themselves CORBA objects, so you could embed desktops to use any display technology you wanted, so that you could build a desktop compute server for 1000 users without eating 11G of RAM to do it. Until someone writes that though... It's be nice if the ssh X11 forwarding were not the prefered method of remote access to X11. Particularly since I haven't seen any fixes for the MIT shared memory extension going in to stop the inevitable shared memory leaks by Netscape, etc., or anything else that uses it for bitmaps, and is long running, so the resources get used up and never reclaimed. Disabling the workaround -- which is to use network connections, instead of using the UNIX domain socket, thereby disabling the libraries use of the shared memory extension -- isn't my idea of a good approach. All it does is exacerbate the problem, for questionable security ("not listening" is not the same thing as having a firewall, so if TCP is vulnerable for X11, then it's vulnerable for every other port that *is* listening). Forget Debian, what does OpenBSD do? It's the gold standard when it comes to anal default settings. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 3:53:46 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 2B2F337B405 for ; Tue, 23 Apr 2002 03:53:42 -0700 (PDT) Received: from pool0061.cvx21-bradley.dialup.earthlink.net ([209.179.192.61] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 16zxvX-0005Kd-00; Tue, 23 Apr 2002 03:53:40 -0700 Message-ID: <3CC53D18.577A9A67@mindspring.com> Date: Tue, 23 Apr 2002 03:53:12 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Attila Nagy Cc: hackers@freebsd.org Subject: Re: sendfile() in tftpd? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Attila Nagy wrote: > Would it be possible to use sendfile in tftpd? > With an Athlon XP 1600+ I could only get ~40 Mbps out from the machine > with 0% idle CPU time (large file transfers from many machines, getting > the same file). Only if all file transfers were binary, or all ASCII files were stored on the host with line termination, instead of . That's the same reason sendfile() is stupid for POP3, IMAP4, and SMTP servers... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 4:34:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from newsguy.com (smtp.newsguy.com [216.148.53.71]) by hub.freebsd.org (Postfix) with ESMTP id B27D737B400; Tue, 23 Apr 2002 04:34:10 -0700 (PDT) Received: from newsguy.com (cbace203-181-81-164.dial.telebrasilia.net.br [200.181.81.164]) by newsguy.com (8.9.1a/8.9.1) with ESMTP id EAA08424; Tue, 23 Apr 2002 04:34:05 -0700 (PDT) Message-ID: <3CC54677.78F358D9@newsguy.com> Date: Tue, 23 Apr 2002 08:33:11 -0300 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en,pt-BR,pt,en-GB,en-US,ja MIME-Version: 1.0 To: Jochem Kossen Cc: "Greg 'groggy' Lehey" , hackers@FreeBSD.ORG Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> <200204231009.51297.j.kossen@home.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jochem Kossen wrote: > > *shrug* I was the one who sent in the patch. It was added some time > around 2001/10/26 to the XFree86-4 megaport. When the metaport was > created, the patch was incorporated too. > > A simple 'man startx' should have cleared your mind: > > Except for the '-listen_tcp' option, arguments immediately > following the startx command are used to start a client in > the same manner as xinit(1). The '-listen_tcp' option of > startx enables the TCP/IP transport type which is needed > for remote X displays. This is disabled by default for > security reasons. > ... > > I'd agree with option 2. Except that people trying to use X with tcp > connections probably won't look in the security policy document for a > solution. In the case of the X patch, i'd add it to the release notes > AND the security policy document, since - i think - few people will > look in the security policy document for such a problem. > > I do have to say you're the first one I see who complains about this... Well, since I have only complained, however loudly, on the irc channel, let me pipe in. It is inconvenient, to say the least, to have to exit X after over 40 shell sessions are open because you suddenly realize X just stopped opening the TCP port out of nothing after you last upgraded it. Or because you forgot to use the -listen_tcp option, not unusual since I never needed it before. An changing the script is not good enough either, since a portupgrade -a may change it back. Do you use remote X clients at all? Because I cannot conceive of a person who does and cannot understand how against POLA this change is. The -listen_tcp option is ridiculous to me. You must never *HAVE* to resort to a parameter for a thing which is not only the default but the the _only_ way you want it. The port *SHOULD* indicate that the listen port is no longer the default, and the *MUST* be a way of saying you want it always, either a port option so I can put it in make.conf, or an environment variable so I can put it in login.conf. But security is good. As a matter of fact, I'll change loader not to load a kernel by default, since this is a security hole in case the machine reboots. But don't worry, I'll document it in loader(8). -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@international.bsdconspiracy.net "They did what they could to help her, using human skills -- and then, when that failed, left it in the hands of the gods. In this case," he bowed slightly, "myself. Like it or not," the demon continued, "that is my status in this region. Take it up with my priests if it bothers you." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 4:39:49 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from newsguy.com (smtp.newsguy.com [216.148.53.71]) by hub.freebsd.org (Postfix) with ESMTP id 3249B37B41A; Tue, 23 Apr 2002 04:39:43 -0700 (PDT) Received: from newsguy.com (cbace203-181-81-164.dial.telebrasilia.net.br [200.181.81.164]) by newsguy.com (8.9.1a/8.9.1) with ESMTP id EAA09301; Tue, 23 Apr 2002 04:39:38 -0700 (PDT) Message-ID: <3CC547C7.C1A0DC6D@newsguy.com> Date: Tue, 23 Apr 2002 08:38:47 -0300 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en,pt-BR,pt,en-GB,en-US,ja MIME-Version: 1.0 To: Terry Lambert Cc: "Greg 'groggy' Lehey" , Jordan Hubbard , Robert Watson , Oscar Bonilla , Anthony Schneider , Mike Meyer , hackers@FreeBSD.ORG Subject: Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?) References: <11670.1019530386@winston.freebsd.org> <20020423131646.I6425@wantadilla.lemis.com> <3CC537F1.7F571CD2@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > > Greg 'groggy' Lehey wrote: > > I've been noticing a continuing trend for more and more "safe" > > configurations the default. I spent half a day recently trying to > > find why I could no longer open windows on my X display, only to > > discover that somebody had turned off tcp connections by default. > > > > I have a problem with this, and as you imply, so will a lot of other > > people. As a result of this sort of thing, people trying to migrate > > from other systems will probably just give up. I certainly would > > have. While it's a laudable aim to have a secure system, you have to > > be able to use it too. I'd suggest that we do the following: > > I think we need to make an ACPI call in the loader to power off > the machine before it becomes dangerously functional. I hear that. I'll put it on my list too. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@international.bsdconspiracy.net "They did what they could to help her, using human skills -- and then, when that failed, left it in the hands of the gods. In this case," he bowed slightly, "myself. Like it or not," the demon continued, "that is my status in this region. Take it up with my priests if it bothers you." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 4:51:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from h146n1fls31o859.telia.com (h146n1fls31o859.telia.com [213.66.12.146]) by hub.freebsd.org (Postfix) with SMTP id B546F37B405 for ; Tue, 23 Apr 2002 04:51:44 -0700 (PDT) Received: (qmail 7239 invoked from network); 23 Apr 2002 11:51:35 -0000 Received: from localhost (HELO 127.0.0.1) (root@127.0.0.1) by localhost with SMTP; 23 Apr 2002 11:51:35 -0000 Date: Tue, 23 Apr 2002 13:52:10 +0200 From: Tomas Svensson X-Mailer: The Bat! (v1.60) Reply-To: Tomas Svensson X-Priority: 3 (Normal) Message-ID: <1669828763.20020423135210@gbdev.net> To: Attila Nagy Cc: hackers@freebsd.org Subject: Re: sendfile() in tftpd? In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG AN> Would it be possible to use sendfile in tftpd? AN> With an Athlon XP 1600+ I could only get ~40 Mbps out from the machine AN> with 0% idle CPU time (large file transfers from many machines, getting AN> the same file). No, sendfile() is only for TCP connections, TFTP is using UDP. If you want performance, use something else. -Tomas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 6:17: 3 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by hub.freebsd.org (Postfix) with SMTP id F0F2837B404 for ; Tue, 23 Apr 2002 06:16:55 -0700 (PDT) Received: (qmail 25869 invoked by uid 1000); 23 Apr 2002 13:19:22 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 23 Apr 2002 13:19:22 -0000 Date: Tue, 23 Apr 2002 15:19:21 +0200 (CEST) From: Attila Nagy To: Terry Lambert Cc: hackers@freebsd.org Subject: Re: sendfile() in tftpd? In-Reply-To: <3CC53D18.577A9A67@mindspring.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, > Only if all file transfers were binary, or all ASCII files were stored > on the host with line termination, instead of . That's the > same reason sendfile() is stupid for POP3, IMAP4, and SMTP servers... Hmm. Both FTP and TFTP supports ASCII and binary transfers, am I right? In libexec/ftpd this case is handled this way: case TYPE_A: while ((c = getc(instr)) != EOF) { [...] case TYPE_L: [...] while (err != -1 && filesize > 0) { err = sendfile(filefd, netfd, offset, 0, (struct sf_hdtr *) NULL, &cnt, 0); [...] As far as I can determine. In libexec/tftpd there is also a similar possibility to handle each case, because there is "netascii" and "octet". We have a lab here with machines, which have NICs with built-in bootrom (Intel PRO/100) and run bpbatch (http://www.bpbatch.org/). During the startup the user gets a nice menu from which he/she can choose the OS (various Windows versions for the education and Linux). After this the program checks the image on the harddisk and if it fails it gets from the network. And that's what isn't too good. One client can achieve about 15 Mbps but if more than 10 (usually 20-30) clients want to fetch the images the TFTP server first slows down (it eats all the CPU of the server, which is a fast AthlonXP 1600+) then times out. I think this could be improved if TFTP could use sendfile(). (I have a busy FTP server and I know how much sendfile() can speed up things) The main question here seems to be: could sendfile() be used with UDP, or it is just for TCP? BTW, the bpbatch stuff uses binary transfer (according to tcpdump output)... --------[ Free Software ISOs - ftp://ftp.fsn.hu/pub/CDROM-Images/ ]------- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415 (194) cell.: +3630 306 6758 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 6:20:55 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by hub.freebsd.org (Postfix) with SMTP id AEB3337B400 for ; Tue, 23 Apr 2002 06:20:49 -0700 (PDT) Received: (qmail 25908 invoked by uid 1000); 23 Apr 2002 13:23:16 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 23 Apr 2002 13:23:16 -0000 Date: Tue, 23 Apr 2002 15:23:16 +0200 (CEST) From: Attila Nagy To: Tomas Svensson Cc: hackers@freebsd.org Subject: Re: sendfile() in tftpd? In-Reply-To: <1669828763.20020423135210@gbdev.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, > No, sendfile() is only for TCP connections, TFTP is using UDP. If you > want performance, use something else. It's even in the manpage: Sendfile() sends a regular file specified by descriptor fd out a stream socket specified by descriptor s. Silly me. BTW, I can't use anything else. Are there any alternatives to TFTP for booting machines off the network? (using standard, PC components) Thanks! --------[ Free Software ISOs - ftp://ftp.fsn.hu/pub/CDROM-Images/ ]------- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415 (194) cell.: +3630 306 6758 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 6:45: 2 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.10]) by hub.freebsd.org (Postfix) with ESMTP id DC72037B417 for ; Tue, 23 Apr 2002 06:44:58 -0700 (PDT) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs.huji.ac.il with esmtp (Exim 3.35 #2) id 1700b8-00008i-00; Tue, 23 Apr 2002 16:44:46 +0300 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Attila Nagy Cc: Tomas Svensson , hackers@freebsd.org, danny@cs.huji.ac.il Subject: Re: sendfile() in tftpd? In-Reply-To: Message from Attila Nagy of "Tue, 23 Apr 2002 15:23:16 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 Apr 2002 16:44:46 +0300 From: Danny Braniss Message-Id: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG i've had this modified tftpd for some time now, o - it's single threaded - runs as daemon and does not fork new children o - it caches files o - uses mmap o - knows about some of the newer tftp stuff - mainly blocksize. it's been running for some years now, and lately i re-vamped it a bit to run under FreeBSD. ftp://ftp.cs.huji.ac.il/users/danny/tftpd enjoy, danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 7: 3:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from parhelion.firedrake.org (parhelion.firedrake.org [212.135.138.219]) by hub.freebsd.org (Postfix) with ESMTP id 0581D37B417 for ; Tue, 23 Apr 2002 07:03:39 -0700 (PDT) Received: from float by parhelion.firedrake.org with local (Exim 3.34 #1 (Debian)) id 1700t3-0005NB-00; Tue, 23 Apr 2002 15:03:17 +0100 Date: Tue, 23 Apr 2002 15:03:17 +0100 To: Attila Nagy Cc: hackers@freebsd.org Subject: Re: sendfile() in tftpd? Message-ID: <20020423140317.GA19696@parhelion.firedrake.org> Mail-Followup-To: Attila Nagy , hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i From: void Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Apr 23, 2002 at 12:29:03PM +0200, Attila Nagy wrote: > Hello, > > Would it be possible to use sendfile in tftpd? > With an Athlon XP 1600+ I could only get ~40 Mbps out from the machine > with 0% idle CPU time (large file transfers from many machines, getting > the same file). Performance and tftp don't really go together. The server sends a part of a file, waits for an ack, sends the next piece, waits for an ack, etc. -- Ben "An art scene of delight I created this to be ..." -- Sun Ra To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 7:15:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id D5D5C37B417; Tue, 23 Apr 2002 07:15:35 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id KAA13116; Tue, 23 Apr 2002 10:15:29 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g3NEExq11998; Tue, 23 Apr 2002 10:14:59 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15557.27747.802212.659760@grasshopper.cs.duke.edu> Date: Tue, 23 Apr 2002 10:14:59 -0400 (EDT) To: Kenneth Culver Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: implementing linux mmap2 syscall In-Reply-To: <200204222313.29181.culverk@yumyumyum.org> References: <200204211525.08827.culverk@yumyumyum.org> <15556.6399.62081.426193@grasshopper.cs.duke.edu> <200204222313.29181.culverk@yumyumyum.org> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kenneth Culver writes: > OK, I found another problem, here it is: > > static void > linux_prepsyscall(struct trapframe *tf, int *args, u_int *code, caddr_t > *params) > { > args[0] = tf->tf_ebx; > args[1] = tf->tf_ecx; > args[2] = tf->tf_edx; > args[3] = tf->tf_esi; > args[4] = tf->tf_edi; > *params = NULL; /* no copyin */ > } > > Basically, linux_mmap2 takes 6 args, and this looks here like only 5 args are > making it in... I checked this because the sixth argument to linux_mmap2() in > truss was showing 0x6, but when I printed out that arg from the kernel, it > was showing 0x0. Am I correct here? > > Ken Yes. According to http://john.fremlin.de/linux/asm/, linux used to parse only 5 args but now it parses six. Try adding: args[5] = tf->tf_ebp; Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 7:37:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by hub.freebsd.org (Postfix) with SMTP id 2AB7137B405 for ; Tue, 23 Apr 2002 07:37:37 -0700 (PDT) Received: (qmail 29001 invoked from network); 23 Apr 2002 14:37:17 -0000 Received: from dsl092-171-091.wdc1.dsl.speakeasy.net (66.92.171.91) by dsl092-171-091.wdc1.dsl.speakeasy.net with SMTP; 23 Apr 2002 14:37:17 -0000 Date: Tue, 23 Apr 2002 10:37:17 -0400 (EDT) From: Kenneth Culver To: Andrew Gallatin Cc: freebsd-hackers@freebsd.org, Subject: Re: implementing linux mmap2 syscall In-Reply-To: <15557.27747.802212.659760@grasshopper.cs.duke.edu> Message-ID: <20020423103655.V28948-100000@alpha.yumyumyum.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Basically, linux_mmap2 takes 6 args, and this looks here like only 5 args are > > making it in... I checked this because the sixth argument to linux_mmap2() in > > truss was showing 0x6, but when I printed out that arg from the kernel, it > > was showing 0x0. Am I correct here? > > > > Ken > > Yes. According to http://john.fremlin.de/linux/asm/, linux used to > parse only 5 args but now it parses six. Try adding: > args[5] = tf->tf_ebp; > I don't think that arg is there: Apr 23 10:36:13 ken /kernel: tf->tf_ebp = -1077938040 Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 7:40:15 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by hub.freebsd.org (Postfix) with SMTP id 3691C37B405 for ; Tue, 23 Apr 2002 07:40:05 -0700 (PDT) Received: (qmail 26565 invoked by uid 1000); 23 Apr 2002 14:42:32 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 23 Apr 2002 14:42:32 -0000 Date: Tue, 23 Apr 2002 16:42:32 +0200 (CEST) From: Attila Nagy To: Danny Braniss Cc: hackers@freebsd.org Subject: Re: sendfile() in tftpd? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, > i've had this modified tftpd for some time now, > o - it's single threaded - runs as daemon and does not fork new children Basically, I don't have any problems with the inetd startup. It can be rate limited, etc. > o - it caches files How? Doesn't leaving this job to the OS a smarter idea? > o - knows about some of the newer tftp stuff - mainly blocksize. I think it's implemented in FreeBSD's tftpd too. (I can get 750 MB images with TFTP easily). My impression about this stuff: compiled and started on an up-to-date FreeBSD STABLE BOX (AthlonXP 1600+, 512MB DDR, two Intel PRO/100 with FEC) The lab consists of 733 MHz Celerons with Intel PRO/100 and 128MB RAM. The switch is a HP4000M. With the FreeBSD tftpd I could only get around 40 Mbps out of this box, the CPU usage was 100%. One client could fetch the stuff with an average speed of 14-15 Mbps. I could stay at this speed with 4-5 machines, fetching the images, after this count the bandwidth usage decreased per machine. With Danny's tftpd I could get 16-17 Mbps with one machine (this is what the client says) and around 4 Mbps per client at a concurrency of 24 machines. That's about 90-96 Mbps. I will try do more benchmarks with an accurate method, once I could figure out what should I use to measure the outgoing traffic to specific IP addresses (a /24 subnet)... BTW, FreeBSD's tftpd doesn't drop connections once it built up, while there are some problems with Danny's implementation in this area, but I am sure that this will be solved very soon. --------[ Free Software ISOs - ftp://ftp.fsn.hu/pub/CDROM-Images/ ]------- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415 (194) cell.: +3630 306 6758 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Apr 23 7:55:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from tinker.exit.com (tinker.exit.com [206.223.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 8E4CB37B416; Tue, 23 Apr 2002 07:55:13 -0700 (PDT) Received: from realtime.exit.com (realtime [206.223.0.5]) by tinker.exit.com (8.12.3/8.12.3) with ESMTP id g3NEtBcN078041; Tue, 23 Apr 2002 07:55:11 -0700 (PDT) (envelope-from frank@exit.com) Received: from realtime.exit.com (localhost [127.0.0.1]) by realtime.exit.com (8.12.2/8.12.2) with ESMTP id g3NEsxwn019647; Tue, 23 Apr 2002 07:54:59 -0700 (PDT) (envelope-from frank@realtime.exit.com) Received: (from frank@localhost) by realtime.exit.com (8.12.2/8.12.2/Submit) id g3NEsxFR019646; Tue, 23 Apr 2002 07:54:59 -0700 (PDT) From: Frank Mayhar Message-Id: <200204231454.g3NEsxFR019646@realtime.exit.com> Subject: Re: Security through obscurity? (and /etc/defaults/rc.conf changes) In-Reply-To: <200204231206.01451.j.kossen@home.nl> To: Jochem Kossen Date: Tue, 23 Apr 2002 07:54:59 -0700 (PDT) Cc: "Greg 'groggy' Lehey" , hackers@FreeBSD.ORG Reply-To: frank@exit.com Organization: Exit Consulting X-Copyright0: Copyright 2002 Frank Mayhar. All Rights Reserved. X-Copyr