* how to determine if buffers are in user-space/kernel-space
@ 2021-01-18 18:26 Raju Rangoju
2021-01-19 2:20 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Raju Rangoju @ 2021-01-18 18:26 UTC (permalink / raw)
To: netdev; +Cc: hch, rahul.lakkireddy, rajur
Hi,
We have an out-of-tree kernel module which was using
segment_eq(get_fs(), KERNEL_DS) to determine whether buffers are in
Kernel space vs User space. However, with the get_fs() and its friends
removed[1], we are out of ideas on how to determine if buffers are in
user space or kernel space. Can someone shed some light on how to
accomplish it?
Thanks in Advance,
Raju
[1]
https://patchwork.kernel.org/project/linux-fsdevel/patch/20200817073212.830069-10-hch@lst.de/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how to determine if buffers are in user-space/kernel-space
2021-01-18 18:26 how to determine if buffers are in user-space/kernel-space Raju Rangoju
@ 2021-01-19 2:20 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2021-01-19 2:20 UTC (permalink / raw)
To: Raju Rangoju; +Cc: netdev, hch, rahul.lakkireddy
On Mon, 18 Jan 2021 23:56:37 +0530
Raju Rangoju <rajur@chelsio.com> wrote:
> Hi,
>
> We have an out-of-tree kernel module which was using
> segment_eq(get_fs(), KERNEL_DS) to determine whether buffers are in
> Kernel space vs User space. However, with the get_fs() and its friends
> removed[1], we are out of ideas on how to determine if buffers are in
> user space or kernel space. Can someone shed some light on how to
> accomplish it?
>
Sorry, you are asking in the wrong place. Supporting any out of
tree modules is completely your own problem to deal with.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-19 2:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 18:26 how to determine if buffers are in user-space/kernel-space Raju Rangoju
2021-01-19 2:20 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).