Re: [External] Re: [PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc

2025-02-26 Thread 段亚勇 via Grub-devel
ed, Feb 26, 2025, 21:39 Subject: Re: [External] Re: [PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc To: "段亚勇" Cc: , , < jinke@bytedance.com>, , < likunkun@bytedance.com>, "Li Yongqiang", "Sun Ming" On Tue, Feb 25, 2025 at 07:19:58PM -0800

Re: [PATCH] Bugfix: grub menu gets stuck

2025-02-26 Thread Daniel Kiper
On Thu, Nov 28, 2024 at 11:48:26AM +0800, Duan Yayong via Grub-devel wrote: > Adding "if (grub_tsc_rate == 0)" judgement just in case other unknown > instruction exception, so that > "grub_tsc_calibrate_from_pit||grub_tsc_calibrate_from_efi" getting > "grub_tsc_rate" methods have a opportunity to b

Re: [External] Re: [PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc

2025-02-26 Thread Daniel Kiper
On Tue, Feb 25, 2025 at 07:19:58PM -0800, 段亚勇 via Grub-devel wrote: > Hi,  > > That's alright! > May I know if the first patch is allowed to be merged? And how long will it be > merged approximately? > So that I can track it after that time! Thanks! Sorry, I thought the first patch is earlier vers

Re: [External] Re: [PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc

2025-02-25 Thread 段亚勇 via Grub-devel
, T2B, Xinjiangwan Square, Yangpu District, Shanghai --- From: "Daniel Kiper" Date: Tue, Feb 25, 2025, 23:35 Subject: [External] Re: [PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc To: "段亚勇" Cc: , ,

Re: [PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc

2025-02-25 Thread Daniel Kiper
Hi, On Mon, Feb 24, 2025 at 10:41:38PM -0800, 段亚勇 wrote: > Hello Daniel, > May I know the Merge Plan of Grub Master branch?  > From this time, we almost check grub master changes every day > and take enough patience to wait for the bugfix to be merged. > But we found the recent u

Re: [PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc

2025-02-24 Thread 段亚勇 via Grub-devel
Hello Daniel, May I know the *Merge Plan* of Grub Master branch? >From this time, we almost check grub master changes every day and take enough patience to wait for the bugfix to be merged. But we found the recent update of master branch has no our two bugfix patches. If there are any ex

Re: [External] Re: [PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc

2025-01-07 Thread 段亚勇 via Grub-devel
Hi Daniel, Sorry for disturbing you again! May I know the ETA of my two patches arriving at grub master branch? Because we recognized that debian 12.10 version is going to be planned in debian community. We sincerely hope we can use this bugfix in debian 12.10

Re: [External] Re: [PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc

2024-12-20 Thread 段亚勇 via Grub-devel
49 Subject: [External] Re: [PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc To: "Duan Yayong" Cc: , , < jinke@bytedance.com>, , < likunkun@bytedance.com>, "Li Yongqiang", "Sun Ming" On Mon, Dec 09, 2024 at 02:48:32PM +0800, Duan Yayong wrote:

Re: [PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc

2024-12-19 Thread Daniel Kiper
On Mon, Dec 09, 2024 at 02:48:32PM +0800, Duan Yayong wrote: > This patch is used to fix grub menu gets stuck in server > AC poweron/poweroff stress test of x86_64, which is reproduced with 1/200 > ratio. The root cause analysis as below: > > Q: > What's the code logic? > A: > "grub_tsc_init" funct

[PATCH] BugFix: grub menu gets stuck due to unserialized rdtsc

2024-12-08 Thread Duan Yayong via Grub-devel
This patch is used to fix grub menu gets stuck in server AC poweron/poweroff stress test of x86_64, which is reproduced with 1/200 ratio. The root cause analysis as below: Q: What's the code logic? A: "grub_tsc_init" function will init tsc by setting grub_tsc_rate, which call stack is: grub_tsc

Re: [External] Re: [PATCH] BugFix: grub menu gets stuck due to unreliable rdtsc instruction.

2024-11-27 Thread 段亚勇 via Grub-devel
- Wrong coding style. - *The sent patch was fixed before this mail.* - *The upcoming patch about serialization instruction* *adjustment will fix it also.* If there are any other problems, please feel free to let me know. Thanks for your time again. --- Best Regards, 段亚勇 Data-SYS-STE

[PATCH] Bugfix: grub menu gets stuck

2024-11-27 Thread Duan Yayong via Grub-devel
Adding "if (grub_tsc_rate == 0)" judgement just in case other unknown instruction exception, so that "grub_tsc_calibrate_from_pit||grub_tsc_calibrate_from_efi" getting "grub_tsc_rate" methods have a opportunity to be performed but causing grub menu stucking. Signed-off-by: Duan Yayong Signed-off-

Re: [PATCH] BugFix: grub menu gets stuck due to unreliable rdtsc instruction.

2024-11-26 Thread Daniel Kiper
On Mon, Nov 11, 2024 at 02:17:19PM +0800, Duan Yayong via Grub-devel wrote: > This patch is used to fix grub menu gets stuck in server > AC poweron/poweroff stress test of x86_64, which is reproduced with 1/200 > ratio. The root cause analysis as below: > > Q. What's the code logic? > A. "grub_tsc_

[PATCH] BugFix: grub menu gets stuck due to unreliable rdtsc instruction.

2024-11-10 Thread Duan Yayong via Grub-devel
This patch is used to fix grub menu gets stuck in server AC poweron/poweroff stress test of x86_64, which is reproduced with 1/200 ratio. The root cause analysis as below: Q. What's the code logic? A. "grub_tsc_init" function will init tsc by setting grub_tsc_rate, which call stack is: grub_ts

Re: [PATCH v2][Bugfix] util/grub.d/00_header.in: quote background image pathname in output

2024-05-22 Thread Daniel Kiper
On Sun, May 19, 2024 at 05:50:10PM +0200, Pascal Hambourg wrote: > This is required if the pathname contains spaces or grub shell > metacharacters, else the generated config file check will fail. > > Signed-off-by: Pascal Hambourg Reviewed-by: Daniel Kiper Daniel __

[PATCH v2][Bugfix] util/grub.d/00_header.in: quote background image pathname in output

2024-05-19 Thread Pascal Hambourg
This is required if the pathname contains spaces or grub shell metacharacters, else the generated config file check will fail. Signed-off-by: Pascal Hambourg --- v2: Correct subject util/grub.d/00_header.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/grub.d/00_heade

[PATCH][Bugfix] debian/grub.d/05_debian_theme: quote background image pathname in output

2024-05-19 Thread Pascal Hambourg
This is required if the pathname contains spaces or grub shell metacharacters, else the generated config file check will fail. Signed-off-by: Pascal Hambourg --- util/grub.d/00_header.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/grub.d/00_header.in b/util/grub.d/00

Re: GRUB Legacy Bugfix for Misbehaving/Broken RTC

2019-09-30 Thread Daniel Kiper
On Thu, Aug 29, 2019 at 01:37:14PM -0700, BJ Black wrote: > Hi all! > > I recently experienced a problem on a fleet of CentOS 6 boxes with GRUB > 0.97 that had a dodgy CMOS battery and the RTC was broken. In this > circumstance, the timeout on the GRUB menu never moved because GRUB > didn't think

GRUB Legacy Bugfix for Misbehaving/Broken RTC

2019-08-29 Thread BJ Black
Hi all! I recently experienced a problem on a fleet of CentOS 6 boxes with GRUB 0.97 that had a dodgy CMOS battery and the RTC was broken. In this circumstance, the timeout on the GRUB menu never moved because GRUB didn't think any time had passed... So I wrote a fix that monitors both the 18.2H

Re: Important EHCI bugfix (Re: grub-2.02~beta1 happened)

2013-12-20 Thread Aleš Nesrsta
Dne 20.12.2013 13:16, Vladimir 'φ-coder/phcoder' Serbinenko napsal(a): > On 19.12.2013 20:59, Aleš Nesrsta wrote: >> Hi Vladimir, >> >> it would be fine if the bugfix, posted by me in ML thread "EHCI/USBMS >> corrections" (12/16/2013), will be incl

Re: Important EHCI bugfix (Re: grub-2.02~beta1 happened)

2013-12-20 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 19.12.2013 20:59, Aleš Nesrsta wrote: > Hi Vladimir, > > it would be fine if the bugfix, posted by me in ML thread "EHCI/USBMS > corrections" (12/16/2013), will be included in the final release. It > solves serious bug. > Check the git, it's already there, in

Important EHCI bugfix (Re: grub-2.02~beta1 happened)

2013-12-19 Thread Aleš Nesrsta
Hi Vladimir, it would be fine if the bugfix, posted by me in ML thread "EHCI/USBMS corrections" (12/16/2013), will be included in the final release. It solves serious bug. I tested it on four different PCs - it is working fine, I saw no negative results, and it helps on PCs where t

Re: [PATCH] grub-core/gfxmenu/widget-box.c - bugfix: incorrect drawing in cases of NULL center slice

2013-07-22 Thread Vladimir Testov
On Saturday, July 20, 2013 06:18:04 PM Andrey Borzenkov wrote: > В Wed, 17 Jul 2013 21:55:58 +0400 > > Vladimir Testov пишет: > > See screenshots included. > > > > If the center slice is NULL then west or north slice is also NULL > > Why? As far as I can tell code is supposed to scale all parts

Re: [PATCH] grub-core/gfxmenu/widget-box.c - bugfix: incorrect drawing in cases of NULL center slice

2013-07-20 Thread Andrey Borzenkov
В Wed, 17 Jul 2013 21:55:58 +0400 Vladimir Testov пишет: > See screenshots included. > > If the center slice is NULL then west or north slice is also NULL Why? As far as I can tell code is supposed to scale all parts of bitmap. What triggers this problem? >

[PATCH] grub-core/gfxmenu/widget-box.c - bugfix: incorrect drawing in cases of NULL center slice

2013-07-17 Thread Vladimir Testov
See screenshots included. If the center slice is NULL then west or north slice is also NULL so the height_n or width_w is also NULL. We can count these values from raw (non- scaled) bitmaps. The values will be the same as before for common cases. And the bug will be fixed. -- With best regards

[PATCH][BUGFIX] wrong determination of first printed entry in some cases

2013-03-27 Thread Vladimir Testov
bug found and fixed Steps to reproduce 1. more than one OS (or dummy entries as in the test stand) 2. one should have more than one kernels (so in additional options there will be more than one entry) 3. in main boot screen there should be enough entries so the scrollbar appears 4. we should save

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread Duboucher Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vladimir 'phcoder' Serbinenko a écrit : > With this change grub_auth_strcmp becomes a misnomer. I would prefer to > call it grub_auth_memcmp then. I'll also look into which other free > secure strcmp are available Asking developpers of project

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread Vladimir 'phcoder' Serbinenko
Bean wrote: > On Tue, Nov 10, 2009 at 10:25 PM, Duboucher Thomas > wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Bean a écrit : >> >>> Hi, >>> >>> Oh, I just come up with a better way to do this: >>> >>> typedef char grub_password_t[1024]; >>> >>> int >>> grub_auth_st

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread Vladimir 'phcoder' Serbinenko
Duboucher Thomas wrote: > Bean a écrit : > > Hi, > > > My previous function ensures that execution time is the same > > regardless of the input. Although it's not necessary, I guess it's a > > nice feature to have. BTW, the simpler function does leak one > > information, the size of buffer as the e

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread Duboucher Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bean a écrit : > > Hi, > > My previous function ensures that execution time is the same > regardless of the input. Although it's not necessary, I guess it's a > nice feature to have. BTW, the simpler function does leak one > information, the size of

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread Duboucher Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 richardvo...@gmail.com a écrit : > > for (it = retval = 0; it < PASSPHRASE_MAXSIZE; it++, input++, key++) > >> After changing the parameter type, those postincrements won't do what >> you expect. > Damn examinations; I really need to sleep! =)

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread richardvo...@gmail.com
On Tue, Nov 10, 2009 at 8:25 AM, Duboucher Thomas wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Bean a écrit : >> Hi, >> >> Oh, I just come up with a better way to do this: >> >> typedef char grub_password_t[1024]; >> >> int >> grub_auth_strcmp (const grub_password_t s1, const grub_

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread Bean
On Tue, Nov 10, 2009 at 10:25 PM, Duboucher Thomas wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Bean a écrit : >> Hi, >> >> Oh, I just come up with a better way to do this: >> >> typedef char grub_password_t[1024]; >> >> int >> grub_auth_strcmp (const grub_password_t s1, const grub

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread Duboucher Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bean a écrit : > Hi, > > Oh, I just come up with a better way to do this: > > typedef char grub_password_t[1024]; > > int > grub_auth_strcmp (const grub_password_t s1, const grub_password_t s2) > { > char r1 = 0; > char r2 = 0; > char *p; > int

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread Bean
Hi, Oh, I just come up with a better way to do this: typedef char grub_password_t[1024]; int grub_auth_strcmp (const grub_password_t s1, const grub_password_t s2) { char r1 = 0; char r2 = 0; char *p; int i, c; p = &r1; c = 0; for (i = 0; i < sizeof (grub_password_t); i++, s1++, s2++)

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread Bean
On Tue, Nov 10, 2009 at 4:52 PM, Bean wrote: > Hi, > > Perhaps this one, it's more symmetrical: > > typedef char grub_password_t[1024]; > > int > grub_auth_strcmp (const grub_password_t s1, const grub_password_t s2) > { >  char r1 = 0; >  char r2 = 0; >  char r3 = 0; >  char *p1, *p2; >  int i; >

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread Bean
On Tue, Nov 10, 2009 at 4:46 PM, Bean wrote: > Hi, > > Just in case p2 is optimized out by gcc: > > typedef char grub_password_t[1024]; > > int > grub_auth_strcmp (const grub_password_t s1, const grub_password_t s2) > { >  char r1 = 0; >  char r2 = 0; >  char r3 = 0; >  char *p1, *p2; >  int i; >

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread Bean
On Tue, Nov 10, 2009 at 4:28 PM, Bean wrote: > On Tue, Nov 10, 2009 at 1:39 PM, Bean wrote: >> On Tue, Nov 10, 2009 at 5:34 AM, Vladimir 'phcoder' Serbinenko >> wrote: >>> But now it has a technical problem: it may read post array definitions. >>> If any of post-array memory is MMIO or absent re

Re: Imminent bugfix release (1.97.1)

2009-11-10 Thread Bean
On Tue, Nov 10, 2009 at 1:39 PM, Bean wrote: > On Tue, Nov 10, 2009 at 5:34 AM, Vladimir 'phcoder' Serbinenko > wrote: >> But now it has a technical problem: it may read post array definitions. >> If any of post-array memory is MMIO or absent reading from it may have >> peculiar consequences >>>

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Bean
On Tue, Nov 10, 2009 at 5:34 AM, Vladimir 'phcoder' Serbinenko wrote: > But now it has a technical problem: it may read post array definitions. > If any of post-array memory is MMIO or absent reading from it may have > peculiar consequences >>     Also, because s1 and s2 have two differents roles,

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Darron Black
richardvo...@gmail.com wrote: Hello, I'd be concerned about (s1 != s2). Depending on how efficiently this compiles, could not branch prediction make this faster for match vs. not match, etc?. I'd be worried about all the ways (and future ways) compilers might help us and introduce time differe

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread richardvo...@gmail.com
> Hello, > > I'd be concerned about (s1 != s2).  Depending on how efficiently this > compiles, could not branch prediction make this faster for match vs. not > match, etc?.  I'd be worried about all the ways (and future ways) compilers > might help us and introduce time differences. I was avoiding

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread richardvo...@gmail.com
On Mon, Nov 9, 2009 at 4:46 PM, Duboucher Thomas wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Robert Millan a écrit : >> On Mon, Nov 09, 2009 at 10:43:48PM +0100, Duboucher Thomas wrote: >>>      Well, the only way to solve that problem would be IMHO to add a limit >>> to the size

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Darron Black
Duboucher Thomas wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert Millan a écrit : On Mon, Nov 09, 2009 at 10:43:48PM +0100, Duboucher Thomas wrote: Well, the only way to solve that problem would be IMHO to add a limit to the size of s2, and use this maximum size as

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Duboucher Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert Millan a écrit : > On Mon, Nov 09, 2009 at 10:43:48PM +0100, Duboucher Thomas wrote: >> Well, the only way to solve that problem would be IMHO to add a limit >> to the size of s2, and use this maximum size as an end condition for the >> 'fo

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Robert Millan
On Mon, Nov 09, 2009 at 10:43:48PM +0100, Duboucher Thomas wrote: > Well, the only way to solve that problem would be IMHO to add a limit > to the size of s2, and use this maximum size as an end condition for the > 'for' statement. Any better idea? :) We have a maximum line read size anyway.

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Duboucher Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vladimir 'phcoder' Serbinenko a écrit : > Duboucher Thomas wrote: >> Bean a écrit : >>> Hi, >>> This one work: >>> int >>> auth_strcmp (const char *s1, const char *s2) >>> { >>> int result = 0; >>> while (1) >>> { >>> result += (*s1 != *s

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Vladimir 'phcoder' Serbinenko
Duboucher Thomas wrote: > Bean a écrit : > > Hi, > > > This one work: > > > int > > auth_strcmp (const char *s1, const char *s2) > > { > > int result = 0; > > > while (1) > > { > > result += (*s1 != *s2); > > if (*s1 == 0) > > break; > > > s1++; > > s2++; > >

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Duboucher Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bean a écrit : > > Hi, > > This one work: > > int > auth_strcmp (const char *s1, const char *s2) > { > int result = 0; > > while (1) > { > result += (*s1 != *s2); > if (*s1 == 0) > break; > > s1++; > s2++; >

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Bean
On Tue, Nov 10, 2009 at 2:46 AM, Vladimir 'phcoder' Serbinenko wrote: > Bean wrote: >> On Tue, Nov 10, 2009 at 2:25 AM, Robert Millan wrote: >> >>> On Mon, Nov 09, 2009 at 07:15:48PM +0100, Vladimir 'phcoder' Serbinenko >>> wrote: >>> Robert Millan wrote: > Actually, modern CPUs ar

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Vladimir 'phcoder' Serbinenko
Bean wrote: > On Tue, Nov 10, 2009 at 2:25 AM, Robert Millan wrote: > >> On Mon, Nov 09, 2009 at 07:15:48PM +0100, Vladimir 'phcoder' Serbinenko >> wrote: >> >>> Robert Millan wrote: >>> Actually, modern CPUs are very complex and the number of operations (or time taken by

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Bean
On Tue, Nov 10, 2009 at 2:25 AM, Robert Millan wrote: > On Mon, Nov 09, 2009 at 07:15:48PM +0100, Vladimir 'phcoder' Serbinenko wrote: >> Robert Millan wrote: >> > >> > Actually, modern CPUs are very complex and the number of operations (or >> > time taken by them) isn't easy to predict. >> > >> >

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Robert Millan
On Mon, Nov 09, 2009 at 07:15:48PM +0100, Vladimir 'phcoder' Serbinenko wrote: > Robert Millan wrote: > > > > Actually, modern CPUs are very complex and the number of operations (or > > time taken by them) isn't easy to predict. > > > > > It's generally a good practice to do exactly same operati

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Vladimir 'phcoder' Serbinenko
Robert Millan wrote: > On Mon, Nov 09, 2009 at 06:46:16PM +0100, Duboucher Thomas wrote: > >> Ok, I typed this in a few minutes and I'm not confident either with >> what I wrote; I would check that it works first. ;) >> But the point here is that whatever the user gives as an input, it

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Robert Millan
On Mon, Nov 09, 2009 at 06:46:16PM +0100, Duboucher Thomas wrote: > > Ok, I typed this in a few minutes and I'm not confident either with > what I wrote; I would check that it works first. ;) > But the point here is that whatever the user gives as an input, it is > executed exactly n-t

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Duboucher Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vladimir 'phcoder' Serbinenko a écrit : > Bean wrote: >> On Mon, Nov 9, 2009 at 9:50 PM, Vladimir 'phcoder' Serbinenko >> wrote: >> >> Hi, >> >> int >> grub_auth_strcmp (const char *s1, const char *s2) >> { >> int ret; >> grub_uint64_t end; >>

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Vladimir 'phcoder' Serbinenko
Bean wrote: > On Mon, Nov 9, 2009 at 9:50 PM, Vladimir 'phcoder' Serbinenko > wrote: > >> Bean wrote: >> >>> On Mon, Nov 9, 2009 at 9:04 AM, Robert Millan wrote: >>> >>> A security problem [1] was found in our password-checking routines, which affects GRUB 1.97. I'll be

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Bean
On Mon, Nov 9, 2009 at 9:50 PM, Vladimir 'phcoder' Serbinenko wrote: > Bean wrote: >> On Mon, Nov 9, 2009 at 9:04 AM, Robert Millan wrote: >> >>> A security problem [1] was found in our password-checking routines, >>> which affects GRUB 1.97.  I'll be releasing 1.97.1 tomorrow. >>> >>> Additional

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Robert Millan
On Mon, Nov 09, 2009 at 02:50:36PM +0100, Vladimir 'phcoder' Serbinenko wrote: > > > > Actually, the function of grub_auth_strcmp puzzles me, why would it > > need to wait 100 ms to return the result ? > 10 ms actually. The goal is to take same amount of time indpendently of > input values. But pr

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Robert Millan
On Sun, Nov 08, 2009 at 06:08:39PM -0800, Jordan Uggla wrote: > None of the .sh scripts ( autogen.sh and the scripts it uses ) are > executable; I needed to "chmod 744 *.sh" before I could run > ./autogen.sh successfully. After doing that make failed with an error > in auth.c. This was with revisio

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Vladimir 'phcoder' Serbinenko
Bean wrote: > On Mon, Nov 9, 2009 at 9:04 AM, Robert Millan wrote: > >> A security problem [1] was found in our password-checking routines, >> which affects GRUB 1.97. I'll be releasing 1.97.1 tomorrow. >> >> Additionally, I cherry-picked fixes for a few problems that should >> have made it to

Re: Imminent bugfix release (1.97.1)

2009-11-09 Thread Bean
On Mon, Nov 9, 2009 at 9:04 AM, Robert Millan wrote: > > A security problem [1] was found in our password-checking routines, > which affects GRUB 1.97.  I'll be releasing 1.97.1 tomorrow. > > Additionally, I cherry-picked fixes for a few problems that should > have made it to the release, like GNU

Re: Imminent bugfix release (1.97.1)

2009-11-08 Thread Jordan Uggla
None of the .sh scripts ( autogen.sh and the scripts it uses ) are executable; I needed to "chmod 744 *.sh" before I could run ./autogen.sh successfully. After doing that make failed with an error in auth.c. This was with revision 1780. I've attached the output from ./configure and make. On Sun, N

Re: Imminent bugfix release (1.97.1)

2009-11-08 Thread Robert Millan
On Mon, Nov 09, 2009 at 02:04:22AM +0100, Robert Millan wrote: > The release branch is available in: > > sftp://bzr.savannah.gnu.org/srv/bzr/grub/branches/release_1_97/ Or via http if you don't have a Savannah account: http://bzr.savannah.gnu.org/r/grub/branches/release_1_97/ -- Robert Mil

Imminent bugfix release (1.97.1)

2009-11-08 Thread Robert Millan
A security problem [1] was found in our password-checking routines, which affects GRUB 1.97. I'll be releasing 1.97.1 tomorrow. Additionally, I cherry-picked fixes for a few problems that should have made it to the release, like GNU/Hurd support (see NEWS file for details). The release branch i

Re: [BUGFIX] Fix rescue parser

2009-10-16 Thread Robert Millan
On Thu, Oct 15, 2009 at 03:06:42PM +0200, Vladimir 'phcoder' Serbinenko wrote: > > -- > Regards > Vladimir 'phcoder' Serbinenko > Personal git repository: http://repo.or.cz/w/grub2/phcoder.git > > diff --git a/ChangeLog b/ChangeLog > index b0864a9..55bdc92 100644 > --- a/ChangeLog > +++ b/Chan

[BUGFIX] Fix rescue parser

2009-10-15 Thread Vladimir 'phcoder' Serbinenko
-- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/ChangeLog b/ChangeLog index b0864a9..55bdc92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2009-10-15 Vladimir Serbinenko + * kern/parser.c (grub_parser_split_cmd

Re: [BUGFIX] Incorrect count of argument with rescue parser

2009-07-31 Thread Vladimir 'phcoder' Serbinenko
On Fri, Jul 31, 2009 at 6:17 AM, Pavel Roskin wrote: > On Fri, 2009-07-31 at 00:46 +0200, Vladimir 'phcoder' Serbinenko wrote: >> This patch fixes the parsing of two strings like following ones: >> "echo 1 " was parsed into "echo", "1", "" >> "echo $root" was parsed into "echo" (variable just disap

Re: [BUGFIX] Incorrect count of argument with rescue parser

2009-07-30 Thread Pavel Roskin
On Fri, 2009-07-31 at 00:46 +0200, Vladimir 'phcoder' Serbinenko wrote: > This patch fixes the parsing of two strings like following ones: > "echo 1 " was parsed into "echo", "1", "" > "echo $root" was parsed into "echo" (variable just disappeared) It would be helpful if you explain how to see the

[BUGFIX] Incorrect count of argument with rescue parser

2009-07-30 Thread Vladimir 'phcoder' Serbinenko
This patch fixes the parsing of two strings like following ones: "echo 1 " was parsed into "echo", "1", "" "echo $root" was parsed into "echo" (variable just disappeared) -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/ChangeLo

Re: [BUGFIX] Don't use DT_DIR: It doesn't work on non-ext* filesystems

2009-07-25 Thread Robert Millan
On Fri, Jul 24, 2009 at 05:49:19PM -0400, Pavel Roskin wrote: > On Fri, 2009-07-24 at 23:02 +0200, Christian Franke wrote: > > > A correct performance-aware solution would look like: > > > > #ifdef DT_DIR > > if (de->d_type == DT_DIR) > > info.dir = 1; > > else if (de->type == DT_FILE) >

Re: [BUGFIX] Don't use DT_DIR: It doesn't work on non-ext* filesystems

2009-07-24 Thread Christian Franke
Pavel Roskin wrote: On Fri, 2009-07-24 at 23:02 +0200, Christian Franke wrote: A correct performance-aware solution would look like: #ifdef DT_DIR if (de->d_type == DT_DIR) info.dir = 1; else if (de->type == DT_FILE) There in no DT_FILE in glibc, but there is DT_REG. Yes

Re: [BUGFIX] Don't use DT_DIR: It doesn't work on non-ext* filesystems

2009-07-24 Thread Pavel Roskin
On Fri, 2009-07-24 at 23:02 +0200, Christian Franke wrote: > A correct performance-aware solution would look like: > > #ifdef DT_DIR > if (de->d_type == DT_DIR) > info.dir = 1; > else if (de->type == DT_FILE) There in no DT_FILE in glibc, but there is DT_REG. DT_UNKNOWN is present. Per

Re: [BUGFIX] Don't use DT_DIR: It doesn't work on non-ext* filesystems

2009-07-24 Thread Christian Franke
Pavel Roskin wrote: On Thu, 2009-07-23 at 11:29 +0200, Vladimir 'phcoder' Serbinenko wrote: -#ifdef DT_DIR - info.dir = (de->d_type == DT_DIR); -#else info.dir = !! is_dir (path, de->d_name); -#endif Fine with me. Finally a patch that reduces the number of preprocessor di

Re: [BUGFIX] Don't use DT_DIR: It doesn't work on non-ext* filesystems

2009-07-23 Thread Pavel Roskin
On Thu, 2009-07-23 at 11:29 +0200, Vladimir 'phcoder' Serbinenko wrote: > -#ifdef DT_DIR > - info.dir = (de->d_type == DT_DIR); > -#else >info.dir = !! is_dir (path, de->d_name); > -#endif Fine with me. Finally a patch that reduces the number of preprocessor directives :-) -- Rega

[BUGFIX] Don't use DT_DIR: It doesn't work on non-ext* filesystems

2009-07-23 Thread Vladimir 'phcoder' Serbinenko
-- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/ChangeLog b/ChangeLog index a0780ab..16aab92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-07-23 Vladimir Serbinenko + + * util/hostfs.c (grub_hostfs_dir):

[BUGFIX] Fix cut menuentry on failed boot

2009-07-23 Thread Vladimir 'phcoder' Serbinenko
Hello. If syntax error in menu entry occurs it oftens results in the menu cut after first line. Here is the fix -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/ChangeLog b/ChangeLog index a0780ab..8824f1c 100644 --- a/ChangeLog

Re: [BUGFIX] lexer waits for space to terminate the varname

2009-05-03 Thread Bean
Hi, Oh right, it looks more compact. Although you should test the corner cases to make sure no problem is introduced by the new code. On Sun, May 3, 2009 at 9:28 PM, Vladimir 'phcoder' Serbinenko wrote: > > On Sun, May 3, 2009 at 2:52 PM, Bean wrote: >> >> On Sun, May 3, 2009 at 8:39 PM, Vladim

Re: [BUGFIX] lexer waits for space to terminate the varname

2009-05-03 Thread Vladimir 'phcoder' Serbinenko
On Sun, May 3, 2009 at 2:52 PM, Bean wrote: > On Sun, May 3, 2009 at 8:39 PM, Vladimir 'phcoder' Serbinenko > wrote: > > > > > > On Sun, May 3, 2009 at 2:37 PM, Bean wrote: > >> > >> Hi, > >> > >> On Sun, May 3, 2009 at 5:12 PM, Vladimir 'phcoder' Serbinenko > >> wrote: > >> > Hello > >> > > >

Re: [BUGFIX] lexer waits for space to terminate the varname

2009-05-03 Thread Bean
On Sun, May 3, 2009 at 8:39 PM, Vladimir 'phcoder' Serbinenko wrote: > > > On Sun, May 3, 2009 at 2:37 PM, Bean wrote: >> >> Hi, >> >> On Sun, May 3, 2009 at 5:12 PM, Vladimir 'phcoder' Serbinenko >> wrote: >> > Hello >> > >> > On Sat, May 2, 2009 at 4:08 PM, Bean wrote: >> >> >> >> Hi, >> >> >

Re: [BUGFIX] lexer waits for space to terminate the varname

2009-05-03 Thread Vladimir 'phcoder' Serbinenko
On Sun, May 3, 2009 at 2:37 PM, Bean wrote: > Hi, > > On Sun, May 3, 2009 at 5:12 PM, Vladimir 'phcoder' Serbinenko > wrote: > > Hello > > > > On Sat, May 2, 2009 at 4:08 PM, Bean wrote: > >> > >> Hi, > >> > >> I think there is problem with this patch. Consider ${aa}, the closing > >> character

Re: [BUGFIX] lexer waits for space to terminate the varname

2009-05-03 Thread Bean
Hi, On Sun, May 3, 2009 at 5:12 PM, Vladimir 'phcoder' Serbinenko wrote: > Hello > > On Sat, May 2, 2009 at 4:08 PM, Bean wrote: >> >> Hi, >> >> I think there is problem with this patch. Consider ${aa}, the closing >> character "}" would be left out. >> >> Although you can remedy this by swappin

Re: [BUGFIX] lexer waits for space to terminate the varname

2009-05-03 Thread Vladimir 'phcoder' Serbinenko
Hello On Sat, May 2, 2009 at 4:08 PM, Bean wrote: > Hi, > > I think there is problem with this patch. Consider ${aa}, the closing > character "}" would be left out. > > Although you can remedy this by swapping: > > { GRUB_PARSER_STATE_VARNAME, GRUB_PARSER_STATE_TEXT, ' ', 1}, > { GRUB_PARSER_S

Re: [BUGFIX] lexer waits for space to terminate the varname

2009-05-02 Thread Bean
Hi, I think there is problem with this patch. Consider ${aa}, the closing character "}" would be left out. Although you can remedy this by swapping: { GRUB_PARSER_STATE_VARNAME, GRUB_PARSER_STATE_TEXT, ' ', 1}, { GRUB_PARSER_STATE_VARNAME2, GRUB_PARSER_STATE_TEXT, '}', 0}, so that '}' would

[BUGFIX] lexer waits for space to terminate the varname

2009-05-02 Thread Vladimir 'phcoder' Serbinenko
Hello. A varname may be terminated by any character which isn't in a set [A-Za-z0-9_] and not only space. Here is a fix -- Regards Vladimir 'phcoder' Serbinenko diff --git a/kern/parser.c b/kern/parser.c index e931853..feaee09 100644 --- a/kern/parser.c +++ b/kern/parser.c @@ -71,7 +71,10 @@ grub

Re: [BUGFIX]

2009-04-04 Thread phcoder
wrote: Hello symbols from command.h aren't exported correctly. Here's a bugfix. It compiles with it but I haven't checked yet if compiled binary works. Can someone familiar with build system have a look at this? Hi, It's a little wired, why would powerpc-ieee1275.rmk has two

Re: [BUGFIX]

2009-04-03 Thread Pavel Roskin
On Fri, 2009-04-03 at 16:48 +0200, phcoder wrote: > rgrep revealed no use for the second kernel_elf_HEADERS, so I propose to > remove it altogether > Is everybody comfortable with this patch? If I hear no oppositions in > couple of days I'll commit it. No objections. By the way, the same proble

Re: [BUGFIX]

2009-04-03 Thread phcoder
from command.h aren't exported correctly. Here's a bugfix. It compiles with it but I haven't checked yet if compiled binary works. Can someone familiar with build system have a look at this? Hi, It's a little wired, why would powerpc-ieee1275.rmk has two kernel_elf_HEADERS in the

Re: [BUGFIX]

2009-04-02 Thread Bean
On Fri, Apr 3, 2009 at 2:19 AM, phcoder wrote: > Is kernel_elf_HEADERS used for anything else than symlist.c and > kernel-symlist,lst generation? Hi, I believe that kernel_elf_HEADERS is only used for symlist.c, so you should be able to remove the second kernel_elf_HEADERS and still compile prop

Re: [BUGFIX]

2009-04-02 Thread phcoder
: Bean wrote: On Thu, Apr 2, 2009 at 8:52 PM, phcoder wrote: Hello symbols from command.h aren't exported correctly. Here's a bugfix. It compiles with it but I haven't checked yet if compiled binary works. Can someone familiar with build system have a look at this? Hi, It's

Re: [BUGFIX]

2009-04-02 Thread Manoel Rebelo Abranches
27;t exported correctly. Here's a bugfix. It > >> compiles with it but I haven't checked yet if compiled binary works. Can > >> someone familiar with build system have a look at this? > > > > Hi, > > > > It's a little wired, why would powerpc-i

Re: [BUGFIX]

2009-04-02 Thread phcoder
Bean wrote: On Thu, Apr 2, 2009 at 8:52 PM, phcoder wrote: Hello symbols from command.h aren't exported correctly. Here's a bugfix. It compiles with it but I haven't checked yet if compiled binary works. Can someone familiar with build system have a look at this? Hi, It&#

Re: [BUGFIX]

2009-04-02 Thread Bean
On Thu, Apr 2, 2009 at 8:52 PM, phcoder wrote: > Hello symbols from command.h aren't exported correctly. Here's a bugfix. It > compiles with it but I haven't checked yet if compiled binary works. Can > someone familiar with build system have a look at this? Hi, It

[BUGFIX]

2009-04-02 Thread phcoder
Hello symbols from command.h aren't exported correctly. Here's a bugfix. It compiles with it but I haven't checked yet if compiled binary works. Can someone familiar with build system have a look at this? -- Regards Vladimir 'phcoder' Serbinenko diff --git a/conf/po

Re: [Bugfix] Characters disappearing in gfxterm [fix committed]

2009-03-15 Thread BandiPat
Colin D Bennett wrote: [...] There is still one other problem that remains with the cursor on the menu entry editor, but it seems to be separate: When the menu entry editor is entered, (hit 'e' on a menu entry), the cursor initially does not show up. You have to move the cursor to make it show

Re: Bugfix: directories: not reported as such on case-insensitive fs

2009-03-13 Thread phcoder
Robert Millan wrote: On Mon, Feb 09, 2009 at 05:16:52PM +0100, phcoder wrote: - if (filetype == GRUB_FSHELP_DIR) + if ((filetype & GRUB_FSHELP_TYPE_MASK) == GRUB_FSHELP_DIR) Uhm actually I don't understand why you need a mask for this. filetype is an enum, which we define ourselves.

Re: Bugfix: directories: not reported as such on case-insensitive fs

2009-03-13 Thread Robert Millan
On Mon, Feb 09, 2009 at 05:16:52PM +0100, phcoder wrote: > - if (filetype == GRUB_FSHELP_DIR) > + if ((filetype & GRUB_FSHELP_TYPE_MASK) == GRUB_FSHELP_DIR) Uhm actually I don't understand why you need a mask for this. filetype is an enum, which we define ourselves. What's the root of

Re: Bugfix: directories: not reported as such on case-insensitive fs

2009-03-13 Thread Robert Millan
On Mon, Feb 09, 2009 at 05:16:52PM +0100, phcoder wrote: > - > - if (filetype == GRUB_FSHELP_DIR) > + > + if ((filetype & GRUB_FSHELP_TYPE_MASK) == GRUB_FSHELP_DIR) Please don't remove those spaces, they're intentional (see http://www.gnu.org/prep/standards/html_node/Formatting.htm

Re: [Bugfix] Characters disappearing in gfxterm [fix committed]

2009-03-12 Thread Colin D Bennett
On Sun, 08 Feb 2009 10:47:34 +0200 Vesa Jääskeläinen wrote: > phcoder wrote: > > Hello. I've run into the bug that when editing menu entry in gfxterm > > characters disappear after cursor moves away from its position. Here is > > bugfix > > I don't think th

Re: [Bugfix] Characters disappearing in gfxterm

2009-03-12 Thread BandiPat
Robert Millan wrote: On Wed, Mar 11, 2009 at 10:36:40AM -0400, BandiPat wrote: Has there been any further work done on the disappearing characters in gfxterm? I know you guys had looked at it, but the last word was it was not fixed yet. I understand it's not a priority, but a fix would help

  1   2   >