[klibc] [PATCH 1/2 v2] loop: fix loop_info struct
Dimitri John Ledkov
xnox at ubuntu.com
Fri Nov 1 07:44:30 PDT 2019
The structure definition in the header, does not match the kernel's
definition (on most architectures) which leads to undefined behaviour.
References: https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/1850184
Signed-off-by: Michael Hudson-Doyle <michael.hudson at ubuntu.com>
Signed-off-by: Adam Conrad <adconrad at ubuntu.com>
Signed-off-by: Dimitri John Ledkov <xnox at ubuntu.com>
---
Updated patch description, based on feedback on the mailing list.
usr/utils/loop.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/usr/utils/loop.h b/usr/utils/loop.h
index 9abc2874..667f7dc0 100644
--- a/usr/utils/loop.h
+++ b/usr/utils/loop.h
@@ -15,9 +15,9 @@
struct loop_info {
int lo_number;
- dev_t lo_device;
+ __kernel_old_dev_t lo_device;
unsigned long lo_inode;
- dev_t lo_rdevice;
+ __kernel_old_dev_t lo_rdevice;
int lo_offset;
int lo_encrypt_type;
int lo_encrypt_key_size;
--
2.20.1
More information about the klibc
mailing list