Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751504AbbEGQj7 (ORCPT ); Thu, 7 May 2015 12:39:59 -0400 Received: from mfb01-md.ns.itscom.net ([175.177.155.109]:37664 "EHLO mfb01-md.ns.itscom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbbEGQj6 (ORCPT ); Thu, 7 May 2015 12:39:58 -0400 X-Greylist: delayed 372 seconds by postgrey-1.27 at vger.kernel.org; Thu, 07 May 2015 12:39:57 EDT From: "J. R. Okajima" Subject: Re: Repercussions of overflow in get_next_ino() To: Nikolay Borisov Cc: viro@zeniv.linux.org.uk, "linux-kernel"@vger.kernel.org, linux-fsdevel@vger.kernel.org, spender@grsecurity.net In-Reply-To: <554B5AE1.4060901@gmail.com> References: <554B5AE1.4060901@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <30516.1431016421.0@jrobl> Date: Fri, 08 May 2015 01:33:41 +0900 Message-ID: <30519.1431016421@jrobl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4570 Lines: 85 ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30516.1431016421.1@jrobl> Hello, Nikolay Borisov: > My question is what are the repercussions of get_next_ino overflowing > and at some point having possibly multiple inodes on my system with the > same i_ino id? And why is it safe to have the inode id's overflow and > wrap around? I am afraid some applications won't work correctly. As far as I know, ls(1) and find(1) don't show the file whose inum is zero. See also Subject: [PATCH v2] vfs: get_next_ino(), never inum=0 Date: 2014-05-28 14:06:32 http://marc.info/?l=linux-fsdevel&m=140128600801771&w=2 and their thread. For tmpfs, I have another patch. Just FYI, here attached. J. R. Okajima ------- =_aaaaaaaaaa0 Content-Type: application/x-bzip2; name="a.patch.bz2" Content-ID: <30516.1431016421.2@jrobl> Content-Transfer-Encoding: base64 QlpoOTFBWSZTWXzP+ccABy5fgGA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EcPCt5qoa8w1CWejFYKjtZKV5k kWSNZRF+dtFMexKgZGNNfS7aNKiKC1inE003bwc1vCqhiGjOcGmILIW43hZyrNOAcgB6DQf49ZUE tI0P/i7kinChIPmf844= ------- =_aaaaaaaaaa0-- -- 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/