Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-20964

Client LBUG/kernel panic: ASSERTION( page->cp_owner != NULL ) in cl_page_list_add via ll_io_zero_page during ftruncate of fscrypt-encrypted file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • Lustre 2.18.0
    • 3
    • 9223372036854775807

      When truncating an encrypted file to a size that is not a multiple of PAGE_SIZE, if the page was read ahead and not yet used, the Lustre client asserts:

      [965688.104989] Lustre: 512967:0:(policy.c:473:llcrypt_ioctl_get_policy_ex()) inode 162129737999712759: returning policy filenames_encryption_mode as 4, but is in fact null
      [965688.194640] python3 (512137): drop_caches: 3
      [965688.323839] python3 (512137): drop_caches: 3
      [965688.444150] python3 (512137): drop_caches: 3
      [965688.600681] python3 (512137): drop_caches: 3
      [965688.981202] python3 (512137): drop_caches: 3
      [965689.190563] python3 (512137): drop_caches: 3
      [965689.612517] python3 (512137): drop_caches: 3
      [965689.768639] LustreError: 512137:0:(cl_io.c:878:cl_page_list_add()) ASSERTION( page->cp_owner != ((void *)0) ) failed: 
      [965689.768650] LustreError: 512137:0:(cl_io.c:878:cl_page_list_add()) LBUG
      [965689.768653] CPU: 25 PID: 512137 Comm: python3 Kdump: loaded Tainted: G           OE     -------- -  - 4.18.0-553.137.1.el8_10.x86_64 #1
      [965689.768656] Hardware name:  /0GXH30, BIOS 1.7.5 01/16/2026
      [965689.768656] Call Trace:
      [965689.768663]  dump_stack+0x41/0x60
      [965689.768676]  lbug_with_loc.cold.8+0x5/0x43 [libcfs]
      [965689.768716]  cl_page_list_add+0x17b/0x1b0 [obdclass]
      [965689.768829]  cl_2queue_add+0x2a/0xf0 [obdclass]
      [965689.768856]  ll_io_zero_page+0x437/0x960 [lustre]
      [965689.768885]  ll_setattr_raw+0x729/0xe20 [lustre]
      [965689.768904]  notify_change+0x337/0x4c0
      [965689.768912]  ? new_sync_read+0x10f/0x160
      [965689.768916]  do_truncate+0x74/0xc0
      [965689.768919]  do_sys_ftruncate+0x102/0x110
      [965689.768921]  do_syscall_64+0x5b/0x1d0
      [965689.768926]  entry_SYSCALL_64_after_hwframe+0x66/0xcb
      [965689.768933] RIP: 0033:0x7f1e9bbffb5b
      [965689.768935] Code: 77 05 c3 0f 1f 40 00 48 8b 15 29 93 29 00 f7 d8 64 89 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 4d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 8b 15 f9 92 29 00 f7 d8
      [965689.768937] RSP: 002b:00007ffe1f0d9858 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
      [965689.768940] RAX: ffffffffffffffda RBX: 0000000000215490 RCX: 00007f1e9bbffb5b
      [965689.768941] RDX: 0000000000000000 RSI: 0000000000215490 RDI: 0000000000000004
      [965689.768941] RBP: 0000000000000004 R08: 0000000000000000 R09: 00007ffe1f0d9550
      [965689.768942] R10: 00007ffe1f0d9550 R11: 0000000000000246 R12: 00007ffe1f0d99e8
      [965689.768943] R13: 000055cff070aa00 R14: 0000000000000000 R15: 00007f1e9cd5aea8
      [965689.768945] Kernel panic - not syncing: LBUG
      [965689.768946] CPU: 25 PID: 512137 Comm: python3 Kdump: loaded Tainted: G           OE     -------- -  - 4.18.0-553.137.1.el8_10.x86_64 #1
      [965689.768948] Hardware name:  /0GXH30, BIOS 1.7.5 01/16/2026
      [965689.768949] Call Trace:
      [965689.768950]  dump_stack+0x41/0x60
      [965689.768952]  panic+0xe7/0x2ac
      [965689.768958]  lbug_with_loc.cold.8+0x1a/0x43 [libcfs]
      [965689.768968]  cl_page_list_add+0x17b/0x1b0 [obdclass]
      [965689.768993]  cl_2queue_add+0x2a/0xf0 [obdclass]
      [965689.769018]  ll_io_zero_page+0x437/0x960 [lustre]
      [965689.769036]  ll_setattr_raw+0x729/0xe20 [lustre]
      [965689.769055]  notify_change+0x337/0x4c0
      [965689.769057]  ? new_sync_read+0x10f/0x160
      [965689.769058]  do_truncate+0x74/0xc0
      [965689.769061]  do_sys_ftruncate+0x102/0x110
      [965689.769063]  do_syscall_64+0x5b/0x1d0
      [965689.769065]  entry_SYSCALL_64_after_hwframe+0x66/0xcb
      [965689.769067] RIP: 0033:0x7f1e9bbffb5b
      [965689.769068] Code: 77 05 c3 0f 1f 40 00 48 8b 15 29 93 29 00 f7 d8 64 89 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 4d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 8b 15 f9 92 29 00 f7 d8
      [965689.769070] RSP: 002b:00007ffe1f0d9858 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
      [965689.769071] RAX: ffffffffffffffda RBX: 0000000000215490 RCX: 00007f1e9bbffb5b
      [965689.769072] RDX: 0000000000000000 RSI: 0000000000215490 RDI: 0000000000000004
      [965689.769073] RBP: 0000000000000004 R08: 0000000000000000 R09: 00007ffe1f0d9550
      [965689.769074] R10: 00007ffe1f0d9550 R11: 0000000000000246 R12: 00007ffe1f0d99e8
      [965689.769075] R13: 000055cff070aa00 R14: 0000000000000000 R15: 00007f1e9cd5aea8
      

            sebastien Sebastien Buisson
            sebastien Sebastien Buisson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: