Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp661687pxb; Wed, 27 Jan 2021 18:21:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJybkssCPx7W3o3T3Jj5CBSlhmZ0qr+99a9pcvJsaAYAu7ou0tbkwINQ5WSwBQla1HdgUsdW X-Received: by 2002:aa7:cd4e:: with SMTP id v14mr12222336edw.138.1611800514130; Wed, 27 Jan 2021 18:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611800514; cv=none; d=google.com; s=arc-20160816; b=IFZ2txtpR9wVPpTpR5hJ53gSEYvcXVEb7SvlNCNdkm7qcMIC5NOPyKbVrUYUb3x1wV c9XHwfzrRWkYAISFQCBeM4ykCI3fcH7N2nFzoYVAWJBTQkiB23V54ubGvjUjTEFA363F WfyMdVnKZX8nRA4+6HjlT6tcMgBjKP6R5T4mGD1Pp8hLf2JPagabc3PSif8RSFS0iDQ+ utThO8E59px2bgZmY12+sA3yOyKJkJL+rbzaEXEfIkZ3O3+s0y7NLWd9o3yRZswu9qUo 73bVRZaDZc3W4+uVlBuG7ZpFTmFRLa1AzDG5roOqt2ImWFwA3P+nMQd7mTAqdPBsPbvf DTIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=wzr6bwelEX+00zpXglydoYT6BSHT1XeBPBPthhkVzJA=; b=D7QHOuHLvo7mBMasBshS/ieGgT87b5bZ4X6qoA6NZ7lMebvu0c6mWnfB+StPvR46ux RbiZe6c+80Z33k2xCcC/i5COvxurH7+vSXlrhfaJGIRNk9He0JEvlOZt5pN5bDnCbaB6 VPKAtQF4R83q597dALiWN7dIXTXKa3gzxlyMgkIYSqG9hqcOW8yog4aKvBlpmgnhClmA 6v61eBmCMO6w7TtT2PzNCt0IgHaYK1c2Qf0UjoudxTVhPtxsI2iSyaea/YjuTf4az65c A3VrI6U0vVEKOE8SWT1xVWGPO2PiWh6LkirRUdxlupmNQJ6+8Sc0Kg/jf3EPHMpU+6SR P4tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synology.com header.s=123 header.b=XA2Vbiqt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=synology.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si2153793edd.343.2021.01.27.18.21.29; Wed, 27 Jan 2021 18:21:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@synology.com header.s=123 header.b=XA2Vbiqt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=synology.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229748AbhA1CT0 (ORCPT + 99 others); Wed, 27 Jan 2021 21:19:26 -0500 Received: from mail.synology.com ([211.23.38.101]:45140 "EHLO synology.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229586AbhA1CTR (ORCPT ); Wed, 27 Jan 2021 21:19:17 -0500 Received: from localhost.localdomain (unknown [10.17.32.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by synology.com (Postfix) with ESMTPSA id 47CBFCE781BB; Thu, 28 Jan 2021 10:18:34 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synology.com; s=123; t=1611800314; bh=QgX9+6FHKz0dcOJG5mIY/ZmH7A6RaT0lXd/ds9DU9Qg=; h=From:To:Cc:Subject:Date; b=XA2Vbiqtaiwn19Q+DSBytmPZrEly6AGCnmT4OIkbRrvFhZAMjhrDLuv9P9HfL4AM/ LRKd++FOyz7oJDcVEE6m/Y5p/MbbY8MFN3V84HL+BUKQ6oOFMaqiTCbxeINhF5gfKF axpRCDp9Sp/luBdy+l3qu3zeIkCrqxI2ryVeaefc= From: bingjingc To: viro@zeniv.linux.org.uk, jack@suse.com, jack@suse.cz, axboe@kernel.dk, linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, cccheng@synology.com, bingjingc@synology.com, robbieko@synology.com Subject: [PATCH 0/3] handle large user and group ID for isofs and udf Date: Thu, 28 Jan 2021 10:17:00 +0800 Message-Id: <1611800220-9481-1-git-send-email-bingjingc@synology.com> X-Mailer: git-send-email 2.7.4 X-Synology-MCP-Status: no X-Synology-Spam-Flag: no X-Synology-Spam-Status: score=0, required 6, WHITELIST_FROM_ADDRESS 0 X-Synology-Virus-Status: no Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: BingJing Chang The uid/gid (unsigned int) of a domain user may be larger than INT_MAX. The parse_options of isofs and udf will return 0, and mount will fail with -EINVAL. These patches try to handle large user and group ID. BingJing Chang (3): isofs: handle large user and group ID udf: handle large user and group ID parser: add unsigned int parser fs/isofs/inode.c | 9 +++++---- fs/udf/super.c | 9 +++++---- include/linux/parser.h | 1 + lib/parser.c | 22 ++++++++++++++++++++++ 4 files changed, 33 insertions(+), 8 deletions(-) -- 2.7.4