lp:klibc

Created by Thorsten Glaser on 2012-02-17 and last modified on 2019-11-05
Get this branch:
bzr branch lp:klibc

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Thorsten Glaser
Project:
klibc
Review team:
maximilian attems
Status:
Development

Import details

Import Status: Reviewed

This branch is an import of the HEAD branch of the Git repository at git://git.kernel.org/pub/scm/libs/klibc/klibc.git.

The next import is scheduled to run in 3 hours.

Last successful import was 2 hours ago.

Import started 2 hours ago on izar and finished 2 hours ago taking 15 seconds — see the log
Import started 8 hours ago on alnitak and finished 8 hours ago taking 15 seconds — see the log
Import started 14 hours ago on alnitak and finished 14 hours ago taking 15 seconds — see the log
Import started 21 hours ago on alnitak and finished 21 hours ago taking 15 seconds — see the log
Import started on 2019-11-12 on alnitak and finished on 2019-11-12 taking 20 seconds — see the log
Import started on 2019-11-12 on izar and finished on 2019-11-12 taking 15 seconds — see the log
Import started on 2019-11-12 on izar and finished on 2019-11-12 taking 15 seconds — see the log
Import started on 2019-11-12 on izar and finished on 2019-11-12 taking 20 seconds — see the log
Import started on 2019-11-11 on alnitak and finished on 2019-11-11 taking 20 seconds — see the log
Import started on 2019-11-11 on izar and finished on 2019-11-11 taking 20 seconds — see the log

Recent revisions

2116. By Ben Hutchings on 2019-11-05

[klibc] losetup: Use LOOP_CTL_GET_FREE to find free device

Since Linux 3.1, the loop driver creates a /dev/loop-control device
node which supports ioctls to allocate and free devices.

When the loop driver is modular, udev creates this in advance, and
opening it causes the driver to be loaded. (The same is not true for
/dev/loop*.)

Using the LOOP_CTL_GET_FREE ioctl also allows creating more than the
default number of loop devices, and is more efficient than checking
a range of possible device names.

Signed-off-by: Ben Hutchings <email address hidden>

2115. By Ben Hutchings on 2019-11-05

[klibc] losetup: Delete fallbacks to LOOP_{GET,SET}_STATUS

The LOOP_{GET,SET}_STATUS64 ioctls were added in Linux 2.5.68, and
klibc is not intended to support old kernel versions.

Signed-off-by: Ben Hutchings <email address hidden>

2114. By Ben Hutchings on 2019-11-05

[klibc] losetup: Fix char signedness mismatches with <linux/loop.h>

For some reason the kernel's definition of struct loop_info64 defines
string fields as arrays of __u8 (unsigned char) instead of char. Add
the necessary casts to avoid compiler warnings.

Signed-off-by: Ben Hutchings <email address hidden>

2113. By Dimitri John Ledkov on 2019-11-05

[klibc] loop: switch to linux/loop.h

linux/loop.h header is exported by linux, for userspace to
consume. This would prevent issues with struct sizes
incompatibilities.

References: https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/1850184
Signed-off-by: Michael Hudson-Doyle <email address hidden>
Signed-off-by: Adam Conrad <email address hidden>
Signed-off-by: Dimitri John Ledkov <email address hidden>
[bwh: We were using dev_t instead of __kernel_old_dev_t, which doesn't
 match on some architectures. Instead of fixing our definition first,
 switch directly to the kernel's UAPI header.]
Signed-off-by: Ben Hutchings <email address hidden>

2112. By Ben Hutchings on 2019-10-07

[klibc] fstype: Drop obsolete support for "ext4dev"

This is obsolete since Linux 2.6.28, and it's now causing problems for
people using compressed modules because we don't recognise the ext4
module with a .gz or .xz extension.

Reported-by: Greg Edwards <email address hidden>
References: https://bugs.debian.org/932926
Signed-off-by: Ben Hutchings <email address hidden>

2111. By Ben Hutchings on 2019-10-07

[klibc] 2.0.7 released, next version is 2.0.8

2110. By Ben Hutchings on 2019-10-07

[klibc] nfsmount: Use kernel client's default value for timeo option

The current default of timeo=7 (0.7 seconds) is too short, especially
on slow networks. We should not override the kernel client's default
unless explicitly requested.

This option is passed to the kernel through struct nfs_mount_data
rather than as a string, so we have to provide some value. The kernel
client currently treats either 0 or UINT_MAX as requesting the default.
nfs-utils passes 0, so do the same here.

Reported-by: Alkis Georgopoulos <email address hidden>
References: https://lists.zytor.com/archives/klibc/2019-September/004233.html
Signed-off-by: Ben Hutchings <email address hidden>

2109. By Ben Hutchings on 2019-10-07

[klibc] Fix missing header dependency for sigsuspend.o

sigsuspend.c includes <klibc/havesyscall.h>, which is a generated
file. In a parallel make, sigsuspend.o might currently be built
before havesyscall.h, and to avoid this we need t add an explicit
dependency.

Given that they are built from different makefiles, I don't think a
direct dependency will work. Instead, add syscalls/klib.list as a
dependency for sigsuspend.o so that it indirectly depends on
everything that's built from syscalls/.

Reported-by: Matthias Klose <email address hidden>
Reported-by: Thorsten Glaser <email address hidden>
References: https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/1843743
Signed-off-by: Ben Hutchings <email address hidden>

2108. By Ben Hutchings on 2019-10-07

[klibc] Kbuild: Work around broken "ar s" in binutils 2.32

"ar s" without a sub-command like "r" fails in binutils 2.32, at least
in the Debian package. Revert to running ranlib where we are only
updating the index and not members.

References: https://bugs.debian.org/941921
Signed-off-by: Ben Hutchings <email address hidden>

2107. By Dimitri John Ledkov on 2019-07-28

[klibc] ipconfig: Implement support -d ...:dns0:dns1 options

Whilst ip= command is documented to support dns0:dns1 options as
arguments 7 and 8, the -d parser in ipconfig does not. This breaks
bringing up static ip configuration with dns nameservers set in the
ip= command.

Testcase:

$ ip link add name dummy0 type dummy
$ sudo /usr/lib/klibc/bin/ipconfig -d 10.245.237.7::10.245.237.1:255.255.255.0:ottawa:dummy0:none:8.8.8.8:8.8.4.4
IP-Config: dummy0 hardware address 76:39:ca:27:9b:90 mtu 1500
IP-Config: dummy0 guessed broadcast address 10.245.237.255
IP-Config: dummy0 complete:
 address: 10.245.237.7 broadcast: 10.245.237.255 netmask: 255.255.255.0
 gateway: 10.245.237.1 dns0 : 8.8.8.8 dns1 : 8.8.4.4
 host : ottawa
 rootserver: 0.0.0.0 rootpath:
 filename :

Signed-off-by: Dimitri John Ledkov <email address hidden>
Signed-off-by: Ben Hutchings <email address hidden>

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers