Skip to content

Commit 8a9c6fb

Browse files
Sebastian Enea-nogikh
authored andcommitted
vm/adb: use the correct path for debugfs
Probe for the debugfs rootdir instead of the kcov sub-path to prevent the fuzzer from entering in device reboot loop in case the android device doesn't support kcov. Fixes: #6600 Signed-off-by: Sebastian Ene <sebastianene@google.com>
1 parent 1276f83 commit 8a9c6fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/adb/adb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func (inst *instance) repair() error {
406406
inst.waitForBootCompletion()
407407

408408
// Mount debugfs.
409-
if _, err := inst.adb("shell", "ls /sys/kernel/debug/kcov"); err != nil {
409+
if _, err := inst.adb("shell", "ls /sys/kernel/debug"); err != nil {
410410
log.Logf(2, "debugfs was unmounted mounting")
411411
// This prop only exist on Android 12+
412412
inst.adb("shell", "setprop persist.dbg.keep_debugfs_mounted 1")

0 commit comments

Comments
 (0)