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]
Message-ID: <474DFC4B.5060006@us.ibm.com>
Date:	Wed, 28 Nov 2007 15:39:55 -0800
From:	David Wilder <dwilder@...ibm.com>
To:	Roland McGrath <roland@...hat.com>
CC:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 20/27] ptrace: arch_has_block_step

Roland McGrath wrote:
<snip>
> 
> +#ifndef arch_has_block_step
> +/**
> + * arch_has_block_step - does this CPU support user-mode block-step?
> + *
> + * If this is defined, then there must be a function declaration or inline
> + * for user_enable_block_step(), and arch_has_single_step() must be defined
> + * too.  arch_has_block_step() should evaluate to nonzero iff the machine
> + * supports step-until-branch for user mode.  It can be a constant or it
> + * can test a CPU feature bit.
> + */
> +#define arch_has_single_step()		(0)

should this be #define arch_has_block_step()		(0)

> +
> +/**
> + * user_enable_block_step - step until branch in user-mode task
> + * @task: either current or a task stopped in %TASK_TRACED
> + *
> + * This can only be called when arch_has_block_step() has returned nonzero,
> + * and will never be called when single-instruction stepping is being used.
> + * Set @task so that when it returns to user mode, it will trap after the
> + * next branch or trap taken.
> + */
> +static inline void user_enable_block_step(struct task_struct *task)
> +{
> +	BUG();			/* This can never be called.  */
> +}
> +#endif	/* arch_has_block_step */
> +
<snip>
-
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