Re: FreeBSD on MacBook Pro.

2010-04-25 Thread Patrick Lamaiziere
Le Sat, 24 Apr 2010 14:31:18 +0200,
Peter Ankerstål pe...@pean.org a écrit :

 Actuall it seems to work with US ISO och US UNIX too but only with
 the fixit cd.
 
 In the FreeBSD boot-meny I also can use the keyboard properly, but
 when Im trying to log in on the booted system no keys work properly.
 It almost seems like the ctrl-key is constantly pressed. (pressing
 say F gives me ^F on the screen and L clears it like ctrl+L does) --

So I think it is a problem in the keyboard driver.
Which Macbook pro model is it?

I use a model 3,1 and it works fine.

I suggest you to ask on the usb mailing list.
Regards.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD on MacBook Pro.

2010-04-25 Thread peter Ankerstål

On Apr 25, 2010, at 8:14 AM, Patrick Lamaiziere wrote:

 Le Sat, 24 Apr 2010 14:31:18 +0200,
 Peter Ankerstål pe...@pean.org a écrit :
 
 Actuall it seems to work with US ISO och US UNIX too but only with
 the fixit cd.
 
 In the FreeBSD boot-meny I also can use the keyboard properly, but
 when Im trying to log in on the booted system no keys work properly.
 It almost seems like the ctrl-key is constantly pressed. (pressing
 say F gives me ^F on the screen and L clears it like ctrl+L does) --
 
 So I think it is a problem in the keyboard driver.
 Which Macbook pro model is it?
 
 I use a model 3,1 and it works fine.
 
 I suggest you to ask on the usb mailing list.
 Regards.
 
Ok. I have the new MacBook Pro 7,1 that came out recently. I'll check with the
USB-list then.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FreeBSD on MacBook Pro.

2010-04-25 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 25/04/2010 08:16:51, peter Ankerstål wrote:
 Ok. I have the new MacBook Pro 7,1 that came out recently. I'll check with the
 USB-list then.

I've a MBP 5,2 which I can't get to boot the FreeBSD install media
successfully.  Tried the 201004 9.x snapshot most recently, which goes
v...e...r...y s...l...o...w...l...y reading the kernel and then grinds
to a halt after printing a message about ACPI.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvT9eAACgkQ8Mjk52CukIxUfQCfawQefe5W+CxGum597K/p4wbV
qXIAoIRMksrmTRoO3++mXb1aJY8+jzdY
=5eaz
-END PGP SIGNATURE-
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


can't compile kernel on STABLE

2010-04-25 Thread Sandra Kachelmann
I _just_ checked out the source tree for RELENG_6 and tried to build
an image for my ALIX board:


$ NOCCACHE=yes KERNCONF=GENERIC TARGET_ARCH=i386 CPUTYPE=i586 make buildkernel

...

cc -O2 -pipe -nostdinc -I/usr/include -I.
-I/usr/src/sys/modules/aic7xxx/aicasm/../../../dev/aic7xxx/aicasm
-std=gnu99  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
-Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline
-Wnested-externs -Wredundant-decls -Wno-pointer-sign  -o aicasm
aicasm.o aicasm_symbol.o aicasm_gram.o aicasm_macro_gram.o
aicasm_scan.o aicasm_macro_scan.o -ll

--
 stage 3.1: making dependencies
--
cd /usr/obj/i386/usr/src/sys/GENERIC; MAKEOBJDIRPREFIX=/usr/obj/i386
MACHINE_ARCH=i386  MACHINE=i386  CPUTYPE=
GROFF_BIN_PATH=/usr/obj/i386/usr/src/tmp/legacy/usr/bin
GROFF_FONT_PATH=/usr/obj/i386/usr/src/tmp/legacy/usr/share/groff_font
GROFF_TMAC_PATH=/usr/obj/i386/usr/src/tmp/legacy/usr/share/tmac
_SHLIBDIRPREFIX=/usr/obj/i386/usr/src/tmp  VERSION=FreeBSD 8.0-STABLE
amd64 800504  INSTALL=sh /usr/src/tools/install.sh
PATH=/usr/obj/i386/usr/src/tmp/legacy/usr/sbin:/usr/obj/i386/usr/src/tmp/legacy/usr/bin:/usr/obj/i386/usr/src/tmp/legacy/usr/games:/usr/obj/i386/usr/src/tmp/usr/sbin:/usr/obj/i386/usr/src/tmp/usr/bin:/usr/obj/i386/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
NO_CTF=1 make KERNEL=kernel depend -DNO_MODULES_OBJ
machine - /usr/src/sys/i386/include
cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc
-I. -I/usr/src/sys -I/usr/src/sys/contrib/altq
-I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf
-I/usr/src/sys/dev/ath -I/usr/src/sys/dev/ath/ath_hal
-I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa
-I/usr/src/sys/gnu/fs/xfs/FreeBSD
-I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs
-I/usr/src/sys/contrib/opensolaris/compat -I/usr/src/sys/dev/cxgb
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -mno-align-long-strings
-mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -ffreestanding -fstack-protector
/usr/src/sys/i386/i386/genassym.c
/usr/src/sys/i386/i386/genassym.c:1: error:
-mpreferred-stack-boundary=2 is not between 4 and 12
*** Error code 1

Stop in /usr/obj/i386/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


This is on:

# uname -a
FreeBSD sandy.local 8.0-STABLE FreeBSD 8.0-STABLE #0: Sat Apr 24
02:19:49 CEST 2010 r...@sandy.local:/usr/obj/usr/src/sys/GENERIC
amd64

I've always built my ALIX images that way. Any idea?

Sandra
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: can't compile kernel on STABLE

2010-04-25 Thread Sandra Kachelmann
On Sun, Apr 25, 2010 at 10:37 AM, Sandra Kachelmann
s.kachelm...@googlemail.com wrote:
 I _just_ checked out the source tree for RELENG_6 and tried to build
 an image for my ALIX board:

Sorry, that should read RELENG_8

Sandra
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


mpd5.5+CoA=kernel panic every 2-33 days

2010-04-25 Thread Denis Lamanov
I have VPN servers on mpd5.5

FreeBSD vpn3 8.0-STABLE FreeBSD 8.0-STABLE #2 r207058M: Thu Apr 22 15:40:40
EEST 2010 ad...@vpn3:/usr/obj/usr/src/sys/GENERICVPN  i386

and every 5-10 minutes my billing system send mpd-limit CoA message to mpd.
Every 2-3 day server go into kernel panic:

Fatal trap 12: page fault while in kernel mode
cpuid = 3; apic id = 07
fault virtual address   = 0x24
fault code  = supervisor read, page not present
instruction pointer = 0x20:0x8a04c9e4
stack pointer   = 0x28:0xee67386c
frame pointer   = 0x28:0xee673aa4
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 871 (mpd5)
trap number = 12
panic: page fault
cpuid = 3
Uptime: 2d7h39m7s
Physical memory: 2035 MB
Dumping 390 MB: 375 359 343

Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 06
fault virtual address   = 0x0
fault code  = supervisor write, page not present
instruction pointer = 0x20:0x8a04c7cb
stack pointer   = 0x28:0xee65590c
frame pointer   = 0x28:0xee655924
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 890 (ng_queue2)
trap number = 12

(kgdb) backtrace
#0  doadump () at pcpu.h:246
#1  0x8089dd47 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:416
#2  0x8089e039 in panic (fmt=Variable fmt is not available.
) at /usr/src/sys/kern/kern_shutdown.c:579
#3  0x80bcfe3c in trap_fatal (frame=0xee67382c, eva=36)
at /usr/src/sys/i386/i386/trap.c:938
#4  0x80bd00c0 in trap_pfault (frame=0xee67382c, usermode=0, eva=36)
at /usr/src/sys/i386/i386/trap.c:851
#5  0x80bd0a05 in trap (frame=0xee67382c) at
/usr/src/sys/i386/i386/trap.c:533
#6  0x80bb2adb in calltrap () at /usr/src/sys/i386/i386/exception.s:165
#7  0x8a04c9e4 in ng_path2noderef (here=0x89f85c00,
address=0x9700d660 mpd871-B-2-lim:1-0-m, destp=0xee673ac0,
lasthook=0xee673abc)
at
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:1757
#8  0x8a04cd40 in ng_address_path (here=0x89f85c00, item=0x8a639a40,
address=0x9700d660 mpd871-B-2-lim:1-0-m, retaddr=0)
at
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:3522
#9  0x8a0464f2 in ngc_send (so=0x889ed80c, flags=0, m=0x89ce6d00,
addr=0x94caa1e0, control=0x0, td=0x8889a6f0)
at
/usr/src/sys/modules/netgraph/socket/../../../netgraph/ng_socket.c:296
#10 0x808ff0d5 in sosend_generic (so=0x889ed80c, addr=0x94caa1e0,
uio=0xee673be8, top=0x89ce6d00, control=0x0, flags=0, td=0x8889a6f0)
at /usr/src/sys/kern/uipc_socket.c:1257
#11 0x808fb1ef in sosend (so=0x889ed80c, addr=0x94caa1e0, uio=0xee673be8,
---Type return to continue, or q return to quit---
top=0x0, control=0x0, flags=0, td=0x8889a6f0)
at /usr/src/sys/kern/uipc_socket.c:1301
#12 0x80902ae1 in kern_sendit (td=0x8889a6f0, s=5, mp=0xee673c5c, flags=0,
control=0x0, segflg=UIO_USERSPACE) at
/usr/src/sys/kern/uipc_syscalls.c:788
#13 0x80902d11 in sendit (td=0x8889a6f0, s=5, mp=0xee673c5c, flags=0)
at /usr/src/sys/kern/uipc_syscalls.c:724
#14 0x80902e28 in sendto (td=0x8889a6f0, uap=0xee673cf8)
at /usr/src/sys/kern/uipc_syscalls.c:840
#15 0x80bd03b3 in syscall (frame=0xee673d38)
at /usr/src/sys/i386/i386/trap.c:
#16 0x80bb2b40 in Xint0x80_syscall () at
/usr/src/sys/i386/i386/exception.s:261
#17 0x0033 in ?? ()
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: iwn firmware instability with an up-to-date stable kernel

2010-04-25 Thread Bernhard Schmidt
On Sat, Apr 24, 2010 at 06:24:42PM -0700, Garrett Cooper wrote:
 On Sat, Apr 24, 2010 at 12:50 AM, Bernhard Schmidt
 bschm...@techwires.net wrote:
  On Sat, Apr 24, 2010 at 12:45:14AM -0700, Garrett Cooper wrote:
  On Sat, Apr 24, 2010 at 12:34 AM, Bernhard Schmidt
  bschm...@techwires.net wrote:
  
   How did you do that? Reloading the module, or with ifconfig?
 
  /etc/rc.d/netif restart , which does the ifconfig operations (no
  module change occurred AFAIK, but wlan0 did of course do some
  device_printf's when it was associating itself with iwn(4)).
 
  Can you do ps xa | grep wpa? Just wondering if wpa_supplicant gets
  started twice.
 
 Some more interesting data.
 
 Open authentication at home works out of the box via wpa_supplicant
 with ifconfig_wlan0=WPA DHCP whereas it flaked out and died at work.
 
 There are two instances of wpa_supplicant started up on the laptop.
 Here's a snippet from pstree that shows that both processes are
 standalone:
 
 -+= 1 root /sbin/init --
  |--= 00121 root adjkerntz -i
  |--= 00559 root /sbin/devd
  |--= 00711 root /usr/sbin/syslogd -s
  |--= 00735 root /usr/sbin/rpcbind
  |--= 00879 root /usr/sbin/moused -p /dev/psm0 -t auto
  |--= 00903 messagebus /usr/local/bin/dbus-daemon --system
  |--= 01073 root /usr/sbin/sshd
  |--= 01081 root sendmail: accepting connections (sendmail)
  |--= 01085 smmsp sendmail: Queue run...@00:30:00 for
 /var/spool/clientmqueue (sendmail)
  |--= 01093 root /usr/sbin/cron -s
  |-+= 01176 haldaemon /usr/local/sbin/hald
  | \-+- 01180 root hald-runner
  |   |--- 01185 root hald-addon-mouse-sysmouse: /dev/psm0 
 (hald-addon-mouse-sy)
  |   \--- 01205 root hald-addon-storage: /dev/acd0 (hald-addon-storage)
  |--= 01179 root /usr/local/sbin/console-kit-daemon
  |--= 01727 root /usr/sbin/wpa_supplicant -s -B -i wlan0 -c
 /etc/wpa_supplicant.conf -D bsd -P /var/run/wpa_supplicant/wlan0.pid
  |--= 01783 root /usr/sbin/wpa_supplicant -s -B -i wlan0 -c
 /etc/wpa_supplicant.conf -D bsd -P /var/run/wpa_supplicant/wlan0.pid
  |--= 01866 root dhclient: wlan0 [priv] (dhclient)
  |--= 01902 _dhcp dhclient: wlan0 (dhclient)

Indeed, devd is responsible for that, removing
notify 0 {
match system  IFNET;
match typeATTACH;
action /etc/pccard_ether $subsystem start;
};
from devd.conf prevents a seconds call to rc.d/netif and therefore
rc.d/wpa_supplicant. This breaks the intended purpose though.

Can we somehow prevent this by checking the pidfile in
rc.d/wpa_supplicant?

-- 
Bernhard
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: can't compile kernel on STABLE

2010-04-25 Thread Garrett Cooper
On Sun, Apr 25, 2010 at 2:11 AM, Sandra Kachelmann
s.kachelm...@googlemail.com wrote:
 On Sun, Apr 25, 2010 at 10:37 AM, Sandra Kachelmann
 s.kachelm...@googlemail.com wrote:
 I _just_ checked out the source tree for RELENG_6 and tried to build
 an image for my ALIX board:

 Sorry, that should read RELENG_8

Did you manually set -mpreferred-stack-boundary ?
Thanks,
-Garrett
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Fwd: kdebase3 - CVE-2010-0436

2010-04-25 Thread Oliver Pinter
this errata is fixed in kde4 and not yet in kde3 @ports...

-- Forwarded message --
From: Oliver Pinter oliver.p...@gmail.com
Date: Sun, 25 Apr 2010 00:31:03 +0200
Subject: kdebase3 - CVE-2010-0436
To: k...@freebsd.org

hi all!

some RH patches for cve-2010-0436:

final: https://bugzilla.redhat.com/attachment.cgi?id=400244action=diff
(I think this for kde4, it depend on cmake)
v1/1: https://bugzilla.redhat.com/attachment.cgi?id=401213action=diff
v1/2: https://bugzilla.redhat.com/attachment.cgi?id=401214action=diff

and attached patch for kdm-kde3 from Red Hat kdebase3 source
diff -up kdebase-3.5.4/kdm/backend/ctrl.c.than kdebase-3.5.4/kdm/backend/ctrl.c
--- kdebase-3.5.4/kdm/backend/ctrl.c.than	2010-03-19 12:42:52.0 +0100
+++ kdebase-3.5.4/kdm/backend/ctrl.c	2010-03-19 12:50:30.0 +0100
@@ -140,22 +140,24 @@ openCtrl( struct display *d )
 if (strlen( cr-path ) = sizeof(sa.sun_path))
 	LogError( path %\s too long; no control sockets will be available\n,
 	  cr-path );
-else if (mkdir( sockdir, 0755 )  errno != EEXIST)
+else if (mkdir( sockdir, 0700 )  errno != EEXIST)
 	LogError( mkdir %\s failed; no control sockets will be available\n,
 	  sockdir );
+else if (unlink( cr-path )  errno != ENOENT)
+	LogError( unlink %\s failed: %m; control socket will not be available\n,
+	  cr-path );
 else {
-	if (!d)
-		chown( sockdir, -1, fifoGroup );
-	chmod( sockdir, 0750 );
 	if ((cr-fd = socket( PF_UNIX, SOCK_STREAM, 0 ))  0)
 		LogError( Cannot create control socket\n );
 	else {
-		unlink( cr-path );
 		sa.sun_family = AF_UNIX;
 		strcpy( sa.sun_path, cr-path );
 		if (!bind( cr-fd, (struct sockaddr *)sa, sizeof(sa) )) {
 			if (!listen( cr-fd, 5 )) {
-chmod( cr-path, 0666 );
+chmod( cr-path, 0660 );
+if (!d)
+   chown( cr-path, -1, fifoGroup );
+chmod( sockdir, 0755 );
 RegisterCloseOnFork( cr-fd );
 RegisterInput( cr-fd );
 free( sockdir );
@@ -218,12 +220,8 @@ chownCtrl( CtrlRec *cr, int uid )
 {
 	if (cr-fpath)
 		chown( cr-fpath, uid, -1 );
-	if (cr-path) {
-		char *ptr = strrchr( cr-path, '/' );
-		*ptr = 0;
+	if (cr-path)
 		chown( cr-path, uid, -1 );
-		*ptr = '/';
-	}
 }
 
 void
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

Re: kdebase3 - CVE-2010-0436

2010-04-25 Thread Thomas Abthorpe
Thanks for the patches, we will look at it as soon as our time permits

Thomas

On 25/04/2010, Oliver Pinter oliver.p...@gmail.com wrote:
 this errata is fixed in kde4 and not yet in kde3 @ports...

 -- Forwarded message --
 From: Oliver Pinter oliver.p...@gmail.com
 Date: Sun, 25 Apr 2010 00:31:03 +0200
 Subject: kdebase3 - CVE-2010-0436
 To: k...@freebsd.org

 hi all!

 some RH patches for cve-2010-0436:

 final: https://bugzilla.redhat.com/attachment.cgi?id=400244action=diff
 (I think this for kde4, it depend on cmake)
 v1/1: https://bugzilla.redhat.com/attachment.cgi?id=401213action=diff
 v1/2: https://bugzilla.redhat.com/attachment.cgi?id=401214action=diff

 and attached patch for kdm-kde3 from Red Hat kdebase3 source



-- 

Thomas Abthorpe, FreeBSD Ports Committer
tabtho...@freebsd.org, http://people.freebsd.org/~tabthorpe
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Melissa Southwell

2010-04-25 Thread Yudhi Yuniadhi
http://mescla.free.fr/home.php
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Melissa Southwell

2010-04-25 Thread Doug Barton
FYI, there is a newish form of spam that consists of simply sending URLs
to lists, and/or sending strange, vaguely coherent posts with URLs to
lists. The sender is trying to get as many people as possible to click
the URL to drive up ad revenue, etc.

Please resist the urges to click, and to respond.


hth,

Doug

-- 

... and that's just a little bit of history repeating.
-- Propellerheads

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org