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-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 01 Nov 2012 16:37:21 -0400
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Jan Beulich <jbeulich@...e.com>
Cc:	sqazi@...gle.com, peterz@...radead.org, tglx@...utronix.de,
	torvalds@...ux-foundation.org, hpa@...ux.intel.com,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [PATCH] x86: Don't clobber top of pt_regs in nested NMI

On Thu, 2012-11-01 at 19:53 +0000, Jan Beulich wrote:
> >>> Steven Rostedt <rostedt@...dmis.org> 11/01/12 2:04 AM >>>
> >On Mon, 2012-10-01 at 17:29 -0700, Salman Qazi wrote:
> >> @@ -1826,12 +1832,15 @@ repeat_nmi:
> >>       * is benign for the non-repeat case, where 1 was pushed just above
> >>       * to this very stack slot).
> >>       */
> >> -    movq $1, 5*8(%rsp)
> >> +    movq $1, 10*8(%rsp)
> >>  
> >>      /* Make another copy, this one may be modified by nested NMIs */
> >> +    addq $(10*8), %rsp
> >
> >This breaks the CFI magic.
> >
> >>      .rept 5
> >> -    pushq_cfi 4*8(%rsp)
> >> +    pushq_cfi -6*8(%rsp)
> >>      .endr
> >> +    subq $(5*8), %rsp
> >
> >So does this.
> >
> >This needs to be annotated correctly before I can push it out. But the
> >good news is, I stressed tested this change, and it all works out.
> >
> >Jan, can you help out here?
> 
> There doesn't appear to be anything special about these adjustments, so I
> don't see what help would be required here - it ought to be the normal use
> of CFI_ADJUST_CFA_OFFSET that needs adding.

Even the simple CFI adjustments look like magic to me :-)  OK, I'll
update the patch and send it out. I'll Cc you in case I screw up even
the most simple case ;-)

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