Page MenuHomeFreeBSD

kib (Konstantin Belousov)
User

Projects

User Details

User Since
May 16 2014, 7:35 PM (532 w, 11 h)

Recent Activity

Yesterday

kib added inline comments to D46152: buf_ring: Use atomic operations with br_cons_tail.
Fri, Jul 26, 9:18 PM
kib accepted D46153: buf_ring: Remove old arm-only dequeue code.
Fri, Jul 26, 9:13 PM
kib added a comment to D46151: buf_ring: Keep the full head and tail values.
In D46151#1052139, @kib wrote:

Am I right that this revision does not fix the issue, but covers it with more bits from the unused space in the head index? It is still possible that head wraps around, just less likely now that full 2^32 iterations needs to occur under it?

It's still possible, just very unlikely. Even if the value wrapped it would need to be the correct value for the cmpset to succeed.

Fri, Jul 26, 8:00 PM
kib added a comment to D46151: buf_ring: Keep the full head and tail values.

Am I right that this revision does not fix the issue, but covers it with more bits from the unused space in the head index? It is still possible that head wraps around, just less likely now that full 2^32 iterations needs to occur under it?

Fri, Jul 26, 6:41 PM
kib accepted D46150: buf_ring: Consistently use atomic_*_32.
Fri, Jul 26, 6:35 PM
kib accepted D46149: buf_ring: Support DEBUG_BUFRING in userspace.

If this is useful in kernel, why hen why not use mutex from either normal libpthread or mtx from libstdthread? (The later seems to not have mtx_owned analog)

Fri, Jul 26, 6:31 PM
kib accepted D46148: buf_ring: Remove PREFETCH_DEFINED.
Fri, Jul 26, 6:25 PM
kib added inline comments to D46113: vm: Remove kernel stack swapping support, part 2.
Fri, Jul 26, 1:09 PM
kib accepted D46130: conf: Remove kernel stack swapping support, part 12.
Fri, Jul 26, 10:38 AM
kib accepted D46129: vm: Remove kernel stack swapping support, part 11.
Fri, Jul 26, 10:37 AM
kib accepted D46128: sleepqueue: Remove kernel stack swapping support, part 10.
Fri, Jul 26, 10:33 AM
kib accepted D46127: proc: Remove kernel stack swapping support, part 9.
Fri, Jul 26, 10:32 AM
kib accepted D46113: vm: Remove kernel stack swapping support, part 2.
Fri, Jul 26, 10:30 AM

Thu, Jul 25

kib accepted D46128: sleepqueue: Remove kernel stack swapping support, part 10.
Thu, Jul 25, 8:10 PM
kib added inline comments to D46127: proc: Remove kernel stack swapping support, part 9.
Thu, Jul 25, 8:02 PM
kib accepted D46135: amd64 pmap: Optimize PKU lookups when creating superpage mappings.
Thu, Jul 25, 7:01 PM
kib added inline comments to D46135: amd64 pmap: Optimize PKU lookups when creating superpage mappings.
Thu, Jul 25, 6:02 PM
kib updated the diff for D46108: exit(3): make it thread-safe.

Make the exit mutex recursive.

Thu, Jul 25, 4:26 PM
kib accepted D46117: vm: Remove kernel stack swapping support, part 6.
Thu, Jul 25, 2:07 PM
kib added inline comments to D46108: exit(3): make it thread-safe.
Thu, Jul 25, 1:35 PM
kib added a comment to D46113: vm: Remove kernel stack swapping support, part 2.
In D46113#1051278, @kib wrote:

Does this mean that thread0 is no longer functional? If yes, can we re-purpose it for something/anything instead of throwing?

Right. Do you have any suggestions there? Hmm, after these changes there is still the vm_daemon(), to handle RACCT_RSS and RLIMIT_RSS. That is probably a good candidate.

Thu, Jul 25, 1:31 PM
kib added inline comments to D46108: exit(3): make it thread-safe.
Thu, Jul 25, 1:17 PM
kib accepted D46119: vm: Remove kernel stack swapping support, part 8.
Thu, Jul 25, 11:12 AM
kib accepted D46118: vm: Remove kernel stack swapping support, part 7.
Thu, Jul 25, 10:50 AM
kib added inline comments to D46117: vm: Remove kernel stack swapping support, part 6.
Thu, Jul 25, 10:49 AM
kib accepted D46116: vm: Remove kernel stack swapping support, part 5.
Thu, Jul 25, 10:46 AM
kib accepted D46115: vm: Remove kernel stack swapping support, part 4.
Thu, Jul 25, 10:46 AM
kib accepted D46114: vm: Remove kernel stack swapping support, part 3.
Thu, Jul 25, 10:43 AM
kib added a comment to D46113: vm: Remove kernel stack swapping support, part 2.

Does this mean that thread0 is no longer functional? If yes, can we re-purpose it for something/anything instead of throwing?

Thu, Jul 25, 10:41 AM
kib accepted D46112: vm: Remove kernel stack swapping support, part 1.
Thu, Jul 25, 10:39 AM
kib accepted D46099: Deprecate contigfree(9) in favour of free(9).
Thu, Jul 25, 10:02 AM
kib added inline comments to D46108: exit(3): make it thread-safe.
Thu, Jul 25, 9:44 AM
kib accepted D46104: libthr: Preresolve selected EABI symbols on arm.

Adapted to kib's objections.

These were anything but objections.

Thu, Jul 25, 9:32 AM

Wed, Jul 24

kib added a comment to D46108: exit(3): make it thread-safe.
In D46108#1051006, @imp wrote:

It wouldn't hurt to note in the commit message that this brings us into compliance with posix.1-2024 on this point. Many people may not know why the austin group matters

Wed, Jul 24, 9:04 PM
kib added reviewers for D46108: exit(3): make it thread-safe: emaste, markj.
Wed, Jul 24, 8:52 PM
kib updated the diff for D46108: exit(3): make it thread-safe.

Add pthread.h.
Describe the behavior in the man page.

Wed, Jul 24, 8:52 PM
kib requested review of D46108: exit(3): make it thread-safe.
Wed, Jul 24, 8:45 PM
kib added inline comments to D46104: libthr: Preresolve selected EABI symbols on arm.
Wed, Jul 24, 5:45 PM
kib added a comment to D46099: Deprecate contigfree(9) in favour of free(9).
In D46099#1050861, @bz wrote:

Address comments from @kib (I left the bridges alone but I agree a better name would be appreciated)

Wed, Jul 24, 4:31 PM
kib accepted D46101: kern_malloc: fold free and zfree together into one __always_inline func.
Wed, Jul 24, 4:19 PM
kib updated subscribers of D46099: Deprecate contigfree(9) in favour of free(9).
Wed, Jul 24, 3:44 PM
kib added inline comments to D46099: Deprecate contigfree(9) in favour of free(9).
Wed, Jul 24, 3:44 PM

Tue, Jul 23

kib accepted D46093: kern_malloc: remove '.' and '\n' from KASSERT/panic.
Tue, Jul 23, 6:33 PM
kib accepted D45812: malloc(9): extend contigmalloc(9) by a "slab cookie".
Tue, Jul 23, 6:31 PM
kib added inline comments to D45812: malloc(9): extend contigmalloc(9) by a "slab cookie".
Tue, Jul 23, 5:01 PM
kib added inline comments to D45812: malloc(9): extend contigmalloc(9) by a "slab cookie".
Tue, Jul 23, 1:17 PM
kib accepted D45812: malloc(9): extend contigmalloc(9) by a "slab cookie".
Tue, Jul 23, 12:03 PM
kib accepted D46063: vm: Retire vm_page_alloc_freelist{,_domain}().
Tue, Jul 23, 6:41 AM

Mon, Jul 22

kib accepted D37359: nullfs: Use an a_gen field to cast to vop_generic_args.
Mon, Jul 22, 10:54 PM
kib added a reviewer for D45989: rtld: add LD_NO_DL_ITERATE_PHDR_AFTER_FORK env var: emaste.
Mon, Jul 22, 9:08 AM
kib added a comment to D46057: vm: Retire kmem_arena.
In D46057#1050007, @alc wrote:

Out-of-tree code can make the same change, no need for a __FreeBSD_version bump I think. stable/11 is the last branch where kmem_arena is a distinct entity.

I checked drm-515-kmod, drm-61-kmod, and virtualbox-ose-kmod. They don't appear to have any direct references to kmem_arena.

Mon, Jul 22, 7:14 AM
kib accepted D46057: vm: Retire kmem_arena.
Mon, Jul 22, 4:24 AM
kib accepted D45997: vm: Add a KVA arena for M_NEVERFREED allocations.
Mon, Jul 22, 4:23 AM

Sun, Jul 21

kib committed rG9a7096ff547d: ipsec_offload: hide SA/SP offload lifecycle prints under verbose sysctl (authored by kib).
ipsec_offload: hide SA/SP offload lifecycle prints under verbose sysctl
Sun, Jul 21, 8:54 AM
kib committed rG6023bd1d52b6: netipsec: move declaration of the sysctl net.inet{,6}.ipsec nodes to header (authored by kib).
netipsec: move declaration of the sysctl net.inet{,6}.ipsec nodes to header
Sun, Jul 21, 8:54 AM
kib closed D46045: ipsec_offload: hide SA/SP offload lifecycle prints under verbose sysctl.
Sun, Jul 21, 8:54 AM
kib committed rGeb0fdc77533d: netinet/ipsec.h: remove unneeded "extern"s (authored by kib).
netinet/ipsec.h: remove unneeded "extern"s
Sun, Jul 21, 8:54 AM
kib committed rG35f498434322: sockstat(1): tolerate situation where file info cannot be fetched (authored by kib).
sockstat(1): tolerate situation where file info cannot be fetched
Sun, Jul 21, 8:52 AM
kib closed D46050: sockstat(1): tolerate situation where file info cannot be fetched.
Sun, Jul 21, 8:52 AM
kib committed rG240ddb304ff3: DMAR pagetables pages: handle ref_count special references (authored by kib).
DMAR pagetables pages: handle ref_count special references
Sun, Jul 21, 8:51 AM
kib committed rG049a256e9aa7: vm_page: add vm_page_clearref() helper (authored by kib).
vm_page: add vm_page_clearref() helper
Sun, Jul 21, 8:51 AM
kib committed rG010f09a7b16c: amd64 pmap_allocpte_nosleep(): stop testing tautological condition (authored by kib).
amd64 pmap_allocpte_nosleep(): stop testing tautological condition
Sun, Jul 21, 8:51 AM
kib committed rG8c405f08c099: amd64 pmap_allocpte_nosleep(): fix indent (authored by kib).
amd64 pmap_allocpte_nosleep(): fix indent
Sun, Jul 21, 8:51 AM

Sat, Jul 20

kib requested review of D46050: sockstat(1): tolerate situation where file info cannot be fetched.
Sat, Jul 20, 12:36 AM

Fri, Jul 19

kib added a comment to D46045: ipsec_offload: hide SA/SP offload lifecycle prints under verbose sysctl.
In D46045#1049665, @np wrote:

There are also some macros in key_debug.h (for keys only) that accept a bitmap of stuff to debug. It would have been nice if ipseclog() was also written this way and then we could control its run-time verbosity and also just have added a bit for ipsec-offload debug. But oh well. I'm okay with whatever you and kp agree on.

Fri, Jul 19, 7:45 PM
kib added a comment to D46045: ipsec_offload: hide SA/SP offload lifecycle prints under verbose sysctl.
In D46045#1049663, @np wrote:

Does ipsec offload need a debug knob of its own? Can't we use any of the existing stuff for debug (from netipsec/ipsec.h):

#define ipseclog(x) do { if (V_ipsec_debug) log x; } while (0)
/* for openbsd compatibility */
#ifdef IPSEC_DEBUG
#define IPSEC_DEBUG_DECLARE(x) x
#define DPRINTF(x) do { if (V_ipsec_debug) printf x; } while (0)
#else
#define IPSEC_DEBUG_DECLARE(x)
#define DPRINTF(x)
#endif

Fri, Jul 19, 7:34 PM
kib requested review of D46045: ipsec_offload: hide SA/SP offload lifecycle prints under verbose sysctl.
Fri, Jul 19, 7:19 PM
kib accepted D45998: pmap_growkernel: Use VM_ALLOC_NOFREE when allocating pagetable pages.
Fri, Jul 19, 5:03 AM

Wed, Jul 17

kib added a comment to D45987: tmpfs: Account for whiteouts during rename/rmdir.

This also matches the UFS semantic, which considers directory empty if it consists only of whiteouts.

Wed, Jul 17, 6:09 AM
kib accepted D45987: tmpfs: Account for whiteouts during rename/rmdir.
Wed, Jul 17, 6:06 AM
kib requested review of D45989: rtld: add LD_NO_DL_ITERATE_PHDR_AFTER_FORK env var.
Wed, Jul 17, 4:11 AM

Tue, Jul 16

kib added inline comments to D45981: sys: Stop requiring nested parentheses for KASSERT.
Tue, Jul 16, 5:04 AM

Mon, Jul 15

kib accepted D45976: Collection of fixes for _FORTIFY_SOURCE.
Mon, Jul 15, 8:18 AM
kib committed rG7773023b72de: DMAR pagetables pages: handle ref_count special references (authored by kib).
DMAR pagetables pages: handle ref_count special references
Mon, Jul 15, 7:15 AM
kib closed D45910: DMAR pagetable free: handle ref_count special references.
Mon, Jul 15, 7:15 AM
kib committed rG45cde0e43918: vm_page: add vm_page_clearref() helper (authored by kib).
vm_page: add vm_page_clearref() helper
Mon, Jul 15, 7:15 AM

Sun, Jul 14

kib added inline comments to D45370: add virtio single-machine testing framework.
Sun, Jul 14, 8:27 AM
kib committed rG10a6ae0ddffb: amd64 pmap_allocpte_nosleep(): stop testing tautological condition (authored by kib).
amd64 pmap_allocpte_nosleep(): stop testing tautological condition
Sun, Jul 14, 3:24 AM
kib committed rG616dd88a2e68: amd64 pmap_allocpte_nosleep(): fix indent (authored by kib).
amd64 pmap_allocpte_nosleep(): fix indent
Sun, Jul 14, 3:24 AM
kib closed D45966: amd64 pmap_allocpte_nosleep(): stop testing tautological condition.
Sun, Jul 14, 3:23 AM
kib updated the diff for D45910: DMAR pagetable free: handle ref_count special references.

Switch to vm_page_wire.

Sun, Jul 14, 1:11 AM
kib accepted D45766: arm64: support the ATTR_CONTIGUOUS L3C page size in pagesizes[].
Sun, Jul 14, 12:26 AM

Sat, Jul 13

kib requested review of D45966: amd64 pmap_allocpte_nosleep(): stop testing tautological condition.
Sat, Jul 13, 4:21 AM
kib accepted D45766: arm64: support the ATTR_CONTIGUOUS L3C page size in pagesizes[].
Sat, Jul 13, 4:00 AM

Fri, Jul 12

kib added inline comments to D45910: DMAR pagetable free: handle ref_count special references.
Fri, Jul 12, 10:35 PM
kib committed rGef2a572bf6bd: ipsec_offload: kernel infrastructure (authored by kib).
ipsec_offload: kernel infrastructure
Fri, Jul 12, 11:26 AM
kib committed rG7a296a86d131: IPSEC_OFFLOAD: add the option to GENERIC on amd64 and arm64 (authored by kib).
IPSEC_OFFLOAD: add the option to GENERIC on amd64 and arm64
Fri, Jul 12, 11:26 AM
kib committed rGe6e2c0a5ef5d: ipsec_offload: switch TF2_IPSEC_TSO on/off as appropriate on output (authored by kib).
ipsec_offload: switch TF2_IPSEC_TSO on/off as appropriate on output
Fri, Jul 12, 11:26 AM
kib committed rG240b7bfe56f2: ipsec_offload: offload inner checksums calculations for UDP/TCP/TSO (authored by kib).
ipsec_offload: offload inner checksums calculations for UDP/TCP/TSO
Fri, Jul 12, 11:26 AM
kib committed rGb6919741b747: ipsec_offload: handle TSO if supported (authored by kib).
ipsec_offload: handle TSO if supported
Fri, Jul 12, 11:26 AM
kib committed rG9d269938e300: ipsec_offload: ifconfig support (authored by kib).
ipsec_offload: ifconfig support
Fri, Jul 12, 11:26 AM
kib closed D44219: ipsec_accel: kernel infrastructure.
Fri, Jul 12, 11:26 AM
kib committed rG2131654bde1f: sys/net: Add IPSEC_OFFLOAD interface cap and methods structure (authored by kib).
sys/net: Add IPSEC_OFFLOAD interface cap and methods structure
Fri, Jul 12, 11:26 AM
kib committed rG83418c878b75: setkey(8): add -hwif extension to specify offload interface for SA and SPD (authored by kib).
setkey(8): add -hwif extension to specify offload interface for SA and SPD
Fri, Jul 12, 11:26 AM
kib committed rG9b93b2d8b039: setkey(8): add -esn extension option to enable ESN (authored by kib).
setkey(8): add -esn extension option to enable ESN
Fri, Jul 12, 11:26 AM
kib committed rG1b1cd327d905: setkey(8): print out SA sw/hw offload counters (authored by kib).
setkey(8): print out SA sw/hw offload counters
Fri, Jul 12, 11:26 AM
kib committed rG3d95e9e3fe24: libipsec: decode SADB_X_EXT_IF_HW_OFFL (authored by kib).
libipsec: decode SADB_X_EXT_IF_HW_OFFL
Fri, Jul 12, 11:26 AM
kib closed D44221: ipsec_accel: offload inner checksums calculations for UDP/TCP/TSO.
Fri, Jul 12, 11:26 AM
kib committed rGb256ff9303ba: sys/pfkeyv2.h: define extensions for ipsec inline accel control (authored by kib).
sys/pfkeyv2.h: define extensions for ipsec inline accel control
Fri, Jul 12, 11:26 AM
kib closed D44222: ipsec_accel: handle TSO if supported.
Fri, Jul 12, 11:26 AM