Page MenuHomeFreeBSD
Feed Advanced Search

Jun 12 2019

kib committed rS348988: MFC r348360:.
MFC r348360:
Jun 12 2019, 11:09 AM

Jun 11 2019

kib added a comment to D20584: add a linux compatible copy_file_range(2) syscall.

Yes, I did understand the comment w.r.t. range_locks. I fixed the rest of the stuff for two vnodes locked
concurrently, but I couldn't see an easy way to do range_locks on both of them without a LOR.

Because of the above and because it allows me to use FIOSEEKHOLE/FIOSEEKDATA, I've changed
the code to call vn_rdwr() with the vnodes unlocked and I just let vn_rdwr() deal with the range_locks, etc.

So you relock range for each chunk ? This defeats the purpose of the range locking. Should copy_file_range() be atomic WRT other reads and writes ?

Jun 11 2019, 4:36 PM
kib accepted D20594: Avoid overflow in checking the size of free gaps in vm_map_findspace.
Jun 11 2019, 2:52 PM
kib added a comment to D20594: Avoid overflow in checking the size of free gaps in vm_map_findspace.

Is this a fix for the i386 wrap issue, or just a related change ?

Jun 11 2019, 10:46 AM
kib committed rS348898: MFC r348816:.
MFC r348816:
Jun 11 2019, 10:41 AM
kib committed rS348897: MFC r348815:.
MFC r348815:
Jun 11 2019, 10:04 AM
kib added inline comments to D20584: add a linux compatible copy_file_range(2) syscall.
Jun 11 2019, 9:55 AM

Jun 10 2019

kib added inline comments to D18880: Extend mmap/mprotect API to specify the max page protections..
Jun 10 2019, 8:20 PM
kib added a comment to D18880: Extend mmap/mprotect API to specify the max page protections..

I believe that you should allocate a flag in the feature note and use it to opt-out (or opt-in ?) of max_prot.

Jun 10 2019, 8:17 PM
kib accepted D20327: Don't reset memory attributes when mapping physical addresses for ACPI..
Jun 10 2019, 8:07 PM
kib accepted D20592: improve error checking for modifcations to mmap len parameter.
Jun 10 2019, 7:57 PM
kib added inline comments to D20584: add a linux compatible copy_file_range(2) syscall.
Jun 10 2019, 6:57 PM
kib committed rS348872: MFC r348541:.
MFC r348541:
Jun 10 2019, 5:45 PM
kib committed rS348871: MFC r348539:.
MFC r348539:
Jun 10 2019, 5:43 PM
kib committed rS348870: MFC r348533:.
MFC r348533:
Jun 10 2019, 5:40 PM
kib committed rS348869: MFC r348536:.
MFC r348536:
Jun 10 2019, 5:39 PM
kib committed rS348868: MFC r348544:.
MFC r348544:
Jun 10 2019, 5:36 PM
kib accepted D20585: Various arm64 pmap fixes (and one optimization).
Jun 10 2019, 12:17 PM
kib added inline comments to D20584: add a linux compatible copy_file_range(2) syscall.
Jun 10 2019, 8:58 AM
kib added inline comments to D20584: add a linux compatible copy_file_range(2) syscall.
Jun 10 2019, 8:32 AM

Jun 9 2019

kib accepted D20580: Make mmap fail when len parameter, round up to page size, becomes zero.
Jun 9 2019, 8:59 PM
kib added inline comments to D20580: Make mmap fail when len parameter, round up to page size, becomes zero.
Jun 9 2019, 8:45 PM
kib accepted D19826: reduce accesses to vm_map entries off the search path in updating max_free.
Jun 9 2019, 10:18 AM

Jun 8 2019

kib accepted D20561: Avoid locking, manipulating vm_map for bogus address lookup.
Jun 8 2019, 9:21 PM
kib committed rS348816: Style MAP_ENTRY_ and MAP_ definitions..
Style MAP_ENTRY_ and MAP_ definitions.
Jun 8 2019, 8:28 PM
kib closed D20560: Style MAP_ENTRY_ and MAP_ definitions..
Jun 8 2019, 8:28 PM
kib committed rS348815: Correct definition for PGEX_SGX..
Correct definition for PGEX_SGX.
Jun 8 2019, 8:26 PM
kib updated the diff for D20560: Style MAP_ENTRY_ and MAP_ definitions..

Lowercase comments.

Jun 8 2019, 8:22 PM
kib committed rS348813: Make trap_msg array constant as well..
Make trap_msg array constant as well.
Jun 8 2019, 7:51 PM
kib created D20560: Style MAP_ENTRY_ and MAP_ definitions..
Jun 8 2019, 7:44 PM
kib accepted D20545: Break down swap_pager_swapoff function into small functions..
Jun 8 2019, 5:41 PM
kib committed rS348802: Remove lazy FPU switch support from amd64..
Remove lazy FPU switch support from amd64.
Jun 8 2019, 4:03 PM
kib committed rS348799: i386 trap.c: Remove unused MAX_TRAP_MSG define..
i386 trap.c: Remove unused MAX_TRAP_MSG define.
Jun 8 2019, 1:41 PM
kib committed rS348798: amd64 trap.c: Modernize syntax around trap_msg[]..
amd64 trap.c: Modernize syntax around trap_msg[].
Jun 8 2019, 1:41 PM
kib accepted D20538: Rethink r348246.
Jun 8 2019, 11:39 AM

Jun 7 2019

kib accepted D20538: Rethink r348246.
Jun 7 2019, 5:40 PM
kib added inline comments to D20390: Show shm_open() and shmget() path/key in procstat -v..
Jun 7 2019, 10:48 AM
kib committed rS348775: MFC r348476, r348630 (by alc):.
MFC r348476, r348630 (by alc):
Jun 7 2019, 10:09 AM

Jun 6 2019

kib accepted D20538: Rethink r348246.
Jun 6 2019, 6:59 PM
kib accepted D20519: Add a debugging facility to manually reclaim a vnode.
Jun 6 2019, 2:49 PM
kib added inline comments to D20519: Add a debugging facility to manually reclaim a vnode.
Jun 6 2019, 2:24 PM
kib accepted D20519: Add a debugging facility to manually reclaim a vnode.

I think this version of code is technically correct. I still would prefer the fd-based sysctl instead.

Jun 6 2019, 11:00 AM

Jun 5 2019

kib added inline comments to D20526: Fix a fasttrap race..
Jun 5 2019, 8:34 PM
kib added inline comments to D20526: Fix a fasttrap race..
Jun 5 2019, 8:27 PM
kib committed rS348701: In vm_map_entry_set_vnode_text(), tolerate tmpfs mappings for which.
In vm_map_entry_set_vnode_text(), tolerate tmpfs mappings for which
Jun 5 2019, 8:21 PM
kib committed rS348698: Manually clear text references on reclaim for nullfs and tmpfs..
Manually clear text references on reclaim for nullfs and tmpfs.
Jun 5 2019, 8:16 PM
kib accepted D20528: nvdimm: Provide nvdimm location information.
Jun 5 2019, 7:29 PM
kib added inline comments to D20519: Add a debugging facility to manually reclaim a vnode.
Jun 5 2019, 7:25 PM
kib accepted D20526: Fix a fasttrap race..
Jun 5 2019, 7:19 PM

Jun 4 2019

kib added inline comments to D20519: Add a debugging facility to manually reclaim a vnode.
Jun 4 2019, 10:24 PM
kib added a comment to D20519: Add a debugging facility to manually reclaim a vnode.
In D20519#443196, @kib wrote:

I suspect it could be more useful to pass a file descriptor number to the sysctl, leaving path manipulation to open. E.g., this way it would be possible to hack-reclaim unlinked inodes.

OTOH, taking a file descriptor instead of a pathname means that it wouldn't be able to reclaim inactive vnodes. For my purposes that's more important. For example, I want to be able to reclaim a directory that doesn't currently have any open file descriptors.

Jun 4 2019, 9:55 PM
kib added a comment to D20519: Add a debugging facility to manually reclaim a vnode.

I suspect it could be more useful to pass a file descriptor number to the sysctl, leaving path manipulation to open. E.g., this way it would be possible to hack-reclaim unlinked inodes.

Jun 4 2019, 8:49 PM
kib accepted D20514: Export some UMA info via sysctl..
Jun 4 2019, 4:59 PM
kib added inline comments to D20514: Export some UMA info via sysctl..
Jun 4 2019, 3:57 PM

Jun 3 2019

kib accepted D20503: Remove the header comment in vm_page.c..
Jun 3 2019, 7:21 PM
kib accepted D20505: very large dma mappings can cause integer overflow.
Jun 3 2019, 5:57 PM
kib accepted D20502: Allocate wired pages in linux_alloc_pages()..
Jun 3 2019, 4:27 PM
kib accepted D20503: Remove the header comment in vm_page.c..
Jun 3 2019, 4:24 PM
kib committed rS348544: hwpmc_intel: List all Silvermont ids..
hwpmc_intel: List all Silvermont ids.
Jun 3 2019, 4:21 PM
kib committed rS348541: efirt efi_enter(): Release acquired locks and restore FPU ownership if.
efirt efi_enter(): Release acquired locks and restore FPU ownership if
Jun 3 2019, 3:42 PM
kib committed rS348539: amd64 ef_rt_arch_call: Preserve %rflags around call into EFI RT service..
amd64 ef_rt_arch_call: Preserve %rflags around call into EFI RT service.
Jun 3 2019, 3:32 PM
kib committed rS348536: Remove dead check..
Remove dead check.
Jun 3 2019, 3:23 PM
kib committed rS348533: Remove dead store..
Remove dead store.
Jun 3 2019, 3:19 PM
kib committed rS348531: MFC r348306:.
MFC r348306:
Jun 3 2019, 3:10 PM
kib committed rS348528: Release slavash..
Release slavash.
Jun 3 2019, 7:58 AM

Jun 2 2019

kib accepted D20487: add a new -I command line option to mountd which makes it update the kernel exports incrementally upon a reload.
Jun 2 2019, 12:11 PM
kib committed rS348508: MFC r348433:.
MFC r348433:
Jun 2 2019, 9:29 AM
kib committed rS348507: MFC r348432:.
MFC r348432:
Jun 2 2019, 9:28 AM

Jun 1 2019

kib accepted D20485: Use the vm_page_wired() predicate where appropriate..
Jun 1 2019, 10:18 PM
kib added a comment to D20485: Use the vm_page_wired() predicate where appropriate..

Could you please update the diff to include the definition if vm_page_wired() ? I expect it to be trivial.

Jun 1 2019, 5:47 PM
kib accepted D20492: Retire vm_reserv_extend_{contig,page}().
Jun 1 2019, 5:41 PM
kib accepted D19826: reduce accesses to vm_map entries off the search path in updating max_free.
Jun 1 2019, 5:40 PM
kib added a comment to D20411: Add devfs(5) support for VOP_MKDIR(9) and VOP_RMDIR(9).

Imagine that there is no pseudo ttys in the system, and user called mkdir('/dev/pts'). Then a new pty pair is created, which makes a device node in /dev/pts. On device destruction, the node is removed, and its contained directory is removed if empty. But '/dev/pts' was created by user, not my makedev(9).

Jun 1 2019, 3:01 PM
kib added a comment to D20487: add a new -I command line option to mountd which makes it update the kernel exports incrementally upon a reload.

Your follow-up questions definitely show that you want some mountd.conf config file, e.g. to manage -I flag. The file should be re-read on SIGHUP.
I could argue that it is reasonable for mountd.conf to provide all options supplied as command-line arguments to mountd.

Jun 1 2019, 2:37 PM
kib added inline comments to D20492: Retire vm_reserv_extend_{contig,page}().
Jun 1 2019, 12:04 PM
kib added inline comments to D20347: efirt: Add efi_memory_attribute.
Jun 1 2019, 11:47 AM

May 31 2019

kib committed rS348479: MFC r348246:.
MFC r348246:
May 31 2019, 7:13 PM
kib committed rS348478: MFC r348258:.
MFC r348258:
May 31 2019, 7:10 PM
kib committed rS348477: MFC r348257:.
MFC r348257:
May 31 2019, 7:07 PM
kib accepted D16901: Eliminate some needless attempts to merge buddies.
May 31 2019, 6:54 PM
kib committed rS348476: Simplify flow of pmap_demote_pde_locked() and add more comprehensive.
Simplify flow of pmap_demote_pde_locked() and add more comprehensive
May 31 2019, 6:53 PM
kib closed D20266: Simplify flow of pmap_demote_pde_locked() and add more comprehensive debugging checks..
May 31 2019, 6:53 PM

May 30 2019

kib accepted D20470: Use vm_page_unwire_noq() instead of vm_page_unwire(PQ_NONE)..
May 30 2019, 5:27 PM
kib accepted D20469: Remove a redundant vm_page_remove() call..
May 30 2019, 4:56 PM
kib committed rS348433: Remove TODO comment after posixshmcontrol(1) added..
Remove TODO comment after posixshmcontrol(1) added.
May 30 2019, 4:04 PM
kib committed rS348432: Minor tweaks to the layout..
Minor tweaks to the layout.
May 30 2019, 4:03 PM
kib committed rS348426: MFC r348167, r348168, r348359, r348361:.
MFC r348167, r348168, r348359, r348361:
May 30 2019, 3:16 PM
kib committed rS348425: MFC r348158:.
MFC r348158:
May 30 2019, 3:13 PM
kib committed rS348424: MFC r348157:.
MFC r348157:
May 30 2019, 3:12 PM
kib committed rS348423: MFC r348156:.
MFC r348156:
May 30 2019, 3:10 PM
kib committed rS348421: Silence witness warning about duplicated mutex type..
Silence witness warning about duplicated mutex type.
May 30 2019, 3:04 PM
kib added a comment to D20347: efirt: Add efi_memory_attribute.
In D20347#441878, @manu wrote:
In D20347#441757, @kib wrote:

This all looks fine, except one detail. I reviewed UEFI 2.8 description of EFI_BOOT_SERVICES.GetMemoryMap() but did not found a mention that they require the map ordered by phys address. Did you miss the code to sort the map ?

In chapter 4.6, EFI_MEMORY_ATTRIBUTES_TABLE it is said : The list must be sorted by physical start address in ascending order.

I am even more confused. The description said that about EFI_MEMORY_ATTRIBUTE, not about memory map. And you correctly use memory map, because MEMORY_ATTRIBUTE seems to be some after-thought patch only applicable to EFI runtime code and data.

May 30 2019, 11:39 AM

May 29 2019

kib added a comment to D20347: efirt: Add efi_memory_attribute.

This all looks fine, except one detail. I reviewed UEFI 2.8 description of EFI_BOOT_SERVICES.GetMemoryMap() but did not found a mention that they require the map ordered by phys address. Did you miss the code to sort the map ?

May 29 2019, 7:53 PM
kib accepted D20361: procdesc: fix reparenting when the debugger is attached.

As Mark noted, move of P_TRACED cleanup should be a separate commit which makes sense to ask pho to test. Also I recommend to split introduction of proc_add_orphan() into another preliminary commit, since it will make merges easier.

May 29 2019, 5:42 PM
kib committed rS348362: MFC r348075:.
MFC r348075:
May 29 2019, 2:28 PM
kib committed rS348361: Remove "All rights reserved." from FF copyright..
Remove "All rights reserved." from FF copyright.
May 29 2019, 2:26 PM
kib committed rS348360: Do not go into sleep in sleepq_catch_signals() when SIGSTOP from.
Do not go into sleep in sleepq_catch_signals() when SIGSTOP from
May 29 2019, 2:05 PM
kib closed D20381: Do not go into sleep in sleepq_catch_signals() when SIGSTOP from PT_ATTACH was consumed..
May 29 2019, 2:05 PM
kib committed rS348359: Add posixshmcontrol(1) page..
Add posixshmcontrol(1) page.
May 29 2019, 1:51 PM
kib closed D20430: posixshmcontrol(1) page.
May 29 2019, 1:51 PM