Bug 197209 - Kernel freeze during I/O
Summary: Kernel freeze during I/O
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: x86-64 (show other bugs)
Hardware: x86-64 Linux
: P1 high
Assignee: platform_x86_64@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-12 16:52 UTC by Dmitrii Tcvetkov
Modified: 2017-10-15 11:03 UTC (History)
0 users

See Also:
Kernel Version: 4.14-rc1+
Subsystem:
Regression: No
Bisected commit-id:


Attachments
bisect.log (2.79 KB, text/plain)
2017-10-12 19:05 UTC, Dmitrii Tcvetkov
Details
Fix (9.09 KB, patch)
2017-10-13 09:57 UTC, Dmitrii Tcvetkov
Details | Diff

Description Dmitrii Tcvetkov 2017-10-12 16:52:52 UTC
During active I/O (linux kernel compilation reproduces the issue) machine fully freezes, no log messages in /dev/tty0, /dev/ttyS0 and netconsole, no ARP answers over network. 

Bisecting results:
 There are only 'skip'ped commits left to test.
 The first bad commit could be any of:
 43858b4f25cf0adc5c2ca9cf5ce5fdf2532941e5
 94b1b03b519b81c494900cb112aa00ed205cc2d9
 cba4671af7550e008f7a7835f06df0763825bf3e
 We cannot bisect more

I had to `git bisect skip` these commits because kernel didn't compile:
43858b4f25cf0adc5c2ca9cf5ce5fdf2532941e5
94b1b03b519b81c494900cb112aa00ed205cc2d9

I can't revert them without conflicts, commit 43858b4f25cf0adc5c2ca9cf5ce5fdf2532941e5 can be reverted but kernel doesn't build without it.

I encountered this issue only on one machine, 4.13 and earlier kernels are working fine on this machine.

Machine:
CPU: AMD FX-9590
RAM: non-ECC DDR3 12 Gb
Video: AMD rx480
Persistent storage layout:
3. Btrfs
2. LVM
1. LUKS
0. HDD

Btrfs is not multidevice.
Comment 1 Dmitrii Tcvetkov 2017-10-12 19:05:04 UTC
Created attachment 258809 [details]
bisect.log

Turns out compile errors were introduced by me, redid bisecting and now narrowed it down to commit 94b1b03b519b81c494900cb112aa00ed205cc2d9

Reverting the commit still produces conflicts which I don't know how to resolve correctly.
Comment 2 Dmitrii Tcvetkov 2017-10-13 09:55:10 UTC
There is a patch for current linux mainline which fixes the issue:
https://marc.info/?l=linux-kernel&m=150756861022239&w=2
Comment 3 Dmitrii Tcvetkov 2017-10-13 09:57:09 UTC
Created attachment 258815 [details]
Fix
Comment 4 Dmitrii Tcvetkov 2017-10-15 11:03:33 UTC
Patch merged in mainline, commit: b956575bed91ecfb136a8300742ecbbf451471ab

Note You need to log in before you can comment on or make changes to this bug.