CVS commit: src/sys/compat/linux/common

2024-10-03 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Thu Oct 3 12:56:50 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_sched.c Log Message: Fix fallout from DPRINTF conversion. Kernels ALL/i386 and ALL/amd64 compile again. To generate a diff of this commit: cvs rdi

CVS commit: src/sys/compat/linux/common

2024-10-03 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Thu Oct 3 12:56:50 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_sched.c Log Message: Fix fallout from DPRINTF conversion. Kernels ALL/i386 and ALL/amd64 compile again. To generate a diff of this commit: cvs rdi

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:05:17 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: sys/compat/linux/common/linux_file.c: Fix blank lines and comments. No functional change intended. To generate a diff of thi

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:46:51 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: linux_sys_copy_file_range: Nix unused variable new_size. To generate a diff of this commit: cvs rdiff -u -r1.132 -r1.133 src/

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:46:51 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: linux_sys_copy_file_range: Nix unused variable new_size. To generate a diff of this commit: cvs rdiff -u -r1.132 -r1.133 src/

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:05:17 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: sys/compat/linux/common/linux_file.c: Fix blank lines and comments. No functional change intended. To generate a diff of thi

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:18:46 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: linux_sys_copy_file_range: Avoid more UB arithmetic overflow. Need to check the input offset too, not just the output offset.

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:15:59 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: linux_sys_copy_file_range: Avoid UB arithmetic overflow. No functional change intended in the non-UB case. To generate a dif

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:18:46 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: linux_sys_copy_file_range: Avoid more UB arithmetic overflow. Need to check the input offset too, not just the output offset.

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:15:59 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: linux_sys_copy_file_range: Avoid UB arithmetic overflow. No functional change intended in the non-UB case. To generate a dif

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:11:39 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: sys/compat/linux/common/linux_file.c: KNF No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:11:39 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: sys/compat/linux/common/linux_file.c: KNF No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:08:47 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: linux_sys_copy_file_range: Prune dead branch. kmem_alloc(KM_SLEEP) can't fail. No functional change intended. To generate a

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:08:47 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: linux_sys_copy_file_range: Prune dead branch. kmem_alloc(KM_SLEEP) can't fail. No functional change intended. To generate a

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:00:27 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: sys/compat/linux/common/linux_file.c: KNF in function heads. No functional change intended. To generate a diff of this commi

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 17:00:27 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_file.c Log Message: sys/compat/linux/common/linux_file.c: KNF in function heads. No functional change intended. To generate a diff of this commi

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 16:41:29 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_cdrom.c linux_file.c linux_inotify.c linux_ioctl.c linux_ioctl.h linux_limit.h linux_misc.c linux_misc.h linux_mod.c linux_m

CVS commit: src/sys/compat/linux/common

2024-10-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 1 16:41:29 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_cdrom.c linux_file.c linux_inotify.c linux_ioctl.c linux_ioctl.h linux_limit.h linux_misc.c linux_misc.h linux_mod.c linux_m

Re: CVS commit: src/sys/compat/linux/common

2024-09-30 Thread Christos Zoulas
> > This code could have done that - implemented linux's clone3() and then > redefined clone() to be a particular way of calling clone3() (which is > what I'd guess linux implementations might do, if they don't just have > both versions in full). That would have worked, but requires updating >

Re: CVS commit: src/sys/compat/linux/common

2024-09-30 Thread Robert Elz
Date:Mon, 30 Sep 2024 09:09:04 -0400 From:Christos Zoulas Message-ID: <2f4ec894-d66f-4608-84b1-7dd8433eb...@zoulas.com> | [quoting mrg@] | > this looks like it should use NETBSD32IPTR64(), No, that would be wrong (even if it happened to work), it is expecting to

Re: CVS commit: src/sys/compat/linux/common

2024-09-30 Thread Christos Zoulas
> On Sep 29, 2024, at 10:27 PM, matthew green wrote: > > thanks for fixing the build. > > "Robert Elz" writes: >> Module Name: src >> Committed By:kre >> Date:Mon Sep 30 01:26:48 UTC 2024 >> >> Modified Files: >> src/sys/compat/linux/common: linux_sched.c >> >> L

re: CVS commit: src/sys/compat/linux/common

2024-09-29 Thread matthew green
thanks for fixing the build. "Robert Elz" writes: > Module Name: src > Committed By: kre > Date: Mon Sep 30 01:26:48 UTC 2024 > > Modified Files: > src/sys/compat/linux/common: linux_sched.c > > Log Message: > Supply a missing cast, which fixes the i386 (other 32 bit too probably) >

CVS commit: src/sys/compat/linux/common

2024-09-29 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Sep 30 01:26:48 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_sched.c Log Message: Supply a missing cast, which fixes the i386 (other 32 bit too probably) builds. Note I used uintptr_t rather than intptr_t which ot

CVS commit: src/sys/compat/linux/common

2024-09-29 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Sep 30 01:26:48 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_sched.c Log Message: Supply a missing cast, which fixes the i386 (other 32 bit too probably) builds. Note I used uintptr_t rather than intptr_t which ot

CVS commit: src/sys/compat/linux/common

2024-09-28 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Sep 29 00:09:52 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_misc.c linux_sched.c Log Message: move clone3 to linux_sched.c and make it compile (need to fix XXX comments) To generate a diff of this commit: c

CVS commit: src/sys/compat/linux/common

2024-09-28 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Sep 29 00:09:52 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_misc.c linux_sched.c Log Message: move clone3 to linux_sched.c and make it compile (need to fix XXX comments) To generate a diff of this commit: c

CVS commit: src/sys/compat/linux/common

2024-05-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 12 19:54:48 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_misc.h Log Message: Add forward decl for procfs include. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/compat/linux/common

CVS commit: src/sys/compat/linux/common

2024-05-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 12 19:54:48 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_misc.h Log Message: Add forward decl for procfs include. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/compat/linux/common

CVS commit: src/sys/compat/linux/common

2024-05-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 12 19:50:42 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_misc.h Log Message: fix whitespace To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/compat/linux/common/linux_misc.h Please

CVS commit: src/sys/compat/linux/common

2024-05-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 12 19:50:42 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_misc.h Log Message: fix whitespace To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/compat/linux/common/linux_misc.h Please

CVS commit: src/sys/compat/linux/common

2024-05-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 12 17:23:10 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_limit.h linux_misc.h Log Message: PR/58240: Ricardo Branco: Add missing limits To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys

CVS commit: src/sys/compat/linux/common

2024-05-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 12 17:23:10 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_limit.h linux_misc.h Log Message: PR/58240: Ricardo Branco: Add missing limits To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys

Re: CVS commit: src/sys/compat/linux/common

2023-08-25 Thread Theodore Preduta
On 2023-08-25 13:30, Taylor R Campbell wrote: > Since VOP_READDIR requires vp to be locked, I can infer that the > handle_write caller must already hold vp locked. But that means that > we have ifd_lock -> vnode lock in one path, and vnode lock -> ifd_lock > in another path, which is forbidden (un

Re: CVS commit: src/sys/compat/linux/common

2023-08-25 Thread Taylor R Campbell
> Date: Fri, 25 Aug 2023 13:38:02 -0400 > From: Theodore Preduta > > On 2023-08-25 13:13, Taylor R Campbell wrote: > > This can't be right, and it's a little unsettling that the problem > > isn't caught by any automatic tests. > > > > As I understand it, the `ie_name' member is supposed to provi

Re: CVS commit: src/sys/compat/linux/common

2023-08-25 Thread Theodore Preduta
On 2023-08-25 13:13, Taylor R Campbell wrote: >> Module Name:src >> Committed By: christos >> Date: Wed Aug 23 19:17:59 UTC 2023 >> >> Modified Files: >> src/sys/compat/linux/common: linux_inotify.c >> >> Log Message: >> put variable length structure at the end, so that clan

Re: CVS commit: src/sys/compat/linux/common

2023-08-25 Thread Taylor R Campbell
> Module Name:src > Committed By: christos > Date: Thu Aug 24 19:51:24 UTC 2023 > > Modified Files: > src/sys/compat/linux/common: linux_inotify.c > > Log Message: > fix a locking bug (Theodore Preduta) > > if (needs_lock) > vn_lock(vp, LK_SHARED |

Re: CVS commit: src/sys/compat/linux/common

2023-08-25 Thread Taylor R Campbell
> Module Name:src > Committed By: christos > Date: Wed Aug 23 19:17:59 UTC 2023 > > Modified Files: > src/sys/compat/linux/common: linux_inotify.c > > Log Message: > put variable length structure at the end, so that clang does not complain. > > struct inotify_entry { >

CVS commit: src/sys/compat/linux/common

2023-08-24 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Aug 24 19:51:24 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_inotify.c Log Message: fix a locking bug (Theodore Preduta) To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux/commo

CVS commit: src/sys/compat/linux/common

2023-08-24 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Aug 24 19:51:24 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_inotify.c Log Message: fix a locking bug (Theodore Preduta) To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux/commo

CVS commit: src/sys/compat/linux/common

2023-08-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Aug 23 19:17:59 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_inotify.c Log Message: put variable length structure at the end, so that clang does not complain. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/compat/linux/common

2023-08-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Aug 23 19:17:59 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_inotify.c Log Message: put variable length structure at the end, so that clang does not complain. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/compat/linux/common

2023-08-22 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Aug 22 12:02:34 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_inotify.c Log Message: aarch64 does not have sys_inotify_init()... To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linu

CVS commit: src/sys/compat/linux/common

2023-08-22 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Aug 22 12:02:34 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_inotify.c Log Message: aarch64 does not have sys_inotify_init()... To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linu

CVS commit: src/sys/compat/linux/common

2023-08-20 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Aug 20 18:09:25 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_inotify.c Log Message: fix locking: eliminate using mutex_owned() (Theodore Preduta) To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 s

CVS commit: src/sys/compat/linux/common

2023-08-20 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Aug 20 18:09:25 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_inotify.c Log Message: fix locking: eliminate using mutex_owned() (Theodore Preduta) To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 s

CVS commit: src/sys/compat/linux/common

2023-08-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Aug 19 17:57:55 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_fcntl.h linux_mod.c Added Files: src/sys/compat/linux/common: linux_inotify.c linux_inotify.h Log Message: new inotify support GSoC 2023 (Th

CVS commit: src/sys/compat/linux/common

2023-08-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Aug 19 17:57:55 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_fcntl.h linux_mod.c Added Files: src/sys/compat/linux/common: linux_inotify.c linux_inotify.h Log Message: new inotify support GSoC 2023 (Th

CVS commit: src/sys/compat/linux/common

2023-07-29 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Sat Jul 29 12:58:51 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_misc.h Log Message: Add comment on packed attribution for struct linux_epoll_event on amd64. NFC. To generate a diff of this commit: cvs rdiff -u -r1.2

CVS commit: src/sys/compat/linux/common

2023-07-29 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Sat Jul 29 12:58:51 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_misc.h Log Message: Add comment on packed attribution for struct linux_epoll_event on amd64. NFC. To generate a diff of this commit: cvs rdiff -u -r1.2

CVS commit: src/sys/compat/linux/common

2023-07-29 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Sat Jul 29 07:00:00 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_misc.c Log Message: compat/linux: aarch64 does not have epoll_create(2) nor epoll_wait(2) Note that for Linux, new architectures like arm64 use MI syste

CVS commit: src/sys/compat/linux/common

2023-07-29 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Sat Jul 29 07:00:00 UTC 2023 Modified Files: src/sys/compat/linux/common: linux_misc.c Log Message: compat/linux: aarch64 does not have epoll_create(2) nor epoll_wait(2) Note that for Linux, new architectures like arm64 use MI syste

CVS commit: src/sys/compat/linux/common

2021-11-24 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Nov 25 02:09:23 UTC 2021 Modified Files: src/sys/compat/linux/common: linux_file64.c Log Message: rename bsd_to_linux_stat() to bsd_to_linux_stat64() to avoid confusion. There is a static function with the same name in linux/comm

CVS commit: src/sys/compat/linux/common

2021-11-24 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Nov 25 02:09:23 UTC 2021 Modified Files: src/sys/compat/linux/common: linux_file64.c Log Message: rename bsd_to_linux_stat() to bsd_to_linux_stat64() to avoid confusion. There is a static function with the same name in linux/comm

CVS commit: src/sys/compat/linux/common

2021-11-24 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Nov 25 02:08:55 UTC 2021 Modified Files: src/sys/compat/linux/common: linux_file64.c Log Message: rename bsd_to_linux_stat() to bsd_to_linux_stat64() to avoid confusion. There is a static function with the same name in linux/comm

CVS commit: src/sys/compat/linux/common

2021-11-24 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Nov 25 02:08:55 UTC 2021 Modified Files: src/sys/compat/linux/common: linux_file64.c Log Message: rename bsd_to_linux_stat() to bsd_to_linux_stat64() to avoid confusion. There is a static function with the same name in linux/comm

CVS commit: src/sys/compat/linux/common

2021-11-23 Thread Masatake Daimon
Module Name:src Committed By: pho Date: Tue Nov 23 17:54:08 UTC 2021 Modified Files: src/sys/compat/linux/common: linux_termios.c Log Message: Make LINUX_FIOCLEX and LINUX_FIONCLEX work These ioctls were declared in linux_termios.h but were not actually handled. To gene

CVS commit: src/sys/compat/linux/common

2021-11-23 Thread Masatake Daimon
Module Name:src Committed By: pho Date: Tue Nov 23 17:54:08 UTC 2021 Modified Files: src/sys/compat/linux/common: linux_termios.c Log Message: Make LINUX_FIOCLEX and LINUX_FIONCLEX work These ioctls were declared in linux_termios.h but were not actually handled. To gene

CVS commit: src/sys/compat/linux/common

2021-09-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Sep 23 11:28:47 UTC 2021 Modified Files: src/sys/compat/linux/common: linux_misc_notalpha.c Log Message: remove stray char. To generate a diff of this commit: cvs rdiff -u -r1.112 -r1.113 \ src/sys/compat/linux/common/

CVS commit: src/sys/compat/linux/common

2021-09-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Sep 23 11:28:47 UTC 2021 Modified Files: src/sys/compat/linux/common: linux_misc_notalpha.c Log Message: remove stray char. To generate a diff of this commit: cvs rdiff -u -r1.112 -r1.113 \ src/sys/compat/linux/common/

CVS commit: src/sys/compat/linux/common

2021-09-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Tue Sep 21 09:24:15 UTC 2021 Modified Files: src/sys/compat/linux/common: linux_file64.c Log Message: linux_sys_fstatat64: Add support for AT_EMPTY_PATH flag. This is required for rtld shipped with glibc 2.33. Now, userland of Fedo

CVS commit: src/sys/compat/linux/common

2021-09-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Tue Sep 21 09:24:15 UTC 2021 Modified Files: src/sys/compat/linux/common: linux_file64.c Log Message: linux_sys_fstatat64: Add support for AT_EMPTY_PATH flag. This is required for rtld shipped with glibc 2.33. Now, userland of Fedo

CVS commit: src/sys/compat/linux/common

2021-09-19 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 19 17:33:39 UTC 2021 Modified Files: src/sys/compat/linux/common: linux_sigevent.h linux_signal.c Log Message: - LINUX_SIGEV_PAD is incorrect for 64-bit systems, because sigval_t contains a pointer. Correct this. - Add

CVS commit: src/sys/compat/linux/common

2021-09-19 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 19 17:33:39 UTC 2021 Modified Files: src/sys/compat/linux/common: linux_sigevent.h linux_signal.c Log Message: - LINUX_SIGEV_PAD is incorrect for 64-bit systems, because sigval_t contains a pointer. Correct this. - Add

CVS commit: src/sys/compat/linux/common

2019-09-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Sep 8 18:46:32 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Hum, remove incorrect assignment. Userland could have passed a smaller namelen, and the uninitialized bytes from sb_data were bein

CVS commit: src/sys/compat/linux/common

2019-09-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Sep 8 18:46:32 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Hum, remove incorrect assignment. Userland could have passed a smaller namelen, and the uninitialized bytes from sb_data were bein

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 14:21:13 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_misc.c Log Message: I don't see the point in having this useless printf, but add a '\n' to it, so that it at least displays useless stuff correctly. T

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 14:21:13 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_misc.c Log Message: I don't see the point in having this useless printf, but add a '\n' to it, so that it at least displays useless stuff correctly. T

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 14:18:43 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Fix memory leak. To generate a diff of this commit: cvs rdiff -u -r1.147 -r1.148 src/sys/compat/linux/common/linux_socket.c Ple

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 14:18:43 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Fix memory leak. To generate a diff of this commit: cvs rdiff -u -r1.147 -r1.148 src/sys/compat/linux/common/linux_socket.c Ple

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 14:08:35 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Hum, don't pass an mbuf to realloc(). Inspired from copyin32_msg_control(). To generate a diff of this commit: cvs rdiff -u -r1.

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 14:08:35 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Hum, don't pass an mbuf to realloc(). Inspired from copyin32_msg_control(). To generate a diff of this commit: cvs rdiff -u -r1.

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 12:33:25 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c linux_socket.h Log Message: Don't read data from userland directly. This simply does not work on any recent x86 CPU (thanks to SMAP) and all ar

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 12:33:25 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c linux_socket.h Log Message: Don't read data from userland directly. This simply does not work on any recent x86 CPU (thanks to SMAP) and all ar

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 13:36:45 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_statfs.h Log Message: Fix info leaks. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/compat/linux/common/linux_statfs.h Please n

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 13:36:45 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_statfs.h Log Message: Fix info leaks. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/compat/linux/common/linux_statfs.h Please n

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 11:19:39 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_fcntl.h Log Message: When dealing with an unknown value, set -1, to prevent (harmless) uninitialized accesses later. To generate a diff of this commit

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 11:19:39 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_fcntl.h Log Message: When dealing with an unknown value, set -1, to prevent (harmless) uninitialized accesses later. To generate a diff of this commit

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 06:59:52 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_termios.h Log Message: Fix info leaks. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/compat/linux/common/linux_termios.h Plea

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 06:59:52 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_termios.h Log Message: Fix info leaks. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/compat/linux/common/linux_termios.h Plea

CVS commit: src/sys/compat/linux/common

2019-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 06:54:54 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_file64.c Log Message: Fix info leak. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/sys/compat/linux/common/linux_file64.c Please

CVS commit: src/sys/compat/linux/common

2019-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 06:54:54 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_file64.c Log Message: Fix info leak. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/sys/compat/linux/common/linux_file64.c Please

re: CVS commit: src/sys/compat/linux/common

2018-01-08 Thread Christos Zoulas
On Jan 9, 12:33pm, m...@eterna.com.au (matthew green) wrote: -- Subject: re: CVS commit: src/sys/compat/linux/common | Christos Zoulas writes: | > On Jan 9, 12:44am, m...@netbsd.org (m...@netbsd.org) wrote: | > -- Subject: Re: CVS commit: src/sys/compat/linux/common | > | > | W

re: CVS commit: src/sys/compat/linux/common

2018-01-08 Thread matthew green
Christos Zoulas writes: > On Jan 9, 12:44am, m...@netbsd.org (m...@netbsd.org) wrote: > -- Subject: Re: CVS commit: src/sys/compat/linux/common > > | Why not add a signal? > > It is complicated to do so. It will even change the sigmask size. it will? don't we have suppo

Re: CVS commit: src/sys/compat/linux/common

2018-01-08 Thread Christos Zoulas
On Jan 9, 12:44am, m...@netbsd.org (m...@netbsd.org) wrote: -- Subject: Re: CVS commit: src/sys/compat/linux/common | Why not add a signal? It is complicated to do so. It will even change the sigmask size. christos

Re: CVS commit: src/sys/compat/linux/common

2018-01-08 Thread maya
> + /* > + * XXX: Linux has 33 realtime signals, the go binary wants to > + * reset all of them; nothing else uses the last RT signal, so for > + * now ignore it. > + */ > + if (sig == LINUX__NSIG) { > + uprintf("%s: setting signal %d ignored\n", __func__, si