Hi Artem, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tytso-ext4/dev] [also build test WARNING on linus/master v5.19-rc6 next-20220713] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Artem-Blagodarenko/ext4-truncate-during-setxattr-leads-to-kernel-panic/20220711-232350 base: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev config: um-x86_64_defconfig (https://download.01.org/0day-ci/archive/20220714/202207141731.mergfpu3-lkp@xxxxxxxxx/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/600aeea1cc6d36f380862bb88e50b670e0a57e4f git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Artem-Blagodarenko/ext4-truncate-during-setxattr-leads-to-kernel-panic/20220711-232350 git checkout 600aeea1cc6d36f380862bb88e50b670e0a57e4f # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=um SUBARCH=x86_64 SHELL=/bin/bash fs/ext4/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): >> fs/ext4/xattr.c:1563:15: warning: no previous prototype for 'delayed_iput' [-Wmissing-prototypes] 1563 | noinline void delayed_iput(struct inode *inode, struct delayed_iput_work *work) | ^~~~~~~~~~~~ vim +/delayed_iput +1563 fs/ext4/xattr.c 1562 > 1563 noinline void delayed_iput(struct inode *inode, struct delayed_iput_work *work) 1564 { 1565 if (!inode) { 1566 kfree(work); 1567 return; 1568 } 1569 1570 if (!work) { 1571 iput(inode); 1572 } else { 1573 INIT_WORK(&work->work, delayed_iput_fn); 1574 work->inode = inode; 1575 queue_work(EXT4_SB(inode->i_sb)->s_misc_wq, &work->work); 1576 } 1577 } 1578 -- 0-DAY CI Kernel Test Service https://01.org/lkp