aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorEric Sandeen <[email protected]>2014-11-28 03:03:55 +0000
committerDave Chinner <[email protected]>2014-11-28 03:03:55 +0000
commitdb52d09ecbf85c54e263a9d1ebfb615a9b2b3ba6 (patch)
tree7c7ede18b9f3531f1831019a79e9c6dfa6edc83e /drivers/net/xen-netback/interface.c
parentxfs: allow lazy sb counter sync during filesystem freeze sequence (diff)
downloadkernel-db52d09ecbf85c54e263a9d1ebfb615a9b2b3ba6.tar.gz
kernel-db52d09ecbf85c54e263a9d1ebfb615a9b2b3ba6.zip
xfs: catch invalid negative blknos in _xfs_buf_find()
Here blkno is a daddr_t, which is a __s64; it's possible to hold a value which is negative, and thus pass the (blkno >= eofs) test. Then we try to do a xfs_perag_get() for a ridiculous agno via xfs_daddr_to_agno(), and bad things happen when that fails, and returns a null pag which is dereferenced shortly thereafter. Found via a user-supplied fuzzed image... Signed-off-by: Eric Sandeen <[email protected]> Reviewed-by: Mark Tinguely <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions