mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* linux-next: manual merge of the exfat tree with the origin tree
@ 2026-11-09 12:15 Mark Brown
  0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2026-11-09 12:15 UTC (permalink / raw)
  To: Namjae Jeon
  Cc: Kees Cook, Kees Cook, Linux Kernel Mailing List,
	Linux Next Mailing List, Reid Downing

[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]

Hi all,

Today's linux-next merge of the exfat tree got a conflict in:

  fs/exfat/nls.c

between commit:

  0af298e62e5cf ("treewide: refresh kmalloc_obj() conversions")

from the origin tree and commit:

  6a221c33aa528 ("exfat: validate upcase table bounds and length")

from the exfat tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

diff --cc fs/exfat/nls.c
index 47aa187c54ccc,bec4d9e5e5bd9..0000000000000
--- a/fs/exfat/nls.c
+++ b/fs/exfat/nls.c
@@@ -655,7 -655,14 +655,14 @@@ static int exfat_load_upcase_table(stru
  	unsigned char skip = false;
  	unsigned short *upcase_table;
  
+ 	if (!tbl_size || (tbl_size & 1)) {
+ 		exfat_fs_error(sb,
+ 			       "bad upcase table size (%llu bytes). Please run fsck",
+ 			       tbl_size);
+ 		return -EINVAL;
+ 	}
+ 
 -	upcase_table = kvcalloc(UTBL_COUNT, sizeof(unsigned short), GFP_KERNEL);
 +	upcase_table = kvzalloc_objs(unsigned short, UTBL_COUNT);
  	if (!upcase_table)
  		return -ENOMEM;
  

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-09 12:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 12:15 linux-next: manual merge of the exfat tree with the origin tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®