Hello,
It OOPSed after loading loop.ko and again after I renamed loop.ko.
Here is the netconsole output after loop.ko was loaded (with CONFIG GRKERNSEC/PAX options below that):
Sep 1 00:03:23 pc101 [ 6.158841] PAX: swapper/0:0, uid/euid: 0/0, attempted to modify kernel code
Sep 1 00:03:23 pc101 [ 6.159601] BUG: unable to handle kernel
Sep 1 00:03:23 pc101 paging request
Sep 1 00:03:23 pc101 at c16a2000
Sep 1 00:03:23 pc101 [ 6.160382] IP:
Sep 1 00:03:23 pc101 [<003134f2>] llist_add_batch+0x12/0x30
Sep 1 00:03:23 pc101 [ 6.161107] *pdpt = 0000000003ad4001
Sep 1 00:03:23 pc101 *pde = 000000003592d063
Sep 1 00:03:23 pc101 *pte = 00000000016a2161
Sep 1 00:03:23 pc101
Sep 1 00:03:23 pc101 [ 6.161846] Oops: 0003 [#1] SMP
Sep 1 00:03:23 pc101 [ 6.162567] Modules linked in:
Sep 1 00:03:23 pc101 loop
Sep 1 00:03:23 pc101
Sep 1 00:03:23 pc101 [ 6.163316] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.7.2-grsec-smp #201608312326
Sep 1 00:03:23 pc101 [ 6.164040] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
Sep 1 00:03:23 pc101 [ 6.164800] task: c3c04980 ti: c3c04e58 task.ti: c3c04e58
Sep 1 00:03:23 pc101 [ 6.168426] EIP: 0060:[<003134f2>] EFLAGS: 00010282 CPU: 0
Sep 1 00:03:23 pc101 [ 6.170240] EAX: c16a2000 EBX: 00000000 ECX: f65d6ed0 EDX: c16a2000
Sep 1 00:03:23 pc101 [ 6.171541] ESI: c16a2000 EDI: 4d7b25f1 EBP: f6011f10 ESP: f6011f08
Sep 1 00:03:23 pc101 [ 6.172292] DS: 0068 ES: 0068 FS: 00d8 GS: 0000 SS: 0068
Sep 1 00:03:23 pc101 [ 6.173042] CR0: 80050033 CR2: c16a2000 CR3: 03ad9000 CR4: 000406f0
Sep 1 00:03:23 pc101 [ 6.173799] Stack:
Sep 1 00:03:23 pc101 [ 6.174554] c16a2000
Sep 1 00:03:23 pc101 f65d6ed0
Sep 1 00:03:23 pc101 f6011f20
Sep 1 00:03:23 pc101 0013d4f7
Sep 1 00:03:23 pc101 f614e9d0
Sep 1 00:03:23 pc101 41f3d8c6
Sep 1 00:03:23 pc101 f6011f28
Sep 1 00:03:23 pc101 0003f978
Sep 1 00:03:23 pc101
Sep 1 00:03:23 pc101 [ 6.175403] f6011f34
Sep 1 00:03:23 pc101 000c5106
Sep 1 00:03:23 pc101 f5932b40
Sep 1 00:03:23 pc101 f6011fcc
Sep 1 00:03:23 pc101 000a87dc
Sep 1 00:03:23 pc101 c56f0c45
Sep 1 00:03:23 pc101 377aa67a
Sep 1 00:03:23 pc101 f65d95c0
Sep 1 00:03:23 pc101
Sep 1 00:03:23 pc101 [ 6.176248] ed63b592
Sep 1 00:03:23 pc101 f5142267
Sep 1 00:03:23 pc101 f61b3ac8
Sep 1 00:03:23 pc101 62c135b8
Sep 1 00:03:23 pc101 a56410df
Sep 1 00:03:23 pc101 5f286401
Sep 1 00:03:23 pc101 8d3e6a5c
Sep 1 00:03:23 pc101 c3c04980
Sep 1 00:03:23 pc101
Sep 1 00:03:23 pc101 [ 6.177175] Call Trace:
Sep 1 00:03:23 pc101 [ 6.178011] [<0013d4f7>] vunmap+0x47/0x60
Sep 1 00:03:23 pc101 [ 6.178805] [<0003f978>] module_memfree_exec+0x8/0x10
Sep 1 00:03:23 pc101 [ 6.179586] [<000c5106>] do_free_init+0x16/0x30
Sep 1 00:03:23 pc101 [ 6.180349] [<000a87dc>] rcu_process_callbacks+0x53c/0xa90
Sep 1 00:03:23 pc101 [ 6.181102] [<000ad763>] ? run_timer_softirq+0x63/0x430
Sep 1 00:03:23 pc101 [ 6.181835] [<000592c0>] __do_softirq+0xc0/0x1b0
Sep 1 00:03:23 pc101 [ 6.182577] [<00200000>] ? ext4_ext_zeroout+0x10/0x30
Sep 1 00:03:23 pc101 [ 6.183313] [<00059200>] ? cpu_callback+0x140/0x140
Sep 1 00:03:23 pc101 [ 6.184035] [<0001a516>] do_softirq_own_stack+0x26/0x40
Sep 1 00:03:23 pc101 [ 6.184321] <IRQ>
Sep 1 00:03:23 pc101
Sep 1 00:03:23 pc101 [ 6.184321] [<000594e5>] irq_exit+0x95/0xa0
Sep 1 00:03:23 pc101 [ 6.186323] [<0003a323>] smp_trace_apic_timer_interrupt+0x53/0x80
Sep 1 00:03:23 pc101 [ 6.187033] [<0003a358>] smp_apic_timer_interrupt+0x8/0x10
Sep 1 00:03:23 pc101 [ 6.187741] [<00695039>] apic_timer_interrupt+0x39/0x40
Sep 1 00:03:23 pc101 [ 6.192632] [<00021515>] ? default_idle+0x5/0x10
Sep 1 00:03:23 pc101 [ 6.193332] [<000219c9>] arch_cpu_idle+0x9/0x10
Sep 1 00:03:23 pc101 [ 6.194019] [<00091919>] default_idle_call+0x19/0x30
Sep 1 00:03:23 pc101 [ 6.194806] [<00091abc>] cpu_startup_entry+0x18c/0x1d0
Sep 1 00:03:23 pc101 [ 6.195509] [<0068e9e2>] rest_init+0x62/0x70
Sep 1 00:03:23 pc101 [ 6.196221] [<02e099b0>] 0x2e099b0
Sep 1 00:03:23 pc101 [ 6.196892] [<02e082fd>] 0x2e082fd
Sep 1 00:03:23 pc101 [ 6.197580] [<00020800>] ? native_calibrate_tsc+0x2e0/0x5f0
Sep 1 00:03:23 pc101 [ 6.198254] [<0008f800>] ? __dequeue_dl_entity+0xf0/0x150
Sep 1 00:03:23 pc101 [ 6.198917] Code:
Sep 1 00:03:23 pc101 db
Sep 1 00:03:23 pc101 8d
Sep 1 00:03:23 pc101 04
Sep 1 00:03:23 pc101 19
Sep 1 00:03:23 pc101 5b
Sep 1 00:03:23 pc101 5d
Sep 1 00:03:23 pc101 c3
Sep 1 00:03:23 pc101 66
Sep 1 00:03:23 pc101 90
Sep 1 00:03:23 pc101 31
Sep 1 00:03:23 pc101 c0
Sep 1 00:03:23 pc101 c3
Sep 1 00:03:23 pc101 90
Sep 1 00:03:23 pc101 8d
Sep 1 00:03:23 pc101 74
Sep 1 00:03:23 pc101 26
Sep 1 00:03:23 pc101 00
Sep 1 00:03:23 pc101 89
Sep 1 00:03:23 pc101 d0
Sep 1 00:03:23 pc101 5b
Sep 1 00:03:23 pc101 5d
Sep 1 00:03:23 pc101 c3
Sep 1 00:03:23 pc101 66
Sep 1 00:03:23 pc101 90
Sep 1 00:03:23 pc101 90
Sep 1 00:03:23 pc101 55
Sep 1 00:03:23 pc101 89
Sep 1 00:03:23 pc101 e5
Sep 1 00:03:23 pc101 56
Sep 1 00:03:23 pc101 53
Sep 1 00:03:23 pc101 89
Sep 1 00:03:23 pc101 c6
Sep 1 00:03:23 pc101 89
Sep 1 00:03:23 pc101 f6
Sep 1 00:03:23 pc101 8d
Sep 1 00:03:23 pc101 bc
Sep 1 00:03:23 pc101 27
Sep 1 00:03:23 pc101 00
Sep 1 00:03:23 pc101 last message repeated 3 times
Sep 1 00:03:23 pc101 8b
Sep 1 00:03:23 pc101 19
Sep 1 00:03:23 pc101 <89>
Sep 1 00:03:23 pc101 1a
Sep 1 00:03:23 pc101 89
Sep 1 00:03:23 pc101 d8
Sep 1 00:03:23 pc101 f0
Sep 1 00:03:23 pc101 0f
Sep 1 00:03:23 pc101 b1
Sep 1 00:03:23 pc101 31
Sep 1 00:03:23 pc101 39
Sep 1 00:03:23 pc101 c3
Sep 1 00:03:23 pc101 75
Sep 1 00:03:23 pc101 f2
Sep 1 00:03:23 pc101 85
Sep 1 00:03:23 pc101 db
Sep 1 00:03:23 pc101 0f
Sep 1 00:03:23 pc101 94
Sep 1 00:03:23 pc101 c0
Sep 1 00:03:23 pc101 5b
Sep 1 00:03:23 pc101 5e
Sep 1 00:03:23 pc101 5d
Sep 1 00:03:23 pc101 c3
Sep 1 00:03:23 pc101
Sep 1 00:03:23 pc101 [ 6.200851] EIP: [<003134f2>]
Sep 1 00:03:23 pc101 llist_add_batch+0x12/0x30
Sep 1 00:03:23 pc101 SS:ESP 0068:f6011f08
Sep 1 00:03:23 pc101 [ 6.201606] CR2: 00000000c16a2000
Sep 1 00:03:23 pc101 [ 6.202331] ---[ end trace 5d83e37e52ab7744 ]---
Sep 1 00:03:23 pc101 [ 6.203057] Kernel panic - not syncing: Fatal exception in interrupt
Sep 1 00:03:23 pc101 [ 6.203901] Kernel Offset: disabled
Sep 1 00:03:23 pc101 [ 6.204246] ---[ end Kernel panic - not syncing: Fatal exception in interrupt
--------------------------------------
GRKERNSEC/PAX lines from kernel config:
CONFIG_PAX_PER_CPU_PGD=y
CONFIG_PAX_USERCOPY_SLABS=y
CONFIG_GRKERNSEC=y
CONFIG_GRKERNSEC_CONFIG_AUTO=y
# CONFIG_GRKERNSEC_CONFIG_CUSTOM is not set
CONFIG_GRKERNSEC_CONFIG_SERVER=y
# CONFIG_GRKERNSEC_CONFIG_DESKTOP is not set
# CONFIG_GRKERNSEC_CONFIG_VIRT_NONE is not set
CONFIG_GRKERNSEC_CONFIG_VIRT_GUEST=y
# CONFIG_GRKERNSEC_CONFIG_VIRT_HOST is not set
# CONFIG_GRKERNSEC_CONFIG_VIRT_EPT is not set
CONFIG_GRKERNSEC_CONFIG_VIRT_SOFT=y
# CONFIG_GRKERNSEC_CONFIG_VIRT_XEN is not set
# CONFIG_GRKERNSEC_CONFIG_VIRT_VMWARE is not set
# CONFIG_GRKERNSEC_CONFIG_VIRT_KVM is not set
CONFIG_GRKERNSEC_CONFIG_VIRT_VIRTUALBOX=y
# CONFIG_GRKERNSEC_CONFIG_VIRT_HYPERV is not set
# CONFIG_GRKERNSEC_CONFIG_PRIORITY_PERF is not set
CONFIG_GRKERNSEC_CONFIG_PRIORITY_SECURITY=y
CONFIG_GRKERNSEC_PROC_GID=756
CONFIG_GRKERNSEC_TPE_UNTRUSTED_GID=1005
CONFIG_GRKERNSEC_SYMLINKOWN_GID=1006
CONFIG_PAX=y
# CONFIG_PAX_SOFTMODE is not set
# CONFIG_PAX_EI_PAX is not set
# CONFIG_PAX_PT_PAX_FLAGS is not set
CONFIG_PAX_XATTR_PAX_FLAGS=y
# CONFIG_PAX_NO_ACL_FLAGS is not set
CONFIG_PAX_HAVE_ACL_FLAGS=y
# CONFIG_PAX_HOOK_ACL_FLAGS is not set
CONFIG_PAX_NOEXEC=y
CONFIG_PAX_PAGEEXEC=y
# CONFIG_PAX_EMUTRAMP is not set
CONFIG_PAX_MPROTECT=y
# CONFIG_PAX_MPROTECT_COMPAT is not set
# CONFIG_PAX_ELFRELOCS is not set
CONFIG_PAX_KERNEXEC=y
CONFIG_PAX_KERNEXEC_PLUGIN=y
# CONFIG_PAX_KERNEXEC_PLUGIN_METHOD_NONE is not set
CONFIG_PAX_KERNEXEC_PLUGIN_METHOD_BTS=y
# CONFIG_PAX_KERNEXEC_PLUGIN_METHOD_OR is not set
CONFIG_PAX_ASLR=y
CONFIG_PAX_RANDKSTACK=y
CONFIG_PAX_RANDUSTACK=y
CONFIG_PAX_RANDMMAP=y
CONFIG_PAX_MEMORY_SANITIZE=y
CONFIG_PAX_MEMORY_STACKLEAK=y
CONFIG_PAX_MEMORY_STRUCTLEAK=y
CONFIG_PAX_MEMORY_UDEREF=y
CONFIG_PAX_REFCOUNT=y
CONFIG_PAX_CONSTIFY_PLUGIN=y
CONFIG_PAX_USERCOPY=y
# CONFIG_PAX_USERCOPY_DEBUG is not set
CONFIG_PAX_SIZE_OVERFLOW=y
CONFIG_PAX_LATENT_ENTROPY=y
# CONFIG_PAX_RAP is not set
CONFIG_GRKERNSEC_KMEM=y
CONFIG_GRKERNSEC_IO=y
CONFIG_GRKERNSEC_BPF_HARDEN=y
CONFIG_GRKERNSEC_PERF_HARDEN=y
CONFIG_GRKERNSEC_RAND_THREADSTACK=y
CONFIG_GRKERNSEC_PROC_MEMMAP=y
CONFIG_GRKERNSEC_KSTACKOVERFLOW=y
# CONFIG_GRKERNSEC_BRUTE is not set
CONFIG_GRKERNSEC_MODHARDEN=y
CONFIG_GRKERNSEC_HIDESYM=y
CONFIG_GRKERNSEC_RANDSTRUCT=y
# CONFIG_GRKERNSEC_RANDSTRUCT_PERFORMANCE is not set
CONFIG_GRKERNSEC_KERN_LOCKOUT=y
CONFIG_GRKERNSEC_NO_RBAC=y
# CONFIG_GRKERNSEC_ACL_HIDEKERN is not set
CONFIG_GRKERNSEC_ACL_MAXTRIES=3
CONFIG_GRKERNSEC_ACL_TIMEOUT=30
CONFIG_GRKERNSEC_PROC=y
# CONFIG_GRKERNSEC_PROC_USER is not set
CONFIG_GRKERNSEC_PROC_USERGROUP=y
CONFIG_GRKERNSEC_PROC_ADD=y
CONFIG_GRKERNSEC_LINK=y
CONFIG_GRKERNSEC_SYMLINKOWN=y
CONFIG_GRKERNSEC_FIFO=y
CONFIG_GRKERNSEC_SYSFS_RESTRICT=y
# CONFIG_GRKERNSEC_ROFS is not set
CONFIG_GRKERNSEC_DEVICE_SIDECHANNEL=y
CONFIG_GRKERNSEC_CHROOT=y
CONFIG_GRKERNSEC_CHROOT_MOUNT=y
CONFIG_GRKERNSEC_CHROOT_DOUBLE=y
CONFIG_GRKERNSEC_CHROOT_PIVOT=y
CONFIG_GRKERNSEC_CHROOT_CHDIR=y
CONFIG_GRKERNSEC_CHROOT_CHMOD=y
CONFIG_GRKERNSEC_CHROOT_FCHDIR=y
CONFIG_GRKERNSEC_CHROOT_MKNOD=y
CONFIG_GRKERNSEC_CHROOT_SHMAT=y
CONFIG_GRKERNSEC_CHROOT_UNIX=y
CONFIG_GRKERNSEC_CHROOT_FINDTASK=y
CONFIG_GRKERNSEC_CHROOT_NICE=y
CONFIG_GRKERNSEC_CHROOT_SYSCTL=y
CONFIG_GRKERNSEC_CHROOT_RENAME=y
CONFIG_GRKERNSEC_CHROOT_CAPS=y
CONFIG_GRKERNSEC_CHROOT_INITRD=y
# CONFIG_GRKERNSEC_AUDIT_GROUP is not set
# CONFIG_GRKERNSEC_EXECLOG is not set
CONFIG_GRKERNSEC_RESLOG=y
# CONFIG_GRKERNSEC_CHROOT_EXECLOG is not set
# CONFIG_GRKERNSEC_AUDIT_PTRACE is not set
# CONFIG_GRKERNSEC_AUDIT_CHDIR is not set
# CONFIG_GRKERNSEC_AUDIT_MOUNT is not set
CONFIG_GRKERNSEC_SIGNAL=y
# CONFIG_GRKERNSEC_FORKFAIL is not set
CONFIG_GRKERNSEC_TIME=y
CONFIG_GRKERNSEC_PROC_IPADDR=y
CONFIG_GRKERNSEC_RWXMAP_LOG=y
CONFIG_GRKERNSEC_DMESG=y
CONFIG_GRKERNSEC_HARDEN_PTRACE=y
CONFIG_GRKERNSEC_PTRACE_READEXEC=y
CONFIG_GRKERNSEC_SETXID=y
CONFIG_GRKERNSEC_HARDEN_IPC=y
CONFIG_GRKERNSEC_HARDEN_TTY=y
CONFIG_GRKERNSEC_TPE=y
# CONFIG_GRKERNSEC_TPE_ALL is not set
# CONFIG_GRKERNSEC_TPE_INVERT is not set
CONFIG_GRKERNSEC_TPE_GID=1005
CONFIG_GRKERNSEC_BLACKHOLE=y
CONFIG_GRKERNSEC_NO_SIMULT_CONNECT=y
# CONFIG_GRKERNSEC_SOCKET is not set
CONFIG_GRKERNSEC_DENYUSB=y
# CONFIG_GRKERNSEC_DENYUSB_FORCE is not set
CONFIG_GRKERNSEC_SYSCTL=y
# CONFIG_GRKERNSEC_SYSCTL_DISTRO is not set
CONFIG_GRKERNSEC_SYSCTL_ON=y
CONFIG_GRKERNSEC_FLOODTIME=10
CONFIG_GRKERNSEC_FLOODBURST=6