sched_getattr will return EFBIG

Bug #1842473 reported by Thadeu Lima de Souza Cascardo on 2019-09-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Thadeu Lima de Souza Cascardo
Thadeu Lima de Souza Cascardo

Bug Description

With the introduction of utilization clamps interface on sched_[sg]etattr, sched_getattr will fail when used with the previous smaller struct sched_attr. And instead of using E2BIG as documented, it also ends up using EFBIG instead.

The interface change currently breaks userspace on 5.3 kernel.

This breaks ltp syscalls regression testing on 5.3. The EFBIG versus E2BIG should not happen in practice unless the other bug is also present, so I wouldn't bother fixing it on older versions.

Changed in linux (Ubuntu Eoan):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Thadeu Lima de Souza Cascardo (cascardo)

https://<email address hidden>/T/#t

Pull request sent.

https://<email address hidden>/T/#u

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers