Re: GSOC - Emulating missing linux syscalls

Emmanuel Dreyfus <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
On Tue, Mar 11, 2025 at 07:21:47PM +0100, Vasyl Maksym Lanko wrote:
> 1. Is this mostly correct?

It is. In my opinion your second scenario is the path of least
resistance.

> 2. Is this project mostly about identifying the missing syscall used in a
> Linux Binary and porting it to NetBSD?

That is correct. Note that syscall implementation can range to easy
(just translate arguments back and forth to the native NetBSD version)
to difficult (implement and completely new feature in the NetBSD kernel).
It is impossible to tell in advance the fraction of difficult tasks, 
you will have to discover it during the project. 

> 3. I have never programmed a Kernel but I have worked with system calls in
> Linux, namely replaying them in userspace, (so just copying a saved syscall
> result and populating a needed arg, like void* buf from read()), and also I
> like learning how things work and low-level programming, do you think this
> project would be in my reach?

I think that given your bacckground, this project is an excellent 
introduction into kernel programming

> 4. What would you consider to be a successful gsoc contribution to
> compat-linux? I see this project estimated at 350h with the goal of finding
> a Linux binary that crashes and... begin implementing the missing features
> to compat_linux. Is it that complicated that the missing syscalls would take
> so much effort?

See my answer to your auestion 2.


-- 
Emmanuel Dreyfus
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.