ucma_write: process 302 (syz-executor6) changed security contexts after opening file descriptor, this is not allowed. list_add corruption. prev->next should be next (ffffffff89edf8f0), but was 0000000000000000. (prev=ffff8801a40d29e0). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:28! invalid opcode: 0000 [#1] SMP PTI CPU: 0 PID: 7411 Comm: syz-executor6 Not tainted 4.19.0-rc1+ #40 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__list_add_valid+0x43c/0x450 lib/list_debug.c:26 Code: 0c 00 00 00 00 00 00 41 c7 87 20 03 00 00 00 00 00 00 48 c7 c7 7b 08 91 89 31 c0 4c 89 e6 4c 89 ea 48 8b 4d c0 e8 84 7b 0c fd <0f> 0b 66 90 eb fe 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00 55 48 RSP: 0018:ffff880126dbfa80 EFLAGS: 00010286 RAX: 0000000000000075 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000002173 RDI: 0000000000002174 RBP: ffff880126dbfae8 R08: 0000000000480020 R09: 0000000000000002 R10: 0000000000000000 R11: ffffffff854248c0 R12: ffffffff89edf8f0 R13: 0000000000000000 R14: 0000000000000000 R15: ffff880129594400 FS: 00007ff56c5e8700(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4f2c701300 CR3: 00000001a0aae000 CR4: 00000000001406f0 Call Trace: __list_add include/linux/list.h:60 [inline] list_add_tail include/linux/list.h:93 [inline] cma_listen_on_all drivers/infiniband/core/cma.c:2364 [inline] rdma_listen+0x790/0x1100 drivers/infiniband/core/cma.c:3381 ucma_listen+0x4fa/0x630 drivers/infiniband/core/ucma.c:1096 ucma_write+0x594/0x600 drivers/infiniband/core/ucma.c:1680 netlink: 'syz-executor3': attribute type 2 has an invalid length. __vfs_write+0x1a8/0xa50 fs/read_write.c:485 vfs_write+0x495/0x8e0 fs/read_write.c:549 ksys_write fs/read_write.c:598 [inline] __do_sys_write fs/read_write.c:610 [inline] __se_sys_write+0x173/0x350 fs/read_write.c:607 __x64_sys_write+0x4a/0x70 fs/read_write.c:607 do_syscall_64+0xb8/0x100 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x457099 Code: fd b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 netlink: 'syz-executor3': attribute type 2 has an invalid length. RSP: 002b:00007ff56c5e7c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff56c5e86d4 RCX: 0000000000457099 RDX: 0000000000000010 RSI: 0000000020000440 RDI: 0000000000000003 RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004d7c68 R14: 00000000004ca9bf R15: 0000000000000000 Modules linked in: Dumping ftrace buffer: (ftrace buffer empty) ---[ end trace a1c2cd811dc12df6 ]--- RIP: 0010:__list_add_valid+0x43c/0x450 lib/list_debug.c:26 Code: 0c 00 00 00 00 00 00 41 c7 87 20 03 00 00 00 00 00 00 48 c7 c7 7b 08 91 89 31 c0 4c 89 e6 4c 89 ea 48 8b 4d c0 e8 84 7b 0c fd <0f> 0b 66 90 eb fe 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00 55 48 RSP: 0018:ffff880126dbfa80 EFLAGS: 00010286 RAX: 0000000000000075 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000002173 RDI: 0000000000002174 RBP: ffff880126dbfae8 R08: 0000000000480020 R09: 0000000000000002 R10: 0000000000000000 R11: ffffffff854248c0 R12: ffffffff89edf8f0 R13: 0000000000000000 R14: 0000000000000000 R15: ffff880129594400 FS: 00007ff56c5e8700(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4f2c701300 CR3: 00000001a0aae000 CR4: 00000000001406f0