Re: [PATCH 1/2] entry: Rename arch_check_user_regs() to arch_enter_from_user_mode()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 09, 2022 at 09:08:31AM +0200, Peter Zijlstra wrote:
> On Mon, May 09, 2022 at 08:20:41AM +0200, Sven Schnelle wrote:
> > Peter Zijlstra <peterz@xxxxxxxxxxxxx> writes:
> > 
> > > On Wed, May 04, 2022 at 08:23:50AM +0200, Thomas Richter wrote:
> > >> From: Sven Schnelle <svens@xxxxxxxxxxxxx>
> > >> 
> > >> arch_check_user_regs() is used at the moment to verify that struct pt_regs
> > >> contains valid values when entering the kernel from userspace. s390 needs
> > >> a place in the generic entry code to modify a cpu data structure when
> > >> switching from userspace to kernel mode. As arch_check_user_regs() is
> > >> exactly this, rename it to arch_enter_from_user_mode().
> > >> 
> > >> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> > >> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> > >> Cc: Andy Lutomirski <luto@xxxxxxxxxx>
> > >> Signed-off-by: Sven Schnelle <svens@xxxxxxxxxxxxx>
> > >> ---
> > >
> > > With the note that NMI doesn't (necessarily) call this..
> > >
> > > Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> > 
> > How about:
> > 
> > "When entering the kernel from userspace, arch_check_user_regs() is
> >  used to verify that struct pt_regs contains valid values. Note that
> >  the NMI codepath doesn't call this function. s390 needs a place in the
> >  generic entry code to modify a cpu data structure when switching from
> >  userspace to kernel mode. As arch_check_user_regs() is exactly this,
> >  rename it to arch_enter_from_user_mode()."
> 
> Sure, thanks!

Merged into commit message, and applied both patches to s390 tree.

Thanks!



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux