Page MenuHomeFreeBSD

kib (Konstantin Belousov)
User

Projects

User Details

User Since
May 16 2014, 7:35 PM (558 w, 5 d)

Recent Activity

Tue, Jan 28

kib committed rG21502f9a926c: crtend: accurately check for the start of .ctors (authored by kib).
crtend: accurately check for the start of .ctors
Tue, Jan 28, 11:28 PM
kib closed D48700: Workaround for crtbegin.o or crtend.o not being included into the link.
Tue, Jan 28, 11:28 PM
kib committed rG6ee34bca48a9: crtbegin: accurately check for the end of .dtors (authored by kib).
crtbegin: accurately check for the end of .dtors
Tue, Jan 28, 11:28 PM
kib added a comment to D48700: Workaround for crtbegin.o or crtend.o not being included into the link.

How difficult would it be to write a test for this?

Tue, Jan 28, 11:05 AM

Mon, Jan 27

kib added inline comments to D48700: Workaround for crtbegin.o or crtend.o not being included into the link.
Mon, Jan 27, 10:04 PM
kib added inline comments to D48700: Workaround for crtbegin.o or crtend.o not being included into the link.
Mon, Jan 27, 9:06 PM
kib requested review of D48700: Workaround for crtbegin.o or crtend.o not being included into the link.
Mon, Jan 27, 8:42 PM
kib added a comment to D48454: Fix libthr initialization from constructors.

This should be MFCed into 14.

Mon, Jan 27, 4:42 AM

Fri, Jan 24

kib committed rG6700e2d963ff: csu: add the "Retain" flag to notes sections flag (authored by kib).
csu: add the "Retain" flag to notes sections flag
Fri, Jan 24, 1:37 PM

Thu, Jan 23

kib committed rGf10a06556f56: rtld-elf/{amd64,i386}/reloc.c: remove unneeded #ifdef dbg (authored by kib).
rtld-elf/{amd64,i386}/reloc.c: remove unneeded #ifdef dbg
Thu, Jan 23, 9:52 AM
kib committed rG57820508a012: rtld-elf/rtld.c: fix typo in comment (authored by kib).
rtld-elf/rtld.c: fix typo in comment
Thu, Jan 23, 9:52 AM
kib committed rG86e95bb26ad8: stat(2): add st_filerev (authored by kib).
stat(2): add st_filerev
Thu, Jan 23, 9:52 AM

Wed, Jan 22

kib added inline comments to D46397: amd64: Intel Processor Trace support.
Wed, Jan 22, 10:13 PM
kib added inline comments to D48523: linuxkpi: Introduce a properly typed jiffies.
Wed, Jan 22, 11:09 AM

Tue, Jan 21

kib committed rGeaede4e41376: git-blame-ignore-revs: list rtld-elf reformatting (authored by kib).
git-blame-ignore-revs: list rtld-elf reformatting
Tue, Jan 21, 1:58 AM
kib committed rG78b5dadb58e2: rtld-elf/i386/reloc.c: apply clang-format (authored by kib).
rtld-elf/i386/reloc.c: apply clang-format
Tue, Jan 21, 1:51 AM
kib committed rG3a85aa6a1d89: rtld-elf/amd64/reloc.c: apply clang-format (authored by kib).
rtld-elf/amd64/reloc.c: apply clang-format
Tue, Jan 21, 1:51 AM
kib committed rGe3035c52f253: rtld-elf/{amd64,i386}/reloc.c: remove unneeded #ifdef dbg (authored by kib).
rtld-elf/{amd64,i386}/reloc.c: remove unneeded #ifdef dbg
Tue, Jan 21, 1:51 AM
kib committed rG986c96b54b9e: rtld-elf/map_object.c: apply clang-format (authored by kib).
rtld-elf/map_object.c: apply clang-format
Tue, Jan 21, 1:51 AM
kib committed rG7e2f38311e62: rtld-elf/rtld.c: apply clang-format (authored by kib).
rtld-elf/rtld.c: apply clang-format
Tue, Jan 21, 1:51 AM
kib committed rGbf3fbf74d12c: rtld obj_remap_relro(): unindent the loop body (authored by kib).
rtld obj_remap_relro(): unindent the loop body
Tue, Jan 21, 1:51 AM
kib committed rGdd1d72961b8d: rtld-elf/rtld.c: fix typo in comment (authored by kib).
rtld-elf/rtld.c: fix typo in comment
Tue, Jan 21, 1:51 AM
kib closed D48509: rtld: apply clang-format.
Tue, Jan 21, 1:51 AM
kib committed rG2c0e00dc0147: kill.1: mention special PID 0 (authored by artembunichev <artembunichev@zohomail.com>).
kill.1: mention special PID 0
Tue, Jan 21, 12:28 AM
kib committed rGfe74df3f9db8: kill.1: mention special meaning of PGID as a PID (authored by artembunichev <artembunichev@zohomail.com>).
kill.1: mention special meaning of PGID as a PID
Tue, Jan 21, 12:28 AM
kib committed rG1a085ee97343: pthread_create(): style (authored by kib).
pthread_create(): style
Tue, Jan 21, 12:28 AM
kib committed rGe2268518dff0: libpthread_init(): ensure curthread == NULL until set explicitly (authored by kib).
libpthread_init(): ensure curthread == NULL until set explicitly
Tue, Jan 21, 12:28 AM
kib committed rG205043060940: libthr: switch thread and sleepq memory allocator to crt from libc malloc (authored by kib).
libthr: switch thread and sleepq memory allocator to crt from libc malloc
Tue, Jan 21, 12:27 AM
kib committed rGd6a896c3c83b: pthread_mutex_trylock(): init libthr if needed (authored by kib).
pthread_mutex_trylock(): init libthr if needed
Tue, Jan 21, 12:27 AM
kib committed rG0961e16b3668: libthr: use atomic_add_int() instead of atomic_fetchadd_int() (authored by kib).
libthr: use atomic_add_int() instead of atomic_fetchadd_int()
Tue, Jan 21, 12:27 AM

Mon, Jan 20

kib added inline comments to D48516: make_dev.9: Fix mda_cr typo + polish.
Mon, Jan 20, 2:46 AM
kib committed rGc968d55123fa: ipsec + ktls: cannot coexists (authored by kib).
ipsec + ktls: cannot coexists
Mon, Jan 20, 2:41 AM
kib committed rG6e9b6e5dbb84: mb_unmapped_to_ext(): return error code on error (authored by kib).
mb_unmapped_to_ext(): return error code on error
Mon, Jan 20, 2:41 AM
kib committed rG6149261d549b: ffs_reallocblks(): ensure that pref cg is valid (authored by kib).
ffs_reallocblks(): ensure that pref cg is valid
Mon, Jan 20, 2:41 AM
kib committed rG97eaa1218f77: ffs_blkpref_ufsX(): do not iterate over startcg twice (authored by kib).
ffs_blkpref_ufsX(): do not iterate over startcg twice
Mon, Jan 20, 2:41 AM

Sun, Jan 19

kib accepted D48516: make_dev.9: Fix mda_cr typo + polish.
Sun, Jan 19, 10:17 PM
kib committed rGd6c2d4fe975c: kill.1: mention special meaning of PGID as a PID (authored by artembunichev <artembunichev@zohomail.com>).
kill.1: mention special meaning of PGID as a PID
Sun, Jan 19, 1:33 PM
kib committed rGf5cf173de0dc: kill.1: mention special PID 0 (authored by artembunichev <artembunichev@zohomail.com>).
kill.1: mention special PID 0
Sun, Jan 19, 1:33 PM
kib added inline comments to D48511: sysctl: Respect max length when handle a variable string.
Sun, Jan 19, 3:38 AM
kib accepted D48494: if_vxlan(4): Stop invoking vxlan_stop event handler when the interface was not configured.
In D48494#1106769, @kib wrote:

Since eventhandlers are called outside the vxlan_sx protection, it is not even guaranteed that the stop event comes after the start, or that events are properly interleaved. In other words, drivers must be prepared for the situation like 'stop without start' or 'two stops after one start'.

Emm, I read the code carefully, both vxlan_start and vxlan_event handlers are called within protection of vxlan_sx. So drivers will get proper event order. Am I missing something important ?

Sun, Jan 19, 2:15 AM
kib added a comment to D48509: rtld: apply clang-format.
In D48509#1106934, @imp wrote:

Generally, I tend to like the changes. The extra indent forcing extra wrapping on things that are still somewhat simple suggests at least an experiment with 90 or 100 (or 110?) character lines for comparison might be in order.

Sun, Jan 19, 1:31 AM
kib committed rG15e2065a1ee5: amdsmn(4), amdtemp(4): add support for Zen 5 (authored by Simon Wells <swel024@gmail.com>).
amdsmn(4), amdtemp(4): add support for Zen 5
Sun, Jan 19, 12:26 AM
kib committed rG6823172ca2c5: amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Cezanne" cpus (authored by Simon Wells <swel024@gmail.com>).
amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Cezanne" cpus
Sun, Jan 19, 12:26 AM

Sat, Jan 18

kib updated the diff for D48509: rtld: apply clang-format.

obj_remap_relro() re-formatting

Sat, Jan 18, 11:28 PM
kib added a comment to D48509: rtld: apply clang-format.

Overall I think this is a fine idea. I am curious about the manual fixups you applied (or put another way, how significant a subsequent clang-format would be). I tried running it again over rtld.c and see a bunch of things like

        for (ph = obj->phdr;
-           (const char *)ph < (const char *)obj->phdr + obj->phsize; ph++) {
+            (const char *)ph < (const char *)obj->phdr + obj->phsize; ph++) {

i.e., mine added an extra space to line up under the first char inside for's (). This feels like a clang-format bug to me.

Do you see such cases in the posted patch? I was not able to find it. I changed the ugly-formatted obj_remap_relro() control, and then also de-intended the body (in separate commit).
Note that I used llvm19 clang-format.

Sat, Jan 18, 11:26 PM
kib added a comment to D48509: rtld: apply clang-format.

I am happy with any feedback.
The git-blame-ignore-revs file cannot be updated before commit.

Sat, Jan 18, 3:12 AM
kib requested review of D48509: rtld: apply clang-format.
Sat, Jan 18, 3:11 AM

Fri, Jan 17

kib added inline comments to D48466: amd64/fpu: Track supervisor state XSAVE components.
Fri, Jan 17, 11:38 PM
kib accepted D48466: amd64/fpu: Track supervisor state XSAVE components.
Fri, Jan 17, 11:35 PM
kib added a comment to D48494: if_vxlan(4): Stop invoking vxlan_stop event handler when the interface was not configured.

Since eventhandlers are called outside the vxlan_sx protection, it is not even guaranteed that the stop event comes after the start, or that events are properly interleaved. In other words, drivers must be prepared for the situation like 'stop without start' or 'two stops after one start'.

Fri, Jan 17, 10:20 PM
kib accepted D48497: atomics: Constify loads: More constification.

I think that the commit must be split into much more fine-grained changes.

Fri, Jan 17, 10:11 PM

Thu, Jan 16

kib committed rGb4663a8d1117: stat(2): add st_filerev (authored by kib).
stat(2): add st_filerev
Thu, Jan 16, 6:55 PM
kib closed D48452: stat(2): add st_filerev.
Thu, Jan 16, 6:54 PM
kib accepted D48472: Fix backward compatibility with UFS1 filesystems created before June 2002.
Thu, Jan 16, 12:16 AM
kib updated the diff for D48452: stat(2): add st_filerev.

Set va_filerev to VNOVAL in vattr_null().
I do not think that other initializations can be removed.

Thu, Jan 16, 12:04 AM

Tue, Jan 14

kib committed rG02703de8bcae: pthread_create(): style (authored by kib).
pthread_create(): style
Tue, Jan 14, 11:37 PM
kib accepted D48451: add UMA_ZONE_NOTRIM & use it for the ktls_buffer zone.
Tue, Jan 14, 11:21 PM
kib committed rG676be27133fa: libpthread_init(): ensure curthread == NULL until set explicitly (authored by kib).
libpthread_init(): ensure curthread == NULL until set explicitly
Tue, Jan 14, 11:14 PM
kib updated the diff for D48452: stat(2): add st_filerev.

Zero st_filerev in vop_stat_helper_pre().
Zero va_filerev before calling VOP_GETATTR() in vfs_stdstat()

Tue, Jan 14, 7:07 PM
kib added inline comments to D48452: stat(2): add st_filerev.
Tue, Jan 14, 7:03 PM
kib committed rG9a2ae72421cd: libthr: switch thread and sleepq memory allocator to crt from libc malloc (authored by kib).
libthr: switch thread and sleepq memory allocator to crt from libc malloc
Tue, Jan 14, 5:55 PM
kib committed rG9718f18471f7: pthread_mutex_trylock(): init libthr if needed (authored by kib).
pthread_mutex_trylock(): init libthr if needed
Tue, Jan 14, 5:55 PM
kib committed rG4804cb433dbe: libthr: use atomic_add_int() instead of atomic_fetchadd_int() (authored by kib).
libthr: use atomic_add_int() instead of atomic_fetchadd_int()
Tue, Jan 14, 5:55 PM
kib closed D48454: Fix libthr initialization from constructors.
Tue, Jan 14, 5:55 PM
kib added inline comments to D48452: stat(2): add st_filerev.
Tue, Jan 14, 5:21 PM
kib accepted D44910: sys: Add cpu_update_pcb hook.
Tue, Jan 14, 5:15 PM
kib added a comment to D48454: Fix libthr initialization from constructors.

Switching to __thr_calloc() in _thr_alloc() basically means that the rtld allocator will always be used to allocate thread structures. Could that become a problem (perf, memory fragmentation, etc.)?

So far it was not a problem for mutexes. I am not even sure how to measure what you are asking, because threads are cached.

Tue, Jan 14, 5:14 PM
kib updated the diff for D48452: stat(2): add st_filerev.

Zero st_filerev in tmpfs_stat()

Tue, Jan 14, 5:11 PM
kib added inline comments to D48452: stat(2): add st_filerev.
Tue, Jan 14, 5:11 PM
kib requested review of D48454: Fix libthr initialization from constructors.
Tue, Jan 14, 9:19 AM
kib committed rGdf3796cc68fc: pci_find_cap_method(): limit number of iterations for finding a capability (authored by kib).
pci_find_cap_method(): limit number of iterations for finding a capability
Tue, Jan 14, 8:57 AM
kib committed rG1b2bf32658e5: path_test: adjust test for open(O_PATH | O_CREAT) (authored by kib).
path_test: adjust test for open(O_PATH | O_CREAT)
Tue, Jan 14, 8:57 AM
kib committed rGaa8067cbe7c6: open(2): allow O_PATH | O_CREAT (authored by kib).
open(2): allow O_PATH | O_CREAT
Tue, Jan 14, 8:57 AM

Mon, Jan 13

kib accepted D48436: Add VFCF_FILEREVINC to indicate a file system increments va_filerev by one.
Mon, Jan 13, 11:32 PM
kib accepted D48450: Centralize and simpify implemention of some VM macros.
Mon, Jan 13, 10:57 PM
kib requested review of D48452: stat(2): add st_filerev.
Mon, Jan 13, 10:41 PM
kib accepted D48448: audit: Fix short-circuiting in syscallenter().
Mon, Jan 13, 9:00 PM
kib added inline comments to D48448: audit: Fix short-circuiting in syscallenter().
Mon, Jan 13, 7:50 PM
kib committed rG0ff2d00d2aa3: ipsec: allow it to work with unmapped mbufs (authored by kib).
ipsec: allow it to work with unmapped mbufs
Mon, Jan 13, 7:30 PM
kib committed rGb0e020764aae: ipsec + ktls: cannot coexists (authored by kib).
ipsec + ktls: cannot coexists
Mon, Jan 13, 7:30 PM
kib committed rGcf322978d73a: mb_unmapped_to_ext(): return error code on error (authored by kib).
mb_unmapped_to_ext(): return error code on error
Mon, Jan 13, 7:30 PM
kib closed D48265: ipsec: improve integration with unmapped mbufs (on Tx).
Mon, Jan 13, 7:30 PM
kib closed D48378: ffs_reallocblks(): ensure that pref cg is valid.
Mon, Jan 13, 7:24 PM
kib committed rGdc37121d3210: ffs_reallocblks(): ensure that pref cg is valid (authored by kib).
ffs_reallocblks(): ensure that pref cg is valid
Mon, Jan 13, 7:24 PM
kib committed rGa57a2c01aacc: ffs_blkpref_ufsX(): do not iterate over startcg twice (authored by kib).
ffs_blkpref_ufsX(): do not iterate over startcg twice
Mon, Jan 13, 7:24 PM
kib accepted D48436: Add VFCF_FILEREVINC to indicate a file system increments va_filerev by one.
Mon, Jan 13, 12:18 AM

Sun, Jan 12

kib added a comment to D48436: Add VFCF_FILEREVINC to indicate a file system increments va_filerev by one.

I see that msdosfs did not update de_modrev, If I fix msdosfs and tmpfs to update vs_filerev, do we still need the flag? Or is it better to keep tmpfs/msdosfs as is and go ahead with the flag?

Sun, Jan 12, 11:32 PM
kib added a comment to D48436: Add VFCF_FILEREVINC to indicate a file system increments va_filerev by one.

And where is the use of the new flag?
Also, what writable and exportable filesystems do not increment va_filerev on changes? I looked and only seems to find smbfs and tmpfs. It might be simpler to fix tmpfs than adding a flag.

Sun, Jan 12, 10:29 PM
kib committed rGa9a71513ccfc: amdsmn(4), amdtemp(4): add support for Zen 5 (authored by Simon Wells <swel024@gmail.com>).
amdsmn(4), amdtemp(4): add support for Zen 5
Sun, Jan 12, 12:15 PM
kib committed rG7aa6eeb220d8: amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Cezanne" cpus (authored by Simon Wells <swel024@gmail.com>).
amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Cezanne" cpus
Sun, Jan 12, 12:15 PM

Sat, Jan 11

kib accepted D48430: clock: Use .balign to align ticksl.
Sat, Jan 11, 5:35 PM
kib added inline comments to D48420: clock: Simplify subr_ticks and rename.
Sat, Jan 11, 5:16 AM
kib added a comment to D48337: vm_pageout: Scan inactive dirty pages less aggressively.

As I understand, the patch causes the inactive scan to stop even if there is still page_shortage (>0), hoping that laundry would keep up and do the necessary cleaning. Suppose that we have the mix of the anon and file dirty pages, and, for instance, no swap (or files are backed by slow device). Then it is possible that for the long time, despite queuing the pages for laundry, they cannot be cleaned, so the page_shortage is not going to go away.
Wouldn't it be needed for such patch to ensure that either launder thread make progress, or inactive scan continues? I understand that scan would be kicked again, but I mean that laundry should kick it as well if it cannot get rid of page_shortage.

Sat, Jan 11, 2:39 AM

Fri, Jan 10

kib accepted D48420: clock: Simplify subr_ticks and rename.
Fri, Jan 10, 6:17 PM
kib added reviewers for D48378: ffs_reallocblks(): ensure that pref cg is valid: mckusick, chs.
Fri, Jan 10, 4:10 PM
kib added inline comments to D44910: sys: Add cpu_update_pcb hook.
Fri, Jan 10, 12:57 AM

Thu, Jan 9

kib added a comment to D48373: bus_generic_print_child.9: Document bus_print_domain.
In D48373#1104032, @jhb wrote:

@kib btw while documenting this, I do wonder if we shouldn't just merge bus_print_child_domain into bus_print_child_footer?

Thu, Jan 9, 10:19 PM
kib accepted D48383: clock: Add a long ticks variable.
Thu, Jan 9, 5:35 PM
kib added inline comments to D48383: clock: Add a long ticks variable.
Thu, Jan 9, 4:21 AM
kib added inline comments to D48383: clock: Add a long ticks variable.
Thu, Jan 9, 1:45 AM