[Bug 178396] [kernel] [patch] Add jid to kernel log when a process has been forced closed

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=178396

Thomas Steen Rasmussen / Tykling  changed:

   What|Removed |Added

 Attachment #165129|0   |1
is obsolete||

--- Comment #5 from Thomas Steen Rasmussen / Tykling  ---
Created attachment 165148
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=165148&action=edit
updated patch with jailname instead of hostname

Thanks for the review! I've updated the patch to:
- use the jailname instead of hostname
- leave out the jid
- show jail info in the beginning of the line

Testing now looks like this with the patch applied:

[tykling@test /usr/src]$ sudo jail -n testname -c path=/ command=/bin/sh
# perl -e 'dump'
Abort trap (core dumped)
# ^Djail: /bin/sh: failed
[tykling@test /usr/src]$ sudo jail -c path=/ command=/bin/sh
# perl -e 'dump'
Abort trap (core dumped)
# ^Djail: /bin/sh: failed
[tykling@test /usr/src]$ perl -e 'dump'
Abort trap
[tykling@test /usr/src]$ dmesg | tail -3
[testname] pid 823 (perl), uid 0: exited on signal 6 (core dumped)
[6] pid 827 (perl), uid 0: exited on signal 6 (core dumped)
pid 828 (perl), uid 1001: exited on signal 6
[tykling@test /usr/src]$


There doesn't seem to be a getcred* function to get the jail name, so I've left
that code as is, but getting pr_name instead of pr_hostname.

Only thing missing is getting the parent jail names (recursively) where
relevant. Do you happen to know if there is an existing function to do that, or
do I have to make one and call it recursively, prepending to a . seperated
string until pr_parent is null?

-- 
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 180385] [kqueue] Conflict between EVFILT_PROC NOTE_CHILD and NOTE_EXIT use of data field

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=180385

Eric van Gyzen  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|vangy...@freebsd.org
 CC||vangy...@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 205938] [ext2fs][patch][panic] EXT4: reading mmaped file causes panic because struct buf leaks

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205938

Pedro F. Giffuni  changed:

   What|Removed |Added

 Status|New |In Progress
   Assignee|freebsd-bugs@FreeBSD.org|p...@freebsd.org
 CC||gnehz...@gmail.com,
   ||p...@freebsd.org

--- Comment #1 from Pedro F. Giffuni  ---
Patch looks good.
Add Zheng Liu (author of original code) for review.
Take.

-- 
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 205965] mailwrapper please merge r270675 to stable/10 stable/9

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205965

Bug ID: 205965
   Summary: mailwrapper please merge r270675 to stable/10 stable/9
   Product: Base System
   Version: 11.0-CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: bin
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: oha...@freebsd.org
 Flags: mfc-stable9+, mfc-stable10+

After the last postfix pkg-install script rework I looked into stable/10
mailwrapper and hacked a similar solution like this one (but based on lstat)
before I found out a working solution already exists on head ;)

Commit r270675 has the following log:

r270675 | bapt | 2014-08-27 00:20:02 +0200 (Wed, 27 Aug 2014) | 7 lines
Allow mailwrapper to use mailer.conf from localbase (respecting LOCALBASE env
var if set)
Phabric:https://reviews.freebsd.org/D412
Reviewed by:bdrewery
MFC after:  2 weeks
Relnotes:   yes

Please merge this to stable, so mailers from PORTS can start using the rewrite
with 10.3.

-- 
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 205598] [patch] sbin/md5.c param -c, convert to lowercase so E975548260B65C79AF... matches calculated e975548260b65c79af...

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205598

Olli Hauer  changed:

   What|Removed |Added

  Flags||mfc-stable9?, mfc-stable10?

-- 
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 205965] mailwrapper please merge r270675 to stable/10 stable/9

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205965

Olli Hauer  changed:

   What|Removed |Added

  Flags|mfc-stable9+, mfc-stable10+ |mfc-stable9?, mfc-stable10?

-- 
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 205965] mailwrapper please merge r270675 to stable/10 stable/9

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205965

Bryan Drewery  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|bdrew...@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 205974] can't detach devices from zpool

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205974

Bug ID: 205974
   Summary: can't detach devices from zpool
   Product: Base System
   Version: 11.0-CURRENT
  Hardware: amd64
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: lifa...@mail.lifanov.com
CC: freebsd-am...@freebsd.org
CC: freebsd-am...@freebsd.org

I migrated a zpool (mirror) from two 1T drives to two 3T drives.
It had two (also mirrored) log devices.

I detached both mirror devices, one at a time, and then replaced both drives,
one at a time with autoexpand turned on.

Then I re-attached the log devices in the same mirrored configuration.

The pool is healthy and seems to be working normally, but I can't detach
devices from it anymore. Any time I try to detach any of the four devices, the
system becomes completely unresponsive.

The software version is the same. The only configuration difference is that the
new pool has 4k blocks versus 512b and also has a different pool name.

After a forced reboot, pool is marked as degraded and I can plug the device
back in and wait for a resilver. The device doesn't become detached.

I can't produce a vmcore because the system becomes completely unresponsive but
doesn't crash.

-- 
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 205974] can't detach devices from zpool

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205974

Steven Hartland  changed:

   What|Removed |Added

 CC||s...@freebsd.org

--- Comment #1 from Steven Hartland  ---
what is the output from:
1. zpool status
2. uname -a

-- 
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 205974] can't detach devices from zpool

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205974

