Re: Network/block layer race.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <johnpol@...>
Cc: <axboe@...>, <netdev@...>
Date: Friday, March 28, 2008 - 4:40 pm

From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Date: Fri, 28 Mar 2008 12:20:36 +0300


It is well known that between when a page is given to sendfile path
and it is actually transmitted to the network the kernel can write
into that page multiple times.

That's why we only allow sendfile over device paths that support
checksum offloading, since the page contents can change freely at any
moment in time.

The refrence counting is to prevent leaks, rather than to protect
the integrity of the contents.

If content protection is desired, higher level things are needed.
For example, SAMBA only uses sendfile() if the remote client
has an OP lock on the file in question.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Network/block layer race., Evgeniy Polyakov, (Fri Mar 28, 5:20 am)
Re: Network/block layer race., David Miller, (Fri Mar 28, 4:40 pm)
Re: Network/block layer race., Evgeniy Polyakov, (Fri Mar 28, 4:56 pm)
Re: Network/block layer race., David Miller, (Fri Mar 28, 5:07 pm)
Re: Network/block layer race., Evgeniy Polyakov, (Fri Mar 28, 5:51 pm)