| To: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 09/11] xfsprogs: xfs_repair: fix possible null dereference in traverse_int_dir2block |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Thu, 3 Dec 2015 17:22:01 +1100 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <565FD863.3090105@xxxxxxxxxxx> |
| References: | <1449055167-19936-1-git-send-email-t.vivek@xxxxxxxxxxx> <1449055167-19936-10-git-send-email-t.vivek@xxxxxxxxxxx> <565FD863.3090105@xxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Wed, Dec 02, 2015 at 11:51:31PM -0600, Eric Sandeen wrote: > On 12/2/15 5:19 AM, Vivek Trivedi wrote: > > Fix possible null dereference in traverse_int_dir2block if buffer pointer > > is NULL. > > Reported by coverity. > > Hm, against what version of xfsprogs? > > traverse_int_dir2block has been gone for a while now. Can you please recheck > against current git, and if there's still an issue, explain a bit more; > I don't see offhand how we get a bp back from da_read_buf with a null > bp->b_addr. it's also worth pointing out that there are several callers of da_read_buf() in this function, all of which have identical error checking and hence are all going to have the same problem if it does actually exist. When coverity issues a warning, we really need to check all instances of the same code for the same problem, even if coverity doesn't warn about the other call sites.... Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 08/11] xfsprogs: xfs_repair: fix possible null dereference in build_ino_tree, Dave Chinner |
|---|---|
| Next by Date: | Re: [PATCH 10/11] xfsprogs: fix possible null pointer dereference in xfs_iformat_extents, Dave Chinner |
| Previous by Thread: | Re: [PATCH 09/11] xfsprogs: xfs_repair: fix possible null dereference in traverse_int_dir2block, Eric Sandeen |
| Next by Thread: | Re: [PATCH 00/11] xfsprogs misc fixes, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |