Bug 10756 - dd skip unnecessarily lengthy w/ CONFIG_LFS
Summary: dd skip unnecessarily lengthy w/ CONFIG_LFS
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.22.x
Hardware: All Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-14 13:13 UTC by Andrej K
Modified: 2018-02-14 13:13 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej K 2018-02-14 13:13:20 UTC
In dd_main(), if skip and lseek fails, it's not checked why it happened. Thus with CONFIG_LFS, even if the offset is simply behind the large file end (EINVAL), the code still tries to seek via safe_read().

Normal coreutils are somewhat smarter about this and fail immediately...