[PATCH stable 5.15 0/2] backport: udf: Allocate name buffer in directory iterator on heap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am running into this compile error with Linux kernel 5.15.171 in OpenWrt on 32 bit systems.
```
fs/udf/namei.c: In function 'udf_rename':
fs/udf/namei.c:878:1: error: the frame size of 1144 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
  878 | }
      | ^
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:289: fs/udf/namei.o] Error 1
make[1]: *** [scripts/Makefile.build:552: fs/udf] Error 2
``` 

This problem was introduced with kernel 5.15.169.
The first patch needs an extra linux/slab.h include on x86, which is the only modification I did to it compared to the upstream version.

These patches should go into 5.15. They were already backported to kernel 6.1.

Jan Kara (2):
  udf: Allocate name buffer in directory iterator on heap
  udf: Avoid directory type conversion failure due to ENOMEM

 fs/udf/directory.c | 27 +++++++++++++++++++--------
 fs/udf/udfdecl.h   |  2 +-
 2 files changed, 20 insertions(+), 9 deletions(-)

-- 
2.47.0





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux