aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_usb_linux.h
diff options
context:
space:
mode:
authorDenis Efremov <efremov@linux.com>2021-09-18 18:53:11 +0300
committerDmitry Vyukov <dvyukov@google.com>2021-09-20 09:38:10 +0200
commit3d9c9a2ac29573a117cde8ace07d0749eeda991b (patch)
treeff488dd751a98e5a8e4b2a2a3069b385ef012472 /executor/common_usb_linux.h
parent70b76c1d627711cc3ef109af16d6cb7429a61fe3 (diff)
pkg/host: add O_NONBLOCK to isSupportedOpenFile
Since commit 4f7e1d0f5e1c ("sys/linux: use openat for /dev/cdrom") changed syz_open_dev to openat syzkaller tries to open /dev/cdrom with r,w,rw flags. However, if there is no media in a cdrom device these attempts will fail resulting in: > disabling openat$sr: open(/dev/sr0) failed: no medium found Add O_RDONLY|O_NONBLOCK mode to successfully open cdrom devices with no media. Signed-off-by: Denis Efremov <efremov@linux.com>
Diffstat (limited to 'executor/common_usb_linux.h')
0 files changed, 0 insertions, 0 deletions