lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 18 Jan 2021 23:56:37 +0530
From:   Raju Rangoju <rajur@...lsio.com>
To:     netdev@...r.kernel.org
Cc:     hch@....de, rahul.lakkireddy@...lsio.com, rajur@...lsio.com
Subject: how to determine if buffers are in user-space/kernel-space

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/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