Excessive size of kernel modules on RISC-V - modules unstripped
Bug #1964335 reported by
Heinrich Schuchardt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-riscv (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The size of kernel modules on RISC-V indicates that there is a build problem:
kernel/
amd64: 81713 bytes
arm64: 85505 bytes
riscv64: 601417 bytes
objdump -h shows that there is no section beyond 0xc6fc in the riscv64 file.
The size of the sections matches what we see on the other architectures.
CVE References
Changed in linux-riscv (Ubuntu): | |
status: | New → Confirmed |
Changed in linux-riscv (Ubuntu): | |
status: | Confirmed → In Progress |
To post a comment you must log in.
Modules appear to be unstripped. Debugging why that it is so:
$ file ./lib/modules/ 5.15.0- 1004-generic/ kernel/ fs/btrfs/ btrfs.ko 5.15.0- 1004-generic/ kernel/ fs/btrfs/ btrfs.ko: ELF 64-bit LSB relocatable, UCB RISC-V, version 1 (SYSV), BuildID[ sha1]=6c48292f2 7241752d4993a68 54e9eee38ab3b50 3, not stripped
./lib/modules/
$ du ./lib/modules/ 5.15.0- 1004-generic/ kernel/ fs/btrfs/ btrfs.ko 5.15.0- 1004-generic/ kernel/ fs/btrfs/ btrfs.ko
16968 ./lib/modules/
$ riscv64- linux-gnu- strip ./lib/modules/ 5.15.0- 1004-generic/ kernel/ fs/btrfs/ btrfs.ko
$ file ./lib/modules/ 5.15.0- 1004-generic/ kernel/ fs/btrfs/ btrfs.ko 5.15.0- 1004-generic/ kernel/ fs/btrfs/ btrfs.ko: ELF 64-bit LSB relocatable, UCB RISC-V, version 1 (SYSV), BuildID[ sha1]=6c48292f2 7241752d4993a68 54e9eee38ab3b50 3, stripped
./lib/modules/
$ du ./lib/modules/ 5.15.0- 1004-generic/ kernel/ fs/btrfs/ btrfs.ko 5.15.0- 1004-generic/ kernel/ fs/btrfs/ btrfs.ko
1384 ./lib/modules/