[Kernel-packages] [Bug 1859979] Re: nilfs2 segctord kthread dies after which write to nilfs2 fs freezes the process writing
Patch to nilfs2 by Ryusuke Konishi (https://www.spinics.net/lists/linux- nilfs/msg04322.html) has found its way to Ubuntu kernel image linux- image-5.3.0-64-lowlatency (5.3.0-64.58), and the kernel oops doesn't appear any more. To me it seems this issue is finally resolved. ** Changed in: linux (Ubuntu) Status: Expired => Fix Released -- 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/1859979 Title: nilfs2 segctord kthread dies after which write to nilfs2 fs freezes the process writing Status in linux package in Ubuntu: Fix Released Bug description: With linux-image-5.3.0-26-lowlatency, segctord kthread encounters a "BUG: kernel NULL pointer dereference, address: 00a8" some half a minute from boot. Before that, one can log in to the system (/home is on a nilfs2 filesystem), but after the kernel BUG report, any write to a nilfs2 filesystem freezes the process trying to write, or any new login attempt freezes. This bug can be reproduced with every boot. With linux-image-5.3.0-24-lowlatency and earlier, this doesn't happen. Relevant excerpt from syslog: ... Jan 16 10:56:59 lillukka kernel: [0.00] Linux version 5.3.0-26-lowlatency (buildd@lgw01-amd64-013) (gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2)) #28-Ubuntu SMP PREEMPT Wed Dec 18 06:21:38 UTC 2019 (Ubuntu 5.3.0-26.28-lowlatency 5.3.13) ... Jan 16 10:57:13 lillukka kernel: [ 28.727753] BUG: kernel NULL pointer dereference, address: 00a8 Jan 16 10:57:13 lillukka kernel: [ 28.727852] #PF: supervisor read access in kernel mode Jan 16 10:57:13 lillukka kernel: [ 28.727914] #PF: error_code(0x) - not-present page Jan 16 10:57:13 lillukka kernel: [ 28.727974] PGD 0 P4D 0 Jan 16 10:57:13 lillukka kernel: [ 28.728012] Oops: [#1] PREEMPT SMP PTI Jan 16 10:57:13 lillukka kernel: [ 28.728067] CPU: 3 PID: 838 Comm: segctord Not tainted 5.3.0-26-lowlatency #28-Ubuntu Jan 16 10:57:13 lillukka kernel: [ 28.728156] Hardware name: Sony Corporation SVP1321C5E/VAIO, BIOS R0280V7 07/11/2013 Jan 16 10:57:13 lillukka kernel: [ 28.728257] RIP: 0010:percpu_counter_add_batch+0x13/0x80 Jan 16 10:57:13 lillukka kernel: [ 28.728334] Code: e0 41 5c 41 5d 41 5e 5d c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 55 41 54 49 89 fc 53 65 ff 05 b5 5c ed 72 <48> 8b 47 20 48 63 ca 65 44 8b 28 49 63 dd 48 01 f3 48 39 d9 7e 0a Jan 16 10:57:13 lillukka kernel: [ 28.728536] RSP: 0018:b582c02afcb0 EFLAGS: 00010082 Jan 16 10:57:13 lillukka kernel: [ 28.728598] RAX: 0002 RBX: RCX: 0001 Jan 16 10:57:13 lillukka kernel: [ 28.728679] RDX: 0018 RSI: 0001 RDI: 0088 Jan 16 10:57:13 lillukka kernel: [ 28.728760] RBP: b582c02afcc8 R08: 8f519357ab40 R09: 0018 Jan 16 10:57:13 lillukka kernel: [ 28.728841] R10: 00030140 R11: 8f5193609eea R12: 0088 Jan 16 10:57:13 lillukka kernel: [ 28.728920] R13: 8f518a3ee498 R14: 8f518a3ee608 R15: e52b07e5a200 Jan 16 10:57:13 lillukka kernel: [ 28.729001] FS: () GS:8f519798() knlGS: Jan 16 10:57:13 lillukka kernel: [ 28.729091] CS: 0010 DS: ES: CR0: 80050033 Jan 16 10:57:13 lillukka kernel: [ 28.729157] CR2: 00a8 CR3: 8d60a002 CR4: 001606e0 Jan 16 10:57:13 lillukka kernel: [ 28.729237] Call Trace: Jan 16 10:57:13 lillukka kernel: [ 28.729280] __test_set_page_writeback+0x2f1/0x310 Jan 16 10:57:13 lillukka kernel: [ 28.729362] nilfs_segctor_do_construct+0xd13/0x1260 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729432] ? __switch_to_asm+0x40/0x70 Jan 16 10:57:13 lillukka kernel: [ 28.729496] nilfs_segctor_construct+0x1ff/0x2f0 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729572] nilfs_segctor_thread+0x136/0x3a0 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729640] kthread+0x104/0x140 Jan 16 10:57:13 lillukka kernel: [ 28.729690] ? nilfs_segctor_construct+0x2f0/0x2f0 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729760] ? kthread_park+0x80/0x80 Jan 16 10:57:13 lillukka kernel: [ 28.729807] ret_from_fork+0x35/0x40 Jan 16 10:57:13 lillukka kernel: [ 28.729854] Modules linked in: ccm rfcomm aufs overlay cmac bnep nilfs2 snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel pn544_mei mei_phy pn544 snd_hda_codec hci snd_hda_core snd_hwdep intel_rapl_msr mei_hdcp nfc snd_pcm snd_seq_midi snd_seq_midi_event intel_rapl_common x86_pkg_temp_thermal intel_powerclamp snd_rawmidi coretemp iwlmvm mac80211 snd_seq btusb btrtl libarc4 btbcm uvcvideo btintel kvm videobuf2_vmalloc iwlwifi videobuf2_memops bluetooth snd_seq_device videobuf2_v4l2
[Kernel-packages] [Bug 1859979] Re: nilfs2 segctord kthread dies after which write to nilfs2 fs freezes the process writing
Brian G also bisected and found another commit (d3b3c0a14615c495118acc4bdca23d53eea46ed2) to trigger the bug: https://lkml.org/lkml/2020/2/15/260. There's also a lot of additional information from ARAI Shun-ichi. -- 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/1859979 Title: nilfs2 segctord kthread dies after which write to nilfs2 fs freezes the process writing Status in linux package in Ubuntu: Incomplete Bug description: With linux-image-5.3.0-26-lowlatency, segctord kthread encounters a "BUG: kernel NULL pointer dereference, address: 00a8" some half a minute from boot. Before that, one can log in to the system (/home is on a nilfs2 filesystem), but after the kernel BUG report, any write to a nilfs2 filesystem freezes the process trying to write, or any new login attempt freezes. This bug can be reproduced with every boot. With linux-image-5.3.0-24-lowlatency and earlier, this doesn't happen. Relevant excerpt from syslog: ... Jan 16 10:56:59 lillukka kernel: [0.00] Linux version 5.3.0-26-lowlatency (buildd@lgw01-amd64-013) (gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2)) #28-Ubuntu SMP PREEMPT Wed Dec 18 06:21:38 UTC 2019 (Ubuntu 5.3.0-26.28-lowlatency 5.3.13) ... Jan 16 10:57:13 lillukka kernel: [ 28.727753] BUG: kernel NULL pointer dereference, address: 00a8 Jan 16 10:57:13 lillukka kernel: [ 28.727852] #PF: supervisor read access in kernel mode Jan 16 10:57:13 lillukka kernel: [ 28.727914] #PF: error_code(0x) - not-present page Jan 16 10:57:13 lillukka kernel: [ 28.727974] PGD 0 P4D 0 Jan 16 10:57:13 lillukka kernel: [ 28.728012] Oops: [#1] PREEMPT SMP PTI Jan 16 10:57:13 lillukka kernel: [ 28.728067] CPU: 3 PID: 838 Comm: segctord Not tainted 5.3.0-26-lowlatency #28-Ubuntu Jan 16 10:57:13 lillukka kernel: [ 28.728156] Hardware name: Sony Corporation SVP1321C5E/VAIO, BIOS R0280V7 07/11/2013 Jan 16 10:57:13 lillukka kernel: [ 28.728257] RIP: 0010:percpu_counter_add_batch+0x13/0x80 Jan 16 10:57:13 lillukka kernel: [ 28.728334] Code: e0 41 5c 41 5d 41 5e 5d c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 55 41 54 49 89 fc 53 65 ff 05 b5 5c ed 72 <48> 8b 47 20 48 63 ca 65 44 8b 28 49 63 dd 48 01 f3 48 39 d9 7e 0a Jan 16 10:57:13 lillukka kernel: [ 28.728536] RSP: 0018:b582c02afcb0 EFLAGS: 00010082 Jan 16 10:57:13 lillukka kernel: [ 28.728598] RAX: 0002 RBX: RCX: 0001 Jan 16 10:57:13 lillukka kernel: [ 28.728679] RDX: 0018 RSI: 0001 RDI: 0088 Jan 16 10:57:13 lillukka kernel: [ 28.728760] RBP: b582c02afcc8 R08: 8f519357ab40 R09: 0018 Jan 16 10:57:13 lillukka kernel: [ 28.728841] R10: 00030140 R11: 8f5193609eea R12: 0088 Jan 16 10:57:13 lillukka kernel: [ 28.728920] R13: 8f518a3ee498 R14: 8f518a3ee608 R15: e52b07e5a200 Jan 16 10:57:13 lillukka kernel: [ 28.729001] FS: () GS:8f519798() knlGS: Jan 16 10:57:13 lillukka kernel: [ 28.729091] CS: 0010 DS: ES: CR0: 80050033 Jan 16 10:57:13 lillukka kernel: [ 28.729157] CR2: 00a8 CR3: 8d60a002 CR4: 001606e0 Jan 16 10:57:13 lillukka kernel: [ 28.729237] Call Trace: Jan 16 10:57:13 lillukka kernel: [ 28.729280] __test_set_page_writeback+0x2f1/0x310 Jan 16 10:57:13 lillukka kernel: [ 28.729362] nilfs_segctor_do_construct+0xd13/0x1260 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729432] ? __switch_to_asm+0x40/0x70 Jan 16 10:57:13 lillukka kernel: [ 28.729496] nilfs_segctor_construct+0x1ff/0x2f0 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729572] nilfs_segctor_thread+0x136/0x3a0 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729640] kthread+0x104/0x140 Jan 16 10:57:13 lillukka kernel: [ 28.729690] ? nilfs_segctor_construct+0x2f0/0x2f0 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729760] ? kthread_park+0x80/0x80 Jan 16 10:57:13 lillukka kernel: [ 28.729807] ret_from_fork+0x35/0x40 Jan 16 10:57:13 lillukka kernel: [ 28.729854] Modules linked in: ccm rfcomm aufs overlay cmac bnep nilfs2 snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel pn544_mei mei_phy pn544 snd_hda_codec hci snd_hda_core snd_hwdep intel_rapl_msr mei_hdcp nfc snd_pcm snd_seq_midi snd_seq_midi_event intel_rapl_common x86_pkg_temp_thermal intel_powerclamp snd_rawmidi coretemp iwlmvm mac80211 snd_seq btusb btrtl libarc4 btbcm uvcvideo btintel kvm videobuf2_vmalloc iwlwifi videobuf2_memops bluetooth snd_seq_device videobuf2_v4l2 videobuf2_common irqbypass joydev input_leds intel_cstate videodev ecdh_generic snd_timer intel_rapl_perf ecc serio_raw mc mei_me cfg80211 mei snd
[Kernel-packages] [Bug 1859979] Re: nilfs2 segctord kthread dies after which write to nilfs2 fs freezes the process writing
I currently can't help much in debugging this problem, as I have limited time, and only one computer, and I'm a bit worried about corrupting the filesystem in the process. (I've been trying to set up user-mode linux with nilfs2 root fs, but so far haven't had success in bringing the UML setup up, unrelated to this problem.) However, I believe Ryusuke Konishi has inspected this very issue and found the commit (f4bdb2697ccc9cecf1a9de86905c309ad901da4c) that triggers the bug. See the mail thread https://www.spinics.net/lists /linux-nilfs/msg04276.html -- 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/1859979 Title: nilfs2 segctord kthread dies after which write to nilfs2 fs freezes the process writing Status in linux package in Ubuntu: Incomplete Bug description: With linux-image-5.3.0-26-lowlatency, segctord kthread encounters a "BUG: kernel NULL pointer dereference, address: 00a8" some half a minute from boot. Before that, one can log in to the system (/home is on a nilfs2 filesystem), but after the kernel BUG report, any write to a nilfs2 filesystem freezes the process trying to write, or any new login attempt freezes. This bug can be reproduced with every boot. With linux-image-5.3.0-24-lowlatency and earlier, this doesn't happen. Relevant excerpt from syslog: ... Jan 16 10:56:59 lillukka kernel: [0.00] Linux version 5.3.0-26-lowlatency (buildd@lgw01-amd64-013) (gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2)) #28-Ubuntu SMP PREEMPT Wed Dec 18 06:21:38 UTC 2019 (Ubuntu 5.3.0-26.28-lowlatency 5.3.13) ... Jan 16 10:57:13 lillukka kernel: [ 28.727753] BUG: kernel NULL pointer dereference, address: 00a8 Jan 16 10:57:13 lillukka kernel: [ 28.727852] #PF: supervisor read access in kernel mode Jan 16 10:57:13 lillukka kernel: [ 28.727914] #PF: error_code(0x) - not-present page Jan 16 10:57:13 lillukka kernel: [ 28.727974] PGD 0 P4D 0 Jan 16 10:57:13 lillukka kernel: [ 28.728012] Oops: [#1] PREEMPT SMP PTI Jan 16 10:57:13 lillukka kernel: [ 28.728067] CPU: 3 PID: 838 Comm: segctord Not tainted 5.3.0-26-lowlatency #28-Ubuntu Jan 16 10:57:13 lillukka kernel: [ 28.728156] Hardware name: Sony Corporation SVP1321C5E/VAIO, BIOS R0280V7 07/11/2013 Jan 16 10:57:13 lillukka kernel: [ 28.728257] RIP: 0010:percpu_counter_add_batch+0x13/0x80 Jan 16 10:57:13 lillukka kernel: [ 28.728334] Code: e0 41 5c 41 5d 41 5e 5d c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 55 41 54 49 89 fc 53 65 ff 05 b5 5c ed 72 <48> 8b 47 20 48 63 ca 65 44 8b 28 49 63 dd 48 01 f3 48 39 d9 7e 0a Jan 16 10:57:13 lillukka kernel: [ 28.728536] RSP: 0018:b582c02afcb0 EFLAGS: 00010082 Jan 16 10:57:13 lillukka kernel: [ 28.728598] RAX: 0002 RBX: RCX: 0001 Jan 16 10:57:13 lillukka kernel: [ 28.728679] RDX: 0018 RSI: 0001 RDI: 0088 Jan 16 10:57:13 lillukka kernel: [ 28.728760] RBP: b582c02afcc8 R08: 8f519357ab40 R09: 0018 Jan 16 10:57:13 lillukka kernel: [ 28.728841] R10: 00030140 R11: 8f5193609eea R12: 0088 Jan 16 10:57:13 lillukka kernel: [ 28.728920] R13: 8f518a3ee498 R14: 8f518a3ee608 R15: e52b07e5a200 Jan 16 10:57:13 lillukka kernel: [ 28.729001] FS: () GS:8f519798() knlGS: Jan 16 10:57:13 lillukka kernel: [ 28.729091] CS: 0010 DS: ES: CR0: 80050033 Jan 16 10:57:13 lillukka kernel: [ 28.729157] CR2: 00a8 CR3: 8d60a002 CR4: 001606e0 Jan 16 10:57:13 lillukka kernel: [ 28.729237] Call Trace: Jan 16 10:57:13 lillukka kernel: [ 28.729280] __test_set_page_writeback+0x2f1/0x310 Jan 16 10:57:13 lillukka kernel: [ 28.729362] nilfs_segctor_do_construct+0xd13/0x1260 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729432] ? __switch_to_asm+0x40/0x70 Jan 16 10:57:13 lillukka kernel: [ 28.729496] nilfs_segctor_construct+0x1ff/0x2f0 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729572] nilfs_segctor_thread+0x136/0x3a0 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729640] kthread+0x104/0x140 Jan 16 10:57:13 lillukka kernel: [ 28.729690] ? nilfs_segctor_construct+0x2f0/0x2f0 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729760] ? kthread_park+0x80/0x80 Jan 16 10:57:13 lillukka kernel: [ 28.729807] ret_from_fork+0x35/0x40 Jan 16 10:57:13 lillukka kernel: [ 28.729854] Modules linked in: ccm rfcomm aufs overlay cmac bnep nilfs2 snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel pn544_mei mei_phy pn544 snd_hda_codec hci snd_hda_core snd_hwdep intel_rapl_msr mei_hdcp nfc snd_pcm snd_seq_midi snd_seq_midi_event intel_rapl_common x86_pkg_temp_thermal
[Kernel-packages] [Bug 1859979] Re: nilfs2 segctord kthread dies after which write to nilfs2 fs freezes the process writing
I updated to 5.3.0-28.30-lowlatency from proposed, and the same thing happened. Jan 17 21:15:24 lillukka udisksd[987]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory Jan 17 21:15:24 lillukka kernel: [0.00] microcode: microcode updated early to revision 0x25, date = 2019-02-26 Jan 17 21:15:24 lillukka kernel: [0.00] Linux version 5.3.0-28-lowlatency (buildd@lgw01-amd64-033) (gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2)) #30-Ubuntu SMP PREEMPT Wed Jan 15 02:18:14 UTC 2020 (Ubuntu 5.3.0-28.30-lowlatency 5.3.13) Jan 17 21:15:24 lillukka kernel: [0.00] Command line: BOOT_IMAGE=/vmlinuz-5.3.0-28-lowlatency root=/dev/mapper/lillukka-root ro quiet splash vt.handoff=7 ... Jan 17 21:15:35 lillukka snapd[1014]: storehelpers.go:436: cannot refresh: snap has no updates available: "core", "spotify" Jan 17 21:15:35 lillukka snapd[1014]: autorefresh.go:397: auto-refresh: all snaps are up-to-date Jan 17 21:15:37 lillukka kernel: [ 27.705069] BUG: kernel NULL pointer dereference, address: 00a8 Jan 17 21:15:37 lillukka kernel: [ 27.705166] #PF: supervisor read access in kernel mode Jan 17 21:15:37 lillukka kernel: [ 27.705229] #PF: error_code(0x) - not-present page Jan 17 21:15:37 lillukka kernel: [ 27.705289] PGD 0 P4D 0 Jan 17 21:15:37 lillukka kernel: [ 27.705327] Oops: [#1] PREEMPT SMP PTI Jan 17 21:15:37 lillukka kernel: [ 27.705381] CPU: 0 PID: 868 Comm: segctord Not tainted 5.3.0-28-lowlatency #30-Ubuntu Jan 17 21:15:37 lillukka kernel: [ 27.705469] Hardware name: Sony Corporation SVP1321C5E/VAIO, BIOS R0280V7 07/11/2013 Jan 17 21:15:37 lillukka kernel: [ 27.705568] RIP: 0010:percpu_counter_add_batch+0x13/0x80 Jan 17 21:15:37 lillukka kernel: [ 27.705631] Code: e0 41 5c 41 5d 41 5e 5d c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 55 41 54 49 89 fc 53 65 ff 05 b5 5c 4d 74 <48> 8b 47 20 48 63 ca 65 44 8b 28 49 63 dd 48 01 f3 48 39 d9 7e 0a Jan 17 21:15:37 lillukka kernel: [ 27.705833] RSP: 0018:bb6a409bbcb0 EFLAGS: 00010082 Jan 17 21:15:37 lillukka kernel: [ 27.705895] RAX: 0002 RBX: RCX: 0001 Jan 17 21:15:37 lillukka kernel: [ 27.705975] RDX: 0018 RSI: 0001 RDI: 0088 Jan 17 21:15:37 lillukka kernel: [ 27.706054] RBP: bb6a409bbcc8 R08: 9fb113c73218 R09: 0018 Jan 17 21:15:37 lillukka kernel: [ 27.706135] R10: 00030140 R11: 9fb113dd831d R12: 0088 Jan 17 21:15:37 lillukka kernel: [ 27.706216] R13: 9fb10b3c1798 R14: 9fb10b3c1908 R15: e2afc7e89fc0 Jan 17 21:15:37 lillukka kernel: [ 27.706298] FS: () GS:9fb11780() knlGS: Jan 17 21:15:37 lillukka kernel: [ 27.706389] CS: 0010 DS: ES: CR0: 80050033 Jan 17 21:15:37 lillukka kernel: [ 27.706456] CR2: 00a8 CR3: 00019880a001 CR4: 001606f0 Jan 17 21:15:37 lillukka kernel: [ 27.706536] Call Trace: Jan 17 21:15:37 lillukka kernel: [ 27.706579] __test_set_page_writeback+0x2f1/0x310 Jan 17 21:15:37 lillukka kernel: [ 27.706665] nilfs_segctor_do_construct+0xd13/0x1260 [nilfs2] Jan 17 21:15:37 lillukka kernel: [ 27.706734] ? __switch_to_asm+0x40/0x70 Jan 17 21:15:37 lillukka kernel: [ 27.706800] nilfs_segctor_construct+0x1ff/0x2f0 [nilfs2] Jan 17 21:15:37 lillukka kernel: [ 27.706876] nilfs_segctor_thread+0x136/0x3a0 [nilfs2] Jan 17 21:15:37 lillukka kernel: [ 27.706946] kthread+0x104/0x140 Jan 17 21:15:37 lillukka kernel: [ 27.706997] ? nilfs_segctor_construct+0x2f0/0x2f0 [nilfs2] Jan 17 21:15:37 lillukka kernel: [ 27.707067] ? kthread_park+0x80/0x80 Jan 17 21:15:37 lillukka kernel: [ 27.707114] ret_from_fork+0x35/0x40 Jan 17 21:15:37 lillukka kernel: [ 27.707161] Modules linked in: ccm rfcomm aufs overlay cmac bnep nilfs2 snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi ledtrig_audio snd_hda_intel pn544_mei mei_phy snd_hda_codec pn544 hci intel_rapl_msr snd_hda_core snd_hwdep nfc mei_hdcp snd_pcm snd_seq_midi snd_seq_midi_event intel_rapl_common snd_rawmidi x86_pkg_temp_thermal intel_powerclamp snd_seq coretemp iwlmvm uvcvideo snd_seq_device mac80211 libarc4 videobuf2_vmalloc snd_timer kvm videobuf2_memops videobuf2_v4l2 btusb iwlwifi btrtl btbcm btintel irqbypass videobuf2_common videodev intel_cstate snd joydev bluetooth intel_rapl_perf mc input_leds cfg80211 serio_raw ecdh_generic ecc mei_me mei soundcore mac_hid sony_laptop intel_smartconnect sch_fq_codel cuse parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs xor zstd_compress raid6_pq libcrc32c dm_crypt dm_mirror dm_region_hash dm_log crct10dif_pclmul crc32_pclmul ghash_clmulni_intel i915 aesni_intel i2c_algo_bit drm_kms_helper aes_x86_64 crypto_simd Jan 17 21:15:37 lillukka kernel: [ 27.707236] syscopyarea sysfillrect psmouse sysimgblt
[Kernel-packages] [Bug 1859979] [NEW] nilfs2 segctord kthread dies after which write to nilfs2 fs freezes the process writing
Public bug reported: With linux-image-5.3.0-26-lowlatency, segctord kthread encounters a "BUG: kernel NULL pointer dereference, address: 00a8" some half a minute from boot. Before that, one can log in to the system (/home is on a nilfs2 filesystem), but after the kernel BUG report, any write to a nilfs2 filesystem freezes the process trying to write, or any new login attempt freezes. This bug can be reproduced with every boot. With linux-image-5.3.0-24-lowlatency and earlier, this doesn't happen. Relevant excerpt from syslog: ... Jan 16 10:56:59 lillukka kernel: [0.00] Linux version 5.3.0-26-lowlatency (buildd@lgw01-amd64-013) (gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2)) #28-Ubuntu SMP PREEMPT Wed Dec 18 06:21:38 UTC 2019 (Ubuntu 5.3.0-26.28-lowlatency 5.3.13) ... Jan 16 10:57:13 lillukka kernel: [ 28.727753] BUG: kernel NULL pointer dereference, address: 00a8 Jan 16 10:57:13 lillukka kernel: [ 28.727852] #PF: supervisor read access in kernel mode Jan 16 10:57:13 lillukka kernel: [ 28.727914] #PF: error_code(0x) - not-present page Jan 16 10:57:13 lillukka kernel: [ 28.727974] PGD 0 P4D 0 Jan 16 10:57:13 lillukka kernel: [ 28.728012] Oops: [#1] PREEMPT SMP PTI Jan 16 10:57:13 lillukka kernel: [ 28.728067] CPU: 3 PID: 838 Comm: segctord Not tainted 5.3.0-26-lowlatency #28-Ubuntu Jan 16 10:57:13 lillukka kernel: [ 28.728156] Hardware name: Sony Corporation SVP1321C5E/VAIO, BIOS R0280V7 07/11/2013 Jan 16 10:57:13 lillukka kernel: [ 28.728257] RIP: 0010:percpu_counter_add_batch+0x13/0x80 Jan 16 10:57:13 lillukka kernel: [ 28.728334] Code: e0 41 5c 41 5d 41 5e 5d c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 55 41 54 49 89 fc 53 65 ff 05 b5 5c ed 72 <48> 8b 47 20 48 63 ca 65 44 8b 28 49 63 dd 48 01 f3 48 39 d9 7e 0a Jan 16 10:57:13 lillukka kernel: [ 28.728536] RSP: 0018:b582c02afcb0 EFLAGS: 00010082 Jan 16 10:57:13 lillukka kernel: [ 28.728598] RAX: 0002 RBX: RCX: 0001 Jan 16 10:57:13 lillukka kernel: [ 28.728679] RDX: 0018 RSI: 0001 RDI: 0088 Jan 16 10:57:13 lillukka kernel: [ 28.728760] RBP: b582c02afcc8 R08: 8f519357ab40 R09: 0018 Jan 16 10:57:13 lillukka kernel: [ 28.728841] R10: 00030140 R11: 8f5193609eea R12: 0088 Jan 16 10:57:13 lillukka kernel: [ 28.728920] R13: 8f518a3ee498 R14: 8f518a3ee608 R15: e52b07e5a200 Jan 16 10:57:13 lillukka kernel: [ 28.729001] FS: () GS:8f519798() knlGS: Jan 16 10:57:13 lillukka kernel: [ 28.729091] CS: 0010 DS: ES: CR0: 80050033 Jan 16 10:57:13 lillukka kernel: [ 28.729157] CR2: 00a8 CR3: 8d60a002 CR4: 001606e0 Jan 16 10:57:13 lillukka kernel: [ 28.729237] Call Trace: Jan 16 10:57:13 lillukka kernel: [ 28.729280] __test_set_page_writeback+0x2f1/0x310 Jan 16 10:57:13 lillukka kernel: [ 28.729362] nilfs_segctor_do_construct+0xd13/0x1260 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729432] ? __switch_to_asm+0x40/0x70 Jan 16 10:57:13 lillukka kernel: [ 28.729496] nilfs_segctor_construct+0x1ff/0x2f0 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729572] nilfs_segctor_thread+0x136/0x3a0 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729640] kthread+0x104/0x140 Jan 16 10:57:13 lillukka kernel: [ 28.729690] ? nilfs_segctor_construct+0x2f0/0x2f0 [nilfs2] Jan 16 10:57:13 lillukka kernel: [ 28.729760] ? kthread_park+0x80/0x80 Jan 16 10:57:13 lillukka kernel: [ 28.729807] ret_from_fork+0x35/0x40 Jan 16 10:57:13 lillukka kernel: [ 28.729854] Modules linked in: ccm rfcomm aufs overlay cmac bnep nilfs2 snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel pn544_mei mei_phy pn544 snd_hda_codec hci snd_hda_core snd_hwdep intel_rapl_msr mei_hdcp nfc snd_pcm snd_seq_midi snd_seq_midi_event intel_rapl_common x86_pkg_temp_thermal intel_powerclamp snd_rawmidi coretemp iwlmvm mac80211 snd_seq btusb btrtl libarc4 btbcm uvcvideo btintel kvm videobuf2_vmalloc iwlwifi videobuf2_memops bluetooth snd_seq_device videobuf2_v4l2 videobuf2_common irqbypass joydev input_leds intel_cstate videodev ecdh_generic snd_timer intel_rapl_perf ecc serio_raw mc mei_me cfg80211 mei snd soundcore sony_laptop mac_hid intel_smartconnect sch_fq_codel cuse parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs xor zstd_compress raid6_pq libcrc32c dm_crypt dm_mirror dm_region_hash dm_log crct10dif_pclmul i915 crc32_pclmul ghash_clmulni_intel i2c_algo_bit drm_kms_helper syscopyarea aesni_intel sysfillrect Jan 16 10:57:13 lillukka kernel: [ 28.729928] sysimgblt aes_x86_64 crypto_simd cryptd glue_helper psmouse ahci fb_sys_fops libahci i2c_i801 drm lpc_ich video Jan 16 10:57:13 lillukka kernel: [ 28.730961] CR2: 00a8 Jan 16 10:57:13 lillukka kernel: [ 28.731005]