Re: swapoff?

2002-07-12 Thread David Schultz
Thus spake Matthew Dillon <[EMAIL PROTECTED]>: > Implementing swapoff is a bunch of grunt-work but not too hard in > concept. Basically the work involved is this: Sounds like a plan, and not too tricky. Perhaps I'll see if I can figure it out when I have some free time. > * Make

Re: swapoff?

2002-07-12 Thread Matthew Dillon
:BTW, NetBSD's new UVM code has the ability to do this. Perhaps :it's worth looking in to how difficult it would really be in FreeBSD... : :To Unsubscribe: send mail to [EMAIL PROTECTED] :with "unsubscribe freebsd-hackers" in the body of the message Someone got it mostly working a year or t

Re: swapoff?

2002-07-12 Thread David Schultz
BTW, NetBSD's new UVM code has the ability to do this. Perhaps it's worth looking in to how difficult it would really be in FreeBSD... To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: swapoff?

2002-07-12 Thread David Schultz
Thus spake Sean Kelly <[EMAIL PROTECTED]>: > My familiarity with the "workings" of FreeBSD is still pretty minimal. Are > there certain reasons that there currently is no way to stop paging to a > device/file? I imagine the implementation of this would be complicated, as it is in Linux. You'd ha

swapoff?

2002-07-12 Thread Sean Kelly
Not sure if this is offtopic here or not, so apologies ahead of time if so. It has been many years since I used Linux, but one thing I recall is that there was a `swapoff` command in Linux to complement the `swapon` command. Are there any patches or plans to implement such a thing in FreeBSD? My

Re: security problem in sysctl?

2002-07-12 Thread Peter Wemm
Bernd Walter wrote: > On Fri, Jul 12, 2002 at 10:23:35PM +0100, void wrote: > > On Wed, Jul 10, 2002 at 02:30:19PM +0200, Bogdan TARU wrote: > > > > > > Hi guys, > > > > > > I have just rebooted my machine, and immediately after boot I have run > > > 'sysctl -a' as an usual user. Well, in 'ke

Re: security problem in sysctl?

2002-07-12 Thread Bernd Walter
On Fri, Jul 12, 2002 at 10:23:35PM +0100, void wrote: > On Wed, Jul 10, 2002 at 02:30:19PM +0200, Bogdan TARU wrote: > > > > Hi guys, > > > > I have just rebooted my machine, and immediately after boot I have run > > 'sysctl -a' as an usual user. Well, in 'kern.msgbuf' I have found the > >

Re: Large variables on stack

2002-07-12 Thread Bakul Shah
> In general, it's bad to use stack if the only reason you are using > it is to seperate context, which is the point I was trying to make. > > OpenSSL takes this one level worse, and uses stack to avoid the > allocation and deallocation of context structures that are copies > of context structure

Re: Large variables on stack

2002-07-12 Thread Terry Lambert
Peter Wemm wrote: > > Note that this assumes none of the stack is used elsewhere; in the > > kernel example, ther is slightly over 3K used, on average, by the > > time you get to run. > > FWIW; This isn't correct for -current anymore. We have about 7.6K > of kernel stack now, and a guard page be

Re: Large variables on stack

2002-07-12 Thread Peter Wemm
Terry Lambert wrote: > Yar Tikhiy wrote: > > As I see, there are many spots in the FreeBSD userland sources where > > multi-kilobyte automatic variables (e.g., string buffers) are used. > > I've been taught that such variables would better be static or > > allocated on heap. > > > > So the follow

Re: Large variables on stack

2002-07-12 Thread Terry Lambert
Yar Tikhiy wrote: > As I see, there are many spots in the FreeBSD userland sources where > multi-kilobyte automatic variables (e.g., string buffers) are used. > I've been taught that such variables would better be static or > allocated on heap. > > So the following question comes to my mind: To

Re: security problem in sysctl?

2002-07-12 Thread void
On Wed, Jul 10, 2002 at 02:30:19PM +0200, Bogdan TARU wrote: > > Hi guys, > > I have just rebooted my machine, and immediately after boot I have run > 'sysctl -a' as an usual user. Well, in 'kern.msgbuf' I have found the > whole master.passwd file, with combinations of usernames/passwords

Re: Kernel space: MALLOC() & TAILQ_*()

2002-07-12 Thread Pawel Jakub Dawidek
On Fri, Jul 12, 2002 at 01:36:22PM -0700, Julian Elischer wrote: +> did you get answers to this? +> Here You got example how to use SLIST_* macros, sysctls, etc.: http://garage.freebsd.pl/slist.tgz more examples on http://garage.freebsd.pl -- Pawel Jakub Dawidek UNIX Systems Administrator http:

Re: Kernel space: MALLOC() & TAILQ_*()

2002-07-12 Thread Julian Elischer
did you get answers to this? On Wed, 10 Jul 2002, [unknown-8bit] Aurélien Nephtali wrote: > Hi, > > I'm new in kernel coding (i'm making a kernel module) so i had to learn how > to use MALLOC*() macros to get memory, not very difficult in fact. But when > the moment of making a chained list ca

Re: RE: Large variables on stack

2002-07-12 Thread Matthew Dillon
I think it's slightly more complex then that. Sure, all modern UNIX systems can handle huge stack-based structures, but porting to other architectures is not the only concern one should have. Porting from a non-threaded to a threaded environment, for example, is a major conce

Your message to phrackstaff awaits moderator approval

2002-07-12 Thread phrackstaff-admin
Your mail to 'phrackstaff' with the subject Hi,phrack,please try again Is being held until the list moderator can review it for approval. The reason it is being held: Posting to a restricted list by sender requires approval Either the message will get posted to the list, or you will r

Re: Large variables on stack

2002-07-12 Thread Dan Nelson
In the last episode (Jul 12), Yar Tikhiy said: > Hi there, > > As I see, there are many spots in the FreeBSD userland sources where > multi-kilobyte automatic variables (e.g., string buffers) are used. > I've been taught that such variables would better be static or > allocated on heap. > > So t

RE: Large variables on stack

2002-07-12 Thread Mike Mitchell
Good Morning, I would suggest that since we have an VM implementation that works, that the answer to your question is "it doesn't really matter." Now, the information you received about making these items static or heap allocated can be really beneficial when you are coding for an embedded system

Re: Large variables on stack

2002-07-12 Thread Brian T . Schellenberger
On Friday 12 July 2002 11:48 am, Yar Tikhiy wrote: | Hi there, | | As I see, there are many spots in the FreeBSD userland sources where | multi-kilobyte automatic variables (e.g., string buffers) are used. | I've been taught that such variables would better be static or | allocated on heap. | | So

Large variables on stack

2002-07-12 Thread Yar Tikhiy
Hi there, As I see, there are many spots in the FreeBSD userland sources where multi-kilobyte automatic variables (e.g., string buffers) are used. I've been taught that such variables would better be static or allocated on heap. So the following question comes to my mind: To stay portable to a

Re: Bad vnode causing crash in 4.x

2002-07-12 Thread Michael Adler
I meant to ask whether we simply need to add a check for (!dev) before the for loop in vop_revoke() in sys/kern/vfs_subr.c. That would clearly prevent the crash here. What I don't know is whether there is some larger bug. -Michael To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubs