[PATCH v8 3/3] net: bootp: add config option BOOTP_RANDOM_XID

2024-05-08 Thread Sean Edmond
The new config option BOOTP_RANDOM_XID will randomize the transaction ID for each new BOOT/DHCPv4 exchange. Signed-off-by: Sean Edmond Reviewed-by: Tom Rini --- (no changes since v5) Changes in v5: - fix depends for BOOTP_RANDOM_XID: "depends on CMD_BOOTP && (LIB_RAND |

[PATCH v8 2/3] net: bootp: BOOTP/DHCPv4 retransmission improvements

2024-05-08 Thread Sean Edmond
n interval to be configurable using the environment variable "bootpretransmitperiodinit". Also, on a retransmission it is not expected for the transaction ID to change (only the 'secs' field should be updated). Let's save the transaction ID and use the same transaction ID for each BOOTP/DHCPv4 exchange.

[PATCH v8 1/3] net: Enhancements for dhcp option 209

2024-05-08 Thread Sean Edmond
- Enable option 209 by default - Set pxelinux_configfile to NULL to avoid potential double free - change hardcoded 209 to a define Signed-off-by: Sean Edmond --- (no changes since v7) Changes in v7: - Reword this commit Changes in v6: - Reword this commit Changes in v4: - rebase master

[PATCH v8 0/3] BOOTP/DHCPv4 enhancements

2024-05-08 Thread Sean Edmond
etransmission timeout - Add depends for BOOTP_RANDOM_XID Changes in v2: - use env_get_ulong() to get environment variables Sean Edmond (3): net: Enhancements for dhcp option 209 net: bootp: BOOTP/DHCPv4 retransmission improvements net: bootp: add config option BOOTP_RANDOM_XID cmd/Kc

Re: [PATCH] Fix neighbor discovery ethernet address saving

2024-05-07 Thread Sean Edmond
_server_ethaddr). Sean On 2024-05-05 2:40 a.m., Vyacheslav V. Mitrofanov wrote: On Mon, 2024-04-29 at 11:51 -0700, seanedm...@linux.microsoft.com wrote: s...@yadro.com<mailto:s...@yadro.com> From: Sean Edmond When a successful neighbor advertisement is received, the ether

[PATCH v6 3/3] net: bootp: add config option BOOTP_RANDOM_XID

2024-04-29 Thread Sean Edmond
The new config option BOOTP_RANDOM_XID will randomize the transaction ID for each new BOOT/DHCPv4 exchange. Signed-off-by: Sean Edmond Reviewed-by: Tom Rini --- (no changes since v5) Changes in v5: - fix depends for BOOTP_RANDOM_XID: "depends on CMD_BOOTP && (LIB_RAND |

[PATCH v6 2/3] net: bootp: BOOTP/DHCPv4 retransmission improvements

2024-04-29 Thread Sean Edmond
n interval to be configurable using the environment variable "bootpretransmitperiodinit". Also, on a retransmission it is not expected for the transaction ID to change (only the 'secs' field should be updated). Let's save the transaction ID and use the same transaction ID for each BOOTP/DHCPv4 exchange.

[PATCH v6 1/3] net: Enhancements for dhcp option 209

2024-04-29 Thread Sean Edmond
- Enable option 209 by default - Set pxelinux_configfile to NULL to avoid potential double free - change hardcoded 209 to a define Signed-off-by: Sean Edmond --- Changes in v7: - Reword this commit Changes in v6: - Reword this commit Changes in v4: - rebase master and resolve conflicts

[PATCH v6 0/3] BOOTP/DHCPv4 enhancements

2024-04-29 Thread Sean Edmond
"config CMD_BOOTP" (retransmission improvements require rand()) Changes in v3: - add define for option 209 and rfc5071 reference - Set RETRANSMIT_PERIOD_MAX_MS=6 - Add randomization factor to retransmission timeout - Add depends for BOOTP_RANDOM_XID Changes in v2: - use

[PATCH v6 5/5] fdt: Fix compile error for !OFNODE_MULTI_TREE

2023-11-30 Thread Sean Edmond
Required to fix the following compile error when building sandbox: /tmp/cci9ibby.ltrans21.ltrans.o: In function `do_cedit_load': :(.text+0x601d): undefined reference to `oftree_dispose' Signed-off-by: Sean Edmond Reviewed-by: Simon Glass --- (no changes since v3) Changes in v3: - fix compile

[PATCH v6 4/5] dm: core: Modify default for OFNODE_MULTI_TREE

2023-11-30 Thread Sean Edmond
ted, Let's modify the default value for OFNODE_MULTI_TREE to ensure it's always set. This will cause a 1007 byte increase in the code size. Signed-off-by: Sean Edmond Reviewed-by: Simon Glass --- (no changes since v5) Changes in v5: - Always enable OFNODE_MULTI_TREE Changes in v4: - Fix compile

[PATCH v6 0/5] Populate kaslr seed with RNG

2023-11-30 Thread Sean Edmond
first_device_err() - Change default config for OFNODE_MULTI_TREE (y if !OF_LIVE) Dhananjay Phadke (2): fdt: common API to populate kaslr seed fdt: kaslr seed from RNG device Sean Edmond (3): cmd: kaslrseed: Use common API to fixup FDT dm: core: Modify default for OFNODE_MULTI_TREE fdt: F

[PATCH v6 3/5] cmd: kaslrseed: Use common API to fixup FDT

2023-11-30 Thread Sean Edmond
Use the newly introduced common API fdt_fixup_kaslr_seed() in the kaslrseed command. Signed-off-by: Sean Edmond Reviewed-by: Simon Glass --- Changes in v6: - root_ofnode_from_fdt()->ofnode_root_from_fdt() - "goto CMD_RET_FAILURE" -> "return CMD_RET_FAILURE" Ch

[PATCH v6 2/5] fdt: kaslr seed from RNG device

2023-11-30 Thread Sean Edmond
From: Dhananjay Phadke Add support for KASLR seed from the RNG device. Invokes dm_rng_read() API to read 8-bytes of random bytes. Performs the FDT fixup using event spy. To enable use CONFIG_KASLR_RNG_SEED Signed-off-by: Dhananjay Phadke Signed-off-by: Drew Kluemke Signed-off-by: Sean

[PATCH v6 1/5] fdt: common API to populate kaslr seed

2023-11-30 Thread Sean Edmond
From: Dhananjay Phadke fdt_fixup_kaslr_seed() will update given ofnode with random seed value. Source for random seed can be TPM or RNG driver in u-boot or sec firmware (ARM). Signed-off-by: Dhananjay Phadke Signed-off-by: Sean Edmond Signed-off-by: Sean Edmond --- Changes in v6

Re: [PATCH v5 2/5] fdt: kaslr seed from RNG device

2023-11-22 Thread Sean Edmond
: From: Dhananjay Phadke Add support for KASLR seed from the RNG device. Invokes dm_rng_read() API to read 8-bytes of random bytes. Performs the FDT fixup using event spy. To enable use CONFIG_KASLR_RNG_SEED Signed-off-by: Dhananjay Phadke Signed-off-by: Drew Kluemke Signed-off-by: Sean Edmond

[PATCH v6 3/3] net: bootp: add config option BOOTP_RANDOM_XID

2023-11-22 Thread Sean Edmond
The new config option BOOTP_RANDOM_XID will randomize the transaction ID for each new BOOT/DHCPv4 exchange. Signed-off-by: Sean Edmond Reviewed-by: Tom Rini --- (no changes since v5) Changes in v5: - fix depends for BOOTP_RANDOM_XID: "depends on CMD_BOOTP && (LIB_RAND |

[PATCH v6 2/3] net: bootp: BOOTP/DHCPv4 retransmission improvements

2023-11-22 Thread Sean Edmond
n interval to be configurable using the environment variable "bootpretransmitperiodinit". Also, on a retransmission it is not expected for the transaction ID to change (only the 'secs' field should be updated). Let's save the transaction ID and use the same transaction ID for each BOOTP/DHCPv4 exchange.

[PATCH v6 1/3] net: Enhancements for dhcp option 209

2023-11-22 Thread Sean Edmond
- Enable option 209 by default - Set pxelinux_configfile to NULL to avoid potential double free - change hardcoced 209 to a define Signed-off-by: Sean Edmond --- Changes in v6: - Reword this commit Changes in v4: - rebase master and resolve conflicts - default y for BOOTP_PXE_DHCP_OPTION

[PATCH v6 0/3] BOOTP/DHCPv4 enhancements

2023-11-22 Thread Sean Edmond
omization factor to retransmission timeout - Add depends for BOOTP_RANDOM_XID Changes in v2: - use env_get_ulong() to get environment variables Sean Edmond (3): net: Enhancements for dhcp option 209 net: bootp: BOOTP/DHCPv4 retransmission improvements net: bootp: add config option BOOTP_RANDOM_

Re: [PATCH v2 1/3] net: Get pxe config file from dhcp option 209

2023-11-07 Thread Sean Edmond
On 2023-11-04 12:53 a.m., Heinrich Schuchardt wrote: On 11/4/23 03:03, Sean Edmond wrote: On 2023-10-23 10:54 p.m., Heinrich Schuchardt wrote: On 10/24/23 02:21, seanedm...@linux.microsoft.com wrote: From: Sean Edmond Allow dhcp server pass pxe config file full path by using option 209

Re: [PATCH v2 2/3] net: bootp: BOOTP/DHCPv4 retransmission improvements

2023-11-03 Thread Sean Edmond
On 2023-10-23 11:06 p.m., Heinrich Schuchardt wrote: On 10/24/23 02:21, seanedm...@linux.microsoft.com wrote: From: Sean Edmond This patch introduces 3 improvements to align with RFC 951: - retransmission backoff interval maximum is configurable - initial retranmission backoff interval

Re: [PATCH v2 1/3] net: Get pxe config file from dhcp option 209

2023-11-03 Thread Sean Edmond
On 2023-10-23 10:54 p.m., Heinrich Schuchardt wrote: On 10/24/23 02:21, seanedm...@linux.microsoft.com wrote: From: Sean Edmond Allow dhcp server pass pxe config file full path by using option 209 Signed-off-by: Sean Edmond ---   cmd/Kconfig |  4   cmd/pxe.c   | 10 ++   net

Re: [PATCH v2 2/3] net: bootp: BOOTP/DHCPv4 retransmission improvements

2023-10-24 Thread Sean Edmond
On 2023-10-23 11:06 p.m., Heinrich Schuchardt wrote: On 10/24/23 02:21, seanedm...@linux.microsoft.com wrote: From: Sean Edmond This patch introduces 3 improvements to align with RFC 951: - retransmission backoff interval maximum is configurable - initial retranmission backoff interval

Re: [PATCHv10 14/15] net/lwip: replace original net commands with lwip

2023-10-03 Thread Sean Edmond
On 2023-10-03 2:58 p.m., Peter Robinson wrote: On Tue, Oct 3, 2023 at 6:58 PM Sean Edmond wrote: On 2023-09-26 2:41 a.m., Maxim Uvarov wrote: Replace original commands: ping, tftp, dhcp and wget. Signed-off-by: Maxim Uvarov --- boot/bootmeth_efi.c | 18 +++--- boot/bootmeth_pxe.c

Re: [PATCH 2/3] net: bootp: BOOTP/DHCPv4 retransmission improvements

2023-10-03 Thread Sean Edmond
On 2023-09-26 9:11 p.m., Lothar Waßmann wrote: Hi, On Mon, 25 Sep 2023 13:29:34 -0700 seanedm...@linux.microsoft.com wrote: From: Sean Edmond This patch introduces 3 improvements to align with RFC 951: - retransmission backoff interval maximum is configurable - initial retranmission

Re: [PATCH 0/3] BOOTP/DHCPv4 enhancements

2023-10-03 Thread Sean Edmond
/parsing option 209 (PXE config file). Enabled with Kconfig BOOTP_PXE_DHCP_OPTION. Note, this patch was submitted previously but this latest version has been enhanced to avoid a possible double free(). Sean Edmond (3): net: Get pxe config file from dhcp option 209 net: bootp: BOOTP/DHCPv4

Re: [PATCHv10 14/15] net/lwip: replace original net commands with lwip

2023-10-03 Thread Sean Edmond
On 2023-09-26 2:41 a.m., Maxim Uvarov wrote: Replace original commands: ping, tftp, dhcp and wget. Signed-off-by: Maxim Uvarov --- boot/bootmeth_efi.c | 18 +++--- boot/bootmeth_pxe.c | 21 ++- cmd/net.c | 86 + cmd/pxe.c

Re: [PATCH 2/5] drivers: security: Add TPM2 implementation of security devices

2023-08-17 Thread Sean Edmond
Hi Simon, On 2023-08-17 6:41 a.m., Simon Glass wrote: Hi Sean, On Fri, 11 Aug 2023 at 18:28, wrote: From: Stephen Carlson This implementation of the security uclass driver allows existing TPM2 devices declared in the device tree to be referenced for storing the OS anti-rollback counter,

Re: [PATCH 1/3] fdt: common API to populate kaslr seed

2023-08-17 Thread Sean Edmond
On 2023-08-15 10:46 a.m., Sean Edmond wrote: On 2023-08-15 7:44 a.m., Simon Glass wrote: Hi Sean, On Mon, 14 Aug 2023 at 13:12, Sean Edmond wrote: On 2023-08-12 6:09 a.m., Simon Glass wrote: Hi Sean, On Fri, 11 Aug 2023 at 11:14, Sean Edmond wrote: On 2023-08-09 6:49 p.m., Simon

Re: [PATCH 1/3] fdt: common API to populate kaslr seed

2023-08-15 Thread Sean Edmond
On 2023-08-15 7:44 a.m., Simon Glass wrote: Hi Sean, On Mon, 14 Aug 2023 at 13:12, Sean Edmond wrote: On 2023-08-12 6:09 a.m., Simon Glass wrote: Hi Sean, On Fri, 11 Aug 2023 at 11:14, Sean Edmond wrote: On 2023-08-09 6:49 p.m., Simon Glass wrote: Hi Sean, On Wed, 9 Aug 2023 at 16:35

Re: [PATCH 2/5] drivers: security: Add TPM2 implementation of security devices

2023-08-14 Thread Sean Edmond
On 2023-08-14 1:39 a.m., Ilias Apalodimas wrote: Hi Sean On Sat, 12 Aug 2023 at 03:28, wrote: From: Stephen Carlson This implementation of the security uclass driver allows existing TPM2 devices declared in the device tree to be referenced for storing the OS anti-rollback counter, using

Re: [PATCH 1/3] fdt: common API to populate kaslr seed

2023-08-14 Thread Sean Edmond
On 2023-08-12 6:09 a.m., Simon Glass wrote: Hi Sean, On Fri, 11 Aug 2023 at 11:14, Sean Edmond wrote: On 2023-08-09 6:49 p.m., Simon Glass wrote: Hi Sean, On Wed, 9 Aug 2023 at 16:35, Sean Edmond wrote: On 2023-08-08 7:03 p.m., Simon Glass wrote: Hi, On Fri, 4 Aug 2023 at 17:34

Re: [PATCH 1/3] fdt: common API to populate kaslr seed

2023-08-11 Thread Sean Edmond
On 2023-08-09 6:49 p.m., Simon Glass wrote: Hi Sean, On Wed, 9 Aug 2023 at 16:35, Sean Edmond wrote: On 2023-08-08 7:03 p.m., Simon Glass wrote: Hi, On Fri, 4 Aug 2023 at 17:34, wrote: From: Dhananjay Phadke fdt_fixup_kaslr_seed() will update given FDT with random seed value. Source

Re: [PATCH 1/3] fdt: common API to populate kaslr seed

2023-08-09 Thread Sean Edmond
On 2023-08-08 7:03 p.m., Simon Glass wrote: Hi, On Fri, 4 Aug 2023 at 17:34, wrote: From: Dhananjay Phadke fdt_fixup_kaslr_seed() will update given FDT with random seed value. Source for random seed can be TPM or RNG driver in u-boot or sec firmware (ARM). Signed-off-by: Dhananjay Phadke

Re: [PATCH v9 4/6] bootm: Support boot measurement

2023-08-04 Thread Sean Edmond
On 2023-03-08 1:25 p.m., Eddie James wrote: Add a configuration option to measure the boot through the bootm function. Add the measurement state to the booti and bootz paths as well. Signed-off-by: Eddie James Reviewed-by: Simon Glass --- Changes since v8: - Added a configuration option to

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2023-05-18 Thread Sean Edmond
On 2023-05-08 1:20 p.m., Tom Rini wrote: Here's the latest defect report: -- Forwarded message - From: Date: Mon, May 8, 2023, 2:29 PM Subject: New Defects reported by Coverity Scan for Das U-Boot To: Hi, Please find the latest report on new defect(s) introduced to Das

Re: [PATCH v2 1/3] net: dhcp6: Add DHCPv6 (DHCP for IPv6)

2023-05-02 Thread Sean Edmond
On 2023-04-25 12:03 p.m., Ramon Fried wrote: On Fri, Apr 7, 2023 at 9:55 PM Simon Glass wrote: Hi, On Fri, 7 Apr 2023 at 18:56, wrote: From: Sean Edmond Adds DHCPv6 protocol to u-boot. Allows for address assignement with DHCPv6 4-message exchange (SOLICIT->ADVERTISE->REQUEST-

Re: [PATCH v2 2/3] net: dhcp6: pxe: Add DHCP/PXE commands for IPv6

2023-04-10 Thread Sean Edmond
On 2023-04-07 11:55 a.m., Simon Glass wrote: Hi Sean, On Fri, 7 Apr 2023 at 18:56, wrote: From: Sean Edmond Adds commands to support DHCP and PXE with IPv6. New configs added: - CMD_DHCP6 - DHCP6_PXE_CLIENTARCH - DHCP6_PXE_DHCP_OPTION - DHCP6_ENTERPRISE_ID New commands added (when IPv6

Re: [PATCH] net: ipv6: IPv6 environment variable cleanup

2023-02-20 Thread Sean Edmond
Sat, Feb 18, 2023 at 10:09:56PM +0200, Ramon Fried wrote: > On Thu, Feb 16, 2023 at 6:39 AM wrote: > > > > From: Sean Edmond > > > > Fix "setenv gatewayip6". > > > > Synchronize IPv6 local variables with environment variables > > in

RE: [EXTERNAL] Re: [PATCH] net: ipv6: IPv6 environment variable cleanup

2023-02-20 Thread Sean Edmond
>-Original Message- >From: Ramon Fried >Sent: Saturday, February 18, 2023 12:10 PM >To: seanedm...@linux.microsoft.com >Cc: u-boot@lists.denx.de; joe.hershber...@ni.com; w...@denx.de; Sean >Edmond >Subject: [EXTERNAL] Re: [PATCH] net: ipv6: IPv6 environment varia