Skip to contentSkip to conversation

procfs bug exposed by cdev changes

PATCH Olivier NICOLAS 2 participants 2 messages May 28, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines
      fs/inode.c assumes that any ->delete_inode() will call >clear_inode().

procfs instance doesn't. It had passed unpunished for a while; cdev >changes combined with ALSA creating character devices in procfs made it fatal.

Quoted 8 lines

Patch follows. It had fixed ALSA-triggered memory corruption >here -
what happens in vanilla 2.5.70 is that clear_inode() is not called when procfs character device inodes are freed. That leaves a freed inode on a cyclic list, with obvious unpleasantness following when we try to >traverse it (e.g. when unregistering a device).

Please, apply. Folks who'd seen oopsen/memory corruption after
ALSA access - please, check if that fixes all problems.

modprobe snd-intel8x0
rmmod snd-intel8x0

ALSA works for me,

Thanks
Olivier

#1 lore raw

ons, 28.05.2003 kl. 20.06 skrev Olivier NICOLAS:

Quoted 3 lines
Quoted 2 lines

Please, apply. Folks who'd seen oopsen/memory corruption after
ALSA access - please, check if that fixes all problems.

ALSA works for me,

And me :)

Best regards,
Stian