Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1600932

Re: [PATCH RESEND v1] locking/ww_mutex: Prevent read of uninitialized memory

From Chris Wilson <chris@chris-wilson.co.uk>
Newsgroups linux.kernel
Subject Re: [PATCH RESEND v1] locking/ww_mutex: Prevent read of uninitialized memory
Date 2017-03-14 22:50 +0100
Message-ID <tl2ul-6hH-15@gated-at.bofh.it> (permalink)
References <tl0Ce-4V8-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Mar 14, 2017 at 03:44:02PM -0400, Robert Foss wrote:
> On "missed ABBA deadlock" abba.result is read, but not initialized
> in all situations.
> 
> Detected by CoverityScan, CID#1402035 ("Uninitialized scalar variable")

It's unconditionally set by the worker, and only accessed by the parent
after the flush_work() barrier.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH RESEND v1] locking/ww_mutex: Prevent read of uninitialized memory Robert Foss <robert.foss@collabora.com> - 2017-03-14 20:50 +0100
  Re: [PATCH RESEND v1] locking/ww_mutex: Prevent read of  uninitialized memory Chris Wilson <chris@chris-wilson.co.uk> - 2017-03-14 22:50 +0100
  Re: [PATCH RESEND v1] locking/ww_mutex: Prevent read of  uninitialized memory kbuild test robot <lkp@intel.com> - 2017-03-17 03:00 +0100

csiph-web