sched_getattr will return EFBIG

Bug #1842473 reported by Thadeu Lima de Souza Cascardo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
In Progress
High
Thadeu Lima de Souza Cascardo
Eoan
Won't Fix
High
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.

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

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)
Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

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

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

Pull request sent.

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

Revision history for this message
Brian Murray (brian-murray) wrote :

The Eoan Ermine has reached end of life, so this bug will not be fixed for that release

Changed in linux (Ubuntu Eoan):
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.