libuv1.git
17 months agoMerge libuv1 (1.48.0-5) import into refs/heads/workingbranch
Dominique Dumont [Wed, 19 Jun 2024 16:57:50 +0000 (18:57 +0200)]
Merge libuv1 (1.48.0-5) import into refs/heads/workingbranch

17 months agoFix thread priority test
Dominique Dumont [Wed, 19 Jun 2024 16:57:50 +0000 (18:57 +0200)]
Fix thread priority test

Bug: https://github.com/libuv/libuv/issues/4382
Bug-Debian: https://bugs.debian.org/1071194
Origin: https://github.com/libuv/libuv/issues/4382
Applied-Upstream: not-needed

Test should not assume to be run at priority 0.

See upstream bug for more details.

Gbp-Pq: Name fix-thread-priority-test

17 months agoremove iframe from html doc - avoid privacy breach
Jérémy Lal [Wed, 19 Jun 2024 16:57:50 +0000 (18:57 +0200)]
remove iframe from html doc - avoid privacy breach

Forwarded: not-needed

Gbp-Pq: Name privacy-breach-generic.patch

17 months agoSkip multicast test
Dominique Dumont [Wed, 19 Jun 2024 16:57:50 +0000 (18:57 +0200)]
Skip multicast test

Forwarded: not-needed

Skip muliticast test to avoid this error on all build daemons:

ok 346 - udp_multicast_interface6
not ok 347 - udp_multicast_join
# timeout
# Output from process `udp_multicast_join`: (no output)
not ok 348 - udp_multicast_join6
# timeout
# Output from process `udp_multicast_join6`: (no output)
ok 349 - udp_multicast_ttl

Gbp-Pq: Name skip-multicast-test

17 months agofix undefined path_max for st_size zero
Mauricio Faria de Oliveira [Wed, 19 Jun 2024 16:57:50 +0000 (18:57 +0200)]
fix undefined path_max for st_size zero

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1792647
Bug-Debian: https://bugs.debian.org/909011
Reviewed-by: dod
The downstream 'path_max' patch in Debian sets the buffer size
for readlink() to the 'st_size' value obtained with lstat().

However, it might be zero for some symlinks in /proc on Linux
(notably /proc/self) leading to readlink() failing with EINVAL.

    $ strace -e lstat stat /proc/self 2>&1 \
        | grep -e lstat -e File: -e Size:
    lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      File: /proc/self -> 30875
      Size: 0             Blocks: 0          IO Block: 1024   symbolic link

This causes readlink (tool) to files like /dev/stdin to fail,
which may link to /proc/self/fd/0 on containers or elsewhere.

Test-case:

    ubuntu@cosmic:~/node$
    $ strace -E LD_LIBRARY_PATH=/usr/local/lib/ -f -e lstat,readlink \
      node test/parallel/test-fs-realpath-pipe.js

With path_max:

    [pid 17785] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 17786] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 17785] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 17786] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] readlink("/proc/self", 0x7f2a6c000b40, 0) = -1 EINVAL (Invalid argument)

Without path_max:

    [pid 18114] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18114] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18114] readlink("/dev/stdin", "/proc/self/fd/0", 4096) = 15

    [pid 18114] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18114] readlink("/proc/self", "18114", 4096) = 5

    [pid 18114] lstat("/proc/18114", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18114] readlink("/proc/18114/fd/0", "socket:[199607]", 4096) = 15

With this patch on top of path_max:

    [pid 18433] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 18433] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] readlink("/proc/self", "18433", 256) = 5

    [pid 18433] lstat("/proc/18433", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] readlink("/proc/18433/fd/0", "socket:[191351]", 64) = 15
Reviewed-by: dod
Gbp-Pq: Name path_max_zero_st_size

17 months agoexport RES_OPTIONS = attempts:0 makes this test fail
Jérémy Lal [Wed, 19 Jun 2024 16:57:50 +0000 (18:57 +0200)]
export RES_OPTIONS = attempts:0 makes this test fail

Last-Update: 2017-10-12
Forwarded: not-needed

Gbp-Pq: Name disable_ipv6_test.patch

17 months agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Wed, 19 Jun 2024 16:57:50 +0000 (18:57 +0200)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

17 months agoAdd support for loong64
Graham Inggs [Wed, 19 Jun 2024 16:57:50 +0000 (18:57 +0200)]
Add support for loong64

Bug-Debian: https://bugs.debian.org/1062694
Forwarded: no

Gbp-Pq: Name add-support-for-loong64.patch

17 months agolibuv1 (1.48.0-5) unstable; urgency=medium
Dominique Dumont [Wed, 19 Jun 2024 16:57:50 +0000 (18:57 +0200)]
libuv1 (1.48.0-5) unstable; urgency=medium

  * add patch to fix thread-priority test (Closes: 1071194)

[dgit import unpatched libuv1 1.48.0-5]

17 months agoImport libuv1_1.48.0-5.debian.tar.xz
Dominique Dumont [Wed, 19 Jun 2024 16:57:50 +0000 (18:57 +0200)]
Import libuv1_1.48.0-5.debian.tar.xz

[dgit import tarball libuv1 1.48.0-5 libuv1_1.48.0-5.debian.tar.xz]

19 months agoMerge libuv1 (1.48.0-4) import into refs/heads/workingbranch
Dominique Dumont [Wed, 15 May 2024 15:52:58 +0000 (17:52 +0200)]
Merge libuv1 (1.48.0-4) import into refs/heads/workingbranch

19 months agoremove iframe from html doc - avoid privacy breach
Jérémy Lal [Wed, 15 May 2024 15:52:58 +0000 (17:52 +0200)]
remove iframe from html doc - avoid privacy breach

Forwarded: not-needed

Gbp-Pq: Name privacy-breach-generic.patch

19 months agoSkip multicast test
Dominique Dumont [Wed, 15 May 2024 15:52:58 +0000 (17:52 +0200)]
Skip multicast test

Forwarded: not-needed

Skip muliticast test to avoid this error on all build daemons:

ok 346 - udp_multicast_interface6
not ok 347 - udp_multicast_join
# timeout
# Output from process `udp_multicast_join`: (no output)
not ok 348 - udp_multicast_join6
# timeout
# Output from process `udp_multicast_join6`: (no output)
ok 349 - udp_multicast_ttl

Gbp-Pq: Name skip-multicast-test

19 months agofix undefined path_max for st_size zero
Mauricio Faria de Oliveira [Wed, 15 May 2024 15:52:58 +0000 (17:52 +0200)]
fix undefined path_max for st_size zero

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1792647
Bug-Debian: https://bugs.debian.org/909011
Reviewed-by: dod
The downstream 'path_max' patch in Debian sets the buffer size
for readlink() to the 'st_size' value obtained with lstat().

However, it might be zero for some symlinks in /proc on Linux
(notably /proc/self) leading to readlink() failing with EINVAL.

    $ strace -e lstat stat /proc/self 2>&1 \
        | grep -e lstat -e File: -e Size:
    lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      File: /proc/self -> 30875
      Size: 0             Blocks: 0          IO Block: 1024   symbolic link

This causes readlink (tool) to files like /dev/stdin to fail,
which may link to /proc/self/fd/0 on containers or elsewhere.

Test-case:

    ubuntu@cosmic:~/node$
    $ strace -E LD_LIBRARY_PATH=/usr/local/lib/ -f -e lstat,readlink \
      node test/parallel/test-fs-realpath-pipe.js

With path_max:

    [pid 17785] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 17786] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 17785] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 17786] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] readlink("/proc/self", 0x7f2a6c000b40, 0) = -1 EINVAL (Invalid argument)

Without path_max:

    [pid 18114] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18114] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18114] readlink("/dev/stdin", "/proc/self/fd/0", 4096) = 15

    [pid 18114] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18114] readlink("/proc/self", "18114", 4096) = 5

    [pid 18114] lstat("/proc/18114", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18114] readlink("/proc/18114/fd/0", "socket:[199607]", 4096) = 15

With this patch on top of path_max:

    [pid 18433] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 18433] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] readlink("/proc/self", "18433", 256) = 5

    [pid 18433] lstat("/proc/18433", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] readlink("/proc/18433/fd/0", "socket:[191351]", 64) = 15
Reviewed-by: dod
Gbp-Pq: Name path_max_zero_st_size

19 months agoexport RES_OPTIONS = attempts:0 makes this test fail
Jérémy Lal [Wed, 15 May 2024 15:52:58 +0000 (17:52 +0200)]
export RES_OPTIONS = attempts:0 makes this test fail

Last-Update: 2017-10-12
Forwarded: not-needed

Gbp-Pq: Name disable_ipv6_test.patch

19 months agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Wed, 15 May 2024 15:52:58 +0000 (17:52 +0200)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

19 months agoAdd support for loong64
Graham Inggs [Wed, 15 May 2024 15:52:58 +0000 (17:52 +0200)]
Add support for loong64

Bug-Debian: https://bugs.debian.org/1062694
Forwarded: no

Gbp-Pq: Name add-support-for-loong64.patch

19 months agolibuv1 (1.48.0-4) unstable; urgency=medium
Dominique Dumont [Wed, 15 May 2024 15:52:58 +0000 (17:52 +0200)]
libuv1 (1.48.0-4) unstable; urgency=medium

  * control: set Provides to ${t64:Provides} (Closes: #1071034)

[dgit import unpatched libuv1 1.48.0-4]

19 months agoImport libuv1_1.48.0-4.debian.tar.xz
Dominique Dumont [Wed, 15 May 2024 15:52:58 +0000 (17:52 +0200)]
Import libuv1_1.48.0-4.debian.tar.xz

[dgit import tarball libuv1 1.48.0-4 libuv1_1.48.0-4.debian.tar.xz]

21 months agoMerge libuv1 (1.48.0-1.1) import into refs/heads/workingbranch
Graham Inggs [Wed, 28 Feb 2024 21:01:37 +0000 (21:01 +0000)]
Merge libuv1 (1.48.0-1.1) import into refs/heads/workingbranch

21 months agoSkip multicast test
Dominique Dumont [Wed, 28 Feb 2024 21:01:37 +0000 (21:01 +0000)]
Skip multicast test

Forwarded: not-needed

Skip muliticast test to avoid this error on all build daemons:

ok 346 - udp_multicast_interface6
not ok 347 - udp_multicast_join
# timeout
# Output from process `udp_multicast_join`: (no output)
not ok 348 - udp_multicast_join6
# timeout
# Output from process `udp_multicast_join6`: (no output)
ok 349 - udp_multicast_ttl

Gbp-Pq: Name skip-multicast-test

21 months agofix undefined path_max for st_size zero
Mauricio Faria de Oliveira [Wed, 28 Feb 2024 21:01:37 +0000 (21:01 +0000)]
fix undefined path_max for st_size zero

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1792647
Bug-Debian: https://bugs.debian.org/909011
Reviewed-by: dod
The downstream 'path_max' patch in Debian sets the buffer size
for readlink() to the 'st_size' value obtained with lstat().

However, it might be zero for some symlinks in /proc on Linux
(notably /proc/self) leading to readlink() failing with EINVAL.

    $ strace -e lstat stat /proc/self 2>&1 \
        | grep -e lstat -e File: -e Size:
    lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      File: /proc/self -> 30875
      Size: 0             Blocks: 0          IO Block: 1024   symbolic link

This causes readlink (tool) to files like /dev/stdin to fail,
which may link to /proc/self/fd/0 on containers or elsewhere.

Test-case:

    ubuntu@cosmic:~/node$
    $ strace -E LD_LIBRARY_PATH=/usr/local/lib/ -f -e lstat,readlink \
      node test/parallel/test-fs-realpath-pipe.js

With path_max:

    [pid 17785] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 17786] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 17785] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 17786] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] readlink("/proc/self", 0x7f2a6c000b40, 0) = -1 EINVAL (Invalid argument)

Without path_max:

    [pid 18114] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18114] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18114] readlink("/dev/stdin", "/proc/self/fd/0", 4096) = 15

    [pid 18114] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18114] readlink("/proc/self", "18114", 4096) = 5

    [pid 18114] lstat("/proc/18114", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18114] readlink("/proc/18114/fd/0", "socket:[199607]", 4096) = 15

With this patch on top of path_max:

    [pid 18433] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 18433] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] readlink("/proc/self", "18433", 256) = 5

    [pid 18433] lstat("/proc/18433", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] readlink("/proc/18433/fd/0", "socket:[191351]", 64) = 15
Reviewed-by: dod
Gbp-Pq: Name path_max_zero_st_size

21 months agoexport RES_OPTIONS = attempts:0 makes this test fail
Jérémy Lal [Wed, 28 Feb 2024 21:01:37 +0000 (21:01 +0000)]
export RES_OPTIONS = attempts:0 makes this test fail

Last-Update: 2017-10-12
Forwarded: not-needed

Gbp-Pq: Name disable_ipv6_test.patch

21 months agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Wed, 28 Feb 2024 21:01:37 +0000 (21:01 +0000)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

21 months agolibuv1 (1.48.0-1.1) unstable; urgency=medium
Graham Inggs [Wed, 28 Feb 2024 21:01:37 +0000 (21:01 +0000)]
libuv1 (1.48.0-1.1) unstable; urgency=medium

  * Non-maintainer upload.
  * Rename libraries for 64-bit time_t transition.  Closes: #1062694

[dgit import unpatched libuv1 1.48.0-1.1]

21 months agoImport libuv1_1.48.0-1.1.debian.tar.xz
Graham Inggs [Wed, 28 Feb 2024 21:01:37 +0000 (21:01 +0000)]
Import libuv1_1.48.0-1.1.debian.tar.xz

[dgit import tarball libuv1 1.48.0-1.1 libuv1_1.48.0-1.1.debian.tar.xz]

22 months agoImport libuv1_1.48.0.orig.tar.gz
Dominique Dumont [Wed, 14 Feb 2024 17:47:19 +0000 (18:47 +0100)]
Import libuv1_1.48.0.orig.tar.gz

[dgit import orig libuv1_1.48.0.orig.tar.gz]

22 months agoMerge libuv1 (1.48.0-1) import into refs/heads/workingbranch
Dominique Dumont [Wed, 14 Feb 2024 17:47:19 +0000 (18:47 +0100)]
Merge libuv1 (1.48.0-1) import into refs/heads/workingbranch

22 months agoSkip multicast test
Dominique Dumont [Wed, 14 Feb 2024 17:47:19 +0000 (18:47 +0100)]
Skip multicast test

Forwarded: not-needed

Skip muliticast test to avoid this error on all build daemons:

ok 346 - udp_multicast_interface6
not ok 347 - udp_multicast_join
# timeout
# Output from process `udp_multicast_join`: (no output)
not ok 348 - udp_multicast_join6
# timeout
# Output from process `udp_multicast_join6`: (no output)
ok 349 - udp_multicast_ttl

Gbp-Pq: Name skip-multicast-test

22 months agofix undefined path_max for st_size zero
Mauricio Faria de Oliveira [Wed, 14 Feb 2024 17:47:19 +0000 (18:47 +0100)]
fix undefined path_max for st_size zero

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1792647
Bug-Debian: https://bugs.debian.org/909011
Reviewed-by: dod
The downstream 'path_max' patch in Debian sets the buffer size
for readlink() to the 'st_size' value obtained with lstat().

However, it might be zero for some symlinks in /proc on Linux
(notably /proc/self) leading to readlink() failing with EINVAL.

    $ strace -e lstat stat /proc/self 2>&1 \
        | grep -e lstat -e File: -e Size:
    lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      File: /proc/self -> 30875
      Size: 0             Blocks: 0          IO Block: 1024   symbolic link

This causes readlink (tool) to files like /dev/stdin to fail,
which may link to /proc/self/fd/0 on containers or elsewhere.

Test-case:

    ubuntu@cosmic:~/node$
    $ strace -E LD_LIBRARY_PATH=/usr/local/lib/ -f -e lstat,readlink \
      node test/parallel/test-fs-realpath-pipe.js

With path_max:

    [pid 17785] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 17786] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 17785] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 17786] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] readlink("/proc/self", 0x7f2a6c000b40, 0) = -1 EINVAL (Invalid argument)

Without path_max:

    [pid 18114] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18114] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18114] readlink("/dev/stdin", "/proc/self/fd/0", 4096) = 15

    [pid 18114] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18114] readlink("/proc/self", "18114", 4096) = 5

    [pid 18114] lstat("/proc/18114", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18114] readlink("/proc/18114/fd/0", "socket:[199607]", 4096) = 15

With this patch on top of path_max:

    [pid 18433] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 18433] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] readlink("/proc/self", "18433", 256) = 5

    [pid 18433] lstat("/proc/18433", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] readlink("/proc/18433/fd/0", "socket:[191351]", 64) = 15
Reviewed-by: dod
Gbp-Pq: Name path_max_zero_st_size

22 months agoexport RES_OPTIONS = attempts:0 makes this test fail
Jérémy Lal [Wed, 14 Feb 2024 17:47:19 +0000 (18:47 +0100)]
export RES_OPTIONS = attempts:0 makes this test fail

Last-Update: 2017-10-12
Forwarded: not-needed

Gbp-Pq: Name disable_ipv6_test.patch

22 months agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Wed, 14 Feb 2024 17:47:19 +0000 (18:47 +0100)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

22 months agolibuv1 (1.48.0-1) unstable; urgency=medium
Dominique Dumont [Wed, 14 Feb 2024 17:47:19 +0000 (18:47 +0100)]
libuv1 (1.48.0-1) unstable; urgency=medium

  [ Dominique Dumont ]
  * new upstream version:
    * Fix CVE-2024-24806 (Closes: #1063484)
  * copyright: update with cme
  * refreshed patches
  * rm patch lp2046442-linux-don-t-use-io_uring-...
  * refreshed symbols file

[dgit import unpatched libuv1 1.48.0-1]

22 months agoImport libuv1_1.48.0-1.debian.tar.xz
Dominique Dumont [Wed, 14 Feb 2024 17:47:19 +0000 (18:47 +0100)]
Import libuv1_1.48.0-1.debian.tar.xz

[dgit import tarball libuv1 1.48.0-1 libuv1_1.48.0-1.debian.tar.xz]

23 months agoMerge libuv1 (1.46.0-3) import into refs/heads/workingbranch
Dominique Dumont [Sat, 30 Dec 2023 17:32:28 +0000 (18:32 +0100)]
Merge libuv1 (1.46.0-3) import into refs/heads/workingbranch

23 months ago[PATCH] linux: don't use io_uring on pre-5.10.186 kernels (#4093)
Ben Noordhuis [Sat, 30 Dec 2023 17:32:28 +0000 (18:32 +0100)]
[PATCH] linux: don't use io_uring on pre-5.10.186 kernels (#4093)

Bug: https://github.com/libuv/libuv/issues/4089
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libuv1/+bug/2046442
Origin: upstream, https://github.com/libuv/libuv/commit/50b53cbd0db8d4e7be06939a0976ff520e791d31
Applied-Upstream: v1.47.0

Fixes: https://github.com/libuv/libuv/issues/4089
thread busy-loops.

Gbp-Pq: Name lp2046442-linux-don-t-use-io_uring-on-pre-5.10.186-kernels-409.patch

23 months agoSkip multicast test
Dominique Dumont [Sat, 30 Dec 2023 17:32:28 +0000 (18:32 +0100)]
Skip multicast test

Forwarded: not-needed

Skip muliticast test to avoid this error on all build daemons:

ok 346 - udp_multicast_interface6
not ok 347 - udp_multicast_join
# timeout
# Output from process `udp_multicast_join`: (no output)
not ok 348 - udp_multicast_join6
# timeout
# Output from process `udp_multicast_join6`: (no output)
ok 349 - udp_multicast_ttl

Gbp-Pq: Name skip-multicast-test

23 months agofix undefined path_max for st_size zero
Mauricio Faria de Oliveira [Sat, 30 Dec 2023 17:32:28 +0000 (18:32 +0100)]
fix undefined path_max for st_size zero

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1792647
Bug-Debian: https://bugs.debian.org/909011
Reviewed-by: dod
The downstream 'path_max' patch in Debian sets the buffer size
for readlink() to the 'st_size' value obtained with lstat().

However, it might be zero for some symlinks in /proc on Linux
(notably /proc/self) leading to readlink() failing with EINVAL.

    $ strace -e lstat stat /proc/self 2>&1 \
        | grep -e lstat -e File: -e Size:
    lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      File: /proc/self -> 30875
      Size: 0             Blocks: 0          IO Block: 1024   symbolic link

This causes readlink (tool) to files like /dev/stdin to fail,
which may link to /proc/self/fd/0 on containers or elsewhere.

Test-case:

    ubuntu@cosmic:~/node$
    $ strace -E LD_LIBRARY_PATH=/usr/local/lib/ -f -e lstat,readlink \
      node test/parallel/test-fs-realpath-pipe.js

With path_max:

    [pid 17785] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 17786] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 17785] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 17786] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] readlink("/proc/self", 0x7f2a6c000b40, 0) = -1 EINVAL (Invalid argument)

Without path_max:

    [pid 18114] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18114] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18114] readlink("/dev/stdin", "/proc/self/fd/0", 4096) = 15

    [pid 18114] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18114] readlink("/proc/self", "18114", 4096) = 5

    [pid 18114] lstat("/proc/18114", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18114] readlink("/proc/18114/fd/0", "socket:[199607]", 4096) = 15

With this patch on top of path_max:

    [pid 18433] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 18433] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] readlink("/proc/self", "18433", 256) = 5

    [pid 18433] lstat("/proc/18433", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] readlink("/proc/18433/fd/0", "socket:[191351]", 64) = 15
Reviewed-by: dod
Gbp-Pq: Name path_max_zero_st_size

23 months agoexport RES_OPTIONS = attempts:0 makes this test fail
Jérémy Lal [Sat, 30 Dec 2023 17:32:28 +0000 (18:32 +0100)]
export RES_OPTIONS = attempts:0 makes this test fail

Last-Update: 2017-10-12
Forwarded: not-needed

Gbp-Pq: Name disable_ipv6_test.patch

23 months agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Sat, 30 Dec 2023 17:32:28 +0000 (18:32 +0100)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

23 months agolibuv1 (1.46.0-3) unstable; urgency=medium
Dominique Dumont [Sat, 30 Dec 2023 17:32:28 +0000 (18:32 +0100)]
libuv1 (1.46.0-3) unstable; urgency=medium

  * add patch to fix build on kernel < 5.10.186.
    Thanks to Simon Choppin and Ubuntu fot the patch (Closes: 1058743)

[dgit import unpatched libuv1 1.46.0-3]

23 months agoImport libuv1_1.46.0-3.debian.tar.xz
Dominique Dumont [Sat, 30 Dec 2023 17:32:28 +0000 (18:32 +0100)]
Import libuv1_1.46.0-3.debian.tar.xz

[dgit import tarball libuv1 1.46.0-3 libuv1_1.46.0-3.debian.tar.xz]

2 years agoMerge libuv1 (1.46.0-2) import into refs/heads/workingbranch
Dominique Dumont [Sun, 15 Oct 2023 14:37:48 +0000 (15:37 +0100)]
Merge libuv1 (1.46.0-2) import into refs/heads/workingbranch

2 years agoSkip multicast test
Dominique Dumont [Sun, 15 Oct 2023 14:37:48 +0000 (15:37 +0100)]
Skip multicast test

Forwarded: not-needed

Skip muliticast test to avoid this error on all build daemons:

ok 346 - udp_multicast_interface6
not ok 347 - udp_multicast_join
# timeout
# Output from process `udp_multicast_join`: (no output)
not ok 348 - udp_multicast_join6
# timeout
# Output from process `udp_multicast_join6`: (no output)
ok 349 - udp_multicast_ttl

Gbp-Pq: Name skip-multicast-test

2 years agofix undefined path_max for st_size zero
Mauricio Faria de Oliveira [Sun, 15 Oct 2023 14:37:48 +0000 (15:37 +0100)]
fix undefined path_max for st_size zero

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1792647
Bug-Debian: https://bugs.debian.org/909011
Reviewed-by: dod
The downstream 'path_max' patch in Debian sets the buffer size
for readlink() to the 'st_size' value obtained with lstat().

However, it might be zero for some symlinks in /proc on Linux
(notably /proc/self) leading to readlink() failing with EINVAL.

    $ strace -e lstat stat /proc/self 2>&1 \
        | grep -e lstat -e File: -e Size:
    lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      File: /proc/self -> 30875
      Size: 0             Blocks: 0          IO Block: 1024   symbolic link

This causes readlink (tool) to files like /dev/stdin to fail,
which may link to /proc/self/fd/0 on containers or elsewhere.

Test-case:

    ubuntu@cosmic:~/node$
    $ strace -E LD_LIBRARY_PATH=/usr/local/lib/ -f -e lstat,readlink \
      node test/parallel/test-fs-realpath-pipe.js

With path_max:

    [pid 17785] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 17786] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 17785] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 17786] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] readlink("/proc/self", 0x7f2a6c000b40, 0) = -1 EINVAL (Invalid argument)

Without path_max:

    [pid 18114] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18114] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18114] readlink("/dev/stdin", "/proc/self/fd/0", 4096) = 15

    [pid 18114] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18114] readlink("/proc/self", "18114", 4096) = 5

    [pid 18114] lstat("/proc/18114", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18114] readlink("/proc/18114/fd/0", "socket:[199607]", 4096) = 15

With this patch on top of path_max:

    [pid 18433] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 18433] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] readlink("/proc/self", "18433", 256) = 5

    [pid 18433] lstat("/proc/18433", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] readlink("/proc/18433/fd/0", "socket:[191351]", 64) = 15
Reviewed-by: dod
Gbp-Pq: Name path_max_zero_st_size

2 years agoexport RES_OPTIONS = attempts:0 makes this test fail
Jérémy Lal [Sun, 15 Oct 2023 14:37:48 +0000 (15:37 +0100)]
export RES_OPTIONS = attempts:0 makes this test fail

Last-Update: 2017-10-12
Forwarded: not-needed

Gbp-Pq: Name disable_ipv6_test.patch

2 years agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Sun, 15 Oct 2023 14:37:48 +0000 (15:37 +0100)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

2 years agolibuv1 (1.46.0-2) unstable; urgency=medium
Dominique Dumont [Sun, 15 Oct 2023 14:37:48 +0000 (15:37 +0100)]
libuv1 (1.46.0-2) unstable; urgency=medium

  * re-release to unstable

[dgit import unpatched libuv1 1.46.0-2]

2 years agoImport libuv1_1.46.0-2.debian.tar.xz
Dominique Dumont [Sun, 15 Oct 2023 14:37:48 +0000 (15:37 +0100)]
Import libuv1_1.46.0-2.debian.tar.xz

[dgit import tarball libuv1 1.46.0-2 libuv1_1.46.0-2.debian.tar.xz]

2 years agoImport libuv1_1.46.0.orig.tar.gz
Dominique Dumont [Tue, 5 Sep 2023 16:34:19 +0000 (18:34 +0200)]
Import libuv1_1.46.0.orig.tar.gz

[dgit import orig libuv1_1.46.0.orig.tar.gz]

2 years agoImport libuv1_1.46.0.orig.tar.gz
Dominique Dumont [Tue, 5 Sep 2023 16:34:19 +0000 (17:34 +0100)]
Import libuv1_1.46.0.orig.tar.gz

[dgit import orig libuv1_1.46.0.orig.tar.gz]

3 years agoMerge libuv1 (1.44.2-1) import into refs/heads/workingbranch
Dominique Dumont [Thu, 28 Jul 2022 16:35:31 +0000 (17:35 +0100)]
Merge libuv1 (1.44.2-1) import into refs/heads/workingbranch

3 years agoSkip multicast test
Dominique Dumont [Thu, 28 Jul 2022 16:35:31 +0000 (17:35 +0100)]
Skip multicast test

Forwarded: not-needed

Skip muliticast test to avoid this error on all build daemons:

ok 346 - udp_multicast_interface6
not ok 347 - udp_multicast_join
# timeout
# Output from process `udp_multicast_join`: (no output)
not ok 348 - udp_multicast_join6
# timeout
# Output from process `udp_multicast_join6`: (no output)
ok 349 - udp_multicast_ttl

Gbp-Pq: Name skip-multicast-test

3 years agofix undefined path_max for st_size zero
Mauricio Faria de Oliveira [Thu, 28 Jul 2022 16:35:31 +0000 (17:35 +0100)]
fix undefined path_max for st_size zero

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1792647
Bug-Debian: https://bugs.debian.org/909011
Reviewed-by: dod
The downstream 'path_max' patch in Debian sets the buffer size
for readlink() to the 'st_size' value obtained with lstat().

However, it might be zero for some symlinks in /proc on Linux
(notably /proc/self) leading to readlink() failing with EINVAL.

    $ strace -e lstat stat /proc/self 2>&1 \
        | grep -e lstat -e File: -e Size:
    lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      File: /proc/self -> 30875
      Size: 0             Blocks: 0          IO Block: 1024   symbolic link

This causes readlink (tool) to files like /dev/stdin to fail,
which may link to /proc/self/fd/0 on containers or elsewhere.

Test-case:

    ubuntu@cosmic:~/node$
    $ strace -E LD_LIBRARY_PATH=/usr/local/lib/ -f -e lstat,readlink \
      node test/parallel/test-fs-realpath-pipe.js

With path_max:

    [pid 17785] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 17786] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 17785] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 17786] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] readlink("/proc/self", 0x7f2a6c000b40, 0) = -1 EINVAL (Invalid argument)

Without path_max:

    [pid 18114] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18114] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18114] readlink("/dev/stdin", "/proc/self/fd/0", 4096) = 15

    [pid 18114] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18114] readlink("/proc/self", "18114", 4096) = 5

    [pid 18114] lstat("/proc/18114", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18114] readlink("/proc/18114/fd/0", "socket:[199607]", 4096) = 15

With this patch on top of path_max:

    [pid 18433] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 18433] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] readlink("/proc/self", "18433", 256) = 5

    [pid 18433] lstat("/proc/18433", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] readlink("/proc/18433/fd/0", "socket:[191351]", 64) = 15
Reviewed-by: dod
Gbp-Pq: Name path_max_zero_st_size

3 years agoexport RES_OPTIONS = attempts:0 makes this test fail
Jérémy Lal [Thu, 28 Jul 2022 16:35:31 +0000 (17:35 +0100)]
export RES_OPTIONS = attempts:0 makes this test fail

Last-Update: 2017-10-12
Forwarded: not-needed

Gbp-Pq: Name disable_ipv6_test.patch

3 years agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Thu, 28 Jul 2022 16:35:31 +0000 (17:35 +0100)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

3 years agolibuv1 (1.44.2-1) unstable; urgency=medium
Dominique Dumont [Thu, 28 Jul 2022 16:35:31 +0000 (17:35 +0100)]
libuv1 (1.44.2-1) unstable; urgency=medium

  * new upstream version
  * copyright: updated with cme
  * remove pristine-tar from build process
  * update symbols file

[dgit import unpatched libuv1 1.44.2-1]

3 years agoImport libuv1_1.44.2.orig.tar.gz
Dominique Dumont [Thu, 28 Jul 2022 16:35:31 +0000 (17:35 +0100)]
Import libuv1_1.44.2.orig.tar.gz

[dgit import orig libuv1_1.44.2.orig.tar.gz]

3 years agoImport libuv1_1.44.2-1.debian.tar.xz
Dominique Dumont [Thu, 28 Jul 2022 16:35:31 +0000 (17:35 +0100)]
Import libuv1_1.44.2-1.debian.tar.xz

[dgit import tarball libuv1 1.44.2-1 libuv1_1.44.2-1.debian.tar.xz]

3 years agoMerge libuv1 (1.44.1-2) import into refs/heads/workingbranch
Dominique Dumont [Wed, 16 Mar 2022 18:16:11 +0000 (18:16 +0000)]
Merge libuv1 (1.44.1-2) import into refs/heads/workingbranch

3 years agoSkip multicast test
Dominique Dumont [Wed, 16 Mar 2022 18:16:11 +0000 (18:16 +0000)]
Skip multicast test

Forwarded: not-needed

Skip muliticast test to avoid this error on all build daemons:

ok 346 - udp_multicast_interface6
not ok 347 - udp_multicast_join
# timeout
# Output from process `udp_multicast_join`: (no output)
not ok 348 - udp_multicast_join6
# timeout
# Output from process `udp_multicast_join6`: (no output)
ok 349 - udp_multicast_ttl

Gbp-Pq: Name skip-multicast-test

3 years agofix undefined path_max for st_size zero
Mauricio Faria de Oliveira [Wed, 16 Mar 2022 18:16:11 +0000 (18:16 +0000)]
fix undefined path_max for st_size zero

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1792647
Bug-Debian: https://bugs.debian.org/909011
Reviewed-by: dod
The downstream 'path_max' patch in Debian sets the buffer size
for readlink() to the 'st_size' value obtained with lstat().

However, it might be zero for some symlinks in /proc on Linux
(notably /proc/self) leading to readlink() failing with EINVAL.

    $ strace -e lstat stat /proc/self 2>&1 \
        | grep -e lstat -e File: -e Size:
    lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      File: /proc/self -> 30875
      Size: 0             Blocks: 0          IO Block: 1024   symbolic link

This causes readlink (tool) to files like /dev/stdin to fail,
which may link to /proc/self/fd/0 on containers or elsewhere.

Test-case:

    ubuntu@cosmic:~/node$
    $ strace -E LD_LIBRARY_PATH=/usr/local/lib/ -f -e lstat,readlink \
      node test/parallel/test-fs-realpath-pipe.js

With path_max:

    [pid 17785] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 17786] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 17785] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 17786] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] readlink("/proc/self", 0x7f2a6c000b40, 0) = -1 EINVAL (Invalid argument)

Without path_max:

    [pid 18114] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18114] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18114] readlink("/dev/stdin", "/proc/self/fd/0", 4096) = 15

    [pid 18114] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18114] readlink("/proc/self", "18114", 4096) = 5

    [pid 18114] lstat("/proc/18114", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18114] readlink("/proc/18114/fd/0", "socket:[199607]", 4096) = 15

With this patch on top of path_max:

    [pid 18433] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 18433] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] readlink("/proc/self", "18433", 256) = 5

    [pid 18433] lstat("/proc/18433", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] readlink("/proc/18433/fd/0", "socket:[191351]", 64) = 15
Reviewed-by: dod
Gbp-Pq: Name path_max_zero_st_size

3 years agoexport RES_OPTIONS = attempts:0 makes this test fail
Jérémy Lal [Wed, 16 Mar 2022 18:16:11 +0000 (18:16 +0000)]
export RES_OPTIONS = attempts:0 makes this test fail

Last-Update: 2017-10-12
Forwarded: not-needed

Gbp-Pq: Name disable_ipv6_test.patch

3 years agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Wed, 16 Mar 2022 18:16:11 +0000 (18:16 +0000)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

3 years agolibuv1 (1.44.1-2) unstable; urgency=medium
Dominique Dumont [Wed, 16 Mar 2022 18:16:11 +0000 (18:16 +0000)]
libuv1 (1.44.1-2) unstable; urgency=medium

  * update symbols file to fix hurd packaging

[dgit import unpatched libuv1 1.44.1-2]

3 years agoImport libuv1_1.44.1-2.debian.tar.xz
Dominique Dumont [Wed, 16 Mar 2022 18:16:11 +0000 (18:16 +0000)]
Import libuv1_1.44.1-2.debian.tar.xz

[dgit import tarball libuv1 1.44.1-2 libuv1_1.44.1-2.debian.tar.xz]

3 years agoImport libuv1_1.44.1.orig.tar.gz
Dominique Dumont [Sun, 13 Mar 2022 18:24:56 +0000 (18:24 +0000)]
Import libuv1_1.44.1.orig.tar.gz

[dgit import orig libuv1_1.44.1.orig.tar.gz]

4 years agoMerge libuv1 (1.40.0-2) import into refs/heads/workingbranch
Dominique Dumont [Sun, 4 Jul 2021 07:43:38 +0000 (08:43 +0100)]
Merge libuv1 (1.40.0-2) import into refs/heads/workingbranch

4 years agoFix CVE-2021-22918
Dominique Dumont [Sun, 4 Jul 2021 07:43:38 +0000 (08:43 +0100)]
Fix CVE-2021-22918

Bug-Debian: https://bugs.debian.org/990561
Forwarded: not-needed
Origin: https://github.com/nodejs/node/commit/d33aead28bcec32a2a450f884907a6d971631829

Snatched from original commit:

Original commit message:

    idna: fix OOB read in punycode decoder

    Reported by Eric Sesterhenn in collaboration with
    Cure53 and ExpressVPN.

Reported-By: Eric Sesterhenn <eric.sesterhenn@x41-dsec.de>
    PR-URL: https://github.com/libuv/libuv-private/pull/1
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
CVE-ID: CVE-2021-22918
Refs: https://hackerone.com/reports/1209681
PR-URL: nodejs-private/node-private#267
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Gbp-Pq: Name fix-cve-2021-22918

4 years agoSkip multicast test
Dominique Dumont [Sun, 4 Jul 2021 07:43:38 +0000 (08:43 +0100)]
Skip multicast test

Forwarded: not-needed

Skip muliticast test to avoid this error on all build daemons:

ok 346 - udp_multicast_interface6
not ok 347 - udp_multicast_join
# timeout
# Output from process `udp_multicast_join`: (no output)
not ok 348 - udp_multicast_join6
# timeout
# Output from process `udp_multicast_join6`: (no output)
ok 349 - udp_multicast_ttl

Gbp-Pq: Name skip-multicast-test

4 years agofix undefined path_max for st_size zero
Mauricio Faria de Oliveira [Sun, 4 Jul 2021 07:43:38 +0000 (08:43 +0100)]
fix undefined path_max for st_size zero

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1792647
Bug-Debian: https://bugs.debian.org/909011
Reviewed-by: dod
The downstream 'path_max' patch in Debian sets the buffer size
for readlink() to the 'st_size' value obtained with lstat().

However, it might be zero for some symlinks in /proc on Linux
(notably /proc/self) leading to readlink() failing with EINVAL.

    $ strace -e lstat stat /proc/self 2>&1 \
        | grep -e lstat -e File: -e Size:
    lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      File: /proc/self -> 30875
      Size: 0             Blocks: 0          IO Block: 1024   symbolic link

This causes readlink (tool) to files like /dev/stdin to fail,
which may link to /proc/self/fd/0 on containers or elsewhere.

Test-case:

    ubuntu@cosmic:~/node$
    $ strace -E LD_LIBRARY_PATH=/usr/local/lib/ -f -e lstat,readlink \
      node test/parallel/test-fs-realpath-pipe.js

With path_max:

    [pid 17785] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 17786] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 17785] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 17786] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] readlink("/proc/self", 0x7f2a6c000b40, 0) = -1 EINVAL (Invalid argument)

Without path_max:

    [pid 18114] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18114] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18114] readlink("/dev/stdin", "/proc/self/fd/0", 4096) = 15

    [pid 18114] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18114] readlink("/proc/self", "18114", 4096) = 5

    [pid 18114] lstat("/proc/18114", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18114] readlink("/proc/18114/fd/0", "socket:[199607]", 4096) = 15

With this patch on top of path_max:

    [pid 18433] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 18433] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] readlink("/proc/self", "18433", 256) = 5

    [pid 18433] lstat("/proc/18433", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] readlink("/proc/18433/fd/0", "socket:[191351]", 64) = 15
Reviewed-by: dod
Gbp-Pq: Name path_max_zero_st_size

4 years agoexport RES_OPTIONS = attempts:0 makes this test fail
Jérémy Lal [Sun, 4 Jul 2021 07:43:38 +0000 (08:43 +0100)]
export RES_OPTIONS = attempts:0 makes this test fail

Last-Update: 2017-10-12
Forwarded: not-needed

Gbp-Pq: Name disable_ipv6_test.patch

4 years agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Sun, 4 Jul 2021 07:43:38 +0000 (08:43 +0100)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

