diff options
author | Qichao Zhang <njuzhangqichao@gmail.com> | 2022-03-20 09:43:22 +0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-04-05 00:20:24 +0200 |
commit | 9d2b26d5a70583c0cc0bcb94d7e0fb6ac498069a (patch) | |
tree | aeecf298589cb52eaf7e85699cb3c22732991844 /package/kernel/rtl8812au-ct | |
parent | 1b595154560a8eda42f5509b242470f20ef9ef3a (diff) | |
download | upstream-9d2b26d5a70583c0cc0bcb94d7e0fb6ac498069a.tar.gz upstream-9d2b26d5a70583c0cc0bcb94d7e0fb6ac498069a.tar.bz2 upstream-9d2b26d5a70583c0cc0bcb94d7e0fb6ac498069a.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>
(cherry picked from commit 34567750db2c3a84fc9f971189c223e2eefd93b0)
Diffstat (limited to 'package/kernel/rtl8812au-ct')
0 files changed, 0 insertions, 0 deletions