Re: question in sosend_generic()

2013-06-08 Thread Robert Watson
On Fri, 7 Jun 2013, vasanth rao naik sabavat wrote: When sending data out of the socket I don't see in the code where the sb_cc is incremented. sb_cc reflects data appended to the socket buffer; sosend_generic() is responsible for arranging copying in and performing flow control, but the

Re: KVERIFY for non-debug invariants?

2012-12-06 Thread Robert Watson
On Wed, 5 Dec 2012, Vijay Singh wrote: All. KASSERT() is a really need way of expressing invariants when INVARIANTS is defined. However for regular, non-INVARIANTS code folks have the typical if() panic() combos, or private macros. Would a KVERIFY() that does this in non-INVARIANTS code make

Re: A question about creating a system call

2012-11-08 Thread Robert Watson
Hi Dave: This wiki page may be of value: http://wiki.freebsd.org/AddingAuditEvents Robert N M Watson Computer Laboratory University of Cambridge On Thu, 8 Nov 2012, dave jones wrote: Hello, I know how to create system calls, but I'm a bit confused about sys/kern/syscalls.master

Re: No bus_space_read_8 on x86 ?

2012-10-13 Thread Robert Watson
On Fri, 12 Oct 2012, Carl Delsey wrote: Indeed -- and on non-x86, where there are uncached direct map segments, and TLB entries that disable caching, reading 2x 32-bit vs 1x 64-bit have quite different effects in terms of atomicity. Where uncached I/Os are being used, those differences may

Re: No bus_space_read_8 on x86 ?

2012-10-12 Thread Robert Watson
On Fri, 12 Oct 2012, John Baldwin wrote: I believe it was because bus reads weren't guaranteed to be atomic on i386. don't know if that's still the case or a concern, but it was an intentional omission. True. If you are on a 32-bit system you can read the two 4 byte values and then build a

Re: syslog(3) issues

2012-09-03 Thread Robert Watson
On Mon, 3 Sep 2012, Attilio Rao wrote: I was trying to use syslog(3) in a port application that uses threading , having all of them at the LOG_CRIT level. What I see is that when the logging gets massive (1000 entries) I cannot find some items within the /var/log/messages (I know because I

Re: projects/armv6 merged to HEAD

2012-08-17 Thread Robert Watson
On Thu, 16 Aug 2012, Oleksandr Tymoshenko wrote: projects/armv6 branch was merged to HEAD and should be considered dead now. This patch is a result of a joint effort by many people. Including but not limited to: Amazing work -- many thanks are due to to everyone who was involved! Robert

Re: sysctl filesystem ?

2012-06-26 Thread Robert Watson
On Tue, 26 Jun 2012, Chris Rees wrote: as well as we don't depend of /proc for normal operation we shouldn't for say /proc/sysctl improvements are welcome, better documentation is welcome, changes to what is OK - isn't. /proc/sysctl might be useful. Just because Linux uses it doesn't make

Re: SMP: protocol control block protection for a multithreaded process (ex: udp).

2012-05-29 Thread Robert Watson
On Tue, 29 May 2012, vasanth rao naik sabavat wrote: In case of a Multicore cpu system running a multithreaded process. For protocol control blocks there is no protection provided in the FreeBSD 9. For example, udp_close() and udp_send() access the inp before taking the lock. Couldn't this

Re: SMP: protocol control block protection for a multithreaded process (ex: udp).

2012-05-29 Thread Robert Watson
On Tue, 29 May 2012, vasanth rao naik sabavat wrote: Can somebody please reply to this email. basically, can udp_detach() and udp_send() execute simultaneously for a process with multiple threads? if yes, then inp reference in udp_send() will be stale if udp_detach() free's the inp? You

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-18 Thread Robert Watson
On Mon, 16 Jan 2012, Julian Elischer wrote: On 1/16/12 3:32 PM, William Bentley wrote: I also echo John's sentiments here. Very excellent points made here. Thank you for voicing your opinion. I was beginning to think I was the only one who felt this way. [...] We seem to have lost our way

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-18 Thread Robert Watson
On Wed, 18 Jan 2012, Andriy Gapon wrote: on 18/01/2012 02:16 Igor Mozolevsky said the following: Seriously, WTF is the point of having a PR system that allows patches to be submitted??! When I submit a patch I fix *your* code (not yours personally, but you get my gist). Let me pretend that

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-18 Thread Robert Watson
On Tue, 17 Jan 2012, Andriy Gapon wrote: on 17/01/2012 00:28 John Kozubik said the following: we going to run RELEASE software ONLY My opinion: you've put yourself in a box that is not very compatible with the current FreeBSD release strategy. With your scale and restrictions you

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-18 Thread Robert Watson
On Tue, 17 Jan 2012, Doug Barton wrote: The other thing I think has been missing (as several have pointed out in this thread already) is any sort of planning for what should be in the next release. The current time-based release schedule is (in large part) a reaction to the problems we had

Re: buf_ring(9) API precisions

2011-09-15 Thread Robert Watson
On Thu, 15 Sep 2011, K. Macy wrote: Why are you making an MD guess, the amount of padding to fit the size of a cache line, in MI API ? Strangely enough, you did not make this assumption in, say r205488 (picked randomly). It has been several years, and I haven't done any work in svn in over a

Re: TIME_WAIT Assassination in FreeBSD???

2011-09-05 Thread Robert Watson
On Sat, 3 Sep 2011, Jarrod Lee Petz wrote: 3. Does FreeBSD handle this situation? How? I can't seem to find much info on TIME_WAIT assassination in FreeBSD is mentioned in RFC 6056 I'm not familiar with the RFC side here, but I can confirm that FreeBSD will recycle TIMEWAIT connections more

Re: Dynamic kernel module linking problem

2011-08-26 Thread Robert Watson
On Fri, 26 Aug 2011, Monthadar Al Jaberi wrote: I have written a dynamic loadable module using DECLARE_MODULE in FreeBSD-Current. And I want to iterate through the ifnet list using following code snippet: If this is on a recent version of FreeBSD (8.x and later), then you probably mean to

Re: Capsicum project: Ideas needed

2011-08-10 Thread Robert Watson
On Thu, 4 Aug 2011, Lars Engels wrote: I just stumbled upon this rather outdated thread... On Fri, 8 Jul 2011 15:09:52 +0400, Ilya Bakulin wrote: [...] wget curl links/lynx This is Ports software, we may try to modify it and even send patches to upstream, or maintain our local patches. I

Re: MIPS toolchain

2011-07-31 Thread Robert Watson
On Fri, 29 Jul 2011, James Jones wrote: Does anyone have a prebuilt MIPS tool chain? For FreeBSD-related MIPS work, I generally use the FreeBSD toolchain target followed by the buildenv environment, but that requires first building a cross-toolchain using TARGET_ARCH and TARGET. However,

Re: MAC Framework, Socket information

2011-07-29 Thread Robert Watson
On Thu, 28 Jul 2011, s wrote: I need to get some info about the socket being created by the user. What I want to do is log all TCP/UDP outgoing connections that are being made. I *need* to get the local and remote address, as well as the local and remote port. I managed to get all of the

Re: Add setacl system call?

2011-07-28 Thread Robert Watson
On Mon, 25 Jul 2011, exorcistkiller wrote: Another question while I'm reading the code. In ufs_acl.c, in static int ufs_getacl_posix1e(struct vop_getacl_args *ap), you commented: As part of the ACL is stored in the inode, and the rest in an EA, assemble both into a final ACL product. From

Re: HTT vs SMT in x86 SMP topology reporting

2011-07-28 Thread Robert Watson
On Tue, 26 Jul 2011, Andriy Gapon wrote: Can anybody explain to me why our _x86_ SMP topology discovery and reporting code sometimes reports HTT and sometimes SMT? As in FreeBSD/SMP: %d package(s) x %d core(s) x %d HTT threads vs FreeBSD/SMP: %d package(s) x %d core(s) x %d SMT threads As

Re: Add setacl system call?

2011-07-25 Thread Robert Watson
On Sun, 24 Jul 2011, exorcistkiller wrote: Hi, I'm working on a course project in which I need to add 3 system calls. One of which is setacl(char *name, int type, int idnum, int perms), which set acl for a file specified by name. I used newfs as in

Re: Finding symlink information in MAC Framework

2011-07-25 Thread Robert Watson
On Fri, 15 Jul 2011, s wrote: I am trying to get some information related to the symlink which is being accessed by the user in MAC Framework. Currently I managed to get the uid/gid of the owner of the symlink that is being read, but now I need to get the same information about the target,

Re: Issue with 'Unknown Error: -512'

2011-07-25 Thread Robert Watson
On Mon, 18 Jul 2011, Andriy Gapon wrote: In recent branches (confirmed with 224119) builds compiled with clang happen to throw 'Unknown error: -512' in a lot of places, making the system unusable. (Untested on gcc compiled systems). Originally I thought the problem was with specific

Re: Kernel timers infrastructure

2011-07-25 Thread Robert Watson
On Mon, 25 Jul 2011, Filippo Sironi wrote: I'm working on a university project that's based on FreeBSD and I'm currently hacking the kernel... but I'm a complete newbie. My question is: what if I have to call a certain function 10 times per second? I've seen a bit of code regarding callout_*

Re: priv_check() question

2011-07-05 Thread Robert Watson
On Sun, 3 Jul 2011, exorcistkiller wrote: Hi! I am taking a FreeBSD course this summer and I'm doing a homework. A new system call uidkill() is to be added. uidkill(uid_t uid, int signum) sends signal specified by signum to all processes owned by uid, excluding the calling process itself.

Re: FreeBSD I/OAT (QuickData now?) driver

2011-06-11 Thread Robert Watson
On Mon, 6 Jun 2011, grarpamp wrote: I know we've got polling. And probably MSI-X in a couple drivers. Pretty sure there is still one CPU doing the interrupt work? And none of the multiple queue thread spreading tech exists? Actually, with most recent 10gbps cards, and even 1gbps cards, we

Re: sizeof(function pointer)

2011-06-05 Thread Robert Watson
On Tue, 31 May 2011, m...@freebsd.org wrote: I am looking into potentially MFC'ing r212367 and related, that adds drains to sbufs. The reason for MFC is that several pieces of new code in CURRENT are using the drain functionality and it would make MFCing those changes much easier. The

Re: Mount_nfs question

2011-05-31 Thread Robert Watson
On Mon, 30 May 2011, Mark Saad wrote: So I am stumped on this one. I want to know what the IP of each nfs server that is providing each nfs export. I am running 7.4-RELEASE When I run mount -t nfs I see something like this VIP-01:/export/source on /mnt/src VIP-02:/export/target on

Re: compiler warnings (was: Re: [rfc] a few kern.mk and bsd.sys.mk related changes)

2011-05-31 Thread Robert Watson
On Tue, 31 May 2011, Alexander Best wrote: On Mon May 30 11, Dieter BSD wrote: Chris writes: Ports need attention. The warnings I get there are frightening. I find it comforting that they're just that: warnings. How do they frighten you? High quality code does not have any warnings.

Re: GSoC

2011-04-02 Thread Robert Watson
On Fri, 1 Apr 2011, Oleksandr Dudinskyi wrote: I should like more specifically disclose my plan of action. One of the main tasks is find the places where registered errors, subsequently error analysis (their type) and separation errors related to disk and modifying the output format. There

Re: Include file search path

2011-04-02 Thread Robert Watson
On Wed, 30 Mar 2011, Warner Losh wrote: On Mar 30, 2011, at 9:23 AM, Dimitry Andric wrote: This is a rather nasty hack, though. If we can make it work, we should probably try using --sysroot instead, or alternatively, -nostdinc and adding include dirs by hand. The same for executable and

Re: Prebind from OpenBSD

2011-03-27 Thread Robert Watson
On Sat, 26 Mar 2011, Jesse Smith wrote: I'm interested in working on the Port prebind from OpenBSD project mentioned on the FreeBSD Ideas page. ( http://wiki.freebsd.org/IdeasPage#head-d28cdd95ca1755d5afe63d653cb4926d4bdc99de ) There isn't much to go on from the project description and I'm

Re: GSoC

2011-03-27 Thread Robert Watson
On Fri, 25 Mar 2011, Dudinskyi Olexandr wrote: My name is Dudinskyi Oleksandr. I am a student of National aviation university, Ukraine. I want to participate in GSoC 2011 with your organization. My project: Disk device error counters, iostat –e. I thing this project is very necessary in

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-12 Thread Robert Watson
On Sat, 12 Feb 2011, Alexander Leidinger wrote: On Sat, 12 Feb 2011 00:52:48 + (GMT) Robert Watson rwat...@freebsd.org wrote: The one comment I'd make is that the MAC case should indicate that The MAC Framework is supported, rather than mandatory access controls being present

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-11 Thread Robert Watson
On Fri, 11 Feb 2011, Alexander Leidinger wrote: during the last GSoC various FEATURE macros where added to the system. Before committing them, I would like to get some review (like if macro is in the correct file, and for those FEATURES where the description was not taken from NOTES if the

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-11 Thread Robert Watson
On Fri, 11 Feb 2011, Ilya Bakulin wrote: When I was beginning this GSoC work, I primarily thought about unifying the way to determine if particular feature exists in the kernel. Of course there should be at least one way to check if the feature is available or not (by definition: if I may use

Re: ixgbe DMA question

2011-02-11 Thread Robert Watson
On Fri, 11 Feb 2011, Santosh Rao Gururajan wrote: I have a host machine with 2 ixgbe NICs. I am trying to pass the frames from one NIC to the other with the lowest possible overhead to the host (high speed bridge). I am wondering if I can do a rx-ring to tx-ring DMA copy without creating a

Re: Analyzing wired memory?

2011-02-08 Thread Robert Watson
On Tue, 8 Feb 2011, Alan Cox wrote: On Tue, Feb 8, 2011 at 6:20 AM, Ivan Voras ivo...@freebsd.org wrote: Is it possible to track by some way what kernel system, process or thread has wired memory? (including data exists but needs code to extract it) No. I'd like to analyze a system

Re: Why does printf(9) hang network?

2011-02-05 Thread Robert Watson
On Sat, 5 Feb 2011, dieter...@engineer.com wrote: Why would doing a printf(9) in a device driver (usb, firewire, probably others) cause an obscenely long lockout on /usr/src/sys/kern/uipc_sockbuf.c:148 (sx:so_rcv_sx) ? Printf(9) alone isn't the problem, adding printfs to chown(2) does not

Re: Creating an LVM-backed FreeBSD DomU in a Linux Dom0

2010-12-28 Thread Robert Watson
On Tue, 28 Dec 2010, Avleen Vig wrote: After searching high and low and not finding exactly what I wanted (although Adrian Chadd's documents came close), I decided to document a lengthy but worthwhile procedure: How to install a FreeBSD DomU guest in a Linux Dom0 Xen host, from scratch,

Re: libkvm: consumers of kvm_getprocs for non-live kernels?

2010-11-11 Thread Robert Watson
On Wed, 10 Nov 2010, Ulrich Spörlein wrote: I have this cleanup of libkvm sitting in my tree and it needs a little bit of testing, especially the function kvm_proclist, which is only called from kvm_deadprocs which is only called from kvm_getprocs when kd is not ALIVE. The only consumer in

Re: [PATCH] Fix 'implicit declaration' warning and update vgone(9)

2010-10-29 Thread Robert Watson
On Wed, 27 Oct 2010, Benjamin Kaduk wrote: On Wed, 27 Oct 2010, Kostik Belousov wrote: On Wed, Oct 27, 2010 at 10:59:56AM -0400, Benjamin Kaduk wrote: [1] The old (racy) function is osi_TryEvictVCache, here:

Re: addition of sysctl nodes after compile time

2010-10-21 Thread Robert Watson
On Tue, 19 Oct 2010, Alexander Best wrote: does this limitation still exist? Sysctls can be added dynamically using the sysctl_add_oid(9) KPI, which has existed (as far as I'm aware) at least since FreeBSD 4.x. It could be that this KPI provides the functionality required to do what the

Re: Bumping MAXCPU on amd64?

2010-09-23 Thread Robert Watson
On Wed, 22 Sep 2010, Maxim Sobolev wrote: On 9/22/2010 6:37 AM, John Baldwin wrote: Unfortunately this can't be MFC'd to 7 as it would destroy the ABI for existing klds. Ah, ok, sorry, I did only check RELENG_7. Can we make it a kernel option then? In principle, yes, but MAXCPU is used

Re: zfs + uma

2010-09-18 Thread Robert Watson
On Fri, 17 Sep 2010, Andre Oppermann wrote: Although keeping free items around improves performance, it does consume memory too. And the fact that that memory is not freed on lowmem condition makes the situation worse. Interesting. We may run into related issues with excessive mbuf

Re: Intel TurboBoost in practice

2010-07-26 Thread Robert Watson
On Sun, 25 Jul 2010, Alexander Motin wrote: The numbers that you are showing doesn't show much difference. Have you tried buildworld? If you mean relative difference -- as I have told, it's mostly because of my CPU. It's maximal boost is 266MHz (8.3%), but 133MHz of them is enabled most of

Re: How to get stack bounds of current process?

2010-05-11 Thread Robert Watson
On Mon, 10 May 2010, Lev Serebryakov wrote: I'm proting some application from Linux, which discover its stack bounds by reading and pasing /proc/self/maps. FreeBSD have /prov/curproc/map, but I can not find how to determine which record is for stack (I've looked into implementation of

Re: make pkg_install suite reusable, please

2010-04-11 Thread Robert Watson
On Fri, 9 Apr 2010, Alexander Churanov wrote: 2010/4/9 Leinier Cruz Salfran salfrancl.lis...@gmail.com i want to ask you one thing: can you make the 'pkg_install' suite reusable .. means install 'libinstall.a' as a shared object in order to make it reusable by others devs I'd like to add

Re: make pkg_install suite reusable, please

2010-04-11 Thread Robert Watson
On Fri, 9 Apr 2010, Charlie Kester wrote: It was a watershed moment in my programming career when I realized that the bubbles on those DFD charts we used to use for structured design could be whole processes and not just functions in a single, monolithic program. Suddenly everything the

Re: GSoC 2010

2010-04-11 Thread Robert Watson
On Sat, 10 Apr 2010, jax wrote: I am Igor Druzhinin and I want to participate in GSoC 2010 in FreeBSD project. I want to propose to completely realise fast syscalls support for FreeBSD on x86 platform. I have already submited my proposal few days ago on GSoC site and tried to contact with

Re: Another tool for updating /etc -- lua||other script language bikeshed

2010-03-26 Thread Robert Watson
On Fri, 26 Mar 2010, per...@pluto.rain.com wrote: Robert Watson rwat...@freebsd.org wrote: ... web browsers [are] basically operating systems at this point ... Isn't this a bit of an exaggeration? Not too many browsers have to deal with process/thread scheduling, or device drivers

Re: Another tool for updating /etc -- lua||other script language bikeshed

2010-03-25 Thread Robert Watson
On Wed, 24 Mar 2010, Ivan Voras wrote: Wouldn't it be nice to have a blessed (i.e. present-in-base) script language interpreter with a syntax that has evolved since the 1970-ies? (with a side-glance to C that *has* evolved since the KR style). ... As a possible alternative, or at least to

RE: mac_mls mac_biba mac_lomac patches to fix ptys_equal mib support for new /dev/pts in FreeBSD 8

2010-03-06 Thread Robert Watson
On Tue, 2 Mar 2010, Selphie Keller wrote: - (2) Could you let me know how your login.conf + user labels are configured, and show me the output of ps -axZ | grep sshd? /etc/login.conf label configurations I use Staff users: label=mls/2(low-high) Deamons: label=mls/equal(equal-equal) Insecure

Re: Automated kernel crash reporting system

2010-03-05 Thread Robert Watson
On Thu, 4 Mar 2010, sean connolly wrote: Automatic reporting would end up being a mess given that panics can be caused by hardware problems. Having an autoreport check if memtest was run before it reports, or having it only run with -CURRENTmight be useful. Hi Sean, Dan, et al: I'm not

Re: mac_mls mac_biba mac_lomac patches to fix ptys_equal mib support for new /dev/pts in FreeBSD 8

2010-03-02 Thread Robert Watson
On Mon, 1 Mar 2010, Estella Mystagic wrote: Found issues with sysctl mibs security.mac.biba.ptys_equal, security.mac.lomac.ptys_equal, security.mac.mls.ptys_equal, not supporting new /dev/pts terminal system in FreeBSD 8, proposed fix for issue. When using a higher security grade/clearance

Re: mac_mls mac_biba mac_lomac patches to fix ptys_equal mib support for new /dev/pts in FreeBSD 8

2010-03-02 Thread Robert Watson
On Tue, 2 Mar 2010, Robert Watson wrote: Thanks for this patch. I'll go ahead and merge it, but had two questions: Committed as r204581, thanks! Robert ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: unix socket: race on close?

2010-02-18 Thread Robert Watson
On Thu, 18 Feb 2010, Mikolaj Golub wrote: Below is a simple test code with unix sockets: the client does connect()/close() in loop and the server -- accept()/close(). Sometimes close() fails with 'Socket is not connected' error: Hi Mikolaj: Thanks for this report, and sorry about not

Re: PFIL: how to get tcp/ip fields from mbuf

2010-02-01 Thread Robert Watson
On Mon, 1 Feb 2010, Lukasz Jaroszewski wrote: I am wondering about most elegant and proper way to get IP header fields from mbuf, using PFILs. I have read Murat Balaban paper on PFIL_HOOKS where I found some example function. Question is how can I access IP header field in such manner. The

Re: Contribution to FreeBSD network stack

2010-01-31 Thread Robert Watson
On Sun, 31 Jan 2010, shashidhara none wrote: I am interested to contribute to FreeBSD network stack. I found some projects at http://wiki.freebsd.org/Networking . But could not figure out how to start working on the same. Please help. Hi Shashi-- The FreeBSD network stack is a very large

Re: Strange network issue in freebsd 8

2010-01-23 Thread Robert Watson
On Sat, 23 Jan 2010, Sherin George wrote: i am facing some sort of strange network issue in a freebsd server occasionally. OS: FreeBSD 8.0-RELEASE - amd64 The servers loses network connection once in a few days. I logged into console and verified that network is up. I even restarted

Re: yarrow random generator

2009-12-25 Thread Robert Watson
On Thu, 24 Dec 2009, RW wrote: And also according to Schneier it is a good idea to save state of the PRNG and restore it on boot to make it more seeded. In the default configuration, we save some PRNG output every few minutes (using cron) to a file in /var so that it can be re-injected into

Re: yarrow random generator

2009-12-24 Thread Robert Watson
On Thu, 24 Dec 2009, Paul Graphov wrote: And also according to Schneier it is a good idea to save state of the PRNG and restore it on boot to make it more seeded. In the default configuration, we save some PRNG output every few minutes (using cron) to a file in /var so that it can be

Re: 8.0-RELEASE-p1 Panic panic: sbdrop

2009-12-16 Thread Robert Watson
On Tue, 15 Dec 2009, Linda Messerschmidt wrote: This is a new one on me: Hi Linda-- Unfortunately, this has historically been a tricky panic to debug, as it's associated with a sanity check that picks up kernel memory corruption that may have occurred at a much earlier time. Without a

Re: Superpages on amd64 FreeBSD 7.2-STABLE

2009-12-12 Thread Robert Watson
On Thu, 10 Dec 2009, Nate Eldredge wrote: What about using posix_spawn(3)? This is implemented in terms of vfork(), so you'll gain the same performance advantages, but it avoids many of vfork's pitfalls. Also, since it's a POSIX standard function, you needn't worry that it will go away or

Re: UNIX domain sockets on nullfs still broken?

2009-12-10 Thread Robert Watson
On Mon, 30 Nov 2009, xorquew...@googlemail.com wrote: jackd (audio/jack) creates a directory in /tmp with a UNIX domain socket in it. Clients connect to this socket to communicate with the server. We currently support the sharing of UNIX domain sockets between file system layers on either

Re: UNIX domain sockets on nullfs still broken?

2009-12-10 Thread Robert Watson
On Mon, 30 Nov 2009, Ivan Voras wrote: What's the sane solution, then, when the only method of communication is unix domain sockets? It is a security problem. I think the long-term solution would be to add a sysctl analogous to security.jail.param.securelevel to handle this. I don't think

Re: UNIX domain sockets on nullfs still broken?

2009-12-10 Thread Robert Watson
On Tue, 1 Dec 2009, Linda Messerschmidt wrote: On Mon, Nov 30, 2009 at 10:14 AM, Ivan Voras ivo...@freebsd.org wrote: What's the sane solution, then, when the only method of communication is unix domain sockets? It is a security problem. I think the long-term solution would be to add a

Re: UNIX domain sockets on nullfs still broken?

2009-12-10 Thread Robert Watson
On Thu, 10 Dec 2009, Robert Watson wrote: On Mon, 30 Nov 2009, xorquew...@googlemail.com wrote: jackd (audio/jack) creates a directory in /tmp with a UNIX domain socket in it. Clients connect to this socket to communicate with the server. We currently support the sharing of UNIX domain

Re: mprotect(2) clears the flag for whole page which causes program crash.

2009-11-18 Thread Robert Watson
On Tue, 17 Nov 2009, Sharad Chandra wrote: Is it known bug or is there any workaround? How will a userland process make sure that process will not crash as malloc(3) can allocate where ever it get the memory free to use. mprotect(2) operates on pages, so you'll want to use mmap(2) and

Re: mmap(2) segaults with certain len values and MAP_ANON|MAP_FIXED

2009-10-21 Thread Robert Watson
On Wed, 21 Oct 2009, Alexander Best wrote: this code serves only one purpose: to trigger a segfault. i don't use the code for any other purpose. i was under the impression that mmap() should either succeed or fail (tertium non datur). mmap's manual doesn't say anything about mmap() causing

Re: global TCP_NODELAY?

2009-10-12 Thread Robert Watson
On Mon, 12 Oct 2009, Ivan Voras wrote: 2009/10/12 Alfred Perlstein alf...@freebsd.org: * Ivan Voras ivo...@freebsd.org [091012 04:29] wrote: I'm trying to work around some extreme brain damageness in PHP (yes, it sucks) which doesn't have a way to set TCP_NODELAY on stream sockets so I'm

Re: Need some help understanding a jail system call.

2009-08-31 Thread Robert Watson
On Wed, 26 Aug 2009, Dag-Erling Smørgrav wrote: Here is the link i used to find this code http://www.watson.org/~robert/freebsd/jailng/ You realize that this is eight years old, right? And that the jail infrastructure has been extensively modified since then, and is currently being

Re: Common interface for sensors/health monitoring

2009-08-22 Thread Robert Watson
On Sat, 22 Aug 2009, Marc Balmer wrote: I was looking for the same info a time ago .. something that would allow me to gather all the info from the same place, but the only thing I came up with was the very same discussion about the sensors framework port and nothing else. Any info on any

Re: Security: information leaks in /proc enable keystroke recovery

2009-08-17 Thread Robert Watson
On Sun, 16 Aug 2009, David Wagner wrote: I accept your argument that there is no point trying to defend against deliberate communication of information between two cooperating processes via some sneaky channel; there is no hope of stopping that in general-purpose commodity OS's. If process

Re: Security: information leaks in /proc enable keystroke recovery

2009-08-16 Thread Robert Watson
On Sun, 16 Aug 2009, Oliver Pinter wrote: FreeBSD manages its process files more cautiously than Linux12 : it puts all register values into the file /proc/pid/regs that can only be read by the owner of a process, which blocks the information used by This is inaccurate, but largely in an

Re: What's changed between 7.1 and 7.2

2009-07-10 Thread Robert Watson
On Fri, 10 Jul 2009, Ivan Voras wrote: Robert Watson wrote: On Wed, 8 Jul 2009, Wojciech Puchar wrote: i'm getting that crap every time i remount filesystem and on startup. GEOM_LABEL: Label ufsid/48dd2cbe8423dd9e removed. GEOM_LABEL: Label for provider mirror/sysa is ufsid/48dd2cbe8423dd9e

Re: What's changed between 7.1 and 7.2

2009-07-08 Thread Robert Watson
On Wed, 8 Jul 2009, Wojciech Puchar wrote: i'm getting that crap every time i remount filesystem and on startup. GEOM_LABEL: Label ufsid/48dd2cbe8423dd9e removed. GEOM_LABEL: Label for provider mirror/sysa is ufsid/48dd2cbe8423dd9e. GEOM_LABEL: Label ufsid/48dd2cbe8423dd9e removed. GEOM_LABEL:

Re: large pages (amd64)

2009-07-02 Thread Robert Watson
On Tue, 30 Jun 2009, Mel Flynn wrote: It looks like sys/kern/kern_proc.c could call mincore around the loop at line 1601 (rev 194498), but I know nothing about the vm subsystem to know the implications or locking involved. There's still 16 bytes of spare to consume, in the kve_vminfo struct

Re: callout(9) and Giant lock

2009-06-28 Thread Robert Watson
On Sun, 28 Jun 2009, Sebastian Huber wrote: suppose that a certain time event triggered several callout functions. What happens if the first of these callout functions blocks on the Giant lock? Does this delay all further callout functions until the Giant lock is available for the first

Re: Disk quota for Jail. Discussion.

2009-05-27 Thread Robert Watson
On Tue, 26 May 2009, Menshikov Konstantin wrote: Yes. But jail cannot allocate block and inode above root path. In allocation functions, whether for example ffs_alloc we have access to ucred process and we can check up there is a process in jail. Yes, you can check this for jailed process.

Re: compiling system binutils as cross tools

2009-05-21 Thread Robert Watson
On Thu, 21 May 2009, xorquew...@googlemail.com wrote: How do I compile the system binutils (contrib/binutils) as i386 - x86_64 cross utils? That is, binutils that will run on an i386 host but will produce x86_64 binaries? I'm trying to produce a bootstrapping compiler for a port and need to

Re: How to invalidate NFS read cache?

2009-05-12 Thread Robert Watson
On Fri, 8 May 2009, Konrad Heuer wrote: sporadically, I observe a strange but serious problem in our large NFS environment. NFS servers are Linux and OS X with StorNext/Xsan cluster filesystems, NFS clients Linux and FreeBSD. NFS client A changes a file, but nfs client B (running on FreeBSD)

Re: How to invalidate NFS read cache?

2009-05-12 Thread Robert Watson
On Tue, 12 May 2009, Robert Watson wrote: Normally, NFS clients implement open-to-close consistency, which dictates that when a close() occurs on client A, all pending writes on the file should be issued to the server before close() returns, so that a signal to client B to open() the file

Re: NetBSD 5.0 statistics

2009-04-30 Thread Robert Watson
On Thu, 30 Apr 2009, Oliver Pinter wrote: Is the FreeBSD's FS management so slow? http://www.netbsd.org/~ad/50/img15.html Or so big is the difference between the two cpu scheduler? Also, there's a known and serious performance regression in CAM relating to tgged queueing, and the generic

Re: FreeBSD memguard + spinlocks

2009-04-11 Thread Robert Watson
On Sat, 11 Apr 2009, Andrew Brampton wrote: I'm having a problem with memguard(9) on FreeBSD 7.1 but before I ask about that I just need to check my facts about malloc. When in interrupt context malloc must be called with M_NOWAIT, this is because I can't sleep inside a interrupt. Now when I

Re: FreeBSD memguard + spinlocks

2009-04-11 Thread Robert Watson
On Sat, 11 Apr 2009, Andrew Brampton wrote: Thanks very much for your detailed reply. I'm slowly understanding how everything in FreeBSD fits together, and I appreciate your help. I've been given a project to take over, and all of the design decisions were made before I started working on

Re: GSoC: Semantic File System

2009-04-07 Thread Robert Watson
On Tue, 7 Apr 2009, Stephan Lichtenauer wrote: Am 02.04.2009 um 19:26 schrieb Robert Watson: In the BeOS model, or my reinterpretation based on something I read a long time ago and then presumably had dreams about, the split is a bit different: the file system maintains indexes of extended

Re: GSoC: Semantic File System

2009-04-02 Thread Robert Watson
On Thu, 2 Apr 2009, Gabriele Modena wrote: On Sun, Mar 22, 2009 at 6:52 PM, Robert Watson rwat...@freebsd.org wrote: We are certainly not uninterested in projects along these lines, but I think the trick will be creating a convincing proposal that argues that (a) you can do the work

Re: Improving the kernel/i386 timecounter performance (GSoC proposal)

2009-03-27 Thread Robert Watson
On Fri, 27 Mar 2009, Scott Long wrote: I've been talking about this for years. All I need is help with the VM magic to create the page on fork. I also want two pages, one global for gettimeofday (and any other global data we can think of) and one per-process for static data like

Re: Improving the kernel/i386 timecounter performance (GSoC proposal)

2009-03-27 Thread Robert Watson
On Fri, 27 Mar 2009, Scott Long wrote: I've been talking about this for years. All I need is help with the VM magic to create the page on fork. I also want two pages, one global for gettimeofday (and any other global data we can think of) and one per-process for static data like

Re: Re: Improving the kernel/i386 timecounter performance (GSoC proposal)

2009-03-27 Thread Robert Watson
On Fri, 27 Mar 2009, Sergey Babkin wrote: Would not a normal mmap be duplicated on fork? I'd do it as a small pseudo-= driver that allows to mmap this page. Then libc would open this pseudo-d= evice and mmap it, either in the on-load handler or on the first call of= gettimeofday().

Re: Improving the kernel/i386 timecounter performance (GSoC proposal)

2009-03-27 Thread Robert Watson
On Fri, 27 Mar 2009, Poul-Henning Kamp wrote: In message alpine.bsf.2.00.0903272254460.12...@fledge.watson.org, Robert Wats on writes: I guess interesting questions are whether (a) it would be desirable to have per-page, per-cpu, or per-thread mappings. If there are non-synchronized TSCs,

Re: Improving the kernel/i386 timecounter performance (GSoC proposal)

2009-03-27 Thread Robert Watson
On Fri, 27 Mar 2009, Poul-Henning Kamp wrote: In message alpine.bsf.2.00.0903272303040.12...@fledge.watson.org, Robert Wats on writes: In which case user application threads will need to know their CPU [...] Didn't jemalloc solve that problem once already ? I think jemalloc implements

Re: does Copyright on source files expire ?

2009-03-26 Thread Robert Watson
On Thu, 26 Mar 2009, ttw+...@cobbled.net wrote: On 25.03-05:31, David Schultz wrote: [ ... ] A person's Copyright doesn't go away just because they die, disappear, or fail to respond. If you can't contact them, their heirs, or whomever they transferred the Copyright to, you're stuck. yeah

Re: 2 uni-directional TCP connection good

2009-03-23 Thread Robert Watson
On Sun, 22 Mar 2009, Yoshihiro Ota wrote: On Fri, 20 Mar 2009, Yoshihiro Ota wrote: 1. With TCP connections, only sender side can detect some communication issues passively if happened. By using two connections, you lost that ability by your self. I agree on this one. Could you expand a

Re: GSoC: Semantic File System

2009-03-22 Thread Robert Watson
On Sat, 21 Mar 2009, Gabriele Modena wrote: I am an AI master student at the university of Amsterdam. On of my current research interests lays in the area of information retrieval and I would like to do a project within my University research group starting next june. I am actually

Re: 2 uni-directional TCP connection good?

2009-03-20 Thread Robert Watson
On Fri, 20 Mar 2009, Yoshihiro Ota wrote: 1. With TCP connections, only sender side can detect some communication issues passively if happened. By using two connections, you lost that ability by your self. I agree on this one. Could you expand a bit on this point? While the connection

Re: SA add notification to externa module

2009-03-17 Thread Robert Watson
On Tue, 17 Mar 2009, srikanth jampala wrote: This is my first posting. I want the notifications about the SA (security association) add/delete events, from the kernel to my externel kernel module. How can I do this... ? Thanks in advance for ur suggestions. I'm not sure if PF_KEY has

  1   2   3   4   5   6   7   8   >