mlxbf-bootctl: Fix kernel panic due to buffer overflow
Bug #2028309 reported by
Asmaa Mnebhi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-bluefield (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
SRU Justification:
[Impact]
Running the following LTP (linux-
a kernel panic and a reboot of the DPU:
ltp/testcases/
The above test reads all directory and files under /sys.
Reading the sysfs entry "large_icm" causes the kernel panic
due to a garbage value returned via i2c read. That garbage
value causes a buffer overflow in sprintf.
[Fix]
* Replace sprintf with snprintf. And also add missing lock and
increase the buffer size to PAGE_SIZE.
[Test Case]
* Run from linux:
ltp/testcases/
[Regression Potential]
no known regression
Changed in linux-bluefield (Ubuntu): | |
status: | New → Invalid |
Changed in linux-bluefield (Ubuntu Jammy): | |
status: | New → Fix Committed |
tags: |
added: verification-done-jammy removed: verification-needed-jammy |
To post a comment you must log in.
This bug is awaiting verification that the linux-bluefield /5.15.0- 1020.22 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification- needed- jammy' to 'verification- done-jammy' . If the problem still exists, change the tag 'verification- needed- jammy' to 'verification- failed- jammy'.
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Thank you!