- Remove global.
- Make sure that the parent doesn't go away during the lookup.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Feb 21 2019
Feb 20 2019
I wasn't careful about preserving #ifdefs here: fasttrap has been virtually untouched upstream for the past 5 years, so once this commit is in I'm going to get rid of illumos ifdefs there in an attempt to make the code a bit easier to read.
Can you provide an example DIE where this occurs? Which compiler are you using?
There are some style bugs in the diff, but I'll hold off on commenting on them for the initial review. style(9) is a useful reference if you're not familiar with it.
Feb 19 2019
In D19249#411899, @ken wrote:I tested this out with a Seagate 8TB host aware drive:
{sm4u-1-mgmt:/usr/home/kenm:!:0} camcontrol inquiry da14 -v
pass14: <ATA ST8000AS0022-1WL ZN03> Fixed Direct Access SPC-4 SCSI device
pass14: Serial Number Z84003SK
pass14: 600.000MB/s transfers, Command Queueing EnabledIt produces the same results as before with zonectl -c rz
In D19249#411871, @asomers wrote:This change looks good. However, zonectl(8) currently hard-codes the entries_allocated field and doesn't check for a short return. If the kernel truncates the zone list, the user will have no obvious way of knowing. I think zonectl(8) should be modified to either loop until all zones have been reported, or at least tell the user that not all zones were reported.
Feb 17 2019
In D19226#411357, @kib wrote:In D19226#411354, @markj wrote:It looks like this is assuming that the old value is not valid, but that's not always true. For example, pmap_promote_pde() simply overwrites the old PDE.
I don't really see how pmap_kextract() is safe wrt torn writes.
It could only work for user pmaps, so I can check this. The pmap lock must be owned there.
For promotions, we can safely write zero then write the update, I believe.
It looks like this is assuming that the old value is not valid, but that's not always true. For example, pmap_promote_pde() simply overwrites the old PDE.
In D19224#411311, @markj wrote:In D19224#411306, @kib wrote:Why cannot the same happen for read side ?
pipe_kqfilter() does not handle EVFILT_READ and EVFILT_WRITE symmetrically. In the read case, the knote itself holds a reference on that end of the pipe, so pipeclose() will never be called.
In D19224#411306, @kib wrote:Why cannot the same happen for read side ?
Feb 16 2019
Sorry for taking a while to get back to this. I have an alternate patch at D19216.
- Return the error from copyin(9).
Feb 15 2019
The code changes look ok to me. Do you plan to upload man page changes here too?
I think you uploaded the diff between the first and second revision rather than the revision as a whole - could you upload the full diff?
Feb 14 2019
Feb 13 2019
Committed in r344106.
Committed in r344106.
Committed in r344106.
Committed in r344106.
Feb 11 2019
In D19148#409749, @pfg wrote:In D19148#409628, @mav wrote:In D19148#409623, @pfg wrote:I thought of that but I saw a -1 when calculating it:
hash->uh_hashmask = hash->uh_hashsize - 1;.A hashsize of zero makes little sense but it is still a valid value (?).
hashsize of zero makes no sense to me. I haven't checked how exactly it is initialized and whether it is used for some implementation reasons, but smallest possible size of hash is 1 with mask of 0. For size of 0 there is just no meaningful mask. Plus few places where uh_hashmask is used, do not care whether it is negative or overflown unsigned.
A zero value would come from an error or a malicious user.
Sorry it took a while to get to this. Most of my comments are style nits.
Address jhb's comments.
Feb 8 2019
Feb 7 2019
Feb 6 2019
Feb 5 2019
Feb 3 2019
- Assert that we don't batch operations on unmanaged pages.
- Reword a comment.
In D18989#407594, @jah wrote:I turns out I did some of my testing against the wrong copy of libcasper.so; passing stderr on LOG_PERROR actually *does* hold the parent's stderr stream hostage across daemon[fd]. That makes sense, given that passing fds as SCM_RIGHTS behaves like dup() in the way the underlying kernel objects are managed. I don't think it should change the plan here, but seemed worth noting that processes using LOG_PERROR could still have the same issue as dhclient today.