Git Product home page Git Product logo

busybox's Introduction

mirror

This repo is a meta-repository for housing all issues and tooling related to the administration of the mirror org and its repositories.

Index

Repo Name Mirror URL Upstream URL
TODO TODO TODO

About

Mirror is dedicated to hosting unofficial Git mirrors of various popular opens-source repositories that are scattered across the internet.

Contributing

There are various ways one can contribute.

Requesting a new repository mirror

Before you request that a repository be mirrored, please take a look through our repositories to make sure that the repository you are looking for isn't already mirrored.

Otherwise, open an issue in this repository and use the "Request to mirror a repo" template to provide us with some details about the repository you'd like to see mirrored. Generally we can only mirror repositories that have licenses that allow for redistribution of the source code.

Requesting an existing mirror be removed

There are only two cases when a mirror will be considered for removal:

  1. If the upstream repo is no longer being maintained because it has moved either to GitHub or elsewhere and it no longer makes sense for us maintain a mirror.
  2. If there is a genuine legal concern regarding compliance with the license terms of the upstream repository (e.g. not using a Free/Libre or Open Source license) that would affect our ability to legally redistribute the source code.

If you believe that a mirror in this org meets one or both of the above cases, then please open an issue in this repo and provide us with some more details about the circumstances.

However, if there are no technical or legal grounds for the removal of the mirror, the issue will be closed without any further action taken.

Making contributions yourself

If you'd rather contribute directly to the project, please feel free to create a pull request. It is also highly recommended that you read the [CONTRIBUTING][CONTRIBUTING.md] docs for more detailed information on making contributions to the org.

busybox's People

Contributors

aakoskin avatar aldot avatar baruchsiach avatar brgl avatar clbr avatar dfandrich avatar dvlasenk avatar dvv avatar erikbandersen avatar explorer09 avatar fabled avatar farmatito avatar jacmet avatar jeremie-koenig avatar landley avatar larhzu avatar martinl84 avatar megari avatar mizvekov avatar ncopa avatar nmeum avatar pereorga avatar rmyorston avatar samm-git avatar theinric avatar timriker avatar vapier avatar virtuoso avatar xmaks avatar zx2c4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

busybox's Issues

filenames from ls command cryptic

I use a more recent busybox version than my built-in version in recovery mode.
I copied the appropriate busybox binary to my device (architecture: arm) and call the ls command from it and get cryptic file names.
can someone tell me what this comes from? compared to the screenshot with the built-in ls

image

STATIC build for CONFIG_FEATURE_NSLOOKUP_BIG=y cannot complated

I build busybox for aarch64 by gcc-linaro-7.5.0, and I found that when I make with the defult "Use internal resolver code instead of libc" , it report errors as log shows; if I cancel it, it works very well.

error logs:

Static linking against glibc, can't use --gc-sections
Trying libraries: crypt m rt
Failed: -Wl,--start-group -lcrypt -lm -lrt -Wl,--end-group
Output of:
/home/user/curl-boringssl-android/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -finline-limit=0 -fno-builtin-strlen -fomit-frame-pointer -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -Os -static -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--start-group applets/built-in.o archival/lib.a archival/libarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a klibc-utils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o klibc-utils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -lrt -Wl,--end-group

libbb/lib.a(inet_common.o): In function INET6_resolve': inet_common.c:(.text.INET6_resolve+0x34): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking coreutils/lib.a(mktemp.o): In function mktemp_main':
mktemp.c:(.text.mktemp_main+0x90): warning: the use of mktemp' is dangerous, better use mkstemp' or mkdtemp' networking/lib.a(ipcalc.o): In function ipcalc_main':
ipcalc.c:(.text.ipcalc_main+0x21c): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function INET_resolve': inet_common.c:(.text.INET_resolve+0x60): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking networking/lib.a(inetd.o): In function reread_config_file':
inetd.c:(.text.reread_config_file+0x278): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(netstat.o): In function ip_port_str': netstat.c:(.text.ip_port_str+0x40): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking networking/lib.a(nslookup.o): In function add_query':
nslookup.c:(.text.add_query+0x7c): undefined reference to __res_mkquery' networking/lib.a(nslookup.o): In function send_queries':
nslookup.c:(.text.send_queries+0x31c): undefined reference to ns_initparse' nslookup.c:(.text.send_queries+0x36c): undefined reference to ns_parserr'
nslookup.c:(.text.send_queries+0x418): undefined reference to ns_name_uncompress' nslookup.c:(.text.send_queries+0x450): undefined reference to ns_name_uncompress'
nslookup.c:(.text.send_queries+0x47c): undefined reference to ns_get32' nslookup.c:(.text.send_queries+0x494): undefined reference to ns_get32'
nslookup.c:(.text.send_queries+0x4ac): undefined reference to ns_get32' nslookup.c:(.text.send_queries+0x4c4): undefined reference to ns_get32'
nslookup.c:(.text.send_queries+0x4dc): undefined reference to ns_get32' nslookup.c:(.text.send_queries+0x54c): undefined reference to ns_name_uncompress'
nslookup.c:(.text.send_queries+0x570): undefined reference to ns_get16' nslookup.c:(.text.send_queries+0x580): undefined reference to ns_get16'
nslookup.c:(.text.send_queries+0x590): undefined reference to ns_get16' nslookup.c:(.text.send_queries+0x634): undefined reference to ns_name_uncompress'
nslookup.c:(.text.send_queries+0x680): undefined reference to ns_get16' nslookup.c:(.text.send_queries+0x69c): undefined reference to ns_name_uncompress'
collect2: error: ld returned 1 exit status
Note: if build needs additional libraries, put them in CONFIG_EXTRA_LDLIBS.
Example: CONFIG_EXTRA_LDLIBS="pthread dl tirpc audit pam"
make: *** [Makefile:718: busybox_unstripped] Error 1

Error if `wget` on `https://ftp.[…]`

Hi.
When I run busybox wget https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.6.4.tar.gz, I'm getting:

Connecting to ftp.openbsd.org (129.128.5.191:443)
wget: TLS error from peer (alert code 40): handshake failure
wget: error getting response: Connection reset by peer

This issue occurs only with https. BusyBox v1.27.2 on Alpine Linux.
Thank you.

udhcpc: Can't dhcp get ip of more than one network card

I use busybox with buildroot, after linux starts, only eth0 can get ip through dhcp. eth1 cannot obtain IP automatically. I need to execute udhcpc -i eth1, then eth1 to obtain IP.

Can anyone give me some advice to automatically get the IPs of all network cards after linux boots。
Thanks!

busybox 1.29.3 misbehaving when doing nslookup to public URLs

I've seen this strange issue while working with busybox v1.29.3 in Rancher k8s cluster v1.23.13+rke2r1. It's unable to do nslookup

shivesh@shivesh-machine:~/rancher$ kubectl run -i --tty --rm debug --image=busybox:1.29.3  --restart=Never -- sh

If you don't see a command prompt, try pressing enter.

/ # nslookup github.com
Server:		10.43.0.10
Address:	10.43.0.10:53

Non-authoritative answer:

*** Can't find github.com: No answer

But when I'm trying to do the same from pod with the latest busybox image, it worked flawlessly.

shivesh@shivesh-machine:~/rancher$ kubectl run -i --tty --rm debug --image=busybox  --restart=Never -- sh
If you don't see a command prompt, try pressing enter.
/ # 
/ # nslookup google.com
Server:		10.43.0.10
Address:	10.43.0.10:53

Non-authoritative answer:
Name:	google.com
Address: 2404:6800:4007:818::200e

Non-authoritative answer:
Name:	google.com
Address: 142.250.77.174

/ # nslookup github.com
Server:		10.43.0.10
Address:	10.43.0.10:53

Non-authoritative answer:

Non-authoritative answer:
Name:	github.com
Address: 20.207.73.82

/ # 

Request MAPT option 0X5F information in udhcpc6

Hi,
I just started using bussybox 1.30 verion, i am able to run udhcpc6 and get v6 ip, but my requirement is to get options
0X5F -MAPT
0X38 -NPT-Server
0X18 -Optional domain list
0X17-DNS-Servers
0X11 -Vendor-options
Right now i am able to get only DNS information, Can any one guide how to can i send custom options request in udhcpc6 client request??

default.script:
echo "Args **** $0 , $1 "
echo " Time-zone $timeZone"
echo " Time-servers $timeserver "
echo " Ntp-servers $ntpsrv "
echo " DNS-server $dns "

Result:
Args **** /usr/share/udhcpc/default.script , bound
Time-zone
Time-servers
Ntp-servers
DNS-server 2606:4700:4700:0000:0000:0000:0000:1111 2001:4860:4860:0000:0000:0000:0000:8888 2001:4860:4860:0000:0000:0000:0000:8844
Bound

Any information on this is greatly appreciated.
Thanks,
Rp

Can grep be updated?

I have noticed the version of grep in busybox is relatively aged/limited. Is it possible to have this updated to something more recent that perhaps supports -P ?
Thanks

make check failed in [email protected]

I meet some problems :make check failed in [email protected] In different operating systems.

Steps to reproduce the issue

make check:
centos8,openEuler20:
FAIL: cpio lists hardlinks
FAIL: hostname-i-works
FAIL: ls-l-works
FAIL: mount -o remount,mand
FAIL: sed embedded NUL
FAIL: sed NUL in command
FAIL: sed nonexistent label

ubuntu18:
FAIL: cpio lists hardlinks
FAIL: sed embedded NUL
FAIL: sed NUL in command
FAIL: sed nonexistent label
FAIL: unzip (subdir only)

suse15:
FAIL: cpio lists hardlinks
FAIL: hostname-i-works
mount: mounting /dev/loop0 on /home/all_spack_env/spack_stage/root/spack-stage-busybox-1.31.1-j4yajnhkcq4g5mj43ftqo6dxzhtxgk5u/spack-src/testsuite/mount.testdir failed: Invalid argument
FAIL: mount -o remount,mand
umount: can't unmount /home/all_spack_env/spack_stage/root/spack-stage-busybox-1.31.1-j4yajnhkcq4g5mj43ftqo6dxzhtxgk5u/spack-src/testsuite/mount.testdir: Invalid argument
FAIL: sed embedded NUL
sed: unsupported command o
FAIL: sed NUL in command
FAIL: sed nonexistent label
unlzma: corrupted data
unlzma: corrupted data
/home/all_spack_env/spack_stage/root/spack-stage-busybox-1.31.1-j4yajnhkcq4g5mj43ftqo6dxzhtxgk5u/spack-src/testsuite/unzip.tests: line 23: zip: command not found
unzip: can't open foo.zip[.zip]
FAIL: unzip (subdir only)

debian10:
FAIL: cpio lists hardlinks
FAIL: sed embedded NUL
sed: unsupported command o
FAIL: sed NUL in command
FAIL: sed nonexistent label
PASS: sed -i with no arg [GNUFAIL]
unlzma: corrupted data
unlzma: corrupted data
/home/all_spack_env/spack_stage/root/spack-stage-busybox-1.31.1-m6tlxk7yyx2maej7a4jvwkhhcx44ym3s/spack-src/testsuite/unzip.tests: line 23: zip: command not found
unzip: can't open foo.zip[.zip]
FAIL: unzip (subdir only)

Can you help me see why happend it?

Busybox Segmentation Fault after login.

Hi,

I am currently working on RISC-V based processor for which we are now moving from BBL (loaded through GDB) to standalone boot-up using OpenSBI and U-Boot. We have written the UART Driver and SPI Driver in U-Boot and can now load/boot linux (vmlinux - BIN) but I can see that the busybox throws a "Segmentation Fault" after I login into the system. The "sh" in busybox is the one throwing segmentation fault here. I have attached the bootup log.

OpenSBI v0.9

<OpenSBI Logo>

Platform Name             : shakti,spike-bare
Platform Features         : timer,mfdeleg
Platform HART Count       : 1
Firmware Base             : 0x80000000
Firmware Size             : 108 KB
Runtime SBI Version       : 0.3

Domain0 Name              : root
Domain0 Boot HART         : 0
Domain0 HARTs             : 0*
Domain0 Region00          : 0x0000000080000000-0x000000008001ffff ()
Domain0 Region01          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address      : 0x0000000080200000
Domain0 Next Arg1         : 0x0000000082200000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 0
Boot HART Domain          : root
Boot HART ISA             : rv64imacnsu
Boot HART Features        : scounteren,mcounteren,time
Boot HART PMP Count       : 0
Boot HART PMP Granularity : 7919418773337001387
Boot HART PMP Address Bits: 213201012
Boot HART MHPM Count      : 0
Boot HART MHPM Count      : 0
Boot HART MIDELEG         : 0x0000000000000222
Boot HART MEDELEG         : 0x000000000000b109
MMC:   [SHAKTI-INFO] Shakti SPI Driver Initialized...
spi@20100:mmc-slot@0: 0
In:    uart
Out:   uart
Err:   uart
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
Shakti U-Boot> run bootcmd
2852 bytes read in 518 ms (4.9 KiB/s)
15226112 bytes read in 1335400 ms (10.7 KiB/s)
 Booting kernel from Legacy Image at 84000000 ...
   Image Name:   Shakti-Vajra
   Image Type:   RISC-V Linux Kernel Image (uncompressed)
   Data Size:    15226048 Bytes = 14.5 MiB
   Load Address: 84000000
   Entry Point:  84000040
   Verifying Checksum ... OK
 Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Kernel Image
   Using Device Tree in place at 0000000088000000, end 0000000088003b23
 Transferring control to kernel (at address 84000040) ...

Starting kernel ...

0 and 88000000
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x84000000

[    0.000000] Linux version 5.5.0-rc1-00032-g264b43306b8c-dirty (venkatakrishnan@venkatakrishnan-ubuntu) (gcc version 10.2.0 (GCC)) #1 Wed Jul 14 12:55:55 IST 2021

[    0.000000] initrd not found or empty - disabling initrd

[    0.000000] Zone ranges:

[    0.000000]   DMA32    [mem 0x0000000084000000-0x000000008fffffff]

[    0.000000]   Normal   empty

[    0.000000] Movable zone start for each node

[    0.000000] Early memory node ranges

[    0.000000]   node   0: [mem 0x0000000084000000-0x000000008fffffff]

[    0.000000] Initmem setup node 0 [mem 0x0000000084000000-0x000000008fffffff]

[    0.000000] software IO TLB: mapped [mem 0x8bd5b000-0x8fd5b000] (64MB)

[    0.000000] elf_hwcap is 0x1105

[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 48480

[    0.000000] Kernel command line: earlyprintk root=/dev/mmcblk1p2 rw rootwait rootfs=ext4 noinitrd selinux=0

[    0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear)

[    0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)

[    0.000000] Sorting __ex_table...

[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off

[    0.000000] Memory: 112684K/196608K available (3867K kernel code, 201K rwdata, 702K rodata, 9856K init, 232K bss, 83924K reserved, 0K cma-reserved)

[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

[    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0

[    0.000000] plic: mapped 29 interrupts with 1 handlers for 2 contexts.

[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]

[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1ef4687b1, max_idle_ns: 112843571739654 ns

[    0.001403] sched_clock: 64 bits at 32kHz, resolution 30517ns, wraps every 70368744171142ns

[    6.036712] printk: console [hvc0] enabled

[    6.188354] Calibrating delay loop (skipped), value calculated using timer frequency.. 0.06 BogoMIPS (lpj=131)

[    6.546874] pid_max: default: 32768 minimum: 301

[    6.774353] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)

[    6.988464] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)

[    7.661102] devtmpfs: initialized

[    8.313964] random: get_random_bytes called from setup_net+0x54/0x1dc with crng_init=0

[    8.598937] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns

[    8.905670] futex hash table entries: 256 (order: 0, 6144 bytes, linear)

[    9.231109] NET: Registered protocol family 16

[   10.946990] clocksource: Switched to clocksource riscv_clocksource

[   11.648681] NET: Registered protocol family 2

[   11.954620] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)

[   12.275756] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)

[   12.574859] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)

[   12.843292] TCP: Hash tables configured (established 2048 bind 2048)

[   13.101928] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)

[   13.341583] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)

[   13.651397] NET: Registered protocol family 1

[   43.764770] workingset: timestamp_bits=62 max_order=15 bucket_order=0

[   57.322448] ntfs: driver 2.1.32 [Flags: R/W DEBUG].

[   57.828308] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)

[   58.104797] io scheduler mq-deadline registered

[   58.249664] io scheduler kyber registered

[   58.562072] io scheduler bfq registered

[   80.824493] shakti_spi 20100.spi: Shakti SPI Driver initialized

[   81.467407] libphy: Fixed MDIO Bus: probed

[   81.641357] xilinx_emaclite 44000.ethernet: Device Tree Probing

[   81.904205] libphy: Xilinx Emaclite MDIO: probed

[   82.159179] xilinx_emaclite 44000.ethernet: MAC address is now 00:0a:35:00:00:00

[   82.676452] xilinx_emaclite 44000.ethernet: Xilinx EmacLite at 0x00044000 mapped to 0x04008000, irq=29

[   83.295562] mmc_spi spi0.0: SD/MMC host mmc0, no DMA, no WP, no poweroff, cd polling

[   83.743865] NET: Registered protocol family 17

[   87.106170] Freeing unused kernel memory: 9856K

[   87.250457] This architecture does not have kernel memory protection.

[   87.505645] Run /init as init process

[   87.939697] mmc0: host does not support reading read-only switch, assuming write-enable

[   88.247863] mmc0: new SDHC card on SPI

[   88.586975] mmcblk0: mmc0:0000 NCard 14.8 GiB 

[   89.673187]  mmcblk0: p1 p2

Starting syslogd: OK

Starting klogd: OK

Running sysctl: OK

Starting mdev... OK

modprobe: can't change directory to '/lib/modules': No such file or directory

Saving random seed: [  668.203765] random: dd: uninitialized urandom read (512 bytes read)

OK

Starting network plug daemon: /etc/netplug.d/netplug eth0 probe -> pid 68

[  678.362823] xilinx_emaclite 44000.ethernet eth0: Link is Down

/etc/netplug.d/netplug eth1 probe -> pid 70

/etc/netplug.d/netplug eth2 probe -> pid 71

/etc/netplug.d/netplug eth3 probe -> pid 72

/etc/netplug.d/netplug eth4 probe -> pid 73

/etc/netplug.d/netplug eth5 probe -> pid 74

/etc/netplug.d/netplug eth6 probe -> pid 75

/etc/netplug.d/netplug eth7 probe -> pid 76

/etc/netplug.d/netplug eth8 probe -> pid 77

/etc/netplug.d/netplug eth9 probe -> pid 78

/etc/netplug.d/netplug eth10 probe -> pid 79

/etc/netplug.d/netplug eth11 probe -> pid 80

/etc/netplug.d/netplug eth12 probe -> pid 81

/etc/netplug.d/netplug eth13 probe -> pid 82

/etc/netplug.d/netplug eth14 probe -> pid 83

/etc/netplug.d/netplug eth15 probe -> pid 84



Starting network: OK

Starting dropbear sshd: [  750.193481] random: dropbear: uninitialized urandom read (32 bytes read)

OK




Welcome to Buildroot


buildroot login: root

Password: 



# 

[ 1785.265594] sh[101]: unhandled signal 11 code 0x1 at 0x00000000656c6976 in busybox[10000+aa000]

[ 1785.600006] CPU: 0 PID: 101 Comm: sh Not tainted 5.5.0-rc1-00032-g264b43306b8c-dirty #1

[ 1785.904663] epc: 000000000004e3f2 ra : 000000000004e3b8 sp : 0000003fffdf6920

[ 1786.169036]  gp : 00000000000bbc90 tp : 0000003fc282b820 t0 : 0000000000000000

[ 1786.434844]  t1 : 0000000000017e3c t2 : 0000003fc28158d8 s0 : 00000000000bd2a0

[ 1786.701660]  s1 : 0000000000000000 a0 : 00000000000c1f10 a1 : 0000000000000000

[ 1786.967529]  a2 : 0000000000000000 a3 : 0000000000000000 a4 : 00000000000bbe18

[ 1787.234069]  a5 : 00000000656c6966 a6 : 0000000000000000 a7 : 0000000000000000

[ 1787.499847]  s2 : 00000000000bbea0 s3 : 00000000000bd5e0 s4 : 0000000000000000

[ 1787.766418]  s5 : 0000000000000000 s6 : ffffffffffffffff s7 : 000000000009a000

[ 1788.033386]  s8 : 00000000000bd5e0 s9 : 0000000000090000 s10: 0000003fffdf6980

[ 1788.299255]  s11: 0000000000000015 t3 : 0000003fc2778a54 t4 : 0000003fc27e45c0

[ 1788.565673]  t5 : 0000000000000005 t6 : ffffffffffffffff

[ 1788.746154] status: 0000000200000020 badaddr: 00000000656c6976 cause: 000000000000000d

Welcome to Buildroot
buildroot login: 

Support for apt

Please provide support for apt-get or some other package installer.

Full gnu utilities

Why won't busybox include full gnu programs instead of their own ones?
Screenshot_2021-03-23-10-45-32-709_com termux

CVE-2022-28391 found in Busybox:1.35.0

Hi

Our Security Scanning tool has identified Critical/High CVEs in the following components listed, Can you please review this and kindly provide an update on the following:

  1. Documentation that explains the mitigation strategy that we can apply to reduce the severity level
    
  2. Details on when is this going to be fixed with the expected version number
    

Container: busybox:1.35.0
Critical CVE:
CVE-2022-28391
CVE-2022-30065

Thanks a lot,
Wei

Build issues with alternate c compiler.

After running make linux CC=my_cc LD=my_cc, I ran this:
VirtualBox:~/Desktop/busybox$ make CC=my_cc LD=my_cc

/home/Desktop/busybox/scripts/gcc-version.sh: line 12: printf: __GNUC__: invalid number
  SPLIT   include/autoconf.h -> include/config/*
  GEN     include/bbconfigopts.h
  GEN     include/common_bufsiz.h
  HOSTCC  applets/usage
applets/usage.c: In function ‘main’:
applets/usage.c:52:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
   write(STDOUT_FILENO, usage_array[i].usage, strlen(usage_array[i].usage) + 1);
   ^
  GEN     include/usage_compressed.h
  HOSTCC  applets/applet_tables
  GEN     include/applet_tables.h include/NUM_APPLETS.h
  GEN     include/applet_tables.h include/NUM_APPLETS.h
  CC      applets/applets.o
fixdep: applets/.applets.o.d: No such file or directory
scripts/Makefile.build:197: recipe for target 'applets/applets.o' failed
make[1]: *** [applets/applets.o] Error 2
Makefile:372: recipe for target 'applets_dir' failed
make: *** [applets_dir] Error 2

The following immediate source code may be useful since it is referred to in the error:

applets/usage.c:52:
write(STDOUT_FILENO, usage_array[i].usage, strlen(usage_array[i].usage) + 1);

scripts/Makefile.build:196-198:

%.o: %.c FORCE
        $(call cmd,force_checksrc)
        $(call if_changed_rule,cc_o_c)

Makefile:371-372:

applets_dir: scripts_basic gen_build_files
        $(Q)$(MAKE) $(build)=applets

I don't know much about what fixdep is doing, but I think that stands for "fix dependencies," right? It doesn't seem to have that missing file error when compiling with gcc, so either it doesn't usually run that or the file is there

Feature Request: Wireless tools

Can you please embed wifi-tools and especially wpa_supplicant that uses the internal SSL library. wifi-tools are easy to build but wpa_supplicant is a nightmare. It will be nice to have them out of the box.

sendmail replaces \r\n characters with \r\r\n making the mail broken

I'm using the following sendmail version:

/magento # sendmail --help
BusyBox v1.34.1 (2022-07-19 20:11:24 UTC) multi-call binary.

The issue happens with PHP8. Its mail function sends headers and body with \r\n line delimiters according to standards and passes this data to sendmail. But sendmail converts all line-endings to \r\r\n making the whole mail broken.

busybox 1.34.1 ash: ^C exit the shell

We have been using busybox 1.31.0 in the past, but recently upgraded to version 1.34.1 to fix vulnerabilities in AWK and Hush.
Accidentally,CTRL+C will exit the current shell terminal directly, which was not the case in 1.31.0.
And notice that on the master branch, there's a commit ' ash: ^C with SIG_INGed SIGINT should not exit the shell '
May I apply this patch to fix the problem which I mentioned?
Thanks.

length() in awk's functions

Apparently, when using length() function to get a passed array's length, busybox will return a wrong value.

RIGHT:
$ gawk 'function f(arr) { print length(arr) } BEGIN { arr[1]=0; arr[2]=0; f(arr) }'
2

WRONG:
$ awk 'function f(arr) { print length(arr) } BEGIN { arr[1]=0; arr[2]=0; f(arr) }'
0

Fortunately, passing a string works just fine though.

RIGHT:
$ gawk 'function f(str) { print length(str) } BEGIN {str="abcd"; f(str) }'
4

RIGHT:
$ awk 'function f(str) { print length(str) } BEGIN {str="abcd"; f(str) }'
4

Unfortunately, busybox awk is still return number of bytes instead of characters.

RIGHT:
$ echo 絵 | gawk '{print length}'
1

WRONG:
$ echo 絵 | awk '{print length}'
3

busybox arm64 images have 139 exit code

When I run and pull the latest image or 1.34.1 of busybox on the arm64 device.
I execute the following command and it returns exit code 139

[root@master-001 ~]# docker run -it  busybox:1.34.1
[root@master-001 ~]# echo $?
139

[root@master-001 ~]# docker run -it  busybox:1.33.1
/ # 

When I changed to 1.33.1, this worked fine, I tried docker export, and executed /bin/sh, and a segment fault was reported.

[root@master-001 ~]# ~/busy/bin/sh
Segmentation fault

`nuke` command dangerous

// klibc-utils do not check this, will happily operate on ".."

I know that you're looking for compatibility, but this command once removed a directory with files very important to me. Can you please consider changing this to #if 1?

wget stalls behind transparent proxy

[busybox 1.33.0, aarch64, entware.net build]

Download reliably stalls right before finish when used behind a separate firewall box that forwards traffic through openvpn (this is my case, might be the same with different routing technologies as well). Escaping and invoking a new download with '-c' can finish download as intended. Curl and non-busybox wget work without stalling, busybox wget works as well if traffic is not routed through openvpn. (It feels like busybox wget does not get or handle the end of transfer signal correctly?)

Sorry, I am not yet familiar with the project, should i report this in email as well as per the contirbuting guidelines? (Or should I have done just that instead of doing it here?)

curl command

because curl is so popular, please contain this command in the busyboxy image. THX!

`timeout 30 sleep 100` parent pid is sleep don't like centos

docker run -d busybox sh -c "timeout 30 sleep 100"
root      170589  0.0  0.0 704520  5812 ?        Sl   14:18   0:00  \_ docker-containerd-shim 60f6f53effb48170c64c4ceb12ad995fef500cd0db1bc118b58bda7da77a1569 /var
root      170611  6.3  0.0   1320     4 ?        Ss   14:18   0:00      \_ sleep 100
root      170644  0.0  0.0   1320    44 ?        Ss   14:18   0:00          \_ timeout 30 sleep 100

docker run -d centos:7 sh -c "timeout 30 sleep 100"
root      170662  0.0  0.0 704776  5760 ?        Sl   14:19   0:00  \_ docker-containerd-shim 4fc91b318bcc1a3f5468df4edc708229d896c8b628aa735d1c77e771d1748715 /var
root      170683 10.0  0.0   8648   784 ?        Ss   14:19   0:00      \_ timeout 30 sleep 100
root      170721  0.0  0.0   4380   632 ?        S    14:19   0:00          \_ sleep 100

Error in hash list parsing.

filename_ptr = strstr(line, " ");

filename_ptr = strstr(line, " *");

In current form, when there is a file with two consecutive spaces in it's name and the hashlist contains binary mode markers " *" validation fails.
Both markers should be searched and in case both are not NULL lower index should be selected, or instead using strstr precomputed marker positions based on hash width should be used.

Feature Request: nslookup SRV query types

It would be really great if nslookup supoorted the SRV query type.

static const struct {
unsigned char type;
char name[7];
} qtypes[] = {
{ ns_t_soa, "SOA" },
{ ns_t_ns, "NS" },
{ ns_t_a, "A" },
#if ENABLE_FEATURE_IPV6
{ ns_t_aaaa, "AAAA" },
#endif
{ ns_t_cname, "CNAME" },
{ ns_t_mx, "MX" },
{ ns_t_txt, "TXT" },
{ ns_t_ptr, "PTR" },
{ ns_t_any, "ANY" },
};

This will be especially useful for openwrt and specifically freifunk-berlin.

wget shows strange behavior

When using wget inside the "docker" docker-image, it shows alternating error messages when downloading files over a proxy.

/ # export http_proxy=http://user:[email protected]:8080
/ # wget -O aspnetcore.zip https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/3.0.0/aspnetcore-runtime-3.
0.0-win-x64.zip
Connecting to www-proxy.company.com:8080 (10.255.2.12:8080)
wget: error getting response: Resource temporarily unavailable
/ # wget -O aspnetcore.zip https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/3.0.0/aspnetcore-runtime-3.
0.0-win-x64.zip
Connecting to www-proxy.company.com:8080 (10.255.2.12:8080)
wget: error getting response: Invalid argument
/ # wget -O aspnetcore.zip https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/3.0.0/aspnetcore-runtime-3.
0.0-win-x64.zip

The original wget doesn't have that behavior:

/ # apk add wget
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/1) Installing wget (1.20.3-r0)
Executing busybox-1.29.3-r10.trigger
OK: 7 MiB in 16 packages
/ # wget -O aspnetcore.zip https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/3.0.0/aspnetcore-runtime-3.
0.0-win-x64.zip
--2019-10-04 07:40:54--  https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/3.0.0/aspnetcore-runtime-3.0.0-win-x64.zip
Resolving www-proxy.company.com... 10.255.2.12
Connecting to www-proxy.company.com|10.255.2.12|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 39843047 (38M) [application/octet-stream]
Saving to: 'aspnetcore.zip'

aspnetcore.zip                  0%[                                                  ] 151.59K   100KB/s               ^C
/ #

udhcpc can't exec default.script automatically with android version 8.1.

I have tried version 1.31 and 1.27, both of those can works well at pc, but doesn't work at android when i use config which is named "android_ndk_defconfig".

`

  • [10:58:55:894] [01-01_09:00:51:510] qmap_settings.rx_urb_size = 16384
  • [10:58:55:896] [01-01_09:00:51:510] qmap_settings.ul_data_aggregation_max_datagrams = 8␍
  • [10:58:55:905] [01-01_09:00:51:511] qmap_settings.ul_data_aggregation_max_size = 4096␍␊
  • [10:58:55:905] [01-01_09:00:51:512] qmap_settings.dl_minimum_padding = 16␍␊
  • [10:58:55:905] [01-01_09:00:51:514] ioctl(0x89f2, qmap_settings) failed: Operation not supported on transport endpoint, rc=-1␍␊
  • [10:58:56:023] [01-01_09:00:51:638] requestGetSIMStatus SIMStatus: SIM_READY␍␊
  • [10:58:56:055] [01-01_09:00:51:670] requestGetProfile[1] 3GNET///0␍␊
  • [10:58:56:087] [01-01_09:00:51:702] requestRegistrationState2 MCC: 460, MNC: 1, PS: Attached, DataCap: 5G_NSA␍␊
  • [10:58:56:117] [01-01_09:00:51:733] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED␍␊
  • [10:58:56:120] [01-01_09:00:51:735] ifconfig wwan0 down␍␊
  • [10:58:56:252] [01-01_09:00:51:868] ifconfig wwan0 0.0.0.0␍␊
  • [10:58:56:405] [01-01_09:00:52:021] requestSetupDataCall WdsConnectionIPv4Handle: 0x58fc0b80␍␊
  • [10:58:56:535] [01-01_09:00:52:151] ifconfig wwan0 up␍␊
  • [10:58:56:674] [01-01_09:00:52:290] busybox udhcpc -S -i wwan0␍␊
  • [10:58:56:773] udhcpc: started, v1.27.2␍␊
  • [10:58:56:809] udhcpc: sending discover␍␊
  • [10:58:56:889] udhcpc: sending select for 10.34.152.86␍␊
  • [10:58:56:949] udhcpc: lease of 10.34.152.86 obtained, lease time 7200␍

␊`

as you see, it will stay here forever, and ifconfig is blew

`

  • [11:00:49:604] ifconfig wwan0␍␍␊
  • [11:00:49:698] wwan0 Link encap:Ethernet HWaddr 1e:07:1b:b4:db:3f Driver qmi_wwan_q␍␊
  • [11:00:49:701] inet6 addr: fe80::1c07:1bff:feb4:db3f/64 Scope: Link␍␊
  • [11:00:49:704] UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1␍␊
  • [11:00:49:704] RX packets:2 errors:0 dropped:0 overruns:0 frame:0 ␍␊
  • [11:00:49:704] TX packets:7 errors:0 dropped:1 overruns:0 carrier:0 ␍␊
  • [11:00:49:708] collisions:0 txqueuelen:1000 ␍␊
  • [11:00:49:708] RX bytes:644 TX bytes:964 ␍␊
  • [11:00:49:708] ␍

␊ `

we can find default.script has not ran.But when i use code like this

`

  • ifconfig wwan0 10.34.152.86 netmask 255.255.255.252 broadcast 10.34.152.87
  • ndc network create 9792
  • ndc network interface add 9792 wwan0
  • ndc network route add 9792 wwan0 0.0.0.0/0 10.34.152.85
  • ndc resolver setnetdns 9792 8.8.8.8 8.8.4.4
  • ndc network default set 9792

`

everything works well.

  • `netstat -rn␍␍␊
  • [11:25:11:958] Kernel IP routing table␍␊
  • [11:25:11:959] Destination⇥ Gateway ⇥ Genmask ⇥ Flags MSS Window irtt Iface␍␊
  • [11:25:11:962] 10.34.152.84 0.0.0.0 255.255.255.252 U 0 0 0 wwan0␍␊
  • [11:25:11:965] k39tv1_bsp:/ # ifconfig wwan0␍␍␊
  • [11:25:26:240] wwan0 Link encap:Ethernet HWaddr 92:17:e5:c0:f5:7e Driver qmi_wwan_q␍␊
  • [11:25:26:242] inet addr:10.34.152.86 Bcast:10.34.152.87 Mask:255.255.255.252 ␍␊
  • [11:25:26:246] inet6 addr: fe80::9017:e5ff:fec0:f57e/64 Scope: Link␍␊
  • [11:25:26:246] UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1␍␊
  • [11:25:26:251] RX packets:292 errors:0 dropped:0 overruns:0 frame:0 ␍␊
  • [11:25:26:251] TX packets:298 errors:0 dropped:1 overruns:0 carrier:0 ␍␊
  • [11:25:26:251] collisions:0 txqueuelen:1000 ␍␊
  • [11:25:26:256] RX bytes:25487 TX bytes:26434 ␍␊
  • [11:25:26:256] ␍␊
  • [11:25:26:256] k39tv1_bsp:/ #

`

Thanks for your help.

config.zip

error while upgrading to busybox 1.31.0 from 1.19.0

sha256sum: unrecognized option '--quiet'
BusyBox v1.31.0 (2019-09-21 22:43:03 IST) multi-call binary.

Usage: sha256sum [-c[sw]] [FILE]...

Print or check SHA256 checksums

    -c      Check sums against list in FILEs
    -s      Don't output anything, status code shows success
    -w      Warn about improperly formatted checksum lines

busybox --version ?

Would it be possible to add support for:

busybox --version

The reason i am asking is because I tend to batch-query installed/available versions, and also having busybox available (as a statically compiled variant for rescue-purposes mostly), so this feature wuold be quite useful to me. Thanks for reading!

patch on binary files does not work!

Doing the following:

cd /tmp
cp /bin/ls .
cp ls ls2
vi ls2 # Change some bytes and delete some bytes
busybox diff -au ls ls2 > ls.patch
busybox patch ls > ls.patch
patching file ls
Hunk 1 FAILED 7/7.
 ���P

This does not happen on normal linux patch.

-t (TTL) option is not working with ping6

Hello,

I checked ping6 command from latest version of busybox(1.35.0).

root@-virtual-machine:/home/# ./busybox_PING6
Usage: ping6 [OPTIONS] HOST

Send ICMP ECHO_REQUESTs to HOST

-c CNT		Send only CNT pings
-s SIZE		Send SIZE data bytes in packets (default 56)
-i SECS		Interval
-A		Ping as soon as reply is recevied
-I IFACE/IP	Source interface or IP address
-W SEC		Seconds to wait for the first response (default 10)
		(after all -c CNT packets are sent)
-w SEC		Seconds until ping exits (default:infinite)
		(can exit earlier with -c CNT)
-q		Quiet, only display output at start/finish
-p HEXBYTE	Payload pattern

It does not show -t. option, but when i give -t option , it is not throwing error also. And echo request is sent with TTL of 64.
root@virtual-machine:/home# ./busybox_PING6 3001::22 -t 100
PING 3001::22 (3001::22): 56 data bytes
64 bytes from 3001::22: seq=0 ttl=64 time=0.062 ms
64 bytes from 3001::22: seq=1 ttl=64 time=0.093 ms
64 bytes from 3001::22: seq=2 ttl=64 time=0.079 ms
^C

Busybox ping6 really supports "TTL" option ?? if so ..is there a way to enable that ??

Thanks,
Nag

'sort' is not consistent with its coreutils counterpart

The following script

cat << EOF | sort -k2rn -s
a 1
b 2
c 1
d 2
EOF

returns should return the lines a, b, c, d according to the documented behavior of the 'stable' (-s) parameter, but instead returns d, b, c, a. It should reverse the order of the second column only and keep the first in the same order provided via stdin according to the -r flag as the implementation from GNU coreutils does. Is this a bug or did I misunderstand how stable sorting is supposed to work?

iostat and partitions

Invoking iostat without parameters produces, e.g. this:

...
sda              16.35      1864.52       224.26  100203215   12052400
sdb               0.04         3.60         0.00     193736         32
sdb1              0.04         3.59         0.00     192696         32
dm-0              7.85       360.11       128.75   19352880    6919456
...

And although my sda1-sda6 partitions aren't displayed, sdb1 still is.

procps/iostat.c reads:

/*
 * Is input partition of format [sdaN]?
 */
