Re: [GIT PULL] scripts: recordmcount: break hardlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 15 Dec 2015 12:00:46 -0800
Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Tue, Dec 15, 2015 at 11:50 AM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> >
> > Russell fixed this by having recordmcount detect that the object file
> > has more than one hard link, and if it does, it unlinks the object file
> > after it maps it and processes then. This appears to fix the issue.  
> 
> Ugh. Can we please fix it by simply not writing things in place.
> 
> The code seems to already just read (or mmap) the whole file into
> memory anyway, why not just change the memory image, and then at the
> end do a single write (maybe just a single "did I change anything"
> flag to either do it all or nothing).
> 
> Doing partial in-place writes is not a pattern we should encourage in
> the first place.

OK,

I can write a patch on top of this one that does just that. I'll have
to run it through all my tests before I push it to you. Expect
something by tomorrow.

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]