lede/package/utils
breakings 866c0bd91a
busybox: Fix snprintf arguments in lock (#9239)
* busybox: fix busybox lock applet pidstr buffer overflow

Kernel setting `/proc/sys/kernel/pid_max` can be set up to 4194304 (7
digits) which will cause buffer overflow in busbox lock patch, this
often happens when running in a rootfs container environment.
This commit enlarges `pidstr` to 12 bytes to ensure a sufficient buffer
for pid number and an additional char '\n'.

Signed-off-by: Qichao Zhang <njuzhangqichao@gmail.com>

* busybox: Fix snprintf arguments in lock

The first argument for snprintf is the buffer and the 2. one is the
size. Fix the order. This broke the lock application.

Fixes: 34567750db2c ("busybox: fix busybox lock applet pidstr buffer overflow")
Reported-by: Hartmut Birr <e9hack@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Qichao Zhang <njuzhangqichao@gmail.com>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-04-14 10:18:09 +08:00
..
adb Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
bcm27xx-userland bcm27xx: sync upstream source code (#6435) 2021-02-25 15:44:46 +08:00
bcm4908img add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
bsdiff update source 2017-09-06 19:19:45 +08:00
busybox busybox: Fix snprintf arguments in lock (#9239) 2022-04-14 10:18:09 +08:00
bzip2 Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
checkpolicy add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
ct-bugcheck Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
dtc dtc: support printing binary data with fdtget 2022-02-14 19:16:01 +00:00
e2fsprogs e2fsprogs: Update to version 1.46.5 (#8816) 2022-02-08 12:29:53 +08:00
f2fs-tools add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
fbtest Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
fritz-tools Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
jboot-tools Merge branch 'master' of github.com:lede-project/source 2018-04-23 18:50:49 +08:00
jsonfilter jsonfilter: update makefile url 2022-02-26 16:06:57 +00:00
lua x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
lua5.3 Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
mdadm utils/mdadm: fix build on hosts without /run dir (#8651) 2022-01-10 16:56:47 +08:00
mtd-utils add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
nvram add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
osafeloader update source 2017-09-06 19:19:45 +08:00
oseama update source 2017-09-06 19:19:45 +08:00
otrx Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
policycoreutils add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
px5g-mbedtls add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
px5g-wolfssl x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
ravpower-mcu kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350) 2020-08-26 11:31:50 +08:00
secilc add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
spidev_test Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
ucode ucode: update to latest Git HEAD (#9230) 2022-04-12 11:26:17 +08:00
ugps x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
usbmode usbmode: update to version 2022-02-24 2022-02-26 16:07:31 +00:00
util-linux util-linux: sync upstream (#8953) 2022-02-27 01:35:53 +08:00