audit: type=1400 audit(1574323676.242:98648): avc: denied { write } for pid=22487 comm="syz-executor.1" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 22524 Comm: syz-executor.2 Not tainted 4.9.141+ #23 task: ffff8801779fc740 task.stack: ffff8801a4aa0000 RIP: 0010:[] [] ebitmap_destroy+0x32/0x100 security/selinux/ss/ebitmap.c:331 RSP: 0018:ffff8801a4aa73d8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8801d4ff2dc0 RCX: ffffc9000233c000 RDX: 0000000000000001 RSI: ffffffff81a17f01 RDI: 0000000000000008 RBP: ffff8801a4aa73f8 R08: ffff8801779fcff0 R09: ffff8801a4aa7178 R10: ffffed0034954e22 R11: ffff8801a4aa7117 R12: 0000000000000000 R13: 1ffff10034954e87 R14: 0000000000000008 R15: ffff8801a4aa7498 FS: 0000000000000000(0000) GS:ffff8801db600000(0063) knlGS:00000000f5594b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000097a28e8 CR3: 000000016e550000 CR4: 00000000001606b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff8801d4ff2dc0 0000000000000000 1ffff10034954e87 00000000ffffffea ffff8801a4aa7418 ffffffff81a20997 ffff8801a4aa78f8 ffff8801d4ff2dc0 ffff8801a4aa74c0 ffffffff81a2124e ffff8801d0f74e70 0000000000000003 Call Trace: [] sens_destroy+0x47/0x90 security/selinux/ss/policydb.c:729 [] sens_read+0x1de/0x360 security/selinux/ss/policydb.c:1630 [] policydb_read+0xdba/0x2390 security/selinux/ss/policydb.c:2367 [] security_load_policy+0x264/0x9b0 security/selinux/ss/services.c:2067 [] sel_write_load+0x19b/0xfa0 security/selinux/selinuxfs.c:522 [] __vfs_write+0x115/0x580 fs/read_write.c:507 [] vfs_write+0x187/0x520 fs/read_write.c:557 [] SYSC_write fs/read_write.c:604 [inline] [] SyS_write+0xd9/0x1c0 fs/read_write.c:596 [] do_syscall_32_irqs_on arch/x86/entry/common.c:328 [inline] [] do_fast_syscall_32+0x2f1/0xa10 arch/x86/entry/common.c:390 [] entry_SYSENTER_compat+0x90/0xa2 arch/x86/entry/entry_64_compat.S:137 Code: 89 fe 41 55 41 54 53 e8 6d 3b 90 ff 4d 85 f6 0f 84 a6 00 00 00 e8 5f 3b 90 ff 4c 89 f2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 a5 00 00 00 49 8b 1e 48 85 db 74 32 49 bd 00 RIP [] ebitmap_destroy+0x32/0x100 security/selinux/ss/ebitmap.c:331 RSP ---[ end trace 72dbc01a396ea399 ]---