From: Michal Simek <michal.simek@amd.com>
To: <u-boot@lists.denx.de>, <git@xilinx.com>
Subject: [PATCH v2 0/3] xilinx: board: Improve legacy format handling
Date: Tue, 24 Jan 2023 16:19:25 +0100 [thread overview]
Message-ID: <cover.1674573561.git.michal.simek@amd.com> (raw)
Hi,
fix and improve legacy format handling to cover cases where eeprom content
is corrupted and random. Very likely detection algorithm can be improved -
for example check that mac address is valid, check all strings, etc. but
the aim of this series is to remove all non printable chars without mac
address and never copy more bytes than expected.
Thanks,
Michal
Changes in v2:
- Add +1 for strlcpy because only size -1 is used compare to strncpy.
Michal Simek (3):
xilinx: board: Use ETH_ALEN macro for mac address size
xilinx: board: Fix xilinx_eeprom_legacy_cleanup()
xilinx: board: Update logic in xilinx_read_eeprom_legacy
board/xilinx/common/board.c | 34 +++++++++++++++++++++-------------
1 file changed, 21 insertions(+), 13 deletions(-)
--
2.36.1
next reply other threads:[~2023-01-24 15:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-24 15:19 Michal Simek [this message]
2023-01-24 15:19 ` [PATCH v2 1/3] xilinx: board: Use ETH_ALEN macro for mac address size Michal Simek
2023-01-24 15:19 ` [PATCH v2 2/3] xilinx: board: Fix xilinx_eeprom_legacy_cleanup() Michal Simek
2023-01-24 15:19 ` [PATCH v2 3/3] xilinx: board: Update logic in xilinx_read_eeprom_legacy Michal Simek
2023-01-27 14:50 ` [PATCH v2 0/3] xilinx: board: Improve legacy format handling Michal Simek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1674573561.git.michal.simek@amd.com \
--to=michal.simek@amd.com \
--cc=git@xilinx.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox