process '/bin/busybox' started with executable stack

QuestionThis architecture does not have kernel memory protection. Run /linuxrc as init process process '/bin/busybox' started with executable stack Answer1busybox.fragment @@ -74,3 +74,5 @@ CONFIG_FEATURE_REMOTE_LOG=y CONFIG_BB_SYSCTL=y CONFIG_SED=y CONFIG_FEATURE_SHOW_THREADS=y +CONFIG_EXTRA_CFLAGS="-Wl,-z,noexecstack" +CONFIG_EXTRA_LDFLAGS="-Wl,-z,noexecstack" Answer2$ sudo apt install execstack $ execstack busybox # check X busybox $ execstack -c busybox # clear execstack

jffs2: compression type 0x06 not available

# cp /data/boot.bin /tmp/ [ 55.523773] jffs2: compression type 0x06 not available [ 55.529190] jffs2: Error: jffs2_decompress returned -5 [ 55.680191] jffs2: compression type 0x06 not available [ 55.685574] jffs2: Error: jffs2_decompress returned -5 cp: read error: Input/output error+CONFIG_JFFS2_ZLIB=y

md5sum: can't read '/data/test.ko': Input/output error

Question# md5sum /data/test.ko md5sum: can't read '/data/test.ko': Input/output error Reproduction Push nfs.ko to rootfs and confirm it is OK in normal system adb push nfs.ko /data/ # md5sum /data/nfs.ko 5c566793a4fa8e5c661baffc40356041 /data/nfs.ko Enter recovery system and copy specified ko to another name # recovery [...] # md5sum /data/nfs.ko 5c566793a4fa8e5c661baffc40356041 /data/nfs.ko # cp /data/nfs.ko /data/test.ko # md5sum /data/test.ko 5c566793a4fa8e5c661baffc40356041 /data/test.ko reboot to normal system # md5sum /data/test.ko md5sum: can't read '/data/test.ko': Input/output error AnswerDisable LZO support for jffs2

error: initialization from incompatible pointer type

drivers/tty/serial/ingenic_uart.c: At top level: drivers/tty/serial/ingenic_uart.c:981:17: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .set_termios = serial_ingenic_set_termios,//change para of endport ^~~~~~~~~~~~~~~~~~~~~~~~~~commit f6d47fe5921a6d3f5a1a3d0b9a3dd34b8e295722 Author: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Date: Tue Aug 16 14:57:38 2022 +0300 usb: serial: Make ->set_termios() old ktermios const There should be no reason to adjust old ktermios which is going to get discarded anyway. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20220816115739.10928-8-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [...] - void (*set_termios)(struct tty_struct *tty, - struct usb_serial_port *port, struct ktermios *old); + void (*set_termios)(struct tty_struct *tty, struct usb_serial_port *port, + const struct ktermios *old);

error: passing argument 4 of 'uart_console_write' from incompatible pointer type

drivers/tty/serial/ingenic_uart.c: In function 'serial_ingenic_console_write': drivers/tty/serial/ingenic_uart.c:923:42: error: passing argument 4 of 'uart_console_write' from incompatible pointer type [-Werror=incompatible-pointer-types] uart_console_write(&up->port, s, count, serial_ingenic_console_putchar); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~commit 3f8bab174cb26aa5a8053c4457cc733881e3ad88 Author: Jiri Slaby <jirislaby@kernel.org> Date: Thu Mar 3 09:08:31 2022 +0100 serial: make uart_console_write->putchar()'s character an unsigned char Currently, uart_console_write->putchar's second parameter (the character) is of type int. It makes little sense, provided uart_console_write() accepts the input string as "const char *s" and passes its content -- the characters -- to putchar().

error: implicit declaration of function 'PDE_DATA'

arch/mips/xburst2/common/cpu-features.c:83:42: error: implicit declaration of function 'PDE_DATA'; did you mean 'NODE_DATA'? [-Werror=implicit-function-declaration] return single_open(file, cpu_proc_show, PDE_DATA(inode)); ^~~~~~~~ NODE_DATAcommit 359745d78351c6f5442435f81549f0207ece28aa Author: Muchun Song <muchun.song@linux.dev> Date: Fri Jan 21 22:14:23 2022 -0800 proc: remove PDE_DATA() completely Remove PDE_DATA() completely and replace it with pde_data(). [akpm@linux-foundation.org: fix naming clash in drivers/nubus/proc.c] [akpm@linux-foundation.org: now fix it properly] Link: https://lkml.kernel.org/r/20211124081956.87711-2-songmuchun@bytedance.com Signed-off-by: Muchun Song <songmuchun@bytedance.com> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: Alexey Gladkov <gladkov.
0%