Page MenuHomeFreeBSD
Feed All Stories

Nov 27 2019

kib accepted D22571: Factor out checks for mounted root file system.

In fact, I do not see much need in introducing 'p': you reference curproc only once in each branch, so caching the pointer does not save anything.

Nov 27 2019, 4:29 PM
rlibby added inline comments to D20722: uma: trash memory when ctor/dtor supplied too.
Nov 27 2019, 4:28 PM
markj added inline comments to D22544: Use macros to search vm_map.
Nov 27 2019, 4:26 PM
mjg reopened D17174: Put guards around timespec_get() decleration..

Looks like these guards should be __cplusplus instead?

Nov 27 2019, 4:26 PM
diizzy updated the diff for D22537: Add support for generating release images using GPT for ARM.

Use "efi" as label and boot/efi instead of boot/msdos

Nov 27 2019, 4:25 PM
rlibby updated the diff for D20722: uma: trash memory when ctor/dtor supplied too.

Resolve conflicts after r355121.

Nov 27 2019, 4:23 PM
markj accepted D22564: Remove the relatively unused us_keg field. Store the zone along withthe slab in the page for malloc..
Nov 27 2019, 4:22 PM
jrm committed rP518506: Chase lang/sbcl upgrade with PORTREVISION bump on *-sbcl ports.
Chase lang/sbcl upgrade with PORTREVISION bump on *-sbcl ports
Nov 27 2019, 4:21 PM
hselasky updated the diff for D22571: Factor out checks for mounted root file system.

Handle comments from @kib

Nov 27 2019, 4:21 PM
markj accepted D22546: Ease the life of PT_TO_SCE/PT_TO_SCX users when debuggee sleeps in sigsuspend(2)/sig{timed,}wait(2)..
Nov 27 2019, 4:18 PM
kib updated the diff for D22546: Ease the life of PT_TO_SCE/PT_TO_SCX users when debuggee sleeps in sigsuspend(2)/sig{timed,}wait(2)..

Report spurious EINTR from sigtimedwait() only if there is no other errors to return.

Nov 27 2019, 4:17 PM
kib added inline comments to D22571: Factor out checks for mounted root file system.
Nov 27 2019, 4:16 PM
manu added a reviewer for D22538: Add PINE64 ROCKPro64 config for generation of release images: imp.
Nov 27 2019, 4:13 PM
manu added a reviewer for D22537: Add support for generating release images using GPT for ARM: imp.
Nov 27 2019, 4:13 PM
markj added a comment to D22563: Handle large mallocs by going directly to kmem without taking a detour through uma zones..

I guess using UMA made more sense when KVA was still allocated directly from the vm_map instead of vmem?

Nov 27 2019, 4:11 PM
hselasky updated the diff for D22571: Factor out checks for mounted root file system.

Keep the rootvnode check in case the root file system gets unmounted.
Update comment.

Nov 27 2019, 4:11 PM
tsoome accepted D22569: Add support to allocate more space before and after a current allocation.

