mbox series

[-next,0/2] riscv: Fix two vdso issue

Message ID 20210819030650.716478-1-tongtiangen@huawei.com (mailing list archive)
Headers show
Series riscv: Fix two vdso issue | expand

Message

Tong Tiangen Aug. 19, 2021, 3:06 a.m. UTC
1) Move vdso data page up front and introduce enum vvar_pages, To pave the way
for the subsequent support of TIME_NS, the support of TIME_NS will be issued
in the later patch.

2) In arch_setup_additional_pages(), make Wait for the lock in the killable mode
and return with EINTR if the task got killed while waiting.

Tong Tiangen (2):
  riscv/vdso: Move vdso data page up front
  riscv/vdso: make arch_setup_additional_pages wait for mmap_sem for
    write killable

 arch/riscv/include/asm/syscall.h  |  2 ++
 arch/riscv/include/asm/vdso.h     |  4 +--
 arch/riscv/kernel/vdso.c          | 51 ++++++++++++++++++-------------
 arch/riscv/kernel/vdso/vdso.lds.S |  3 +-
 4 files changed, 36 insertions(+), 24 deletions(-)

Comments

Kefeng Wang Aug. 19, 2021, 5:24 a.m. UTC | #1
On 2021/8/19 11:06, Tong Tiangen wrote:
> 1) Move vdso data page up front and introduce enum vvar_pages, To pave the way
> for the subsequent support of TIME_NS, the support of TIME_NS will be issued
> in the later patch.
>
> 2) In arch_setup_additional_pages(), make Wait for the lock in the killable mode
> and return with EINTR if the task got killed while waiting.

For series,

Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com>

>
> Tong Tiangen (2):
>    riscv/vdso: Move vdso data page up front
>    riscv/vdso: make arch_setup_additional_pages wait for mmap_sem for
>      write killable
>
>   arch/riscv/include/asm/syscall.h  |  2 ++
>   arch/riscv/include/asm/vdso.h     |  4 +--
>   arch/riscv/kernel/vdso.c          | 51 ++++++++++++++++++-------------
>   arch/riscv/kernel/vdso/vdso.lds.S |  3 +-
>   4 files changed, 36 insertions(+), 24 deletions(-)
>