summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorMitko Haralanov <mitko.haralanov@intel.com>2016-08-16 13:26:12 -0700
committerDoug Ledford <dledford@redhat.com>2016-08-22 15:00:42 -0400
commit08fe16f6192bccd5798e9b60461f7aa151b34cd4 (patch)
treef09273bc9100d2bb972001373f80eb2df40176f7 /Documentation
parentf29a08dc145e05de6a57f0aeaba6020464f80e15 (diff)
IB/hfi1: Improve J_KEY generation
Previously, J_KEY generation was based on the lower 16 bits of the user's UID. While this works, it was not good enough as a non-root user could collide with a root user given a sufficiently large UID. This patch attempt to improve the J_KEY generation by using the following algorithm: The 16 bit J_KEY space is partitioned into 3 separate spaces reserved for different user classes: * all users with administtor privileges (including 'root') will use J_KEYs in the range of 0 to 31, * all kernel protocols, which use KDETH packets will use J_KEYs in the range of 32 to 63, and * all other users will use J_KEYs in the range of 64 to 65535. The above separation is aimed at preventing different user levels from sending packets to each other and, additionally, separate kernel protocols from all other types of users. The later is meant to prevent the potential corruption of kernel memory by any other type of user. Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions