[OpenAFS] OpenAFS client 1.7.201 and later triggers printing of smiley faces on all printers shared via Samba

Jeffrey Altman jaltman@your-file-system.com
Thu, 12 Apr 2012 10:08:38 -0400

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable


The problem is triggered by the AFS Context Menu handler.
When testing whether or not a path is an AFS path, the AFS Context Menu
handler issues an AFS pioctl operation on the path.  The pioctl process i=

 * Request that an "existing" file be opened on the device


 * Write the request to that file

 * Read the response from that file

 * Close the file

The pages are being printed because the printer device is permitting the
_._AFS_IOCTL_._ to be opened and treating the data that is written to it
as a print job.

The SMB server in the printers should not be opening a file that does
not exist when the caller is explicitly asking that only an existing
file be opened.  The SMB server in the printer could be a version of
Samba or some other home grown implementation.  Regardless, it is buggy.

Of course, knowing the cause does not solve your problem which is that
you want the paper to stop being wasted.   The question is "who is going
to research a solution and implement it?"   I suspect you want that to
be me.  :-)   That is fine but I'm at the point where I want to be paid
for my efforts.

Jeffrey Altman

On 4/12/2012 8:02 AM, Michael Richter wrote:
> Hi, just wanted to say, this problem is still present.
> I updated all of our computers to 1.7.08 and now we have large paper
> wastage :)
> This is not a samba problem. We use mainly OpenAFS 1.7.08 32bit on
> Windows XP Prof SP3 (german). Our printers (different Kyocera, HP and
> Konica Minolta models) are all connected via two Windows Server 2003
> print servers.
> Sometimes the printers do not print the smilies. Then there are two
> print jobs in chain (screenshot attached). These jobs also occur on
> printers which are not connected to the owners computer... very strange=
> Mit freundlichen Gr=C3=BC=C3=9Fen
> Michael Richter

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG v1.4.9 (MingW32)