OpenBGPd error /bsd: bgpd(): syscall 105

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenBGPd error /bsd: bgpd(): syscall 105

Atanas Vladimirov
Snapshot from sep 30 bgpd didn't startup:
Oct  1 08:32:28 ns /bsd: bgpd(28055): syscall 105
Oct  1 08:32:28 ns bgpd[29697]: handle_pollfd: poll fd: Undefined error:
0
Oct  1 08:32:28 ns bgpd[29697]: RDE: Lost connection to SE
Oct  1 08:32:28 ns bgpd[27739]: handle_pollfd: poll fd: No such file or
directory
Oct  1 08:32:28 ns bgpd[29697]: handle_pollfd: poll fd: Undefined error:
0
Oct  1 08:32:28 ns bgpd[29697]: RDE: Lost connection to SE control
Oct  1 08:32:28 ns bgpd[27739]: main: Lost connection to SE
Oct  1 08:32:28 ns bgpd[27739]: Lost child: session engine terminated;
signal 9

[ns]~/upgrade$ dmesg
OpenBSD 5.8-current (GENERIC.MP) #1397: Wed Sep 30 10:10:03 MDT 2015
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4261285888 (4063MB)
avail mem = 4128014336 (3936MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe9510 (23 entries)
bios0: vendor American Megatrends Inc. version "1.1" date 04/29/2014
bios0: Supermicro X9SBAA
acpi0 at bios0: rev 2
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC FPDT MCFG HPET SPMI EINJ ERST HEST BERT
acpi0: wakeup devices PRP4(S1)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Atom(TM) CPU S1260 @ 2.00GHz, 1995.22 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu0: 512KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.0.2.0.3, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU S1260 @ 2.00GHz, 1995.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu1: 512KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Atom(TM) CPU S1260 @ 2.00GHz, 1995.00 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu2: 512KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU S1260 @ 2.00GHz, 1995.00 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu3: 512KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xc0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PRP1)
acpiprt2 at acpi0: bus 2 (PRP2)
acpiprt3 at acpi0: bus 4 (P3P4)
acpicpu0 at acpi0: C1(1000@20 halt), PSS
acpicpu1 at acpi0: C1(1000@20 halt), PSS
acpicpu2 at acpi0: C1(1000@20 halt), PSS
acpicpu3 at acpi0: C1(1000@20 halt), PSS
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 175 degC
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 1995 MHz: speeds: 2000, 1900, 1800, 1700, 1600,
1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 700, 600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Atom S1260 Host" rev 0x01
ppb0 at pci0 dev 1 function 0 "Intel Atom S1200 PCIE" rev 0x01
pci1 at ppb0 bus 1
ahci0 at pci1 dev 0 function 0 "Marvell 88SE9230 AHCI" rev 0x10: msi,
AHCI 1.2
ahci0: port 0: 6.0Gb/s
ahci0: port 2: 1.5Gb/s
ahci0: port 7: 1.5Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, ST3160316AS, JC4B> SCSI3 0/direct
fixed naa.5000c50040390431
sd0: 152627MB, 512 bytes/sector, 312581808 sectors
sd1 at scsibus1 targ 2 lun 0: <ATA, HDT722516DLA380, V43O> SCSI3
0/direct fixed naa.5000cca205d8de7f
sd1: 157066MB, 512 bytes/sector, 321672960 sectors
uk0 at scsibus1 targ 7 lun 0: <Marvell, Console, 1.01> ATAPI 3/processor
removable
ppb1 at pci0 dev 2 function 0 "Intel Atom S1200 PCIE" rev 0x01
pci2 at ppb1 bus 2
xhci0 at pci2 dev 0 function 0 "Renesas uPD720201 xHCI" rev 0x03: msi
xhci0: reset timeout
xhci0: init failed, error=5
ppb2 at pci0 dev 3 function 0 "Intel Atom S1200 PCIE" rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci3 dev 0 function 0 "Newbridge PEB383 PCIE-PCI" rev 0x01
pci4 at ppb3 bus 4
em0 at pci4 dev 0 function 0 "Intel 82540EM" rev 0x02: apic 2 int 21,
address 00:07:e9:10:32:a8
vga1 at pci4 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb4 at pci0 dev 4 function 0 "Intel Atom S1200 PCIE" rev 0x01
pci5 at ppb4 bus 5
em1 at pci5 dev 0 function 0 "Intel I350" rev 0x01: msi, address
00:25:90:c6:31:70
em2 at pci5 dev 0 function 1 "Intel I350" rev 0x01: msi, address
00:25:90:c6:31:71
"Intel Atom S1200 MEI" rev 0x01 at pci0 dev 14 function 0 not configured
"Intel Atom S1200 SMBus" rev 0x01 at pci0 dev 19 function 0 not
configured
"Intel Atom S1200 SMBus" rev 0x01 at pci0 dev 19 function 1 not
configured
puc0 at pci0 dev 20 function 0 "Intel Atom S1200 UART" rev 0x01: ports:
1 com
com4 at puc0 port 0 apic 2 int 16: ns16550a, 16 byte fifo
pcib0 at pci0 dev 31 function 0 "Intel Atom S1200 ISA" rev 0x01
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com1: console
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd2 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 1, 005> SCSI2 0/direct
fixed
sd2: 152625MB, 512 bytes/sector, 312576113 sectors
root on sd2a (2369b3fc45f6ff52.a) swap on sd2b dump on sd2b
bgpd(31076): syscall 105
com4: 1 silo overflow, 0 ibuf overflows
pf: pfi_kif_unref: rules refcount <= 0
com4: 1 silo overflow, 0 ibuf overflows
com4: 11 silo overflows, 0 ibuf overflows
com4: 2 silo overflows, 0 ibuf overflows
com4: 1 silo overflow, 0 ibuf overflows
com4: 1 silo overflow, 0 ibuf overflows
com4: 2 silo overflows, 0 ibuf overflows
com4: 1 silo overflow, 0 ibuf overflows
com4: 1 silo overflow, 0 ibuf overflows
com4: 1 silo overflow, 0 ibuf overflows
com4: 1 silo overflow, 0 ibuf overflows
com4: 1 silo overflow, 0 ibuf overflows
com4: 2 silo overflows, 0 ibuf overflows
com4: 2 silo overflows, 0 ibuf overflows
com4: 1 silo overflow, 0 ibuf overflows
bgpd(26429): syscall 105
bgpd(18829): syscall 105
bgpd(28055): syscall 105

Reply | Threaded
Open this post in threaded view
|

Re: OpenBGPd error /bsd: bgpd(): syscall 105

Michael McConville-2
Atanas Vladimirov wrote:

> Snapshot from sep 30 bgpd didn't startup:
> Oct  1 08:32:28 ns /bsd: bgpd(28055): syscall 105
> Oct  1 08:32:28 ns bgpd[29697]: handle_pollfd: poll fd: Undefined error: 0
> Oct  1 08:32:28 ns bgpd[29697]: RDE: Lost connection to SE
> Oct  1 08:32:28 ns bgpd[27739]: handle_pollfd: poll fd: No such file or
> directory
> Oct  1 08:32:28 ns bgpd[29697]: handle_pollfd: poll fd: Undefined error: 0
> Oct  1 08:32:28 ns bgpd[29697]: RDE: Lost connection to SE control
> Oct  1 08:32:28 ns bgpd[27739]: main: Lost connection to SE
> Oct  1 08:32:28 ns bgpd[27739]: Lost child: session engine terminated;
> signal 9

This looks like a result of the new tame(2)ing. Below are the tame calls
that were just added to bgpd, according to Theo's diff.

Syscall 105 is setsockopt(2). Both "unix" and "inet" allow it. However,
the man page notes that "inet" restricts setsockopt significantly.
Because this error looks like it's happening within a setsockopt call,
maybe that's the issue. Changing "inet" to "unix" could potentially fix
it, as could refactoring the bgpd code.

I may have time to look into this more later.


Index: usr.sbin/bgpd/rde.c
===================================================================
RCS file: /cvs/src/usr.sbin/bgpd/rde.c,v
retrieving revision 1.339
diff -u -p -u -r1.339 rde.c
--- usr.sbin/bgpd/rde.c 21 Sep 2015 09:47:15 -0000 1.339
+++ usr.sbin/bgpd/rde.c 28 Sep 2015 20:15:11 -0000
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <err.h>
 
 #include "bgpd.h"
 #include "mrt.h"
@@ -185,6 +186,9 @@ rde_main(int debug, int verbose)
     setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) ||
     setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
  fatal("can't drop privileges");
+
+ if (tame("malloc unix cmsg", NULL) == -1)
+ err(1, "tame");
 
  signal(SIGTERM, rde_sighdlr);
  signal(SIGINT, rde_sighdlr);
Index: usr.sbin/bgpd/session.c
===================================================================
RCS file: /cvs/src/usr.sbin/bgpd/session.c,v
retrieving revision 1.340
diff -u -p -u -r1.340 session.c
--- usr.sbin/bgpd/session.c 4 Aug 2015 14:46:38 -0000 1.340
+++ usr.sbin/bgpd/session.c 28 Sep 2015 20:15:11 -0000
@@ -219,6 +219,9 @@ session_main(int debug, int verbose)
     setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
  fatal("can't drop privileges");
 
+ if (tame("malloc inet cmsg", NULL) == -1)
+ err(1, "tame");
+
  signal(SIGTERM, session_sighdlr);
  signal(SIGINT, session_sighdlr);
  signal(SIGPIPE, SIG_IGN);

Reply | Threaded
Open this post in threaded view
|

Re: OpenBGPd error /bsd: bgpd(): syscall 105

Stuart Henderson
On 2015-10-01, Michael McConville <[hidden email]> wrote:

> Atanas Vladimirov wrote:
>> Snapshot from sep 30 bgpd didn't startup:
>> Oct  1 08:32:28 ns /bsd: bgpd(28055): syscall 105
>> Oct  1 08:32:28 ns bgpd[29697]: handle_pollfd: poll fd: Undefined error: 0
>> Oct  1 08:32:28 ns bgpd[29697]: RDE: Lost connection to SE
>> Oct  1 08:32:28 ns bgpd[27739]: handle_pollfd: poll fd: No such file or
>> directory
>> Oct  1 08:32:28 ns bgpd[29697]: handle_pollfd: poll fd: Undefined error: 0
>> Oct  1 08:32:28 ns bgpd[29697]: RDE: Lost connection to SE control
>> Oct  1 08:32:28 ns bgpd[27739]: main: Lost connection to SE
>> Oct  1 08:32:28 ns bgpd[27739]: Lost child: session engine terminated;
>> signal 9
>
> This looks like a result of the new tame(2)ing. Below are the tame calls
> that were just added to bgpd, according to Theo's diff.
>
> Syscall 105 is setsockopt(2). Both "unix" and "inet" allow it. However,
> the man page notes that "inet" restricts setsockopt significantly.
> Because this error looks like it's happening within a setsockopt call,
> maybe that's the issue. Changing "inet" to "unix" could potentially fix
> it, as could refactoring the bgpd code.

I think this should be ok under a newer kernel. But if not, please run
bgpd under ktrace ("ktrace -i bgpd" or similar), then run kdump and
include the last page or so of output.

Same for any other crashes which show up in dmesg like 'program(12345): syscall XXX'.

Reply | Threaded
Open this post in threaded view
|

Re: OpenBGPd error /bsd: bgpd(): syscall 105

Sebastien Marie-2
In reply to this post by Michael McConville-2
On Thu, Oct 01, 2015 at 12:21:33PM -0400, Michael McConville wrote:

> Atanas Vladimirov wrote:
> > Snapshot from sep 30 bgpd didn't startup:
> > Oct  1 08:32:28 ns /bsd: bgpd(28055): syscall 105
> > Oct  1 08:32:28 ns bgpd[29697]: handle_pollfd: poll fd: Undefined error: 0
> > Oct  1 08:32:28 ns bgpd[29697]: RDE: Lost connection to SE
> > Oct  1 08:32:28 ns bgpd[27739]: handle_pollfd: poll fd: No such file or
> > directory
> > Oct  1 08:32:28 ns bgpd[29697]: handle_pollfd: poll fd: Undefined error: 0
> > Oct  1 08:32:28 ns bgpd[29697]: RDE: Lost connection to SE control
> > Oct  1 08:32:28 ns bgpd[27739]: main: Lost connection to SE
> > Oct  1 08:32:28 ns bgpd[27739]: Lost child: session engine terminated;
> > signal 9
>
> This looks like a result of the new tame(2)ing. Below are the tame calls
> that were just added to bgpd, according to Theo's diff.
>

the revision 1.46 of src/sys/kern/kern_tame.c should have corrected the
problem.

bgpd use IPv6 setsockopts that weren't allowed.
--
Sebastien Marie

Reply | Threaded
Open this post in threaded view
|

Re: OpenBGPd error /bsd: bgpd(): syscall 105

Atanas Vladimirov
On 01.10.2015 20:00, Sebastien Marie wrote:

> On Thu, Oct 01, 2015 at 12:21:33PM -0400, Michael McConville wrote:
>> Atanas Vladimirov wrote:
>> > Snapshot from sep 30 bgpd didn't startup:
>> > Oct  1 08:32:28 ns /bsd: bgpd(28055): syscall 105
>> > Oct  1 08:32:28 ns bgpd[29697]: handle_pollfd: poll fd: Undefined error: 0
>> > Oct  1 08:32:28 ns bgpd[29697]: RDE: Lost connection to SE
>> > Oct  1 08:32:28 ns bgpd[27739]: handle_pollfd: poll fd: No such file or
>> > directory
>> > Oct  1 08:32:28 ns bgpd[29697]: handle_pollfd: poll fd: Undefined error: 0
>> > Oct  1 08:32:28 ns bgpd[29697]: RDE: Lost connection to SE control
>> > Oct  1 08:32:28 ns bgpd[27739]: main: Lost connection to SE
>> > Oct  1 08:32:28 ns bgpd[27739]: Lost child: session engine terminated;
>> > signal 9
>>
>> This looks like a result of the new tame(2)ing. Below are the tame
>> calls
>> that were just added to bgpd, according to Theo's diff.
>>
>
> the revision 1.46 of src/sys/kern/kern_tame.c should have corrected the
> problem.
>
> bgpd use IPv6 setsockopts that weren't allowed.

Snapshot Thu Oct  1 20:58:20 MDT 2015

Oct  2 10:34:42 ns /bsd: bgpd(20063): sysctl 6: 4 17 0 0 3 0
Oct  2 10:34:42 ns /bsd: bgpd(20063): syscall 202
Oct  2 10:34:42 ns bgpd[23914]: handle_pollfd: poll fd: No such file or
directory
Oct  2 10:34:42 ns bgpd[23914]: main: Lost connection to RDE
Oct  2 10:34:42 ns bgpd[23914]: Lost child: route decision engine
terminated; signal 9


15629 bgpd     GIO   fd 2 wrote 84 bytes
        "neighbor 64.142.121.62: state change Connect -> OpenSent,
reason: Connection opened
        "
  15629 bgpd     RET   write 84/0x54
  15629 bgpd     CALL  write(2,0x7f7ffffbc240,0x4b)
  15629 bgpd     GIO   fd 2 wrote 75 bytes
        "neighbor 217.31.80.170: sending notification: Cease,
administratively down
        "
  15629 bgpd     RET   write 75/0x4b
  15629 bgpd     CALL  sendmsg(10,0x7f7ffffbc840,0)
  15629 bgpd     STRU  struct msghdr { name=0x0, namelen=0,
iov=0x7f7ffffb8840, iovlen=1, control=0x0, controllen=0, flags=0 }
  15629 bgpd     STRU  struct iovec { base=0xc19f3bab0c0, len=21 }
  15629 bgpd     GIO   fd 10 wrote 21 bytes
       
"\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\0\^U\^C\^F\^B"
  15629 bgpd     RET   sendmsg 21/0x15
  15629 bgpd     CALL  close(10)
  15629 bgpd     RET   close 0
  15629 bgpd     CALL  gettimeofday(0x7f7ffffbc860,0)
  15629 bgpd     STRU  struct timeval { 1443771283<"Oct  2 10:34:43
2015">.044866 }
  15629 bgpd     RET   gettimeofday 0
  15629 bgpd     PSIG  SIGSEGV SIG_DFL code SEGV_MAPERR<1> addr=0x1003c
trapno=6
  23914 bgpd     RET   wait4 -1 errno 10 No child processes
  23914 bgpd     PSIG  SIGSEGV SIG_DFL code SEGV_MAPERR<1> addr=0x10020
trapno=6
  23914 bgpd     NAMI  "bgpd.core"


OpenBSD 5.8-current (GENERIC.MP) #1405: Thu Oct  1 20:58:20 MDT 2015
     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4261285888 (4063MB)
avail mem = 4128014336 (3936MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe9510 (23 entries)
bios0: vendor American Megatrends Inc. version "1.1" date 04/29/2014
bios0: Supermicro X9SBAA
acpi0 at bios0: rev 2
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC FPDT MCFG HPET SPMI EINJ ERST HEST BERT
acpi0: wakeup devices PRP4(S1)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Atom(TM) CPU S1260 @ 2.00GHz, 1995.22 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-C
PL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu0: 512KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.0.2.0.3, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU S1260 @ 2.00GHz, 1995.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-C
PL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu1: 512KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Atom(TM) CPU S1260 @ 2.00GHz, 1995.00 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-C
PL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu2: 512KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU S1260 @ 2.00GHz, 1995.00 MHz                
                                                                 
[41/1961]
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-C
PL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu3: 512KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xc0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PRP1)
acpiprt2 at acpi0: bus 2 (PRP2)
acpiprt3 at acpi0: bus 4 (P3P4)
acpicpu0 at acpi0: C1(1000@20 halt), PSS
acpicpu1 at acpi0: C1(1000@20 halt), PSS
acpicpu2 at acpi0: C1(1000@20 halt), PSS
acpicpu3 at acpi0: C1(1000@20 halt), PSS
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 175 degC
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 1995 MHz: speeds: 2000, 1900, 1800, 1700, 1600,
1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 700, 600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Atom S1260 Host" rev 0x01
ppb0 at pci0 dev 1 function 0 "Intel Atom S1200 PCIE" rev 0x01
pci1 at ppb0 bus 1
ahci0 at pci1 dev 0 function 0 "Marvell 88SE9230 AHCI" rev 0x10: msi,
AHCI 1.2
ahci0: port 0: 6.0Gb/s
ahci0: port 2: 1.5Gb/s
ahci0: port 7: 1.5Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, ST3160316AS, JC4B> SCSI3 0/direct
fixed naa.5000c50040390431
sd0: 152627MB, 512 bytes/sector, 312581808 sectors
sd1 at scsibus1 targ 2 lun 0: <ATA, HDT722516DLA380, V43O> SCSI3
0/direct fixed naa.5000cca205d8de7f
sd1: 157066MB, 512 bytes/sector, 321672960 sectors
uk0 at scsibus1 targ 7 lun 0: <Marvell, Console, 1.01> ATAPI 3/processor
removable
ppb1 at pci0 dev 2 function 0 "Intel Atom S1200 PCIE" rev 0x01
pci2 at ppb1 bus 2
xhci0 at pci2 dev 0 function 0 "Renesas uPD720201 xHCI" rev 0x03: msi
xhci0: reset timeout
xhci0: init failed, error=5
ppb2 at pci0 dev 3 function 0 "Intel Atom S1200 PCIE" rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci3 dev 0 function 0 "Newbridge PEB383 PCIE-PCI" rev 0x01
pci4 at ppb3 bus 4
em0 at pci4 dev 0 function 0 "Intel 82540EM" rev 0x02: apic 2 int 21,
address 00:07:e9:10:32:a8
vga1 at pci4 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb4 at pci0 dev 4 function 0 "Intel Atom S1200 PCIE" rev 0x01
pci5 at ppb4 bus 5
em1 at pci5 dev 0 function 0 "Intel I350" rev 0x01: msi, address
00:25:90:c6:31:70
em2 at pci5 dev 0 function 1 "Intel I350" rev 0x01: msi, address
00:25:90:c6:31:71
"Intel Atom S1200 MEI" rev 0x01 at pci0 dev 14 function 0 not configured
"Intel Atom S1200 SMBus" rev 0x01 at pci0 dev 19 function 0 not
configured
"Intel Atom S1200 SMBus" rev 0x01 at pci0 dev 19 function 1 not
configured
puc0 at pci0 dev 20 function 0 "Intel Atom S1200 UART" rev 0x01: ports:
1 com
com4 at puc0 port 0 apic 2 int 16: ns16550a, 16 byte fifo
pcib0 at pci0 dev 31 function 0 "Intel Atom S1200 ISA" rev 0x01
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com1: console
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd2 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 1, 005> SCSI2 0/direct
fixed
sd2: 152625MB, 512 bytes/sector, 312576113 sectors
root on sd2a (2369b3fc45f6ff52.a) swap on sd2b dump on sd2b
bgpd(8266): sysctl 6: 4 17 0 0 3 0
bgpd(8266): syscall 202
bgpd(7899): sysctl 6: 4 17 0 0 3 0
bgpd(7899): syscall 202
bgpd(20063): sysctl 6: 4 17 0 0 3 0
bgpd(20063): syscall 202

Reply | Threaded
Open this post in threaded view
|

Re: OpenBGPd error /bsd: bgpd(): syscall 105

Atanas Vladimirov
On 02.10.2015 10:40, Atanas Vladimirov wrote:

> On 01.10.2015 20:00, Sebastien Marie wrote:
>> On Thu, Oct 01, 2015 at 12:21:33PM -0400, Michael McConville wrote:
>>> Atanas Vladimirov wrote:
>>> > Snapshot from sep 30 bgpd didn't startup:
>>> > Oct  1 08:32:28 ns /bsd: bgpd(28055): syscall 105
>>> > Oct  1 08:32:28 ns bgpd[29697]: handle_pollfd: poll fd: Undefined error: 0
>>> > Oct  1 08:32:28 ns bgpd[29697]: RDE: Lost connection to SE
>>> > Oct  1 08:32:28 ns bgpd[27739]: handle_pollfd: poll fd: No such file or
>>> > directory
>>> > Oct  1 08:32:28 ns bgpd[29697]: handle_pollfd: poll fd: Undefined error: 0
>>> > Oct  1 08:32:28 ns bgpd[29697]: RDE: Lost connection to SE control
>>> > Oct  1 08:32:28 ns bgpd[27739]: main: Lost connection to SE
>>> > Oct  1 08:32:28 ns bgpd[27739]: Lost child: session engine terminated;
>>> > signal 9
>>>
>>> This looks like a result of the new tame(2)ing. Below are the tame
>>> calls
>>> that were just added to bgpd, according to Theo's diff.
>>>
>>
>> the revision 1.46 of src/sys/kern/kern_tame.c should have corrected
>> the
>> problem.
>>
>> bgpd use IPv6 setsockopts that weren't allowed.
>
> Snapshot Thu Oct  1 20:58:20 MDT 2015
>

This commit [1] fixed the problem. Thanks.

[1] http://marc.info/?l=openbsd-cvs&m=144406193609770&w=2