syzbot


general protection fault in lowpan_device_event

Status: fixed on 2018/03/23 18:14
Subsystems: wpan
[Documentation on labels]
Fix commit: ca0edb131bdf ieee802154: 6lowpan: fix possible NULL deref in lowpan_device_event()
First crash: 2328d, last: 2311d

Sample crash report:
audit: type=1400 audit(1520539290.470:6): avc:  denied  { map } for  pid=4229 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1
audit: type=1400 audit(1520539296.817:7): avc:  denied  { map } for  pid=4243 comm="syzkaller462325" path="/root/syzkaller462325528" 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
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: 4243 Comm: syzkaller462325 Not tainted 4.16.0-rc4+ #346
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:lowpan_device_event+0xca/0x130 net/ieee802154/6lowpan/core.c:220
RSP: 0018:ffff8801b1a7f010 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff85aedf10
RDX: 0000000000000006 RSI: 0000000000000006 RDI: 0000000000000030
RBP: ffff8801b1a7f028 R08: 0000000000000000 R09: 1ffff1003634fdd0
R10: ffff8801b1a7f038 R11: 0000000000000001 R12: 0000000000000006
R13: 0000000000000000 R14: ffffffff876992e0 R15: ffffffff87687d60
FS:  000000000236f880(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd59cfafac CR3: 0000000006e22002 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 notifier_call_chain+0x136/0x2c0 kernel/notifier.c:93
 __raw_notifier_call_chain kernel/notifier.c:394 [inline]
 raw_notifier_call_chain+0x2d/0x40 kernel/notifier.c:401
 call_netdevice_notifiers_info+0x32/0x70 net/core/dev.c:1707
 call_netdevice_notifiers net/core/dev.c:1725 [inline]
 rollback_registered_many+0x8b5/0xe20 net/core/dev.c:7398
 rollback_registered+0x1be/0x3c0 net/core/dev.c:7440
 unregister_netdevice_queue+0x2e3/0x5f0 net/core/dev.c:8454
 unregister_netdevice include/linux/netdevice.h:2473 [inline]
 __tun_detach+0x520/0x10b0 drivers/net/tun.c:735
 tun_detach drivers/net/tun.c:745 [inline]
 tun_chr_close+0x44/0x60 drivers/net/tun.c:3167
 __fput+0x327/0x7e0 fs/file_table.c:209
 ____fput+0x15/0x20 fs/file_table.c:243
 task_work_run+0x199/0x270 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0x9bb/0x1ad0 kernel/exit.c:865
 do_group_exit+0x149/0x400 kernel/exit.c:968
 SYSC_exit_group kernel/exit.c:979 [inline]
 SyS_exit_group+0x1d/0x20 kernel/exit.c:977
 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x4429e8
RSP: 002b:00007ffd2080c1e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004429e8
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004c2628 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 00000000004002e0 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d4180 R14: 0000000000000000 R15: 0000000000000000
Code: ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 59 48 8b 9b 50 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 30 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 3e 48 8b 5b 30 41 bd 01 00 00 00 48 85 db 74 92 
RIP: lowpan_device_event+0xca/0x130 net/ieee802154/6lowpan/core.c:220 RSP: ffff8801b1a7f010
---[ end trace e3070a3c583080d7 ]---

Crashes (79):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/08 20:03 upstream 1b88accf6a65 acd0caa5 .config console log report syz C ci-upstream-kasan-gce
2018/03/05 14:32 upstream 661e50bc8532 bbd5104f .config console log report syz C ci-upstream-kasan-gce
2018/03/08 20:23 upstream 1b88accf6a65 acd0caa5 .config console log report syz ci-upstream-kasan-gce-386
2018/03/05 15:01 upstream 661e50bc8532 bbd5104f .config console log report syz ci-upstream-kasan-gce-386
2018/03/22 12:05 upstream 3215b9d57a2c 95c88d7a .config console log report ci-upstream-kasan-gce
2018/03/22 05:50 upstream 3215b9d57a2c 95c88d7a .config console log report ci-upstream-kasan-gce
2018/03/21 05:53 upstream 3215b9d57a2c 113a43ff .config console log report ci-upstream-kasan-gce
2018/03/20 20:52 upstream 1b5f3ba415fe 72c33b66 .config console log report ci-upstream-kasan-gce
2018/03/20 16:08 upstream 1b5f3ba415fe 72c33b66 .config console log report ci-upstream-kasan-gce
2018/03/20 10:44 upstream 1b5f3ba415fe 7e7d7ed2 .config console log report ci-upstream-kasan-gce
2018/03/20 06:11 upstream 1b5f3ba415fe 7e7d7ed2 .config console log report ci-upstream-kasan-gce
2018/03/20 04:02 upstream 1b5f3ba415fe 7e7d7ed2 .config console log report ci-upstream-kasan-gce
2018/03/19 21:50 upstream c698ca527893 7e7d7ed2 .config console log report ci-upstream-kasan-gce
2018/03/19 09:55 upstream c698ca527893 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/19 05:23 upstream 9e1909b9da04 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/19 02:11 upstream 9e1909b9da04 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/18 22:09 upstream 9e1909b9da04 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/18 13:05 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/18 01:28 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/17 10:21 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/17 04:18 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/17 02:10 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/16 16:24 upstream df09348f78dc 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/15 16:45 upstream 0aa3fdb8b3a6 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/15 15:33 upstream 0aa3fdb8b3a6 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/15 09:21 upstream 0aa3fdb8b3a6 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/15 06:46 upstream 3032f8c504d2 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/15 03:24 upstream 3032f8c504d2 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/14 21:06 upstream 3032f8c504d2 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/14 11:01 upstream fc6eabbbf8ef 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/14 05:05 upstream fc6eabbbf8ef 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/13 17:16 upstream fc6eabbbf8ef 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/13 10:32 upstream fc6eabbbf8ef 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/13 05:44 upstream fc6eabbbf8ef f505ca4b .config console log report ci-upstream-kasan-gce
2018/03/13 00:27 upstream fc6eabbbf8ef f505ca4b .config console log report ci-upstream-kasan-gce
2018/03/12 11:23 upstream 0c8efd610b58 f505ca4b .config console log report ci-upstream-kasan-gce
2018/03/11 23:19 upstream abeb75218aeb 36d1c454 .config console log report ci-upstream-kasan-gce
2018/03/11 13:58 upstream 3266b5bd97ea 36d1c454 .config console log report ci-upstream-kasan-gce
2018/03/05 14:16 upstream 661e50bc8532 bbd5104f .config console log report ci-upstream-kasan-gce
2018/03/22 17:34 upstream 3215b9d57a2c 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/22 07:50 upstream 3215b9d57a2c 95c88d7a .config console log report ci-upstream-kasan-gce-386
2018/03/21 13:51 upstream 3215b9d57a2c f63eeee9 .config console log report ci-upstream-kasan-gce-386
2018/03/21 08:30 upstream 3215b9d57a2c 113a43ff .config console log report ci-upstream-kasan-gce-386
2018/03/19 00:24 upstream 9e1909b9da04 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/16 12:04 upstream df09348f78dc 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/15 04:37 upstream 3032f8c504d2 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/14 18:16 upstream fc6eabbbf8ef 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/13 08:33 upstream fc6eabbbf8ef f505ca4b .config console log report ci-upstream-kasan-gce-386
2018/03/13 03:30 upstream fc6eabbbf8ef f505ca4b .config console log report ci-upstream-kasan-gce-386
2018/03/12 15:22 upstream 0c8efd610b58 f505ca4b .config console log report ci-upstream-kasan-gce-386
2018/03/12 06:47 upstream abeb75218aeb 36d1c454 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.