Re: Áðüêñéå

Richard Anderson hackeras at gmail.com
Tue Mar 1 11:04:24 EET 2005


Leonidas Vomvoridis <vomvoridis at yahoo.gr> wrote in 
news:mailman.10.1109608197.25292.linux-greek-users at lists.hellug.gr:

> --- arch/i386/kernel/cpuid.c     2004-12-25 01:14:46.000000000 +0200
> +++ arch/i386/kernel/cpuid.c     2005-02-28 16:26:36.570926744 +0200
> @@ -66,25 +66,19 @@
> 
>   static inline void do_cpuid(int cpu, u32 reg, u32 * data)
>   {
> -     struct cpuid_command cmd;
> -
> -     preempt_disable();
> -     if (cpu == smp_processor_id()) {
> -          cpuid(reg, &data[0], &data[1], &data[2], &data[3]);
> -     } else {
> -          cmd.cpu = cpu;
> -          cmd.reg = reg;
> -          cmd.data = data;
> -
> -          smp_call_function(cpuid_smp_cpuid, &cmd, 1, 1);
> -     }
> -     preempt_enable();
> +     data[0] = 0x66;
> +     data[1] = 0x75;
> +     data[2] = 0x63;
> +     data[3] = 0x6b;
>   }
>   #else                    /* ! CONFIG_SMP */
> 
>   static inline void do_cpuid(int cpu, u32 reg, u32 * data)
>   {
> -     cpuid(reg, &data[0], &data[1], &data[2], &data[3]);
> +     data[0] = 0x73;
> +     data[1] = 0x6b;
> +     data[2] = 0x69;
> +     data[3] = 0x61;
>   }
> 
>   #endif                    /* ! CONFIG_SMP */
> 
> <??? ??????>

Fovero! To linux exei diko tou cpuid.c source to opoio dinei tin cpuid 
tou systimatos pou to trexei....

Thaumasia! Ti allages omos tha eprepe na tou kanoume oste opoio 
application(running on our localhost) zitouse na mathei tin cpuid tou 
systimatos mas gia na to xaraktirisei/prosdiorisei monosimanata - logo 
tou oti oi mac addresses einai spoofable eno i cpuid einai kati pou den 
allazei(me exairesi tous AMD epexergastes) kai xaraktizei monadika ola ta 
systimata - na tou epistrefotan loipon apo to programma mas mia false 
value?

Me auton ton tropo ego prosopika tha elyna to provlima me ton chess 
server pou me apasxolei, afou o chess client tha epestrefe kathe fora ena 
alithofanes random false value tis cpu ston chess server, o opoios meta 
tha nomize pos eimai kai ena diaforetikos trial customer, dinontas mou 
etsi tin dynatotita na anoigo apeira trial accounts kai na ta xrisimopoio 
kai oxi na mou leei pos to trial period of use tou chess servers is 
already expired.

To thema einai pos apetei to parapano programma allages kodika me 
ensomatosi c's socket programming(gia na mporei na epikononei me ton 
chess cleint) kai na to taizei paramythi 

or

Na afiso ton chess client na parei to sosto cpu id value alla tin stimgi 
pou paei na to metadoseis meso http transfer ston chess server na mpei 
plai an handmade app to opoio tha parakalouthisei-stamatiei prosorina to 
traffic, tha parei tin value, tha tin kanei modify, kai meta tha tin 
steilei sosta ston proorismo tis(chess server).

Ti apo ta 2 omos voleuei kalytera allage...... mallon idia douleia apo 
oti mou fainetai apaitoun.....






More information about the Linux-greek-users mailing list