Fbset crashes the driver

Open
#35 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, linux

Research direction

Start by reproducing the crash with fbset -xres 1920 -yres 1080 -fb /dev/fb1 and trace the framebuffer ioctl handling in the driver. Check the path for unsupported ioctls and verify that the driver returns an error to userspace instead of crashing.

Written by the indexing model from the issue text.

Description

To crash the driver is enough to use fbset on the framebuffer device to change the resolution:
fbset -xres 1920 -yres 1080 -fb /dev/fb1

What should happen instead:
if the ioctl used by fbset is unsupported, the driver should not crash, but return some error to the userspace.

Dominant language
C
Stars
124
Forks
58
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sysprog21/vcam

All issues in sysprog21/vcam

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.