Netdev List
 help / color / mirror / Atom feed
* [PATCH v2 net 0/2] drop_monitor: take care of 32bit kernels
@ 2026-07-22 14:17 Eric Dumazet
  2026-07-22 14:17 ` [PATCH v2 net 1/2] drop_monitor: fix size calculations for 64-bit attributes Eric Dumazet
  2026-07-22 14:17 ` [PATCH v2 net 2/2] drop_monitor: perform u64_stats updates under IRQ-disabled section Eric Dumazet
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Dumazet @ 2026-07-22 14:17 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Ido Schimmel, netdev, eric.dumazet, Eric Dumazet

This series fixes two drop_monitor issues on 32-bit architectures:

- Patch 1 uses nla_total_size_64bit() for PC and TIMESTAMP attributes to
  account for alignment padding added by nla_put_u64_64bit(), avoiding
  potential skb_over_panic() crashes.

- Patch 2 moves u64_stats updates before spin_unlock_irqrestore(), ensuring
  local interrupts are disabled to prevent seqcount corruption from nested
  interrupts in probe context.

Eric Dumazet (2):
  drop_monitor: fix size calculations for 64-bit attributes
  drop_monitor: perform u64_stats updates under IRQ-disabled section

 net/core/drop_monitor.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

-- 
2.55.0.229.g6434b31f56-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-22 14:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-22 14:17 [PATCH v2 net 0/2] drop_monitor: take care of 32bit kernels Eric Dumazet
2026-07-22 14:17 ` [PATCH v2 net 1/2] drop_monitor: fix size calculations for 64-bit attributes Eric Dumazet
2026-07-22 14:17 ` [PATCH v2 net 2/2] drop_monitor: perform u64_stats updates under IRQ-disabled section Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox