lede/package/utils/busybox
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
..
config busybox: update to 1.35.0 (#8389) 2022-01-14 12:15:24 +08:00
files busybox: update to 1.35.0 (#8389) 2022-01-14 12:15:24 +08:00
patches busybox: Fix snprintf arguments in lock (#9239) 2022-04-14 10:18:09 +08:00
Config-defaults.in busybox: update to 1.35.0 (#8389) 2022-01-14 12:15:24 +08:00
Config.in add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
convert_defaults.pl update source 2017-09-06 19:19:45 +08:00
convert_menuconfig.pl update source 2017-09-06 19:19:45 +08:00
Makefile busybox: update to 1.35.0 (#8389) 2022-01-14 12:15:24 +08:00
selinux.config add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00