syzbot


general protection fault in cgroup_mt_destroy_v1

Status: fixed on 2018/02/12 17:26
Subsystems: netfilter
[Documentation on labels]
Reported-by: syzbot+4fbcfcc0d2e6592bd641@syzkaller.appspotmail.com
Fix commit: ba7cd5d95f25 netfilter: xt_cgroup: initialize info->priv in cgroup_mt_check_v1()
First crash: 2333d, last: 2320d
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 4.9 000/145] 4.9.84-stable review 153 (153) 2018/04/06 15:55
[PATCH 4.15 00/45] 4.15.6-stable review 53 (53) 2018/02/25 09:59
[PATCH 4.14 000/159] 4.14.22-stable review 164 (164) 2018/02/24 17:57
[PATCH 00/11] Netfilter fixes for net 13 (13) 2018/02/07 18:56
[Patch net] xt_cgroup: initialize info->priv in cgroup_mt_check_v1() 2 (2) 2018/02/02 11:58
general protection fault in cgroup_mt_destroy_v1 0 (1) 2018/01/28 17:58

Sample crash report:
audit: type=1400 audit(1517082061.214:7): avc:  denied  { map } for  pid=3689 comm="syzkaller757271" path="/root/syzkaller757271366" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
ipt_CLUSTERIP: Please specify destination IP
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 3689 Comm: syzkaller757271 Not tainted 4.15.0-rc9+ #283
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:css_put include/linux/cgroup.h:386 [inline]
RIP: 0010:cgroup_put include/linux/cgroup.h:415 [inline]
RIP: 0010:cgroup_mt_destroy_v1+0xcc/0x310 net/netfilter/xt_cgroup.c:102
RSP: 0018:ffff8801d9097848 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 1ffff1003b212f09 RCX: ffffffff847058d6
RDX: 000000000000000d RSI: ffffffff87099dc0 RDI: 000000000000006d
RBP: ffff8801d90978d0 R08: ffffed003b212f4d R09: 0000000000000000
R10: ffffffff88178f20 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8801d90978a8 R14: dffffc0000000000 R15: ffffffff84705820
FS:  0000000000c6f880(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005639e6a78110 CR3: 00000001d9514006 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 cleanup_match+0x14e/0x220 net/ipv6/netfilter/ip6_tables.c:486
 find_check_entry.isra.8+0x513/0xcb0 net/ipv4/netfilter/ip_tables.c:570
 translate_table+0xed1/0x1610 net/ipv4/netfilter/ip_tables.c:730
 do_replace net/ipv4/netfilter/ip_tables.c:1148 [inline]
 do_ipt_set_ctl+0x370/0x5f0 net/ipv4/netfilter/ip_tables.c:1682
 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline]
 nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115
 ip_setsockopt+0xa1/0xb0 net/ipv4/ip_sockglue.c:1256
 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2875
 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2968
 SYSC_setsockopt net/socket.c:1831 [inline]
 SyS_setsockopt+0x189/0x360 net/socket.c:1810
 entry_SYSCALL_64_fastpath+0x29/0xa0
RIP: 0033:0x440999
RSP: 002b:00007fff016f0488 EFLAGS: 00000203 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000440999
RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00000000006cc018 R08: 0000000000001328 R09: 0000000000000000
R10: 00000000203a2000 R11: 0000000000000203 R12: 00000000004022c0
R13: 0000000000402350 R14: 0000000000000000 R15: 0000000000000000
Code: 02 00 00 4d 8b a4 24 08 10 00 00 4d 85 e4 74 3c e8 9a d2 ff fc 49 8d 7c 24 6c 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 
RIP: css_put include/linux/cgroup.h:386 [inline] RSP: ffff8801d9097848
RIP: cgroup_put include/linux/cgroup.h:415 [inline] RSP: ffff8801d9097848
RIP: cgroup_mt_destroy_v1+0xcc/0x310 net/netfilter/xt_cgroup.c:102 RSP: ffff8801d9097848
---[ end trace 576a5ef2516655e0 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (91):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/01/27 19:42 upstream c4e0ca7fa241 08146b1a .config console log report syz C ci-upstream-kasan-gce
2018/01/28 03:30 net-next-old 6bb46bc57c8e 08146b1a .config console log report syz C ci-upstream-net-kasan-gce
2018/02/09 15:57 upstream f1517df8701c 9fb5ec43 .config console log report ci-upstream-kasan-gce
2018/02/09 13:31 upstream f1517df8701c 9fb5ec43 .config console log report ci-upstream-kasan-gce
2018/02/09 01:03 upstream a0f79386a496 9fb5ec43 .config console log report ci-upstream-kasan-gce
2018/02/08 12:33 upstream 581e400ff935 9fb5ec43 .config console log report ci-upstream-kasan-gce
2018/02/08 09:15 upstream 581e400ff935 9fb5ec43 .config console log report ci-upstream-kasan-gce
2018/02/07 22:17 upstream a2e5790d8416 9fb5ec43 .config console log report ci-upstream-kasan-gce
2018/02/07 20:56 upstream a2e5790d8416 9fb5ec43 .config console log report ci-upstream-kasan-gce
2018/02/06 15:00 upstream e237f98a9c13 66c15deb .config console log report ci-upstream-kasan-gce
2018/02/05 23:11 upstream 2deb41b24532 a1bc9d40 .config console log report ci-upstream-kasan-gce
2018/02/05 04:21 upstream 35277995e179 a1bc9d40 .config console log report ci-upstream-kasan-gce
2018/02/04 20:59 upstream 617aebe6a97e a1bc9d40 .config console log report ci-upstream-kasan-gce
2018/02/04 02:16 upstream 23c35f48f5fb 632a8c2c .config console log report ci-upstream-kasan-gce
2018/02/03 22:41 upstream 23c35f48f5fb 632a8c2c .config console log report ci-upstream-kasan-gce
2018/02/03 05:07 upstream 03f51d4efa22 632a8c2c .config console log report ci-upstream-kasan-gce
2018/02/03 01:55 upstream 03f51d4efa22 632a8c2c .config console log report ci-upstream-kasan-gce
2018/02/02 16:59 upstream 4bf772b14675 632a8c2c .config console log report ci-upstream-kasan-gce
2018/02/02 12:19 upstream 4bf772b14675 826b35d6 .config console log report ci-upstream-kasan-gce
2018/02/02 05:07 upstream 4bf772b14675 826b35d6 .config console log report ci-upstream-kasan-gce
2018/02/01 09:17 upstream 255442c93843 02553e22 .config console log report ci-upstream-kasan-gce
2018/01/31 21:14 upstream 3da90b159b14 02553e22 .config console log report ci-upstream-kasan-gce
2018/01/31 05:17 upstream 72906f38934a 02553e22 .config console log report ci-upstream-kasan-gce
2018/01/31 01:58 upstream 72906f38934a 02553e22 .config console log report ci-upstream-kasan-gce
2018/01/31 01:06 upstream 72906f38934a 02553e22 .config console log report ci-upstream-kasan-gce
2018/01/30 23:07 upstream 72906f38934a a899be78 .config console log report ci-upstream-kasan-gce
2018/01/30 13:38 upstream 6304672b7f0a a899be78 .config console log report ci-upstream-kasan-gce
2018/01/29 19:10 upstream d8a5b80568a9 08d47756 .config console log report ci-upstream-kasan-gce
2018/01/29 07:48 upstream 24b1cccf9229 08d47756 .config console log report ci-upstream-kasan-gce
2018/01/28 18:39 upstream c4e0ca7fa241 08d47756 .config console log report ci-upstream-kasan-gce
2018/01/28 17:18 upstream c4e0ca7fa241 08d47756 .config console log report ci-upstream-kasan-gce
2018/01/28 09:35 upstream c4e0ca7fa241 08d47756 .config console log report ci-upstream-kasan-gce
2018/01/28 06:03 upstream c4e0ca7fa241 08146b1a .config console log report ci-upstream-kasan-gce
2018/01/27 23:27 upstream c4e0ca7fa241 08146b1a .config console log report ci-upstream-kasan-gce
2018/01/27 19:23 upstream c4e0ca7fa241 08146b1a .config console log report ci-upstream-kasan-gce
2018/02/09 22:43 net-next-old 617aebe6a97e 2b6b214c .config console log report ci-upstream-net-kasan-gce
2018/02/09 21:07 net-next-old 617aebe6a97e 2b6b214c .config console log report ci-upstream-net-kasan-gce
2018/02/09 20:24 net-next-old 617aebe6a97e 2b6b214c .config console log report ci-upstream-net-kasan-gce
2018/02/09 17:09 net-next-old 617aebe6a97e 9fb5ec43 .config console log report ci-upstream-net-kasan-gce
2018/02/09 11:51 net-next-old 617aebe6a97e 9fb5ec43 .config console log report ci-upstream-net-kasan-gce
2018/02/09 02:24 net-next-old 617aebe6a97e 9fb5ec43 .config console log report ci-upstream-net-kasan-gce
2018/02/09 00:01 net-next-old 617aebe6a97e 9fb5ec43 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.