Page MenuHomeFreeBSD

Fixing kbd.c bug 'OGIO_KEYMAP command does not restore priority level'
ClosedPublic

Authored by mmokhi on Jan 27 2016, 5:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 11:26 PM
Unknown Object (File)
Oct 4 2024, 7:14 PM
Unknown Object (File)
Oct 4 2024, 2:58 PM
Unknown Object (File)
Oct 4 2024, 7:24 AM
Unknown Object (File)
Oct 4 2024, 5:08 AM
Unknown Object (File)
Oct 3 2024, 9:51 PM
Unknown Object (File)
Oct 3 2024, 2:31 PM
Unknown Object (File)
Sep 23 2024, 8:58 PM

Details

Summary

Missing call of 'splx()' before return inside 'genkbd_commonioctl()'

May cause security vuln. (thanks to CTurt@hardenedbsd )

Diff Detail

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

Event Timeline

mmokhi retitled this revision from to Fixing kbd.c bug 'OGIO_KEYMAP command does not restore priority level'.
mmokhi updated this object.
mmokhi edited the test plan for this revision. (Show Details)
mmokhi added a subscriber: mmokhi.
cem added a reviewer: cem.
cem added a subscriber: cem.
cem added inline comments.
sys/dev/kbd/kbd.c
887

Drop the comment, and use it in the commit message. Otherwise, looks good.

This revision is now accepted and ready to land.Jan 27 2016, 6:23 PM
mmokhi edited edge metadata.

Updating D5095: Fixing kbd.c bug 'OGIO_KEYMAP command does not restore priority level'

Using 'break;' instead of 'return 0;' to call 'splx(s);' before 'return 0;'
Extra comment removed from code.

This revision now requires review to proceed.Jan 27 2016, 6:30 PM
cem edited edge metadata.
This revision is now accepted and ready to land.Jan 27 2016, 6:40 PM

Hi matthew, this was sitting around for a while.
I would like to commit it with this message:

Restore priority value for OGIO_KEYMAP 

PR: 206678
Submitted by: ecturt@gmail.com
Reviewed by: cem
Approved by: cem, matthew (mentor)
Differential Revision: https://reviews.freebsd.org/D5095
matthew edited edge metadata.

If cem approves, then so do I.

This revision was automatically updated to reflect the committed changes.