Page MenuHomeFreeBSD

Fix linprocfs(4) /proc/self/mem semantics
ClosedPublic

Authored by trasz on Oct 16 2020, 4:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 12:39 PM
Unknown Object (File)
Oct 19 2024, 5:36 AM
Unknown Object (File)
Oct 15 2024, 2:16 PM
Unknown Object (File)
Oct 13 2024, 11:59 PM
Unknown Object (File)
Oct 13 2024, 11:59 PM
Unknown Object (File)
Oct 13 2024, 11:59 PM
Unknown Object (File)
Oct 13 2024, 11:59 PM
Unknown Object (File)
Oct 13 2024, 11:40 PM
Subscribers

Details

Summary

Fix linprocfs(4) /proc/self/mem semantics to more closely match Linux.
Steam's Anti-Cheat seems to use it.

PR: 248223

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 34282
Build 31423: arc lint + arc unit

Event Timeline

trasz requested review of this revision.Oct 16 2020, 4:04 PM
sys/compat/linprocfs/linprocfs.c
7

Why ?

sys/compat/linprocfs/linprocfs.c
7

It's there in sys/fs/procfs/procfs_mem.c, where I pasted the function from.

sys/compat/linprocfs/linprocfs.c
7

I do not think it is worth the hassle. Also, I do not see why don't you wrapped procfs_doprocmem.

Reuse procfs_doprocmem() instead of copy/pasting it.

kib added inline comments.
sys/compat/linprocfs/linprocfs.c
1289

None of these blank lines is warranted or supported by style(9).

This revision is now accepted and ready to land.Oct 20 2020, 2:20 PM
sys/compat/linprocfs/linprocfs.c
1289

I find it easier to read this way, though.

sys/compat/linprocfs/linprocfs.c
1289

The only function of these blank lines is to eat vertical space in editor, allowing to see less code.