One of LTP tests triggered kernel hang caused by incorrect
fanotify permission events handling.
Upstream fixes are available, but not yet backported.
- Kernel crashes should be fixed by:
96d41019e3ac “fanotify: fix list corruption in fanotify_get_response()”
- Kernel hangs should be fixed by:
05f0e38724e8 “fanotify: Release SRCU lock when waiting for userspace response”
Disable this feature for now.
Change-Id: I362fafa15b573aa6e1a907e2da25cef8c28dca68
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6514
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Tested-by: michellew <michellew@vmware.com>
Reviewed-by: Srivatsa S. Bhat <srivatsab@vmware.com>
| ... | ... |
@@ -3767,7 +3767,7 @@ CONFIG_FSNOTIFY=y |
| 3767 | 3767 |
CONFIG_DNOTIFY=y |
| 3768 | 3768 |
CONFIG_INOTIFY_USER=y |
| 3769 | 3769 |
CONFIG_FANOTIFY=y |
| 3770 |
-CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y |
|
| 3770 |
+# CONFIG_FANOTIFY_ACCESS_PERMISSIONS is not set |
|
| 3771 | 3771 |
CONFIG_QUOTA=y |
| 3772 | 3772 |
CONFIG_QUOTA_NETLINK_INTERFACE=y |
| 3773 | 3773 |
# CONFIG_PRINT_QUOTA_WARNING is not set |
| ... | ... |
@@ -2,7 +2,7 @@ |
| 2 | 2 |
Summary: Kernel |
| 3 | 3 |
Name: linux |
| 4 | 4 |
Version: 4.4.164 |
| 5 |
-Release: 3%{?kat_build:.%kat_build}%{?dist}
|
|
| 5 |
+Release: 4%{?kat_build:.%kat_build}%{?dist}
|
|
| 6 | 6 |
License: GPLv2 |
| 7 | 7 |
URL: http://www.kernel.org/ |
| 8 | 8 |
Group: System Environment/Kernel |
| ... | ... |
@@ -281,17 +281,17 @@ find %{buildroot}/lib/modules -name '*.ko' -print0 | xargs -0 chmod u+x
|
| 281 | 281 |
make -C tools JOBS=1 DESTDIR=%{buildroot} prefix=%{_prefix} perf_install
|
| 282 | 282 |
|
| 283 | 283 |
%post |
| 284 |
-/sbin/depmod -aq %{uname_r}
|
|
| 284 |
+/sbin/depmod -a %{uname_r}
|
|
| 285 | 285 |
ln -sf %{name}-%{uname_r}.cfg /boot/photon.cfg
|
| 286 | 286 |
|
| 287 | 287 |
%post drivers-gpu |
| 288 |
-/sbin/depmod -aq %{uname_r}
|
|
| 288 |
+/sbin/depmod -a %{uname_r}
|
|
| 289 | 289 |
|
| 290 | 290 |
%post sound |
| 291 |
-/sbin/depmod -aq %{uname_r}
|
|
| 291 |
+/sbin/depmod -a %{uname_r}
|
|
| 292 | 292 |
|
| 293 | 293 |
%post oprofile |
| 294 |
-/sbin/depmod -aq %{uname_r}
|
|
| 294 |
+/sbin/depmod -a %{uname_r}
|
|
| 295 | 295 |
|
| 296 | 296 |
%files |
| 297 | 297 |
%defattr(-,root,root) |
| ... | ... |
@@ -338,6 +338,9 @@ ln -sf %{name}-%{uname_r}.cfg /boot/photon.cfg
|
| 338 | 338 |
/usr/share/perf-core |
| 339 | 339 |
|
| 340 | 340 |
%changelog |
| 341 |
+* Tue Jan 15 2019 Alexey Makhalov <amakhalov@vmware.com> 4.4.164-4 |
|
| 342 |
+- .config: disable CONFIG_FANOTIFY_ACCESS_PERMISSIONS |
|
| 343 |
+- Removed deprecated -q option for depmod |
|
| 341 | 344 |
* Thu Dec 20 2018 Alexey Makhalov <amakhalov@vmware.com> 4.4.164-3 |
| 342 | 345 |
- .config: CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y |
| 343 | 346 |
* Wed Dec 12 2018 Kamal Charan <kcharan@vmware.com> 4.4.164-2 |