Maximum value of offset in scatterlist structure

Harsh Jain harshjain.prof at gmail.com
Mon Sep 18 10:46:00 EDT 2017


Hi,

Since scatter/gather structure deals with page address. By defination
offset in page should be 0 <= offset< PAGE_SIZE. But in kernel code
when ever we increment sg->offset, we didn't not check for upper limit
 like in function "

__skb_to_sgvec".

"

Is n't it wrong?

Regards
Harsh Jain



More information about the Kernelnewbies mailing list