lede/package
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
..
base-files Revert "base-file: remove password aging feature form /etc/shadow" 2022-02-25 23:17:10 +08:00
boot grub2: add missing license (#9196) 2022-04-06 15:10:03 +08:00
devel gdb: Update gdb to version 11.2 (#8954) 2022-02-27 01:50:07 +08:00
firmware Add basic support for TL-XTR10890 (#9202) 2022-04-07 22:49:43 +08:00
kernel kmod-fs-nfs:refresh depends 2022-04-12 11:20:55 +08:00
lean automount: skip some partition 2022-04-03 13:24:18 +08:00
libs libnfnetlink: update to 1.0.2 (#9229) 2022-04-13 16:30:17 +08:00
network dropbear: bump to 2022.82 (#9226) 2022-04-14 10:15:14 +08:00
qca ipq807x: add qca-nss-drv-bridge-mgr and qca-nss-drv-vlan-mgr 2022-04-11 14:04:33 +08:00
system openwrt-keyring: add OpenWrt 22.03 GPG/usign keys (#9128) 2022-03-25 23:00:09 +08:00
utils busybox: Fix snprintf arguments in lock (#9239) 2022-04-14 10:18:09 +08:00
Makefile add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00