Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lkl: initialize the time of day from host #159

Merged
1 commit merged into from May 27, 2016
Merged

lkl: initialize the time of day from host #159

1 commit merged into from May 27, 2016

Conversation

ghost
Copy link

@ghost ghost commented May 26, 2016

Signed-off-by: Octavian Purdila octavian.purdila@intel.com


This change is Reviewable

Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
@Rondom
Copy link

Rondom commented May 26, 2016

I tested this patch and it works both under Mingw32 and Linux.
Thanks!

@ghost ghost merged commit 0789bce into lkl:master May 27, 2016
tavip pushed a commit to tavip/linux that referenced this pull request Mar 30, 2020
…rivers/update_extra_exercises_testing

Documentation: labs: device_drivers: Update extra exercises testing
prp pushed a commit to lsds/lkl that referenced this pull request Sep 7, 2020
commit 8999dc8 upstream.

We should check null before do x25_neigh_put in x25_disconnect,
otherwise may cause null-ptr-deref like this:

 #include <sys/socket.h>
 #include <linux/x25.h>

 int main() {
    int sck_x25;
    sck_x25 = socket(AF_X25, SOCK_SEQPACKET, 0);
    close(sck_x25);
    return 0;
 }

BUG: kernel NULL pointer dereference, address: 00000000000000d8
CPU: 0 PID: 4817 Comm: t2 Not tainted 5.7.0-rc3+ lkl#159
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.9.3-
RIP: 0010:x25_disconnect+0x91/0xe0
Call Trace:
 x25_release+0x18a/0x1b0
 __sock_release+0x3d/0xc0
 sock_close+0x13/0x20
 __fput+0x107/0x270
 ____fput+0x9/0x10
 task_work_run+0x6d/0xb0
 exit_to_usermode_loop+0x102/0x110
 do_syscall_64+0x23c/0x260
 entry_SYSCALL_64_after_hwframe+0x49/0xb3

Reported-by: syzbot+6db548b615e5aeefdce2@syzkaller.appspotmail.com
Fixes: 4becb7e ("net/x25: Fix x25_neigh refcnt leak when x25 disconnect")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant