[Bug 278949] sysv IPC sysctl's behave differently for 32-bit on 64bits hosts

2024-05-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278949

--- Comment #4 from commit-h...@freebsd.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=07b7dec1fe4296cdf470013087180a80a0d4a2cf

commit 07b7dec1fe4296cdf470013087180a80a0d4a2cf
Author: Konstantin Belousov 
AuthorDate: 2024-05-13 17:17:47 +
Commit: Konstantin Belousov 
CommitDate: 2024-05-22 23:47:23 +

SysV IPC: provide in-kernel helpers to obtain ipcs(8)-like information

PR: 278949

(cherry picked from commit 87a156527563d0728bff355093e26943da3d7fad)

 sys/kern/sysv_msg.c | 34 ++
 sys/kern/sysv_sem.c | 33 +
 sys/kern/sysv_shm.c | 36 
 sys/sys/msg.h   |  3 +++
 sys/sys/sem.h   |  3 +++
 sys/sys/shm.h   |  2 ++
 6 files changed, 111 insertions(+)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 278949] sysv IPC sysctl's behave differently for 32-bit on 64bits hosts

2024-05-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278949

--- Comment #3 from commit-h...@freebsd.org ---
A commit in branch stable/14 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=b76674a73988eb708bdb53e11c5c54e8488b33a1

commit b76674a73988eb708bdb53e11c5c54e8488b33a1
Author: Konstantin Belousov 
AuthorDate: 2024-05-13 17:17:47 +
Commit: Konstantin Belousov 
CommitDate: 2024-05-23 00:26:44 +

SysV IPC: provide in-kernel helpers to obtain ipcs(8)-like information

PR: 278949

(cherry picked from commit 87a156527563d0728bff355093e26943da3d7fad)

 sys/kern/sysv_msg.c | 34 ++
 sys/kern/sysv_sem.c | 33 +
 sys/kern/sysv_shm.c | 36 
 sys/sys/msg.h   |  3 +++
 sys/sys/sem.h   |  3 +++
 sys/sys/shm.h   |  2 ++
 6 files changed, 111 insertions(+)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 278949] sysv IPC sysctl's behave differently for 32-bit on 64bits hosts

2024-05-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278949

--- Comment #2 from commit-h...@freebsd.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=87a156527563d0728bff355093e26943da3d7fad

commit 87a156527563d0728bff355093e26943da3d7fad
Author: Konstantin Belousov 
AuthorDate: 2024-05-13 17:17:47 +
Commit: Konstantin Belousov 
CommitDate: 2024-05-16 17:53:31 +

SysV IPC: provide in-kernel helpers to obtain ipcs(8)-like information

PR: 278949
Reviewed by:markj
Tested by:  Ricardo Branco 
Sponsored by:   The FreeBSD Foundation
MFC after:  1 week
Differential revision:  https://reviews.freebsd.org/D45175

 sys/kern/sysv_msg.c | 34 ++
 sys/kern/sysv_sem.c | 33 +
 sys/kern/sysv_shm.c | 36 
 sys/sys/msg.h   |  3 +++
 sys/sys/sem.h   |  3 +++
 sys/sys/shm.h   |  2 ++
 6 files changed, 111 insertions(+)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 278949] sysv IPC sysctl's behave differently for 32-bit on 64bits hosts

2024-05-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278949

Konstantin Belousov  changed:

   What|Removed |Added

 CC||k...@freebsd.org

--- Comment #1 from Konstantin Belousov  ---
https://reviews.freebsd.org/D45175

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 278949] sysv IPC sysctl's behave differently for 32-bit on 64bits hosts

2024-05-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278949

Bug ID: 278949
   Summary: sysv IPC sysctl's behave differently for 32-bit on
64bits hosts
   Product: Base System
   Version: 15.0-CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: kern
  Assignee: b...@freebsd.org
  Reporter: rbra...@suse.com

To reproduce:

I created only one object of each type with the ipcmk command shipped by
util-linux like this:
$ ipcmk -M 1k -S 1 -Q

Then ran ipcs in Ubuntu Jammy 64-bits & 32-bits created with `debootstrap
[--arch i386] /compat/ubuntu[32]`

$ sudo chroot /compat/ubuntu ipcs -a

-- Message Queues 
keymsqid  owner  perms  used-bytes   messages
0x0fb549ed 65536  1000   64400   

-- Shared Memory Segments 
keyshmid  owner  perms  bytes  nattch status  
0x25caab18 65536  1000   6444096   0   

-- Semaphore Arrays 
keysemid  owner  perms  nsems 
0xbf526696 65536  1000   6441 

$ sudo chroot /compat/ubuntu32 ipcs -a

-- Message Queues 
keymsqid  owner  perms  used-bytes   messages
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038
0xdeadc0de 2147483647 3735929054 33616045693110842147038
16045693110842147038

-- Shared Memory Segments 
keyshmid  owner  perms  bytes  nattch status  
0x1000 65536  1000   64471807  1715595399  

-- Semaphore Arrays 
keysemid  owner  perms  nsems 
0x 65536  1000   6440

-- 
You are receiving this mail because:
You are the assignee for the bug.