Bug#846888: depmod crashes after detecting a dependency cycle

2016-12-04 Thread Ben Hutchings
Control: tag -1 upstream patch The problem seems to be that depmod_report_cycles() sees not just the modules in the cycle but all their non-cyclic dependencies too. When it follows the chain from a module that isn't part of the cycle, it proceeds to print its dependency chain as if it were a

Bug#846888: depmod crashes after detecting a dependency cycle

2016-12-04 Thread Ben Hutchings
ASAN provides some details: = ==3449==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7f9a506cbf at pc 0x7fa424475c bp 0x7fc1b55320 sp 0x7fc1b55388 WRITE of size 7 at 0x7f9a506cbf thread T0 #0 0x7fa424475b  

Bug#846888: depmod crashes after detecting a dependency cycle

2016-12-03 Thread Ben Hutchings
Package: kmod Version: 23-1 Severity: normal In this build log: https://buildd.debian.org/status/fetch.php?pkg=linux=arm64=4.9~rc7-1~exp1=1480766537 the initial error messages are: depmod: ERROR: Found 8 modules in dependency cycles! depmod: ERROR: Cycle detected: remoteproc ->