syzbot


BUG: corrupted list in vzalloc

Status: auto-closed as invalid on 2021/12/22 21:57
Reported-by: syzbot+ad335a372e7ca7537fd3@syzkaller.appspotmail.com
First crash: 1262d, last: 1197d

Sample crash report:
0 pages cma reserved
syz-executor.0: vmalloc: allocation failure: 8589934608 bytes, mode:0x6080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null)
list_del corruption, ffff888031957738->next is LIST_POISON1 (dead000000000100)
------------[ cut here ]------------
syz-executor.0 cpuset=/ mems_allowed=0-1
kernel BUG at lib/list_debug.c:45!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 26967 Comm: syz-executor.1 Not tainted 4.19.204-syzkaller #0
CPU: 0 PID: 26952 Comm: syz-executor.0 Not tainted 4.19.204-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid.cold+0x23/0x4a lib/list_debug.c:45
Call Trace:
Code: e8 ca 42 f7 ff 0f 0b 48 89 ee 48 c7 c7 40 e3 b3 88 e8 b9 42 f7 ff 0f 0b 4c 89 ea 48 89 ee 48 c7 c7 80 e2 b3 88 e8 a5 42 f7 ff <0f> 0b 4c 89 e2 48 89 ee 48 c7 c7 e0 e2 b3 88 e8 91 42 f7 ff 0f 0b
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
RSP: 0000:ffff888031957610 EFLAGS: 00010086
 warn_alloc.cold+0x7b/0x18f mm/page_alloc.c:3457
RAX: 000000000000004e RBX: ffff888031957720 RCX: 0000000000000000
RDX: 000000000001433c RSI: ffffffff814e0d61 RDI: ffffed100632aeb4
RBP: ffff888031957738 R08: 000000000000004e R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: dead000000000200
R13: dead000000000100 R14: ffff888031957740 R15: 0000000000000007
FS:  00007f7a34874700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
 __vmalloc_node_range mm/vmalloc.c:1775 [inline]
 __vmalloc_node mm/vmalloc.c:1804 [inline]
 __vmalloc_node_flags mm/vmalloc.c:1818 [inline]
 vzalloc+0x15c/0x1a0 mm/vmalloc.c:1857
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 ip_set_alloc+0x8a/0xd0 net/netfilter/ipset/ip_set_core.c:265
CR2: 00007f8f94eb2018 CR3: 0000000097899000 CR4: 00000000001406e0
 hash_ip_create+0x49d/0xec0 net/netfilter/ipset/ip_set_hash_gen.h:1286
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 ip_set_create+0x6b4/0x1370 net/netfilter/ipset/ip_set_core.c:941
Call Trace:
 __list_del_entry include/linux/list.h:117 [inline]
 list_del include/linux/list.h:125 [inline]
 __remove_wait_queue include/linux/wait.h:184 [inline]
 remove_wait_queue+0x2c/0x180 kernel/sched/wait.c:44
 nfnetlink_rcv_msg+0xc4f/0xf60 net/netfilter/nfnetlink.c:233
 tipc_send_group_bcast+0x317/0xa10 net/tipc/socket.c:1022
 __tipc_sendmsg+0xa2b/0x1320 net/tipc/socket.c:1314
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2457
 tipc_sendmsg+0x4c/0x70 net/tipc/socket.c:1279
 nfnetlink_rcv+0x1b2/0x420 net/netfilter/nfnetlink.c:565
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1346
 ___sys_sendmsg+0x3b3/0x8e0 net/socket.c:2225
 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1911
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 __sys_sendmmsg+0x195/0x470 net/socket.c:2320
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2225
 __do_sys_sendmmsg net/socket.c:2349 [inline]
 __se_sys_sendmmsg net/socket.c:2346 [inline]
 __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2346
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 __sys_sendmsg net/socket.c:2263 [inline]
 __do_sys_sendmsg net/socket.c:2272 [inline]
 __se_sys_sendmsg net/socket.c:2270 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2270
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665e9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7a34874188 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9
RDX: 0000000000000006 RSI: 0000000020005700 RDI: 0000000000000005
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
R10: 0000000000008001 R11: 0000000000000246 R12: 000000000056bf80
RIP: 0033:0x4665e9
R13: 00007ffe4bcdff2f R14: 00007f7a34874300 R15: 0000000000022000
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
Modules linked in:
RSP: 002b:00007f4805050188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
---[ end trace aa06f6a1d5ea31ab ]---
RAX: ffffffffffffffda RBX: 000000000056c0f0 RCX: 00000000004665e9
RIP: 0010:__list_del_entry_valid.cold+0x23/0x4a lib/list_debug.c:45
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003
Code: e8 ca 42 f7 ff 0f 0b 48 89 ee 48 c7 c7 40 e3 b3 88 e8 b9 42 f7 ff 0f 0b 4c 89 ea 48 89 ee 48 c7 c7 80 e2 b3 88 e8 a5 42 f7 ff <0f> 0b 4c 89 e2 48 89 ee 48 c7 c7 e0 e2 b3 88 e8 91 42 f7 ff 0f 0b
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
RSP: 0000:ffff888031957610 EFLAGS: 00010086
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0
RAX: 000000000000004e RBX: ffff888031957720 RCX: 0000000000000000
R13: 00007ffd0db7f3af R14: 00007f4805050300 R15: 0000000000022000
RDX: 000000000001433c RSI: ffffffff814e0d61 RDI: ffffed100632aeb4
RBP: ffff888031957738 R08: 000000000000004e R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: dead000000000200
R13: dead000000000100 R14: ffff888031957740 R15: 0000000000000007
FS:  00007f7a34874700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8f94eb2018 CR3: 0000000097899000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	ff c3                	inc    %ebx
   2:	66 2e 0f 1f 84 00 00 	nopw   %cs:0x0(%rax,%rax,1)
   9:	00 00 00
   c:	0f 1f 40 00          	nopl   0x0(%rax)
  10:	48 89 f8             	mov    %rdi,%rax
  13:	48 89 f7             	mov    %rsi,%rdi
  16:	48 89 d6             	mov    %rdx,%rsi
  19:	48 89 ca             	mov    %rcx,%rdx
  1c:	4d 89 c2             	mov    %r8,%r10
  1f:	4d 89 c8             	mov    %r9,%r8
  22:	4c 8b 4c 24 08       	mov    0x8(%rsp),%r9
  27:	0f 05                	syscall
* 29:	48 3d 01 f0 ff ff    	cmp    $0xfffffffffffff001,%rax <-- trapping instruction
  2f:	73 01                	jae    0x32
  31:	c3                   	retq
  32:	48 c7 c1 bc ff ff ff 	mov    $0xffffffffffffffbc,%rcx
  39:	f7 d8                	neg    %eax
  3b:	64 89 01             	mov    %eax,%fs:(%rcx)
  3e:	48                   	rex.W

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/24 21:56 linux-4.19.y 59456c9cc40c b599f2fc .config console log report info ci2-linux-4-19 BUG: corrupted list in vzalloc
2021/06/21 01:50 linux-4.19.y eb575cd5d7f6 aba2b2fb .config console log report info ci2-linux-4-19 BUG: corrupted list in vzalloc
* Struck through repros no longer work on HEAD.