[ovs-dev] [branch-3.0, v2] dpdk: Use DPDK 21.11.2 release.

2022-09-22 Thread Michael Phelan
Update OVS CLI and relevant documentation to use DPDK 21.11.2. DPDK 21.11.2 contains fixes for the CVEs listed below: CVE-2022-28199 [1] CVE-2022-2132 [2] A bug was introduced in DPDK 21.11.1 by the commit 01e3dee29c02 ("vhost: fix unsafe vring addresses modifications"). This bug can cause a

Re: [ovs-dev] [External] Re:[ovs-dev, ovs-dev, v2, 4/4] dpif-netdev: fix inconsistent processing between ukey and megaflow

2022-09-22 Thread . 贺鹏
Hi, zhike, It's difficult to give a very clear sequences about how this inconsistency happens, but I can give you more details. This is observed in our production environment. The correct megaflow should encap packets with vxlan header and send out, but the action is drop. This is usually

Re: [ovs-dev] [PATCH v2] utilities: Add revalidator measurement script and needed USDT probes.

2022-09-22 Thread Eelco Chaudron
On 22 Sep 2022, at 12:03, Adrian Moreno wrote: >>> I'm not a fan of this. Any updates to these structs needs to be >>> mirrored across the codebase. I think it might be better to do >>> something else. >> >> I agree with this, but for keeping things simple and not replicating this in >>

Re: [ovs-dev] [v3] dpdk: Use DPDK 21.11.2 release.

2022-09-22 Thread Kevin Traynor
Hi Michael, On 21/09/2022 16:08, Michael Phelan wrote: Update OVS CLI and relevant documentation to use DPDK 21.11.2. DPDK 21.11.2 contains fixes for the CVEs listed below: CVE-2022-28199 [1] CVE-2022-2132 [2] A bug was introduced in DPDK 21.11.1 by the commit 01e3dee29c02 ("vhost: fix unsafe

Re: [ovs-dev] [PATCH v2] utilities: Add revalidator measurement script and needed USDT probes.

2022-09-22 Thread Eelco Chaudron
On 22 Sep 2022, at 13:15, Adrian Moreno wrote: > On 9/21/22 11:17, Eelco Chaudron wrote: >> >> >> On 20 Sep 2022, at 20:52, Aaron Conole wrote: >> >>> Eelco Chaudron writes: >>> This patch adds a Python script that can be used to analyze the revalidator runs by providing statistics

Re: [ovs-dev] [PATCH ovn 2/3] controller: Avoid building dhcp/nd_ra/controller_event opt maps every time.

2022-09-22 Thread Han Zhou
On Wed, Sep 14, 2022 at 6:09 AM Dumitru Ceara wrote: > Thanks Dumitru for the improvement. > The nd_ra_opts and controller_event_ops are actually static they never > change at runtime. DHCP records can instead be computed when populating > the lflow "input context" to be used during

Re: [ovs-dev] [RFC PATCH ovn 0/5] Add OVN component templates.

2022-09-22 Thread Dumitru Ceara
Hi Han, On 9/21/22 23:06, Han Zhou wrote: > Thanks Dumitru for this promising optimization! > Thanks for checking it out! > On Thu, Aug 11, 2022 at 1:03 AM Dumitru Ceara wrote: >> >> On 8/10/22 19:54, Mark Michelson wrote: >>> Hi Dumitru, >>> >> >> Hi Mark, >> >>> I read the patch series, and

Re: [ovs-dev] [branch-2.17, v2] dpdk: Use DPDK 21.11.2 release.

2022-09-22 Thread 0-day Robot
Bleep bloop. Greetings Michael Phelan, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 102 characters long (recommended limit is 79) #110 FILE: NEWS:19:

Re: [ovs-dev] [PATCH ovn 1/3] controller: Remove unnecessary IDL table casts.

2022-09-22 Thread Han Zhou
On Wed, Sep 14, 2022 at 6:09 AM Dumitru Ceara wrote: > > There's no need to explicitly cast the result of EN_OVSDB_GET() to the IDL > table type. The only thing we need is to match constness. That's also > fine because, as a matter of fact, IDL table objects should never be > changed by IDL

Re: [ovs-dev] [RFC PATCH] netdev-dpdk: add control plane protection support

2022-09-22 Thread Robin Jarry
Hi Thilak, Thilak Raj Surendra Babu, Sep 22, 2022 at 07:16: > Could we call rte_flow_validate() before calling flow_create ? At first, I thought it would not be necessary hence skipped the validation and I am only relying on the driver to reject the rule if not supported. However, it may be a

Re: [ovs-dev] [branch-3.0, v2] dpdk: Use DPDK 21.11.2 release.

2022-09-22 Thread 0-day Robot
Bleep bloop. Greetings Michael Phelan, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 102 characters long (recommended limit is 79) #111 FILE: NEWS:14:

Re: [ovs-dev] [PATCH v2] utilities: Add revalidator measurement script and needed USDT probes.

2022-09-22 Thread Adrian Moreno
On 9/21/22 11:17, Eelco Chaudron wrote: On 20 Sep 2022, at 20:52, Aaron Conole wrote: Eelco Chaudron writes: This patch adds a Python script that can be used to analyze the revalidator runs by providing statistics (including some real time graphs). The USDT events can also be captured

Re: [ovs-dev] [PATCH v2] utilities: Add revalidator measurement script and needed USDT probes.

2022-09-22 Thread Adrian Moreno
On 9/21/22 11:17, Eelco Chaudron wrote: On 20 Sep 2022, at 20:52, Aaron Conole wrote: Eelco Chaudron writes: This patch adds a Python script that can be used to analyze the revalidator runs by providing statistics (including some real time graphs). The USDT events can also be captured

[ovs-dev] [branch-2.17, v2] dpdk: Use DPDK 21.11.2 release.

2022-09-22 Thread Michael Phelan
Update OVS CLI and relevant documentation to use DPDK 21.11.2. DPDK 21.11.2 contains fixes for the CVEs listed below: CVE-2022-28199 [1] CVE-2022-2132 [2] A bug was introduced in DPDK 21.11.1 by the commit 01e3dee29c02 ("vhost: fix unsafe vring addresses modifications"). This bug can cause a

[ovs-dev] [branch-2.15, v2] dpdk: Use DPDK 20.11.6 release.

2022-09-22 Thread Michael Phelan
Update OVS CLI and relevant documentation to use DPDK 20.11.6. A bug was introduced in DPDK 20.11.5 by the commit 33f2e3756186 ("vhost: fix unsafe vring addresses modifications"). This bug can cause a deadlock when vIOMMU is enabled and NUMA reallocation of the virtqueues happen. A fix [1] has

Re: [ovs-dev] [branch-2.16, v2] dpdk: Use DPDK 20.11.6 release.

2022-09-22 Thread 0-day Robot
Bleep bloop. Greetings Michael Phelan, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 102 characters long (recommended limit is 79) #97 FILE: NEWS:11:

[ovs-dev] [PATCH 04/12] btrfs: send: Proactively round up to kmalloc bucket size

2022-09-22 Thread Kees Cook
Instead of discovering the kmalloc bucket size _after_ allocation, round up proactively so the allocation is explicitly made for the full size, allowing the compiler to correctly reason about the resulting size of the buffer through the existing __alloc_size() hint. Cc:

[ovs-dev] [PATCH 06/12] coredump: Proactively round up to kmalloc bucket size

2022-09-22 Thread Kees Cook
Instead of discovering the kmalloc bucket size _after_ allocation, round up proactively so the allocation is explicitly made for the full size, allowing the compiler to correctly reason about the resulting size of the buffer through the existing __alloc_size() hint. Cc:

[ovs-dev] [PATCH 01/12] slab: Introduce kmalloc_size_roundup()

2022-09-22 Thread Kees Cook
In the effort to help the compiler reason about buffer sizes, the __alloc_size attribute was added to allocators. This improves the scope of the compiler's ability to apply CONFIG_UBSAN_BOUNDS and (in the near future) CONFIG_FORTIFY_SOURCE. For most allocations, this works well, as the vast

[ovs-dev] [PATCH 03/12] net: ipa: Proactively round up to kmalloc bucket size

2022-09-22 Thread Kees Cook
Instead of discovering the kmalloc bucket size _after_ allocation, round up proactively so the allocation is explicitly made for the full size, allowing the compiler to correctly reason about the resulting size of the buffer through the existing __alloc_size() hint. Cc: Alex Elder Cc: "David S.

[ovs-dev] [PATCH 09/12] x86/microcode/AMD: Track patch allocation size explicitly

2022-09-22 Thread Kees Cook
In preparation for reducing the use of ksize(), record the actual allocation size for later memcpy(). This avoids copying extra (uninitialized!) bytes into the patch buffer when the requested allocation size isn't exactly the size of a kmalloc bucket. Additionally fixes potential future issues

[ovs-dev] [PATCH 02/12] skbuff: Proactively round up to kmalloc bucket size

2022-09-22 Thread Kees Cook
Instead of discovering the kmalloc bucket size _after_ allocation, round up proactively so the allocation is explicitly made for the full size, allowing the compiler to correctly reason about the resulting size of the buffer through the existing __alloc_size() hint. This will allow for kernels

[ovs-dev] [PATCH 00/12] slab: Introduce kmalloc_size_roundup()

2022-09-22 Thread Kees Cook
Hi, This series fixes up the cases where callers of ksize() use it to opportunistically grow their buffer sizes, which can run afoul of the __alloc_size hinting that CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE use to perform dynamic buffer bounds checking. Quoting the first patch: In the

Re: [ovs-dev] [PATCH v2] utilities: Add revalidator measurement script and needed USDT probes.

2022-09-22 Thread Adrian Moreno
On 9/22/22 16:11, Adrian Moreno wrote: On 9/22/22 13:15, Eelco Chaudron wrote: On 22 Sep 2022, at 12:03, Adrian Moreno wrote: I'm not a fan of this.  Any updates to these structs needs to be mirrored across the codebase.  I think it might be better to do something else. I agree with

Re: [ovs-dev] [branch-2.13] dpdk: Use DPDK 19.11.13 release.

2022-09-22 Thread 0-day Robot
Bleep bloop. Greetings Michael Phelan, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 84 characters long (recommended limit is 79) #99 FILE: NEWS:12: A

[ovs-dev] [PATCH ovn branch-22.03] NEWS: Fix NEWS file.

2022-09-22 Thread Dumitru Ceara
Backport e292e1376545 ("Bump required python version to 3.6.") incorrectly changed the NEWS file. Fix it now. Signed-off-by: Dumitru Ceara --- NEWS | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/NEWS b/NEWS index 1d236da14..0fd255942 100644 --- a/NEWS +++

[ovs-dev] [branch-2.16, v2] dpdk: Use DPDK 20.11.6 release.

2022-09-22 Thread Michael Phelan
Update OVS CLI and relevant documentation to use DPDK 20.11.6. A bug was introduced in DPDK 20.11.5 by the commit 33f2e3756186 ("vhost: fix unsafe vring addresses modifications"). This bug can cause a deadlock when vIOMMU is enabled and NUMA reallocation of the virtqueues happen. A fix [1] has

[ovs-dev] [PATCH] dpif-netdev: Optimize flushing of output packet buffers

2022-09-22 Thread Dheeraj Kumar via dev
Problem Statement: Before OVS 2.12 the OVS-DPDK datapath transmitted processed rx packet batches directly to the wanted tx queues. In OVS 2.12 each PMD stores the processed packets in an intermediate buffer per output port and flushes these output buffers in a separate step. This buffering was

Re: [ovs-dev] [PATCH 00/12] slab: Introduce kmalloc_size_roundup()

2022-09-22 Thread Christian König via dev
Am 22.09.22 um 05:10 schrieb Kees Cook: Hi, This series fixes up the cases where callers of ksize() use it to opportunistically grow their buffer sizes, which can run afoul of the __alloc_size hinting that CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE use to perform dynamic buffer bounds

Re: [ovs-dev] [PATCH 01/12] slab: Introduce kmalloc_size_roundup()

2022-09-22 Thread Hyeonggon Yoo
On Wed, Sep 21, 2022 at 08:10:02PM -0700, Kees Cook wrote: > In the effort to help the compiler reason about buffer sizes, the > __alloc_size attribute was added to allocators. This improves the scope > of the compiler's ability to apply CONFIG_UBSAN_BOUNDS and (in the near > future)

Re: [ovs-dev] [PATCH ovn 1/3] controller: Remove unnecessary IDL table casts.

2022-09-22 Thread Dumitru Ceara
On 9/22/22 08:26, Han Zhou wrote: > On Wed, Sep 14, 2022 at 6:09 AM Dumitru Ceara wrote: >> >> There's no need to explicitly cast the result of EN_OVSDB_GET() to the IDL >> table type. The only thing we need is to match constness. That's also >> fine because, as a matter of fact, IDL table

Re: [ovs-dev] [PATCH ovn] doc, ovn-nbctl: Make it clear that LB can be without protocol

2022-09-22 Thread Dumitru Ceara
On 9/12/22 11:14, Ales Musil wrote: > The load balancers can operate without specified protocol. > Update the documentation for ovn-northd lflows with what is > actually created by northd and change the output of > ovn-nbctl lb-list to include protocol only if the > port is specified. Without port

Re: [ovs-dev] [PATCH 03/12] net: ipa: Proactively round up to kmalloc bucket size

2022-09-22 Thread Kees Cook
On Thu, Sep 22, 2022 at 08:45:19AM -0500, Alex Elder wrote: > On 9/21/22 10:10 PM, Kees Cook wrote: > > Instead of discovering the kmalloc bucket size _after_ allocation, round > > up proactively so the allocation is explicitly made for the full size, > > allowing the compiler to correctly reason

Re: [ovs-dev] [PATCH v2 net 2/2] net: openvswitch: allow conntrack in non-initial user namespace

2022-09-22 Thread Jakub Kicinski
On Wed, 21 Sep 2022 03:19:46 +0200 Michael Weiß wrote: > Similar to the previous commit, the Netlink interface of the OVS > conntrack module was restricted to global CAP_NET_ADMIN by using > GENL_ADMIN_PERM. This is changed to GENL_UNS_ADMIN_PERM to support > unprivileged containers in non-initial

Re: [ovs-dev] [PATCH ovn] ovn-nbctl: Simplify load balancer related code.

2022-09-22 Thread Dumitru Ceara
On 9/19/22 08:13, Ales Musil wrote: > Looks good to me, thanks. > > Acked-by: Ales Musil > Thanks! Applied to main. ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH ovn v2 1/2] ovn-controller: Adjust the order of monitor/track columns.

2022-09-22 Thread Dumitru Ceara
On 9/19/22 08:41, Ales Musil wrote: > On Fri, Sep 9, 2022 at 9:00 PM Han Zhou wrote: > >> This patch adjusts the order of adding tracked and untracked columns >> to monitoring, to workaround a problem in OVS IDL that could end up >> overwriting the track flag. A XXX comment is added for future

Re: [ovs-dev] [PATCH ovn v2 2/2] ovn-controller: Track OVSDB column open_vswitch:external_ids.

2022-09-22 Thread Dumitru Ceara
On 9/19/22 08:43, Ales Musil wrote: > On Fri, Sep 9, 2022 at 9:00 PM Han Zhou wrote: > >> The column was not tracked before while it should. The column includes >> many ovn-controller global configurations that could impact the way >> flows are computed. It worked before because lots of the

[ovs-dev] [PATCH 05/12] dma-buf: Proactively round up to kmalloc bucket size

2022-09-22 Thread Kees Cook
Instead of discovering the kmalloc bucket size _after_ allocation, round up proactively so the allocation is explicitly made for the full size, allowing the compiler to correctly reason about the resulting size of the buffer through the existing __alloc_size() hint. Cc:

[ovs-dev] [PATCH 08/12] openvswitch: Proactively round up to kmalloc bucket size

2022-09-22 Thread Kees Cook
Instead of having a mismatch between the requested allocation size and the actual kmalloc bucket size, which is examined later via ksize(), round up proactively so the allocation is explicitly made for the full size, allowing the compiler to correctly reason about the resulting size of the buffer

[ovs-dev] [PATCH 12/12] slab: Restore __alloc_size attribute to __kmalloc_track_caller

2022-09-22 Thread Kees Cook
With skbuff's post-allocation use of ksize() rearranged to use kmalloc_size_round() prior to allocation, the compiler can correctly reason about the size of these allocations. The prior mismatch had caused buffer overflow mitigations to erroneously fire under CONFIG_UBSAN_BOUNDS, requiring a

[ovs-dev] [PATCH 10/12] iwlwifi: Track scan_cmd allocation size explicitly

2022-09-22 Thread Kees Cook
In preparation for reducing the use of ksize(), explicitly track the size of scan_cmd allocations. This also allows for noticing if the scan size changes unexpectedly. Note that using ksize() was already incorrect here, in the sense that ksize() would not match the actual allocation size, which

Re: [ovs-dev] [PATCH 10/12] iwlwifi: Track scan_cmd allocation size explicitly

2022-09-22 Thread Kees Cook
On Thu, Sep 22, 2022 at 07:18:51AM +0300, Kalle Valo wrote: > Kees Cook writes: > > > In preparation for reducing the use of ksize(), explicitly track the > > size of scan_cmd allocations. This also allows for noticing if the scan > > size changes unexpectedly. Note that using ksize() was

Re: [ovs-dev] [PATCH 11/12] slab: Remove __malloc attribute from realloc functions

2022-09-22 Thread Miguel Ojeda
On Thu, Sep 22, 2022 at 5:10 AM Kees Cook wrote: > > -#ifdef __alloc_size__ > -# define __alloc_size(x, ...) __alloc_size__(x, ## __VA_ARGS__) __malloc > -#else > -# define __alloc_size(x, ...) __malloc > -#endif > +#define __alloc_size(x, ...) __alloc_size__(x, ## __VA_ARGS__) __malloc >

[ovs-dev] [PATCH 11/12] slab: Remove __malloc attribute from realloc functions

2022-09-22 Thread Kees Cook
The __malloc attribute should not be applied to "realloc" functions, as the returned pointer may alias the storage of the prior pointer. Instead of splitting __malloc from __alloc_size, which would be a huge amount of churn, just create __realloc_size for the few cases where it is needed.

Re: [ovs-dev] [PATCH 10/12] iwlwifi: Track scan_cmd allocation size explicitly

2022-09-22 Thread Kalle Valo
Kees Cook writes: > In preparation for reducing the use of ksize(), explicitly track the > size of scan_cmd allocations. This also allows for noticing if the scan > size changes unexpectedly. Note that using ksize() was already incorrect > here, in the sense that ksize() would not match the

Re: [ovs-dev] [PATCH 04/12] btrfs: send: Proactively round up to kmalloc bucket size

2022-09-22 Thread David Sterba
On Wed, Sep 21, 2022 at 08:10:05PM -0700, Kees Cook wrote: > Instead of discovering the kmalloc bucket size _after_ allocation, round > up proactively so the allocation is explicitly made for the full size, > allowing the compiler to correctly reason about the resulting size of > the buffer

Re: [ovs-dev] [PATCH 03/12] net: ipa: Proactively round up to kmalloc bucket size

2022-09-22 Thread Alex Elder via dev
On 9/21/22 10:10 PM, Kees Cook wrote: Instead of discovering the kmalloc bucket size _after_ allocation, round up proactively so the allocation is explicitly made for the full size, allowing the compiler to correctly reason about the resulting size of the buffer through the existing

Re: [ovs-dev] [branch-2.14] dpdk: Use DPDK 19.11.13 release.

2022-09-22 Thread 0-day Robot
Bleep bloop. Greetings Michael Phelan, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 84 characters long (recommended limit is 79) #101 FILE: NEWS:12: A

Re: [ovs-dev] [PATCH ovn branch-22.03] NEWS: Fix NEWS file.

2022-09-22 Thread Mark Michelson
Thanks, Dumitru. Acked-by: Mark Michelson I went ahead and merged this to branch-22.03 On 9/22/22 08:28, Dumitru Ceara wrote: Backport e292e1376545 ("Bump required python version to 3.6.") incorrectly changed the NEWS file. Fix it now. Signed-off-by: Dumitru Ceara --- NEWS | 13

Re: [ovs-dev] [PATCH v5 1/5] netdev-dpdk: Introduce per rxq/txq Vhost-user statistics.

2022-09-22 Thread Maxime Coquelin
Hi Ilya, On 1/17/22 19:01, Ilya Maximets wrote: On 1/5/22 09:19, Maxime Coquelin wrote: Hash-based Tx steering feature will enable steering Tx packets on transmit queues based on their hashes. In order to test the feature, it is needed to be able to get the per-queue statistics for Vhost-user

[ovs-dev] [PATCH 2/2] Add support for OpenSSL 3.0 functions

2022-09-22 Thread Timothy Redaelli
In OpenSSL 3.0 some functions were deprecated and replaced. This commit adds some #ifdef to build without warning on both OpenSSL 1.x and OpenSSL 3.x. For OpenSSL 3.x, the default built-in DH parameters are used (as suggested by SSL_CTX_set_dh_auto manpage). Signed-off-by: Timothy Redaelli ---

[ovs-dev] [PATCH 1/2] dhparams: Fix .c file generation with OpenSSL >= 3.0

2022-09-22 Thread Timothy Redaelli
Since OpenSSL upstream commit 1696b8909bbe ("Remove -C from dhparam,dsaparam,ecparam") "openssl dhparam" doesn't support -C anymore. This commit changes generate-dhparams-c to generate dhparams.c by parsing "openssl dhparam -in "$1" -text -noout" output directly. The generated file won't be used

[ovs-dev] [PATCH 0/2] Remove deprecated OpenSSL functions on openssl 3.0

2022-09-22 Thread Timothy Redaelli
Currently, it's not possible to build OVS using OpenSSL 3.0 with --enable-Werror since OpenSSL 3.0 deprecated some functions. Moreover, it's not possible to generate dhparams.c anymore on OpenSSL 3.0 since -C option was removed from openssl dhparam tool. With this series, it's possible to

[ovs-dev] [branch-2.14] dpdk: Use DPDK 19.11.13 release.

2022-09-22 Thread Michael Phelan
Update OVS CLI and relevant documentation to use DPDK 19.11.13. DPDK 19.11.13 contains fixes for the CVEs listed below: CVE-2022-28199 [1] CVE-2022-2132 [2] A bug was introduced in DPDK 19.11.12 by the commit 1e68fe334ff0 ("vhost: fix unsafe vring addresses modifications"). This bug can cause a

[ovs-dev] [branch-2.13] dpdk: Use DPDK 19.11.13 release.

2022-09-22 Thread Michael Phelan
Update OVS CLI and relevant documentation to use DPDK 19.11.13. DPDK 19.11.13 contains fixes for the CVEs listed below: CVE-2022-28199 [1] CVE-2022-2132 [2] A bug was introduced in DPDK 19.11.12 by the commit 1e68fe334ff0 ("vhost: fix unsafe vring addresses modifications"). This bug can cause a

Re: [ovs-dev] [PATCH 11/12] slab: Remove __malloc attribute from realloc functions

2022-09-22 Thread Kees Cook
On Thu, Sep 22, 2022 at 11:23:46AM +0200, Miguel Ojeda wrote: > On Thu, Sep 22, 2022 at 5:10 AM Kees Cook wrote: > > > > -#ifdef __alloc_size__ > > -# define __alloc_size(x, ...) __alloc_size__(x, ## __VA_ARGS__) __malloc > > -#else > > -# define __alloc_size(x, ...) __malloc > > -#endif > >

Re: [ovs-dev] [PATCH v2] utilities: Add revalidator measurement script and needed USDT probes.

2022-09-22 Thread Adrian Moreno
On 9/22/22 13:15, Eelco Chaudron wrote: On 22 Sep 2022, at 12:03, Adrian Moreno wrote: I'm not a fan of this. Any updates to these structs needs to be mirrored across the codebase. I think it might be better to do something else. I agree with this, but for keeping things simple and

Re: [ovs-dev] [PATCH ovn] pinctrl fix missing packets (e.g. icmp)

2022-09-22 Thread Dumitru Ceara
On 8/18/22 20:57, Mark Michelson wrote: > Hi Xavier. I think the only foolproof way to get the seq logic right in > pinctrl is to perform all of the processing of pinctrl_handler > (including reading the seq and waiting on the seq) with the > pinctrl_mutex locked. However, this could cause a lot

Re: [ovs-dev] [PATCH 00/12] slab: Introduce kmalloc_size_roundup()

2022-09-22 Thread Kees Cook
On Thu, Sep 22, 2022 at 09:10:56AM +0200, Christian König wrote: > Am 22.09.22 um 05:10 schrieb Kees Cook: > > Hi, > > > > This series fixes up the cases where callers of ksize() use it to > > opportunistically grow their buffer sizes, which can run afoul of the > > __alloc_size hinting that

Re: [ovs-dev] [PATCH 07/12] igb: Proactively round up to kmalloc bucket size

2022-09-22 Thread Kees Cook
On Thu, Sep 22, 2022 at 03:56:54PM +, Ruhl, Michael J wrote: > >From: dri-devel On Behalf Of Kees > >Cook > [...] > >diff --git a/drivers/net/ethernet/intel/igb/igb_main.c > >b/drivers/net/ethernet/intel/igb/igb_main.c > >index 2796e81d2726..4d70ee5b0f79 100644 > >---

Re: [ovs-dev] [RFC PATCH ovn 0/5] Add OVN component templates.

