search for: get_random_byt

Displaying 20 results from an estimated 51 matches for "get_random_byt".

Did you mean: get_random_bytes
2001 Feb 13
4
issue with EGD in openssh
There are a couple of issues regarding egd support in OpenSSH. 1) SIGPIPE is not ignored for the master listener daemon. I put the signal() call early on since it needs to be before get_random_bytes() is called but it could also be placed in the EGD version of get_random_bytes(). For some reason, with prngd I am getting SIGPIPE even though the prngd processes is not dying. get_random_bytes() also needs to check for EPIPE and reconnect to the daemon if it gets that. 2) If there...
2012 Oct 29
5
Re: [PATCH 2/9] uuid: use random32_get_bytes()
On Sun, Oct 28, 2012 at 04:18:59PM +0900, Akinobu Mita wrote: > Use random32_get_bytes() to generate 16 bytes of pseudo-random bytes. > > Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Since your patch is going to allow users to set the random seed, it means that what had previously been a bad security bug has just become a grievous security bug. If you are going to be
2001 Jun 07
2
Patch to enable multiple possible sources of entropy
...header and autoconf. - Dave Dykstra *** entropy.c.O Fri Jun 1 15:52:20 2001 --- entropy.c Tue Jun 5 17:41:47 2001 *************** *** 80,91 **** # define USE_PRNGD #endif - #if defined(USE_PRNGD) || defined(RANDOM_POOL) - #ifdef USE_PRNGD /* Collect entropy from PRNGD/EGD */ int ! get_random_bytes(unsigned char *buf, int len) { int fd; char msg[2]; --- 80,89 ---- # define USE_PRNGD #endif #ifdef USE_PRNGD /* Collect entropy from PRNGD/EGD */ int ! prngd_get_random_bytes(unsigned char *buf, int len) { int fd; char msg[2]; *************** *** 100,110 **** --- 98,...
2013 Oct 08
1
OT: errors compiling kernel module as a rpm package
..._csum) = 0xdcb79e8c kernel(find_next_bit) = 0xc0a3d105 kernel(finish_wait) = 0x9ccb2622 kernel(free_netdev) = 0x7bd0a577 kernel(free_percpu) = 0xc9ec4e21 kernel(genl_register_family_with_ops) = 0x17c50208 kernel(genl_register_mc_group) = 0x20385c58 kernel(genl_unregister_family) = 0x49439411 kernel(get_random_bytes) = 0x79aa04a2 kernel(inet_add_protocol) = 0xc0b47bb1 kernel(inet_del_protocol) = 0x09ac2202 kernel(inet_get_local_port_range) = 0x475100c2 kernel(inet_proto_csum_replace4) = 0xac63b351 kernel(ip_local_out) = 0xd7c18d8f kernel(ip_route_output_key) = 0x9affb5fe kernel(ipv6_ext_hdr) = 0x8e0b7743 ker...
2020 Nov 02
0
[PATCH mlx5-next v1 03/11] net/mlx5_core: Clean driver version and name
...; > + "mlx5_core name not in sync with kernel module name"); > > + > In which case, both the strings are same but their length not? > You likely don't need the string length check. Yes, I was overzealous, I'll remove when will apply the series. > > > get_random_bytes(&sw_owner_id, sizeof(sw_owner_id)); > > > > mlx5_core_verify_params(); > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h > > b/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h > > index 8cec85ab419d..b285f1515e4e 100644 > > --- a/dri...
2009 Jun 04
3
Patches that adds delayed orphan scan timer (rev 3)
Resending after implementing review comments.
2009 Jun 02
3
Patches that adds delayed orphan scan timer (rev 2)
Resending after implementing review comments.
2009 Jun 02
3
Patches that adds delayed orphan scan timer
Resending after adding another patch to display delayed orphan scan statistics.
2008 Jul 12
4
[PATCH] tun: Fix/rewrite packet filtering logic
...le *file, struct ifreq *ifr) tun = netdev_priv(dev); tun->dev = dev; tun->flags = flags; - /* Be promiscuous by default to maintain previous behaviour. */ - tun->if_flags = IFF_PROMISC; - /* Generate random Ethernet address. */ - *(__be16 *)tun->dev_addr = htons(0x00FF); - get_random_bytes(tun->dev_addr + sizeof(u16), 4); - memset(tun->chr_filter, 0, sizeof tun->chr_filter); + tun->txflt.count = 0; tun_net_init(dev); @@ -751,6 +793,7 @@ static int tun_chr_ioctl(struct inode *inode, struct file *file, struct tun_struct *tun = file->private_data; void __us...
2008 Jul 12
4
[PATCH] tun: Fix/rewrite packet filtering logic
...le *file, struct ifreq *ifr) tun = netdev_priv(dev); tun->dev = dev; tun->flags = flags; - /* Be promiscuous by default to maintain previous behaviour. */ - tun->if_flags = IFF_PROMISC; - /* Generate random Ethernet address. */ - *(__be16 *)tun->dev_addr = htons(0x00FF); - get_random_bytes(tun->dev_addr + sizeof(u16), 4); - memset(tun->chr_filter, 0, sizeof tun->chr_filter); + tun->txflt.count = 0; tun_net_init(dev); @@ -751,6 +793,7 @@ static int tun_chr_ioctl(struct inode *inode, struct file *file, struct tun_struct *tun = file->private_data; void __us...
2000 Jan 19
3
AIX openssh patches
...c.h" + #if 0 #ifndef offsetof #define offsetof(type, member) ((size_t) &((type *)0)->member) #endif + #endif + #ifdef USE_SYSRANDOM + #include <time.h> + #endif + #ifndef HAVE_ARC4RANDOM typedef struct *************** *** 135,140 **** --- 141,156 ---- void get_random_bytes(unsigned char *buf, int len) { + + #ifdef USE_SYSRANDOM + int index; + + srandom(time(NULL) + getpid()); + + for (index = 0; index < len+1; index++) { + buf[index] = rand()%255; + } + #else /* USE_SYSRANDOM */ static int random_pool; int c; #ifdef HAVE_EGD ******...
2012 Dec 05
2
[Bridge] [PATCH net-next v3] bridge: export multicast database via netlink
...lticast.c +++ b/net/bridge/br_multicast.c @@ -322,6 +322,7 @@ static int br_mdb_rehash(struct net_bridge_mdb_htable __rcu **mdbp, int max, mdb->size = old ? old->size : 0; mdb->ver = old ? old->ver ^ 1 : 0; + mdb->seq = old ? (old->seq + 1): 0; if (!old || elasticity) get_random_bytes(&mdb->secret, sizeof(mdb->secret)); @@ -1584,6 +1585,7 @@ void br_multicast_init(struct net_bridge *br) br_multicast_querier_expired, (unsigned long)br); setup_timer(&br->multicast_query_timer, br_multicast_query_expired, (unsigned long)br); + br_mdb_init(); }...
2009 Jun 04
2
Backport that adds delayed orphan scan timer to 1.4
Next two patches are backport of orphan scan timer patches to ocfs2-1.4
2012 Dec 07
3
[Bridge] [PATCH net-next v4] bridge: export multicast database via netlink
...ticast.c +++ b/net/bridge/br_multicast.c @@ -322,6 +322,7 @@ static int br_mdb_rehash(struct net_bridge_mdb_htable __rcu **mdbp, int max, mdb->size = old ? old->size : 0; mdb->ver = old ? old->ver ^ 1 : 0; + mdb->seq = old ? (old->seq + 1) : 0; if (!old || elasticity) get_random_bytes(&mdb->secret, sizeof(mdb->secret)); @@ -1605,6 +1606,7 @@ void br_multicast_init(struct net_bridge *br) br_multicast_querier_expired, (unsigned long)br); setup_timer(&br->multicast_query_timer, br_multicast_query_expired, (unsigned long)br); + br_mdb_init(); }...
2000 Mar 03
7
[PATCH] Add a Maximum Idle Time (1.2.2)
The attached patch adds an option (off by default to preserve current behavior) to set a timeout on the select() statement that waits for input in clientloop.c. This fixes a timeout issue for me (explained below) and probably also fixes the timeouts mentioned in last month's thread "Idle time out". The patch is also available by http from:
2012 Nov 27
3
[Bridge] [RFC PATCH 1/2] bridge: export port_no and port_id via IFA_INFO_DATA
Based on net-next. This patch exports port->port_no port->port_id in the end of IFA_INFO_DATA. Cc: Herbert Xu <herbert at gondor.apana.org.au> Cc: Stephen Hemminger <shemminger at vyatta.com> Cc: "David S. Miller" <davem at davemloft.net> Cc: Thomas Graf <tgraf at suug.ch> Cc: Jesper Dangaard Brouer <brouer at redhat.com> Signed-off-by: Cong Wang
2009 Jun 18
8
Patches backported from mainline
All, Please review the patches backported to 1.4 from mainline. Sunil
2010 Mar 02
3
2.6.33 high cpu usage
With the ATI bug I was hitting earlier fixed, only my btrfs partition continues to show high cpu usage for some operations. Rsync, git pull, git checkout and svn up are typicall operations which trigger the high cpu usage. As an example, this perf report is from using git checkout to change to a new branch; the change needed to checkout 208 files out of about 1600 total files. du(1) reports
2018 Jan 10
1
guestmount fails after linux kernel update 01/10/2018
...Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. Could not open option rom 'sgabios.bin': No such file or directory [ 0.000000] random: get_random_bytes called from start_kernel+0x42/0x504 with crng_init=0 [ 0.000000] Linux version 4.13.0-26-generic (buildd@lgw01-amd64-031) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)) #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 (Ubuntu 4.13.0-26.29~16.04.2-generic 4.13.13) [ 0.000000]...
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
...<mast@gmx.net>, -+ * Copyright (C) 2005 INTEL Corp - * - * This module is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published -@@ -381,7 +382,7 @@ static int encode_message(int type, uint - msg[0] = 0x00; - get_random_bytes(&msg[1], SHA1_DIGEST_LENGTH); - sha1_init(&ctx); -- sha1_update(&ctx, "TCPA", 4); -+ sha1_update(&ctx, (uint8_t *) "TCPA", 4); - sha1_final(&ctx, &msg[1 + SHA1_DIGEST_LENGTH]); - memset(&msg[1 + 2 * SHA1_DIGEST_LENGTH], 0...