struct sk_buff_head *list = &sk->sk_receive_queue;
        int rmem, err = -ENOMEM;
        spinlock_t *busy = NULL;
-       int size;
+       int size, rcvbuf;
 
-       /* try to avoid the costly atomic add/sub pair when the receive
-        * queue is full; always allow at least a packet
+       /* Immediately drop when the receive queue is full.
+        * Always allow at least one packet.
         */
        rmem = atomic_read(&sk->sk_rmem_alloc);
-       if (rmem > sk->sk_rcvbuf)
+       rcvbuf = READ_ONCE(sk->sk_rcvbuf);
+       if (rmem > rcvbuf)
                goto drop;
 
        /* Under mem pressure, it might be helpful to help udp_recvmsg()
         * - Less cache line misses at copyout() time
         * - Less work at consume_skb() (less alien page frag freeing)
         */
-       if (rmem > (sk->sk_rcvbuf >> 1)) {
+       if (rmem > (rcvbuf >> 1)) {
                skb_condense(skb);
 
                busy = busylock_acquire(sk);