Thread (24 messages) 24 messages, 3 authors, 2011-11-02

Re: [PATCH 19/19] make_parts(): Avoid false positive security warning

From: Jes Sorensen <hidden>
Date: 2011-11-01 20:30:12

On 11/01/11 16:09, Jes.Sorensen@redhat.com wrote:
From: Jes Sorensen <redacted>

S_ISBLK() and S_ISLNK() are mutually exclusive. By swapping the checks
round and testing S_ISBLK() first, we avoid having to silence the
compiler for uninitialized variable usage, and avoid a warning from
security checking tools.

Signed-off-by: Jes Sorensen <redacted>
Looking at this one again, I realized it doesn't solve the real problem.
In particular if /dev/md64 already exists as a symlink and /dev/md64p1
exists as a device node, we end up comparing against random stack data.

Please discard the previous patch and use this one instead.

Sorry for the noise.

Cheers,
Jes

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help