Whamcloud - gitweb
libext2s: fix unix_io with IO_FLAG_FORCE_BOUNCE flag set
authorTheodore Ts'o <tytso@mit.edu>
Sun, 28 Feb 2021 14:12:47 +0000 (09:12 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 28 Feb 2021 14:27:27 +0000 (09:27 -0500)
commite1af249abafbf4b08c5b55cab6a0564170ce0f7d
treea459791a919b5d09ea928d2427ccd1ca13afa29a
parent8895443d2556c504753ca4d2c58386b55392dc7b
libext2s: fix unix_io with IO_FLAG_FORCE_BOUNCE flag set

The bounce read/write code would crash with a floating point exception
if alignment is set to 0.

Fixes: c001596110e8 ("libext2fs: fix unix_io's Direct I/O support")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/unix_io.c
tests/u_bounce_io/expect.1 [new file with mode: 0644]
tests/u_bounce_io/script [new file with mode: 0644]