From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759000AbdELWXP (ORCPT ); Fri, 12 May 2017 18:23:15 -0400 Received: from mail-pg0-f48.google.com ([74.125.83.48]:35849 "EHLO mail-pg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758776AbdELWXK (ORCPT ); Fri, 12 May 2017 18:23:10 -0400 Date: Fri, 12 May 2017 15:23:07 -0700 From: Omar Sandoval To: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lucas De Marchi , Olof Johansson , Heiko Stuebner Subject: depmod gets stuck in symlink cycle in arch/arm/boot/dts/include Message-ID: <20170512222307.GA9634@vader.DHCP.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Linux kernel commit 4027494ae6e3 ("ARM: dts: add arm/arm64 include symlinks") introduced a couple of symlink cycles: $ ls -al arch/arm{,64}/boot/dts/include arch/arm64/boot/dts/include: total 12 drwxr-xr-x 1 osandov users 38 May 11 14:01 . drwxr-xr-x 1 osandov users 320 Jan 25 20:44 .. lrwxrwxrwx 1 osandov users 24 May 11 14:01 arm -> ../../../../arm/boot/dts lrwxrwxrwx 1 osandov users 2 May 11 14:01 arm64 -> .. lrwxrwxrwx 1 osandov users 34 Nov 23 12:07 dt-bindings -> ../../../../../include/dt-bindings arch/arm/boot/dts/include: total 12 drwxr-xr-x 1 osandov users 38 May 11 14:01 . drwxr-xr-x 1 osandov users 63102 May 11 14:01 .. lrwxrwxrwx 1 osandov users 2 May 11 14:01 arm -> .. lrwxrwxrwx 1 osandov users 26 May 11 14:01 arm64 -> ../../../../arm64/boot/dts lrwxrwxrwx 1 osandov users 34 Nov 23 12:07 dt-bindings -> ../../../../../include/dt-bindings On my system, /lib/modules/$(uname -r)/kernel is a symlink to /lib/modules/$(uname -r)/build, which is my built linux.git. depmod doesn't like these symlink cycles and ends up in an infinite loop. Maybe I shouldn't be symlinking kernel to build like this, but depmod shouldn't be getting stuck like this either. I wonder if anything else is going to barf on these symlink cycles, too.