openwrt/include
Christian Lamparter 1c0290c5cc build: remove harmful -nopad option from mksquashfs
While the -nopad option prevents mksquashfs from padding the
image to an arbitrary 4k. It does not take into consideration
that squashfs is programmed to have this 4k padding when it's
being used on on a block device... which is its main "use-case".

Now, after a week long discussion on the ML that included a
back-and-forth between some of the possible options.
But this is likely the best KISS patch to deal with the issue
right away given the limited resources.

From squashfs code point of view, be warned. The 4k padding is
not enough when dealing with devices that have a PAGE_SIZE
bigger than 4k.

if it turns out to be affecting you, then please look-up either:
"FS#2460 - kernel panic reading squashfs from ubi volume" bug
Or the discussion on the OpenWrt-Devel ML in
"amp821xx: use newly added pad-squashfs for Meraki MR24" and
"Squashfs breakage lottery with UBI..."
before making an educated guess.

Note: This will not affect the "tiny"/small flash devices as
much as it seems at first. This is because the the rootfs_data
partition that follows uses jffs2. And it requires to be aligned
to the flash block-size in order to work at all.

So either the involved FSes will meet in the middle as before,
or not at all. But in that latter case the image was already
hoping for the "undefined behaviour" gamble to turn out in its
favour and this is probably why this was unnoticed for so long.

Fixes: FS#2460
Reported-by: Russell Senior <russell@personaltelco.net>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2019-08-30 20:45:40 +02:00
..
site Revert faulty tree push 2019-08-12 12:27:06 +02:00
autotools.mk autotools.mk: autoreconf: fix missing install-sh 2019-07-26 08:09:16 +02:00
cmake.mk
debug.mk
depends.mk
device_table.txt
download.mk Revert faulty tree push 2019-08-12 12:27:06 +02:00
feeds.mk build: suppress error output in feeds.mk 2019-03-22 00:40:29 +01:00
hardened-ld-pie.specs
hardening.mk
host-build.mk
image-commands.mk build: fix indent in image-commands.mk 2019-08-17 16:43:22 +02:00
image-legacy.mk
image.mk build: remove harmful -nopad option from mksquashfs 2019-08-30 20:45:40 +02:00
kernel-build.mk
kernel-defaults.mk
kernel-version.mk kernel: bump 4.19 to 4.19.69 2019-08-30 16:45:54 +02:00
kernel.mk build: include BUILD_VARIANT in PKG_BUILD_DIR 2019-08-05 23:22:26 +02:00
netfilter.mk
nls.mk
package-bin.mk
package-defaults.mk
package-dumpinfo.mk
package-ipkg.mk build: warn when packages have no associated install section 2019-06-25 14:42:07 +02:00
package-seccomp.mk
package.mk Revert faulty tree push 2019-08-12 12:27:06 +02:00
prereq-build.mk build: cleanup possibly dangling Python 2 host symlink 2019-07-26 08:09:16 +02:00
prereq.mk build: cleanup possibly dangling Python 2 host symlink 2019-07-26 08:09:16 +02:00
quilt.mk
rootfs.mk imagebuilder: new DISABLED_SERVICES make variable 2019-05-15 13:34:24 +02:00
scan.awk
scan.mk build: Fix print without color 2019-02-17 19:30:34 +01:00
scons.mk
shell.sh
subdir.mk
target.mk build: add urandom-seed and urngd to default packages set 2019-06-11 08:06:28 +02:00
toolchain-build.mk
toplevel.mk build: fix kernel_*config targets on 4.19 2019-06-21 15:23:49 +02:00
u-boot.mk u-boot.mk: use openwrt url instead of lede project 2019-08-18 15:14:13 +00:00
uclibc++.mk
unpack.mk include: unpack.mk: remove CRLF_WORKAROUND 2019-04-18 12:06:47 +02:00
verbose.mk
version.mk version.mk: use https:// instead of http:// 2019-06-11 01:49:44 +02:00