read once write once

About this tag
The tag 'read once write once' on WindowsForum.com covers discussions about the READ_ONCE and WRITE_ONCE macros used in the Linux kernel to prevent data races in lockless code. A recent thread details a fix in the Linux bonding driver where fields like slave->last_rx and slave->target_last_arp_rx were annotated with these macros to eliminate undefined concurrent behavior flagged by syzbot and KCSAN. While the tag originates from Linux kernel development, it is relevant to Windows and enterprise IT professionals interested in low-level concurrency, driver reliability, and kernel debugging techniques that apply across operating systems.
  1. Linux Bonding Driver Data Race Fixed with READ_ONCE WRITE_ONCE

    A small, surgical change landed in the Linux kernel this month after syzbot and KCSAN flagged a data‑race in the bonding driver: fields used to track the last‑received timestamps on bond slaves—most notably slave->last_rx and slave->target_last_arp_rx[]—were being read and written locklessly...