Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752902AbbKXIIS (ORCPT ); Tue, 24 Nov 2015 03:08:18 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:44456 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751834AbbKXIIR (ORCPT ); Tue, 24 Nov 2015 03:08:17 -0500 Subject: Re: WARNING: CPU: 0 PID: 913 at fs/inode.c:275 drop_nlink+0x4b/0x50() To: Richard Weinberger , OGAWA Hirofumi References: <5652C676.8040207@oracle.com> <5653916C.7060601@nod.at> Cc: LKML From: Vegard Nossum Message-ID: <56541AE8.2070704@oracle.com> Date: Tue, 24 Nov 2015 09:08:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <5653916C.7060601@nod.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1003 Lines: 30 On 11/23/2015 11:21 PM, Richard Weinberger wrote: > Am 23.11.2015 um 08:55 schrieb Vegard Nossum: >> With the attached vfat disk image (fuzzed), I get the following WARNING: >> >> WARNING: CPU: 0 PID: 913 at fs/inode.c:275 drop_nlink+0x4b/0x50() [...] >> >> To trigger it, you have to do a rename("/mnt/a/b/1", "/mnt/1"), where >> /mnt is your mountpoint. > > Not here. All I get is: > FAT-fs (ubdb): Corrupted directory (i_pos 244) > > Did you something before the rename()? No, nothing before the rename. Did you use mv to generate the rename()? Then you may have to do 'mv /mnt/a/b/1 /mnt/', otherwise it ends up doing rename("/mnt/a/b/1", "/mnt/1/1") which only shows the message you saw. Let me know if this helps. Thanks for having a look, Vegard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/