Re: [PATCH gnumach v2] Implement per task virtual memory limit

2024-12-30 Thread Sergey Bugaev
On Tue, Dec 31, 2024 at 1:30 AM Diego Nieto Cid wrote: > On Mon, Dec 30, 2024 at 07:08:55PM +0100, Samuel Thibault wrote: > > You also need to take into account the case where > > current->max_protection was NONE and new_prot is not NONE, you then have > > to decrease size_none. > Ah right, the &

Re: [hurd-amd64] ibus test failures

2024-12-30 Thread Diego Nieto Cid
On Tue, Dec 31, 2024 at 02:02:53AM +, Diego Nieto Cid wrote: > > Here are the results for `hurd-amd64`: > > $ cc -I/usr/include/glib-2.0 -I/usr/lib/x86_64-gnu/glib-2.0/include \ > -pthread cred_size.c -lgio-2.0 -lgobject-2.0 -lglib-2.0 \ > -o cred_size > > $ ./cred_s

Re: [hurd-amd64] ibus test failures

2024-12-30 Thread Diego Nieto Cid
On Sun, Dec 29, 2024 at 11:33:47PM +0100, Samuel Thibault wrote: > > See the error test, it's about G_CREDENTIALS_NATIVE_SIZE, see its > definition: > > #define G_CREDENTIALS_NATIVE_SIZE (sizeof (struct cmsgcred)) > > And the definition of struct cmsgcred in bits/socket.h > I wrote a little tes

Re: [PATCH Mach] kern: Add a mach host operation which returns elapsed time since bootup

2024-12-30 Thread Samuel Thibault
Zhaoming Luo, le mar. 31 déc. 2024 07:24:08 +0800, a ecrit: > On 12/29/24 5:21 PM, Samuel Thibault wrote: > > Zhaoming Luo, le dim. 29 déc. 2024 12:44:27 +0800, a ecrit: > > > On 12/29/24 9:28 AM, Samuel Thibault wrote: > > > > Hello, > > > > > > > > Zhaoming Luo, le mar. 24 déc. 2024 09:57:51 +08

Re: [PATCH Mach] kern: Add a mach host operation which returns elapsed time since bootup

2024-12-30 Thread Zhaoming Luo
On 12/29/24 5:21 PM, Samuel Thibault wrote: Zhaoming Luo, le dim. 29 déc. 2024 12:44:27 +0800, a ecrit: On 12/29/24 9:28 AM, Samuel Thibault wrote: Hello, Zhaoming Luo, le mar. 24 déc. 2024 09:57:51 +0800, a ecrit: Add host_get_uptime64() mach interface operation. It can be used to get the ti

[PATCH gnumach v3] Implement per task virtual memory limit

2024-12-30 Thread dnietoc
From: Diego Nieto Cid * include/mach/gnumach.defs: (vm_set_size_limit) new routine (vm_get_size_limit) likewise * kern/task.c: (task_create_kernel) if parent_task is not null copy virtual memory limit * tests/test-vm.c: (test_vm_limit) add test for the new routines * vm/vm_kern.c: (p

Re: [PATCH gnumach v2] Implement per task virtual memory limit

2024-12-30 Thread Diego Nieto Cid
Hi, On Mon, Dec 30, 2024 at 07:08:55PM +0100, Samuel Thibault wrote: > > Please also add printing size_null in vm_map_print. > Ok > dnie...@gmail.com, le mer. 25 déc. 2024 16:16:06 -0300, a ecrit: > > > @@ -1679,11 +1747,13 @@ kern_return_t vm_map_protect( > > vm_map_clip_end(map,

Re: [PATCH gnumach v2] Implement per task virtual memory limit

2024-12-30 Thread Samuel Thibault
Hello, Please also add printing size_null in vm_map_print. dnie...@gmail.com, le mer. 25 déc. 2024 16:16:06 -0300, a ecrit: > @@ -1160,6 +1226,8 @@ kern_return_t vm_map_enter( > > vm_map_entry_link(map, entry, new_entry); > map->size += size; > + if (max_protection == VM_PROT_NO

Re: [hurd-amd64] ibus test failures

2024-12-30 Thread Samuel Thibault
Hello, Sergey Bugaev, le lun. 30 déc. 2024 16:44:24 +0300, a ecrit: > This feels like an opportunity to remind everyone that the SCM_CREDS > implementation, which is shipped as a Debian downstream patch, doesn't > actually verify the credentials. I have posted a more detailed > description [0] bac

Re: [hurd-amd64] ibus test failures

2024-12-30 Thread Sergey Bugaev
Hello, On Mon, Dec 30, 2024 at 3:36 AM Diego Nieto Cid wrote: > > On Sun, Dec 29, 2024 at 11:33:47PM +0100, Samuel Thibault wrote: > > Hello, > > > > Diego Nieto Cid, le dim. 29 déc. 2024 22:14:40 +, a ecrit: > > > (ibus-daemon:17123): GLib-GIO-WARNING **: 20:49:29.230: Expected a > > >