Seems ok.
Note, the issue about the staging size is not really if we can or can not allocate specific size, but if we have enough target space to copy it. I have starting to port other change (https://reviews.freebsd.org/D22309), the idea there is that we should determine if the target location has enough space. The bios version is simple as there we own the memory and we can not load directly to target address, in UEFI case we need to allocate, load and after switching off the BS, only then we can copy.

Nov 27 2019, 4:08 PM
hselasky updated the diff for D22571: Factor out checks for mounted root file system.
Nov 27 2019, 4:00 PM
kib accepted D22548: devfs: introduce a per-dev lock to protect ->si_devsw.
Nov 27 2019, 4:00 PM
kib added a comment to D22571: Factor out checks for mounted root file system.
Index: sys/kern/kern_linker.c
===================================================================
--- sys/kern/kern_linker.c	(revision 355108)
+++ sys/kern/kern_linker.c	(working copy)
@@ -2067,6 +2067,7 @@
     struct linker_file *parent, const struct mod_depend *verinfo,
     struct linker_file **lfpp)
 {
+	struct proc *cp = curproc;
 	linker_file_t lfdep;
 	const char *filename;
 	char *pathname;
@@ -2079,13 +2080,13 @@
  		 */
 		KASSERT(verinfo == NULL, ("linker_load_module: verinfo"
 		    " is not NULL"));
-		if (rootvnode == NULL)
+		if (rootvnode == NULL || cp->p_fd == NULL || cp->p_fd->fd_rdir == NULL)
 			return (ENXIO);
 		pathname = linker_search_kld(kldname);
 	} else {
 		if (modlist_lookup2(modname, verinfo) != NULL)
 			return (EEXIST);
-		if (rootvnode == NULL)
+		if (rootvnode == NULL || cp->p_fd == NULL || cp->p_fd->fd_rdir == NULL)
 			return (ENXIO);
 		if (kldname != NULL)
 			pathname = strdup(kldname, M_LINKER);

Why not like this? Or remove the rootvnode == NULL and only test fd_rdir ?

Nov 27 2019, 3:59 PM
hselasky commandeered D22571: Factor out checks for mounted root file system.
Nov 27 2019, 3:56 PM
markj added inline comments to D22198: nd6: Reject routers on a prefix about to be freed.
Nov 27 2019, 3:55 PM
imp accepted D22569: Add support to allocate more space before and after a current allocation.

Not seeing any holes here

Nov 27 2019, 3:54 PM
markj added a comment to D22546: Ease the life of PT_TO_SCE/PT_TO_SCX users when debuggee sleeps in sigsuspend(2)/sig{timed,}wait(2)..
In D22546#493348, @kib wrote:
In D22546#493292, @kib wrote:

Also, I believe it is consistent with behavior of other sleeping syscalls like select(2), where the situation causes spurious EINTR.

I agree it is more consistent than before, but from my reading:

  • it does not result in EINTR for a mere ptrace attach, and

For PT_ATTACH it is not needed, I believe. There a SIGSTOP is generated and we would do all the magic inside ptracestop().

Nov 27 2019, 3:52 PM
hselasky added a comment to D22571: Factor out checks for mounted root file system.
Index: sys/kern/kern_linker.c
===================================================================
--- sys/kern/kern_linker.c	(revision 355108)
+++ sys/kern/kern_linker.c	(working copy)
@@ -2067,6 +2067,7 @@
     struct linker_file *parent, const struct mod_depend *verinfo,
     struct linker_file **lfpp)
 {
+	struct proc *cp = curproc;
 	linker_file_t lfdep;
 	const char *filename;
 	char *pathname;
@@ -2079,13 +2080,13 @@
  		 */
 		KASSERT(verinfo == NULL, ("linker_load_module: verinfo"
 		    " is not NULL"));
-		if (rootvnode == NULL)
+		if (rootvnode == NULL || cp->p_fd == NULL || cp->p_fd->fd_rdir == NULL)
 			return (ENXIO);
 		pathname = linker_search_kld(kldname);
 	} else {
 		if (modlist_lookup2(modname, verinfo) != NULL)
 			return (EEXIST);
-		if (rootvnode == NULL)
+		if (rootvnode == NULL || cp->p_fd == NULL || cp->p_fd->fd_rdir == NULL)
 			return (ENXIO);
 		if (kldname != NULL)
 			pathname = strdup(kldname, M_LINKER);
Nov 27 2019, 3:41 PM
AMDmi3 committed rP518505: - Simplify config file handling by switching to @sample.
- Simplify config file handling by switching to @sample
Nov 27 2019, 3:35 PM
mjg updated the diff for D22548: devfs: introduce a per-dev lock to protect ->si_devsw.
  • drop _lock.h and _mtx.h
Nov 27 2019, 3:34 PM
hselasky added a comment to D22571: Factor out checks for mounted root file system.

I wonder if this check should be factored out? It is not only the LinuxKPI which access these code paths too early, but USB drivers loading firmware .ko's can also do the same??

Nov 27 2019, 3:33 PM
hselasky added inline comments to D22571: Factor out checks for mounted root file system.
Nov 27 2019, 3:29 PM
jrm committed rP518504: www/py-caldav: Update to version 0.6.2.
www/py-caldav: Update to version 0.6.2
Nov 27 2019, 3:29 PM
kib updated the summary of D22571: Factor out checks for mounted root file system.
Nov 27 2019, 3:28 PM
kib created D22571: Factor out checks for mounted root file system.
Nov 27 2019, 3:27 PM
markj accepted D22502: Eliminate thread pinning from broadcast TLB invalidation functions on arm64.
Nov 27 2019, 3:10 PM
cwlin0416_gmail.com retitled D22570: Traditional Chinese Translation of handbook (19.11, 27.4, 19.5) from Traditional Chinese Translation of handbook (28.7, 28.8, 28.9, 28.10, 28.11) to Traditional Chinese Translation of handbook (19.11, 27.4, 19.5).
Nov 27 2019, 3:09 PM
cwlin0416_gmail.com created D22570: Traditional Chinese Translation of handbook (19.11, 27.4, 19.5).
Nov 27 2019, 3:08 PM
andrew created D22569: Add support to allocate more space before and after a current allocation.
Nov 27 2019, 3:01 PM
mm committed rP518503: Unbreak and update zfs-stats to 1.3.0.
Unbreak and update zfs-stats to 1.3.0
Nov 27 2019, 2:45 PM
danfe added inline comments to D22556: Manual for ACPI battery subsystm.
Nov 27 2019, 1:48 PM
cy committed rS355131: MFC r315223, r325182:.
MFC r315223, r325182:
Nov 27 2019, 1:46 PM
ehaupt committed rP518502: Update to 1.02.
Update to 1.02
Nov 27 2019, 1:17 PM
ale committed rP518501: Add ctype dependency..
Add ctype dependency.
Nov 27 2019, 1:14 PM
kib accepted D22501: Use uintptr_t instead of register_t * for the stack base..
Nov 27 2019, 12:18 PM
antoine committed rP518500: Update to 1.2.1.
Update to 1.2.1
Nov 27 2019, 12:10 PM
me_mko.io added a watcher for bhyve: me_mko.io.
Nov 27 2019, 12:00 PM
me_mko.io added a watcher for capsicum: me_mko.io.
Nov 27 2019, 12:00 PM
me_mko.io added a watcher for Erlang: me_mko.io.
Nov 27 2019, 12:00 PM
me_mko.io added a watcher for pkgbase: me_mko.io.
Nov 27 2019, 11:59 AM
me_mko.io added a watcher for riscv: me_mko.io.
Nov 27 2019, 11:59 AM
me_mko.io added a watcher for ZFS: me_mko.io.
Nov 27 2019, 11:59 AM
madpilot committed rP518499: Make asterisk16 the default flavor..
Make asterisk16 the default flavor.
Nov 27 2019, 11:43 AM
madpilot committed rP518498: - Update asterisk-chan_sccp to 4.3.2-epsilon.
- Update asterisk-chan_sccp to 4.3.2-epsilon
Nov 27 2019, 11:41 AM
krion committed rP518497: Update to 1.5.9.
Update to 1.5.9
Nov 27 2019, 11:37 AM
kib accepted D22548: devfs: introduce a per-dev lock to protect ->si_devsw.

Except for the headers pollution, I am fine with the change.

Nov 27 2019, 11:25 AM
olgeni committed rP518496: x11-fonts/jmk-x11-fonts: update MASTER_SITES and unbreak..
x11-fonts/jmk-x11-fonts: update MASTER_SITES and unbreak.
Nov 27 2019, 11:24 AM
pkubaj created D22568: lang/nim: fix build on powerpc64 nim now works on powerpc64. It just needs replacing clang with gcc on elfv1 PR: 241974.
Nov 27 2019, 11:06 AM
tobik committed rP518495: games/eboard: Unbreak JOYSTICK option.
games/eboard: Unbreak JOYSTICK option
Nov 27 2019, 10:52 AM
gerald committed rP518494: Update to the 20191123 snapshot of GCC 9.2.1..
Update to the 20191123 snapshot of GCC 9.2.1.
Nov 27 2019, 10:42 AM
tobik committed rP518493: devel/sdl12: Remove bundled evdev headers and use evdev-proto instead.
devel/sdl12: Remove bundled evdev headers and use evdev-proto instead
Nov 27 2019, 10:41 AM
bcr accepted D22567: Add 'sesutil show'.

Sounds like a cool feature to have. Thanks for working on it.
The man page looks good!

Nov 27 2019, 10:40 AM
tobik committed rP518492: sysutils/jstest-gtk: Remove bundled evdev headers and use evdev-proto instead.
sysutils/jstest-gtk: Remove bundled evdev headers and use evdev-proto instead
Nov 27 2019, 10:33 AM
trasz added a reviewer for D22567: Add 'sesutil show': asomers.
Nov 27 2019, 10:29 AM
manu accepted D22538: Add PINE64 ROCKPro64 config for generation of release images.
Nov 27 2019, 10:27 AM
trasz updated the diff for D22567: Add 'sesutil show'.

Drop unneeded diff.

Nov 27 2019, 10:27 AM
trasz committed rS355130: Fix typos..
Fix typos.
Nov 27 2019, 10:27 AM
ae committed rS355129: Add support for dummy ESP packets with next header field equal to.
Add support for dummy ESP packets with next header field equal to
Nov 27 2019, 10:25 AM
ae closed D22557: Add ESP dummy frames support.
Nov 27 2019, 10:24 AM
trasz created D22567: Add 'sesutil show'.
Nov 27 2019, 10:22 AM
tobik committed rP518491: New port: multimedia/kodi-addon-peripheral.joystick-devel.
New port: multimedia/kodi-addon-peripheral.joystick-devel
Nov 27 2019, 10:19 AM
tobik committed rP518490: devel/evdev-proto: Update to 5.3.
devel/evdev-proto: Update to 5.3
Nov 27 2019, 9:53 AM
ryusuke committed rD53642: - Merge the following from the English version:.
- Merge the following from the English version:
Nov 27 2019, 9:52 AM
pkubaj committed rP518489: devel/gnustep-base: unbreak on powerpc64 head.
devel/gnustep-base: unbreak on powerpc64 head
Nov 27 2019, 9:51 AM
tobik committed rP518488: x11-fonts/cascadia-code: Update to 1911.21.
x11-fonts/cascadia-code: Update to 1911.21
Nov 27 2019, 9:48 AM
krion accepted D22562: news/tin: update to 2.4.3.
Nov 27 2019, 9:21 AM
tobik committed rP518487: New port: audio/ncspot.
New port: audio/ncspot
Nov 27 2019, 8:42 AM
andrew added inline comments to D14698: [new driver] zilinx/zy7_qspi: Add a qspi driver for Zynq platforms..
Nov 27 2019, 8:19 AM · ARM
aurelien.cazuc.external_stormshield.eu added a comment to D22557: Add ESP dummy frames support.

Would you prefer commit it yourself or let fabient commit it ?
If you commit it yourself, please mention Stormshield as sponsor.

Nov 27 2019, 8:12 AM
andrew accepted D22502: Eliminate thread pinning from broadcast TLB invalidation functions on arm64.
Nov 27 2019, 8:10 AM
delphij committed rS355128: Update leap-seconds to leap-seconds.3676924800..
Update leap-seconds to leap-seconds.3676924800.
Nov 27 2019, 7:51 AM
rlibby added inline comments to D22554: Add a sysctl tree for UMA..
Nov 27 2019, 7:06 AM
jeff added inline comments to D22565: Low hanging lock reduction based on semi-const flags..
Nov 27 2019, 5:18 AM
markj added inline comments to D22565: Low hanging lock reduction based on semi-const flags..
Nov 27 2019, 5:07 AM
siddharthtuli_gmail.com added a comment to D22499: Changes to support booti u-boot command.

Hi Mmel,

Nov 27 2019, 5:05 AM · arm64
anish updated the summary of D22566: Bhyve AMD IOMMU: log the last timeout command..
Nov 27 2019, 4:16 AM
anish updated the diff for D22566: Bhyve AMD IOMMU: log the last timeout command..
Nov 27 2019, 4:14 AM
anish created D22566: Bhyve AMD IOMMU: log the last timeout command..
Nov 27 2019, 4:12 AM
jeff updated the summary of D22565: Low hanging lock reduction based on semi-const flags..
Nov 27 2019, 3:45 AM
jeff created D22565: Low hanging lock reduction based on semi-const flags..
Nov 27 2019, 3:42 AM
cy committed rS355127: MFC rr354733:.
MFC rr354733:
Nov 27 2019, 3:19 AM
jbeich updated the diff for D19100: graphics/mesa-{libs,dri}: update to 19.0.8.
  • Rebase
Nov 27 2019, 2:13 AM
jbeich updated the diff for D19099: graphics/mesa-{libs,dri}: update to 18.3.6.
Nov 27 2019, 2:12 AM
rlibby committed rS355126: witness: sleepable rm locks are not sleepable in read mode.
witness: sleepable rm locks are not sleepable in read mode
Nov 27 2019, 1:54 AM
rlibby closed D22527: witness: sleepable rm locks are not sleepable in read mode.
Nov 27 2019, 1:54 AM
jhb updated the summary of D22501: Use uintptr_t instead of register_t * for the stack base..
Nov 27 2019, 1:47 AM
jhb updated the diff for D22501: Use uintptr_t instead of register_t * for the stack base..
  • Use sizeof(tcbptr).
  • Use ustringp for the location of the argv and environment strings
  • Stop allocating a space for a stack gap in the Linux ABIs.
Nov 27 2019, 1:44 AM
mjg updated the diff for D22548: devfs: introduce a per-dev lock to protect ->si_devsw.
  • move the lock to cdev_privdata
Nov 27 2019, 1:31 AM
mjg committed rS355125: cache: stop reusing .. entries on enter.
cache: stop reusing .. entries on enter
Nov 27 2019, 1:21 AM
kbowling updated the diff for D22562: news/tin: update to 2.4.3.
Nov 27 2019, 1:21 AM
mjg committed rS355124: cache: fix numcache accounting on entry.
cache: fix numcache accounting on entry
Nov 27 2019, 1:21 AM
mjg committed rS355123: cache: hide "doingcache" behind DEBUG_CACHE.
cache: hide "doingcache" behind DEBUG_CACHE
Nov 27 2019, 1:20 AM
glewis committed rP518486: * Teach javavmwrapper about "13" as a version specifier.
* Teach javavmwrapper about "13" as a version specifier
Nov 27 2019, 12:56 AM