** Changed in: linux (Ubuntu Bionic)
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1989144

Title:
  unprivileged users may trigger page cache invalidation WARN

Status in linux package in Ubuntu:
  Invalid
Status in linux source package in Bionic:
  Fix Committed

Bug description:
  [Impact]
  Unprivileged users may trigger a page cache invalidation failure when doing 
parallel direct I/O and buffered I/O. On some kernels, that may lead to a WARN.

  [   22.415082] WARNING: CPU: 3 PID: 3404 at 
/build/linux-GtMq7R/linux-4.15.0/fs/iomap.c:903 iomap_dio_actor+0xbd/0x460
  [   22.415083] Modules linked in: xfs isofs kvm_intel kvm irqbypass joydev 
input_leds serio_raw ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp 
libiscsi scsi_transport_iscsi autofs4 btrfs zstd_compress raid10 raid456 
async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq 
libcrc32c raid1 raid0 multipath linear crct10dif_pclmul crc32_pclmul 
ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd glue_helper cryptd 
psmouse ahci libahci virtio_blk virtio_net
  [   22.415099] CPU: 3 PID: 3404 Comm: xfs_io Not tainted 4.15.0-192-generic 
#203-Ubuntu
  [   22.415100] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 
1.15.0-1 04/01/2014
  [   22.415103] RIP: 0010:iomap_dio_actor+0xbd/0x460
  [   22.415104] RSP: 0018:ffffb7c782fe7bf0 EFLAGS: 00010202
  [   22.415104] RAX: 0000000000000002 RBX: 0000000000000000 RCX: 
0000000000000009
  [   22.415105] RDX: 00000000000001ff RSI: 0000000000000000 RDI: 
ffffb7c782fe7e20
  [   22.415105] RBP: ffffb7c782fe7c68 R08: ffffb7c782fe7c88 R09: 
ffff9bbc9f48fba0
  [   22.415106] R10: 0000000000000001 R11: 0000000000000000 R12: 
0000000000000009
  [   22.415106] R13: ffff9bbc9f48fba0 R14: ffffb7c782fe7c88 R15: 
0000000000001000
  [   22.415107] FS:  00007f2b802ed700(0000) GS:ffff9bbcbfd80000(0000) 
knlGS:0000000000000000
  [   22.415107] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  [   22.415108] CR2: 0000000001639000 CR3: 000000001e6b0003 CR4: 
0000000000760ee0
  [   22.415110] PKRU: 55555554
  [   22.415110] Call Trace:
  [   22.415122]  ? iomap_dio_zero+0x130/0x130
  [   22.415123]  iomap_apply+0xa5/0x120
  [   22.415124]  ? iomap_dio_zero+0x130/0x130
  [   22.415125]  iomap_dio_rw+0x2f3/0x430
  [   22.415126]  ? iomap_dio_zero+0x130/0x130
  [   22.415148]  xfs_file_dio_aio_read+0x68/0xf0 [xfs]
  [   22.415157]  ? xfs_file_dio_aio_read+0x68/0xf0 [xfs]
  [   22.415165]  xfs_file_read_iter+0xbf/0xe0 [xfs]
  [   22.415170]  new_sync_read+0xe4/0x130
  [   22.415171]  __vfs_read+0x29/0x40
  [   22.415172]  vfs_read+0x8e/0x130
  [   22.415173]  SyS_pread64+0x95/0xb0
  [   22.415176]  do_syscall_64+0x73/0x130
  [   22.415183]  entry_SYSCALL_64_after_hwframe+0x41/0xa6
  [   22.415184] RIP: 0033:0x7f2b7fbc0b73
  [   22.415185] RSP: 002b:00007ffc134e1a58 EFLAGS: 00000246 ORIG_RAX: 
0000000000000011
  [   22.415186] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 
00007f2b7fbc0b73
  [   22.415186] RDX: 0000000000001000 RSI: 0000000001639000 RDI: 
0000000000000003
  [   22.415186] RBP: 0000000000000000 R08: 0000000000000000 R09: 
0000000000000000
  [   22.415187] R10: 0000000000000000 R11: 0000000000000246 R12: 
00007ffc134e1b00
  [   22.415187] R13: 0000000000020000 R14: 0000000000000000 R15: 
0000000000000000
  [   22.415188] Code: 21 d0 48 89 45 a0 0f 85 aa 03 00 00 41 0f b7 46 18 66 83 
f8 03 0f 84 7e 02 00 00 66 83 f8 04 74 52 66 83 f8 01 0f 84 c8 02 00 00 <0f> 0b 
48 c7 45 a0 fb ff ff ff 48 8b 5d d0 65 48 33 1c 25 28 00 

  [Test case]
  Run xfstests generic/446 test.

  [Potential regressions]
  Data corruption could be caused, though it is expected to be caused in such 
scenarions anyway. That should affecte direct I/O.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1989144/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to