Greeting, FYI, we noticed the following commit (built with gcc-11): commit: 8d709b5b6bb4cdd33ee7b7f30e2816b40562aed3 ("hugetlbfs: Convert remove_inode_hugepages() to use filemap_get_folios()") git://git.infradead.org/users/willy/pagecache for-5.20 in testcase: libhugetlbfs-test version: libhugetlbfs-test-x86_64-6b126a4-1_20220518 with following parameters: pagesize: 2MB ucode: 0x28 on test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz with 16G memory caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): If you fix the issue, kindly add following tag Reported-by: kernel test robot [ 64.888314][ T3369] kernel BUG at fs/inode.c:611! [ 64.888320][ T3369] invalid opcode: 0000 [#1] SMP KASAN PTI [ 64.888324][ T3369] CPU: 1 PID: 3369 Comm: alloc-instantia Tainted: G S 5.18.0-13967-g8d709b5b6bb4 #1 [ 64.888327][ T3369] Hardware name: Dell Inc. OptiPlex 9020/0DNKMN, BIOS A05 12/05/2013 [ 64.888328][ T3369] RIP: 0010:clear_inode (fs/inode.c:611 (discriminator 1)) [ 64.888336][ T349] HUGETLB_ELFMAP=RW HUGETLB_SHARE=1 linkhuge_rw (2M: 32): ignored by lkp [ 64.888335][ T3369] Code: fc ff df 48 89 ea 48 c1 ea 03 80 3c 02 00 75 42 48 8b 83 28 01 00 00 48 39 c5 75 16 48 c7 83 98 00 00 00 60 00 00 00 5b 5d c3 <0f> 0b 0f 0b 0f 0b 0f 0b 0f 0b e8 c4 46 ef ff e9 3a ff ff ff e8 ba All code ======== 0: fc cld 1: ff (bad) 2: df 48 89 fisttps -0x77(%rax) 5: ea (bad) 6: 48 c1 ea 03 shr $0x3,%rdx a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) e: 75 42 jne 0x52 10: 48 8b 83 28 01 00 00 mov 0x128(%rbx),%rax 17: 48 39 c5 cmp %rax,%rbp 1a: 75 16 jne 0x32 1c: 48 c7 83 98 00 00 00 movq $0x60,0x98(%rbx) 23: 60 00 00 00 27: 5b pop %rbx 28: 5d pop %rbp 29: c3 retq 2a:* 0f 0b ud2 <-- trapping instruction 2c: 0f 0b ud2 2e: 0f 0b ud2 30: 0f 0b ud2 32: 0f 0b ud2 34: e8 c4 46 ef ff callq 0xffffffffffef46fd 39: e9 3a ff ff ff jmpq 0xffffffffffffff78 3e: e8 .byte 0xe8 3f: ba .byte 0xba Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 0f 0b ud2 4: 0f 0b ud2 6: 0f 0b ud2 8: 0f 0b ud2 a: e8 c4 46 ef ff callq 0xffffffffffef46d3 f: e9 3a ff ff ff jmpq 0xffffffffffffff4e 14: e8 .byte 0xe8 15: ba .byte 0xba [ 64.888338][ T3369] RSP: 0018:ffffc9000a39fce0 EFLAGS: 00010002 [ 64.888341][ T349] [ 64.888341][ T3369] RAX: dffffc0000000000 RBX: ffff8884188a1b58 RCX: ffffffff83603842 [ 64.888343][ T3369] RDX: 1ffff110831143aa RSI: 0000000000000004 RDI: ffff8884188a1d50 [ 64.888345][ T3369] RBP: ffff8884188a1cd8 R08: 0000000000000001 R09: ffffc9000a39fc8b [ 64.888346][ T3369] R10: fffff52001473f91 R11: 0000000000000001 R12: ffff8884188a1bf0 [ 64.888347][ T3369] R13: ffff8884188a1b80 R14: ffffffff83db38c0 R15: ffff8884188a1c78 [ 64.888349][ T3369] FS: 0000000000000000(0000) GS:ffff8883a0680000(0000) knlGS:0000000000000000 [ 64.888351][ T3369] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 [ 64.888352][ T3369] CR2: 00000000f7ebc180 CR3: 000000041ce0e004 CR4: 00000000001706e0 [ 64.888354][ T3369] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 64.888355][ T3369] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 64.888357][ T3369] Call Trace: [ 64.888358][ T3369] [ 64.888359][ T3369] evict (fs/inode.c:669) [ 64.888363][ T3369] __dentry_kill (fs/dcache.c:610) [ 64.888366][ T3369] dentry_kill (fs/dcache.c:755) [ 64.888369][ T3369] dput (fs/dcache.c:913) [ 64.888371][ T3369] __fput (fs/file_table.c:331) [ 64.888375][ T3369] task_work_run (kernel/task_work.c:179 (discriminator 1)) [ 64.888379][ T3369] do_exit (kernel/exit.c:796) [ 64.888382][ T3369] do_group_exit (kernel/exit.c:906) [ 64.888384][ T3369] __ia32_sys_exit_group (kernel/exit.c:934) [ 64.888386][ T3369] __do_fast_syscall_32 (arch/x86/entry/common.c:112 arch/x86/entry/common.c:178) [ 64.888391][ T3369] do_fast_syscall_32 (arch/x86/entry/common.c:203) [ 64.888394][ T3369] entry_SYSENTER_compat_after_hwframe (arch/x86/entry/entry_64_compat.S:117) [ 64.888398][ T3369] RIP: 0023:0xf7f13549 [ 64.888401][ T3369] Code: Unable to access opcode bytes at RIP 0xf7f1351f. Code starting with the faulting instruction =========================================== [ 64.888402][ T3369] RSP: 002b:00000000ffb2929c EFLAGS: 00000282 ORIG_RAX: 00000000000000fc [ 64.888404][ T3369] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000000000 [ 64.888405][ T3369] RDX: 00000000ffb2928c RSI: 00000000f7ea56f8 RDI: 00000000f7ea56f8 [ 64.888407][ T3369] RBP: 00000000f7ea5a28 R08: 0000000000000000 R09: 0000000000000000 [ 64.888408][ T3369] R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000000 [ 64.888409][ T3369] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 64.888411][ T3369] [ 64.888412][ T3369] Modules linked in: btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c ipmi_devintf intel_rapl_msr intel_rapl_common ipmi_msghandler i915 sd_mod x86_pkg_temp_thermal t10_pi intel_powerclamp intel_gtt coretemp drm_buddy crc64_rocksoft_generic crc64_rocksoft drm_display_helper crc64 sg kvm_intel ttm kvm irqbypass crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel mei_wdt drm_kms_helper rapl ahci intel_cstate libahci syscopyarea intel_uncore sysfillrect mei_me sysimgblt libata fb_sys_fops mei video drm fuse ip_tables [ 64.888458][ T3369] ---[ end trace 0000000000000000 ]--- [ 64.888459][ T3369] RIP: 0010:clear_inode (fs/inode.c:611 (discriminator 1)) [ 64.888462][ T3369] Code: fc ff df 48 89 ea 48 c1 ea 03 80 3c 02 00 75 42 48 8b 83 28 01 00 00 48 39 c5 75 16 48 c7 83 98 00 00 00 60 00 00 00 5b 5d c3 <0f> 0b 0f 0b 0f 0b 0f 0b 0f 0b e8 c4 46 ef ff e9 3a ff ff ff e8 ba All code ======== 0: fc cld 1: ff (bad) 2: df 48 89 fisttps -0x77(%rax) 5: ea (bad) 6: 48 c1 ea 03 shr $0x3,%rdx a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) e: 75 42 jne 0x52 10: 48 8b 83 28 01 00 00 mov 0x128(%rbx),%rax 17: 48 39 c5 cmp %rax,%rbp 1a: 75 16 jne 0x32 1c: 48 c7 83 98 00 00 00 movq $0x60,0x98(%rbx) 23: 60 00 00 00 27: 5b pop %rbx 28: 5d pop %rbp 29: c3 retq 2a:* 0f 0b ud2 <-- trapping instruction 2c: 0f 0b ud2 2e: 0f 0b ud2 30: 0f 0b ud2 32: 0f 0b ud2 34: e8 c4 46 ef ff callq 0xffffffffffef46fd 39: e9 3a ff ff ff jmpq 0xffffffffffffff78 3e: e8 .byte 0xe8 3f: ba .byte 0xba Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 0f 0b ud2 4: 0f 0b ud2 6: 0f 0b ud2 8: 0f 0b ud2 a: e8 c4 46 ef ff callq 0xffffffffffef46d3 f: e9 3a ff ff ff jmpq 0xffffffffffffff4e 14: e8 .byte 0xe8 15: ba .byte 0xba To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests sudo bin/lkp install job.yaml # job file is attached in this email bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run sudo bin/lkp run generated-yaml-file # if come across any failure that blocks the test, # please remove ~/.lkp and /lkp dir to run from a clean state. -- 0-DAY CI Kernel Test Service https://01.org/lkp