aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorDavid Sterba <[email protected]>2018-04-16 21:10:14 +0200
committerDavid Sterba <[email protected]>2018-04-19 00:35:08 +0200
commit92d32170847bfff2dd08af2c016085779f2fd2a1 (patch)
treea86cbb655e5a787084da9c57b96de6bdcfd93b2e /lib/memory-notifier-error-inject.c
parent336a8bb8e36a273a802a54b2e673c777c9c62fb1 (diff)
btrfs: fix unaligned access in readdir
The last update to readdir introduced a temporary buffer to store the emitted readdir data, but as there are file names of variable length, there's a lot of unaligned access. This was observed on a sparc64 machine: Kernel unaligned access at TPC[102f3080] btrfs_real_readdir+0x51c/0x718 [btrfs] Fixes: 23b5ec74943 ("btrfs: fix readdir deadlock with pagefault") CC: [email protected] # 4.14+ Reported-and-tested-by: RenĂ© Rebe <[email protected]> Reviewed-by: Liu Bo <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions