[Bug 208802] Install to zfs should have copies= option to provide some anti-bitrot protection

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208802

r...@gid.co.uk changed:

   What|Removed |Added

 CC||r...@gid.co.uk

--- Comment #4 from r...@gid.co.uk ---
A quick hack to work around this is:

Start the installer, select Shell (not Install).
Fire up csh and start bsdinstall from that.
Proceed with the installation as normal, but...
...when the installer starts checking the distfiles, hit ^Z
Now you can run `zfs set copies=2 zroot' or whatever.
Then `fg' to resume bsdinstall and complete the installation.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 219066] rpcbind rpcbomb

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219066

Bug ID: 219066
   Summary: rpcbind rpcbomb
   Product: Base System
   Version: 10.3-STABLE
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: la...@fit.vutbr.cz

See http://seclists.org/oss-sec/2017/q2/209

FreeBSD rpcbind seems to be vulnerable too:

# ruby rpcbomb.rb localhost 1

 r p c b o m b

 DoS exploit for *nix rpcbind/libtirpc.

 (c) 2017 Guido Vranken.

 https://guidovranken.wordpress.com/

Allocated 1 bytes at host localhost:111.

Damn it feels good to be a gangster.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 219070] vm_radix_remove: invalid key found panic

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219070

Bug ID: 219070
   Summary: vm_radix_remove: invalid key found panic
   Product: Base System
   Version: 11.0-STABLE
  Hardware: arm64
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: asmo...@freebsd.org

Created attachment 182301
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=182301&action=edit
dmesg.boot after panic

This is an ASROCK Q2900 motherboard
(http://www.asrock.com/mb/intel/q2900-itx/).

Had similar panics with 10-STABLE and 11-STABLE and in the end replaced both
memory banks with new SO-DIMMS (Kingston KVR16LS11K2 in a 2-kit that's on their
supported memory list) and still received this. So I am excluding memory stick
issues.

The problem only seems to occur when under heavy load, say compiling ports with
poudriere or building world.

Panic details:

panic: vm_radix_remove: invalid key found
cpuid = 0
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe0455872360
vpanic() at vpanic+0x186/frame 0xfe04558723e0
panic() at panic+0x43/frame 0xfe0455872440
vm_radix_remove() at vm_radix_remove+0x200/frame 0xfe0455872450
vm_page_free_toq() at vm_page_free_toq+0x56/frame 0xfe0455872470
vm_object_page_remove() at vm_object_page_remove+0x145/frame 0xfe04558724d0
vnode_pager_setsize() at vnode_pager_setsize+0xfd/frame 0xfe0455872520
trunc_pages() at trunc_pages+0x126/frame 0xfe0455872580
softdep_setup_freeblocks() at softdep_setup_freeblocks+0x9d6/frame
0xfe0455872600
ffs_truncate() at ffs_truncate+0x32e/frame 0xfe0455872760
ufs_inactive() at ufs_inactive+0x1c7/frame 0xfe04558727a0
VOP_INACTIVE_APV() at VOP_INACTIVE_APV+0x89/frame 0xfe04558727d0
vinactive() at vinactive+0xf2/frame 0xfe0455872830
vputx() at vputx+0x2c5/frame 0xfe0455872890
kern_unlinkat() at kern_unlinkat+0x22a/frame 0xfe0455872a60
amd64_syscall() at amd64_syscall+0x6c4/frame 0xfe0455872bf0
Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfe0455872bf0
--- syscall (10, FreeBSD ELF64, sys_unlink), rip = 0x8009756aa, rsp =
0x7fffe718, rbp = 0x7fffe7e0 ---
KDB: enter: panic

(kgdb) bt
#0  doadump (textdump=0) at pcpu.h:222
#1  0x8030b2ab in db_dump (dummy=, dummy2=, dummy3=, dummy4=) at
/usr/src/sys/ddb/db_command.c:533
#2  0x8030b09f in db_command (cmd_table=) at
/usr/src/sys/ddb/db_command.c:440
#3  0x8030add4 in db_command_loop () at
/usr/src/sys/ddb/db_command.c:493
#4  0x8030de8f in db_trap (type=, code=) at /usr/src/sys/ddb/db_main.c:248
#5  0x8054b833 in kdb_trap (type=3, code=-61456, tf=) at /usr/src/sys/kern/subr_kdb.c:654
#6  0x807ed79f in trap (frame=0xfe0455872290) at
/usr/src/sys/amd64/amd64/trap.c:537
#7  0x807d3111 in calltrap () at
/usr/src/sys/amd64/amd64/exception.S:236
#8  0x8054af6b in kdb_enter (why=0x808f0e3a "panic", msg=) at cpufunc.h:63
#9  0x80509303 in vpanic (fmt=,
ap=0xfe0455872420) at /usr/src/sys/kern/kern_shutdown.c:752
#10 0x80509153 in panic (fmt=) at
/usr/src/sys/kern/kern_shutdown.c:690
#11 0x807c88c0 in vm_radix_remove (rtree=0x0,
index=18446741893301083792) at uma.h:364
#12 0x807bcd56 in vm_page_free_toq (m=0xf804385afe30) at
/usr/src/sys/vm/vm_page.c:1287
#13 0x807b9055 in vm_object_page_remove (object=,
start=, end=119283, options=) at
/usr/src/sys/vm/vm_object.c:1948
#14 0x807cbbcd in vnode_pager_setsize (vp=,
nsize=0) at /usr/src/sys/vm/vnode_pager.c:425
#15 0x8076edd6 in trunc_pages (ip=, length=0,
extblocks=, flags=) at
/usr/src/sys/ufs/ffs/ffs_softdep.c:7015
#16 0x8076fb56 in softdep_setup_freeblocks (ip=0xf8017d859000,
length=, flags=) at
/usr/src/sys/ufs/ffs/ffs_softdep.c:6981
#17 0x807599ce in ffs_truncate (vp=, length=, flags=, cred=) at
/usr/src/sys/ufs/ffs/ffs_inode.c:393
#18 0x8078d507 in ufs_inactive (ap=) at
/usr/src/sys/ufs/ufs/ufs_inode.c:131
#19 0x808804b9 in VOP_INACTIVE_APV (vop=,
a=0xfe04558727e8) at vnode_if.c:1955
#20 0x805d1022 in vinactive (vp=0xf8019851c1d8,
td=0xf802e2097560) at vnode_if.h:807
#21 0x805d1555 in vputx (vp=0xf8019851c1d8, func=2) at
/usr/src/sys/kern/vfs_subr.c:2715
#22 0x805db81a in kern_unlinkat (td=0xf802e2097560, fd=-100,
path=0x800e5d908 , pathseg=UIO_USERSPACE,
oldinum=) at /usr/src/sys/kern/vfs_syscalls.c:1791
#23 0x807eea74 in amd64_syscall (td=0xf802e2097560, traced=0) at
subr_syscall.c:135
#24 0x807d33fb in Xfast_syscall () at
/usr/src/sys/amd64/amd64/exception.S:396
#25 0x0008009756aa in ?? ()


(kgdb) fr 11
#11 0x807c88c0 in vm_radix_remove (rtree=0x0,
index=18446741893301083792) at uma.h:364
364 uma_zfree_arg(zone, item, NULL);
(kg

[Bug 217287] if_em: "Off by 8" error in network streams under -CURRENT as of roughly Feb 1

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217287

Sean Bruno  changed:

   What|Removed |Added

   Keywords||iflib

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 206990] powerpc (32-bit), projects/clang380-import vs. 11.0-CURRENT's sendsig: need to avoid signal delivery trashing the stack and so causing SIGSEGV

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206990

--- Comment #7 from commit-h...@freebsd.org ---
A commit references this bug:

Author: dim
Date: Thu May  4 21:40:17 UTC 2017
New revision: 317810
URL: https://svnweb.freebsd.org/changeset/base/317810

Log:
  Pull in r302183 from upstream llvm trunk (by Krzysztof Parzyszek):

[PPC] When restoring R30 (PIC base pointer), mark it as 

This happened on the PPC32/SVR4 path and was discovered when building
FreeBSD on PPC32. It was a typo-class error in the frame lowering
code.

This fixes PR26519.

  Reported by:  Mark Millard
  PR:   206990
  MFC after:3 days

Changes:
  head/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 206990] powerpc (32-bit), projects/clang380-import vs. 11.0-CURRENT's sendsig: need to avoid signal delivery trashing the stack and so causing SIGSEGV

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206990

Dimitry Andric  changed:

   What|Removed |Added

 Status|New |In Progress
 CC||d...@freebsd.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 219074] panic on cd insert

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219074

Bug ID: 219074
   Summary: panic on cd insert
   Product: Base System
   Version: 11.0-RELEASE
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: s...@freebsd.org

When inserting a cdrom on a supermicro IPMI I got the following panic:
Fatal trap 9: general protection fault while in kernel mode
cpuid = 23; apic id = 2b
instruction pointer = 0x20:0x80304f65
stack pointer   = 0x28:0xfe0f9452d640
frame pointer   = 0x28:0xfe0f9452d6e0
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 13 (g_event)
trap number = 9
panic: general protection fault
cpuid = 23
KDB: stack backtrace:
#0 0x807d80f7 at kdb_backtrace+0x67
#1 0x8078d4a2 at vpanic+0x182
#2 0x8078d313 at panic+0x43
#3 0x80a97d81 at trap_fatal+0x351
#4 0x80a97a18 at trap+0x768
#5 0x80a7af41 at calltrap+0x8
#6 0x802fe682 at cdopen+0x212
#7 0x806f2225 at g_disk_access+0xc5
#8 0x806f800e at g_access+0x17e
#9 0x806f800e at g_access+0x17e
#10 0x806ef570 at g_dev_attrchanged+0x60
#11 0x806ef432 at g_dev_taste+0x2d2
#12 0x806f864a at g_new_provider_event+0xba
#13 0x806f367e at g_run_events+0x20e
#14 0x80744085 at fork_exit+0x85
#15 0x80a7b47e at fork_trampoline+0xe


#0  doadump (textdump=) at pcpu.h:221
#1  0x8078cf29 in kern_reboot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:366
#2  0x8078d4db in vpanic (fmt=, ap=) at /usr/src/sys/kern/kern_shutdown.c:759
#3  0x8078d313 in panic (fmt=0x0) at
/usr/src/sys/kern/kern_shutdown.c:690
#4  0x80a97d81 in trap_fatal (frame=0xfe0f9452d590, eva=0) at
/usr/src/sys/amd64/amd64/trap.c:841
#5  0x80a97a18 in trap (frame=0xfe0f9452d590) at
/usr/src/sys/amd64/amd64/trap.c:203
#6  0x80a7af41 in calltrap () at
/usr/src/sys/amd64/amd64/exception.S:236
#7  0x80304f65 in cdcheckmedia (periph=0xf80135338a00) at
/usr/src/sys/cam/scsi/scsi_cd.c:2340
#8  0x802fe682 in cdopen (dp=) at
/usr/src/sys/cam/scsi/scsi_cd.c:740
#9  0x806f2225 in g_disk_access (pp=0x9d, r=, w=0,
e=1) at /usr/src/sys/geom/geom_disk.c:122
#10 0x806f800e in g_access (cp=0xf80019bd7480, dcr=1, dcw=0, dce=1)
at /usr/src/sys/geom/geom_subr.c:924
#11 0x806f800e in g_access (cp=0xf80019bd9580, dcr=1, dcw=0, dce=0)
at /usr/src/sys/geom/geom_subr.c:924
#12 0x806ef570 in g_dev_attrchanged (cp=0xf80019bd9580,
attr=0x80c0c0b9 "GEOM::physpath") at /usr/src/sys/geom/geom_dev.c:231
#13 0x806ef432 in g_dev_taste (mp=, pp=, insist=) at
/usr/src/sys/geom/geom_dev.c:347
#14 0x806f864a in g_new_provider_event (arg=,
flag=) at /usr/src/sys/geom/geom_subr.c:552
#15 0x806f367e in g_run_events () at /usr/src/sys/geom/geom_event.c:264
#16 0x80744085 in fork_exit (callout=0x806f6120
, arg=0x0, frame=0xfe0f9452dac0) at
/usr/src/sys/kern/kern_fork.c:1038
#17 0x80a7b47e in fork_trampoline () at
/usr/src/sys/amd64/amd64/exception.S:611
#18 0x in ?? ()

Looking at frame 7 the value for softc->disk is bogus:

(kgdb) frame 7
#7  0x80304f65 in cdcheckmedia (periph=0xf80135338a00) at
/usr/src/sys/cam/scsi/scsi_cd.c:2340
2340if ((softc->disk->d_devstat->flags & DEVSTAT_BS_UNAVAILABLE) !=
0)
(kgdb) print softc
$1 = (struct cd_softc *) 0xf8013564a000
(kgdb) print softc->disk
$2 = (struct disk *) 0xf741c7b074d58fe4

It looks like there may be a setup / locking issue, when the IPMI device
triggered the insert of the cd.

Relevant messages just prior to the panic:
May  4 14:54:31 host02 kernel: cd0 at umass-sim1 bus 1 scbus3 target 0 lun 0
May  4 14:54:31 host02 kernel: cd0:  Removable CD-ROM
SCSI device
May  4 14:54:31 host02 kernel: cd0: 40.000MB/s transfers
May  4 14:54:31 host02 kernel: cd0: 685MB (350720 2048 byte sectors)
May  4 14:54:31 host02 kernel: cd0: quirks=0x10<10_BYTE_ONLY>

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 219075] ipfw(4) missing options IPFIREWALL_NAT

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219075

Bug ID: 219075
   Summary: ipfw(4) missing options IPFIREWALL_NAT
   Product: Base System
   Version: 11.0-RELEASE
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: rgri...@freebsd.org

This option is not documented in the ifpw(4) man page, or
an ipfw_nat(4) man page does not exist.

sys/conf/files:netpfil/ipfw/ip_fw_nat.c optional inet ipfirewall_nat

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 219077] libsysdecode build broken with bsdgrep

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219077

Bug ID: 219077
   Summary: libsysdecode build broken with bsdgrep
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: bin
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: ma...@freebsd.org

The libsysdecode build uses a script, mkioctls, to generate one of the
libsysdecode source files. When bsdgrep is installed as /usr/bin/grep, the
generated source file contains mangled preprocessor directives:

  30 #include 
  31 #include 
  32 #include  
  33 #include  
  34 #include 
  35 #include 
  ...

With GNU grep, there's no such problem.

I tested with a tree at r317820.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 219077] libsysdecode build broken with bsdgrep

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219077

--- Comment #1 from Kyle Evans  ---
Hi,

Doing some triage work on this now -- can you please tag this as blocking PR
218385 for tracking purposes?

Thanks,

Kyle Evans

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 219077] libsysdecode build broken with bsdgrep

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219077

--- Comment #2 from Kyle Evans  ---
Sorry, ignore that. I misread that as libsysinfo. Still doing triage, though.
=)

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 219075] ipfw(4) missing options IPFIREWALL_NAT

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219075

Mark Linimon  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|freebsd-...@freebsd.org
Version|11.0-RELEASE|Latest
Product|Base System |Documentation
  Component|kern|Documentation

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 219066] rpcbind rpcbomb

2017-05-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219066

Mark Linimon  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|sect...@freebsd.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"