[PATCH] net: phy: Remove inline definitions from convinience functions

2022-06-04 Thread Ramon Fried
The convinience functions are not that small and they caused bloated text segments because of their usage. There was no need to inline them in the first place, as they're not part of a fastpath. Signed-off-by: Ramon Fried --- drivers/net/phy/phy.c | 174 ++ in

[PATCH 1/1 v1] CVE-2022-30767: unbounded memcpy with a failed length check

2022-06-04 Thread gerbert
This patch tries to fix a CVE-2019-14196 fix In if-condition, where NFSV2_FLAG is checked, memcpy call is performed to transfer a reply data of NFS_FHSIZE size. Since the data field in struct rpc_t structure has the size of (1024 / 4) + 26 = 282, while NFS_FHSIZE is only 32, it won't lead to out-

Re: [PATCH 1/1] CVE-2022-30767: unbounded memcpy with a failed length check

2022-06-04 Thread gerbert
Heinrich Schuchardt писал 2022-06-04 20:44: On 6/2/22 20:32, gerbert wrote: This patch tries to fix a CVE-2019-14196 fix   In if-condition, where NFSV2_FLAG is checked, memcpy call is performed to transfer a reply data of NFS_FHSIZE size. Since the data field in struct rpc_t structure has th

Re: [PATCH 1/1] CVE-2022-30767: unbounded memcpy with a failed length check

2022-06-04 Thread Heinrich Schuchardt
On 6/2/22 20:32, gerbert wrote: This patch tries to fix a CVE-2019-14196 fix   In if-condition, where NFSV2_FLAG is checked, memcpy call is performed to transfer a reply data of NFS_FHSIZE size. Since the data field in struct rpc_t structure has the size of (1024 / 4) + 26 = 282, while NFS_FHSI

Re: [PATCH] phy: dp83867: add dp83867_{read,write}_mmd helpers

2022-06-04 Thread Ramon Fried
On Tue, May 24, 2022 at 3:08 PM Vladimir Oltean wrote: > > On Tue, May 24, 2022 at 01:31:41PM +0200, Rasmus Villemoes wrote: > > On 19/05/2022 16.38, Vladimir Oltean wrote: > > > Hi Rasmus, > > > > > > On Tue, May 17, 2022 at 04:27:06PM +0200, Rasmus Villemoes wrote: > > >> Since the phy_{read,wri

Re: [PATCH v1] net: nuvoton : Add NPCM7xx EMAC driver

2022-06-04 Thread Ramon Fried
On Tue, May 17, 2022 at 11:28 AM Jim Liu wrote: > > NPCM750 provides identical ethernet MAC controllers for WAN/LAN applications. > > Signed-off-by: Jim Liu > --- > drivers/net/Kconfig | 5 + > drivers/net/Makefile | 1 + > drivers/net/npcm750_eth.c | 745 +

Re: [PATCH 3/5] configs: Add config for enabling FSPI boot option for i.MX8m

2022-06-04 Thread Fabio Estevam
On Fri, Jun 3, 2022 at 8:39 AM Mamta Shukla wrote: > > Add imx8mm_evk_fspi_defconfig to build QSPI boot image. > This config is based on imx8mm_evk_defconfig with addtional config options for > FSPI Header,SPL offset and imx-image config to boot from FSPI. > > > Signed-off-by: Mamta Shukla > Sign

Re: [PATCH v2] net: Check for the minimum IP fragmented datagram size

2022-06-04 Thread Ramon Fried
On Fri, Jun 3, 2022 at 10:49 PM Tom Rini wrote: > > On Thu, May 26, 2022 at 11:14:37AM -0300, Fabio Estevam wrote: > > > From: Fabio Estevam > > > > Nicolas Bidron and Nicolas Guigo reported the two bugs below: > > > > " > > Applied to u-boot/master, thanks! > > -- > Tom Thanks Tom, Just came bac

Re: [PATCH] watchdog: Fix SPL build with watchdog disabled in asm files

2022-06-04 Thread Pali Rohár
PING? On Thursday 28 April 2022 13:33:09 Pali Rohár wrote: > Allow to compile assembler files in SPL build which calls WATCHDOG_RESET > function when watchdog is disabled in SPL and enabled in U-Boot proper. > > This issue was fixed in past by commit 7fbd42f5afc4 ("watchdog: Handle SPL > build wi

Re: [PATCH] powerpc: mpc85xx: Fix compilation with CONFIG_WDT

2022-06-04 Thread Pali Rohár
PING On Thursday 28 April 2022 13:31:43 Pali Rohár wrote: > When CONFIG_WDT is enabled then non-DM watchdog code cannot be used due to > conflicting functions like watchdog_reset(). So disable compilation of > mpc85xx watchdog_reset() function when CONFIG_WDT is enabled. > > Signed-off-by: Pali R

Re: [PATCH 1/2] powerpc: mpc85xx: Add support for generating QorIQ pre-PBL eSDHC boot sector

2022-06-04 Thread Pali Rohár
On Wednesday 18 May 2022 12:53:20 Pali Rohár wrote: > On Wednesday 11 May 2022 22:59:28 Pali Rohár wrote: > > On Monday 25 April 2022 14:36:14 Pali Rohár wrote: > > > On Monday 25 April 2022 05:25:34 Priyanka Jain (OSS) wrote: > > > > >-Original Message- > > > > >From: U-Boot On Behalf Of

Re: [PATCH 7/8] powerpc: mpc85xx: Set TEXT_BASE addresses to real base values

2022-06-04 Thread Pali Rohár
On Wednesday 18 May 2022 12:51:14 Pali Rohár wrote: > On Wednesday 11 May 2022 20:59:24 Pali Rohár wrote: > > On Monday 25 April 2022 14:31:16 Pali Rohár wrote: > > > On Monday 25 April 2022 04:27:51 Priyanka Jain (OSS) wrote: > > > > >-Original Message- > > > > >From: U-Boot On Behalf Of

Pull request for efi-2022-07-rc4-4

2022-06-04 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 90189ecd59cdf14afbe6014be5c068e599b65a72: Merge branch '2022-06-03-assorted-fixes' (2022-06-03 15:42:13 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2022-07-rc4-4 for you to fet

Re: [PATCH 8/8] imx: imx8mm-icore: migrate to use BINMAN

2022-06-04 Thread Alper Nebi Yasak
On 03/06/2022 10:17, Peng Fan (OSS) wrote: > From: Peng Fan > > Use BINMAN instead of imx specific packing method. > > Signed-off-by: Peng Fan > --- > arch/arm/mach-imx/imx8m/Kconfig | 1 + > arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg | 10 +- > configs/imx8mm-ico

Re: [PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk

2022-06-04 Thread Tommaso Merciai
On Fri, Jun 3, 2022, 17:16 Andrey Zhizhikin < andrey.zhizhi...@leica-geosystems.com> wrote: > Upstream commit 7a2c3be95a50 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, > HSIOMIX clock") added usb_core_ref for USB Controller but never set it > to be used as a clock source, using rather "osc_32k" inste

Re: [PATCH 7/8] binman_sym: guard with CONFIG_IS_ENABLED(BINMAN_SYMBOLS)

2022-06-04 Thread Alper Nebi Yasak
On 03/06/2022 10:17, Peng Fan (OSS) wrote: > From: Peng Fan > > There is case that CONFIG_BINMAN is defined, but > CONFIG_SPL_BINMAN_SYMBOLS is not defined. In that case, there will be > build failure. So use CONFIG_SPL_BINMAN_SYMBOLS to guard the macros, and > define CONFIG_SPL_BINMAN_SYMBOLS in

Re: [PATCH 6/8] arm: dts: imx8m: shrink ddr firmware size to actual file size

2022-06-04 Thread Alper Nebi Yasak
On 03/06/2022 10:17, Peng Fan (OSS) wrote: > From: Peng Fan > > After we switch to use BINMAN_SYMBOLS, there is no need to pad > the file size to 0x8000 and 0x4000. After we use BINMAN_SYMBOLS, > the u-boot-spl-ddr.bin shrink about 36KB with i.MX8MP-EVK. > > Tested-by: Tim Harvey #imx8m[m,n,p]-

Re: [PATCH 5/8] ddr: imx8m: helper: load ddr firmware according to binman symbols

2022-06-04 Thread Alper Nebi Yasak
On 03/06/2022 10:17, Peng Fan (OSS) wrote: > From: Peng Fan > > By reading binman symbols, we no need hard coded IMEM_LEN/DMEM_LEN after > we update the binman dtsi to drop 0x8000/0x4000 length for the firmware. > > And that could save binary size for many KBs. > > Tested-by: Tim Harvey #imx8m

Re: [PATCH 4/8] armv8: u-boot-spl.lds: mark __image_copy_start as symbol

2022-06-04 Thread Alper Nebi Yasak
On 03/06/2022 10:17, Peng Fan (OSS) wrote: > From: Peng Fan > > In arch/arm/lib/sections.c there is below code: > char __image_copy_start[0] __section(".__image_copy_start"); > But actually 'objdump -t spl/u-boot-spl' not able to find out > symbol '__image_copy_start' for binman update image-pos/

Re: [PATCH 3/8] arm: dts: imx8m: update binman ddr firmware node name

2022-06-04 Thread Alper Nebi Yasak
On 03/06/2022 10:17, Peng Fan (OSS) wrote: > From: Peng Fan > > We are migrating to use BINMAN SYMBOLS, the current name is not > a valid binman type, so update to unify them. > > Also add `type = "blob-ext";` for generating a valid binman symbol (While applying, please remove the lines above.)

Re: [PATCH 2/8] configs: imx8mm_data_modul_edm_sbc: not select SPL_RAM_DEVICE

2022-06-04 Thread Alper Nebi Yasak
On 03/06/2022 10:17, Peng Fan (OSS) wrote: > From: Peng Fan > > i.MX8M use FIT image, not RAW image. And to support binman symbols, > u_boot_any could be optimized if RAW image is not selected, otherwise > there will be build failure. So not select SPL_RAW_DEVICE > > Signed-off-by: Peng Fan > -

Re: [PATCH 1/8] spl: Kconfig: not select SPL_RAW_IMAGE_SUPPORT for i.MX8M

2022-06-04 Thread Alper Nebi Yasak
On 03/06/2022 10:17, Peng Fan (OSS) wrote: > From: Peng Fan > > i.MX8M use FIT image, not RAW image. And to support binman symbols, > u_boot_any could be optimized if RAW image is not selected, otherwise > there will be build failure. So not select SPL_RAW_IMAGE_SUPPORT > > Signed-off-by: Peng F

[PATCH v2] cmd: cat: add new command

2022-06-04 Thread Roger Knecht
Add cat command to print file content to standard out Signed-off-by: Roger Knecht --- v2: - Moved cat from boot to shell commands - Added MAINTAINERS entry - Added comments - Improved variable naming MAINTAINERS | 5 + cmd/Kconfig | 6 ++ cmd/Makefile | 1 + cmd/cat.c| 58 +

Re: [PATCH 2/2] efi: test/py: authenticate fit capsules

2022-06-04 Thread Heinrich Schuchardt
On 6/1/22 01:53, AKASHI Takahiro wrote: On Tue, May 31, 2022 at 09:55:34AM +0200, Vincent Stehl?? wrote: Add support for the authentication of UEFI capsules containing FIT images. Thank you for adding this enhancement. Sughosh could and should have done it from the beginning. The authenticat