diff options
author | James Morse <james.morse@arm.com> | 2020-05-19 19:21:08 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-05-20 09:36:01 +0100 |
commit | 472de63b0b8383565e103f809f5df37d1c4390ab (patch) | |
tree | d2bc2eb495a0b2e8a8bde740987a2a7104c0d9d4 /include/linux/dirent.h | |
parent | 82b2077afccd2a46ce15a43a50f2bfbf1b295de5 (diff) |
firmware: arm_sdei: Document the motivation behind these set_fs() calls
The SDEI handler save/restores the addr_limit using set_fs(). It isn't
very clear why. The reason is to mirror the arch code's entry assembly.
The arch code does this because perf may access user-space, and
inheriting the addr_limit may be a problem.
Add a comment explaining why this is here.
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Morse <james.morse@arm.com>
Link: https://bugs.chromium.org/p/project-zero/issues/detail?id=822
Link: https://lore.kernel.org/r/20200519182108.13693-4-james.morse@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/dirent.h')
0 files changed, 0 insertions, 0 deletions