syzbot


general protection fault in integrity_inode_free

Status: closed as dup on 2018/10/02 14:50
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+4c0fa7d385ea5af34e91@syzkaller.appspotmail.com
First crash: 2036d, last: 2008d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
general protection fault in rb_erase integrity lsm C 79836 1996d 2036d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in integrity_inode_free 2 (3) 2018/10/02 14:50
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in integrity_inode_free C 20527 413d 1828d 0/1 upstream: reported C repro on 2019/04/21 23:34

Sample crash report:
 __do_sys_getsockopt net/socket.c:1950 [inline]
 __se_sys_getsockopt net/socket.c:1947 [inline]
 __x64_sys_getsockopt+0xbe/0x150 net/socket.c:1947
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1372 Comm: kswapd0 Not tainted 4.19.0-rc8+ #74
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0033:0x457569
RIP: 0010:__rb_erase_augmented include/linux/rbtree_augmented.h:168 [inline]
RIP: 0010:rb_erase+0x306/0x3710 lib/rbtree.c:459
Code: fd b3 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 b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
Code: c7 81 28 01 00 00 f2 f2 f2 f2 c7 81 2c 01 00 00 00 f2 f2 f2 48 89 f9 65 48 8b 1c 25 28 00 00 00 48 89 5d d0 31 db 48 c1 e9 03 <42> 80 3c 01 00 0f 85 41 1c 00 00 4c 8d 48 10 4c 8b 78 08 48 b9 00
RSP: 002b:00007f7b2ff28c78 EFLAGS: 00000246
RSP: 0018:ffff8801d4fa6380 EFLAGS: 00010202
 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457569
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000002711 RSI: 0000000000000114 RDI: 0000000000000003
RDX: 1ffff1003a9f4c78 RSI: ffffffff8afbc860 RDI: 0000000000000008
RBP: 000000000072bf00 R08: 000000002033bffc R09: 0000000000000000
RBP: ffff8801d4fa6d88 R08: dffffc0000000000 R09: fffffbfff12d6990
R10: 0000000020af0fe7 R11: 0000000000000246 R12: 00007f7b2ff296d4
R10: fffffbfff12d6990 R11: ffffffff896b4c83 R12: ffff8801c9c004b0
R13: 00000000004be08a R14: 00000000004cd0f0 R15: 00000000ffffffff
R13: dffffc0000000000 R14: ffff8801d4fa6d60 R15: ffff8801d4fa6ea0
FS:  0000000000000000(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000072c000 CR3: 000000018ed88000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kobject: 'loop5' (000000001a490f7c): kobject_uevent_env
Call Trace:
kobject: 'loop5' (000000001a490f7c): fill_kobj_path: path = '/devices/virtual/block/loop5'
kobject: 'loop4' (000000003e2ea5c8): kobject_uevent_env
kobject: 'loop4' (000000003e2ea5c8): fill_kobj_path: path = '/devices/virtual/block/loop4'
 integrity_inode_free+0x12f/0x320 security/integrity/iint.c:150
 security_inode_free+0x19/0x90 security/security.c:453
 __destroy_inode+0x328/0x820 fs/inode.c:238
 destroy_inode+0xda/0x200 fs/inode.c:265
 evict+0x5e0/0x980 fs/inode.c:575
 dispose_list+0x252/0x410 fs/inode.c:593
Mem-Info:
active_anon:1197779 inactive_anon:7398 isolated_anon:24
 active_file:29652 inactive_file:28080 isolated_file:0
 unevictable:0 dirty:385 writeback:0 unstable:0
 slab_reclaimable:21994 slab_unreclaimable:131495
 mapped:62773 shmem:10280 pagetables:56661 bounce:0
 free:35925 free_pcp:681 free_cma:0
 prune_icache_sb+0x12f/0x1c0 fs/inode.c:781
 super_cache_scan+0x2bf/0x480 fs/super.c:104
 do_shrink_slab+0x4e7/0xd20 mm/vmscan.c:547
 shrink_slab+0x389/0x8c0 mm/vmscan.c:696
Node 0 active_anon:4791116kB inactive_anon:29592kB active_file:118608kB inactive_file:112320kB unevictable:0kB isolated(anon):96kB isolated(file):0kB mapped:251092kB dirty:1540kB writeback:0kB shmem:41120kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 3901440kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
 shrink_node+0x431/0x16b0 mm/vmscan.c:2745
 kswapd_shrink_node mm/vmscan.c:3467 [inline]
 balance_pgdat+0x7ca/0x1000 mm/vmscan.c:3577
Node 0 
DMA free:15908kB min:164kB low:204kB high:244kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
lowmem_reserve[]: 0 2819
 kswapd+0x857/0x12d0 mm/vmscan.c:3799
 6323
 6323
Node 0 
DMA32 free:69336kB min:30060kB low:37572kB high:45084kB active_anon:2544596kB inactive_anon:4100kB active_file:2896kB inactive_file:4156kB unevictable:0kB writepending:304kB present:3129332kB managed:2890736kB mlocked:0kB kernel_stack:24160kB pagetables:63368kB bounce:0kB free_pcp:4kB local_pcp:4kB free_cma:0kB
lowmem_reserve[]:
 0
 kthread+0x35a/0x420 kernel/kthread.c:246
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413
Modules linked in:
 0 3503 3503
---[ end trace ea8a436eb3972f52 ]---
Node 0 
RIP: 0010:__rb_erase_augmented include/linux/rbtree_augmented.h:168 [inline]
RIP: 0010:rb_erase+0x306/0x3710 lib/rbtree.c:459
Normal free:59080kB min:37352kB low:46688kB high:56024kB active_anon:2246368kB inactive_anon:25488kB active_file:115568kB inactive_file:108616kB unevictable:0kB writepending:1292kB present:4718592kB managed:3588044kB mlocked:0kB kernel_stack:53376kB pagetables:163076kB bounce:0kB free_pcp:2252kB local_pcp:1020kB free_cma:0kB
lowmem_reserve[]:
Code: c7 81 28 01 00 00 f2 f2 f2 f2 c7 81 2c 01 00 00 00 f2 f2 f2 48 89 f9 65 48 8b 1c 25 28 00 00 00 48 89 5d d0 31 db 48 c1 e9 03 <42> 80 3c 01 00 0f 85 41 1c 00 00 4c 8d 48 10 4c 8b 78 08 48 b9 00
RSP: 0018:ffff8801d4fa6380 EFLAGS: 00010202
 0
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 1ffff1003a9f4c78 RSI: ffffffff8afbc860 RDI: 0000000000000008
RBP: ffff8801d4fa6d88 R08: dffffc0000000000 R09: fffffbfff12d6990
R10: fffffbfff12d6990 R11: ffffffff896b4c83 R12: ffff8801c9c004b0
R13: dffffc0000000000 R14: ffff8801d4fa6d60 R15: ffff8801d4fa6ea0
 0 0 0
FS:  0000000000000000(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
Node 0 
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000072c000 CR3: 000000018ed88000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/10/21 16:29 upstream 23469de647c4 ecb386fe .config console log report ci-upstream-kasan-gce-selinux-root
2018/10/14 00:26 upstream 7ec21823634d caf12900 .config console log report ci-upstream-kasan-gce-selinux-root
2018/09/26 03:37 upstream 846e8dd47c26 b7e11289 .config console log report ci-upstream-kasan-gce-selinux-root
2018/10/21 15:12 net-old d2fb4fb8ee91 ecb386fe .config console log report ci-upstream-net-this-kasan-gce
2018/10/10 22:53 net-old 52b5d6f5dcf0 5f818b4b .config console log report ci-upstream-net-this-kasan-gce
2018/10/09 11:54 net-old e2a322a0c8ce 8b311eaf .config console log report ci-upstream-net-this-kasan-gce
2018/10/04 05:29 net-old cec4de302c5f 8b311eaf .config console log report ci-upstream-net-this-kasan-gce
2018/10/01 10:55 net-old 43955a45dc0b 48a50c6b .config console log report ci-upstream-net-this-kasan-gce
2018/09/28 15:37 net-old d4ce58082f20 137d7c66 .config console log report ci-upstream-net-this-kasan-gce
2018/10/23 23:48 net-next-old 487e2e22ab79 a8292de9 .config console log report ci-upstream-net-kasan-gce
2018/10/23 01:50 net-next-old a19c59cc10a5 ecb386fe .config console log report ci-upstream-net-kasan-gce
2018/10/20 00:33 net-next-old 9333f2079203 ecb386fe .config console log report ci-upstream-net-kasan-gce
2018/10/18 09:01 net-next-old 53e50a6ec24d d257b2d2 .config console log report ci-upstream-net-kasan-gce
2018/10/12 18:42 net-next-old 1b8530bf6a69 caf12900 .config console log report ci-upstream-net-kasan-gce
2018/09/30 20:37 linux-next 4794a36bf08d 41e4b329 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.