Skip to content

Conversation

@isoux
Copy link

@isoux isoux commented Nov 23, 2025

The example cdev module used copystr() inside mydev_read(), which is deprecated according to COPY(9). Although the code compiles, invoking the module causes a kernel page fault. A crash dump larger than 1 GB was generated on 14.3-RELEASE-p5 (amd64 GENERIC).

Replacing copystr() with copyout() resolves the issue and the module now behaves as expected.

Signed-off-by: Isa Isoux [email protected]

The example cdev module used copystr() inside mydev_read(),
which is deprecated according to COPY(9). Although the code
compiles, invoking the module causes a kernel page fault.
A crash dump larger than 1 GB was generated on 14.3-RELEASE-p5
(amd64 GENERIC).

Replacing copystr() with copyout() resolves the issue and the
module now behaves as expected.
@github-actions
Copy link

Thank you for taking the time to contribute to FreeBSD!
There is an issue that needs to be fixed:

  • Missing Signed-off-by lines (90d4f48)

Please review CONTRIBUTING.md, then update and push your branch again.

@christosmarg christosmarg requested a review from markjdb November 24, 2025 12:49
@bsdimp bsdimp added the changes-required Cannot land as is, change requested of submitter label Nov 25, 2025
Replaced the hardcoded byte count with the len variable in mydev_read(), ensuring the buffer size is used correctly. This follows best practices and prevents potential issues.

Signed-off-by: Isa Isoux <[email protected]>
@isoux isoux requested a review from bsdimp November 25, 2025 20:58
@isoux
Copy link
Author

isoux commented Dec 1, 2025

I have done everything I can, is there anything else expected of me?

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

Labels

changes-required Cannot land as is, change requested of submitter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants