Greeting, FYI, we noticed the following commit (built with gcc-9): commit: 48c6615cc557593e4190415a6945b7aca7c8db31 ("xfs: grab active perag ref when reading AG headers") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: xfstests version: xfstests-x86_64-76d2a91-1_20210818 with following parameters: disk: 4HDD fs: xfs test: xfs-group-35 ucode: 0x21 test-description: xfstests is a regression test suite for xfs and other files ystems. test-url: git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git on test machine: 4 threads 1 sockets Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz with 8G 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 [ 221.758881][ T14] 00000030: 00 00 00 0b 25 ab 19 f4 00 80 04 13 00 80 04 14 ....%........... [ 221.759029][ T14] 00000040: 00 80 04 15 00 80 04 16 00 80 04 17 ff ff ff ff ................ [ 221.759186][ T14] 00000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ [ 221.759335][ T14] 00000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ [ 221.759483][ T14] 00000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ [ 221.759654][ T1415] XFS: Assertion failed: !sa->pag, file: fs/xfs/scrub/common.c, line: 412 [ 221.759805][ T1415] ------------[ cut here ]------------ [ 221.759892][ T1415] kernel BUG at fs/xfs/xfs_message.c:110! [ 221.759992][ T1415] invalid opcode: 0000 [#1] SMP PTI [ 221.760078][ T1415] CPU: 2 PID: 1415 Comm: xfs_scrub Not tainted 5.14.0-rc4-00021-g48c6615cc557 #1 [ 221.760228][ T1415] Hardware name: Hewlett-Packard p6-1451cx/2ADA, BIOS 8.15 02/05/2013 [ 221.760357][ T1415] RIP: 0010:assfail (kbuild/src/consumer/fs/xfs/./xfs_trace.h:212 (discriminator 8)) xfs [ 221.760516][ T1415] Code: 67 fc ff ff 0f 0b c3 0f 1f 44 00 00 41 89 c8 48 89 d1 48 89 f2 48 c7 c6 98 5c 9f c0 e8 82 f9 ff ff 80 3d dd e1 0a 00 00 74 02 <0f> 0b 0f 0b c3 48 8d 45 10 48 89 e2 4c 89 e6 48 89 1c 24 48 89 44 All code ======== 0: 67 fc addr32 cld 2: ff (bad) 3: ff 0f decl (%rdi) 5: 0b c3 or %ebx,%eax 7: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) c: 41 89 c8 mov %ecx,%r8d f: 48 89 d1 mov %rdx,%rcx 12: 48 89 f2 mov %rsi,%rdx 15: 48 c7 c6 98 5c 9f c0 mov $0xffffffffc09f5c98,%rsi 1c: e8 82 f9 ff ff callq 0xfffffffffffff9a3 21: 80 3d dd e1 0a 00 00 cmpb $0x0,0xae1dd(%rip) # 0xae205 28: 74 02 je 0x2c 2a:* 0f 0b ud2 <-- trapping instruction 2c: 0f 0b ud2 2e: c3 retq 2f: 48 8d 45 10 lea 0x10(%rbp),%rax 33: 48 89 e2 mov %rsp,%rdx 36: 4c 89 e6 mov %r12,%rsi 39: 48 89 1c 24 mov %rbx,(%rsp) 3d: 48 rex.W 3e: 89 .byte 0x89 3f: 44 rex.R Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 0f 0b ud2 4: c3 retq 5: 48 8d 45 10 lea 0x10(%rbp),%rax 9: 48 89 e2 mov %rsp,%rdx c: 4c 89 e6 mov %r12,%rsi f: 48 89 1c 24 mov %rbx,(%rsp) 13: 48 rex.W 14: 89 .byte 0x89 15: 44 rex.R [ 221.760821][ T1415] RSP: 0018:ffffc9000aacb890 EFLAGS: 00010202 [ 221.760974][ T1415] RAX: 0000000000000000 RBX: ffffc9000aacbcc8 RCX: 0000000000000000 [ 221.761103][ T1415] RDX: 00000000ffffffc0 RSI: 000000000000000a RDI: ffffffffc09e7dcd [ 221.761237][ T1415] RBP: ffffc9000aacbc80 R08: ffff8881fdf17d50 R09: 0000000000000000 [ 221.761371][ T1415] R10: 000000000000000a R11: f000000000000000 R12: 0000000000000000 [ 221.761504][ T1415] R13: ffff88820c7ed000 R14: 0000000000000001 R15: ffffc9000aacb980 [ 221.761637][ T1415] FS: 00007f185b955700(0000) GS:ffff8881fdf00000(0000) knlGS:0000000000000000 [ 221.761786][ T1415] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 221.761899][ T1415] CR2: 00007f7f6ef43000 CR3: 000000020de38002 CR4: 00000000001706e0 [ 221.762029][ T1415] Call Trace: [ 221.762087][ T1415] xchk_ag_read_headers (kbuild/src/consumer/fs/xfs/scrub/common.c:412 (discriminator 1)) xfs [ 221.762286][ T1415] xchk_ag_init (kbuild/src/consumer/fs/xfs/scrub/common.c:552) xfs [ 221.762469][ T1415] xchk_btree_check_block_owner (kbuild/src/consumer/fs/xfs/scrub/common.h:124 kbuild/src/consumer/fs/xfs/scrub/btree.c:377) xfs [ 221.762731][ T1415] xchk_btree_get_block (kbuild/src/consumer/fs/xfs/scrub/btree.c:561) xfs [ 221.762926][ T1415] xchk_btree (kbuild/src/consumer/fs/xfs/scrub/btree.c:722) xfs To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests 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 bin/lkp run generated-yaml-file --- 0DAY/LKP+ Test Infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corporation Thanks, Oliver Sang