[Kernel-packages] [Bug 1885696] Re: Kernel panic linux-image-5.4.0-39-generic with cachefiles

2020-06-30 Thread Antti Jaakkola
apport information

** Tags added: apport-collected uec-images

** Description changed:

  Ubuntu 20.04 server with latest kernel 5.4.0-39-generic panics under
  load when cachefilesd is used.
  
  This bug is known and fixed in upstream kernel 5.4.44
  
  https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.4.44
  
  cachefiles: Fix race between read_waiter and read_copier involving op->to_do
  
  [ Upstream commit 7bb0c5338436dae953622470d52689265867f032 ]
  
  
https://github.com/torvalds/linux/commit/7bb0c5338436dae953622470d52689265867f032
  #diff-14a48d14f7cd98c97d57211cfd758797
  
  package: linux-image-5.4.0-39-generic, linux-image-generic
  
  Dmesg output:
  
  
  [450023.072377] FS-Cache:
  [450023.075150] FS-Cache: Assertion failed
  [450023.079496] FS-Cache: 4 == 5 is false
  [450023.083749] kernel BUG at fs/fscache/operation.c:69!
  [450023.089468] invalid opcode:  [#1] SMP PTI
  [450023.094500] CPU: 13 PID: 0 Comm: swapper/13 Not tainted 5.4.0-37-generic 
#41-Ubuntu
  [450023.104057] Hardware name: Dell Inc. PowerEdge R430/0CN7X8, BIOS 2.11.0 
12/23/2019
  [450023.112660] RIP: 0010:fscache_enqueue_operation.cold+0xb7/0xb9 [fscache]
  [450023.120279] Code: a8 96 c0 e8 3f dc 1a e1 48 c7 c7 14 a8 96 c0 e8 33 dc 
1a e1 41 8b 74 24 40 ba 05 00 00 00 48 c7 c7 28 98 96 c0 e8 1d dc 1a e1 <0f> 0b 
48 c7 c7 06 a8 96 c0 e8 0f dc 1a e1 48 c7 c7 14 a8 96 c0 e8
  [450023.141515] RSP: 0018:baca8cb88b98 EFLAGS: 00010046
  [450023.147490] RAX: 0019 RBX: 98535b7f6540 RCX: 
0006
  [450023.156712] RDX:  RSI: 0092 RDI: 
9872bf3978c0
  [450023.165774] RBP: baca8cb88bb0 R08: 337d R09: 
baca8f984020
  [450023.175116] R10: 9852b7ebc2a0 R11: 0001 R12: 
9872b870f740
  [450023.184384] R13: 9838bd287580 R14:  R15: 
baca8cb88c48
  [450023.193659] FS:  () GS:9872bf38() 
knlGS:
  [450023.204016] CS:  0010 DS:  ES:  CR0: 80050033
  [450023.211346] CR2: 55eb5afaf2d8 CR3: 00359180a004 CR4: 
003626e0
  [450023.220602] DR0:  DR1:  DR2: 

  [450023.229668] DR3:  DR6: fffe0ff0 DR7: 
0400
  [450023.238621] Call Trace:
  [450023.242266]  
  [450023.245426]  cachefiles_read_waiter+0xe5/0x100 [cachefiles]
  [450023.252592]  __wake_up_common+0x7e/0x140
  [450023.257909]  __wake_up_locked_key_bookmark+0x1b/0x20
  [450023.264404]  wake_up_page_bit+0xa7/0x100
  [450023.269733]  unlock_page+0x25/0x30
  [450023.274491]  __read_end_io+0xb6/0x110
  [450023.279530]  mpage_end_io+0x2f/0x40
  [450023.284389]  bio_endio+0xfb/0x160
  [450023.289052]  dec_pending+0x11c/0x210
  [450023.294006]  clone_endio+0x77/0x170
  [450023.298874]  bio_endio+0xfb/0x160
  [450023.303540]  blk_update_request+0x18a/0x2e0
  [450023.309201]  scsi_end_request+0x30/0x160
  [450023.314571]  scsi_io_completion+0x7c/0x540
  [450023.320129]  ? __update_load_avg_cfs_rq+0x212/0x2f0
  [450023.326580]  scsi_finish_command+0xe7/0x120
  [450023.332259]  scsi_softirq_done+0x14a/0x170
  [450023.337840]  blk_done_softirq+0x92/0xc0
  [450023.343141]  __do_softirq+0xe1/0x2d6
  [450023.348145]  irq_exit+0xae/0xb0
  [450023.352670]  smp_call_function_single_interrupt+0x48/0xd0
  [450023.359735]  call_function_single_interrupt+0xf/0x20
  [450023.366323]  
  [450023.369712] RIP: 0010:cpuidle_enter_state+0xc5/0x450
  [450023.376326] Code: ff e8 5f 0c 81 ff 80 7d c7 00 74 17 9c 58 0f 1f 44 00 
00 f6 c4 02 0f 85 65 03 00 00 31 ff e8 72 6e 87 ff fb 66 0f 1f 44 00 00 <45> 85 
ed 0f 88 8f 02 00 00 49 63 cd 4c 8b 7d d0 4c 2b 7d c8 48 8d
  [450023.399419] RSP: 0018:baca8017be38 EFLAGS: 0246 ORIG_RAX: 
ff04
  [450023.409020] RAX: 9872bf3aad00 RBX: a3159c00 RCX: 
001f
  [450023.418148] RDX:  RSI: 3a3fe5c1 RDI: 

  [450023.427270] RBP: baca8017be78 R08: 0001994b295dad0d R09: 
0001
  [450023.436383] R10: 9872bf3a9a00 R11: 9872bf3a99e0 R12: 
daca7f583400
  [450023.445496] R13: 0003 R14: 0003 R15: 
daca7f583400
  [450023.454584]  ? cpuidle_enter_state+0xa1/0x450
  [450023.460544]  cpuidle_enter+0x2e/0x40
  [450023.465593]  call_cpuidle+0x23/0x40
  [450023.470525]  do_idle+0x1dd/0x270
  [450023.475147]  cpu_startup_entry+0x20/0x30
  [450023.480547]  start_secondary+0x167/0x1c0
  [450023.485934]  secondary_startup_64+0xa4/0xb0
  [450023.491620] Modules linked in: vhost_net vhost tap cpuid xt_state 
br_netfilter xt_physdev ip_set xt_CHECKSUM xt_MASQUERADE xt_conntrack 
ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_mangle ip6table_nat iptable_mangle 
iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables 
nfnetlink ip6table_filter ip6_tables iptable_filter bpfilter bridge cachefiles 
rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace fscache 8021q garp 

[Kernel-packages] [Bug 1885696] Re: Kernel panic linux-image-5.4.0-39-generic with cachefiles

2020-06-30 Thread Brian Murray
** Package changed: ubuntu => linux (Ubuntu)

-- 
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/1885696

Title:
  Kernel panic linux-image-5.4.0-39-generic with cachefiles

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Ubuntu 20.04 server with latest kernel 5.4.0-39-generic panics under
  load when cachefilesd is used.

  This bug is known and fixed in upstream kernel 5.4.44

  https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.4.44

  cachefiles: Fix race between read_waiter and read_copier involving op->to_do
  
  [ Upstream commit 7bb0c5338436dae953622470d52689265867f032 ]

  
https://github.com/torvalds/linux/commit/7bb0c5338436dae953622470d52689265867f032
  #diff-14a48d14f7cd98c97d57211cfd758797

  package: linux-image-5.4.0-39-generic, linux-image-generic

  Dmesg output:

  
  [450023.072377] FS-Cache:
  [450023.075150] FS-Cache: Assertion failed
  [450023.079496] FS-Cache: 4 == 5 is false
  [450023.083749] kernel BUG at fs/fscache/operation.c:69!
  [450023.089468] invalid opcode:  [#1] SMP PTI
  [450023.094500] CPU: 13 PID: 0 Comm: swapper/13 Not tainted 5.4.0-37-generic 
#41-Ubuntu
  [450023.104057] Hardware name: Dell Inc. PowerEdge R430/0CN7X8, BIOS 2.11.0 
12/23/2019
  [450023.112660] RIP: 0010:fscache_enqueue_operation.cold+0xb7/0xb9 [fscache]
  [450023.120279] Code: a8 96 c0 e8 3f dc 1a e1 48 c7 c7 14 a8 96 c0 e8 33 dc 
1a e1 41 8b 74 24 40 ba 05 00 00 00 48 c7 c7 28 98 96 c0 e8 1d dc 1a e1 <0f> 0b 
48 c7 c7 06 a8 96 c0 e8 0f dc 1a e1 48 c7 c7 14 a8 96 c0 e8
  [450023.141515] RSP: 0018:baca8cb88b98 EFLAGS: 00010046
  [450023.147490] RAX: 0019 RBX: 98535b7f6540 RCX: 
0006
  [450023.156712] RDX:  RSI: 0092 RDI: 
9872bf3978c0
  [450023.165774] RBP: baca8cb88bb0 R08: 337d R09: 
baca8f984020
  [450023.175116] R10: 9852b7ebc2a0 R11: 0001 R12: 
9872b870f740
  [450023.184384] R13: 9838bd287580 R14:  R15: 
baca8cb88c48
  [450023.193659] FS:  () GS:9872bf38() 
knlGS:
  [450023.204016] CS:  0010 DS:  ES:  CR0: 80050033
  [450023.211346] CR2: 55eb5afaf2d8 CR3: 00359180a004 CR4: 
003626e0
  [450023.220602] DR0:  DR1:  DR2: 

  [450023.229668] DR3:  DR6: fffe0ff0 DR7: 
0400
  [450023.238621] Call Trace:
  [450023.242266]  
  [450023.245426]  cachefiles_read_waiter+0xe5/0x100 [cachefiles]
  [450023.252592]  __wake_up_common+0x7e/0x140
  [450023.257909]  __wake_up_locked_key_bookmark+0x1b/0x20
  [450023.264404]  wake_up_page_bit+0xa7/0x100
  [450023.269733]  unlock_page+0x25/0x30
  [450023.274491]  __read_end_io+0xb6/0x110
  [450023.279530]  mpage_end_io+0x2f/0x40
  [450023.284389]  bio_endio+0xfb/0x160
  [450023.289052]  dec_pending+0x11c/0x210
  [450023.294006]  clone_endio+0x77/0x170
  [450023.298874]  bio_endio+0xfb/0x160
  [450023.303540]  blk_update_request+0x18a/0x2e0
  [450023.309201]  scsi_end_request+0x30/0x160
  [450023.314571]  scsi_io_completion+0x7c/0x540
  [450023.320129]  ? __update_load_avg_cfs_rq+0x212/0x2f0
  [450023.326580]  scsi_finish_command+0xe7/0x120
  [450023.332259]  scsi_softirq_done+0x14a/0x170
  [450023.337840]  blk_done_softirq+0x92/0xc0
  [450023.343141]  __do_softirq+0xe1/0x2d6
  [450023.348145]  irq_exit+0xae/0xb0
  [450023.352670]  smp_call_function_single_interrupt+0x48/0xd0
  [450023.359735]  call_function_single_interrupt+0xf/0x20
  [450023.366323]  
  [450023.369712] RIP: 0010:cpuidle_enter_state+0xc5/0x450
  [450023.376326] Code: ff e8 5f 0c 81 ff 80 7d c7 00 74 17 9c 58 0f 1f 44 00 
00 f6 c4 02 0f 85 65 03 00 00 31 ff e8 72 6e 87 ff fb 66 0f 1f 44 00 00 <45> 85 
ed 0f 88 8f 02 00 00 49 63 cd 4c 8b 7d d0 4c 2b 7d c8 48 8d
  [450023.399419] RSP: 0018:baca8017be38 EFLAGS: 0246 ORIG_RAX: 
ff04
  [450023.409020] RAX: 9872bf3aad00 RBX: a3159c00 RCX: 
001f
  [450023.418148] RDX:  RSI: 3a3fe5c1 RDI: 

  [450023.427270] RBP: baca8017be78 R08: 0001994b295dad0d R09: 
0001
  [450023.436383] R10: 9872bf3a9a00 R11: 9872bf3a99e0 R12: 
daca7f583400
  [450023.445496] R13: 0003 R14: 0003 R15: 
daca7f583400
  [450023.454584]  ? cpuidle_enter_state+0xa1/0x450
  [450023.460544]  cpuidle_enter+0x2e/0x40
  [450023.465593]  call_cpuidle+0x23/0x40
  [450023.470525]  do_idle+0x1dd/0x270
  [450023.475147]  cpu_startup_entry+0x20/0x30
  [450023.480547]  start_secondary+0x167/0x1c0
  [450023.485934]  secondary_startup_64+0xa4/0xb0
  [450023.491620] Modules linked in: vhost_net vhost tap cpuid xt_state 
br_netfilter xt_physdev ip_set xt_CHECKSUM xt_MASQUERADE xt_conntrack 
ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_mangle