On 4/7/25 7:39 PM, Jordan Rife wrote:
3) If vmalloc fails, propagate ENOMEM up to userspace and stop iteration instead of making the tradeoff of possibly repeating or skipping sockets. seq_read can already return ENOMEM in some cases, so IMO this feels more correct. WDYT?
Agree that this is better.The stop() may need to take care of the start()/next() may fail. Take a look at the bpf_seq_read() in bpf_iter.c. Please check.