static int is_partition(const char *dev)
{
	/* Ok, this is naive... */
	return ((dev[0] - 's') | (dev[1] - 'd') | (dev[2] - 'a')) == 0 && isdigit(dev[3]);
}

If the intention was to exclude all partitions (not only sdaN), shouldn't it be something like:

return ((dev[0] - 's') | (dev[1] - 'd') | (dev[2] - 'a')) >= 0 && isdigit(dev[3]);

[EDIT] or rather:
return ((dev[0] - 's') | (dev[1] - 'd')) == 0 && (dev[2] - 'a' >= 0) && isdigit(dev[3]);

?

Then it results in:

...
sda              16.37      1866.92       224.56  100199631   12052400
sdb               0.04         3.61         0.00     193736         32
dm-0              7.86       360.58       128.92   19352880    6919456
...

make[1]: *** [networking/udhcp/d6_dhcpc.o] Error 1

networking/udhcp/d6_dhcpc.c: 在函数‘udhcpc6_main’中:
networking/udhcp/d6_dhcpc.c:1783:2: 错误: expected declaration or statement at end of input
return retval;
^~~~~~
scripts/Makefile.build:197: recipe for target 'networking/udhcp/d6_dhcpc.o' failed
make[1]: *** [networking/udhcp/d6_dhcpc.o] Error 1
make[1]: *** 正在等待未完成的任务....
CC printutils/lpd.o
CC printutils/lpr.o
AR miscutils/lib.a
Makefile:743: recipe for target 'networking/udhcp' failed
make: *** [networking/udhcp] Error 2

rpm: unrecognized option

We are using Chef Habitat to install several RPM packages (DataDog 'Agent' is currently the big one we are trying to deploy) on Linux AWS EC2 instances and have noticed in the chef-stacktrace.out error file that references BusyBox. We are trying to narrow down where the problem is located - is it a BusyBox, Chef Habitat, Chef Server or Chef Infra client issue?

Reference:
https://github.com/DataDog/chef-datadog/blob/master/recipes/repository.rb

Mixlib::ShellOut::ShellCommandFailed: execute[rpm-import datadog key e09422b3] (datadog::repository line 85) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of rpm --import /hab/svc/wabtec_base_tools/data/cache/cache/DATADOG_RPM_KEY_E09422B3.public ----
STDOUT:
STDERR: rpm: unrecognized option: -
BusyBox v1.29.2 (2019-01-15 01:45:56 UTC) multi-call binary.

Usage: rpm -i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm

Manipulate RPM packages

Commands:
-i Install package
-qp Query package
-qpi Show information
-qpl List contents
-qpd List documents
-qpc List config files
---- End output of rpm --import /hab/svc/wabtec_base_tools/data/cache/cache/DATADOG_RPM_KEY_E09422B3.public ----
Ran rpm --import /hab/svc/wabtec_base_tools/data/cache/cache/DATADOG_RPM_KEY_E09422B3.public returned 1

dd-chef-stacktrace-error.txt

How to request/configure custom options with udhcpc6 -client

Hi,
I just started using bussybox 1.30 verion, i am able to run udhcpc6 and get v6 ip, but my requirement is to get options
0X5F -MAPT
0X38 -NPT-Server
0X18 -Optional domain list
0X17-DNS-Servers
0X11 -Vendor-options
Right now i am able to get only DNS information, Can any one guide how to can i send custom options request in udhcpc6 client request??

default.script:
echo "Args **** $0 , $1 "
echo " Time-zone $timeZone"
echo " Time-servers $timeserver "
echo " Ntp-servers $ntpsrv "
echo " DNS-server $dns "

Result:
Args **** /usr/share/udhcpc/default.script , bound
Time-zone
Time-servers
Ntp-servers
DNS-server 2606:4700:4700:0000:0000:0000:0000:1111 2001:4860:4860:0000:0000:0000:0000:8888 2001:4860:4860:0000:0000:0000:0000:8844
Bound

Any information on this is greatly appreciated.
Thanks,
Rp

wget reset https connection when tls response server hello

Background:

errorlog ex:

wget https://www.baidu.com

Connecting to www.baidu.com (180.97.34.96:443)
wget: note: TLS certificate validation not implemented
wget: error getting response: Connection reset by peer

Env:

  • busybox image version :latest (2023.1.10 1.36.0)
    wget -v
    wget: invalid option -- 'v'
    BusyBox v1.36.0 (2023-01-03 22:42:57 UTC) multi-call binary.

Issue :

  • in the scenario of https communitation, the wget client sends "finack" and closes the connection before a "server hello" arrives. Refer to the tcpdump traces
    as below
    image

Workaround:

  • Replace image version to 1.34.0, it works

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.