--- Comment #2 from Steven Hartland  ---
Also:
3. zdb -C 

-- 
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 205974] can't detach devices from zpool

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205974

Mark Linimon  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|freebsd...@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 205930] clang(1) doesn't document all flags and options

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205930

Mark Linimon  changed:

   What|Removed |Added

   Keywords||patch

-- 
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 196289] Kernel hangs when booting via UEFI

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196289
Bug 196289 depends on bug 202455, which changed state.

Bug 202455 Summary: [EFI] boot/loader.efi: ExitBootServices() returned 
0x8002
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202455

   What|Removed |Added

 Status|In Progress |Closed
 Resolution|--- |FIXED

-- 
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 203349] [META] FreeBSD Foundation sponsored project dependencies for FreeBSD 11.0

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203349
Bug 203349 depends on bug 202455, which changed state.

Bug 202455 Summary: [EFI] boot/loader.efi: ExitBootServices() returned 
0x8002
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202455

   What|Removed |Added

 Status|In Progress |Closed
 Resolution|--- |FIXED

-- 
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 198062] FreeBSD 10.1-RELEASE kernel freezes on 'pci0: on pcib0'

2016-01-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198062

--- Comment #19 from Joseph King  ---
(In reply to John Baldwin from comment #18)

Using FreeBSD netsys9.isolan.itsmine.com 9.3-RELEASE-p30 FreeBSD
9.3-RELEASE-p30 #0: Mon Nov  2 10:11:50 UTC 2015
r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64 as the
building OS on the hardware in question.

Using method #1 svn:

When I do the make kernel-toolchain the following errors are spit out:

root@netsys9:/ufs/pr_198062 # make kernel-toolchain
Unknown modifier '['

"/ufs/pr_198062/Makefile.inc1", line 1105: Malformed conditional
(${BUILDKERNELS:[)
Unknown modifier '['

"/ufs/pr_198062/Makefile.inc1", line 1114: if-less endif
Unknown modifier '['

"/ufs/pr_198062/Makefile.inc1", line 1134: Malformed conditional
(${BUILDKERNELS:[)
Unknown modifier '['

"/ufs/pr_198062/Makefile.inc1", line 1151: if-less endif
Unknown modifier '['

"/ufs/pr_198062/Makefile.inc1", line 1169: Malformed conditional
(${BUILDKERNELS:[)
Unknown modifier '['

"/ufs/pr_198062/Makefile.inc1", line 1176: if-less endif
make: fatal errors encountered -- cannot continue
*** [kernel-toolchain] Error code 1

Stop in /ufs/pr_198062.

Using method #2 git: the kernel-toolchain makes fine but when I do the
buildkernel the following errors are spit out at me after a few minutes...

===> aic7xxx (depend)
===> aic7xxx/ahc (depend)
@ -> /ufs/pr_198062-git/freebsd/sys
machine -> /ufs/pr_198062-git/freebsd/sys/amd64/include
x86 -> /ufs/pr_198062-git/freebsd/sys/x86/include
Error: aic7xxx_seq.h is missing.  Run 'make ahcfirmware'
Error: aic7xxx_reg.h is missing.  Run 'make ahcfirmware'
Error: aic7xxx_reg_print.c is missing.  Run 'make ahcfirmware'
ln -sf /usr/obj/ufs/pr_198062-git/freebsd/sys/GENERIC/opt_scsi.h opt_scsi.h
ln -sf /usr/obj/ufs/pr_198062-git/freebsd/sys/GENERIC/opt_aic7xxx.h
opt_aic7xxx.h
ln -sf /usr/obj/ufs/pr_198062-git/freebsd/sys/GENERIC/opt_cam.h opt_cam.h
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
rm -f .depend
CC='cc ' mkdep -f .depend -a   -nostdinc -DAHC_REG_PRETTY_PRINT=1 -D_KERNEL
-DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq
-I/usr/obj/ufs/pr_198062-git/freebsd/sys/GENERIC -std=iso9899:1999  
aic7xxx_reg_print.c
/ufs/pr_198062-git/freebsd/sys/modules/aic7xxx/ahc/../../../dev/aic7xxx/aic7xxx.c
/ufs/pr_198062-git/freebsd/sys/modules/aic7xxx/ahc/../../../dev/aic7xxx/aic7xxx_93cx6.c
/ufs/pr_198062-git/freebsd/sys/modules/aic7xxx/ahc/../../../dev/aic7xxx/aic7xxx_osm.c
/ufs/pr_198062-git/freebsd/sys/modules/aic7xxx/ahc/../../../dev/aic7xxx/aic7770.c
cc: error: no such file or directory: 'aic7xxx_reg_print.c'
mkdep: compile failed
*** [.depend] Error code 1

Stop in /ufs/pr_198062-git/freebsd/sys/modules/aic7xxx/ahc.
*** [depend_subdir_ahc] Error code 1

Stop in /ufs/pr_198062-git/freebsd/sys/modules/aic7xxx.
*** [depend_subdir_aic7xxx] Error code 1

Stop in /ufs/pr_198062-git/freebsd/sys/modules.
*** [modules-depend] Error code 1

Stop in /usr/obj/ufs/pr_198062-git/freebsd/sys/GENERIC.
*** [buildkernel] Error code 1

Stop in /ufs/pr_198062-git/freebsd.
*** [buildkernel] Error code 1

Stop in /ufs/pr_198062-git/freebsd.

-- 
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"