2022-09-22 Thread Han Zhou
On Thu, Sep 22, 2022 at 10:38 AM Han Zhou wrote: > > > > On Thu, Sep 22, 2022 at 1:00 AM Dumitru Ceara wrote: > > > > Hi Han, > > > > On 9/21/22 23:06, Han Zhou wrote: > > > Thanks Dumitru for this promising optimization! > > > > > > > Thanks for checking it out! > > > > > On Thu, Aug 11, 2022

Re: [ovs-dev] [PATCH ovn 1/5] treewide: Fix various typos in manual pages

2022-09-22 Thread Dumitru Ceara
On 8/5/22 22:34, Frode Nordahl wrote: > As reported by Debian lintian. > > Signed-off-by: Frode Nordahl > --- I added Mark's ack and pushed this patch to the main branch. Thanks, Dumitru ___ dev mailing list d...@openvswitch.org

Re: [ovs-dev] [PATCH 07/12] igb: Proactively round up to kmalloc bucket size

2022-09-22 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Kees Cook >Sent: Wednesday, September 21, 2022 11:10 PM >To: Vlastimil Babka >Cc: linux-wirel...@vger.kernel.org; Jacob Shin ; >l...@lists.linux.dev; dri-de...@lists.freedesktop.org; linux...@kvack.org; >Eric Dumazet ; Nguyen, Anthony

Re: [ovs-dev] [PATCH 11/12] slab: Remove __malloc attribute from realloc functions

2022-09-22 Thread Miguel Ojeda
On Thu, Sep 22, 2022 at 5:56 PM Kees Cook wrote: > > I wasn't sure if this "composite macro" was sane there, especially since > it would be using __malloc before it was defined, etc. Would you prefer > I move it? Hmm... On one hand, they end up being attributes, so it could make sense to have

Re: [ovs-dev] [RFC PATCH ovn 0/5] Add OVN component templates.

2022-09-22 Thread Han Zhou
On Thu, Sep 22, 2022 at 1:00 AM Dumitru Ceara wrote: > > Hi Han, > > On 9/21/22 23:06, Han Zhou wrote: > > Thanks Dumitru for this promising optimization! > > > > Thanks for checking it out! > > > On Thu, Aug 11, 2022 at 1:03 AM Dumitru Ceara wrote: > >> > >> On 8/10/22 19:54, Mark Michelson

Re: [ovs-dev] [PATCH 02/12] skbuff: Proactively round up to kmalloc bucket size

2022-09-22 Thread Jakub Kicinski
On Wed, 21 Sep 2022 20:10:03 -0700 Kees Cook wrote: > diff --git a/net/core/skbuff.c b/net/core/skbuff.c > index 974e7138..4fe4c7544c1d 100644 > --- a/net/core/skbuff.c > +++ b/net/core/skbuff.c > @@ -427,14 +427,15 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t > gfp_mask, >

Re: [ovs-dev] [PATCH 00/12] slab: Introduce kmalloc_size_roundup()

2022-09-22 Thread Vlastimil Babka
On 9/22/22 17:55, Kees Cook wrote: > On Thu, Sep 22, 2022 at 09:10:56AM +0200, Christian König wrote: >> Am 22.09.22 um 05:10 schrieb Kees Cook: >> > Hi, >> > >> > This series fixes up the cases where callers of ksize() use it to >> > opportunistically grow their buffer sizes, which can run afoul

Re: [ovs-dev] [PATCH 00/12] slab: Introduce kmalloc_size_roundup()

2022-09-22 Thread Kees Cook
On Thu, Sep 22, 2022 at 11:05:47PM +0200, Vlastimil Babka wrote: > On 9/22/22 17:55, Kees Cook wrote: > > On Thu, Sep 22, 2022 at 09:10:56AM +0200, Christian König wrote: > > [...] > > > So when this patch set is about to clean up this use case it should > > > probably > > > also take care to

Re: [ovs-dev] [PATCH ovn 3/3] inc-proc-eng: Rename the 'clear_tracked_data' callback to 'init_run'.

2022-09-22 Thread Han Zhou
On Wed, Sep 14, 2022 at 6:10 AM Dumitru Ceara wrote: > > This is actually more in line with how the callback is used. It's called > every the incremental engine preparese for the next engine run. > > Signed-off-by: Dumitru Ceara Thanks Dumtru. The name looks good to me, but why does the new