Skip to content

RFE: Add Motorola 68000 support#397

Closed
glaubitz wants to merge 2 commits intoseccomp:mainfrom
glaubitz:m68k
Closed

RFE: Add Motorola 68000 support#397
glaubitz wants to merge 2 commits intoseccomp:mainfrom
glaubitz:m68k

Conversation

@glaubitz
Copy link
Copy Markdown
Contributor

This pull request adds support for the Motorola 68000 architecture to libseccomp.

Patches for seccomp support in the kernel have been posted on the LKML [1] but not merged
yet. Plus, libseccomp currently fails to build from source after the syscall.csv file has been
updated to include the syscalls for m68k. The problem seem to be a number of syscalls which
exist exclusively on m68k.

For this reason, I'm marking this pull request as WIP.

[1] https://marc.info/?l=linux-m68k&m=167349572928947&w=2

@coveralls
Copy link
Copy Markdown

coveralls commented Jan 18, 2023

Coverage Status

Coverage: 89.738% (+0.01%) from 89.724% when pulling a23ea38 on glaubitz:m68k into 5aceb9d on seccomp:main.

@glaubitz glaubitz marked this pull request as ready for review January 18, 2023 09:13
@glaubitz glaubitz changed the title RFE: add Motorola 68000 support (WIP) RFE: add Motorola 68000 support Jan 18, 2023
@glaubitz
Copy link
Copy Markdown
Contributor Author

I had to add to add the three syscalls atomic_barrier, atomic_cmpxchg_32 and getpagesize to include/seccomp-syscalls.h. Testsuite passes now.

@glaubitz glaubitz force-pushed the m68k branch 3 times, most recently from 9382c86 to cb716ff Compare January 18, 2023 11:17
@glaubitz glaubitz changed the title RFE: add Motorola 68000 support RFE: Add Motorola 68000 support Jan 18, 2023
@drakenclimber
Copy link
Copy Markdown
Member

Thanks so much for the pull request, @glaubitz. Let us know when m68k support has been merged into the kernel, and I'll take a deeper look. 👍

@pcmoore
Copy link
Copy Markdown
Member

pcmoore commented Feb 6, 2023

Hi @glaubitz, a quick question for you: are there any modern, common Linux distros which support m68k?

@glaubitz
Copy link
Copy Markdown
Contributor Author

glaubitz commented Feb 6, 2023 via email

@pcmoore
Copy link
Copy Markdown
Member

pcmoore commented Feb 6, 2023

Great, thanks!

@glaubitz
Copy link
Copy Markdown
Contributor Author

seccomp support for m68k was just merged today into Linus' tree:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/m68k?id=6baaade15594b28195da369962208b1f658e7342

@drakenclimber
Copy link
Copy Markdown
Member

@glaubitz, looks like we can now review these changes and start to work on getting them into libseccomp. Correct?

If so, would you mind updating your patchset to resolve the conflicts. (m86k collided with LoongArch, but the collisions look fairly trivial.) Once you do that, I'll look over the code. Thanks so much!

@glaubitz
Copy link
Copy Markdown
Contributor Author

glaubitz commented Mar 2, 2023

@glaubitz, looks like we can now review these changes and start to work on getting them into libseccomp. Correct?

Yes.

If so, would you mind updating your patchset to resolve the conflicts. (m86k collided with LoongArch, but the collisions look fairly trivial.) Once you do that, I'll look over the code. Thanks so much!

Rebase should be done now.

@glaubitz
Copy link
Copy Markdown
Contributor Author

glaubitz commented Mar 31, 2023 via email

Copy link
Copy Markdown
Member

@pcmoore pcmoore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Acked-by: Paul Moore <[email protected]>

@glaubitz
Copy link
Copy Markdown
Contributor Author

Linux 6.3 which includes seccomp support for m68k was just released today ;-).

@drakenclimber
Copy link
Copy Markdown
Member

Linux 6.3 which includes seccomp support for m68k was just released today ;-).

Congrats! I have carved out time this week to review the changes. Thanks for your patience, @glaubitz

Copy link
Copy Markdown
Member

@drakenclimber drakenclimber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found a silly nitpick, @glaubitz, but the patchset looks good to me. Thanks for all your hard work and patience.

Acked-by: Tom Hromatka <[email protected]>

Signed-off-by: John Paul Adrian Glaubitz <[email protected]>
Signed-off-by: John Paul Adrian Glaubitz <[email protected]>
@drakenclimber
Copy link
Copy Markdown
Member

Pushed to main in commits dd5c9c2 and aa168d4. Thanks, @glaubitz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants