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>] [day] [month] [year] [list]
Message-ID: <4AAA8213.8070008@nortel.com>
Date:	Fri, 11 Sep 2009 11:00:03 -0600
From:	"Chris Friesen" <cfriesen@...tel.com>
To:	Linux kernel <linux-kernel@...r.kernel.org>
Subject: BUG?  possible race between tasklet_action and tasklet_kill

I think I may have discovered a race between tasklet_action and
tasklet_kill.  Given how long this code has been around, I assume that
I'm simply not understanding the purposes of tasklet_kill correctly, but
it seems like there's a mechanism whereby we could hit the BUG path in
tasklet_action().

cpu A                             cpu B
starts tasklet_kill()
does while loop until
  TASKLET_STATE_SCHED not set
                                  runs tasklet_schedule()
                                  starts tasklet_action()
tasklet_unlock_wait()
                                  if (tasklet_trylock(t)) {
clear_bit(TASKLET_STATE_SCHED)
                                  test_and_clear_bit(TASKLET_STATE_SCHED
                                  BUG


Is this a valid issue, or is this an improper usage pattern somehow?

Thanks,

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