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] [day] [month] [year] [list]
Date:	Tue, 23 Jul 2013 10:10:46 +0200
From:	Ingo Molnar <mingo@...nel.org>
To:	Jiri Kosina <jkosina@...e.cz>
Cc:	Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>,
	Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
	"H. Peter Anvin" <hpa@...ux.intel.com>,
	Steven Rostedt <rostedt@...dmis.org>,
	Jason Baron <jbaron@...mai.com>, yrl.pp-manager.tt@...achi.com,
	Borislav Petkov <bpetkov@...e.de>
Subject: Re: [PATCH -tip 3/3] x86: Remove unused text_poke_smp and
 text_poke_smp_batch


* Jiri Kosina <jkosina@...e.cz> wrote:

> On Mon, 22 Jul 2013, Ingo Molnar wrote:
> 
> > > >>>> Hm, it does not build with the attached config:
> > > >>>>
> > > >>>> arch/x86/kernel/kprobes/opt.c: In function 'setup_optimize_kprobe':
> > > >>>> arch/x86/kernel/kprobes/opt.c:394:6: error: dereferencing pointer to incomplete type
> > > >>>> arch/x86/kernel/kprobes/opt.c:395:6: error: dereferencing pointer to incomplete type
> > > >>>> arch/x86/kernel/kprobes/opt.c:396:6: error: dereferencing pointer to incomplete type
> > > >>>
> > > >>> 32-bit appears to be the key pattern.
> > > >>
> > > >> Ingo, please make sure your x86/jumplabel tree picked all of my patches.
> > > >> This 3/3 strongly depends on the previous 1/3 and 2/3.
> > > >> Without it, kprobes/opt.c can not be build because it still uses the
> > > >> text_poke_params data structure which 3/3 removes.
> > > > 
> > > > Yes I know, and it was on top of -tip which already had these included:
> > > > 
> > > >  51b2c07b2226 x86: Make jump_label use int3-based patching
> > > >  fd4363fff3d9 x86: Introduce int3 (breakpoint)-based instruction patching
> > > > 
> > > > without these the third patch wouldn't even apply I think.
> > > 
> > > No, I meant below two patches:
> > >  kprobes/x86: Remove an incorrect comment about int3 in NMI/MCE
> > >  kprobes/x86: Use text_poke_bp() instead of text_poke_smp*()
> > > 
> > > Since the "setup_optimize_kprobe" in the error message is completely
> > > *removed* by the second one, the above error should not happen.
> > 
> > Oh, indeed - I correctly applied them but then messed up the 
> > cherry-picking, that's all.
> > 
> > So never mind, it's all fine.
> 
> Hi Ingo,
> 
> x86/jumplabel branch still seems to contain only Masami's "kprobes/x86: 
> Remove unused text_poke_smp() and text_poke_smp_batch() functions", with 
> the the prerequisity patches missing, which effectively means it's 
> broken ... are you planning to fix that up, please?

That must be a Git server push-out delay - it should contain two patches:

 51b2c07b2226 x86: Make jump_label use int3-based patching
 fd4363fff3d9 x86: Introduce int3 (breakpoint)-based instruction patching

The kprobes patches are in perf/core, with x86/jumplabel merged in:

 ea8596bb2d8d kprobes/x86: Remove unused text_poke_smp() and text_poke_smp_batch() functions
 a7b0133ea94e kprobes/x86: Use text_poke_bp() instead of text_poke_smp*()
 c7e85c42be68 kprobes/x86: Remove an incorrect comment about int3 in NMI/MCE
 9bb15425c3bc Merge branch 'x86/jumplabel' into perf/core

Thanks,

	Ingo
--
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