mirror of
https://github.com/Heleguo/lede.git
synced 2025-12-17 19:31:34 +00:00
* 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>
|
||
|---|---|---|
| .. | ||
| adb | ||
| bcm27xx-userland | ||
| bcm4908img | ||
| bsdiff | ||
| busybox | ||
| bzip2 | ||
| checkpolicy | ||
| ct-bugcheck | ||
| dtc | ||
| e2fsprogs | ||
| f2fs-tools | ||
| fbtest | ||
| fritz-tools | ||
| jboot-tools | ||
| jsonfilter | ||
| lua | ||
| lua5.3 | ||
| mdadm | ||
| mtd-utils | ||
| nvram | ||
| osafeloader | ||
| oseama | ||
| otrx | ||
| policycoreutils | ||
| px5g-mbedtls | ||
| px5g-wolfssl | ||
| ravpower-mcu | ||
| secilc | ||
| spidev_test | ||
| ucode | ||
| ugps | ||
| usbmode | ||
| util-linux | ||