Re: panic: vm_object_shadow: source object has OBJ_ONEMAPPING set.

2000-04-16 Thread Matthew Dillon


: I don't think this is an issue.   The only double-mapped pages we care 
: about are those at the top-level (vm_object's connected directly to a 
: vm_map_entry).  This is because these are the only pages effected by
: write-faults and copy-on-write issues.  
: 
:
:I disagree.  If a backing object (BO) has OBJ_ONEMAPPING set, and someone
:call vm_map_delete(map, start, end) on an address space that references
:BO directly, then the system will crash and burn because vm_map_delete
:will (incorrectly) free physical pages:
:
:   ...
:pmap_remove(map-pmap, s, e);
:if (object != NULL 
:object-ref_count != 1 
:(object-flags  (OBJ_NOSPLIT|OBJ_ONEMAPPING)) == OBJ_ONEMAPPING 
:(object-type == OBJT_DEFAULT || object-type == OBJT_SWAP)) {
:vm_object_collapse(object);
:vm_object_page_remove(object, offidxstart, offidxend, FALSE);
:   ^

This is in the top-level object, so it isn't a problem.  OBJ_ONEMAPPING
will be correct.

If there are problems anywhere, they are going to be in the collapse()
code..  Either vm_object_collapse() or vm_object_backing_scan()
(called by vm_object_qcollapse()).

I think vm_object_collapse() is safe, it will only remove pages from the
backing object if the reference count is 1, which guarentees that there
are no shared mappings no matter what the state OBJ_ONEMAPPING.

vm_object_backing_scan() also appears to be safe... it is either only
called from vm_object_collapse(), or vm_object_qcollapse().  
vm_object_qcollapse() also only calls it if the backing object has 
only one refrence count.

I think we're safe.  I agree that not having OBJ_ONEMAPPING set properly
in underlying objects is bad design... but it's a design we inherited
and it's hard enough making the code work I don't want to introduce new
bugs fixing something that may not be broken (beyond not being documented
well).

: and the other process cannot see that change.  OBJ_ONEMAPPING is an
: optimization that allows a process to dirty an anonymous (not vnode-backed)
: page without doing a copy-on-write in the case where that process is 
: the ONLY process mapping the page.
: 
:
:Umm, it can do this without the OBJ_ONEMAPPING attribute, because
:the ref count on the object == 1.  Note that the code from vm_object_shadow
:doesn't even check OBJ_ONEMAPPING:
:...
:I do care, because I don't want those pages freed by a vm_map_delete.

I think we're safe.  If you can find a case where vm_map_delete() 
screws us up, then we have a problem.  I can't find a case.

: be pre-pended or post-pended with the new pages rather then have to create
: a new vm_object (and thus not be able to coalesce the associated 
: vm_map_entry structures) every time we take a copy-on-write fault.
: 
:
:Huh?  It's always been the case that when a shadow object is created, 
:its size is equal to the size of the mapping.  This predates the
:existance of OBJ_ONEMAPPING.  vm_map_lookup, where shadow objects
:are normally created on COW faults, has always done:

Ach, yes you're right.  There's a case I fixed a while back... ah, I
remember what it was, it was the stack-extension code.  That's what
I was thinking of.  It has nothing to do with what we are talking
about now.  Sorry, my mistake!

I think there are cases where the maps get broken up, though... where
is it..   Ah, here it is.  The vm_map_split() code.  I think this may
play a role when you have long fork() chains, but I haven't checked
for sure.

: In this respect, the OBJ_ONEMAPPING optimization is *CRITICAL* to the
: scaleability of our VM system.
: 
:
:It's not critical.  COW worked just fine (performance-wise)
:before OBJ_ONEMAPPING.  John Dyson introduced OBJ_ONEMAPPING
:so that he could free individual pages within an object earlier,
:without waiting for the entire object to be freed.
:
:Alan

-Matt



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Help with OpenSSH

2000-04-16 Thread Ryan



Hi there

I was tryint to install OpenSSH , so i did the 
following 

cd /usr/ports/security/openssh
then make install 
and it said I needed the OpenSSL 
Library
I then cd'd into the 
/usr/ports/security/openssl
And tried to install it when it said that its 
Forbidden cause it already is installed in base system !!
So How do i install OpenSSH with this problem or 
how do i over come it ?

I'm Using FreeBSD RELEASE 4.0

Thanks for the help
Ryan 


Re: Help with OpenSSH

2000-04-16 Thread David Malone

On Sun, Apr 16, 2000 at 05:31:22PM +0200, Ryan wrote:

 So How do i install OpenSSH with this problem or how do i over come it ?
 I'm Using FreeBSD RELEASE 4.0

OpenSSH is a builtin part of 4.0.

David.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Help with OpenSSH

2000-04-16 Thread Brian Reichert

On Sun, Apr 16, 2000 at 05:31:22PM +0200, Ryan wrote:
 Hi there
 
 I was tryint to install OpenSSH , so i did the following 
 
 And tried to install it when it said that its Forbidden cause it already is 
installed in base system !!
 So How do i install OpenSSH with this problem or how do i over come it ?
 
 I'm Using FreeBSD RELEASE 4.0

FreeBSD 4.0 ships with OpenSSH, but you need to install the CRYPTO
distribution, with at least 'crypto', the basic services.

It's not really in the 'base' system.  If you install a mininal
setup, you don't get it.

Just found that out myself... :/

 Thanks for the help
 Ryan 

-- 
Brian 'you Bastard' Reichert[EMAIL PROTECTED]
37 Crystal Ave. #303Daytime number: (781) 273-4100 x161
Derry NH 03038-1713 USA Intel architecture: the left-hand path


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Help with OpenSSH

2000-04-16 Thread Brian Reichert

On Sun, Apr 16, 2000 at 01:02:45PM -0400, Brian Reichert wrote:
 FreeBSD 4.0 ships with OpenSSH, but you need to install the CRYPTO
 distribution, with at least 'crypto', the basic services.
 
 It's not really in the 'base' system.  If you install a mininal
 setup, you don't get it.
 
 Just found that out myself... :/

Ha!  I got further bit.  You need to install the base system, the
crypto distribution _and_ the rsaref-2.0 package...

-- 
Brian 'you Bastard' Reichert[EMAIL PROTECTED]
37 Crystal Ave. #303Daytime number: (781) 273-4100 x161
Derry NH 03038-1713 USA Intel architecture: the left-hand path


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Parallel make world broken

2000-04-16 Thread Donn Miller

=== librsausa
mkdir: openssl: File exists
cp /usr/src/secure/lib/librsausa/../libcrypto/opensslconf-i386.h
openssl/openssl
conf.h
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error


- Donn



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



$B!V6[5^>pJs(B!!$BF|K\H/%S%C%0%W%m%8%'%/%H;OF0(B$B(B!!$B!W(B

2000-04-16 Thread handwerk DM service
-
$BFMA3$N%a!=%k!"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9!#(B
  $B!J(Bhttp://www.starweb21.com/cp/$B%K%C%/%M!<%`$H$J$j$^$9!K(B
  $B$^$?!"AH?%?^$K$O!"%K%C%/%M!<%`$G5-:\$5$l$^$9!#(B
  $BI,$:$45-F~2<$5$$!#(B
  $B%K%C%/%M!<%`$G;HMQ$G$-$kJ8;z$O0J2<$NDL$j$G$9!#(B
  * $B1Q;z>.J8;z(B (a $B!A(B z)
  * $B?t;z(B (0 $B!A(B 9)
  * $B2<@~(B (_)$B$*$h$S%O%$%U%s(B(-)
  $B$J$*J8;z?t$O#2J8;z0J>e#1#6J8;z0JFb$G:G=i$NJ8;z$O1Q;z>.J8;z$H$7$F$/$@(B
  $B$5$$!#(B
  $B>R2p;~$GEPO?%[!<%`%Z!<%8$X$N%"%/%;%9$,=PMh$:!"%(%i!<$,IQH/$7$F(B
$B!!$$$k>u67$G$9!#(B
$B!!AH?%$N9=C[$OEPO?F|!&;~4V$N=gHV$H$J$j$^$9$N$G!"D|$a$:$K%H%i%$$7$F$_$F2<$5$$!#(B

  $B$I$&$7$F$bEPO?$G$-$J$$J}$O!">e5-EPO?%U%)!<%`$K$45-F~$N>e!"%a!<%k2<$5$$!#(B
$B!!Ev%0%k!<%W@lMQ2>#I#DHV9f$rH/9T$7$^$9!#EvLL$O$3$N#I#DHV9f$r;H$$1D6H2<$5$$!#(B
$B!!EPO?Be9T0MMj$,;~$7$F$*$j%*%U%#%7%c%k#I#D54j$$$^$9!#(B


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message


Re: Help with OpenSSH

2000-04-16 Thread Samuel Tardieu

On 16/04, Brian Reichert wrote:

| Ha!  I got further bit.  You need to install the base system, the
| crypto distribution _and_ the rsaref-2.0 package...

rsaref for a .za address? Didn't you mean rsaintl, openssl?



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



HEADS UP; kq related changes

2000-04-16 Thread Jonathan Lemon

  I just committed kq support to the tree.  The first thing I forgot
to mention in the commit log is that the size of `struct proc' changed,
so a full buildworld is in order.

  Second, a man page is forthcoming, so if you're looking for that,
wait a day or two.  (I'm better at writing code than man pages, but
will be happy to answer questions about this).
--
Jonathan


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Help with OpenSSH

2000-04-16 Thread Kris Kennaway

On Sun, 16 Apr 2000, Brian Reichert wrote:

 Ha!  I got further bit.  You need to install the base system, the
 crypto distribution _and_ the rsaref-2.0 package...

Only if you're in the US.

Kris


In God we Trust -- all others must submit an X.509 certificate.
-- Charles Forsythe [EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



OpenSSH and PAM

2000-04-16 Thread Joe Greco

While I realize that 4.0 has PAM'ified SSH, I was wondering if anyone was
planning to extend this in the manner that telnet/rlogin have been.

From /etc/pam.d/login:
auth sufficient pam_tacplus.so try_first_pass template_user=staffer

Basically this'll grab the "staffer" account and use it as the basis for
other arbitrary users who have been authenticated by TACACS.

Very handy at an ISP where you may wish to allow or disallow access to
many servers to a large number of individuals who tend to come and go.
The people who don't _really_ need to access the machines on a daily basis
just get a TACACS login and they get to live with the "template" user's
dotfiles etc.

Unfortunately, sshd does some explicit checks with getpwnam() that cause
ssh connectins to fail if the user is not in /etc/passwd, and there are
probably other issues as well.  Any ssh hackers looking at this, by any
chance?
-- 
... Joe

---
Joe Greco - Systems Administrator [EMAIL PROTECTED]
Solaria Public Access UNIX - Milwaukee, WI 414/342-4847


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Parallel make world broken

2000-04-16 Thread Kris Kennaway

On Sun, 16 Apr 2000, Donn Miller wrote:

 === librsausa
 mkdir: openssl: File exists
 cp /usr/src/secure/lib/librsausa/../libcrypto/opensslconf-i386.h
 openssl/openssl
 conf.h
 *** Error code 1

What -j setting? This works fine for me.

Kris


In God we Trust -- all others must submit an X.509 certificate.
-- Charles Forsythe [EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Parallel make world broken

2000-04-16 Thread Donn Miller


On Sun, 16 Apr 2000, Kris Kennaway wrote:

 On Sun, 16 Apr 2000, Donn Miller wrote:
 
  === librsausa
  mkdir: openssl: File exists
  cp /usr/src/secure/lib/librsausa/../libcrypto/opensslconf-i386.h
  openssl/openssl
  conf.h
  *** Error code 1
 
 What -j setting? This works fine for me.

I used make -j6 buildworld.

- Donn



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Test

2000-04-16 Thread Telstra Bigpond Advance Helpdesk





To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



kernel link errors

2000-04-16 Thread Donn Miller

With a fresh cvsup as of 1/2 hour ago, I get the following link errors
during the link stage of the kernel build.  (Please see attached
file.)



- Donn

linking kernel
init_sysent.o(.data+0xb54): undefined reference to `kqueue'
init_sysent.o(.data+0xb5c): undefined reference to `kevent'
kern_descrip.o: In function `close':
kern_descrip.o(.text+0x85c): undefined reference to `knote_fdclose'
kern_exec.o: In function `execve':
kern_exec.o(.text+0x4fb): undefined reference to `knote'
kern_exit.o: In function `exit1':
kern_exit.o(.text+0x46e): undefined reference to `knote'
kern_fork.o: In function `fork1':
kern_fork.o(.text+0x811): undefined reference to `knote'
kern_sig.o: In function `psignal':
kern_sig.o(.text+0x1082): undefined reference to `knote'
sys_pipe.o: In function `pipe_read':
sys_pipe.o(.text+0x599): undefined reference to `knote'
sys_pipe.o(.text+0x9af): more undefined references to `knote' follow
vfs_aio.o: In function `aio_free_entry':
vfs_aio.o(.text+0x2eb): undefined reference to `knote_remove'
vfs_aio.o: In function `aio_daemon':
vfs_aio.o(.text+0xc6b): undefined reference to `knote'
vfs_aio.o: In function `aio_qphysio':
vfs_aio.o(.text+0x1155): undefined reference to `knote'
vfs_aio.o: In function `_aio_aqueue':
vfs_aio.o(.text+0x16fc): undefined reference to `kqueue_register'
vfs_aio.o: In function `aio_physwakeup':
vfs_aio.o(.text+0x1bcd): undefined reference to `knote'
ffs_vnops.o: In function `ffs_write':
ffs_vnops.o(.text+0x8f9): undefined reference to `knote'
ufs_vnops.o: In function `ufs_create':
ufs_vnops.o(.text+0xf1): undefined reference to `knote'
ufs_vnops.o: In function `ufs_mknod':
ufs_vnops.o(.text+0x14a): undefined reference to `knote'
ufs_vnops.o: In function `ufs_setattr':
ufs_vnops.o(.text+0x78b): undefined reference to `knote'
ufs_vnops.o(.text+0x943): more undefined references to `knote' follow
*** Error code 1

Stop in /usr/src/sys/compile/CUSTOM.



Re: kernel link errors

2000-04-16 Thread Josh Tiefenbach

On Sun, Apr 16, 2000 at 09:30:17PM -0400, Donn Miller wrote:
 With a fresh cvsup as of 1/2 hour ago, I get the following link errors
 during the link stage of the kernel build.  (Please see attached
 file.)

Try re-config/re-compiling your kernel after adding the following line to
/sys/conf/files:

kern/kern_event.c   standard

josh

-- 
Give me rampant intellectualism as a coping strategy!
   -- Chuck Palahniuk in Invisible Monsters


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: kernel link errors

2000-04-16 Thread Donn Miller

Josh Tiefenbach wrote:
 
 On Sun, Apr 16, 2000 at 09:30:17PM -0400, Donn Miller wrote:
  With a fresh cvsup as of 1/2 hour ago, I get the following link errors
  during the link stage of the kernel build.  (Please see attached
  file.)
 
 Try re-config/re-compiling your kernel after adding the following line to
 /sys/conf/files:
 
 kern/kern_event.c   standard

That fixed it.  Can someone please commit the changes?

- Donn


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: kernel link errors

2000-04-16 Thread Warner Losh

In message [EMAIL PROTECTED] Donn Miller writes:
:  kern/kern_event.c   standard
: 
: That fixed it.  Can someone please commit the changes?

Done.

Warner


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Sound Blaster Live! 4.0

2000-04-16 Thread Frank Mayhar

(Forwarding this to -current; I think it's relevant there since 4-stable and
-current haven't diverged _that_ much.  Yet.)

Frank Mayhar wrote:
 Bryan Bradsby wrote:
   Do _you_ have ECC memory?
  Nope.
 
 So far, of the folks I've polled, the ones that have had success (with the
 SBLive driver) have _not_ had ECC memory.  The one report of failure _was_
 using ECC memory.
 
 Sounds like serious driver trouble to me, and like the folks that aren't
 having trouble may have weird failures in the future as their memory gets
 tromped.
-- 
Frank Mayhar [EMAIL PROTECTED] http://www.exit.com/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message