linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH stable-rc queue/4.9 0/1] repatch
@ 2021-02-22  7:03 Xiaoming Ni
  2021-02-22  7:03 ` [PATCH stable-rc queue/4.9 1/1] futex: Provide distinct return value when owner is exiting Xiaoming Ni
  0 siblings, 1 reply; 10+ messages in thread
From: Xiaoming Ni @ 2021-02-22  7:03 UTC (permalink / raw)
  To: linux-kernel, stable, gregkh, sashal, tglx
  Cc: nixiaoming, wangle6, zhengyejian1

I found a dead code in the queue/4.9 branch of the stable-rc repository.

2021-02-03:
commit c27f392040e2f6 ("futex: Provide distinct return value when
 owner is exiting")
	The function handle_exit_race does not exist. Therefore, the
	change in handle_exit_race() is ignored in the patch round.

2021-02-22:
commit e55cb811e612 ("futex: Cure exit race")
	Define the handle_exit_race() function,
	but no branch in the function returns EBUSY.
	As a result, dead code occurs in the attach_to_pi_owner():

		int ret = handle_exit_race(uaddr, uval, p);
		...
		if (ret == -EBUSY)
			*exiting = p; /* dead code */

To fix the dead code, modify the commit e55cb811e612 ("futex: Cure exit race"), 
or install a patch to incorporate the changes in handle_exit_race().

I am unfamiliar with the processing of the stable-rc queue branch,
and I cannot find the patch mail of the current branch in
	https://lore.kernel.org/lkml/?q=%22futex%3A+Cure+exit+race%22
Therefore, I re-integrated commit ac31c7ff8624 ("futex: Provide distinct
 return value when owner is exiting").

-----

Thomas Gleixner (1):
  futex: Provide distinct return value when owner is exiting

 kernel/futex.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.27.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-02-24 12:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22  7:03 [PATCH stable-rc queue/4.9 0/1] repatch Xiaoming Ni
2021-02-22  7:03 ` [PATCH stable-rc queue/4.9 1/1] futex: Provide distinct return value when owner is exiting Xiaoming Ni
2021-02-22 10:16   ` Greg KH
2021-02-22 10:54     ` Xiaoming Ni
2021-02-22 12:09       ` Greg KH
2021-02-22 14:11         ` Xiaoming Ni
2021-02-23 13:00           ` Greg KH
2021-02-24  1:41             ` Xiaoming Ni
2021-02-24  7:47               ` Greg KH
2021-02-24 12:40                 ` Xiaoming Ni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).