Revision ce85cfbed6fe3dbc01bd1976b23ac3e97878cde6 authored by Benjamin Coddington on 21 April 2015, 18:17:35 UTC, committed by Trond Myklebust on 23 April 2015, 19:16:15 UTC
If a READDIR reply comes back without any page data, avoid a NULL pointer dereference in xdr_copy_to_scratch(). BUG: unable to handle kernel NULL pointer dereference at 0000000000000001 IP: [<ffffffff813a378d>] memcpy+0xd/0x110 ... Call Trace: ? xdr_inline_decode+0x7a/0xb0 [sunrpc] nfs3_decode_dirent+0x73/0x320 [nfsv3] nfs_readdir_page_filler+0xd5/0x4e0 [nfs] ? nfs3_rpc_wrapper.constprop.9+0x42/0xc0 [nfsv3] nfs_readdir_xdr_to_array+0x1fa/0x330 [nfs] ? mem_cgroup_commit_charge+0xac/0x160 ? nfs_readdir_xdr_to_array+0x330/0x330 [nfs] nfs_readdir_filler+0x22/0x90 [nfs] do_read_cache_page+0x7e/0x1a0 read_cache_page+0x1c/0x20 nfs_readdir+0x18e/0x660 [nfs] ? nfs3_xdr_dec_getattr3res+0x80/0x80 [nfsv3] iterate_dir+0x97/0x130 SyS_getdents+0x94/0x120 ? fillonedir+0xd0/0xd0 system_call_fastpath+0x12/0x17 Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
1 parent 3708f84
File | Mode | Size |
---|---|---|
bnep | ||
cmtp | ||
hidp | ||
rfcomm | ||
6lowpan.c | -rw-r--r-- | 31.1 KB |
Kconfig | -rw-r--r-- | 2.9 KB |
Makefile | -rw-r--r-- | 572 bytes |
a2mp.c | -rw-r--r-- | 21.5 KB |
a2mp.h | -rw-r--r-- | 3.6 KB |
af_bluetooth.c | -rw-r--r-- | 16.7 KB |
amp.c | -rw-r--r-- | 11.3 KB |
amp.h | -rw-r--r-- | 2.0 KB |
ecc.c | -rw-r--r-- | 19.8 KB |
ecc.h | -rw-r--r-- | 2.3 KB |
hci_conn.c | -rw-r--r-- | 34.3 KB |
hci_core.c | -rw-r--r-- | 100.6 KB |
hci_debugfs.c | -rw-r--r-- | 25.2 KB |
hci_debugfs.h | -rw-r--r-- | 1.2 KB |
hci_event.c | -rw-r--r-- | 123.0 KB |
hci_request.c | -rw-r--r-- | 15.4 KB |
hci_request.h | -rw-r--r-- | 2.1 KB |
hci_sock.c | -rw-r--r-- | 24.8 KB |
hci_sysfs.c | -rw-r--r-- | 4.3 KB |
l2cap_core.c | -rw-r--r-- | 177.0 KB |
l2cap_sock.c | -rw-r--r-- | 35.1 KB |
lib.c | -rw-r--r-- | 2.9 KB |
mgmt.c | -rw-r--r-- | 178.9 KB |
sco.c | -rw-r--r-- | 24.1 KB |
selftest.c | -rw-r--r-- | 7.2 KB |
selftest.h | -rw-r--r-- | 1.6 KB |
smp.c | -rw-r--r-- | 83.2 KB |
smp.h | -rw-r--r-- | 4.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...