Page MenuHomeFreeBSD

kib (Konstantin Belousov)
User

Projects (3)

User Details

User Since
May 16 2014, 7:35 PM (652 w, 1 d)

Recent Activity

Today

kib added inline comments to D61331: powerpc64: give processes a 48-bit address space by default.
Sun, Nov 15, 5:19 AM · PowerPC
kib accepted D61418: msdosfs: bound slot offset in mbnambuf_write().
Sun, Nov 15, 5:13 AM

Yesterday

kib accepted D61549: arm64 pmap: a non-transparent large page mapping may require a TLB invalidation.
Sat, Nov 14, 10:43 PM
kib added inline comments to D61549: arm64 pmap: a non-transparent large page mapping may require a TLB invalidation.
Sat, Nov 14, 10:36 PM
kib added inline comments to D61518: mlx5en: only pass TCP packets to sw LRO.
Sat, Nov 14, 10:22 PM
kib added inline comments to D61549: arm64 pmap: a non-transparent large page mapping may require a TLB invalidation.
Sat, Nov 14, 10:20 PM
kib accepted D61515: netipsec: Clear the crypto error before dispatching a request again.
Sat, Nov 14, 9:27 PM
kib added a reviewer for D61515: netipsec: Clear the crypto error before dispatching a request again: markj.
Sat, Nov 14, 9:27 PM
kib added inline comments to D61549: arm64 pmap: a non-transparent large page mapping may require a TLB invalidation.
Sat, Nov 14, 8:50 PM
kib accepted D61090: top: implement pid highlighting.
Sat, Nov 14, 7:11 PM
kib added a comment to D61521: x86: Do not take a CPUID leaf 1Fh module for the package.

In fact, wouldn't it be better to explicitly check the reported type to determine if the current shift is pkg_id_shift? From this PoV, the old code is correct for the leaf 0xb. And the code for leaf 0x1f would check that type is DieGroup and then explicitly assigns to pkg_id_shift.
Or at least the type can be cross-checked to ensure that microcode reports sensible data (I will not be surprised if some revisions appear to be buggy).

Sat, Nov 14, 5:31 AM
kib accepted D61521: x86: Do not take a CPUID leaf 1Fh module for the package.
Sat, Nov 14, 5:23 AM
kib accepted D61524: hwpmc: call the thread-create hook for Linux and kernel threads.
Sat, Nov 14, 12:12 AM
kib accepted D61518: mlx5en: only pass TCP packets to sw LRO.
Sat, Nov 14, 12:05 AM

Fri, Nov 13

kib accepted D61508: tests: Improve vn_io_fault1 test.
Fri, Nov 13, 7:05 PM
kib added inline comments to D61496: vfs: fail VOP_DEALLOCATE passes that make no progress.
Fri, Nov 13, 6:15 PM
kib added inline comments to D61497: vfs: fail VOP_ALLOCATE passes that make no progress.
Fri, Nov 13, 6:14 PM
kib accepted D61514: kernel: Add -mindirect-branch-cs-prefix for WITH_KERNEL_RETPOLINE.
Fri, Nov 13, 5:00 PM
kib accepted D61510: procctl: Zero the output structure for the compat32 syscall.
Fri, Nov 13, 4:52 PM
kib accepted D61465: swapoff: release vnode held since swapon.
Fri, Nov 13, 4:46 PM
kib accepted D61196: netipsec: Set the outer IPv6 flow label from the SA.
Fri, Nov 13, 1:36 AM
kib accepted D61475: tests: Add test for vn_io_fault1 bug.
Fri, Nov 13, 12:41 AM
kib added inline comments to D61465: swapoff: release vnode held since swapon.
Fri, Nov 13, 12:30 AM
kib accepted D61464: swapoff: don't leak vnode pointer to device.
Fri, Nov 13, 12:30 AM
kib accepted D61491: tmpfs: fix append-only file handling for writes and hole-punching.
Fri, Nov 13, 12:00 AM

Thu, Nov 12

kib added inline comments to D61491: tmpfs: fix append-only file handling for writes and hole-punching.
Thu, Nov 12, 11:03 PM
kib added inline comments to D61491: tmpfs: fix append-only file handling for writes and hole-punching.
Thu, Nov 12, 10:52 PM
kib accepted D61490: tmpfs: fix a hang reachable through hole-punching.
Thu, Nov 12, 10:45 PM
kib added a comment to D61463: tmpfs: drop the covered vnode lock around vflush.

No this is wrong. The LoR reported is really a limitation of the witness and not the real exploitable LoR. It happens with any type of filesystem.

Thu, Nov 12, 10:41 PM
kib added inline comments to D61452: Pass the -b flag from the wrapper to the underlying filesystem checker.
Thu, Nov 12, 10:35 PM
kib added a comment to D61475: tests: Add test for vn_io_fault1 bug.

The test should be only enabled on 64bit userspace. I suspect even amd64 i386 compat would not allow allocating contig 2G due to AS fragmentation. armv7 should definitely fail to.

Thu, Nov 12, 9:23 PM
kib added inline comments to D61452: Pass the -b flag from the wrapper to the underlying filesystem checker.
Thu, Nov 12, 6:01 PM
kib added inline comments to D61331: powerpc64: give processes a 48-bit address space by default.
Thu, Nov 12, 3:44 PM · PowerPC
kib added a comment to D60035: chaltroot(2).
In D60035#1402282, @kib wrote:

Rebase on top of D60693

Thu, Nov 12, 3:15 PM

Wed, Nov 11

kib added inline comments to D61090: top: implement pid highlighting.
Wed, Nov 11, 8:31 PM
kib added inline comments to D61430: mlx5en: fix RX HW timestamp overflow with 1GHz clock.
Wed, Nov 11, 8:11 PM
kib accepted D61384: netipsec: Do not reference the default policy for packets without a PCB.
In D61384#1408168, @rcm wrote:
In D61384#1408071, @kib wrote:

Could this be done for NONE default policy as well?

It already is: without a PCB the default policy is never referenced, whether it is NONE or DISCARD. The helper name hid that, so the updated diff drops the helper. With a PCB the reference stays for both, because the PCB caches the policy; I would do that case as a follow-up.

Wed, Nov 11, 5:06 PM
kib added a comment to D59883: linuxkpi: lkpi_vmf_insert_special_pte_locked().

There should be two 'files' created by the detected hang:

	debugfs_create_file("i915_error_state", 0644, minor->debugfs_root, i915,
			    &i915_error_state_fops);
	debugfs_create_file("i915_gpu_info", 0644, minor->debugfs_root, i915,
			    &i915_gpu_info_fops);

Is debugfs converted to sysctls on FreeBSD? Anyway, these are the things to look at, they were the useful source of data when I debugged i915 in drm2 times.

Wed, Nov 11, 5:03 PM
kib added a comment to D59883: linuxkpi: lkpi_vmf_insert_special_pte_locked().

Yes I have patched drm-kmod: https://github.com/emaste/drm-kmod/commit/b686b798555c4faf4d20673f167b6559ef841c6e
This is in my WIP tree which has many other changes; I can try to reproduce on just main + these patches later on.

Wed, Nov 11, 4:32 PM
kib added a comment to D59883: linuxkpi: lkpi_vmf_insert_special_pte_locked().

Hmm, I think now that if the problem is _GPU_ hanging then this patch cannot have any influence on it GPU does not share page tables with CPU, and the patch only modifies how the aliased mappings are established. There is something else going on.

Wed, Nov 11, 4:24 PM
kib added a comment to D59883: linuxkpi: lkpi_vmf_insert_special_pte_locked().
In D59883#1408204, @kib wrote:

I am currently running this patch on my main laptop

You need to use swap to really test the patch, as in cause the machine to swap.

Indeed. I still observe GPU hangs with this patch when swap gets used.

Wed, Nov 11, 4:21 PM
kib added a comment to D59883: linuxkpi: lkpi_vmf_insert_special_pte_locked().

I am currently running this patch on my main laptop

Wed, Nov 11, 4:13 PM
kib added a comment to D61384: netipsec: Do not reference the default policy for packets without a PCB.

Could this be done for NONE default policy as well?

Wed, Nov 11, 2:39 PM
kib accepted D61160: top: allow filtering by command name.
Wed, Nov 11, 1:59 PM
kib added a comment to D61417: cd9660: Fix dereferencing invalid RR outlen ptr.

Sorry, I do not follow. This was already committed as 1a4c2eedad5bd62c4ec3cdda276bf4579ecab6c6, no?

Wed, Nov 11, 1:14 PM
kib added a comment to D58851: vm_object_take_pages_for_io(9).

Now I'm wondering about userland/O_DIRECT?

Would it be possible to make these helpers wire
down pages for a userspace buffer so that the
RDMA RPC can transfer them directly?
(This I can use in the client, if it isn't too hard to do.)

Wed, Nov 11, 12:35 PM
kib added a reviewer for D61430: mlx5en: fix RX HW timestamp overflow with 1GHz clock: gallatin.
Wed, Nov 11, 10:10 AM
kib added a reviewer for D61418: msdosfs: bound slot offset in mbnambuf_write(): se.
Wed, Nov 11, 5:47 AM
kib accepted D61399: netipsec: Release the sahtree lock on the AH and IPComp EAGAIN paths.
Wed, Nov 11, 1:48 AM
kib committed rG2d5a6bc2a4c5: mlx5: add per-flow-group hash table for FTE lookup (authored by slavash).
Wed, Nov 11, 1:45 AM
kib accepted D61419: imgact_aout: Widen the overflow checks in exec_aout_imgact().

a.out is only supported on amd64. It is i386 as well, but i386 is going out.

Wed, Nov 11, 1:44 AM
kib committed rGb157e1ca547d: libc/gen/err.3: reword to refer to exterror.9.
Wed, Nov 11, 1:08 AM
kib committed rG40d0ff39eb56: cap_enter.2: document new behavior, in particular EBUSY.
Wed, Nov 11, 1:08 AM
kib committed rG6a3815352cb4: cap_enter(2): stricter checks.
Wed, Nov 11, 1:08 AM
kib committed rGfcfe407d2aaa: chroot.2: document EPERM for shared pwd.
Wed, Nov 11, 1:08 AM
kib committed rG952fd61504cc: kern: do not allow unprivileged chroot when pwd is shared.
Wed, Nov 11, 1:07 AM
kib committed rG45f988b6abfd: pwddesc: add sharecount.
Wed, Nov 11, 1:07 AM
kib committed rGa79aca4b320b: kern/vfs_syscalls.c: extract privilege check from kern_chroot().
Wed, Nov 11, 1:07 AM
kib committed rGc6ff0ba9f514: libthr: test pthread_query_np(3) and pthread_query_all_np(3).
Wed, Nov 11, 1:07 AM
kib committed rGf10f1e24fc9d: man3: document pthread_query_np(3) and pthread_query_all_np(3).
Wed, Nov 11, 1:07 AM
kib committed rG1da7bc749579: libthr: pthread_query_np(3) and pthread_query_all_np(3).
Wed, Nov 11, 1:07 AM
kib committed rGa64b48d688a6: libthr: fix the race between pthread_getname_np() and thread exit.
Wed, Nov 11, 1:07 AM
kib committed rGdfe1bc3672cd: libc: provide the declaration for __libsys_errno in libc_private.h.
Wed, Nov 11, 1:07 AM
kib committed rGc1dfe1821292: libthr/thr_mutex.c: make mutex asserts more useful.
Wed, Nov 11, 1:07 AM
kib accepted D61387: link_elf: bounds-check the dynamic section's tables.
Wed, Nov 11, 12:49 AM
kib accepted D61389: link_elf: validate the section headers in link_elf_load_file().
Wed, Nov 11, 12:18 AM
kib accepted D61388: link_elf: validate symbol name offsets.
Wed, Nov 11, 12:18 AM
kib added inline comments to D61387: link_elf: bounds-check the dynamic section's tables.
Wed, Nov 11, 12:17 AM

Tue, Nov 10

kib accepted D61397: sysvmsg: Fix sequence number wraparound races.
Tue, Nov 10, 11:49 PM
kib accepted D61414: pmap: Fix accounting of wired mappings of large pages.
Tue, Nov 10, 11:43 PM
kib added inline comments to D61160: top: allow filtering by command name.
Tue, Nov 10, 11:38 PM
kib added inline comments to D61331: powerpc64: give processes a 48-bit address space by default.
Tue, Nov 10, 11:32 PM · PowerPC
kib committed rG7ac5569c5d9e: vn_open_cred(9): fix ni_startdir leak.
Tue, Nov 10, 7:55 PM
kib closed D61366: Fix several ni_startdir leaks.
Tue, Nov 10, 7:55 PM
kib committed rG5feb271df85f: namei(9): fix two ni_startdir leaks.
Tue, Nov 10, 7:55 PM
kib closed D61381: libthr mutex_self_lock(): handle signals and clock steps.
Tue, Nov 10, 7:54 PM
kib committed rG1b4779eef93c: libthr mutex_self_lock(): handle signals and clock steps.
Tue, Nov 10, 7:54 PM
kib accepted D61396: sysvsem: Plug another place where we leak __sem_base to userspace.
Tue, Nov 10, 7:45 PM
kib added inline comments to D61331: powerpc64: give processes a 48-bit address space by default.
Tue, Nov 10, 6:16 AM · PowerPC
kib requested review of D61381: libthr mutex_self_lock(): handle signals and clock steps.
Tue, Nov 10, 3:27 AM
kib accepted D61352: libkvm: Remove a fallback for pre-5.0 i386 kernels.
Tue, Nov 10, 2:06 AM
kib accepted D61351: libkvm: Drop static assertions for the i386 backend.
Tue, Nov 10, 2:04 AM
kib added inline comments to D61350: kdump: Use types and constants from amd64 linux32 for Linux on i386.
Tue, Nov 10, 2:04 AM
kib accepted D61349: libprocstat: Add static assertions for kinfo structure sizes.

I like this, but I have a small request. I am curious if you agree with it.

Tue, Nov 10, 1:28 AM
kib accepted D61348: sys: Enable kinfo structure size assertions for all architectures.
Tue, Nov 10, 1:25 AM
kib accepted D61297: kobj: Make the containers of pointers to base classes constant.
Tue, Nov 10, 1:22 AM
kib accepted D61359: kqueue: Fix a race when detaching a timer knote.
Tue, Nov 10, 1:19 AM
kib requested review of D61366: Fix several ni_startdir leaks.
Tue, Nov 10, 1:07 AM
kib committed rG7689242d6bdf: libthr: add tests for pthread_mutex_clocklock(3).
Tue, Nov 10, 12:23 AM
kib committed rG083b44ddc07c: libthr: add tests for pthread_rwlock_clock{rd,wr}lock(3).
Tue, Nov 10, 12:23 AM
kib committed rGbe90f23d4a6c: libthr: libpthread/t_mutex.c tests should expect EDEADLK.
Tue, Nov 10, 12:23 AM
kib committed rGb3a205cd689d: pthread_cond_timedwait.3: split STANDARDS and HISTORY.
Tue, Nov 10, 12:23 AM
kib committed rG522407f54078: pthread_rwlock_clock{rd,wr}lock(3): document.
Tue, Nov 10, 12:23 AM
kib committed rG1c08e2b915bf: pthread_mutex_clocklock.3: document.
Tue, Nov 10, 12:22 AM
kib committed rGa9b82d6ba374: pthread_*_timed*lock.3: switch to .Fo/Fc.
Tue, Nov 10, 12:22 AM
kib committed rG29495576ed39: pthread_cond_timedwait.3: list pthread_cond_clockwait as .Nm.
Tue, Nov 10, 12:22 AM
kib committed rG5577567bd0d0: libthr: add pthread_rwlock_clock{rd,wr}lock(3).
Tue, Nov 10, 12:22 AM
kib committed rGbf2939ea6087: pthread_mutex_timedlock(3): return EDEADLK on detected recursion attempt.
Tue, Nov 10, 12:22 AM
kib committed rGb7c2db4c772b: libthr: add pthread_mutex_clocklock(3).
Tue, Nov 10, 12:22 AM
kib committed rGe81badcfc010: libthr cond_wait_user(): do not loop forever on clock error.
Tue, Nov 10, 12:22 AM