diff options
author | Qichao Zhang <njuzhangqichao@gmail.com> | 2022-03-20 09:43:22 +0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-03-30 18:33:38 +0200 |
commit | 34567750db2c3a84fc9f971189c223e2eefd93b0 (patch) | |
tree | db9cabc7fb69d9657db7da67e0081a4ea72d39d2 /target/linux/bcm27xx/patches-5.10 | |
parent | aee9ccf5c1b536189ebee8c232273657334da843 (diff) | |
download | upstream-34567750db2c3a84fc9f971189c223e2eefd93b0.tar.gz upstream-34567750db2c3a84fc9f971189c223e2eefd93b0.tar.bz2 upstream-34567750db2c3a84fc9f971189c223e2eefd93b0.zip |
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>
Diffstat (limited to 'target/linux/bcm27xx/patches-5.10')
0 files changed, 0 insertions, 0 deletions