id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_3351_7
/* * XDR support for nfsd * * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> */ #include "vfs.h" #include "xdr.h" #include "auth.h" #define NFSDDBG_FACILITY NFSDDBG_XDR /* * Mapping of S_IF* types to NFS file types */ static u32 nfs_ftypes[] = { NFNON, NFCHR, NFCHR, NFBAD, NFDIR, NFBAD, NFBLK, ...
./CrossVul/dataset_final_sorted/CWE-404/c/good_3351_7
crossvul-cpp_data_good_3351_2
/* * linux/fs/nfs/callback.c * * Copyright (C) 2004 Trond Myklebust * * NFSv4 callback handling */ #include <linux/completion.h> #include <linux/ip.h> #include <linux/module.h> #include <linux/sched/signal.h> #include <linux/sunrpc/svc.h> #include <linux/sunrpc/svcsock.h> #include <linux/nfs_fs.h> #include <linu...
./CrossVul/dataset_final_sorted/CWE-404/c/good_3351_2
crossvul-cpp_data_bad_3351_8
/* * File operations used by nfsd. Some of these have been ripped from * other parts of the kernel because they weren't exported, others * are partial duplicates with added or changed functionality. * * Note that several functions dget() the dentry upon which they want * to act, most notably those that create dir...
./CrossVul/dataset_final_sorted/CWE-404/c/bad_3351_8
crossvul-cpp_data_good_3320_0
/* * hid-cp2112.c - Silicon Labs HID USB to SMBus master bridge * Copyright (c) 2013,2014 Uplogix, Inc. * David Barksdale <dbarksdale@uplogix.com> * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as publis...
./CrossVul/dataset_final_sorted/CWE-404/c/good_3320_0
crossvul-cpp_data_good_3351_3
/* * XDR support for nfsd/protocol version 3. * * Copyright (C) 1995, 1996, 1997 Olaf Kirch <okir@monad.swb.de> * * 2003-08-09 Jamie Lokier: Use htonl() for nanoseconds, not htons()! */ #include <linux/namei.h> #include <linux/sunrpc/svc_xprt.h> #include "xdr3.h" #include "auth.h" #include "netns.h" #include "vf...
./CrossVul/dataset_final_sorted/CWE-404/c/good_3351_3
crossvul-cpp_data_bad_3351_5
/* * Copyright (c) 2001 The Regents of the University of Michigan. * All rights reserved. * * Kendrick Smith <kmsmith@umich.edu> * Andy Adamson <kandros@umich.edu> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met...
./CrossVul/dataset_final_sorted/CWE-404/c/bad_3351_5
crossvul-cpp_data_good_3351_1
/* * linux/fs/lockd/svclock.c * * Handling of server-side locks, mostly of the blocked variety. * This is the ugliest part of lockd because we tread on very thin ice. * GRANT and CANCEL calls may get stuck, meet in mid-flight, etc. * IMNSHO introducing the grant callback into the NLM protocol was one * of the wo...
./CrossVul/dataset_final_sorted/CWE-404/c/good_3351_1
crossvul-cpp_data_good_2525_1
/************************************************* * Exim - an Internet mail transport agent * *************************************************/ /* Copyright (c) University of Cambridge 1995 - 2016 */ /* See the file NOTICE for conditions of use and distribution. */ /* The main function: entry point, initial...
./CrossVul/dataset_final_sorted/CWE-404/c/good_2525_1
crossvul-cpp_data_good_3267_0
/* Userspace key control operations * * Copyright (C) 2004-5 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foun...
./CrossVul/dataset_final_sorted/CWE-404/c/good_3267_0
crossvul-cpp_data_bad_3351_3
/* * XDR support for nfsd/protocol version 3. * * Copyright (C) 1995, 1996, 1997 Olaf Kirch <okir@monad.swb.de> * * 2003-08-09 Jamie Lokier: Use htonl() for nanoseconds, not htons()! */ #include <linux/namei.h> #include <linux/sunrpc/svc_xprt.h> #include "xdr3.h" #include "auth.h" #include "netns.h" #include "vf...
./CrossVul/dataset_final_sorted/CWE-404/c/bad_3351_3
crossvul-cpp_data_bad_3320_0
/* * hid-cp2112.c - Silicon Labs HID USB to SMBus master bridge * Copyright (c) 2013,2014 Uplogix, Inc. * David Barksdale <dbarksdale@uplogix.com> * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as publis...
./CrossVul/dataset_final_sorted/CWE-404/c/bad_3320_0
crossvul-cpp_data_bad_2525_1
/************************************************* * Exim - an Internet mail transport agent * *************************************************/ /* Copyright (c) University of Cambridge 1995 - 2016 */ /* See the file NOTICE for conditions of use and distribution. */ /* The main function: entry point, initial...
./CrossVul/dataset_final_sorted/CWE-404/c/bad_2525_1
crossvul-cpp_data_bad_3351_2
/* * linux/fs/nfs/callback.c * * Copyright (C) 2004 Trond Myklebust * * NFSv4 callback handling */ #include <linux/completion.h> #include <linux/ip.h> #include <linux/module.h> #include <linux/sched/signal.h> #include <linux/sunrpc/svc.h> #include <linux/sunrpc/svcsock.h> #include <linux/nfs_fs.h> #include <linu...
./CrossVul/dataset_final_sorted/CWE-404/c/bad_3351_2
crossvul-cpp_data_bad_3351_0
/* * linux/fs/lockd/svc.c * * This is the central lockd service. * * FIXME: Separate the lockd NFS server functionality from the lockd NFS * client functionality. Oh why didn't Sun create two separate * services in the first place? * * Authors: Olaf Kirch (okir@monad.swb.de) * * Copyright (C) 1995, 1996...
./CrossVul/dataset_final_sorted/CWE-404/c/bad_3351_0
crossvul-cpp_data_bad_1803_0
/* SCTP kernel implementation * (C) Copyright IBM Corp. 2001, 2004 * Copyright (c) 1999 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * * This file is part of the SCTP kernel implementation * * These functions work with the state functions in sctp_sm_statefuns.c * to implement that state operations. The...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1803_0
crossvul-cpp_data_good_3275_0
/* * fs/dcache.c * * Complete reimplementation * (C) 1997 Thomas Schoebel-Theuer, * with heavy changes by Linus Torvalds */ /* * Notes on the allocation strategy: * * The dcache is a master of the icache - whenever a dcache entry * exists, the inode will always exist. "iput()" is done either when * the dcac...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3275_0
crossvul-cpp_data_good_3430_0
/* * icall.c: * * Authors: * Dietmar Maurer (dietmar@ximian.com) * Paolo Molaro (lupus@ximian.com) * Patrik Torstensson (patrik.torstensson@labs2.com) * * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2009 Novell, Inc (http://www.novell.com) */ #include <config.h> #include <gl...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3430_0
crossvul-cpp_data_good_5188_0
/* * cros_ec_dev - expose the Chrome OS Embedded Controller to user-space * * Copyright (C) 2014 Google, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lic...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5188_0
crossvul-cpp_data_bad_5339_0
400: Invalid request
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5339_0
crossvul-cpp_data_good_1664_4
/* BEGIN_ICS_COPYRIGHT5 **************************************** Copyright (c) 2015, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright no...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1664_4
crossvul-cpp_data_bad_3465_0
/* * Memory merging support. * * This code enables dynamic sharing of identical pages found in different * memory areas, even if they are not shared by fork() * * Copyright (C) 2008-2009 Red Hat, Inc. * Authors: * Izik Eidus * Andrea Arcangeli * Chris Wright * Hugh Dickins * * This work is licensed under t...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3465_0
crossvul-cpp_data_bad_1865_3
/* * Block multiqueue core code * * Copyright (C) 2013-2014 Jens Axboe * Copyright (C) 2013-2014 Christoph Hellwig */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/backing-dev.h> #include <linux/bio.h> #include <linux/blkdev.h> #include <linux/mm.h> #include <linux/init.h> #include <linux/sla...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1865_3
crossvul-cpp_data_bad_2034_0
/* * n_tty.c --- implements the N_TTY line discipline. * * This code used to be in tty_io.c, but things are getting hairy * enough that it made sense to split things off. (The N_TTY * processing has changed so much that it's hardly recognizable, * anyway...) * * Note that the open routine for N_TTY is guarante...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2034_0
crossvul-cpp_data_good_2871_0
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * PACKET - implements raw packet sockets. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugn...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2871_0
crossvul-cpp_data_bad_840_0
/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * Yo...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_840_0
crossvul-cpp_data_good_5829_0
/* * linux/ipc/shm.c * Copyright (C) 1992, 1993 Krishna Balasubramanian * Many improvements/fixes by Bruno Haible. * Replaced `struct shm_desc' by `struct vm_area_struct', July 1994. * Fixed the shm swap deallocation (shm_unuse()), August 1998 Andrea Arcangeli. * * /proc/sysvipc/shm support (c) 1999 Dragos Acos...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5829_0
crossvul-cpp_data_bad_2386_0
/* Key garbage collector * * Copyright (C) 2009-2011 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Licence * as published by the Free Software Foundation; ...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2386_0
crossvul-cpp_data_good_3275_3
/* * Copyright (C) 2008 Red Hat, Inc., Eric Paris <eparis@redhat.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3275_3
crossvul-cpp_data_good_1595_0
/* * linux/fs/exec.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * #!-checking implemented by tytso. */ /* * Demand-loading implemented 01.12.91 - no need to read anything but * the header into memory. The inode of the executable is put into * "current->executable", and page faults do the actual load...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1595_0
crossvul-cpp_data_bad_5592_0
/* Manage a process's keyrings * * Copyright (C) 2004-2005, 2008 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software ...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5592_0
crossvul-cpp_data_bad_2290_0
/* * Kernel-based Virtual Machine driver for Linux * * derived from drivers/kvm/kvm_main.c * * Copyright (C) 2006 Qumranet, Inc. * Copyright (C) 2008 Qumranet, Inc. * Copyright IBM Corporation, 2008 * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Authors: * Avi Kivity <avi@qumranet.com> * Ya...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2290_0
crossvul-cpp_data_bad_5187_0
/* auditsc.c -- System-call auditing support * Handles all system-call specific auditing features. * * Copyright 2003-2004 Red Hat Inc., Durham, North Carolina. * Copyright 2005 Hewlett-Packard Development Company, L.P. * Copyright (C) 2005, 2006 IBM Corporation * All Rights Reserved. * * This program is free s...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5187_0
crossvul-cpp_data_bad_1404_0
/* * Kernel-based Virtual Machine driver for Linux * * This module enables machines with Intel VT-x extensions to run virtual * machines without emulation or binary translation. * * Copyright (C) 2006 Qumranet, Inc. * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Authors: * Avi Kivity <avi@qumra...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1404_0
crossvul-cpp_data_bad_1664_1
/* BEGIN_ICS_COPYRIGHT5 **************************************** Copyright (c) 2015, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright no...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1664_1
crossvul-cpp_data_bad_2970_0
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * RAW - implementation of IP "raw" sockets. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mu...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2970_0
crossvul-cpp_data_good_2970_0
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * RAW - implementation of IP "raw" sockets. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mu...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2970_0
crossvul-cpp_data_good_1578_2
/* SCTP kernel implementation * (C) Copyright IBM Corp. 2001, 2004 * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001-2003 Intel Corp. * Copyright (c) 2001-2002 Nokia, Inc. * Copyright (c) 2001 La Monte H.P. Yarroll * * This file is part of the SCTP kernel implem...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1578_2
crossvul-cpp_data_bad_3459_3
/* * Copyright (C)2003,2004 USAGI/WIDE Project * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This progra...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3459_3
crossvul-cpp_data_bad_3765_0
/* * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com * Written by Alex Tomas <alex@clusterfs.com> * * Architecture independence: * Copyright (c) 2005, Bull S.A. * Written by Pierre Peiffer <pierre.peiffer@bull.net> * * This program is free software; you can redistribute it and/or modi...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3765_0
crossvul-cpp_data_good_3459_1
/* * IPv6 tunneling device * Linux INET6 implementation * * Authors: * Ville Nuorvala <vnuorval@tcs.hut.fi> * Yasuyuki Kozakai <kozakai@linux-ipv6.org> * * Based on: * linux/net/ipv6/sit.c and linux/net/ipv4/ipip.c * * RFC 2473 * * This program is free software; you can redistribute it and/...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3459_1
crossvul-cpp_data_good_4741_0
/* * Copyright (C) 1991, 1992 Linus Torvalds */ /* * 'tty_io.c' gives an orthogonal feeling to tty's, be they consoles * or rs-channels. It also implements echoing, cooked mode etc. * * Kill-line thanks to John T Kohl, who also corrected VMIN = VTIME = 0. * * Modified by Theodore Ts'o, 9/14/92, to dynamicall...
./CrossVul/dataset_final_sorted/CWE-362/c/good_4741_0
crossvul-cpp_data_bad_3014_0
/* * Copyright (C) 2001, 2002 Sistina Software (UK) Limited. * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. * * This file is released under the GPL. */ #include "dm-core.h" #include "dm-rq.h" #include "dm-uevent.h" #include <linux/init.h> #include <linux/module.h> #include <linux/mutex.h> #include ...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3014_0
crossvul-cpp_data_good_3275_1
/* * inode.c - part of debugfs, a tiny little debug file system * * Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com> * Copyright (C) 2004 IBM Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 as published by ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3275_1
crossvul-cpp_data_good_1757_1
/* * linux/ipc/shm.c * Copyright (C) 1992, 1993 Krishna Balasubramanian * Many improvements/fixes by Bruno Haible. * Replaced `struct shm_desc' by `struct vm_area_struct', July 1994. * Fixed the shm swap deallocation (shm_unuse()), August 1998 Andrea Arcangeli. * * /proc/sysvipc/shm support (c) 1999 Dragos Acos...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1757_1
crossvul-cpp_data_bad_1664_4
/* BEGIN_ICS_COPYRIGHT5 **************************************** Copyright (c) 2015, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright no...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1664_4
crossvul-cpp_data_good_1625_0
/* * Ldisc rw semaphore * * The ldisc semaphore is semantically a rw_semaphore but which enforces * an alternate policy, namely: * 1) Supports lock wait timeouts * 2) Write waiter has priority * 3) Downgrading is not supported * * Implementation notes: * 1) Upper half of semaphore count is a wait coun...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1625_0
crossvul-cpp_data_bad_5829_0
/* * linux/ipc/shm.c * Copyright (C) 1992, 1993 Krishna Balasubramanian * Many improvements/fixes by Bruno Haible. * Replaced `struct shm_desc' by `struct vm_area_struct', July 1994. * Fixed the shm swap deallocation (shm_unuse()), August 1998 Andrea Arcangeli. * * /proc/sysvipc/shm support (c) 1999 Dragos Acos...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5829_0
crossvul-cpp_data_good_4726_0
/* * Kernel-based Virtual Machine driver for Linux * * derived from drivers/kvm/kvm_main.c * * Copyright (C) 2006 Qumranet, Inc. * Copyright (C) 2008 Qumranet, Inc. * Copyright IBM Corporation, 2008 * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Authors: * Avi Kivity <avi@qumranet.com> * Ya...
./CrossVul/dataset_final_sorted/CWE-362/c/good_4726_0
crossvul-cpp_data_good_829_2
/* * fs/userfaultfd.c * * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org> * Copyright (C) 2008-2009 Red Hat, Inc. * Copyright (C) 2015 Red Hat, Inc. * * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. * * Some part derive...
./CrossVul/dataset_final_sorted/CWE-362/c/good_829_2
crossvul-cpp_data_good_3971_0
/* * OpenVPN -- An application to securely tunnel IP networks * over a single TCP/UDP port, with support for SSL/TLS-based * session authentication and key exchange, * packet encryption, packet authentication, and * packet compression. * * Copyright (C) 2002-2018...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3971_0
crossvul-cpp_data_good_4933_1
#include <linux/init.h> #include <linux/mm.h> #include <linux/spinlock.h> #include <linux/smp.h> #include <linux/interrupt.h> #include <linux/module.h> #include <linux/cpu.h> #include <asm/tlbflush.h> #include <asm/mmu_context.h> #include <asm/cache.h> #include <asm/apic.h> #include <asm/uv/uv.h> #include <linux/debu...
./CrossVul/dataset_final_sorted/CWE-362/c/good_4933_1
crossvul-cpp_data_bad_5188_0
/* * cros_ec_dev - expose the Chrome OS Embedded Controller to user-space * * Copyright (C) 2014 Google, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lic...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5188_0
crossvul-cpp_data_good_829_1
// SPDX-License-Identifier: GPL-2.0 #include <linux/mm.h> #include <linux/vmacache.h> #include <linux/hugetlb.h> #include <linux/huge_mm.h> #include <linux/mount.h> #include <linux/seq_file.h> #include <linux/highmem.h> #include <linux/ptrace.h> #include <linux/slab.h> #include <linux/pagemap.h> #include <linux/mempoli...
./CrossVul/dataset_final_sorted/CWE-362/c/good_829_1
crossvul-cpp_data_bad_5572_0
/* * x86 single-step support code, common to 32-bit and 64-bit. */ #include <linux/sched.h> #include <linux/mm.h> #include <linux/ptrace.h> #include <asm/desc.h> unsigned long convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs) { unsigned long addr, seg; addr = regs->ip; seg = regs->cs & 0xffff...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5572_0
crossvul-cpp_data_bad_2215_1
/* * Routines for driver control interface * Copyright (c) by Jaroslav Kysela <perex@perex.cz> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License,...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2215_1
crossvul-cpp_data_bad_2215_2
/* * Initialization routines * Copyright (c) by Jaroslav Kysela <perex@perex.cz> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at y...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2215_2
crossvul-cpp_data_bad_829_4
/* * mm/mmap.c * * Written by obz. * * Address space accounting code <alan@lxorguk.ukuu.org.uk> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/kernel.h> #include <linux/slab.h> #include <linux/backing-dev.h> #include <linux/mm.h> #include <linux/vmacache.h> #include <linux/shm.h> #include <linux...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_829_4
crossvul-cpp_data_bad_3275_1
/* * inode.c - part of debugfs, a tiny little debug file system * * Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com> * Copyright (C) 2004 IBM Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 as published by ...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3275_1
crossvul-cpp_data_bad_1496_2
/* ssl/ssl_err.c */ /* ==================================================================== * Copyright (c) 1999-2015 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * ...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1496_2
crossvul-cpp_data_bad_3459_1
/* * IPv6 tunneling device * Linux INET6 implementation * * Authors: * Ville Nuorvala <vnuorval@tcs.hut.fi> * Yasuyuki Kozakai <kozakai@linux-ipv6.org> * * Based on: * linux/net/ipv6/sit.c and linux/net/ipv4/ipip.c * * RFC 2473 * * This program is free software; you can redistribute it and/...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3459_1
crossvul-cpp_data_good_677_2
/* * Copyright (C) 1991, 1992 Linus Torvalds * Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs * * Pentium III FXSR, SSE support * Gareth Hughes <gareth@valinux.com>, May 2000 */ /* * Handle hardware traps and faults. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/context_tracking.h>...
./CrossVul/dataset_final_sorted/CWE-362/c/good_677_2
crossvul-cpp_data_good_1865_0
/* * Functions to sequence FLUSH and FUA writes. * * Copyright (C) 2011 Max Planck Institute for Gravitational Physics * Copyright (C) 2011 Tejun Heo <tj@kernel.org> * * This file is released under the GPLv2. * * REQ_{FLUSH|FUA} requests are decomposed to sequences consisted of three * optional steps - PREFL...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1865_0
crossvul-cpp_data_good_3026_0
/* * fs/f2fs/node.c * * Copyright (c) 2012 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <l...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3026_0
crossvul-cpp_data_bad_3275_2
/* * linux/fs/namei.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * Some corrections by tytso. */ /* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname * lookup logic. */ /* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture. */ #include <linux/init.h> #include <linux/export.h...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3275_2
crossvul-cpp_data_good_677_1
/* * Interrupt descriptor table related code * * This file is licensed under the GPL V2 */ #include <linux/interrupt.h> #include <asm/traps.h> #include <asm/proto.h> #include <asm/desc.h> struct idt_data { unsigned int vector; unsigned int segment; struct idt_bits bits; const void *addr; }; #define DPL0 0x0...
./CrossVul/dataset_final_sorted/CWE-362/c/good_677_1
crossvul-cpp_data_bad_4963_0
/* * Timers abstract layer * Copyright (c) by Jaroslav Kysela <perex@perex.cz> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_4963_0
crossvul-cpp_data_bad_2160_0
/* * 8253/8254 interval timer emulation * * Copyright (c) 2003-2004 Fabrice Bellard * Copyright (c) 2006 Intel Corporation * Copyright (c) 2007 Keir Fraser, XenSource Inc * Copyright (c) 2008 Intel Corporation * Copyright 2009 Red Hat, Inc. and/or its affiliates. * * Permission is hereby granted, free of charg...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2160_0
crossvul-cpp_data_good_1819_4
/* * linux/fs/ext4/super.c * * Copyright (C) 1992, 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) * * from * * linux/fs/minix/inode.c * * Copyright (C) 1991, 1992 Linus Torvalds * * Big-endian to little-endian...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1819_4
crossvul-cpp_data_bad_3159_0
/* * Performance events core code: * * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de> * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra * Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> * * For licensing details see kernel...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3159_0
crossvul-cpp_data_good_2599_0
/* * platform.c - platform 'pseudo' bus for legacy devices * * Copyright (c) 2002-3 Patrick Mochel * Copyright (c) 2002-3 Open Source Development Labs * * This file is released under the GPLv2 * * Please see Documentation/driver-model/platform.txt for more * information. */ #include <linux/string.h> #include...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2599_0
crossvul-cpp_data_good_5221_2
/* Copyright (c) 2000-2008 MySQL AB, 2009 Sun Microsystems, Inc. Use is subject to license terms. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This pro...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5221_2
crossvul-cpp_data_good_5572_1
/* * linux/kernel/ptrace.c * * (C) Copyright 1999 Linus Torvalds * * Common interfaces for "ptrace()" which we do not want * to continually duplicate across every architecture. */ #include <linux/capability.h> #include <linux/export.h> #include <linux/sched.h> #include <linux/errno.h> #include <linux/mm.h> #inc...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5572_1
crossvul-cpp_data_bad_2872_0
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * PACKET - implements raw packet sockets. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugn...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2872_0
crossvul-cpp_data_bad_1578_2
/* SCTP kernel implementation * (C) Copyright IBM Corp. 2001, 2004 * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001-2003 Intel Corp. * Copyright (c) 2001-2002 Nokia, Inc. * Copyright (c) 2001 La Monte H.P. Yarroll * * This file is part of the SCTP kernel implem...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1578_2
crossvul-cpp_data_bad_1865_0
/* * Functions to sequence FLUSH and FUA writes. * * Copyright (C) 2011 Max Planck Institute for Gravitational Physics * Copyright (C) 2011 Tejun Heo <tj@kernel.org> * * This file is released under the GPLv2. * * REQ_{FLUSH|FUA} requests are decomposed to sequences consisted of three * optional steps - PREFL...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1865_0
crossvul-cpp_data_bad_5222_4
/* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed i...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5222_4
crossvul-cpp_data_bad_1757_0
/* * linux/ipc/msg.c * Copyright (C) 1992 Krishna Balasubramanian * * Removed all the remaining kerneld mess * Catch the -EFAULT stuff properly * Use GFP_KERNEL for messages as in 1.2 * Fixed up the unchecked user space derefs * Copyright (C) 1998 Alan Cox & Andi Kleen * * /proc/sysvipc/msg support (c) 1999 D...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1757_0
crossvul-cpp_data_bad_3059_0
/* su for Linux. Run a shell with substitute user and group IDs. Copyright (C) 1992-2006 Free Software Foundation, Inc. Copyright (C) 2012 SUSE Linux Products GmbH, Nuernberg This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publis...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3059_0
crossvul-cpp_data_good_829_4
/* * mm/mmap.c * * Written by obz. * * Address space accounting code <alan@lxorguk.ukuu.org.uk> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/kernel.h> #include <linux/slab.h> #include <linux/backing-dev.h> #include <linux/mm.h> #include <linux/vmacache.h> #include <linux/shm.h> #include <linux...
./CrossVul/dataset_final_sorted/CWE-362/c/good_829_4
crossvul-cpp_data_good_5518_1
#define _GNU_SOURCE #include <endian.h> #include <errno.h> #include <fcntl.h> #include <grp.h> #include <sched.h> #include <setjmp.h> #include <signal.h> #include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/ioctl.h> #i...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5518_1
crossvul-cpp_data_good_5187_0
/* auditsc.c -- System-call auditing support * Handles all system-call specific auditing features. * * Copyright 2003-2004 Red Hat Inc., Durham, North Carolina. * Copyright 2005 Hewlett-Packard Development Company, L.P. * Copyright (C) 2005, 2006 IBM Corporation * All Rights Reserved. * * This program is free s...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5187_0
crossvul-cpp_data_good_3536_0
/* SCTP kernel implementation * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001-2003 International Business Machines, Corp. * Copyright (c) 2001 Intel Corp. * Copyright (c) 2001 Nokia, Inc. * Copyright (c) 2001 La Monte H.P. Yarroll * * This file is part of the ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3536_0
crossvul-cpp_data_good_5592_0
/* Manage a process's keyrings * * Copyright (C) 2004-2005, 2008 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5592_0
crossvul-cpp_data_bad_5221_2
/* Copyright (c) 2000-2008 MySQL AB, 2009 Sun Microsystems, Inc. Use is subject to license terms. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This pro...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5221_2
crossvul-cpp_data_good_2406_3
/* * Copyright (C) 2007 Red Hat. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITH...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2406_3
crossvul-cpp_data_good_5339_0
/* * linux/fs/proc/base.c * * Copyright (C) 1991, 1992 Linus Torvalds * * proc base directory handling functions * * 1999, Al Viro. Rewritten. Now it covers the whole per-process part. * Instead of using magical inumbers to determine the kind of object * we allocate and fill in-core inodes upon lookup. T...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5339_0
crossvul-cpp_data_bad_3460_0
/** * eCryptfs: Linux filesystem encryption layer * * Copyright (C) 1997-2003 Erez Zadok * Copyright (C) 2001-2003 Stony Brook University * Copyright (C) 2004-2007 International Business Machines Corp. * Author(s): Michael A. Halcrow <mahalcro@us.ibm.com> * Michael C. Thompson <mcthomps@us.ibm.com...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3460_0
crossvul-cpp_data_bad_4964_0
/* * Timers abstract layer * Copyright (c) by Jaroslav Kysela <perex@perex.cz> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_4964_0
crossvul-cpp_data_bad_5214_0
/* * linux/fs/ioctl.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include <linux/syscalls.h> #include <linux/mm.h> #include <linux/capability.h> #include <linux/file.h> #include <linux/fs.h> #include <linux/security.h> #include <linux/export.h> #include <linux/uaccess.h> #include <linux/writeback.h> #includ...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5214_0
crossvul-cpp_data_bad_5572_1
/* * linux/kernel/ptrace.c * * (C) Copyright 1999 Linus Torvalds * * Common interfaces for "ptrace()" which we do not want * to continually duplicate across every architecture. */ #include <linux/capability.h> #include <linux/export.h> #include <linux/sched.h> #include <linux/errno.h> #include <linux/mm.h> #inc...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5572_1
crossvul-cpp_data_bad_4726_0
/* * Kernel-based Virtual Machine driver for Linux * * derived from drivers/kvm/kvm_main.c * * Copyright (C) 2006 Qumranet, Inc. * Copyright (C) 2008 Qumranet, Inc. * Copyright IBM Corporation, 2008 * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Authors: * Avi Kivity <avi@qumranet.com> * Ya...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_4726_0
crossvul-cpp_data_good_2116_2
/* * Copyright 2002-2005, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> * Copyright 2007 Johannes Berg <johannes@sipsolutions.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2116_2
crossvul-cpp_data_bad_1819_1
/* * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com * Written by Alex Tomas <alex@clusterfs.com> * * Architecture independence: * Copyright (c) 2005, Bull S.A. * Written by Pierre Peiffer <pierre.peiffer@bull.net> * * This program is free software; you can redistribute it and/or modi...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1819_1
crossvul-cpp_data_good_1496_1
/* ssl/s3_clnt.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commerc...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1496_1
crossvul-cpp_data_bad_1625_0
/* * Ldisc rw semaphore * * The ldisc semaphore is semantically a rw_semaphore but which enforces * an alternate policy, namely: * 1) Supports lock wait timeouts * 2) Write waiter has priority * 3) Downgrading is not supported * * Implementation notes: * 1) Upper half of semaphore count is a wait coun...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1625_0
crossvul-cpp_data_bad_5222_5
/* Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in t...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5222_5
crossvul-cpp_data_good_3014_0
/* * Copyright (C) 2001, 2002 Sistina Software (UK) Limited. * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. * * This file is released under the GPL. */ #include "dm-core.h" #include "dm-rq.h" #include "dm-uevent.h" #include <linux/init.h> #include <linux/module.h> #include <linux/mutex.h> #include ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3014_0
crossvul-cpp_data_bad_3021_0
/* -*- mode: c; c-basic-offset: 8; -*- * vim: noexpandtab sw=8 ts=8 sts=0: * * Copyright (C) 2002, 2004 Oracle. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; eit...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3021_0
crossvul-cpp_data_good_3726_3
/* * DCCP over IPv6 * Linux INET6 implementation * * Based on net/dccp6/ipv6.c * * Arnaldo Carvalho de Melo <acme@ghostprotocols.net> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Fo...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3726_3
crossvul-cpp_data_bad_3536_0
/* SCTP kernel implementation * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001-2003 International Business Machines, Corp. * Copyright (c) 2001 Intel Corp. * Copyright (c) 2001 Nokia, Inc. * Copyright (c) 2001 La Monte H.P. Yarroll * * This file is part of the ...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3536_0