mbox series

[0/3] handle large user and group ID for isofs and udf

Message ID 1611800220-9481-1-git-send-email-bingjingc@synology.com (mailing list archive)
Headers show
Series handle large user and group ID for isofs and udf | expand

Message

bingjingc Jan. 28, 2021, 2:17 a.m. UTC
From: BingJing Chang <bingjingc@synology.com>

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(-)

Comments

Matthew Wilcox Jan. 28, 2021, 3:22 a.m. UTC | #1
On Thu, Jan 28, 2021 at 10:17:00AM +0800, bingjingc wrote:
> From: BingJing Chang <bingjingc@synology.com>
> 
> 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

This is the wrong way to submit this patch series.

Patch 1: add unsigned int parser
Patch 2: Use it in isofs
Patch 3: Use it in udf