4 years agolibuv1 (1.40.0-2) unstable; urgency=medium
Dominique Dumont [Sun, 4 Jul 2021 07:43:38 +0000 (08:43 +0100)]
libuv1 (1.40.0-2) unstable; urgency=medium

  * add patch for CVE-2021-22918 (Closes: #990561)

[dgit import unpatched libuv1 1.40.0-2]

4 years agoImport libuv1_1.40.0-2.debian.tar.xz
Dominique Dumont [Sun, 4 Jul 2021 07:43:38 +0000 (08:43 +0100)]
Import libuv1_1.40.0-2.debian.tar.xz

[dgit import tarball libuv1 1.40.0-2 libuv1_1.40.0-2.debian.tar.xz]

5 years agoMerge libuv1 (1.40.0-1) import into refs/heads/workingbranch
Dominique Dumont [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
Merge libuv1 (1.40.0-1) import into refs/heads/workingbranch

5 years agoImport libuv1_1.40.0.orig.tar.gz
Dominique Dumont [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
Import libuv1_1.40.0.orig.tar.gz

[dgit import orig libuv1_1.40.0.orig.tar.gz]

5 years agoSkip multicast test
Dominique Dumont [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
Skip multicast test

Forwarded: not-needed

Skip muliticast test to avoid this error on all build daemons:

ok 346 - udp_multicast_interface6
not ok 347 - udp_multicast_join
# timeout
# Output from process `udp_multicast_join`: (no output)
not ok 348 - udp_multicast_join6
# timeout
# Output from process `udp_multicast_join6`: (no output)
ok 349 - udp_multicast_ttl

Gbp-Pq: Name skip-multicast-test

5 years agofix undefined path_max for st_size zero
Mauricio Faria de Oliveira [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
fix undefined path_max for st_size zero

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1792647
Bug-Debian: https://bugs.debian.org/909011
Reviewed-by: dod
The downstream 'path_max' patch in Debian sets the buffer size
for readlink() to the 'st_size' value obtained with lstat().

However, it might be zero for some symlinks in /proc on Linux
(notably /proc/self) leading to readlink() failing with EINVAL.

    $ strace -e lstat stat /proc/self 2>&1 \
        | grep -e lstat -e File: -e Size:
    lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      File: /proc/self -> 30875
      Size: 0             Blocks: 0          IO Block: 1024   symbolic link

This causes readlink (tool) to files like /dev/stdin to fail,
which may link to /proc/self/fd/0 on containers or elsewhere.

Test-case:

    ubuntu@cosmic:~/node$
    $ strace -E LD_LIBRARY_PATH=/usr/local/lib/ -f -e lstat,readlink \
      node test/parallel/test-fs-realpath-pipe.js

With path_max:

    [pid 17785] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 17786] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 17785] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 17786] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] readlink("/proc/self", 0x7f2a6c000b40, 0) = -1 EINVAL (Invalid argument)

Without path_max:

    [pid 18114] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18114] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18114] readlink("/dev/stdin", "/proc/self/fd/0", 4096) = 15

    [pid 18114] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18114] readlink("/proc/self", "18114", 4096) = 5

    [pid 18114] lstat("/proc/18114", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18114] readlink("/proc/18114/fd/0", "socket:[199607]", 4096) = 15

With this patch on top of path_max:

    [pid 18433] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 18433] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] readlink("/proc/self", "18433", 256) = 5

    [pid 18433] lstat("/proc/18433", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] readlink("/proc/18433/fd/0", "socket:[191351]", 64) = 15
Reviewed-by: dod
Gbp-Pq: Name path_max_zero_st_size

5 years agoexport RES_OPTIONS = attempts:0 makes this test fail
Jérémy Lal [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
export RES_OPTIONS = attempts:0 makes this test fail

Last-Update: 2017-10-12
Forwarded: not-needed

Gbp-Pq: Name disable_ipv6_test.patch

5 years agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

5 years agolibuv1 (1.40.0-1) unstable; urgency=medium
Dominique Dumont [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
libuv1 (1.40.0-1) unstable; urgency=medium

  * new upstream version
  * update copyright with cme
  * refreshed patch
  * update symbol file

[dgit import unpatched libuv1 1.40.0-1]

5 years agoImport libuv1_1.40.0-1.debian.tar.xz
Dominique Dumont [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
Import libuv1_1.40.0-1.debian.tar.xz

[dgit import tarball libuv1 1.40.0-1 libuv1_1.40.0-1.debian.tar.xz]

9 years agotest: skip tty_pty test if pty is not available
Luca Bruno [Sun, 23 Oct 2016 13:36:45 +0000 (14:36 +0100)]
test: skip tty_pty test if pty is not available

Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Forwarded: yes, accepted already: https://github.com/libuv/libuv/pull/919
Last-Update: Sun, 19 Jun 2016 18:20:53 +0200

Do not let `tty_pty` test fail if no terminals are available
to `openpty()`.

Gbp-Pq: Name skip_test_if_no_pty.patch

9 years agokfreebsd port
Jérémy Lal [Sun, 23 Oct 2016 13:36:45 +0000 (14:36 +0100)]
kfreebsd port

Last-Update: 2015-09-19
Forwarded: not yet

===================================================================

Gbp-Pq: Name kfreebsd.patch

9 years agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Sun, 23 Oct 2016 13:36:45 +0000 (14:36 +0100)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

9 years ago[PATCH] unix: use libc-provided epoll_pwait wrapper
Luca Bruno [Tue, 12 May 2015 20:04:35 +0000 (22:04 +0200)]
[PATCH] unix: use libc-provided epoll_pwait wrapper

Bug-Debian: https://bugs.debian.org/841354

Signed-off-by: Luca Bruno <lucab@debian.org>
We now use epoll_pwait() wrapper from libc, which takes care
of passing proper sigset_t size to kernel.

This is more portable, as some arch have a larger sigmask and
kernel explicitely checks size parameter to match sizeof(sigset_t).
Spotted as a uv_loop_configure regression on MIPS.

This fixes #335.

Many thanks to Tobias Leich who amended this
patch to fix #841354

Gbp-Pq: Name mips-epoll_pwait.diff

9 years agolibuv1 (1.9.1-3) unstable; urgency=medium
Mattia Rizzolo [Sun, 23 Oct 2016 13:36:45 +0000 (14:36 +0100)]
libuv1 (1.9.1-3) unstable; urgency=medium

  * Team upload.
  * Make libuv1-dev libkvm-dev on kfreebsd-any.  (Closes: #834563)
  * Bump Standards-Version to 3.9.8, no changes needed.
  * Add patch from upstream to don't fail the build if /dev/pty is not present.

[dgit import unpatched libuv1 1.9.1-3]

9 years agoImport libuv1_1.9.1-3.debian.tar.xz
Mattia Rizzolo [Sun, 23 Oct 2016 13:36:45 +0000 (14:36 +0100)]
Import libuv1_1.9.1-3.debian.tar.xz

[dgit import tarball libuv1 1.9.1-3 libuv1_1.9.1-3.debian.tar.xz]

9 years agoImport libuv1_1.9.1.orig.tar.gz
Luca Bruno [Sun, 29 May 2016 17:29:08 +0000 (18:29 +0100)]
Import libuv1_1.9.1.orig.tar.gz

[dgit import orig libuv1_1.9.1.orig.tar.gz]