Re: Ok, try this patch. (was Re: symlink(2) [Was: Re: tcsh.cat])

2001-06-17 Thread Bruce Evans
On Sun, 17 Jun 2001, Matt Dillon wrote: > Ok, this patch should do it. For review. I've made it return ENOENT, > which is the same error that is returned when you try to open an empty > path (e.g. open("", ...)). > > (Note: This is unrelated to Bruce's second issue with 'cp' co

Re: [CFR] latest KAME merge into FreeBSD

2001-06-17 Thread JINMEI Tatuya / $B?@L@C#:H(B
> On Mon, 04 Jun 2001 19:20:36 +0900 (JST), > Hajimu UMEMOTO <[EMAIL PROTECTED]> said: > I just put the patch for merging latest KAME into FreeBSD: > http://www.imasy.or.jp/~ume/ipv6/test/freebsd5-kame20010528-20010604.diff.gz > This is based on KAME snap 20010528 and against 5-CURREN

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Matt Dillon
Heh. We came up with virtually the same patch at the same time! -Matt To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Andrey A. Chernov
On Mon, Jun 18, 2001 at 03:40:28 +0200, Assar Westerlund wrote: > > What about this? > Matt's variant is better because return ENOENT _before_ NAMETOOLONG check. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the b

Ok, try this patch. (was Re: symlink(2) [Was: Re: tcsh.cat])

2001-06-17 Thread Matt Dillon
: :On Sun, Jun 17, 2001 at 21:16:24 -0400, Garance A Drosihn wrote: :> :> When I say this, I assume that the only change to make is how any :> 'open' or 'stat' call will handle null symlinks. If I am reading :> Andrey correctly, there will be no change to the 'ln' command or :> the symlink() sy

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Assar Westerlund
Garance A Drosihn <[EMAIL PROTECTED]> writes: > I think that it's reasonable to just make it a specific error, and > thus end this thread. No harm will come of making it a specific > error on open, and it will address the problems mentioned earlier. What about this? /assar Index: vfs_lookup.c

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Andrey A. Chernov
On Sun, Jun 17, 2001 at 21:16:24 -0400, Garance A Drosihn wrote: > > When I say this, I assume that the only change to make is how any > 'open' or 'stat' call will handle null symlinks. If I am reading > Andrey correctly, there will be no change to the 'ln' command or > the symlink() system rout

Re: convert libgmp to a port?

2001-06-17 Thread Assar Westerlund
Garrett Wollman <[EMAIL PROTECTED]> writes: > < said: > > > telnet* should never have used libmp in the first place, > > Yes, it should have, since telnet is historic BSD software and libmp > is the historic BSD arbitrary-precision-math library. But telnet in historic BSD didn't have sra or any

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Andrey A. Chernov
On Sun, Jun 17, 2001 at 18:00:06 -0700, Matt Dillon wrote: > > I think we can safely disallow path lookups going through empty symlinks > (i.e. at the time of the open(), lstat(), etc...), but we should not > go changing the "ln" command or the symlink() system call. This is exact t

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Garance A Drosihn
At 2:28 PM -0700 6/17/01, Matt Dillon wrote: >:On Sun, Jun 17, 2001 at 11:31:41 -0700, Jordan Hubbard wrote: >:> It seems your argument to disallow null symlinks got somehow taken >:> as an argument to disallow all "invalid" symlinks then. >: >: >:To say it more clear: now I even not against ""-sy

Re: convert libgmp to a port?

2001-06-17 Thread Garrett Wollman
< said: > telnet* should never have used libmp in the first place, Yes, it should have, since telnet is historic BSD software and libmp is the historic BSD arbitrary-precision-math library. That is also (one reason) why we should continue to supply a libmp, regardless of what code it is actuall

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Matt Dillon
:There is nothing to fix. Sometimes 'make install' instead 'make :installworld' typed can produce this. Of course, install procedure can be :complicated to make it foolprof, but I think the system must be fixed :instead to not resolve illegal names. It is not good idea to :produce workarounds of

Workaround for PS/2 mouse problems with recent -current

2001-06-17 Thread Anton Berezin
Commenting out hint.atkbd.0.* and hint.psm.0.* fixed the problem that others reported. Little investigation showed that the new resource_find() function in kern/subr_bus.c finds two atkbd0 and two psm0, one of each from kern_envp, and the other one from static_hints; no wildcard matches were inv

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Andrey A. Chernov
On Sun, Jun 17, 2001 at 17:26:16 -0700, Matt Dillon wrote: > > If something in the build is creating empty symlinks under certain > circumstances, that something should be fixed. The problem isn't ln -s. There is nothing to fix. Sometimes 'make install' instead 'make installworld' typed

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Andrey A. Chernov
On Sun, Jun 17, 2001 at 17:01:08 -0700, Matt Dillon wrote: > I'm sorry, I don't understand... what does this have to do with > an empty symlink verses a symlink containing something else? > 'rm' does not traverse symlinks. I not mean 'rm' literally. Read Bruce's comment about how fake

Re: panic for today -- dsp_clone+0xee after moused started

2001-06-17 Thread David Wolfskill
>Date: Mon, 18 Jun 2001 00:33:18 +0200 >From: Philipp Mergenthaler <[EMAIL PROTECTED]> >Revision 1.39 of dsp.c doesn't fix this panic. 1.40 (along with associated changes to sndstat.c, sound.c, & sound.h) appears to work OK for me -- thanks! (Hmmm... I just noticed another round of changes

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Matt Dillon
: :On Sun, Jun 17, 2001 at 15:04:06 -0700, Matt Dillon wrote: :> :> What cases? In all my years of programming I've never once 'accidently' :> created an empty symlink. : :See initial Bruce comments. Sometimes when 'make hierarchy' step is :missing, intermediate result of 'make install'

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Matt Dillon
: :On Sun, Jun 17, 2001 at 15:04:06 -0700, Matt Dillon wrote: :> What cases? In all my years of programming I've never once 'accidently' :> created an empty symlink. : :The next example is fts-like activity - wrong final destination :appearse which is dangerous for 'rm'. I.e. in some sit

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Andrey A. Chernov
On Sun, Jun 17, 2001 at 15:04:06 -0700, Matt Dillon wrote: > What cases? In all my years of programming I've never once 'accidently' > created an empty symlink. The next example is fts-like activity - wrong final destination appearse which is dangerous for 'rm'. I.e. in some situation yo

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Andrey A. Chernov
On Sun, Jun 17, 2001 at 15:04:06 -0700, Matt Dillon wrote: > > What cases? In all my years of programming I've never once 'accidently' > created an empty symlink. See initial Bruce comments. Sometimes when 'make hierarchy' step is missing, intermediate result of 'make install' can't be

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Matt Dillon
:On Sun, Jun 17, 2001 at 14:28:40 -0700, Matt Dillon wrote: : :> rather then trying to resolve it. I'm not sure it's worth it, though. :> It just doesn't come up that often and there are a thousand other ways you :> can hogtie yourself in the system that takes less effort. : :It wort

Re: convert libgmp to a port?

2001-06-17 Thread Giorgos Keramidas
On Sun, Jun 17, 2001 at 01:51:56PM -0700, Kris Kennaway wrote: > libbn is already part of OpenSSH; it's a trivial matter to make it > into a standalone library. In other words, we already include two > functionally equivalent bignum libraries in FreeBSD, so one of them > should go. I couldn't a

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Andrey A. Chernov
On Sun, Jun 17, 2001 at 14:28:40 -0700, Matt Dillon wrote: > rather then trying to resolve it. I'm not sure it's worth it, though. > It just doesn't come up that often and there are a thousand other ways you > can hogtie yourself in the system that takes less effort. It worth. It ca

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Matt Dillon
:On Sun, Jun 17, 2001 at 11:31:41 -0700, Jordan Hubbard wrote: :> It seems your argument to disallow null symlinks got somehow taken :> as an argument to disallow all "invalid" symlinks then. : : :To say it more clear: now I even not against ""-symlinks making ability, :such strings are valid per

Re: convert libgmp to a port?

2001-06-17 Thread Kris Kennaway
On Sun, Jun 17, 2001 at 06:22:56PM +0300, Giorgos Keramidas wrote: > On Sat, Jun 16, 2001 at 11:38:45PM -0700, Peter Wemm wrote: > > > It should not be too hard to have build a lightweight 'libbignum' that > > is extracted from the openssl sources and make that available in the base > > system.

Re: panic for today -- dsp_clone+0xee after moused started

2001-06-17 Thread Philipp Mergenthaler
On Sun, Jun 17, 2001 at 12:49:34PM -0700, David Wolfskill wrote: > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0xc > fault code= supervisor read, page not present > instruction pointer = 0x8:0xc018fe1a > stack pointer = 0x10:0xce5a4d40 > frame poi

Re: panic for today -- dsp_clone+0xee after moused started

2001-06-17 Thread David Wolfskill
>Date: Sun, 17 Jun 2001 12:49:34 -0700 (PDT) >From: David Wolfskill <[EMAIL PROTECTED]> [Yes, I *do* talk (well, mumble) to myself dhw] >Now, back on 13 June, I had added another line to /etc/rc.devfs -- the >line symlinking /dev/dsp0 to /dev/dsp; here are the lines I've added: ># Setup DEV

panic for today -- dsp_clone+0xee after moused started

2001-06-17 Thread David Wolfskill
OK; this is a(nother) "page fault while in kernel mode," but I suspect it's one I hadn't seen mentioned yet. The "good news" is that it is eminently reproducible. :-} Also, I was able to boot kernel.old OK, so hat should decrease the probability that the problem is (strictly) somewhere in userl

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Andrey A. Chernov
On Sun, Jun 17, 2001 at 11:31:41 -0700, Jordan Hubbard wrote: > It seems your argument to disallow null symlinks got somehow taken > as an argument to disallow all "invalid" symlinks then. To say it more clear: now I even not against ""-symlinks making ability, such strings are valid per POSIX a

Re: mdconfig/umount Fatal trap 12

2001-06-17 Thread Dima Dorfman
Poul-Henning Kamp <[EMAIL PROTECTED]> writes: > In message <[EMAIL PROTECTED]>, Dima Dorfman writes: > >Jens Schweikhardt <[EMAIL PROTECTED]> writes: > >> hello, world\n > >> > >> with a system cvsupped June 6th I can reliably reproduce a > >> [panic] > >> when I try to unmount a deleted mdconfig

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Jordan Hubbard
It seems your argument to disallow null symlinks got somehow taken as an argument to disallow all "invalid" symlinks then. - Jordan To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message

Re: mdconfig/umount Fatal trap 12

2001-06-17 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Dima Dorfman write s: >Jens Schweikhardt <[EMAIL PROTECTED]> writes: >> hello, world\n >> >> with a system cvsupped June 6th I can reliably reproduce a >> [panic] >> when I try to unmount a deleted mdconfig device. Here's the recipe: >> >> # file iso is a Freebsd

Re: mdconfig/umount Fatal trap 12

2001-06-17 Thread Dima Dorfman
Jens Schweikhardt <[EMAIL PROTECTED]> writes: > hello, world\n > > with a system cvsupped June 6th I can reliably reproduce a > [panic] > when I try to unmount a deleted mdconfig device. Here's the recipe: > > # file iso is a Freebsd 4.3 Wind River CD image made with > # dd if=/dev/cd0c of=file.

SCSI hangs w/SuperMicro 6010H

2001-06-17 Thread Dave Cornejo
Please excuse me if you've seen this in questions, but I found a relevancy to current: If I drop back to 4.3 release, this system boots every time with no hangs observed in half a dozen tries in either UP or SMP mode. Anyone else seeing similar? thanks, dave c - Forwarded message from Dave

Re: convert libgmp to a port?

2001-06-17 Thread Mixtim
On Sun, Jun 17, 2001 at 11:48:41AM -0400, Joseph A. Mallett wrote: > > If we do need some of the functionality of libgmp in the base-system, > > then we really should import some newer version of libgmp, instead of > > trying to make our own new library. I dont really like reinventing > > wheels

Re: convert libgmp to a port?

2001-06-17 Thread Joseph A. Mallett
On Sun, 17 Jun 2001, Giorgos Keramidas wrote: > > If we do need some of the functionality of libgmp in the base-system, > then we really should import some newer version of libgmp, instead of > trying to make our own new library. I dont really like reinventing > wheels :) > Unless you are the on

Re: convert libgmp to a port?

2001-06-17 Thread Giorgos Keramidas
On Sat, Jun 16, 2001 at 11:38:45PM -0700, Peter Wemm wrote: > It should not be too hard to have build a lightweight 'libbignum' that > is extracted from the openssl sources and make that available in the base > system. It would not be hard to convert the lib*mp consumers to use the > libbignum (

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Andrey A. Chernov
On Sun, Jun 17, 2001 at 23:02:50 +1000, Bruce Evans wrote: > > So disallowing null symlinks would actually unbreak /etc/malloc.conf. > > Further debugging shows that the main bug is in the kernel. > stat(2) on a null symlink bogusly succeeds and classifies the symlink > as a directory. ln(1) ju

Re: symlink(2) [Was: Re: tcsh.cat]

2001-06-17 Thread Bruce Evans
On Sat, 16 Jun 2001, Warner Losh wrote: > In message <[EMAIL PROTECTED]> "Steve O'Hara-Smith" writes: > : I would argue loud and long that changing that *would* be broken. There > : is never a guarantee (or even an implication) that a symlink points to a > : valid directory entry (think unmou

mdconfig/umount Fatal trap 12

2001-06-17 Thread Jens Schweikhardt
hello, world\n with a system cvsupped June 6th I can reliably reproduce a Fatal trap 12: page fault while in kernel mode fault virtual address = 0x22 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01b67e2 sta

y“]EŽx‰‡ƒTƒCƒgzƒWƒ‡ƒuƒŒƒbƒNƒX

2001-06-17 Thread job-rex.com
y“]EŽx‰‡ƒTƒCƒgzƒWƒ‡ƒuƒŒƒbƒNƒX http://www.job-rex.com/ ‚Í‚¶‚ß‚Ü‚µ‚āAƒWƒ‡ƒuƒŒƒbƒNƒX‚Å‚·B “Ë‘R‚Å‚·‚ª ¡“­‚¢‚Ä‚¢‚é‰ïŽÐ‚Ì•]‰¿‚É–ž‘«‚µ‚Ä‚¢‚Ü‚·‚©H ƒWƒ‡ƒuƒŒƒbƒNƒX‚ÍŒ»ÝƒLƒƒƒŠƒAƒAƒbƒvŠˆ“®’†‚̐lA •s–ž‚Í‚ ‚邯‚ǁdddA‚Æ‚¢‚¤l‚ÌŠˆ“®‚ðŽx‰‡‚·‚é ƒLƒƒƒŠƒAƒAƒbƒvŽx‰‡ƒTƒCƒg‚Å‚·B ¡‚Ü‚Å“]EŠˆ“®‚Ő¬‰Ê‚ðã‚