From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (193.142.43.55:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 10 Oct 2019 01:28:56 -0000 Received: from mga03.intel.com ([134.134.136.65]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iINGB-00064q-BR for speck@linutronix.de; Thu, 10 Oct 2019 03:28:56 +0200 Date: Wed, 9 Oct 2019 18:23:03 -0700 From: Pawan Gupta Subject: [MODERATED] Re: [PATCH v6 1/9] TAAv6 1 Message-ID: <20191010012303.GE11840@guptapadev.amr> References: <20191009233401.GD11840@guptapadev.amr> MIME-Version: 1.0 In-Reply-To: <20191009233401.GD11840@guptapadev.amr> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Wed, Oct 09, 2019 at 04:34:01PM -0700, speck for Pawan Gupta wrote: > On Wed, Oct 09, 2019 at 04:22:56PM -0700, speck for Pawan Gupta wrote: > > Transactional Synchronization Extensions (TSX) may be used on certain > > processors as part of a speculative side channel attack. A microcode > > update for existing processors that are vulnerable to this attack will > > add a new MSR, IA32_TSX_CTRL to allow the system administrator the > > option to disable TSX as one of the possible mitigations. [Note that > > future processors that are not vulnerable will also support the > > IA32_TSX_CTRL MSR]. Add defines for the new IA32_TSX_CTRL MSR and its > > bits. > > For some reason the "From:" and the "Subject:" lines are not getting > copied to the body. I am using the same "speckify-gitmail" script. > > $ git format-patch --cover-letter -n --thread -v6 -o ../v6 --to speck@linutronix.de v5.3..HEAD > $ speckify-gitmail -s "TAAv6" v6 speck > > Let me see whats wrong and re-send the series. Sorry for the trouble. Speckify-gitmail script is doing the right thing. Dumping the message body content just before gpg.encrypt() shows the correct "From:" and "Subject:". I don't know where it is getting stripped off. Thanks, Pawan --- a/speckify-gitmail +++ b/speckify-gitmail @@ -105,6 +105,7 @@ for f in sorted(infiles): content = 'From: %s\n' %mfrom content += 'Subject: %s] %s\n\n' %(prefix, subj.strip()) content += msg.get_payload().encode() + sys.stdout.write(content) try: res = gpg.encrypt(content, [args.mailto])