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: 1 PID: 24837 Comm: syz-executor024 Not tainted 4.9.148+ #3 task: ffff8801d5da8000 task.stack: ffff8801c3b38000 RIP: 0010:[] [] ebitmap_destroy+0x32/0xe0 security/selinux/ss/ebitmap.c:331 RSP: 0018:ffff8801c3b3f5e8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 1ffff10038767ec9 RCX: ffff8801d5da88b0 RDX: 0000000000000001 RSI: ffffffff81a1aed1 RDI: 0000000000000008 RBP: ffff8801c3b3f608 R08: ffff8801c3b3f390 R09: ffff8801d5da8920 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801d9f30ce0 R13: 0000000000000008 R14: 00000000ffffffea R15: ffff8801c3b3f6a8 FS: 00007fa771ea4700(0000) GS:ffff8801db700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffd4d59fe8 CR3: 00000001d3bdb000 CR4: 00000000001606b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: 1ffff10038767ec9 ffff8801d9f30ce0 0000000000000000 00000000ffffffea ffff8801c3b3f628 ffffffff81a23789 ffff8801c3b3f9d0 ffff8801d9f30ce0 ffff8801c3b3f6d0 ffffffff81a24073 00000007830d0420 ffff8801d6e50510 Call Trace: [] sens_destroy+0x49/0xa0 security/selinux/ss/policydb.c:729 [] sens_read+0x1d3/0x350 security/selinux/ss/policydb.c:1630 [] policydb_read+0xc44/0x2250 security/selinux/ss/policydb.c:2367 [] security_load_policy+0x23c/0x9c0 security/selinux/ss/services.c:2067 [] sel_write_load+0x17f/0xf60 security/selinux/selinuxfs.c:522 [] __vfs_write+0x116/0x560 fs/read_write.c:507 [] vfs_write+0x185/0x520 fs/read_write.c:557 [] SYSC_write fs/read_write.c:604 [inline] [] SyS_write+0xdc/0x1c0 fs/read_write.c:596 [] do_syscall_64+0x1ad/0x570 arch/x86/entry/common.c:285 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Code: 55 49 89 fd 41 54 53 e8 6d 04 90 ff 4d 85 ed 0f 84 92 00 00 00 e8 5f 04 90 ff 4c 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 91 00 00 00 49 be 00 00 00 00 00 fc ff df 4d RIP [] ebitmap_destroy+0x32/0xe0 security/selinux/ss/ebitmap.c:331 RSP ---[ end trace aafeb8db3d59409e ]---